diff --git a/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md index 43f98ed8a..80921a7a9 100644 --- a/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md @@ -1,3 +1,137 @@ +Release v1.5.8 (2016-11-18) +=== + +Service Client Updates +--- +`service/application-autoscaling`: Updates service API and documentation +`service/elasticmapreduce`: Updates service API and documentation +`service/elastictranscoder`: Updates service API, documentation, and examples +`service/gamelift`: Updates service API and documentation +`service/lambda`: Updates service API and documentation + +Release v1.5.7 (2016-11-18) +=== + +Service Client Updates +--- +`service/apigateway`: Updates service API and documentation +`service/meteringmarketplace`: Updates service API and documentation +`service/monitoring`: Updates service API and documentation +`service/sqs`: Updates service API, documentation, and examples + +Release v1.5.6 (2016-11-16) +=== + +Service Client Updates +--- +`service/route53`: Updates service API and documentation +`service/servicecatalog`: Updates service API and documentation + +Release v1.5.5 (2016-11-15) +=== + +Service Client Updates +--- +`service/ds`: Updates service API and documentation +`service/elasticache`: Updates service API and documentation +`service/kinesis`: Updates service API and documentation + +Release v1.5.4 (2016-11-15) +=== + +Service Client Updates +--- +`service/cognito-idp`: Updates service API and documentation + +Release v1.5.3 (2016-11-11) +=== + +Service Client Updates +--- +`service/cloudformation`: Updates service documentation and examples +`service/logs`: Updates service API and documentation + +Release v1.5.2 (2016-11-03) +=== + +Service Client Updates +--- +`service/directconnect`: Updates service API and documentation + +Release v1.5.1 (2016-11-02) +=== + +Service Client Updates +--- +`service/email`: Updates service API and documentation + +Release v1.5.0 (2016-11-01) +=== + +Service Client Updates +--- +`service/cloudformation`: Updates service API and documentation +`service/ecr`: Updates service paginators + +SDK Feature Updates +--- +* `private/model/api`: Add generated setters for API parameters (#918) + * Adds setters to the SDK's API parameter types, and are a convenience method that reduce the need to use `aws.String` and like utility. + +Release v1.4.22 (2016-10-25) +=== + +Service Client Updates +--- +* `service/elasticloadbalancingv2`: Updates service documentation. +* `service/autoscaling`: Updates service documentation. + +Release v1.4.21 (2016-10-24) +=== + +Service Client Updates +--- +* `service/sms`: AWS Server Migration Service (SMS) is an agentless service which makes it easier and faster for you to migrate thousands of on-premises workloads to AWS. AWS SMS allows you to automate, schedule, and track incremental replications of live server volumes, making it easier for you to coordinate large-scale server migrations. +* `service/ecs`: Updates documentation. + +SDK Feature Updates +--- +* `private/models/api`: Improve code generation of documentation. + +Release v1.4.20 (2016-10-20) +=== + +Service Client Updates +--- +* `service/budgets`: Adds new service, AWS Budgets. +* `service/waf`: Updates service documentation. + +Release v1.4.19 (2016-10-18) +=== + +Service Client Updates +--- +* `service/cloudfront`: Updates service API and documentation. + * Ability to use Amazon CloudFront to deliver your content both via IPv6 and IPv4 using HTTP/HTTPS. +* `service/configservice`: Update service API and documentation. +* `service/iot`: Updates service API and documentation. +* `service/kinesisanalytics`: Updates service API and documentation. + * Whenever Amazon Kinesis Analytics is not able to detect schema for the given streaming source on DiscoverInputSchema API, we would return the raw records that was sampled to detect the schema. +* `service/rds`: Updates service API and documentation. + * Amazon Aurora integrates with other AWS services to allow you to extend your Aurora DB cluster to utilize other capabilities in the AWS cloud. Permission to access other AWS services is granted by creating an IAM role with the necessary permissions, and then associating the role with your DB cluster. + +SDK Feature Updates +--- +* `service/dynamodb/dynamodbattribute`: Add UnmarshalListOfMaps #897 + * Adds support for unmarshaling a list of maps. This is useful for unmarshaling the DynamoDB AttributeValue list of maps returned by APIs like Query and Scan. + +Release v1.4.18 (2016-10-17) +=== + +Service Model Updates +--- +* `service/route53`: Updates service API and documentation. + Release v1.4.17 === @@ -14,7 +148,7 @@ SDK Features --- * `service/s3`: Add support for accelerate with dualstack [#887](https://github.com/aws/aws-sdk-go/issues/887) -Release v1.4.16 +Release v1.4.16 (2016-10-13) === Service Model Updates @@ -36,7 +170,7 @@ SDK Features * `service/dynamodb/dynamodbattribute`: Allow multiple struct tag elements [#886](https://github.com/aws/aws-sdk-go/issues/886) * Add build tags to internal SDK tools [#880](https://github.com/aws/aws-sdk-go/issues/880) -Release v1.4.15 +Release v1.4.15 (2016-10-06) === Service Model Updates diff --git a/vendor/github.com/aws/aws-sdk-go/Makefile b/vendor/github.com/aws/aws-sdk-go/Makefile index ab086cbb0..141ace57a 100644 --- a/vendor/github.com/aws/aws-sdk-go/Makefile +++ b/vendor/github.com/aws/aws-sdk-go/Makefile @@ -5,9 +5,11 @@ LINTIGNORESTUTTER='service/[^/]+/(api|service)\.go:.+(and that stutters)' LINTIGNOREINFLECT='service/[^/]+/(api|service)\.go:.+method .+ should be ' LINTIGNOREINFLECTS3UPLOAD='service/s3/s3manager/upload\.go:.+struct field SSEKMSKeyId should be ' LINTIGNOREDEPS='vendor/.+\.go' +UNIT_TEST_TAGS="example codegen" -SDK_WITH_VENDOR_PKGS=$(shell go list ./... | grep -v "/vendor/src") +SDK_WITH_VENDOR_PKGS=$(shell go list -tags ${UNIT_TEST_TAGS} ./... | grep -v "/vendor/src") SDK_ONLY_PKGS=$(shell go list ./... | grep -v "/vendor/") +SDK_UNIT_TEST_ONLY_PKGS=$(shell go list -tags ${UNIT_TEST_TAGS} ./... | grep -v "/vendor/") SDK_GO_1_4=$(shell go version | grep "go1.4") SDK_GO_1_5=$(shell go version | grep "go1.5") SDK_GO_VERSION=$(shell go version | awk '''{print $$3}''' | tr -d '''\n''') @@ -47,15 +49,15 @@ gen-endpoints: build: @echo "go build SDK and vendor packages" - @go build -tags example,codegen ${SDK_ONLY_PKGS} + @go build ${SDK_ONLY_PKGS} unit: get-deps-tests build verify @echo "go test SDK and vendor packages" - @go test -tags example,codegen $(SDK_ONLY_PKGS) + @go test -tags ${UNIT_TEST_TAGS} $(SDK_UNIT_TEST_ONLY_PKGS) unit-with-race-cover: get-deps-tests build verify @echo "go test SDK and vendor packages" - @go test -tags example,codegen -race -cpu=1,2,4 $(SDK_ONLY_PKGS) + @go test -tags ${UNIT_TEST_TAGS} -race -cpu=1,2,4 $(SDK_UNIT_TEST_ONLY_PKGS) integration: get-deps-tests integ-custom smoke-tests performance @@ -128,6 +130,7 @@ get-deps-tests: go get github.com/gucumber/gucumber/cmd/gucumber go get github.com/stretchr/testify go get github.com/smartystreets/goconvey + go get golang.org/x/net/html get-deps-verify: @echo "go get SDK verification utilities" diff --git a/vendor/github.com/aws/aws-sdk-go/README.md b/vendor/github.com/aws/aws-sdk-go/README.md index b4d302e31..df806f403 100644 --- a/vendor/github.com/aws/aws-sdk-go/README.md +++ b/vendor/github.com/aws/aws-sdk-go/README.md @@ -17,7 +17,7 @@ If you are using Go 1.5 with the `GO15VENDOREXPERIMENT=1` vendoring flag, or 1.6 go get -u github.com/aws/aws-sdk-go -Otherwise if your Go environment does not have vendoring support enabled, or you do not want to include the vendored SDK's dependencies you can use the following command to retrieve the SDK and its non-testing dependencies using `go get`. +Otherwise if your Go environment does not have vendoring support enabled, or you do not want to include the vendored SDK's dependencies you can use the following command to retrieve the SDK and its non-testing dependencies using `go get`. go get -u github.com/aws/aws-sdk-go/aws/... go get -u github.com/aws/aws-sdk-go/service/... @@ -25,7 +25,7 @@ Otherwise if your Go environment does not have vendoring support enabled, or you If you're looking to retrieve just the SDK without any dependencies use the following command. go get -d github.com/aws/aws-sdk-go/ - + These two processes will still include the `vendor` folder and it should be deleted if its not going to be used by your environment. rm -rf $GOPATH/src/github.com/aws/aws-sdk-go/vendor @@ -84,10 +84,15 @@ import ( ) func main() { + sess, err := session.NewSession() + if err != nil { + panic(err) + } + // Create an EC2 service object in the "us-west-2" region // Note that you can also configure your region globally by // exporting the AWS_REGION environment variable - svc := ec2.New(session.New(), &aws.Config{Region: aws.String("us-west-2")}) + svc := ec2.New(sess, &aws.Config{Region: aws.String("us-west-2")}) // Call the DescribeInstances Operation resp, err := svc.DescribeInstances(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go index fc38172fe..710eb432f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go @@ -61,6 +61,12 @@ func prettify(v reflect.Value, indent int, buf *bytes.Buffer) { buf.WriteString("\n" + strings.Repeat(" ", indent) + "}") case reflect.Slice: + strtype := v.Type().String() + if strtype == "[]uint8" { + fmt.Fprintf(buf, " len %d", v.Len()) + break + } + nl, id, id2 := "", "", "" if v.Len() > 3 { nl, id, id2 = "\n", strings.Repeat(" ", indent), strings.Repeat(" ", indent+2) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/config.go b/vendor/github.com/aws/aws-sdk-go/aws/config.go index 34c2bab33..bf23d1e45 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/config.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/config.go @@ -182,6 +182,19 @@ type Config struct { // the delay of a request see the aws/client.DefaultRetryer and // aws/request.Retryer. SleepDelay func(time.Duration) + + // DisableRestProtocolURICleaning will not clean the URL path when making rest protocol requests. + // Will default to false. This would only be used for empty directory names in s3 requests. + // + // Example: + // sess, err := session.NewSession(&aws.Config{DisableRestProtocolURICleaning: aws.Bool(true)) + // + // svc := s3.New(sess) + // out, err := svc.GetObject(&s3.GetObjectInput { + // Bucket: aws.String("bucketname"), + // Key: aws.String("//foo//bar//moo"), + // }) + DisableRestProtocolURICleaning *bool } // NewConfig returns a new Config pointer that can be chained with builder @@ -403,6 +416,10 @@ func mergeInConfig(dst *Config, other *Config) { if other.SleepDelay != nil { dst.SleepDelay = other.SleepDelay } + + if other.DisableRestProtocolURICleaning != nil { + dst.DisableRestProtocolURICleaning = other.DisableRestProtocolURICleaning + } } // Copy will return a shallow copy of the Config object. If any additional diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go index aa9d689a0..c39749524 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go @@ -111,7 +111,7 @@ func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) { }, nil } -// A ec2RoleCredRespBody provides the shape for unmarshalling credential +// A ec2RoleCredRespBody provides the shape for unmarshaling credential // request responses. type ec2RoleCredRespBody struct { // Success State diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go index e5755d11b..984407a58 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go @@ -133,7 +133,7 @@ func (c *EC2Metadata) Available() bool { return true } -// An EC2IAMInfo provides the shape for unmarshalling +// An EC2IAMInfo provides the shape for unmarshaling // an IAM info from the metadata API type EC2IAMInfo struct { Code string @@ -142,7 +142,7 @@ type EC2IAMInfo struct { InstanceProfileID string } -// An EC2InstanceIdentityDocument provides the shape for unmarshalling +// An EC2InstanceIdentityDocument provides the shape for unmarshaling // an instance identity document type EC2InstanceIdentityDocument struct { DevpayProductCodes []string `json:"devpayProductCodes"` diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go b/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go index 097d3237b..d3dc8404e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go @@ -66,7 +66,7 @@ through code instead of being driven by environment variables only. Use NewSessionWithOptions when you want to provide the config profile, or override the shared config state (AWS_SDK_LOAD_CONFIG). - // Equivalent to session.New + // Equivalent to session.NewSession() sess, err := session.NewSessionWithOptions(session.Options{}) // Specify profile to load for the session's config diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go index 986530b40..90fe1ffaf 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go @@ -300,6 +300,10 @@ func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, regi DisableURIPathEscaping: v4.DisableURIPathEscaping, } + for key := range ctx.Query { + sort.Strings(ctx.Query[key]) + } + if ctx.isRequestSigned() { ctx.Time = currentTimeFn() ctx.handlePresignRemoval() diff --git a/vendor/github.com/aws/aws-sdk-go/aws/version.go b/vendor/github.com/aws/aws-sdk-go/aws/version.go index 4434e0492..949244002 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/version.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.4.17" +const SDKVersion = "1.5.8" diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json index c5bf3c7c3..5594f2efd 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json +++ b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json @@ -23,6 +23,10 @@ "us-gov-west-1/ec2metadata": { "endpoint": "http://169.254.169.254/latest" }, + "*/budgets": { + "endpoint": "budgets.amazonaws.com", + "signingRegion": "us-east-1" + }, "*/cloudfront": { "endpoint": "cloudfront.amazonaws.com", "signingRegion": "us-east-1" diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go index a81d158c3..e79e6782a 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go +++ b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go @@ -18,6 +18,10 @@ var endpointsMap = endpointStruct{ "*/*": { Endpoint: "{service}.{region}.amazonaws.com", }, + "*/budgets": { + Endpoint: "budgets.amazonaws.com", + SigningRegion: "us-east-1", + }, "*/cloudfront": { Endpoint: "cloudfront.amazonaws.com", SigningRegion: "us-east-1", diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go index 5f412516d..f5e860753 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go @@ -14,6 +14,7 @@ import ( "strings" "time" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" ) @@ -92,7 +93,7 @@ func buildLocationElements(r *request.Request, v reflect.Value) { } r.HTTPRequest.URL.RawQuery = query.Encode() - updatePath(r.HTTPRequest.URL, r.HTTPRequest.URL.Path) + updatePath(r.HTTPRequest.URL, r.HTTPRequest.URL.Path, aws.BoolValue(r.Config.DisableRestProtocolURICleaning)) } func buildBody(r *request.Request, v reflect.Value) { @@ -193,13 +194,15 @@ func buildQueryString(query url.Values, v reflect.Value, name string) error { return nil } -func updatePath(url *url.URL, urlPath string) { +func updatePath(url *url.URL, urlPath string, disableRestProtocolURICleaning bool) { scheme, query := url.Scheme, url.RawQuery hasSlash := strings.HasSuffix(urlPath, "/") // clean up path - urlPath = path.Clean(urlPath) + if !disableRestProtocolURICleaning { + urlPath = path.Clean(urlPath) + } if hasSlash && !strings.HasSuffix(urlPath, "/") { urlPath += "/" } diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go index 8e828815c..bd4c4fb6e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go @@ -20,6 +20,8 @@ const opAddTagsToCertificate = "AddTagsToCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,6 +58,8 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req return } +// AddTagsToCertificate API operation for AWS Certificate Manager. +// // Adds one or more tags to an ACM Certificate. Tags are labels that you can // use to identify and organize your AWS resources. Each tag consists of a key // and an optional value. You specify the certificate on input by its Amazon @@ -73,6 +77,29 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req // To remove one or more tags, use the RemoveTagsFromCertificate action. To // view all of the tags that have been applied to the certificate, use the ListTagsForCertificate // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation AddTagsToCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// +// * InvalidTagException +// One or both of the values that make up the key-value pair is not valid. For +// example, you cannot specify a tag value that begins with aws:. +// +// * TooManyTagsException +// The request contains too many tags. Try the request again with fewer tags. +// func (c *ACM) AddTagsToCertificate(input *AddTagsToCertificateInput) (*AddTagsToCertificateOutput, error) { req, out := c.AddTagsToCertificateRequest(input) err := req.Send() @@ -86,6 +113,8 @@ const opDeleteCertificate = "DeleteCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -122,15 +151,37 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ return } +// DeleteCertificate API operation for AWS Certificate Manager. +// // Deletes an ACM Certificate and its associated private key. If this action // succeeds, the certificate no longer appears in the list of ACM Certificates // that can be displayed by calling the ListCertificates action or be retrieved // by calling the GetCertificate action. The certificate will not be available // for use by other AWS services. // -// You cannot delete an ACM Certificate that is being used by another AWS -// service. To delete a certificate that is in use, the certificate association -// must first be removed. +// You cannot delete an ACM Certificate that is being used by another AWS service. +// To delete a certificate that is in use, the certificate association must +// first be removed. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation DeleteCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * ResourceInUseException +// The certificate is in use by another AWS service in the caller's account. +// Remove the association and try again. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ACM) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -144,6 +195,8 @@ const opDescribeCertificate = "DescribeCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -178,11 +231,29 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req * return } +// DescribeCertificate API operation for AWS Certificate Manager. +// // Returns a list of the fields contained in the specified ACM Certificate. // For example, this action returns the certificate status, a flag that indicates // whether the certificate is associated with any other AWS service, and the // date at which the certificate request was created. You specify the ACM Certificate // on input by its Amazon Resource Name (ARN). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation DescribeCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ACM) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { req, out := c.DescribeCertificateRequest(input) err := req.Send() @@ -196,6 +267,8 @@ const opGetCertificate = "GetCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -230,6 +303,8 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re return } +// GetCertificate API operation for AWS Certificate Manager. +// // 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 // root certificate, intermediate certificates of subordinate CAs, and the ACM @@ -237,14 +312,131 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re // you want to decode the certificate chain to see the individual certificate // fields, you can use OpenSSL. // -// Currently, ACM Certificates can be used only with Elastic Load Balancing +// 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 +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation GetCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * RequestInProgressException +// The certificate request is in process and the certificate in your account +// has not yet been issued. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ACM) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error) { req, out := c.GetCertificateRequest(input) err := req.Send() return out, err } +const opImportCertificate = "ImportCertificate" + +// ImportCertificateRequest generates a "aws/request.Request" representing the +// client's request for the ImportCertificate operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ImportCertificate for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ImportCertificate method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ImportCertificateRequest method. +// req, resp := client.ImportCertificateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput) { + op := &request.Operation{ + Name: opImportCertificate, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ImportCertificateInput{} + } + + req = c.newRequest(op, input, output) + output = &ImportCertificateOutput{} + req.Data = output + return +} + +// ImportCertificate API operation for AWS Certificate Manager. +// +// Imports an SSL/TLS certificate into AWS Certificate Manager (ACM) to use +// with ACM's integrated AWS services (http://docs.aws.amazon.com/acm/latest/userguide/acm-services.html). +// +// ACM does not provide managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) +// for certificates that you import. +// +// For more information about importing certificates into ACM, including the +// 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) +// in the AWS Certificate Manager User Guide. +// +// To import a certificate, you must provide the certificate and the matching +// private key. When the certificate is not self-signed, you must also provide +// a certificate chain. You can omit the certificate chain when importing a +// self-signed certificate. +// +// The certificate, private key, and certificate chain must be PEM-encoded. +// For more information about converting these items to PEM format, see Importing +// Certificates Troubleshooting (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html#import-certificate-troubleshooting) +// in the AWS Certificate Manager User Guide. +// +// To import a new certificate, omit the CertificateArn field. Include this +// field only when you want to replace a previously imported certificate. +// +// 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation ImportCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * LimitExceededException +// An ACM limit has been exceeded. For example, you may have input more domains +// than are allowed or you've requested too many certificates for your account. +// See the exception message returned by ACM to determine which limit you have +// violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html) +// topic. +// +func (c *ACM) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) { + req, out := c.ImportCertificateRequest(input) + err := req.Send() + return out, err +} + const opListCertificates = "ListCertificates" // ListCertificatesRequest generates a "aws/request.Request" representing the @@ -252,6 +444,8 @@ const opListCertificates = "ListCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -292,9 +486,18 @@ func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *reques return } +// ListCertificates API operation for AWS Certificate Manager. +// // Retrieves a list of ACM Certificates and the domain name for each. You can // optionally filter the list to return only the certificates that match the // specified status. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation ListCertificates for usage and error information. func (c *ACM) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { req, out := c.ListCertificatesRequest(input) err := req.Send() @@ -333,6 +536,8 @@ const opListTagsForCertificate = "ListTagsForCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -367,10 +572,28 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) return } +// ListTagsForCertificate API operation for AWS Certificate Manager. +// // Lists the tags that have been applied to the ACM Certificate. Use the certificate // ARN to specify the certificate. To add a tag to an ACM Certificate, use the // AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation ListTagsForCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ACM) ListTagsForCertificate(input *ListTagsForCertificateInput) (*ListTagsForCertificateOutput, error) { req, out := c.ListTagsForCertificateRequest(input) err := req.Send() @@ -384,6 +607,8 @@ const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -420,6 +645,8 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI return } +// RemoveTagsFromCertificate API operation for AWS Certificate Manager. +// // Remove one or more tags from an ACM Certificate. A tag consists of a key-value // pair. If you do not specify the value portion of the tag when calling this // function, the tag will be removed regardless of value. If you specify a value, @@ -428,6 +655,26 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI // To add tags to a certificate, use the AddTagsToCertificate action. To view // all of the tags that have been applied to a specific ACM Certificate, use // the ListTagsForCertificate action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation RemoveTagsFromCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// +// * InvalidTagException +// One or both of the values that make up the key-value pair is not valid. For +// example, you cannot specify a tag value that begins with aws:. +// func (c *ACM) RemoveTagsFromCertificate(input *RemoveTagsFromCertificateInput) (*RemoveTagsFromCertificateOutput, error) { req, out := c.RemoveTagsFromCertificateRequest(input) err := req.Send() @@ -441,6 +688,8 @@ const opRequestCertificate = "RequestCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See RequestCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -475,13 +724,34 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re return } +// RequestCertificate API operation for AWS Certificate Manager. +// // Requests an ACM Certificate for use with other AWS services. To request an // 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 // site by using other names. For each domain name you specify, email is sent // to the domain owner to request approval to issue the certificate. 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/overview.html). +// 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 +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation RequestCertificate for usage and error information. +// +// Returned Error Codes: +// * LimitExceededException +// An ACM limit has been exceeded. For example, you may have input more domains +// than are allowed or you've requested too many certificates for your account. +// See the exception message returned by ACM to determine which limit you have +// violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html) +// topic. +// +// * InvalidDomainValidationOptionsException +// One or more values in the DomainValidationOption structure is incorrect. +// func (c *ACM) RequestCertificate(input *RequestCertificateInput) (*RequestCertificateOutput, error) { req, out := c.RequestCertificateRequest(input) err := req.Send() @@ -495,6 +765,8 @@ const opResendValidationEmail = "ResendValidationEmail" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResendValidationEmail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -531,6 +803,8 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r return } +// ResendValidationEmail API operation for AWS Certificate Manager. +// // Resends the email that requests domain ownership validation. The domain owner // or an authorized representative must approve the ACM Certificate before it // can be issued. The certificate can be approved by clicking a link in the @@ -540,6 +814,31 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r // the mail be resent within 72 hours of requesting the ACM Certificate. If // more than 72 hours have elapsed since your original request or since your // last attempt to resend validation mail, you must request a new certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation ResendValidationEmail for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidStateException +// Processing has reached an invalid state. For example, this exception can +// occur if the specified domain is not using email validation, or the current +// certificate status does not permit the requested operation. See the exception +// message returned by ACM to determine which state is not valid. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// +// * InvalidDomainValidationOptionsException +// One or more values in the DomainValidationOption structure is incorrect. +// func (c *ACM) ResendValidationEmail(input *ResendValidationEmailInput) (*ResendValidationEmailOutput, error) { req, out := c.ResendValidationEmailRequest(input) err := req.Send() @@ -552,13 +851,17 @@ type AddTagsToCertificateInput struct { // String that contains the ARN of the ACM Certificate to which the tag is to // be applied. This must be of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // + // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // The key-value pair that defines the tag. The tag value is optional. + // + // Tags is a required field Tags []*Tag `min:"1" type:"list" required:"true"` } @@ -604,6 +907,18 @@ func (s *AddTagsToCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *AddTagsToCertificateInput) SetCertificateArn(v string) *AddTagsToCertificateInput { + s.CertificateArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToCertificateInput) SetTags(v []*Tag) *AddTagsToCertificateInput { + s.Tags = v + return s +} + type AddTagsToCertificateOutput struct { _ struct{} `type:"structure"` } @@ -624,38 +939,45 @@ type CertificateDetail struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the certificate. For more information about - // ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // in the AWS General Reference. CertificateArn *string `min:"20" type:"string"` - // The time at which the certificate was requested. + // The time at which the certificate was requested. This value exists only when + // the certificate type is AMAZON_ISSUED. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` - // The fully qualified domain name (FQDN) for the certificate, such as www.example.com + // The fully qualified domain name for the certificate, such as www.example.com // or example.com. DomainName *string `min:"1" type:"string"` // Contains information about the email address or addresses used for domain - // validation. + // validation. This field exists only when the certificate type is AMAZON_ISSUED. DomainValidationOptions []*DomainValidation `min:"1" type:"list"` // The reason the certificate request failed. This value exists only when the - // structure's Status is FAILED. For more information, see Certificate Request + // certificate status is FAILED. For more information, see Certificate Request // Failed (http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed) // in the AWS Certificate Manager User Guide. FailureReason *string `type:"string" enum:"FailureReason"` - // A list of ARNs for the resources that are using the certificate. An ACM Certificate + // The date and time at which the certificate was imported. This value exists + // only when the certificate type is IMPORTED. + ImportedAt *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A list of ARNs for the AWS resources that are using the certificate. A certificate // can be used by multiple AWS resources. InUseBy []*string `type:"list"` - // The time at which the certificate was issued. + // The time at which the certificate was issued. This value exists only when + // the certificate type is AMAZON_ISSUED. IssuedAt *time.Time `type:"timestamp" timestampFormat:"unix"` - // The X.500 distinguished name of the CA that issued and signed the certificate. + // The name of the certificate authority that issued and signed the certificate. Issuer *string `type:"string"` - // The algorithm used to generate the key pair (the public and private key). - // Currently the only supported value is RSA_2048. + // The algorithm that was used to generate the key pair (the public and private + // key). KeyAlgorithm *string `type:"string" enum:"KeyAlgorithm"` // The time after which the certificate is not valid. @@ -675,23 +997,31 @@ type CertificateDetail struct { // The serial number of the certificate. Serial *string `type:"string"` - // The algorithm used to generate a signature. Currently the only supported - // value is SHA256WITHRSA. + // The algorithm that was used to sign the certificate. SignatureAlgorithm *string `type:"string"` // The status of the certificate. Status *string `type:"string" enum:"CertificateStatus"` - // The X.500 distinguished name of the entity associated with the public key - // contained in the certificate. + // The name of the entity that is associated with the public key contained in + // the certificate. Subject *string `type:"string"` - // One or more domain names (subject alternative names) included in the certificate - // request. After the certificate is issued, this list includes the domain names - // bound to the public key contained in the certificate. The subject alternative - // names include the canonical domain name (CN) of the certificate and additional - // domain names that can be used to connect to the website. + // One or more domain names (subject alternative names) included in the certificate. + // This list contains the domain names that are bound to the public key that + // is contained in the certificate. The subject alternative names include the + // canonical domain name (CN) of the certificate and additional domain names + // that can be used to connect to the website. SubjectAlternativeNames []*string `min:"1" type:"list"` + + // The source of the certificate. For certificates provided by ACM, this value + // is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, + // this value is IMPORTED. ACM does not provide managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) + // for imported certificates. For more information about the differences between + // certificates that you import and those that ACM provides, see Importing Certificates + // (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) + // in the AWS Certificate Manager User Guide. + Type *string `type:"string" enum:"CertificateType"` } // String returns the string representation @@ -704,13 +1034,133 @@ func (s CertificateDetail) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CertificateDetail) SetCertificateArn(v string) *CertificateDetail { + s.CertificateArn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CertificateDetail) SetCreatedAt(v time.Time) *CertificateDetail { + s.CreatedAt = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CertificateDetail) SetDomainName(v string) *CertificateDetail { + s.DomainName = &v + return s +} + +// SetDomainValidationOptions sets the DomainValidationOptions field's value. +func (s *CertificateDetail) SetDomainValidationOptions(v []*DomainValidation) *CertificateDetail { + s.DomainValidationOptions = v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *CertificateDetail) SetFailureReason(v string) *CertificateDetail { + s.FailureReason = &v + return s +} + +// SetImportedAt sets the ImportedAt field's value. +func (s *CertificateDetail) SetImportedAt(v time.Time) *CertificateDetail { + s.ImportedAt = &v + return s +} + +// SetInUseBy sets the InUseBy field's value. +func (s *CertificateDetail) SetInUseBy(v []*string) *CertificateDetail { + s.InUseBy = v + return s +} + +// SetIssuedAt sets the IssuedAt field's value. +func (s *CertificateDetail) SetIssuedAt(v time.Time) *CertificateDetail { + s.IssuedAt = &v + return s +} + +// SetIssuer sets the Issuer field's value. +func (s *CertificateDetail) SetIssuer(v string) *CertificateDetail { + s.Issuer = &v + return s +} + +// SetKeyAlgorithm sets the KeyAlgorithm field's value. +func (s *CertificateDetail) SetKeyAlgorithm(v string) *CertificateDetail { + s.KeyAlgorithm = &v + return s +} + +// SetNotAfter sets the NotAfter field's value. +func (s *CertificateDetail) SetNotAfter(v time.Time) *CertificateDetail { + s.NotAfter = &v + return s +} + +// SetNotBefore sets the NotBefore field's value. +func (s *CertificateDetail) SetNotBefore(v time.Time) *CertificateDetail { + s.NotBefore = &v + return s +} + +// SetRevocationReason sets the RevocationReason field's value. +func (s *CertificateDetail) SetRevocationReason(v string) *CertificateDetail { + s.RevocationReason = &v + return s +} + +// SetRevokedAt sets the RevokedAt field's value. +func (s *CertificateDetail) SetRevokedAt(v time.Time) *CertificateDetail { + s.RevokedAt = &v + return s +} + +// SetSerial sets the Serial field's value. +func (s *CertificateDetail) SetSerial(v string) *CertificateDetail { + s.Serial = &v + return s +} + +// SetSignatureAlgorithm sets the SignatureAlgorithm field's value. +func (s *CertificateDetail) SetSignatureAlgorithm(v string) *CertificateDetail { + s.SignatureAlgorithm = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CertificateDetail) SetStatus(v string) *CertificateDetail { + s.Status = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *CertificateDetail) SetSubject(v string) *CertificateDetail { + s.Subject = &v + return s +} + +// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value. +func (s *CertificateDetail) SetSubjectAlternativeNames(v []*string) *CertificateDetail { + s.SubjectAlternativeNames = v + return s +} + +// SetType sets the Type field's value. +func (s *CertificateDetail) SetType(v string) *CertificateDetail { + s.Type = &v + return s +} + // This structure is returned in the response object of ListCertificates action. type CertificateSummary struct { _ struct{} `type:"structure"` // Amazon Resource Name (ARN) of the certificate. This is of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). @@ -731,16 +1181,30 @@ func (s CertificateSummary) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CertificateSummary) SetCertificateArn(v string) *CertificateSummary { + s.CertificateArn = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CertificateSummary) SetDomainName(v string) *CertificateSummary { + s.DomainName = &v + return s +} + type DeleteCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate to be deleted. This must // be of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // + // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` } @@ -770,6 +1234,12 @@ func (s *DeleteCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *DeleteCertificateInput) SetCertificateArn(v string) *DeleteCertificateInput { + s.CertificateArn = &v + return s +} + type DeleteCertificateOutput struct { _ struct{} `type:"structure"` } @@ -789,10 +1259,12 @@ type DescribeCertificateInput struct { // String that contains an ACM Certificate ARN. The ARN must be of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // + // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` } @@ -822,6 +1294,12 @@ func (s *DescribeCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *DescribeCertificateInput) SetCertificateArn(v string) *DescribeCertificateInput { + s.CertificateArn = &v + return s +} + type DescribeCertificateOutput struct { _ struct{} `type:"structure"` @@ -839,13 +1317,21 @@ func (s DescribeCertificateOutput) GoString() string { return s.String() } +// SetCertificate sets the Certificate field's value. +func (s *DescribeCertificateOutput) SetCertificate(v *CertificateDetail) *DescribeCertificateOutput { + s.Certificate = v + return s +} + // Structure that contains the domain name, the base validation domain to which // validation email is sent, and the email addresses used to validate the domain // identity. type DomainValidation struct { _ struct{} `type:"structure"` - // Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com. + // Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com. + // + // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // The base validation domain that acts as the suffix of the email addresses @@ -866,11 +1352,31 @@ func (s DomainValidation) GoString() string { return s.String() } +// SetDomainName sets the DomainName field's value. +func (s *DomainValidation) SetDomainName(v string) *DomainValidation { + s.DomainName = &v + return s +} + +// SetValidationDomain sets the ValidationDomain field's value. +func (s *DomainValidation) SetValidationDomain(v string) *DomainValidation { + s.ValidationDomain = &v + return s +} + +// SetValidationEmails sets the ValidationEmails field's value. +func (s *DomainValidation) SetValidationEmails(v []*string) *DomainValidation { + s.ValidationEmails = v + return s +} + // This structure is used in the request object of the RequestCertificate action. type DomainValidationOption struct { _ struct{} `type:"structure"` // Fully Qualified Domain Name (FQDN) of the certificate being requested. + // + // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // The domain to which validation email is sent. This is the base validation @@ -881,15 +1387,17 @@ type DomainValidationOption struct { // domain registrant, technical contact, and administrative contact in WHOIS // for the base domain and the following five addresses: // - // admin@subdomain.example.com + // * admin@subdomain.example.com // - // administrator@subdomain.example.com + // * administrator@subdomain.example.com // - // hostmaster@subdomain.example.com + // * hostmaster@subdomain.example.com // - // postmaster@subdomain.example.com + // * postmaster@subdomain.example.com // - // webmaster@subdomain.example.com + // * webmaster@subdomain.example.com + // + // ValidationDomain is a required field ValidationDomain *string `min:"1" type:"string" required:"true"` } @@ -925,15 +1433,29 @@ func (s *DomainValidationOption) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DomainValidationOption) SetDomainName(v string) *DomainValidationOption { + s.DomainName = &v + return s +} + +// SetValidationDomain sets the ValidationDomain field's value. +func (s *DomainValidationOption) SetValidationDomain(v string) *DomainValidationOption { + s.ValidationDomain = &v + return s +} + type GetCertificateInput struct { _ struct{} `type:"structure"` // String that contains a certificate ARN in the following format: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // + // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` } @@ -963,6 +1485,12 @@ func (s *GetCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *GetCertificateInput) SetCertificateArn(v string) *GetCertificateInput { + s.CertificateArn = &v + return s +} + type GetCertificateOutput struct { _ struct{} `type:"structure"` @@ -985,6 +1513,146 @@ func (s GetCertificateOutput) GoString() string { return s.String() } +// SetCertificate sets the Certificate field's value. +func (s *GetCertificateOutput) SetCertificate(v string) *GetCertificateOutput { + s.Certificate = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *GetCertificateOutput) SetCertificateChain(v string) *GetCertificateOutput { + s.CertificateChain = &v + return s +} + +type ImportCertificateInput struct { + _ struct{} `type:"structure"` + + // The certificate to import. It must meet the following requirements: + // + // * Must be PEM-encoded. + // + // * Must contain a 1024-bit or 2048-bit RSA public key. + // + // * Must be valid at the time of import. You cannot import a certificate + // before its validity period begins (the certificate's NotBefore date) or + // after it expires (the certificate's NotAfter date). + // + // Certificate is automatically base64 encoded/decoded by the SDK. + // + // Certificate is a required field + Certificate []byte `min:"1" type:"blob" required:"true"` + + // The Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // of an imported certificate to replace. To import a new certificate, omit + // this field. + CertificateArn *string `min:"20" type:"string"` + + // The certificate chain. It must be PEM-encoded. + // + // CertificateChain is automatically base64 encoded/decoded by the SDK. + CertificateChain []byte `min:"1" type:"blob"` + + // The private key that matches the public key in the certificate. It must meet + // the following requirements: + // + // * Must be PEM-encoded. + // + // * Must be unencrypted. You cannot import a private key that is protected + // by a password or passphrase. + // + // PrivateKey is automatically base64 encoded/decoded by the SDK. + // + // PrivateKey is a required field + PrivateKey []byte `min:"1" type:"blob" required:"true"` +} + +// String returns the string representation +func (s ImportCertificateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportCertificateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportCertificateInput"} + if s.Certificate == nil { + invalidParams.Add(request.NewErrParamRequired("Certificate")) + } + if s.Certificate != nil && len(s.Certificate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Certificate", 1)) + } + if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) + } + if s.CertificateChain != nil && len(s.CertificateChain) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CertificateChain", 1)) + } + if s.PrivateKey == nil { + invalidParams.Add(request.NewErrParamRequired("PrivateKey")) + } + if s.PrivateKey != nil && len(s.PrivateKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PrivateKey", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificate sets the Certificate field's value. +func (s *ImportCertificateInput) SetCertificate(v []byte) *ImportCertificateInput { + s.Certificate = v + return s +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *ImportCertificateInput) SetCertificateArn(v string) *ImportCertificateInput { + s.CertificateArn = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *ImportCertificateInput) SetCertificateChain(v []byte) *ImportCertificateInput { + s.CertificateChain = v + return s +} + +// SetPrivateKey sets the PrivateKey field's value. +func (s *ImportCertificateInput) SetPrivateKey(v []byte) *ImportCertificateInput { + s.PrivateKey = v + return s +} + +type ImportCertificateOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // of the imported certificate. + CertificateArn *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s ImportCertificateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportCertificateOutput) GoString() string { + return s.String() +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *ImportCertificateOutput) SetCertificateArn(v string) *ImportCertificateOutput { + s.CertificateArn = &v + return s +} + type ListCertificatesInput struct { _ struct{} `type:"structure"` @@ -1029,6 +1697,24 @@ func (s *ListCertificatesInput) Validate() error { return nil } +// SetCertificateStatuses sets the CertificateStatuses field's value. +func (s *ListCertificatesInput) SetCertificateStatuses(v []*string) *ListCertificatesInput { + s.CertificateStatuses = v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListCertificatesInput) SetMaxItems(v int64) *ListCertificatesInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCertificatesInput) SetNextToken(v string) *ListCertificatesInput { + s.NextToken = &v + return s +} + type ListCertificatesOutput struct { _ struct{} `type:"structure"` @@ -1050,16 +1736,30 @@ func (s ListCertificatesOutput) GoString() string { return s.String() } +// SetCertificateSummaryList sets the CertificateSummaryList field's value. +func (s *ListCertificatesOutput) SetCertificateSummaryList(v []*CertificateSummary) *ListCertificatesOutput { + s.CertificateSummaryList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCertificatesOutput) SetNextToken(v string) *ListCertificatesOutput { + s.NextToken = &v + return s +} + type ListTagsForCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate for which you want to // list the tags. This must be of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // + // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` } @@ -1089,6 +1789,12 @@ func (s *ListTagsForCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *ListTagsForCertificateInput) SetCertificateArn(v string) *ListTagsForCertificateInput { + s.CertificateArn = &v + return s +} + type ListTagsForCertificateOutput struct { _ struct{} `type:"structure"` @@ -1106,19 +1812,29 @@ func (s ListTagsForCertificateOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *ListTagsForCertificateOutput) SetTags(v []*Tag) *ListTagsForCertificateOutput { + s.Tags = v + return s +} + type RemoveTagsFromCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate with one or more tags // that you want to remove. This must be of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // + // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // The key-value pair that defines the tag to remove. + // + // Tags is a required field Tags []*Tag `min:"1" type:"list" required:"true"` } @@ -1164,6 +1880,18 @@ func (s *RemoveTagsFromCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *RemoveTagsFromCertificateInput) SetCertificateArn(v string) *RemoveTagsFromCertificateInput { + s.CertificateArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RemoveTagsFromCertificateInput) SetTags(v []*Tag) *RemoveTagsFromCertificateInput { + s.Tags = v + return s +} + type RemoveTagsFromCertificateOutput struct { _ struct{} `type:"structure"` } @@ -1185,6 +1913,8 @@ type RequestCertificateInput struct { // you want to secure with an ACM Certificate. Use an asterisk (*) to create // a wildcard certificate that protects several sites in the same domain. For // example, *.example.com protects www.example.com, site.example.com, and images.example.com. + // + // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // The base validation domain that will act as the suffix of the email addresses @@ -1194,15 +1924,15 @@ type RequestCertificateInput struct { // ACM sends email to the domain registrant, technical contact, and administrative // contact in WHOIS and the following five addresses: // - // admin@example.com + // * admin@example.com // - // administrator@example.com + // * administrator@example.com // - // hostmaster@example.com + // * hostmaster@example.com // - // postmaster@example.com + // * postmaster@example.com // - // webmaster@example.com + // * webmaster@example.com DomainValidationOptions []*DomainValidationOption `min:"1" type:"list"` // Customer chosen string that can be used to distinguish between calls to RequestCertificate. @@ -1265,13 +1995,37 @@ func (s *RequestCertificateInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *RequestCertificateInput) SetDomainName(v string) *RequestCertificateInput { + s.DomainName = &v + return s +} + +// SetDomainValidationOptions sets the DomainValidationOptions field's value. +func (s *RequestCertificateInput) SetDomainValidationOptions(v []*DomainValidationOption) *RequestCertificateInput { + s.DomainValidationOptions = v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *RequestCertificateInput) SetIdempotencyToken(v string) *RequestCertificateInput { + s.IdempotencyToken = &v + return s +} + +// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value. +func (s *RequestCertificateInput) SetSubjectAlternativeNames(v []*string) *RequestCertificateInput { + s.SubjectAlternativeNames = v + return s +} + type RequestCertificateOutput struct { _ struct{} `type:"structure"` // String that contains the ARN of the issued certificate. This must be of the // form: // - // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 CertificateArn *string `min:"20" type:"string"` } @@ -1285,6 +2039,12 @@ func (s RequestCertificateOutput) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *RequestCertificateOutput) SetCertificateArn(v string) *RequestCertificateOutput { + s.CertificateArn = &v + return s +} + type ResendValidationEmailInput struct { _ struct{} `type:"structure"` @@ -1295,11 +2055,15 @@ type ResendValidationEmailInput struct { // // The ARN must be of the form: // - // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // + // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // The Fully Qualified Domain Name (FQDN) of the certificate that needs to be // validated. + // + // Domain is a required field Domain *string `min:"1" type:"string" required:"true"` // The base validation domain that will act as the suffix of the email addresses @@ -1309,15 +2073,17 @@ type ResendValidationEmailInput struct { // ACM sends email to the domain registrant, technical contact, and administrative // contact in WHOIS and the following five addresses: // - // admin@subdomain.example.com + // * admin@subdomain.example.com // - // administrator@subdomain.example.com + // * administrator@subdomain.example.com // - // hostmaster@subdomain.example.com + // * hostmaster@subdomain.example.com // - // postmaster@subdomain.example.com + // * postmaster@subdomain.example.com // - // webmaster@subdomain.example.com + // * webmaster@subdomain.example.com + // + // ValidationDomain is a required field ValidationDomain *string `min:"1" type:"string" required:"true"` } @@ -1359,6 +2125,24 @@ func (s *ResendValidationEmailInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *ResendValidationEmailInput) SetCertificateArn(v string) *ResendValidationEmailInput { + s.CertificateArn = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *ResendValidationEmailInput) SetDomain(v string) *ResendValidationEmailInput { + s.Domain = &v + return s +} + +// SetValidationDomain sets the ValidationDomain field's value. +func (s *ResendValidationEmailInput) SetValidationDomain(v string) *ResendValidationEmailInput { + s.ValidationDomain = &v + return s +} + type ResendValidationEmailOutput struct { _ struct{} `type:"structure"` } @@ -1378,6 +2162,8 @@ type Tag struct { _ struct{} `type:"structure"` // The key of the tag. + // + // Key is a required field Key *string `min:"1" type:"string" required:"true"` // The value of the tag. @@ -1410,62 +2196,105 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + const ( - // @enum CertificateStatus + // CertificateStatusPendingValidation is a CertificateStatus enum value CertificateStatusPendingValidation = "PENDING_VALIDATION" - // @enum CertificateStatus + + // CertificateStatusIssued is a CertificateStatus enum value CertificateStatusIssued = "ISSUED" - // @enum CertificateStatus + + // CertificateStatusInactive is a CertificateStatus enum value CertificateStatusInactive = "INACTIVE" - // @enum CertificateStatus + + // CertificateStatusExpired is a CertificateStatus enum value CertificateStatusExpired = "EXPIRED" - // @enum CertificateStatus + + // CertificateStatusValidationTimedOut is a CertificateStatus enum value CertificateStatusValidationTimedOut = "VALIDATION_TIMED_OUT" - // @enum CertificateStatus + + // CertificateStatusRevoked is a CertificateStatus enum value CertificateStatusRevoked = "REVOKED" - // @enum CertificateStatus + + // CertificateStatusFailed is a CertificateStatus enum value CertificateStatusFailed = "FAILED" ) const ( - // @enum FailureReason + // CertificateTypeImported is a CertificateType enum value + CertificateTypeImported = "IMPORTED" + + // CertificateTypeAmazonIssued is a CertificateType enum value + CertificateTypeAmazonIssued = "AMAZON_ISSUED" +) + +const ( + // FailureReasonNoAvailableContacts is a FailureReason enum value FailureReasonNoAvailableContacts = "NO_AVAILABLE_CONTACTS" - // @enum FailureReason + + // FailureReasonAdditionalVerificationRequired is a FailureReason enum value FailureReasonAdditionalVerificationRequired = "ADDITIONAL_VERIFICATION_REQUIRED" - // @enum FailureReason + + // FailureReasonDomainNotAllowed is a FailureReason enum value FailureReasonDomainNotAllowed = "DOMAIN_NOT_ALLOWED" - // @enum FailureReason + + // FailureReasonInvalidPublicDomain is a FailureReason enum value FailureReasonInvalidPublicDomain = "INVALID_PUBLIC_DOMAIN" - // @enum FailureReason + + // FailureReasonOther is a FailureReason enum value FailureReasonOther = "OTHER" ) const ( - // @enum KeyAlgorithm + // KeyAlgorithmRsa2048 is a KeyAlgorithm enum value KeyAlgorithmRsa2048 = "RSA_2048" - // @enum KeyAlgorithm + + // KeyAlgorithmRsa1024 is a KeyAlgorithm enum value + KeyAlgorithmRsa1024 = "RSA_1024" + + // KeyAlgorithmEcPrime256v1 is a KeyAlgorithm enum value KeyAlgorithmEcPrime256v1 = "EC_prime256v1" ) const ( - // @enum RevocationReason + // RevocationReasonUnspecified is a RevocationReason enum value RevocationReasonUnspecified = "UNSPECIFIED" - // @enum RevocationReason + + // RevocationReasonKeyCompromise is a RevocationReason enum value RevocationReasonKeyCompromise = "KEY_COMPROMISE" - // @enum RevocationReason + + // RevocationReasonCaCompromise is a RevocationReason enum value RevocationReasonCaCompromise = "CA_COMPROMISE" - // @enum RevocationReason + + // RevocationReasonAffiliationChanged is a RevocationReason enum value RevocationReasonAffiliationChanged = "AFFILIATION_CHANGED" - // @enum RevocationReason + + // RevocationReasonSuperceded is a RevocationReason enum value RevocationReasonSuperceded = "SUPERCEDED" - // @enum RevocationReason + + // RevocationReasonCessationOfOperation is a RevocationReason enum value RevocationReasonCessationOfOperation = "CESSATION_OF_OPERATION" - // @enum RevocationReason + + // RevocationReasonCertificateHold is a RevocationReason enum value RevocationReasonCertificateHold = "CERTIFICATE_HOLD" - // @enum RevocationReason + + // RevocationReasonRemoveFromCrl is a RevocationReason enum value RevocationReasonRemoveFromCrl = "REMOVE_FROM_CRL" - // @enum RevocationReason + + // RevocationReasonPrivilegeWithdrawn is a RevocationReason enum value RevocationReasonPrivilegeWithdrawn = "PRIVILEGE_WITHDRAWN" - // @enum RevocationReason + + // RevocationReasonAACompromise is a RevocationReason enum value RevocationReasonAACompromise = "A_A_COMPROMISE" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/service.go b/vendor/github.com/aws/aws-sdk-go/service/acm/service.go index 782c2bbaa..1324562b1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/service.go @@ -11,14 +11,11 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// Welcome to the AWS Certificate Manager (ACM) Command Reference. This guide -// provides descriptions, syntax, and usage examples for each ACM command. You -// can use AWS Certificate Manager to request ACM Certificates for your AWS-based -// websites and applications. For general information about using ACM and for -// more information about using the console, see the AWS Certificate Manager -// User Guide (http://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html). -// For more information about using the ACM API, see the AWS Certificate Manager -// API Reference (http://docs.aws.amazon.com/acm/latest/APIReference/Welcome.html). +// Welcome to the AWS Certificate Manager (ACM) API documentation. +// +// You can use ACM to manage SSL/TLS certificates for your AWS-based websites +// and applications. For general information about using ACM, see the AWS Certificate +// Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/). //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type ACM struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go index 8b4858191..fc89f2c2f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go @@ -784,6 +784,9 @@ func (c *APIGateway) CreateUsagePlanRequest(input *CreateUsagePlanInput) (req *r // // * ConflictException +// +// * NotFoundException + // func (c *APIGateway) CreateUsagePlan(input *CreateUsagePlanInput) (*UsagePlan, error) { req, out := c.CreateUsagePlanRequest(input) @@ -4968,6 +4971,9 @@ func (c *APIGateway) GetUsagePlansRequest(input *GetUsagePlansInput) (req *reque // // * ConflictException +// +// * NotFoundException + // func (c *APIGateway) GetUsagePlans(input *GetUsagePlansInput) (*GetUsagePlansOutput, error) { req, out := c.GetUsagePlansRequest(input) @@ -5599,7 +5605,7 @@ func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInpu // Simulate the execution of an Authorizer in your RestApi with headers, parameters, // and an incoming request body. // -// Enable custom authorizers (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) +// Enable custom authorizers (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6989,15 +6995,17 @@ func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, e // Represents an AWS account that is associated with Amazon API Gateway. // -// To view the account info, call GET on this resource. +// To view the account info, call GET on this resource. // // Error Codes // // The following exception may be thrown when the request fails. // -// UnauthorizedException NotFoundException TooManyRequestsException For detailed -// error code information, including the corresponding HTTP Status Codes, see -// API Gateway Error Codes (http://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes) +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// For detailed error code information, including the corresponding HTTP Status +// Codes, see API Gateway Error Codes (http://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes) // // Example: Get the information about an account. // @@ -7005,7 +7013,8 @@ func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, e // // GET /account HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com // X-Amz-Date: 20160531T184618Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request, -// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response +// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} +// Response // // The successful response returns a 200 OK status code and a payload similar // to the following: @@ -7013,12 +7022,12 @@ func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, e // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html", // "name": "account", "templated": true }, "self": { "href": "/account" }, "account:update": // { "href": "/account" } }, "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole", -// "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } } In addition -// to making the REST API call directly, you can use the AWS CLI and an AWS -// SDK to access this resource. +// "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } } +// In addition to making the REST API call directly, you can use the AWS CLI +// and an AWS SDK to access this resource. // -// API Gateway Limits (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html) -// Developer Guide (http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html), +// API Gateway Limits (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html)Developer +// Guide (http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html), // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-account.html) type Account struct { _ struct{} `type:"structure"` @@ -7047,17 +7056,40 @@ func (s Account) GoString() string { return s.String() } +// SetApiKeyVersion sets the ApiKeyVersion field's value. +func (s *Account) SetApiKeyVersion(v string) *Account { + s.ApiKeyVersion = &v + return s +} + +// SetCloudwatchRoleArn sets the CloudwatchRoleArn field's value. +func (s *Account) SetCloudwatchRoleArn(v string) *Account { + s.CloudwatchRoleArn = &v + return s +} + +// SetFeatures sets the Features field's value. +func (s *Account) SetFeatures(v []*string) *Account { + s.Features = v + return s +} + +// SetThrottleSettings sets the ThrottleSettings field's value. +func (s *Account) SetThrottleSettings(v *ThrottleSettings) *Account { + s.ThrottleSettings = v + return s +} + // A resource that can be distributed to callers for executing Method resources // that require an API key. API keys can be mapped to any Stage on any RestApi, // which indicates that the callers with the API key can make requests to that // stage. // -// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) +// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) type ApiKey struct { _ struct{} `type:"structure"` - // The date when the API Key was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The date when the API Key was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm). CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` // The description of the API Key. @@ -7092,6 +7124,54 @@ func (s ApiKey) GoString() string { return s.String() } +// SetCreatedDate sets the CreatedDate field's value. +func (s *ApiKey) SetCreatedDate(v time.Time) *ApiKey { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ApiKey) SetDescription(v string) *ApiKey { + s.Description = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *ApiKey) SetEnabled(v bool) *ApiKey { + s.Enabled = &v + return s +} + +// SetId sets the Id field's value. +func (s *ApiKey) SetId(v string) *ApiKey { + s.Id = &v + return s +} + +// SetLastUpdatedDate sets the LastUpdatedDate field's value. +func (s *ApiKey) SetLastUpdatedDate(v time.Time) *ApiKey { + s.LastUpdatedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *ApiKey) SetName(v string) *ApiKey { + s.Name = &v + return s +} + +// SetStageKeys sets the StageKeys field's value. +func (s *ApiKey) SetStageKeys(v []*string) *ApiKey { + s.StageKeys = v + return s +} + +// SetValue sets the Value field's value. +func (s *ApiKey) SetValue(v string) *ApiKey { + s.Value = &v + return s +} + // API stage name of the associated API stage in a usage plan. type ApiStage struct { _ struct{} `type:"structure"` @@ -7113,10 +7193,22 @@ func (s ApiStage) GoString() string { return s.String() } +// SetApiId sets the ApiId field's value. +func (s *ApiStage) SetApiId(v string) *ApiStage { + s.ApiId = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *ApiStage) SetStage(v string) *ApiStage { + s.Stage = &v + return s +} + // Represents an authorization layer for methods. If enabled on a method, API // Gateway will activate the authorizer when a client calls the method. // -// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) +// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) type Authorizer struct { _ struct{} `type:"structure"` @@ -7136,22 +7228,24 @@ type Authorizer struct { AuthorizerResultTtlInSeconds *int64 `locationName:"authorizerResultTtlInSeconds" type:"integer"` // [Required] Specifies the authorizer's Uniform Resource Identifier (URI). - // For TOKEN authorizers, this must be a well-formed Lambda function URI. The - // URI should be of the form arn:aws:apigateway:{region}:lambda:path/{service_api}. - // Region is used to determine the right endpoint. In this case, path is used - // to indicate that the remaining substring in the URI should be treated as - // the path to the resource, including the initial /. For Lambda functions, - // this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations + // For TOKEN authorizers, this must be a well-formed Lambda function URI, for + // example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. + // In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, + // where {region} is the same as the region hosting the Lambda function, path + // indicates that the remaining substring in the URI should be treated as the + // path to the resource, including the initial /. For Lambda functions, this + // is usually of the form /2015-03-31/functions/[FunctionARN]/invocations. AuthorizerUri *string `locationName:"authorizerUri" type:"string"` // The identifier for the authorizer resource. Id *string `locationName:"id" type:"string"` - // [Required] The source of the identity in an incoming request. For TOKEN authorizers, - // this value is a mapping expression with the same syntax as integration parameter - // mappings. The only valid source for tokens is 'header', so the expression - // should match 'method.request.header.[headerName]'. The value of the header - // '[headerName]' will be interpreted as the incoming token. + // [Required] The source of the identity in an incoming request. For a TOKEN + // authorizer, this value is a mapping expression with the same syntax as integration + // parameter mappings. The only valid source for tokens is 'header', so the + // expression should match 'method.request.header.[headerName]'. The value of + // the header '[headerName]' will be interpreted as the incoming token. For + // COGNITO_USER_POOLS authorizers, this property is used. IdentitySource *string `locationName:"identitySource" type:"string"` // A validation expression for the incoming identity. For TOKEN authorizers, @@ -7163,11 +7257,13 @@ type Authorizer struct { // [Required] The name of the authorizer. Name *string `locationName:"name" type:"string"` - // A list of the provider ARNs of the authorizer. + // A list of the provider ARNs of the authorizer. For an TOKEN authorizer, this + // is not defined. For authorizers of the COGNITO_USER_POOLS type, each element + // corresponds to a user pool ARN of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. ProviderARNs []*string `locationName:"providerARNs" type:"list"` - // [Required] The type of the authorizer. Currently, the only valid type is - // TOKEN. + // [Required] The type of the authorizer. Currently, the valid type is TOKEN + // for a Lambda function or COGNITO_USER_POOLS for an Amazon Cognito user pool. Type *string `locationName:"type" type:"string" enum:"AuthorizerType"` } @@ -7181,11 +7277,72 @@ func (s Authorizer) GoString() string { return s.String() } +// SetAuthType sets the AuthType field's value. +func (s *Authorizer) SetAuthType(v string) *Authorizer { + s.AuthType = &v + return s +} + +// SetAuthorizerCredentials sets the AuthorizerCredentials field's value. +func (s *Authorizer) SetAuthorizerCredentials(v string) *Authorizer { + s.AuthorizerCredentials = &v + return s +} + +// SetAuthorizerResultTtlInSeconds sets the AuthorizerResultTtlInSeconds field's value. +func (s *Authorizer) SetAuthorizerResultTtlInSeconds(v int64) *Authorizer { + s.AuthorizerResultTtlInSeconds = &v + return s +} + +// SetAuthorizerUri sets the AuthorizerUri field's value. +func (s *Authorizer) SetAuthorizerUri(v string) *Authorizer { + s.AuthorizerUri = &v + return s +} + +// SetId sets the Id field's value. +func (s *Authorizer) SetId(v string) *Authorizer { + s.Id = &v + return s +} + +// SetIdentitySource sets the IdentitySource field's value. +func (s *Authorizer) SetIdentitySource(v string) *Authorizer { + s.IdentitySource = &v + return s +} + +// SetIdentityValidationExpression sets the IdentityValidationExpression field's value. +func (s *Authorizer) SetIdentityValidationExpression(v string) *Authorizer { + s.IdentityValidationExpression = &v + return s +} + +// SetName sets the Name field's value. +func (s *Authorizer) SetName(v string) *Authorizer { + s.Name = &v + return s +} + +// SetProviderARNs sets the ProviderARNs field's value. +func (s *Authorizer) SetProviderARNs(v []*string) *Authorizer { + s.ProviderARNs = v + return s +} + +// SetType sets the Type field's value. +func (s *Authorizer) SetType(v string) *Authorizer { + s.Type = &v + return s +} + // Represents the base path that callers of the API must provide as part of // the URL after the domain name. // // A custom domain name plus a BasePathMapping specification identifies a deployed -// RestApi in a given stage of the owner Account. Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +// RestApi in a given stage of the owner Account. +// Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type BasePathMapping struct { _ struct{} `type:"structure"` @@ -7210,27 +7367,43 @@ func (s BasePathMapping) GoString() string { return s.String() } +// SetBasePath sets the BasePath field's value. +func (s *BasePathMapping) SetBasePath(v string) *BasePathMapping { + s.BasePath = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *BasePathMapping) SetRestApiId(v string) *BasePathMapping { + s.RestApiId = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *BasePathMapping) SetStage(v string) *BasePathMapping { + s.Stage = &v + return s +} + // Represents a client certificate used to configure client-side SSL authentication // while sending requests to the integration endpoint. // // Client certificates are used authenticate an API by the back-end server. -// To authenticate an API client (or user), use a custom Authorizer. Use Client-Side -// Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) +// To authenticate an API client (or user), use a custom Authorizer. +// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) type ClientCertificate struct { _ struct{} `type:"structure"` // The identifier of the client certificate. ClientCertificateId *string `locationName:"clientCertificateId" type:"string"` - // The date when the client certificate was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The date when the client certificate was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm). CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` // The description of the client certificate. Description *string `locationName:"description" type:"string"` - // The date when the client certificate will expire, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The date when the client certificate will expire, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm). ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"` // The PEM-encoded public key of the client certificate, which can be used to @@ -7248,6 +7421,36 @@ func (s ClientCertificate) GoString() string { return s.String() } +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *ClientCertificate) SetClientCertificateId(v string) *ClientCertificate { + s.ClientCertificateId = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *ClientCertificate) SetCreatedDate(v time.Time) *ClientCertificate { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClientCertificate) SetDescription(v string) *ClientCertificate { + s.Description = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *ClientCertificate) SetExpirationDate(v time.Time) *ClientCertificate { + s.ExpirationDate = &v + return s +} + +// SetPemEncodedCertificate sets the PemEncodedCertificate field's value. +func (s *ClientCertificate) SetPemEncodedCertificate(v string) *ClientCertificate { + s.PemEncodedCertificate = &v + return s +} + // Request to create an ApiKey resource. type CreateApiKeyInput struct { _ struct{} `type:"structure"` @@ -7282,6 +7485,42 @@ func (s CreateApiKeyInput) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *CreateApiKeyInput) SetDescription(v string) *CreateApiKeyInput { + s.Description = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *CreateApiKeyInput) SetEnabled(v bool) *CreateApiKeyInput { + s.Enabled = &v + return s +} + +// SetGenerateDistinctId sets the GenerateDistinctId field's value. +func (s *CreateApiKeyInput) SetGenerateDistinctId(v bool) *CreateApiKeyInput { + s.GenerateDistinctId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateApiKeyInput) SetName(v string) *CreateApiKeyInput { + s.Name = &v + return s +} + +// SetStageKeys sets the StageKeys field's value. +func (s *CreateApiKeyInput) SetStageKeys(v []*StageKey) *CreateApiKeyInput { + s.StageKeys = v + return s +} + +// SetValue sets the Value field's value. +func (s *CreateApiKeyInput) SetValue(v string) *CreateApiKeyInput { + s.Value = &v + return s +} + // Request to add a new Authorizer to an existing RestApi resource. type CreateAuthorizerInput struct { _ struct{} `type:"structure"` @@ -7358,6 +7597,66 @@ func (s *CreateAuthorizerInput) Validate() error { return nil } +// SetAuthType sets the AuthType field's value. +func (s *CreateAuthorizerInput) SetAuthType(v string) *CreateAuthorizerInput { + s.AuthType = &v + return s +} + +// SetAuthorizerCredentials sets the AuthorizerCredentials field's value. +func (s *CreateAuthorizerInput) SetAuthorizerCredentials(v string) *CreateAuthorizerInput { + s.AuthorizerCredentials = &v + return s +} + +// SetAuthorizerResultTtlInSeconds sets the AuthorizerResultTtlInSeconds field's value. +func (s *CreateAuthorizerInput) SetAuthorizerResultTtlInSeconds(v int64) *CreateAuthorizerInput { + s.AuthorizerResultTtlInSeconds = &v + return s +} + +// SetAuthorizerUri sets the AuthorizerUri field's value. +func (s *CreateAuthorizerInput) SetAuthorizerUri(v string) *CreateAuthorizerInput { + s.AuthorizerUri = &v + return s +} + +// SetIdentitySource sets the IdentitySource field's value. +func (s *CreateAuthorizerInput) SetIdentitySource(v string) *CreateAuthorizerInput { + s.IdentitySource = &v + return s +} + +// SetIdentityValidationExpression sets the IdentityValidationExpression field's value. +func (s *CreateAuthorizerInput) SetIdentityValidationExpression(v string) *CreateAuthorizerInput { + s.IdentityValidationExpression = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAuthorizerInput) SetName(v string) *CreateAuthorizerInput { + s.Name = &v + return s +} + +// SetProviderARNs sets the ProviderARNs field's value. +func (s *CreateAuthorizerInput) SetProviderARNs(v []*string) *CreateAuthorizerInput { + s.ProviderARNs = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateAuthorizerInput) SetRestApiId(v string) *CreateAuthorizerInput { + s.RestApiId = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateAuthorizerInput) SetType(v string) *CreateAuthorizerInput { + s.Type = &v + return s +} + // Requests Amazon API Gateway to create a new BasePathMapping resource. type CreateBasePathMappingInput struct { _ struct{} `type:"structure"` @@ -7410,6 +7709,30 @@ func (s *CreateBasePathMappingInput) Validate() error { return nil } +// SetBasePath sets the BasePath field's value. +func (s *CreateBasePathMappingInput) SetBasePath(v string) *CreateBasePathMappingInput { + s.BasePath = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateBasePathMappingInput) SetDomainName(v string) *CreateBasePathMappingInput { + s.DomainName = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateBasePathMappingInput) SetRestApiId(v string) *CreateBasePathMappingInput { + s.RestApiId = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *CreateBasePathMappingInput) SetStage(v string) *CreateBasePathMappingInput { + s.Stage = &v + return s +} + // Requests Amazon API Gateway to create a Deployment resource. type CreateDeploymentInput struct { _ struct{} `type:"structure"` @@ -7433,9 +7756,7 @@ type CreateDeploymentInput struct { StageDescription *string `locationName:"stageDescription" type:"string"` // The name of the Stage resource for the Deployment resource to create. - // - // StageName is a required field - StageName *string `locationName:"stageName" type:"string" required:"true"` + StageName *string `locationName:"stageName" type:"string"` // A map that defines the stage variables for the Stage resource that is associated // with the new deployment. Variable names can have alphanumeric and underscore @@ -7459,9 +7780,6 @@ func (s *CreateDeploymentInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } if invalidParams.Len() > 0 { return invalidParams @@ -7469,6 +7787,48 @@ func (s *CreateDeploymentInput) Validate() error { return nil } +// SetCacheClusterEnabled sets the CacheClusterEnabled field's value. +func (s *CreateDeploymentInput) SetCacheClusterEnabled(v bool) *CreateDeploymentInput { + s.CacheClusterEnabled = &v + return s +} + +// SetCacheClusterSize sets the CacheClusterSize field's value. +func (s *CreateDeploymentInput) SetCacheClusterSize(v string) *CreateDeploymentInput { + s.CacheClusterSize = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDeploymentInput) SetDescription(v string) *CreateDeploymentInput { + s.Description = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateDeploymentInput) SetRestApiId(v string) *CreateDeploymentInput { + s.RestApiId = &v + return s +} + +// SetStageDescription sets the StageDescription field's value. +func (s *CreateDeploymentInput) SetStageDescription(v string) *CreateDeploymentInput { + s.StageDescription = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *CreateDeploymentInput) SetStageName(v string) *CreateDeploymentInput { + s.StageName = &v + return s +} + +// SetVariables sets the Variables field's value. +func (s *CreateDeploymentInput) SetVariables(v map[string]*string) *CreateDeploymentInput { + s.Variables = v + return s +} + // A request to create a new domain name. type CreateDomainNameInput struct { _ struct{} `type:"structure"` @@ -7539,6 +7899,36 @@ func (s *CreateDomainNameInput) Validate() error { return nil } +// SetCertificateBody sets the CertificateBody field's value. +func (s *CreateDomainNameInput) SetCertificateBody(v string) *CreateDomainNameInput { + s.CertificateBody = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *CreateDomainNameInput) SetCertificateChain(v string) *CreateDomainNameInput { + s.CertificateChain = &v + return s +} + +// SetCertificateName sets the CertificateName field's value. +func (s *CreateDomainNameInput) SetCertificateName(v string) *CreateDomainNameInput { + s.CertificateName = &v + return s +} + +// SetCertificatePrivateKey sets the CertificatePrivateKey field's value. +func (s *CreateDomainNameInput) SetCertificatePrivateKey(v string) *CreateDomainNameInput { + s.CertificatePrivateKey = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateDomainNameInput) SetDomainName(v string) *CreateDomainNameInput { + s.DomainName = &v + return s +} + // Request to add a new Model to an existing RestApi resource. type CreateModelInput struct { _ struct{} `type:"structure"` @@ -7562,7 +7952,7 @@ type CreateModelInput struct { RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` // The schema for the model. For application/json models, this should be JSON-schema - // draft v4 (http://json-schema.org/documentation.html" target="_blank) model. + // draft v4 (http://json-schema.org/documentation.html) model. Schema *string `locationName:"schema" type:"string"` } @@ -7595,6 +7985,36 @@ func (s *CreateModelInput) Validate() error { return nil } +// SetContentType sets the ContentType field's value. +func (s *CreateModelInput) SetContentType(v string) *CreateModelInput { + s.ContentType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateModelInput) SetDescription(v string) *CreateModelInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateModelInput) SetName(v string) *CreateModelInput { + s.Name = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateModelInput) SetRestApiId(v string) *CreateModelInput { + s.RestApiId = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *CreateModelInput) SetSchema(v string) *CreateModelInput { + s.Schema = &v + return s +} + // Requests Amazon API Gateway to create a Resource resource. type CreateResourceInput struct { _ struct{} `type:"structure"` @@ -7644,10 +8064,32 @@ func (s *CreateResourceInput) Validate() error { return nil } +// SetParentId sets the ParentId field's value. +func (s *CreateResourceInput) SetParentId(v string) *CreateResourceInput { + s.ParentId = &v + return s +} + +// SetPathPart sets the PathPart field's value. +func (s *CreateResourceInput) SetPathPart(v string) *CreateResourceInput { + s.PathPart = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateResourceInput) SetRestApiId(v string) *CreateResourceInput { + s.RestApiId = &v + return s +} + // The POST Request to add a new RestApi resource to your collection. type CreateRestApiInput struct { _ struct{} `type:"structure"` + // The list of binary media types supported by the RestApi. By default, the + // RestApi supports only UTF-8-encoded text payloads. + BinaryMediaTypes []*string `locationName:"binaryMediaTypes" type:"list"` + // The ID of the RestApi that you want to clone from. CloneFrom *string `locationName:"cloneFrom" type:"string"` @@ -7683,6 +8125,30 @@ func (s *CreateRestApiInput) Validate() error { return nil } +// SetBinaryMediaTypes sets the BinaryMediaTypes field's value. +func (s *CreateRestApiInput) SetBinaryMediaTypes(v []*string) *CreateRestApiInput { + s.BinaryMediaTypes = v + return s +} + +// SetCloneFrom sets the CloneFrom field's value. +func (s *CreateRestApiInput) SetCloneFrom(v string) *CreateRestApiInput { + s.CloneFrom = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateRestApiInput) SetDescription(v string) *CreateRestApiInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRestApiInput) SetName(v string) *CreateRestApiInput { + s.Name = &v + return s +} + // Requests Amazon API Gateway to create a Stage resource. type CreateStageInput struct { _ struct{} `type:"structure"` @@ -7746,6 +8212,48 @@ func (s *CreateStageInput) Validate() error { return nil } +// SetCacheClusterEnabled sets the CacheClusterEnabled field's value. +func (s *CreateStageInput) SetCacheClusterEnabled(v bool) *CreateStageInput { + s.CacheClusterEnabled = &v + return s +} + +// SetCacheClusterSize sets the CacheClusterSize field's value. +func (s *CreateStageInput) SetCacheClusterSize(v string) *CreateStageInput { + s.CacheClusterSize = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *CreateStageInput) SetDeploymentId(v string) *CreateStageInput { + s.DeploymentId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateStageInput) SetDescription(v string) *CreateStageInput { + s.Description = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateStageInput) SetRestApiId(v string) *CreateStageInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *CreateStageInput) SetStageName(v string) *CreateStageInput { + s.StageName = &v + return s +} + +// SetVariables sets the Variables field's value. +func (s *CreateStageInput) SetVariables(v map[string]*string) *CreateStageInput { + s.Variables = v + return s +} + // The POST request to create a usage plan with the name, description, throttle // limits and quota limits, as well as the associated API stages, specified // in the payload. @@ -7793,6 +8301,36 @@ func (s *CreateUsagePlanInput) Validate() error { return nil } +// SetApiStages sets the ApiStages field's value. +func (s *CreateUsagePlanInput) SetApiStages(v []*ApiStage) *CreateUsagePlanInput { + s.ApiStages = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateUsagePlanInput) SetDescription(v string) *CreateUsagePlanInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateUsagePlanInput) SetName(v string) *CreateUsagePlanInput { + s.Name = &v + return s +} + +// SetQuota sets the Quota field's value. +func (s *CreateUsagePlanInput) SetQuota(v *QuotaSettings) *CreateUsagePlanInput { + s.Quota = v + return s +} + +// SetThrottle sets the Throttle field's value. +func (s *CreateUsagePlanInput) SetThrottle(v *ThrottleSettings) *CreateUsagePlanInput { + s.Throttle = v + return s +} + // The POST request to create a usage plan key for adding an existing API key // to a usage plan. type CreateUsagePlanKeyInput struct { @@ -7844,6 +8382,24 @@ func (s *CreateUsagePlanKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *CreateUsagePlanKeyInput) SetKeyId(v string) *CreateUsagePlanKeyInput { + s.KeyId = &v + return s +} + +// SetKeyType sets the KeyType field's value. +func (s *CreateUsagePlanKeyInput) SetKeyType(v string) *CreateUsagePlanKeyInput { + s.KeyType = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *CreateUsagePlanKeyInput) SetUsagePlanId(v string) *CreateUsagePlanKeyInput { + s.UsagePlanId = &v + return s +} + // A request to delete the ApiKey resource. type DeleteApiKeyInput struct { _ struct{} `type:"structure"` @@ -7877,6 +8433,12 @@ func (s *DeleteApiKeyInput) Validate() error { return nil } +// SetApiKey sets the ApiKey field's value. +func (s *DeleteApiKeyInput) SetApiKey(v string) *DeleteApiKeyInput { + s.ApiKey = &v + return s +} + type DeleteApiKeyOutput struct { _ struct{} `type:"structure"` } @@ -7932,6 +8494,18 @@ func (s *DeleteAuthorizerInput) Validate() error { return nil } +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *DeleteAuthorizerInput) SetAuthorizerId(v string) *DeleteAuthorizerInput { + s.AuthorizerId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteAuthorizerInput) SetRestApiId(v string) *DeleteAuthorizerInput { + s.RestApiId = &v + return s +} + type DeleteAuthorizerOutput struct { _ struct{} `type:"structure"` } @@ -7987,6 +8561,18 @@ func (s *DeleteBasePathMappingInput) Validate() error { return nil } +// SetBasePath sets the BasePath field's value. +func (s *DeleteBasePathMappingInput) SetBasePath(v string) *DeleteBasePathMappingInput { + s.BasePath = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DeleteBasePathMappingInput) SetDomainName(v string) *DeleteBasePathMappingInput { + s.DomainName = &v + return s +} + type DeleteBasePathMappingOutput struct { _ struct{} `type:"structure"` } @@ -8034,6 +8620,12 @@ func (s *DeleteClientCertificateInput) Validate() error { return nil } +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *DeleteClientCertificateInput) SetClientCertificateId(v string) *DeleteClientCertificateInput { + s.ClientCertificateId = &v + return s +} + type DeleteClientCertificateOutput struct { _ struct{} `type:"structure"` } @@ -8089,6 +8681,18 @@ func (s *DeleteDeploymentInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *DeleteDeploymentInput) SetDeploymentId(v string) *DeleteDeploymentInput { + s.DeploymentId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteDeploymentInput) SetRestApiId(v string) *DeleteDeploymentInput { + s.RestApiId = &v + return s +} + type DeleteDeploymentOutput struct { _ struct{} `type:"structure"` } @@ -8136,6 +8740,12 @@ func (s *DeleteDomainNameInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteDomainNameInput) SetDomainName(v string) *DeleteDomainNameInput { + s.DomainName = &v + return s +} + type DeleteDomainNameOutput struct { _ struct{} `type:"structure"` } @@ -8199,6 +8809,24 @@ func (s *DeleteIntegrationInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *DeleteIntegrationInput) SetHttpMethod(v string) *DeleteIntegrationInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteIntegrationInput) SetResourceId(v string) *DeleteIntegrationInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteIntegrationInput) SetRestApiId(v string) *DeleteIntegrationInput { + s.RestApiId = &v + return s +} + type DeleteIntegrationOutput struct { _ struct{} `type:"structure"` } @@ -8270,6 +8898,30 @@ func (s *DeleteIntegrationResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *DeleteIntegrationResponseInput) SetHttpMethod(v string) *DeleteIntegrationResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteIntegrationResponseInput) SetResourceId(v string) *DeleteIntegrationResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteIntegrationResponseInput) SetRestApiId(v string) *DeleteIntegrationResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *DeleteIntegrationResponseInput) SetStatusCode(v string) *DeleteIntegrationResponseInput { + s.StatusCode = &v + return s +} + type DeleteIntegrationResponseOutput struct { _ struct{} `type:"structure"` } @@ -8333,6 +8985,24 @@ func (s *DeleteMethodInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *DeleteMethodInput) SetHttpMethod(v string) *DeleteMethodInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteMethodInput) SetResourceId(v string) *DeleteMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteMethodInput) SetRestApiId(v string) *DeleteMethodInput { + s.RestApiId = &v + return s +} + type DeleteMethodOutput struct { _ struct{} `type:"structure"` } @@ -8404,6 +9074,30 @@ func (s *DeleteMethodResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *DeleteMethodResponseInput) SetHttpMethod(v string) *DeleteMethodResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteMethodResponseInput) SetResourceId(v string) *DeleteMethodResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteMethodResponseInput) SetRestApiId(v string) *DeleteMethodResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *DeleteMethodResponseInput) SetStatusCode(v string) *DeleteMethodResponseInput { + s.StatusCode = &v + return s +} + type DeleteMethodResponseOutput struct { _ struct{} `type:"structure"` } @@ -8459,6 +9153,18 @@ func (s *DeleteModelInput) Validate() error { return nil } +// SetModelName sets the ModelName field's value. +func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput { + s.ModelName = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteModelInput) SetRestApiId(v string) *DeleteModelInput { + s.RestApiId = &v + return s +} + type DeleteModelOutput struct { _ struct{} `type:"structure"` } @@ -8514,6 +9220,18 @@ func (s *DeleteResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *DeleteResourceInput) SetResourceId(v string) *DeleteResourceInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteResourceInput) SetRestApiId(v string) *DeleteResourceInput { + s.RestApiId = &v + return s +} + type DeleteResourceOutput struct { _ struct{} `type:"structure"` } @@ -8561,6 +9279,12 @@ func (s *DeleteRestApiInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteRestApiInput) SetRestApiId(v string) *DeleteRestApiInput { + s.RestApiId = &v + return s +} + type DeleteRestApiOutput struct { _ struct{} `type:"structure"` } @@ -8616,6 +9340,18 @@ func (s *DeleteStageInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteStageInput) SetRestApiId(v string) *DeleteStageInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *DeleteStageInput) SetStageName(v string) *DeleteStageInput { + s.StageName = &v + return s +} + type DeleteStageOutput struct { _ struct{} `type:"structure"` } @@ -8663,6 +9399,12 @@ func (s *DeleteUsagePlanInput) Validate() error { return nil } +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *DeleteUsagePlanInput) SetUsagePlanId(v string) *DeleteUsagePlanInput { + s.UsagePlanId = &v + return s +} + // The DELETE request to delete a usage plan key and remove the underlying API // key from the associated usage plan. type DeleteUsagePlanKeyInput struct { @@ -8706,6 +9448,18 @@ func (s *DeleteUsagePlanKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *DeleteUsagePlanKeyInput) SetKeyId(v string) *DeleteUsagePlanKeyInput { + s.KeyId = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *DeleteUsagePlanKeyInput) SetUsagePlanId(v string) *DeleteUsagePlanKeyInput { + s.UsagePlanId = &v + return s +} + type DeleteUsagePlanKeyOutput struct { _ struct{} `type:"structure"` } @@ -8741,6 +9495,7 @@ func (s DeleteUsagePlanOutput) GoString() string { // To create a deployment, call POST on the Deployments resource of a RestApi. // To view, update, or delete a deployment, call GET, PATCH, or DELETE on the // specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}). +// // RestApi, Deployments, Stage, AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), // AWS SDKs (https://aws.amazon.com/tools/) type Deployment struct { @@ -8770,23 +9525,45 @@ func (s Deployment) GoString() string { return s.String() } +// SetApiSummary sets the ApiSummary field's value. +func (s *Deployment) SetApiSummary(v map[string]map[string]*MethodSnapshot) *Deployment { + s.ApiSummary = v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *Deployment) SetCreatedDate(v time.Time) *Deployment { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Deployment) SetDescription(v string) *Deployment { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *Deployment) SetId(v string) *Deployment { + s.Id = &v + return s +} + // Represents a domain name that is contained in a simpler, more intuitive URL // that can be called. // -// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type DomainName struct { _ struct{} `type:"structure"` // The name of the certificate. CertificateName *string `locationName:"certificateName" type:"string"` - // The date when the certificate was uploaded, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The date when the certificate was uploaded, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm). CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"` // The domain name of the Amazon CloudFront distribution. For more information, - // see the Amazon CloudFront documentation (http://aws.amazon.com/documentation/cloudfront/" - // target="_blank). + // see the Amazon CloudFront documentation (http://aws.amazon.com/documentation/cloudfront/). DistributionDomainName *string `locationName:"distributionDomainName" type:"string"` // The name of the DomainName resource. @@ -8803,6 +9580,30 @@ func (s DomainName) GoString() string { return s.String() } +// SetCertificateName sets the CertificateName field's value. +func (s *DomainName) SetCertificateName(v string) *DomainName { + s.CertificateName = &v + return s +} + +// SetCertificateUploadDate sets the CertificateUploadDate field's value. +func (s *DomainName) SetCertificateUploadDate(v time.Time) *DomainName { + s.CertificateUploadDate = &v + return s +} + +// SetDistributionDomainName sets the DistributionDomainName field's value. +func (s *DomainName) SetDistributionDomainName(v string) *DomainName { + s.DistributionDomainName = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DomainName) SetDomainName(v string) *DomainName { + s.DomainName = &v + return s +} + // Request to flush authorizer cache entries on a specified stage. type FlushStageAuthorizersCacheInput struct { _ struct{} `type:"structure"` @@ -8844,6 +9645,18 @@ func (s *FlushStageAuthorizersCacheInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *FlushStageAuthorizersCacheInput) SetRestApiId(v string) *FlushStageAuthorizersCacheInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *FlushStageAuthorizersCacheInput) SetStageName(v string) *FlushStageAuthorizersCacheInput { + s.StageName = &v + return s +} + type FlushStageAuthorizersCacheOutput struct { _ struct{} `type:"structure"` } @@ -8899,6 +9712,18 @@ func (s *FlushStageCacheInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *FlushStageCacheInput) SetRestApiId(v string) *FlushStageCacheInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *FlushStageCacheInput) SetStageName(v string) *FlushStageCacheInput { + s.StageName = &v + return s +} + type FlushStageCacheOutput struct { _ struct{} `type:"structure"` } @@ -8931,6 +9756,12 @@ func (s GenerateClientCertificateInput) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *GenerateClientCertificateInput) SetDescription(v string) *GenerateClientCertificateInput { + s.Description = &v + return s +} + // Requests Amazon API Gateway to get information about the current Account // resource. type GetAccountInput struct { @@ -8984,10 +9815,24 @@ func (s *GetApiKeyInput) Validate() error { return nil } +// SetApiKey sets the ApiKey field's value. +func (s *GetApiKeyInput) SetApiKey(v string) *GetApiKeyInput { + s.ApiKey = &v + return s +} + +// SetIncludeValue sets the IncludeValue field's value. +func (s *GetApiKeyInput) SetIncludeValue(v bool) *GetApiKeyInput { + s.IncludeValue = &v + return s +} + // A request to get information about the current ApiKeys resource. type GetApiKeysInput struct { _ struct{} `type:"structure"` + CustomerId *string `location:"querystring" locationName:"customerId" type:"string"` + // A boolean flag to specify whether (true) or not (false) the result contains // key values. IncludeValues *bool `location:"querystring" locationName:"includeValues" type:"boolean"` @@ -9012,9 +9857,39 @@ func (s GetApiKeysInput) GoString() string { return s.String() } +// SetCustomerId sets the CustomerId field's value. +func (s *GetApiKeysInput) SetCustomerId(v string) *GetApiKeysInput { + s.CustomerId = &v + return s +} + +// SetIncludeValues sets the IncludeValues field's value. +func (s *GetApiKeysInput) SetIncludeValues(v bool) *GetApiKeysInput { + s.IncludeValues = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetApiKeysInput) SetLimit(v int64) *GetApiKeysInput { + s.Limit = &v + return s +} + +// SetNameQuery sets the NameQuery field's value. +func (s *GetApiKeysInput) SetNameQuery(v string) *GetApiKeysInput { + s.NameQuery = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetApiKeysInput) SetPosition(v string) *GetApiKeysInput { + s.Position = &v + return s +} + // Represents a collection of API keys as represented by an ApiKeys resource. // -// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) +// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) type GetApiKeysOutput struct { _ struct{} `type:"structure"` @@ -9038,6 +9913,24 @@ func (s GetApiKeysOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetApiKeysOutput) SetItems(v []*ApiKey) *GetApiKeysOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetApiKeysOutput) SetPosition(v string) *GetApiKeysOutput { + s.Position = &v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *GetApiKeysOutput) SetWarnings(v []*string) *GetApiKeysOutput { + s.Warnings = v + return s +} + // Request to describe an existing Authorizer resource. type GetAuthorizerInput struct { _ struct{} `type:"structure"` @@ -9079,6 +9972,18 @@ func (s *GetAuthorizerInput) Validate() error { return nil } +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *GetAuthorizerInput) SetAuthorizerId(v string) *GetAuthorizerInput { + s.AuthorizerId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetAuthorizerInput) SetRestApiId(v string) *GetAuthorizerInput { + s.RestApiId = &v + return s +} + // Request to describe an existing Authorizers resource. type GetAuthorizersInput struct { _ struct{} `type:"structure"` @@ -9119,9 +10024,27 @@ func (s *GetAuthorizersInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetAuthorizersInput) SetLimit(v int64) *GetAuthorizersInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetAuthorizersInput) SetPosition(v string) *GetAuthorizersInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetAuthorizersInput) SetRestApiId(v string) *GetAuthorizersInput { + s.RestApiId = &v + return s +} + // Represents a collection of Authorizer resources. // -// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) +// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) type GetAuthorizersOutput struct { _ struct{} `type:"structure"` @@ -9141,6 +10064,18 @@ func (s GetAuthorizersOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetAuthorizersOutput) SetItems(v []*Authorizer) *GetAuthorizersOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetAuthorizersOutput) SetPosition(v string) *GetAuthorizersOutput { + s.Position = &v + return s +} + // Request to describe a BasePathMapping resource. type GetBasePathMappingInput struct { _ struct{} `type:"structure"` @@ -9185,6 +10120,18 @@ func (s *GetBasePathMappingInput) Validate() error { return nil } +// SetBasePath sets the BasePath field's value. +func (s *GetBasePathMappingInput) SetBasePath(v string) *GetBasePathMappingInput { + s.BasePath = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *GetBasePathMappingInput) SetDomainName(v string) *GetBasePathMappingInput { + s.DomainName = &v + return s +} + // A request to get information about a collection of BasePathMapping resources. type GetBasePathMappingsInput struct { _ struct{} `type:"structure"` @@ -9227,9 +10174,27 @@ func (s *GetBasePathMappingsInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *GetBasePathMappingsInput) SetDomainName(v string) *GetBasePathMappingsInput { + s.DomainName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetBasePathMappingsInput) SetLimit(v int64) *GetBasePathMappingsInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetBasePathMappingsInput) SetPosition(v string) *GetBasePathMappingsInput { + s.Position = &v + return s +} + // Represents a collection of BasePathMapping resources. // -// Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +// Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type GetBasePathMappingsOutput struct { _ struct{} `type:"structure"` @@ -9250,6 +10215,18 @@ func (s GetBasePathMappingsOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetBasePathMappingsOutput) SetItems(v []*BasePathMapping) *GetBasePathMappingsOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetBasePathMappingsOutput) SetPosition(v string) *GetBasePathMappingsOutput { + s.Position = &v + return s +} + // A request to get information about the current ClientCertificate resource. type GetClientCertificateInput struct { _ struct{} `type:"structure"` @@ -9283,6 +10260,12 @@ func (s *GetClientCertificateInput) Validate() error { return nil } +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *GetClientCertificateInput) SetClientCertificateId(v string) *GetClientCertificateInput { + s.ClientCertificateId = &v + return s +} + // A request to get information about a collection of ClientCertificate resources. type GetClientCertificatesInput struct { _ struct{} `type:"structure"` @@ -9307,9 +10290,21 @@ func (s GetClientCertificatesInput) GoString() string { return s.String() } +// SetLimit sets the Limit field's value. +func (s *GetClientCertificatesInput) SetLimit(v int64) *GetClientCertificatesInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetClientCertificatesInput) SetPosition(v string) *GetClientCertificatesInput { + s.Position = &v + return s +} + // Represents a collection of ClientCertificate resources. // -// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) +// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) type GetClientCertificatesOutput struct { _ struct{} `type:"structure"` @@ -9330,6 +10325,18 @@ func (s GetClientCertificatesOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetClientCertificatesOutput) SetItems(v []*ClientCertificate) *GetClientCertificatesOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetClientCertificatesOutput) SetPosition(v string) *GetClientCertificatesOutput { + s.Position = &v + return s +} + // Requests Amazon API Gateway to get information about a Deployment resource. type GetDeploymentInput struct { _ struct{} `type:"structure"` @@ -9372,6 +10379,18 @@ func (s *GetDeploymentInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { + s.DeploymentId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetDeploymentInput) SetRestApiId(v string) *GetDeploymentInput { + s.RestApiId = &v + return s +} + // Requests Amazon API Gateway to get information about a Deployments collection. type GetDeploymentsInput struct { _ struct{} `type:"structure"` @@ -9414,6 +10433,24 @@ func (s *GetDeploymentsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetDeploymentsInput) SetLimit(v int64) *GetDeploymentsInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDeploymentsInput) SetPosition(v string) *GetDeploymentsInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetDeploymentsInput) SetRestApiId(v string) *GetDeploymentsInput { + s.RestApiId = &v + return s +} + // Represents a collection resource that contains zero or more references to // your existing deployments, and links that guide you on how to interact with // your collection. The collection offers a paginated view of the contained @@ -9422,7 +10459,8 @@ func (s *GetDeploymentsInput) Validate() error { // To create a new deployment of a RestApi, make a POST request against this // resource. To view, update, or delete an existing deployment, make a GET, // PATCH, or DELETE request, respectively, on a specified Deployment resource. -// Deploying an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html), +// +// Deploying an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html), // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), // AWS SDKs (https://aws.amazon.com/tools/) type GetDeploymentsOutput struct { @@ -9445,6 +10483,18 @@ func (s GetDeploymentsOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetDeploymentsOutput) SetItems(v []*Deployment) *GetDeploymentsOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDeploymentsOutput) SetPosition(v string) *GetDeploymentsOutput { + s.Position = &v + return s +} + // Request to get the name of a DomainName resource. type GetDomainNameInput struct { _ struct{} `type:"structure"` @@ -9478,6 +10528,12 @@ func (s *GetDomainNameInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *GetDomainNameInput) SetDomainName(v string) *GetDomainNameInput { + s.DomainName = &v + return s +} + // Request to describe a collection of DomainName resources. type GetDomainNamesInput struct { _ struct{} `type:"structure"` @@ -9500,9 +10556,21 @@ func (s GetDomainNamesInput) GoString() string { return s.String() } +// SetLimit sets the Limit field's value. +func (s *GetDomainNamesInput) SetLimit(v int64) *GetDomainNamesInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDomainNamesInput) SetPosition(v string) *GetDomainNamesInput { + s.Position = &v + return s +} + // Represents a collection of DomainName resources. // -// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type GetDomainNamesOutput struct { _ struct{} `type:"structure"` @@ -9523,6 +10591,18 @@ func (s GetDomainNamesOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetDomainNamesOutput) SetItems(v []*DomainName) *GetDomainNamesOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDomainNamesOutput) SetPosition(v string) *GetDomainNamesOutput { + s.Position = &v + return s +} + // Request a new export of a RestApi for a particular Stage. type GetExportInput struct { _ struct{} `type:"structure"` @@ -9538,7 +10618,7 @@ type GetExportInput struct { ExportType *string `location:"uri" locationName:"export_type" type:"string" required:"true"` // A key-value map of query string parameters that specify properties of the - // export, depending on the requested exportType. For exportType swagger, any + // export, depending on the requested exportType. For exportTypeswagger, any // combination of the following parameters are supported: integrations will // export the API with x-amazon-apigateway-integration extensions. authorizers // will export the API with x-amazon-apigateway-authorizer extensions. postman @@ -9586,6 +10666,36 @@ func (s *GetExportInput) Validate() error { return nil } +// SetAccepts sets the Accepts field's value. +func (s *GetExportInput) SetAccepts(v string) *GetExportInput { + s.Accepts = &v + return s +} + +// SetExportType sets the ExportType field's value. +func (s *GetExportInput) SetExportType(v string) *GetExportInput { + s.ExportType = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *GetExportInput) SetParameters(v map[string]*string) *GetExportInput { + s.Parameters = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetExportInput) SetRestApiId(v string) *GetExportInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *GetExportInput) SetStageName(v string) *GetExportInput { + s.StageName = &v + return s +} + // The binary blob response to GetExport, which contains the generated SDK. type GetExportOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -9611,6 +10721,24 @@ func (s GetExportOutput) GoString() string { return s.String() } +// SetBody sets the Body field's value. +func (s *GetExportOutput) SetBody(v []byte) *GetExportOutput { + s.Body = v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *GetExportOutput) SetContentDisposition(v string) *GetExportOutput { + s.ContentDisposition = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetExportOutput) SetContentType(v string) *GetExportOutput { + s.ContentType = &v + return s +} + // Represents a get integration request. type GetIntegrationInput struct { _ struct{} `type:"structure"` @@ -9660,6 +10788,24 @@ func (s *GetIntegrationInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *GetIntegrationInput) SetHttpMethod(v string) *GetIntegrationInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetIntegrationInput) SetResourceId(v string) *GetIntegrationInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetIntegrationInput) SetRestApiId(v string) *GetIntegrationInput { + s.RestApiId = &v + return s +} + // Represents a get integration response request. type GetIntegrationResponseInput struct { _ struct{} `type:"structure"` @@ -9717,6 +10863,30 @@ func (s *GetIntegrationResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *GetIntegrationResponseInput) SetHttpMethod(v string) *GetIntegrationResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetIntegrationResponseInput) SetResourceId(v string) *GetIntegrationResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetIntegrationResponseInput) SetRestApiId(v string) *GetIntegrationResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *GetIntegrationResponseInput) SetStatusCode(v string) *GetIntegrationResponseInput { + s.StatusCode = &v + return s +} + // Request to describe an existing Method resource. type GetMethodInput struct { _ struct{} `type:"structure"` @@ -9766,6 +10936,24 @@ func (s *GetMethodInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *GetMethodInput) SetHttpMethod(v string) *GetMethodInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetMethodInput) SetResourceId(v string) *GetMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetMethodInput) SetRestApiId(v string) *GetMethodInput { + s.RestApiId = &v + return s +} + // Request to describe a MethodResponse resource. type GetMethodResponseInput struct { _ struct{} `type:"structure"` @@ -9823,6 +11011,30 @@ func (s *GetMethodResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *GetMethodResponseInput) SetHttpMethod(v string) *GetMethodResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetMethodResponseInput) SetResourceId(v string) *GetMethodResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetMethodResponseInput) SetRestApiId(v string) *GetMethodResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *GetMethodResponseInput) SetStatusCode(v string) *GetMethodResponseInput { + s.StatusCode = &v + return s +} + // Request to list information about a model in an existing RestApi resource. type GetModelInput struct { _ struct{} `type:"structure"` @@ -9869,6 +11081,24 @@ func (s *GetModelInput) Validate() error { return nil } +// SetFlatten sets the Flatten field's value. +func (s *GetModelInput) SetFlatten(v bool) *GetModelInput { + s.Flatten = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *GetModelInput) SetModelName(v string) *GetModelInput { + s.ModelName = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetModelInput) SetRestApiId(v string) *GetModelInput { + s.RestApiId = &v + return s +} + // Request to generate a sample mapping template used to transform the payload. type GetModelTemplateInput struct { _ struct{} `type:"structure"` @@ -9910,14 +11140,26 @@ func (s *GetModelTemplateInput) Validate() error { return nil } +// SetModelName sets the ModelName field's value. +func (s *GetModelTemplateInput) SetModelName(v string) *GetModelTemplateInput { + s.ModelName = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetModelTemplateInput) SetRestApiId(v string) *GetModelTemplateInput { + s.RestApiId = &v + return s +} + // Represents a mapping template used to transform a payload. // -// Mapping Templates (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html#models-mappings-mappings) +// Mapping Templates (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html#models-mappings-mappings) type GetModelTemplateOutput struct { _ struct{} `type:"structure"` - // The Apache Velocity Template Language (VTL) (http://velocity.apache.org/engine/devel/vtl-reference-guide.html" - // target="_blank) template content used for the template resource. + // The Apache Velocity Template Language (VTL) (http://velocity.apache.org/engine/devel/vtl-reference-guide.html) + // template content used for the template resource. Value *string `locationName:"value" type:"string"` } @@ -9931,6 +11173,12 @@ func (s GetModelTemplateOutput) GoString() string { return s.String() } +// SetValue sets the Value field's value. +func (s *GetModelTemplateOutput) SetValue(v string) *GetModelTemplateOutput { + s.Value = &v + return s +} + // Request to list existing Models defined for a RestApi resource. type GetModelsInput struct { _ struct{} `type:"structure"` @@ -9972,9 +11220,27 @@ func (s *GetModelsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetModelsInput) SetLimit(v int64) *GetModelsInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetModelsInput) SetPosition(v string) *GetModelsInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetModelsInput) SetRestApiId(v string) *GetModelsInput { + s.RestApiId = &v + return s +} + // Represents a collection of Model resources. // -// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) +// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) type GetModelsOutput struct { _ struct{} `type:"structure"` @@ -9994,6 +11260,18 @@ func (s GetModelsOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetModelsOutput) SetItems(v []*Model) *GetModelsOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetModelsOutput) SetPosition(v string) *GetModelsOutput { + s.Position = &v + return s +} + // Request to list information about a resource. type GetResourceInput struct { _ struct{} `type:"structure"` @@ -10035,6 +11313,18 @@ func (s *GetResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *GetResourceInput) SetResourceId(v string) *GetResourceInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetResourceInput) SetRestApiId(v string) *GetResourceInput { + s.RestApiId = &v + return s +} + // Request to list information about a collection of resources. type GetResourcesInput struct { _ struct{} `type:"structure"` @@ -10076,9 +11366,27 @@ func (s *GetResourcesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetResourcesInput) SetLimit(v int64) *GetResourcesInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetResourcesInput) SetPosition(v string) *GetResourcesInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetResourcesInput) SetRestApiId(v string) *GetResourcesInput { + s.RestApiId = &v + return s +} + // Represents a collection of Resource resources. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type GetResourcesOutput struct { _ struct{} `type:"structure"` @@ -10098,6 +11406,18 @@ func (s GetResourcesOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetResourcesOutput) SetItems(v []*Resource) *GetResourcesOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetResourcesOutput) SetPosition(v string) *GetResourcesOutput { + s.Position = &v + return s +} + // The GET request to list an existing RestApi defined for your collection. type GetRestApiInput struct { _ struct{} `type:"structure"` @@ -10131,6 +11451,12 @@ func (s *GetRestApiInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *GetRestApiInput) SetRestApiId(v string) *GetRestApiInput { + s.RestApiId = &v + return s +} + // The GET request to list existing RestApis defined for your collection. type GetRestApisInput struct { _ struct{} `type:"structure"` @@ -10154,10 +11480,22 @@ func (s GetRestApisInput) GoString() string { return s.String() } +// SetLimit sets the Limit field's value. +func (s *GetRestApisInput) SetLimit(v int64) *GetRestApisInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetRestApisInput) SetPosition(v string) *GetRestApisInput { + s.Position = &v + return s +} + // Contains references to your APIs and links that guide you in how to interact // with your collection. A collection offers a paginated view of your APIs. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type GetRestApisOutput struct { _ struct{} `type:"structure"` @@ -10177,6 +11515,18 @@ func (s GetRestApisOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetRestApisOutput) SetItems(v []*RestApi) *GetRestApisOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetRestApisOutput) SetPosition(v string) *GetRestApisOutput { + s.Position = &v + return s +} + // Request a new generated client SDK for a RestApi and Stage. type GetSdkInput struct { _ struct{} `type:"structure"` @@ -10233,6 +11583,30 @@ func (s *GetSdkInput) Validate() error { return nil } +// SetParameters sets the Parameters field's value. +func (s *GetSdkInput) SetParameters(v map[string]*string) *GetSdkInput { + s.Parameters = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetSdkInput) SetRestApiId(v string) *GetSdkInput { + s.RestApiId = &v + return s +} + +// SetSdkType sets the SdkType field's value. +func (s *GetSdkInput) SetSdkType(v string) *GetSdkInput { + s.SdkType = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *GetSdkInput) SetStageName(v string) *GetSdkInput { + s.StageName = &v + return s +} + // The binary blob response to GetSdk, which contains the generated SDK. type GetSdkOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -10257,6 +11631,24 @@ func (s GetSdkOutput) GoString() string { return s.String() } +// SetBody sets the Body field's value. +func (s *GetSdkOutput) SetBody(v []byte) *GetSdkOutput { + s.Body = v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *GetSdkOutput) SetContentDisposition(v string) *GetSdkOutput { + s.ContentDisposition = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetSdkOutput) SetContentType(v string) *GetSdkOutput { + s.ContentType = &v + return s +} + // Requests Amazon API Gateway to get information about a Stage resource. type GetStageInput struct { _ struct{} `type:"structure"` @@ -10299,6 +11691,18 @@ func (s *GetStageInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *GetStageInput) SetRestApiId(v string) *GetStageInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *GetStageInput) SetStageName(v string) *GetStageInput { + s.StageName = &v + return s +} + // Requests Amazon API Gateway to get information about one or more Stage resources. type GetStagesInput struct { _ struct{} `type:"structure"` @@ -10335,6 +11739,18 @@ func (s *GetStagesInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetStagesInput) SetDeploymentId(v string) *GetStagesInput { + s.DeploymentId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetStagesInput) SetRestApiId(v string) *GetStagesInput { + s.RestApiId = &v + return s +} + // A list of Stage resources that are associated with the ApiKey resource. // // Deploying API in Stages (http://docs.aws.amazon.com/apigateway/latest/developerguide/stages.html) @@ -10355,6 +11771,12 @@ func (s GetStagesOutput) GoString() string { return s.String() } +// SetItem sets the Item field's value. +func (s *GetStagesOutput) SetItem(v []*Stage) *GetStagesOutput { + s.Item = v + return s +} + // The GET request to get the usage data of a usage plan in a specified time // interval. type GetUsageInput struct { @@ -10414,6 +11836,42 @@ func (s *GetUsageInput) Validate() error { return nil } +// SetEndDate sets the EndDate field's value. +func (s *GetUsageInput) SetEndDate(v string) *GetUsageInput { + s.EndDate = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GetUsageInput) SetKeyId(v string) *GetUsageInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetUsageInput) SetLimit(v int64) *GetUsageInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsageInput) SetPosition(v string) *GetUsageInput { + s.Position = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *GetUsageInput) SetStartDate(v string) *GetUsageInput { + s.StartDate = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *GetUsageInput) SetUsagePlanId(v string) *GetUsageInput { + s.UsagePlanId = &v + return s +} + // The GET request to get a usage plan of a given plan identifier. type GetUsagePlanInput struct { _ struct{} `type:"structure"` @@ -10447,6 +11905,12 @@ func (s *GetUsagePlanInput) Validate() error { return nil } +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *GetUsagePlanInput) SetUsagePlanId(v string) *GetUsagePlanInput { + s.UsagePlanId = &v + return s +} + // The GET request to get a usage plan key of a given key identifier. type GetUsagePlanKeyInput struct { _ struct{} `type:"structure"` @@ -10490,6 +11954,18 @@ func (s *GetUsagePlanKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *GetUsagePlanKeyInput) SetKeyId(v string) *GetUsagePlanKeyInput { + s.KeyId = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *GetUsagePlanKeyInput) SetUsagePlanId(v string) *GetUsagePlanKeyInput { + s.UsagePlanId = &v + return s +} + // The GET request to get all the usage plan keys representing the API keys // added to a specified usage plan. type GetUsagePlanKeysInput struct { @@ -10536,10 +12012,34 @@ func (s *GetUsagePlanKeysInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetUsagePlanKeysInput) SetLimit(v int64) *GetUsagePlanKeysInput { + s.Limit = &v + return s +} + +// SetNameQuery sets the NameQuery field's value. +func (s *GetUsagePlanKeysInput) SetNameQuery(v string) *GetUsagePlanKeysInput { + s.NameQuery = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsagePlanKeysInput) SetPosition(v string) *GetUsagePlanKeysInput { + s.Position = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *GetUsagePlanKeysInput) SetUsagePlanId(v string) *GetUsagePlanKeysInput { + s.UsagePlanId = &v + return s +} + // Represents the collection of usage plan keys added to usage plans for the // associated API keys and, possibly, other types of keys. // -// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) +// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type GetUsagePlanKeysOutput struct { _ struct{} `type:"structure"` @@ -10559,6 +12059,18 @@ func (s GetUsagePlanKeysOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetUsagePlanKeysOutput) SetItems(v []*UsagePlanKey) *GetUsagePlanKeysOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsagePlanKeysOutput) SetPosition(v string) *GetUsagePlanKeysOutput { + s.Position = &v + return s +} + // The GET request to get all the usage plans of the caller's account. type GetUsagePlansInput struct { _ struct{} `type:"structure"` @@ -10584,9 +12096,27 @@ func (s GetUsagePlansInput) GoString() string { return s.String() } +// SetKeyId sets the KeyId field's value. +func (s *GetUsagePlansInput) SetKeyId(v string) *GetUsagePlansInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetUsagePlansInput) SetLimit(v int64) *GetUsagePlansInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsagePlansInput) SetPosition(v string) *GetUsagePlansInput { + s.Position = &v + return s +} + // Represents a collection of usage plans for an AWS account. // -// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) +// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type GetUsagePlansOutput struct { _ struct{} `type:"structure"` @@ -10606,6 +12136,18 @@ func (s GetUsagePlansOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetUsagePlansOutput) SetItems(v []*UsagePlan) *GetUsagePlansOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsagePlansOutput) SetPosition(v string) *GetUsagePlansOutput { + s.Position = &v + return s +} + // The POST request to import API keys from an external source, such as a CSV-formatted // file. type ImportApiKeysInput struct { @@ -10654,6 +12196,24 @@ func (s *ImportApiKeysInput) Validate() error { return nil } +// SetBody sets the Body field's value. +func (s *ImportApiKeysInput) SetBody(v []byte) *ImportApiKeysInput { + s.Body = v + return s +} + +// SetFailOnWarnings sets the FailOnWarnings field's value. +func (s *ImportApiKeysInput) SetFailOnWarnings(v bool) *ImportApiKeysInput { + s.FailOnWarnings = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *ImportApiKeysInput) SetFormat(v string) *ImportApiKeysInput { + s.Format = &v + return s +} + // The identifier of an API key used to reference an API key in a usage plan. type ImportApiKeysOutput struct { _ struct{} `type:"structure"` @@ -10675,6 +12235,18 @@ func (s ImportApiKeysOutput) GoString() string { return s.String() } +// SetIds sets the Ids field's value. +func (s *ImportApiKeysOutput) SetIds(v []*string) *ImportApiKeysOutput { + s.Ids = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *ImportApiKeysOutput) SetWarnings(v []*string) *ImportApiKeysOutput { + s.Warnings = v + return s +} + // A POST request to import an API to Amazon API Gateway using an input of an // API definition file. type ImportRestApiInput struct { @@ -10717,10 +12289,29 @@ func (s *ImportRestApiInput) Validate() error { return nil } -// Represents an HTTP, AWS, or Mock integration. +// SetBody sets the Body field's value. +func (s *ImportRestApiInput) SetBody(v []byte) *ImportRestApiInput { + s.Body = v + return s +} + +// SetFailOnWarnings sets the FailOnWarnings field's value. +func (s *ImportRestApiInput) SetFailOnWarnings(v bool) *ImportRestApiInput { + s.FailOnWarnings = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ImportRestApiInput) SetParameters(v map[string]*string) *ImportRestApiInput { + s.Parameters = v + return s +} + +// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. // // In the API Gateway console, the built-in Lambda integration is an AWS integration. -// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// +// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html), type Integration struct { _ struct{} `type:"structure"` @@ -10730,6 +12321,20 @@ type Integration struct { // Specifies the integration's cache namespace. CacheNamespace *string `locationName:"cacheNamespace" type:"string"` + // Specifies how to handle request payload content type conversions. Supported + // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors: + // + // * CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded + // string to the corresponding binary blob. + // + // * CONVERT_TO_TEXT: Converts a request payload from a binary blob to a + // Base64-encoded string. + // + // If this property is not defined, the request payload will be passed through + // from the method request to integration request without modification, provided + // that the passthroughBehaviors is configured to support payload pass-through. + ContentHandling *string `locationName:"contentHandling" type:"string" enum:"ContentHandlingStrategy"` + // Specifies the credentials required for the integration, if any. For AWS integrations, // three options are available. To specify an IAM Role for Amazon API Gateway // to assume, use the role's Amazon Resource Name (ARN). To require that the @@ -10743,16 +12348,17 @@ type Integration struct { // Specifies the integration's responses. // - // Example: Get integration responses of a method + // Example: Get integration responses of a method // // Request // - // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 + // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 // HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com // X-Amz-Date: 20160607T191449Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, - // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response + // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} + // Response // - // The successful response returns 200 OK status and a payload as follows: + // The successful response returns 200 OKstatus and a payload as follows: // // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", // "name": "integrationresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", @@ -10761,7 +12367,7 @@ type Integration struct { // } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" // }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream // in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" - // }, "statusCode": "200" } Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) + // }, "statusCode": "200" } IntegrationResponses map[string]*IntegrationResponse `locationName:"integrationResponses" type:"map"` // Specifies how the method request body of an unmapped content type will be @@ -10771,15 +12377,16 @@ type Integration struct { // in requestTemplates. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, // and NEVER. // - // WHEN_NO_MATCH passes the method request body through the integration request + // WHEN_NO_MATCH passes the method request body through the integration request // to the back end without transformation when the method request content type // does not match any content type associated with the mapping templates defined - // in the integration request. WHEN_NO_TEMPLATES passes the method request - // body through the integration request to the back end without transformation - // when no mapping template is defined in the integration request. If a template - // is defined when this option is selected, the method request of an unmapped - // content-type will be rejected with an HTTP 415 Unsupported Media Type response. - // NEVER rejects the method request with an HTTP 415 Unsupported Media Type + // in the integration request. + // WHEN_NO_TEMPLATES passes the method request body through the integration + // request to the back end without transformation when no mapping template is + // defined in the integration request. If a template is defined when this option + // is selected, the method request of an unmapped content-type will be rejected + // with an HTTP 415 Unsupported Media Type response. + // NEVER rejects the method request with an HTTP 415 Unsupported Media Type // response when either the method request content type does not match any content // type associated with the mapping templates defined in the integration request // or no mapping template is defined in the integration request. @@ -10809,8 +12416,8 @@ type Integration struct { // Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, // the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 - // specification (https://www.ietf.org/rfc/rfc3986.txt" target="_blank). For - // AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. + // specification (https://www.ietf.org/rfc/rfc3986.txt). For AWS integrations, + // the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. // Region, subdomain and service are used to determine the right endpoint. For // AWS services that use the Action= query string parameter, service_api should // be a valid action for the desired service. For RESTful AWS service APIs, @@ -10829,14 +12436,93 @@ func (s Integration) GoString() string { return s.String() } +// SetCacheKeyParameters sets the CacheKeyParameters field's value. +func (s *Integration) SetCacheKeyParameters(v []*string) *Integration { + s.CacheKeyParameters = v + return s +} + +// SetCacheNamespace sets the CacheNamespace field's value. +func (s *Integration) SetCacheNamespace(v string) *Integration { + s.CacheNamespace = &v + return s +} + +// SetContentHandling sets the ContentHandling field's value. +func (s *Integration) SetContentHandling(v string) *Integration { + s.ContentHandling = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *Integration) SetCredentials(v string) *Integration { + s.Credentials = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *Integration) SetHttpMethod(v string) *Integration { + s.HttpMethod = &v + return s +} + +// SetIntegrationResponses sets the IntegrationResponses field's value. +func (s *Integration) SetIntegrationResponses(v map[string]*IntegrationResponse) *Integration { + s.IntegrationResponses = v + return s +} + +// SetPassthroughBehavior sets the PassthroughBehavior field's value. +func (s *Integration) SetPassthroughBehavior(v string) *Integration { + s.PassthroughBehavior = &v + return s +} + +// SetRequestParameters sets the RequestParameters field's value. +func (s *Integration) SetRequestParameters(v map[string]*string) *Integration { + s.RequestParameters = v + return s +} + +// SetRequestTemplates sets the RequestTemplates field's value. +func (s *Integration) SetRequestTemplates(v map[string]*string) *Integration { + s.RequestTemplates = v + return s +} + +// SetType sets the Type field's value. +func (s *Integration) SetType(v string) *Integration { + s.Type = &v + return s +} + +// SetUri sets the Uri field's value. +func (s *Integration) SetUri(v string) *Integration { + s.Uri = &v + return s +} + // Represents an integration response. The status code must map to an existing // MethodResponse, and parameters and templates can be used to transform the // back-end response. // -// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type IntegrationResponse struct { _ struct{} `type:"structure"` + // Specifies how to handle response payload content type conversions. Supported + // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors: + // + // * CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded + // string to the corresponding binary blob. + // + // * CONVERT_TO_TEXT: Converts a response payload from a binary blob to a + // Base64-encoded string. + // + // If this property is not defined, the response payload will be passed through + // from the integration response to the method response without modification. + ContentHandling *string `locationName:"contentHandling" type:"string" enum:"ContentHandlingStrategy"` + // A key-value map specifying response parameters that are passed to the method // response from the back end. The key is a method response header parameter // name and the mapped value is an integration response header value, a static @@ -10879,6 +12565,36 @@ func (s IntegrationResponse) GoString() string { return s.String() } +// SetContentHandling sets the ContentHandling field's value. +func (s *IntegrationResponse) SetContentHandling(v string) *IntegrationResponse { + s.ContentHandling = &v + return s +} + +// SetResponseParameters sets the ResponseParameters field's value. +func (s *IntegrationResponse) SetResponseParameters(v map[string]*string) *IntegrationResponse { + s.ResponseParameters = v + return s +} + +// SetResponseTemplates sets the ResponseTemplates field's value. +func (s *IntegrationResponse) SetResponseTemplates(v map[string]*string) *IntegrationResponse { + s.ResponseTemplates = v + return s +} + +// SetSelectionPattern sets the SelectionPattern field's value. +func (s *IntegrationResponse) SetSelectionPattern(v string) *IntegrationResponse { + s.SelectionPattern = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *IntegrationResponse) SetStatusCode(v string) *IntegrationResponse { + s.StatusCode = &v + return s +} + // Represents a client-facing interface by which the client calls the API to // access back-end resources. A Method resource is integrated with an Integration // resource. Both consist of a request and one or more responses. The method @@ -10890,64 +12606,66 @@ func (s IntegrationResponse) GoString() string { // resource, whereas an integration response is represented by an IntegrationResponse // resource. // -// Example: Retrive the GET method on a specified resource +// Example: Retrive the GET method on a specified resource // // Request // // The following example request retrieves the information about the GET method // on an API resource (3kzxbg5sa2) of an API (fugvjdxtri). // -// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: -// application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160603T210259Z -// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, -// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response +// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: +// application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: +// 20160603T210259Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, +// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} +// Response // // The successful response returns a 200 OK status code and a payload similar // to the following: // -// { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", -// "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", -// "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", -// "name": "method", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", -// "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET", -// "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" -// }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", -// "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" -// }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}", -// "templated": true } }, "apiKeyRequired": true, "authorizationType": "NONE", -// "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self": -// { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", -// "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}", -// "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2", -// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": -// "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type": -// "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json": -// "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", -// "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", -// "name": "200", "title": "200" }, "integrationresponse:delete": { "href": -// "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" -// }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" -// } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" -// }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")" -// }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": { -// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", -// "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" -// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" -// } }, "responseModels": { "application/json": "Empty" }, "responseParameters": -// { "method.response.header.Content-Type": false }, "statusCode": "200" } } -// } In the example above, the response template for the 200 OK response maps +// { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", +// "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", +// "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", +// "name": "method", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", +// "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET", +// "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" +// }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", +// "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" +// }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}", +// "templated": true } }, "apiKeyRequired": true, "authorizationType": "NONE", +// "httpMethod": "GET", "_embedded": { "method:integration": { "_links": +// { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", +// "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}", +// "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2", +// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": +// "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { +// "integration.request.header.Content-Type": "'application/x-amz-json-1.1'" +// }, "requestTemplates": { "application/json": "{\n}" }, "type": "AWS", +// "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", "_embedded": +// { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", +// "name": "200", "title": "200" }, "integrationresponse:delete": { "href": +// "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" +// }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" +// } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" +// }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")" +// }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": +// { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", +// "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" +// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" +// } }, "responseModels": { "application/json": "Empty" }, "responseParameters": +// { "method.response.header.Content-Type": false }, "statusCode": "200" +// } } } +// In the example above, the response template for the 200 OK response maps // the JSON output from the ListStreams action in the back end to an XML output. // The mapping template is URL-encoded as %3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E // and the output is decoded using the $util.urlDecode() (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#util-templat-reference) // helper function. // -// MethodResponse, Integration, IntegrationResponse, Resource, Set up an -// API's method (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html) +// MethodResponse, Integration, IntegrationResponse, Resource, Set up an API's method (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html) type Method struct { _ struct{} `type:"structure"` @@ -10969,17 +12687,17 @@ type Method struct { // request to the back end and performing necessary transformations to make // the request compliant with the back end. // - // Example: + // Example: // // Request // - // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1 + // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1 // Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: // 117 X-Amz-Date: 20160613T213210Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, - // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response + // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} + // Response // - // The successful response returns a 200 OK status code and a payload similar - // to the following: + // The successful response returns a 200 OKstatus code and a payload similar to the following: // // { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", // "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", @@ -11003,13 +12721,13 @@ type Method struct { // "#set($res = $input.path('$'))\n{\n \"result\": \"$res.a, $res.b, $res.op // => $res.c\",\n \"a\" : \"$res.a\",\n \"b\" : \"$res.b\",\n \"op\" : \"$res.op\",\n // \"c\" : \"$res.c\"\n}" }, "selectionPattern": "", "statusCode": "200" } } - // } AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-integration.html) + // } MethodIntegration *Integration `locationName:"methodIntegration" type:"structure"` // Gets a method response associated with a given HTTP status code. // - // The collection of method responses are encapsulated in a key-value map, - // where the key is a response's HTTP status code and the value is a MethodResponse + // The collection of method responses are encapsulated in a key-value map, where + // the key is a response's HTTP status code and the value is a MethodResponse // resource that specifies the response returned to the caller from the back // end through the integration response. // @@ -11017,22 +12735,24 @@ type Method struct { // // Request // - // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1 - // Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: - // 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, - // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response + // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1 + // Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com + // Content-Length: 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256 + // Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, + // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} + // Response // // The successful response returns a 200 OK status code and a payload similar // to the following: // - // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", - // "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200", - // "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" - // }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" - // } }, "responseModels": { "application/json": "Empty" }, "responseParameters": - // { "method.response.header.operator": false, "method.response.header.operand_2": - // false, "method.response.header.operand_1": false }, "statusCode": "200" } - // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html) + // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", + // "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200", + // "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" + // }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" + // } }, "responseModels": { "application/json": "Empty" }, "responseParameters": + // { "method.response.header.operator": false, "method.response.header.operand_2": + // false, "method.response.header.operand_1": false }, "statusCode": "200" + // } MethodResponses map[string]*MethodResponse `locationName:"methodResponses" type:"map"` // A key-value map specifying data schemas, represented by Model resources, @@ -11061,30 +12781,79 @@ func (s Method) GoString() string { return s.String() } +// SetApiKeyRequired sets the ApiKeyRequired field's value. +func (s *Method) SetApiKeyRequired(v bool) *Method { + s.ApiKeyRequired = &v + return s +} + +// SetAuthorizationType sets the AuthorizationType field's value. +func (s *Method) SetAuthorizationType(v string) *Method { + s.AuthorizationType = &v + return s +} + +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *Method) SetAuthorizerId(v string) *Method { + s.AuthorizerId = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *Method) SetHttpMethod(v string) *Method { + s.HttpMethod = &v + return s +} + +// SetMethodIntegration sets the MethodIntegration field's value. +func (s *Method) SetMethodIntegration(v *Integration) *Method { + s.MethodIntegration = v + return s +} + +// SetMethodResponses sets the MethodResponses field's value. +func (s *Method) SetMethodResponses(v map[string]*MethodResponse) *Method { + s.MethodResponses = v + return s +} + +// SetRequestModels sets the RequestModels field's value. +func (s *Method) SetRequestModels(v map[string]*string) *Method { + s.RequestModels = v + return s +} + +// SetRequestParameters sets the RequestParameters field's value. +func (s *Method) SetRequestParameters(v map[string]*bool) *Method { + s.RequestParameters = v + return s +} + // Represents a method response of a given HTTP status code returned to the // client. The method response is passed from the back end through the associated // integration response that can be transformed using a mapping template. // -// Example: A MethodResponse instance of an API +// Example: A MethodResponse instance of an API // // Request // // The example request retrieves a MethodResponse of the 200 status code. // -// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 -// HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com -// X-Amz-Date: 20160603T222952Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, -// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response +// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 +// HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com +// X-Amz-Date: 20160603T222952Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, +// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} +// Response // // The successful response returns 200 OK status and a payload as follows: // -// { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", -// "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", -// "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" -// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" -// } }, "responseModels": { "application/json": "Empty" }, "responseParameters": -// { "method.response.header.Content-Type": false }, "statusCode": "200" } -// Method, IntegrationResponse, Integration Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", +// "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", +// "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" +// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" +// } }, "responseModels": { "application/json": "Empty" }, "responseParameters": +// { "method.response.header.Content-Type": false }, "statusCode": "200" +// } type MethodResponse struct { _ struct{} `type:"structure"` @@ -11121,6 +12890,24 @@ func (s MethodResponse) GoString() string { return s.String() } +// SetResponseModels sets the ResponseModels field's value. +func (s *MethodResponse) SetResponseModels(v map[string]*string) *MethodResponse { + s.ResponseModels = v + return s +} + +// SetResponseParameters sets the ResponseParameters field's value. +func (s *MethodResponse) SetResponseParameters(v map[string]*bool) *MethodResponse { + s.ResponseParameters = v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *MethodResponse) SetStatusCode(v string) *MethodResponse { + s.StatusCode = &v + return s +} + // Specifies the method setting properties. type MethodSetting struct { _ struct{} `type:"structure"` @@ -11187,6 +12974,66 @@ func (s MethodSetting) GoString() string { return s.String() } +// SetCacheDataEncrypted sets the CacheDataEncrypted field's value. +func (s *MethodSetting) SetCacheDataEncrypted(v bool) *MethodSetting { + s.CacheDataEncrypted = &v + return s +} + +// SetCacheTtlInSeconds sets the CacheTtlInSeconds field's value. +func (s *MethodSetting) SetCacheTtlInSeconds(v int64) *MethodSetting { + s.CacheTtlInSeconds = &v + return s +} + +// SetCachingEnabled sets the CachingEnabled field's value. +func (s *MethodSetting) SetCachingEnabled(v bool) *MethodSetting { + s.CachingEnabled = &v + return s +} + +// SetDataTraceEnabled sets the DataTraceEnabled field's value. +func (s *MethodSetting) SetDataTraceEnabled(v bool) *MethodSetting { + s.DataTraceEnabled = &v + return s +} + +// SetLoggingLevel sets the LoggingLevel field's value. +func (s *MethodSetting) SetLoggingLevel(v string) *MethodSetting { + s.LoggingLevel = &v + return s +} + +// SetMetricsEnabled sets the MetricsEnabled field's value. +func (s *MethodSetting) SetMetricsEnabled(v bool) *MethodSetting { + s.MetricsEnabled = &v + return s +} + +// SetRequireAuthorizationForCacheControl sets the RequireAuthorizationForCacheControl field's value. +func (s *MethodSetting) SetRequireAuthorizationForCacheControl(v bool) *MethodSetting { + s.RequireAuthorizationForCacheControl = &v + return s +} + +// SetThrottlingBurstLimit sets the ThrottlingBurstLimit field's value. +func (s *MethodSetting) SetThrottlingBurstLimit(v int64) *MethodSetting { + s.ThrottlingBurstLimit = &v + return s +} + +// SetThrottlingRateLimit sets the ThrottlingRateLimit field's value. +func (s *MethodSetting) SetThrottlingRateLimit(v float64) *MethodSetting { + s.ThrottlingRateLimit = &v + return s +} + +// SetUnauthorizedCacheControlHeaderStrategy sets the UnauthorizedCacheControlHeaderStrategy field's value. +func (s *MethodSetting) SetUnauthorizedCacheControlHeaderStrategy(v string) *MethodSetting { + s.UnauthorizedCacheControlHeaderStrategy = &v + return s +} + // Represents a summary of a Method resource, given a particular date and time. type MethodSnapshot struct { _ struct{} `type:"structure"` @@ -11208,9 +13055,21 @@ func (s MethodSnapshot) GoString() string { return s.String() } +// SetApiKeyRequired sets the ApiKeyRequired field's value. +func (s *MethodSnapshot) SetApiKeyRequired(v bool) *MethodSnapshot { + s.ApiKeyRequired = &v + return s +} + +// SetAuthorizationType sets the AuthorizationType field's value. +func (s *MethodSnapshot) SetAuthorizationType(v string) *MethodSnapshot { + s.AuthorizationType = &v + return s +} + // Represents the data structure of a method's request or response payload. // -// A request model defines the data structure of the client-supplied request +// A request model defines the data structure of the client-supplied request // payload. A response model defines the data structure of the response payload // returned by the back end. Although not required, models are useful for mapping // payloads between the front end and back end. @@ -11218,7 +13077,7 @@ func (s MethodSnapshot) GoString() string { // A model is used for generating an API's SDK, validating the input request // body, and creating a skeletal mapping template. // -// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) +// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) type Model struct { _ struct{} `type:"structure"` @@ -11235,11 +13094,11 @@ type Model struct { Name *string `locationName:"name" type:"string"` // The schema for the model. For application/json models, this should be JSON-schema - // draft v4 (http://json-schema.org/documentation.html" target="_blank) model. - // Do not include "\*/" characters in the description of any properties because - // such "\*/" characters may be interpreted as the closing marker for comments - // in some languages, such as Java or JavaScript, causing the installation of - // your API's SDK generated by API Gateway to fail. + // draft v4 (http://json-schema.org/documentation.html) model. Do not include + // "\*/" characters in the description of any properties because such "\*/" + // characters may be interpreted as the closing marker for comments in some + // languages, such as Java or JavaScript, causing the installation of your API's + // SDK generated by API Gateway to fail. Schema *string `locationName:"schema" type:"string"` } @@ -11253,6 +13112,36 @@ func (s Model) GoString() string { return s.String() } +// SetContentType sets the ContentType field's value. +func (s *Model) SetContentType(v string) *Model { + s.ContentType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Model) SetDescription(v string) *Model { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *Model) SetId(v string) *Model { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Model) SetName(v string) *Model { + s.Name = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *Model) SetSchema(v string) *Model { + s.Schema = &v + return s +} + // A single patch operation to apply to the specified resource. Please refer // to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how // each operation is used. @@ -11293,6 +13182,30 @@ func (s PatchOperation) GoString() string { return s.String() } +// SetFrom sets the From field's value. +func (s *PatchOperation) SetFrom(v string) *PatchOperation { + s.From = &v + return s +} + +// SetOp sets the Op field's value. +func (s *PatchOperation) SetOp(v string) *PatchOperation { + s.Op = &v + return s +} + +// SetPath sets the Path field's value. +func (s *PatchOperation) SetPath(v string) *PatchOperation { + s.Path = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PatchOperation) SetValue(v string) *PatchOperation { + s.Value = &v + return s +} + // Represents a put integration request. type PutIntegrationInput struct { _ struct{} `type:"structure"` @@ -11303,6 +13216,20 @@ type PutIntegrationInput struct { // Specifies a put integration input's cache namespace. CacheNamespace *string `locationName:"cacheNamespace" type:"string"` + // Specifies how to handle request payload content type conversions. Supported + // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors: + // + // * CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded + // string to the corresponding binary blob. + // + // * CONVERT_TO_TEXT: Converts a request payload from a binary blob to a + // Base64-encoded string. + // + // If this property is not defined, the request payload will be passed through + // from the method request to integration request without modification, provided + // that the passthroughBehaviors is configured to support payload pass-through. + ContentHandling *string `locationName:"contentHandling" type:"string" enum:"ContentHandlingStrategy"` + // Specifies whether credentials are required for a put integration. Credentials *string `locationName:"credentials" type:"string"` @@ -11320,15 +13247,15 @@ type PutIntegrationInput struct { // requestTemplates property on the Integration resource. There are three valid // values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. // - // WHEN_NO_MATCH passes the request body for unmapped content types through - // to the integration back end without transformation. + // * WHEN_NO_MATCH passes the request body for unmapped content types through + // to the integration back end without transformation. // - // NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media - // Type' response. + // * NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media + // Type' response. // - // WHEN_NO_TEMPLATES allows pass-through when the integration has NO content - // types mapped to templates. However if there is at least one content type - // defined, unmapped content types will be rejected with the same 415 response. + // * WHEN_NO_TEMPLATES allows pass-through when the integration has NO content + // types mapped to templates. However if there is at least one content type + // defined, unmapped content types will be rejected with the same 415 response. PassthroughBehavior *string `locationName:"passthroughBehavior" type:"string"` // A key-value map specifying request parameters that are passed from the method @@ -11400,10 +13327,101 @@ func (s *PutIntegrationInput) Validate() error { return nil } +// SetCacheKeyParameters sets the CacheKeyParameters field's value. +func (s *PutIntegrationInput) SetCacheKeyParameters(v []*string) *PutIntegrationInput { + s.CacheKeyParameters = v + return s +} + +// SetCacheNamespace sets the CacheNamespace field's value. +func (s *PutIntegrationInput) SetCacheNamespace(v string) *PutIntegrationInput { + s.CacheNamespace = &v + return s +} + +// SetContentHandling sets the ContentHandling field's value. +func (s *PutIntegrationInput) SetContentHandling(v string) *PutIntegrationInput { + s.ContentHandling = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *PutIntegrationInput) SetCredentials(v string) *PutIntegrationInput { + s.Credentials = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *PutIntegrationInput) SetHttpMethod(v string) *PutIntegrationInput { + s.HttpMethod = &v + return s +} + +// SetIntegrationHttpMethod sets the IntegrationHttpMethod field's value. +func (s *PutIntegrationInput) SetIntegrationHttpMethod(v string) *PutIntegrationInput { + s.IntegrationHttpMethod = &v + return s +} + +// SetPassthroughBehavior sets the PassthroughBehavior field's value. +func (s *PutIntegrationInput) SetPassthroughBehavior(v string) *PutIntegrationInput { + s.PassthroughBehavior = &v + return s +} + +// SetRequestParameters sets the RequestParameters field's value. +func (s *PutIntegrationInput) SetRequestParameters(v map[string]*string) *PutIntegrationInput { + s.RequestParameters = v + return s +} + +// SetRequestTemplates sets the RequestTemplates field's value. +func (s *PutIntegrationInput) SetRequestTemplates(v map[string]*string) *PutIntegrationInput { + s.RequestTemplates = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutIntegrationInput) SetResourceId(v string) *PutIntegrationInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutIntegrationInput) SetRestApiId(v string) *PutIntegrationInput { + s.RestApiId = &v + return s +} + +// SetType sets the Type field's value. +func (s *PutIntegrationInput) SetType(v string) *PutIntegrationInput { + s.Type = &v + return s +} + +// SetUri sets the Uri field's value. +func (s *PutIntegrationInput) SetUri(v string) *PutIntegrationInput { + s.Uri = &v + return s +} + // Represents a put integration response request. type PutIntegrationResponseInput struct { _ struct{} `type:"structure"` + // Specifies how to handle response payload content type conversions. Supported + // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors: + // + // * CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded + // string to the corresponding binary blob. + // + // * CONVERT_TO_TEXT: Converts a response payload from a binary blob to a + // Base64-encoded string. + // + // If this property is not defined, the response payload will be passed through + // from the integration response to the method response without modification. + ContentHandling *string `locationName:"contentHandling" type:"string" enum:"ContentHandlingStrategy"` + // Specifies a put integration response request's HTTP method. // // HttpMethod is a required field @@ -11476,6 +13494,54 @@ func (s *PutIntegrationResponseInput) Validate() error { return nil } +// SetContentHandling sets the ContentHandling field's value. +func (s *PutIntegrationResponseInput) SetContentHandling(v string) *PutIntegrationResponseInput { + s.ContentHandling = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *PutIntegrationResponseInput) SetHttpMethod(v string) *PutIntegrationResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutIntegrationResponseInput) SetResourceId(v string) *PutIntegrationResponseInput { + s.ResourceId = &v + return s +} + +// SetResponseParameters sets the ResponseParameters field's value. +func (s *PutIntegrationResponseInput) SetResponseParameters(v map[string]*string) *PutIntegrationResponseInput { + s.ResponseParameters = v + return s +} + +// SetResponseTemplates sets the ResponseTemplates field's value. +func (s *PutIntegrationResponseInput) SetResponseTemplates(v map[string]*string) *PutIntegrationResponseInput { + s.ResponseTemplates = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutIntegrationResponseInput) SetRestApiId(v string) *PutIntegrationResponseInput { + s.RestApiId = &v + return s +} + +// SetSelectionPattern sets the SelectionPattern field's value. +func (s *PutIntegrationResponseInput) SetSelectionPattern(v string) *PutIntegrationResponseInput { + s.SelectionPattern = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *PutIntegrationResponseInput) SetStatusCode(v string) *PutIntegrationResponseInput { + s.StatusCode = &v + return s +} + // Request to add a method to an existing Resource resource. type PutMethodInput struct { _ struct{} `type:"structure"` @@ -11555,6 +13621,54 @@ func (s *PutMethodInput) Validate() error { return nil } +// SetApiKeyRequired sets the ApiKeyRequired field's value. +func (s *PutMethodInput) SetApiKeyRequired(v bool) *PutMethodInput { + s.ApiKeyRequired = &v + return s +} + +// SetAuthorizationType sets the AuthorizationType field's value. +func (s *PutMethodInput) SetAuthorizationType(v string) *PutMethodInput { + s.AuthorizationType = &v + return s +} + +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *PutMethodInput) SetAuthorizerId(v string) *PutMethodInput { + s.AuthorizerId = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *PutMethodInput) SetHttpMethod(v string) *PutMethodInput { + s.HttpMethod = &v + return s +} + +// SetRequestModels sets the RequestModels field's value. +func (s *PutMethodInput) SetRequestModels(v map[string]*string) *PutMethodInput { + s.RequestModels = v + return s +} + +// SetRequestParameters sets the RequestParameters field's value. +func (s *PutMethodInput) SetRequestParameters(v map[string]*bool) *PutMethodInput { + s.RequestParameters = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutMethodInput) SetResourceId(v string) *PutMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutMethodInput) SetRestApiId(v string) *PutMethodInput { + s.RestApiId = &v + return s +} + // Request to add a MethodResponse to an existing Method resource. type PutMethodResponseInput struct { _ struct{} `type:"structure"` @@ -11630,6 +13744,42 @@ func (s *PutMethodResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *PutMethodResponseInput) SetHttpMethod(v string) *PutMethodResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutMethodResponseInput) SetResourceId(v string) *PutMethodResponseInput { + s.ResourceId = &v + return s +} + +// SetResponseModels sets the ResponseModels field's value. +func (s *PutMethodResponseInput) SetResponseModels(v map[string]*string) *PutMethodResponseInput { + s.ResponseModels = v + return s +} + +// SetResponseParameters sets the ResponseParameters field's value. +func (s *PutMethodResponseInput) SetResponseParameters(v map[string]*bool) *PutMethodResponseInput { + s.ResponseParameters = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutMethodResponseInput) SetRestApiId(v string) *PutMethodResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *PutMethodResponseInput) SetStatusCode(v string) *PutMethodResponseInput { + s.StatusCode = &v + return s +} + // A PUT request to update an existing API, with external API definitions specified // as the request body. type PutRestApiInput struct { @@ -11684,6 +13834,36 @@ func (s *PutRestApiInput) Validate() error { return nil } +// SetBody sets the Body field's value. +func (s *PutRestApiInput) SetBody(v []byte) *PutRestApiInput { + s.Body = v + return s +} + +// SetFailOnWarnings sets the FailOnWarnings field's value. +func (s *PutRestApiInput) SetFailOnWarnings(v bool) *PutRestApiInput { + s.FailOnWarnings = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *PutRestApiInput) SetMode(v string) *PutRestApiInput { + s.Mode = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *PutRestApiInput) SetParameters(v map[string]*string) *PutRestApiInput { + s.Parameters = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutRestApiInput) SetRestApiId(v string) *PutRestApiInput { + s.RestApiId = &v + return s +} + // Quotas configured for a usage plan. type QuotaSettings struct { _ struct{} `type:"structure"` @@ -11710,9 +13890,27 @@ func (s QuotaSettings) GoString() string { return s.String() } +// SetLimit sets the Limit field's value. +func (s *QuotaSettings) SetLimit(v int64) *QuotaSettings { + s.Limit = &v + return s +} + +// SetOffset sets the Offset field's value. +func (s *QuotaSettings) SetOffset(v int64) *QuotaSettings { + s.Offset = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *QuotaSettings) SetPeriod(v string) *QuotaSettings { + s.Period = &v + return s +} + // Represents an API resource. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type Resource struct { _ struct{} `type:"structure"` @@ -11730,7 +13928,7 @@ type Resource struct { // Gets an API resource's method of a given HTTP verb. // - // The resource methods are a map of methods indexed by methods' HTTP verbs + // The resource methods are a map of methods indexed by methods' HTTP verbs // enabled on the resource. This method map is included in the 200 OK response // of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods // request. @@ -11742,7 +13940,8 @@ type Resource struct { // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: // application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160608T031827Z // Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160608/us-east-1/apigateway/aws4_request, - // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response + // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} + // Response // // { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", // "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", @@ -11780,7 +13979,8 @@ type Resource struct { // }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" // } }, "responseModels": { "application/json": "Empty" }, "responseParameters": // { "method.response.header.Content-Type": false }, "statusCode": "200" } } - // } If the OPTIONS is enabled on the resource, you can follow the example here + // } + // If the OPTIONS is enabled on the resource, you can follow the example here // to get that method. Just replace the GET of the last path segment in the // request URL with OPTIONS. ResourceMethods map[string]*Method `locationName:"resourceMethods" type:"map"` @@ -11796,14 +13996,47 @@ func (s Resource) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *Resource) SetId(v string) *Resource { + s.Id = &v + return s +} + +// SetParentId sets the ParentId field's value. +func (s *Resource) SetParentId(v string) *Resource { + s.ParentId = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Resource) SetPath(v string) *Resource { + s.Path = &v + return s +} + +// SetPathPart sets the PathPart field's value. +func (s *Resource) SetPathPart(v string) *Resource { + s.PathPart = &v + return s +} + +// SetResourceMethods sets the ResourceMethods field's value. +func (s *Resource) SetResourceMethods(v map[string]*Method) *Resource { + s.ResourceMethods = v + return s +} + // Represents a REST API. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type RestApi struct { _ struct{} `type:"structure"` - // The date when the API was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The list of binary media types supported by the RestApi. By default, the + // RestApi supports only UTF-8-encoded text payloads. + BinaryMediaTypes []*string `locationName:"binaryMediaTypes" type:"list"` + + // The date when the API was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm). CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` // The API's description. @@ -11831,10 +14064,46 @@ func (s RestApi) GoString() string { return s.String() } +// SetBinaryMediaTypes sets the BinaryMediaTypes field's value. +func (s *RestApi) SetBinaryMediaTypes(v []*string) *RestApi { + s.BinaryMediaTypes = v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *RestApi) SetCreatedDate(v time.Time) *RestApi { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *RestApi) SetDescription(v string) *RestApi { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *RestApi) SetId(v string) *RestApi { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *RestApi) SetName(v string) *RestApi { + s.Name = &v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *RestApi) SetWarnings(v []*string) *RestApi { + s.Warnings = v + return s +} + // Represents a unique identifier for a version of a deployed RestApi that is // callable by users. // -// Deploy an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html) +// Deploy an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html) type Stage struct { _ struct{} `type:"structure"` @@ -11850,8 +14119,7 @@ type Stage struct { // The identifier of a client certificate for an API stage. ClientCertificateId *string `locationName:"clientCertificateId" type:"string"` - // The date and time that the stage was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The date and time that the stage was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm). CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` // The identifier of the Deployment that the stage points to. @@ -11861,7 +14129,7 @@ type Stage struct { Description *string `locationName:"description" type:"string"` // The date and time that information about the stage was last updated, in ISO - // 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" target="_blank). + // 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm). LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"` // A map that defines the method settings for a Stage resource. Keys (designated @@ -11890,6 +14158,72 @@ func (s Stage) GoString() string { return s.String() } +// SetCacheClusterEnabled sets the CacheClusterEnabled field's value. +func (s *Stage) SetCacheClusterEnabled(v bool) *Stage { + s.CacheClusterEnabled = &v + return s +} + +// SetCacheClusterSize sets the CacheClusterSize field's value. +func (s *Stage) SetCacheClusterSize(v string) *Stage { + s.CacheClusterSize = &v + return s +} + +// SetCacheClusterStatus sets the CacheClusterStatus field's value. +func (s *Stage) SetCacheClusterStatus(v string) *Stage { + s.CacheClusterStatus = &v + return s +} + +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *Stage) SetClientCertificateId(v string) *Stage { + s.ClientCertificateId = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *Stage) SetCreatedDate(v time.Time) *Stage { + s.CreatedDate = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *Stage) SetDeploymentId(v string) *Stage { + s.DeploymentId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Stage) SetDescription(v string) *Stage { + s.Description = &v + return s +} + +// SetLastUpdatedDate sets the LastUpdatedDate field's value. +func (s *Stage) SetLastUpdatedDate(v time.Time) *Stage { + s.LastUpdatedDate = &v + return s +} + +// SetMethodSettings sets the MethodSettings field's value. +func (s *Stage) SetMethodSettings(v map[string]*MethodSetting) *Stage { + s.MethodSettings = v + return s +} + +// SetStageName sets the StageName field's value. +func (s *Stage) SetStageName(v string) *Stage { + s.StageName = &v + return s +} + +// SetVariables sets the Variables field's value. +func (s *Stage) SetVariables(v map[string]*string) *Stage { + s.Variables = v + return s +} + // A reference to a unique stage identified in the format {restApiId}/{stage}. type StageKey struct { _ struct{} `type:"structure"` @@ -11911,6 +14245,18 @@ func (s StageKey) GoString() string { return s.String() } +// SetRestApiId sets the RestApiId field's value. +func (s *StageKey) SetRestApiId(v string) *StageKey { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *StageKey) SetStageName(v string) *StageKey { + s.StageName = &v + return s +} + // Make a request to simulate the execution of an Authorizer. type TestInvokeAuthorizerInput struct { _ struct{} `type:"structure"` @@ -11971,6 +14317,48 @@ func (s *TestInvokeAuthorizerInput) Validate() error { return nil } +// SetAdditionalContext sets the AdditionalContext field's value. +func (s *TestInvokeAuthorizerInput) SetAdditionalContext(v map[string]*string) *TestInvokeAuthorizerInput { + s.AdditionalContext = v + return s +} + +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *TestInvokeAuthorizerInput) SetAuthorizerId(v string) *TestInvokeAuthorizerInput { + s.AuthorizerId = &v + return s +} + +// SetBody sets the Body field's value. +func (s *TestInvokeAuthorizerInput) SetBody(v string) *TestInvokeAuthorizerInput { + s.Body = &v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *TestInvokeAuthorizerInput) SetHeaders(v map[string]*string) *TestInvokeAuthorizerInput { + s.Headers = v + return s +} + +// SetPathWithQueryString sets the PathWithQueryString field's value. +func (s *TestInvokeAuthorizerInput) SetPathWithQueryString(v string) *TestInvokeAuthorizerInput { + s.PathWithQueryString = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *TestInvokeAuthorizerInput) SetRestApiId(v string) *TestInvokeAuthorizerInput { + s.RestApiId = &v + return s +} + +// SetStageVariables sets the StageVariables field's value. +func (s *TestInvokeAuthorizerInput) SetStageVariables(v map[string]*string) *TestInvokeAuthorizerInput { + s.StageVariables = v + return s +} + // Represents the response of the test invoke request for a custom Authorizer type TestInvokeAuthorizerOutput struct { _ struct{} `type:"structure"` @@ -12009,6 +14397,48 @@ func (s TestInvokeAuthorizerOutput) GoString() string { return s.String() } +// SetAuthorization sets the Authorization field's value. +func (s *TestInvokeAuthorizerOutput) SetAuthorization(v map[string][]*string) *TestInvokeAuthorizerOutput { + s.Authorization = v + return s +} + +// SetClaims sets the Claims field's value. +func (s *TestInvokeAuthorizerOutput) SetClaims(v map[string]*string) *TestInvokeAuthorizerOutput { + s.Claims = v + return s +} + +// SetClientStatus sets the ClientStatus field's value. +func (s *TestInvokeAuthorizerOutput) SetClientStatus(v int64) *TestInvokeAuthorizerOutput { + s.ClientStatus = &v + return s +} + +// SetLatency sets the Latency field's value. +func (s *TestInvokeAuthorizerOutput) SetLatency(v int64) *TestInvokeAuthorizerOutput { + s.Latency = &v + return s +} + +// SetLog sets the Log field's value. +func (s *TestInvokeAuthorizerOutput) SetLog(v string) *TestInvokeAuthorizerOutput { + s.Log = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *TestInvokeAuthorizerOutput) SetPolicy(v string) *TestInvokeAuthorizerOutput { + s.Policy = &v + return s +} + +// SetPrincipalId sets the PrincipalId field's value. +func (s *TestInvokeAuthorizerOutput) SetPrincipalId(v string) *TestInvokeAuthorizerOutput { + s.PrincipalId = &v + return s +} + // Make a request to simulate the execution of a Method. type TestInvokeMethodInput struct { _ struct{} `type:"structure"` @@ -12077,9 +14507,57 @@ func (s *TestInvokeMethodInput) Validate() error { return nil } +// SetBody sets the Body field's value. +func (s *TestInvokeMethodInput) SetBody(v string) *TestInvokeMethodInput { + s.Body = &v + return s +} + +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *TestInvokeMethodInput) SetClientCertificateId(v string) *TestInvokeMethodInput { + s.ClientCertificateId = &v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *TestInvokeMethodInput) SetHeaders(v map[string]*string) *TestInvokeMethodInput { + s.Headers = v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *TestInvokeMethodInput) SetHttpMethod(v string) *TestInvokeMethodInput { + s.HttpMethod = &v + return s +} + +// SetPathWithQueryString sets the PathWithQueryString field's value. +func (s *TestInvokeMethodInput) SetPathWithQueryString(v string) *TestInvokeMethodInput { + s.PathWithQueryString = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *TestInvokeMethodInput) SetResourceId(v string) *TestInvokeMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *TestInvokeMethodInput) SetRestApiId(v string) *TestInvokeMethodInput { + s.RestApiId = &v + return s +} + +// SetStageVariables sets the StageVariables field's value. +func (s *TestInvokeMethodInput) SetStageVariables(v map[string]*string) *TestInvokeMethodInput { + s.StageVariables = v + return s +} + // Represents the response of the test invoke request in the HTTP method. // -// Test API using the API Gateway console (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html#how-to-test-method-console) +// Test API using the API Gateway console (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html#how-to-test-method-console) type TestInvokeMethodOutput struct { _ struct{} `type:"structure"` @@ -12109,6 +14587,36 @@ func (s TestInvokeMethodOutput) GoString() string { return s.String() } +// SetBody sets the Body field's value. +func (s *TestInvokeMethodOutput) SetBody(v string) *TestInvokeMethodOutput { + s.Body = &v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *TestInvokeMethodOutput) SetHeaders(v map[string]*string) *TestInvokeMethodOutput { + s.Headers = v + return s +} + +// SetLatency sets the Latency field's value. +func (s *TestInvokeMethodOutput) SetLatency(v int64) *TestInvokeMethodOutput { + s.Latency = &v + return s +} + +// SetLog sets the Log field's value. +func (s *TestInvokeMethodOutput) SetLog(v string) *TestInvokeMethodOutput { + s.Log = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TestInvokeMethodOutput) SetStatus(v int64) *TestInvokeMethodOutput { + s.Status = &v + return s +} + // The API request rate limits. type ThrottleSettings struct { _ struct{} `type:"structure"` @@ -12132,6 +14640,18 @@ func (s ThrottleSettings) GoString() string { return s.String() } +// SetBurstLimit sets the BurstLimit field's value. +func (s *ThrottleSettings) SetBurstLimit(v int64) *ThrottleSettings { + s.BurstLimit = &v + return s +} + +// SetRateLimit sets the RateLimit field's value. +func (s *ThrottleSettings) SetRateLimit(v float64) *ThrottleSettings { + s.RateLimit = &v + return s +} + // Requests Amazon API Gateway to change information about the current Account // resource. type UpdateAccountInput struct { @@ -12152,6 +14672,12 @@ func (s UpdateAccountInput) GoString() string { return s.String() } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateAccountInput) SetPatchOperations(v []*PatchOperation) *UpdateAccountInput { + s.PatchOperations = v + return s +} + // A request to change information about an ApiKey resource. type UpdateApiKeyInput struct { _ struct{} `type:"structure"` @@ -12189,6 +14715,18 @@ func (s *UpdateApiKeyInput) Validate() error { return nil } +// SetApiKey sets the ApiKey field's value. +func (s *UpdateApiKeyInput) SetApiKey(v string) *UpdateApiKeyInput { + s.ApiKey = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateApiKeyInput) SetPatchOperations(v []*PatchOperation) *UpdateApiKeyInput { + s.PatchOperations = v + return s +} + // Request to update an existing Authorizer resource. type UpdateAuthorizerInput struct { _ struct{} `type:"structure"` @@ -12234,6 +14772,24 @@ func (s *UpdateAuthorizerInput) Validate() error { return nil } +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *UpdateAuthorizerInput) SetAuthorizerId(v string) *UpdateAuthorizerInput { + s.AuthorizerId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateAuthorizerInput) SetPatchOperations(v []*PatchOperation) *UpdateAuthorizerInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateAuthorizerInput) SetRestApiId(v string) *UpdateAuthorizerInput { + s.RestApiId = &v + return s +} + // A request to change information about the BasePathMapping resource. type UpdateBasePathMappingInput struct { _ struct{} `type:"structure"` @@ -12279,6 +14835,24 @@ func (s *UpdateBasePathMappingInput) Validate() error { return nil } +// SetBasePath sets the BasePath field's value. +func (s *UpdateBasePathMappingInput) SetBasePath(v string) *UpdateBasePathMappingInput { + s.BasePath = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateBasePathMappingInput) SetDomainName(v string) *UpdateBasePathMappingInput { + s.DomainName = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateBasePathMappingInput) SetPatchOperations(v []*PatchOperation) *UpdateBasePathMappingInput { + s.PatchOperations = v + return s +} + // A request to change information about an ClientCertificate resource. type UpdateClientCertificateInput struct { _ struct{} `type:"structure"` @@ -12316,6 +14890,18 @@ func (s *UpdateClientCertificateInput) Validate() error { return nil } +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *UpdateClientCertificateInput) SetClientCertificateId(v string) *UpdateClientCertificateInput { + s.ClientCertificateId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateClientCertificateInput) SetPatchOperations(v []*PatchOperation) *UpdateClientCertificateInput { + s.PatchOperations = v + return s +} + // Requests Amazon API Gateway to change information about a Deployment resource. type UpdateDeploymentInput struct { _ struct{} `type:"structure"` @@ -12363,6 +14949,24 @@ func (s *UpdateDeploymentInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *UpdateDeploymentInput) SetDeploymentId(v string) *UpdateDeploymentInput { + s.DeploymentId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateDeploymentInput) SetPatchOperations(v []*PatchOperation) *UpdateDeploymentInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateDeploymentInput) SetRestApiId(v string) *UpdateDeploymentInput { + s.RestApiId = &v + return s +} + // A request to change information about the DomainName resource. type UpdateDomainNameInput struct { _ struct{} `type:"structure"` @@ -12400,6 +15004,18 @@ func (s *UpdateDomainNameInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *UpdateDomainNameInput) SetDomainName(v string) *UpdateDomainNameInput { + s.DomainName = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateDomainNameInput) SetPatchOperations(v []*PatchOperation) *UpdateDomainNameInput { + s.PatchOperations = v + return s +} + // Represents an update integration request. type UpdateIntegrationInput struct { _ struct{} `type:"structure"` @@ -12453,6 +15069,30 @@ func (s *UpdateIntegrationInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *UpdateIntegrationInput) SetHttpMethod(v string) *UpdateIntegrationInput { + s.HttpMethod = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateIntegrationInput) SetPatchOperations(v []*PatchOperation) *UpdateIntegrationInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateIntegrationInput) SetResourceId(v string) *UpdateIntegrationInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateIntegrationInput) SetRestApiId(v string) *UpdateIntegrationInput { + s.RestApiId = &v + return s +} + // Represents an update integration response request. type UpdateIntegrationResponseInput struct { _ struct{} `type:"structure"` @@ -12514,6 +15154,36 @@ func (s *UpdateIntegrationResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *UpdateIntegrationResponseInput) SetHttpMethod(v string) *UpdateIntegrationResponseInput { + s.HttpMethod = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateIntegrationResponseInput) SetPatchOperations(v []*PatchOperation) *UpdateIntegrationResponseInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateIntegrationResponseInput) SetResourceId(v string) *UpdateIntegrationResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateIntegrationResponseInput) SetRestApiId(v string) *UpdateIntegrationResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *UpdateIntegrationResponseInput) SetStatusCode(v string) *UpdateIntegrationResponseInput { + s.StatusCode = &v + return s +} + // Request to update an existing Method resource. type UpdateMethodInput struct { _ struct{} `type:"structure"` @@ -12567,6 +15237,30 @@ func (s *UpdateMethodInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *UpdateMethodInput) SetHttpMethod(v string) *UpdateMethodInput { + s.HttpMethod = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateMethodInput) SetPatchOperations(v []*PatchOperation) *UpdateMethodInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateMethodInput) SetResourceId(v string) *UpdateMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateMethodInput) SetRestApiId(v string) *UpdateMethodInput { + s.RestApiId = &v + return s +} + // A request to update an existing MethodResponse resource. type UpdateMethodResponseInput struct { _ struct{} `type:"structure"` @@ -12628,6 +15322,36 @@ func (s *UpdateMethodResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *UpdateMethodResponseInput) SetHttpMethod(v string) *UpdateMethodResponseInput { + s.HttpMethod = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateMethodResponseInput) SetPatchOperations(v []*PatchOperation) *UpdateMethodResponseInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateMethodResponseInput) SetResourceId(v string) *UpdateMethodResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateMethodResponseInput) SetRestApiId(v string) *UpdateMethodResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *UpdateMethodResponseInput) SetStatusCode(v string) *UpdateMethodResponseInput { + s.StatusCode = &v + return s +} + // Request to update an existing model in an existing RestApi resource. type UpdateModelInput struct { _ struct{} `type:"structure"` @@ -12673,6 +15397,24 @@ func (s *UpdateModelInput) Validate() error { return nil } +// SetModelName sets the ModelName field's value. +func (s *UpdateModelInput) SetModelName(v string) *UpdateModelInput { + s.ModelName = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateModelInput) SetPatchOperations(v []*PatchOperation) *UpdateModelInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateModelInput) SetRestApiId(v string) *UpdateModelInput { + s.RestApiId = &v + return s +} + // Request to change information about a Resource resource. type UpdateResourceInput struct { _ struct{} `type:"structure"` @@ -12718,6 +15460,24 @@ func (s *UpdateResourceInput) Validate() error { return nil } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateResourceInput) SetPatchOperations(v []*PatchOperation) *UpdateResourceInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateResourceInput) SetResourceId(v string) *UpdateResourceInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateResourceInput) SetRestApiId(v string) *UpdateResourceInput { + s.RestApiId = &v + return s +} + // Request to update an existing RestApi resource in your collection. type UpdateRestApiInput struct { _ struct{} `type:"structure"` @@ -12755,6 +15515,18 @@ func (s *UpdateRestApiInput) Validate() error { return nil } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateRestApiInput) SetPatchOperations(v []*PatchOperation) *UpdateRestApiInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateRestApiInput) SetRestApiId(v string) *UpdateRestApiInput { + s.RestApiId = &v + return s +} + // Requests Amazon API Gateway to change information about a Stage resource. type UpdateStageInput struct { _ struct{} `type:"structure"` @@ -12801,6 +15573,24 @@ func (s *UpdateStageInput) Validate() error { return nil } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateStageInput) SetPatchOperations(v []*PatchOperation) *UpdateStageInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateStageInput) SetRestApiId(v string) *UpdateStageInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *UpdateStageInput) SetStageName(v string) *UpdateStageInput { + s.StageName = &v + return s +} + // The PATCH request to grant a temporary extension to the reamining quota of // a usage plan associated with a specified API key. type UpdateUsageInput struct { @@ -12848,6 +15638,24 @@ func (s *UpdateUsageInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *UpdateUsageInput) SetKeyId(v string) *UpdateUsageInput { + s.KeyId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateUsageInput) SetPatchOperations(v []*PatchOperation) *UpdateUsageInput { + s.PatchOperations = v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *UpdateUsageInput) SetUsagePlanId(v string) *UpdateUsageInput { + s.UsagePlanId = &v + return s +} + // The PATCH request to update a usage plan of a given plan Id. type UpdateUsagePlanInput struct { _ struct{} `type:"structure"` @@ -12885,10 +15693,21 @@ func (s *UpdateUsagePlanInput) Validate() error { return nil } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateUsagePlanInput) SetPatchOperations(v []*PatchOperation) *UpdateUsagePlanInput { + s.PatchOperations = v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *UpdateUsagePlanInput) SetUsagePlanId(v string) *UpdateUsagePlanInput { + s.UsagePlanId = &v + return s +} + // Represents the usage data of a usage plan. // -// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html), -// Manage Usage in a Usage Plan (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-plans-with-console.html#api-gateway-usage-plan-manage-usage) +// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html), Manage Usage in a Usage Plan (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-plans-with-console.html#api-gateway-usage-plan-manage-usage) type Usage struct { _ struct{} `type:"structure"` @@ -12921,14 +15740,44 @@ func (s Usage) GoString() string { return s.String() } +// SetEndDate sets the EndDate field's value. +func (s *Usage) SetEndDate(v string) *Usage { + s.EndDate = &v + return s +} + +// SetItems sets the Items field's value. +func (s *Usage) SetItems(v map[string][][]*int64) *Usage { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *Usage) SetPosition(v string) *Usage { + s.Position = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *Usage) SetStartDate(v string) *Usage { + s.StartDate = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *Usage) SetUsagePlanId(v string) *Usage { + s.UsagePlanId = &v + return s +} + // Represents a usage plan than can specify who can assess associated API stages // with specified request limits and quotas. // -// In a usage plan, you associate an API by specifying the API's Id and a -// stage name of the specified API. You add plan customers by adding API keys -// to the plan. +// In a usage plan, you associate an API by specifying the API's Id and a stage +// name of the specified API. You add plan customers by adding API keys to the +// plan. // -// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) +// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type UsagePlan struct { _ struct{} `type:"structure"` @@ -12961,12 +15810,48 @@ func (s UsagePlan) GoString() string { return s.String() } +// SetApiStages sets the ApiStages field's value. +func (s *UsagePlan) SetApiStages(v []*ApiStage) *UsagePlan { + s.ApiStages = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UsagePlan) SetDescription(v string) *UsagePlan { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *UsagePlan) SetId(v string) *UsagePlan { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UsagePlan) SetName(v string) *UsagePlan { + s.Name = &v + return s +} + +// SetQuota sets the Quota field's value. +func (s *UsagePlan) SetQuota(v *QuotaSettings) *UsagePlan { + s.Quota = v + return s +} + +// SetThrottle sets the Throttle field's value. +func (s *UsagePlan) SetThrottle(v *ThrottleSettings) *UsagePlan { + s.Throttle = v + return s +} + // Represents a usage plan key to identify a plan customer. // -// To associate an API stage with a selected API key in a usage plan, you -// must create a UsagePlanKey resource to represent the selected ApiKey. +// To associate an API stage with a selected API key in a usage plan, you must +// create a UsagePlanKey resource to represent the selected ApiKey. // -// " Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) +// " Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type UsagePlanKey struct { _ struct{} `type:"structure"` @@ -12993,12 +15878,37 @@ func (s UsagePlanKey) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *UsagePlanKey) SetId(v string) *UsagePlanKey { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UsagePlanKey) SetName(v string) *UsagePlanKey { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *UsagePlanKey) SetType(v string) *UsagePlanKey { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *UsagePlanKey) SetValue(v string) *UsagePlanKey { + s.Value = &v + return s +} + const ( // ApiKeysFormatCsv is a ApiKeysFormat enum value ApiKeysFormatCsv = "csv" ) -// The authorizer type. the only current value is TOKEN. +// The authorizer type. the current value is TOKEN for a Lambda function or +// COGNITO_USER_POOLS for an Amazon Cognito Your User Pool. const ( // AuthorizerTypeToken is a AuthorizerType enum value AuthorizerTypeToken = "TOKEN" @@ -13052,6 +15962,14 @@ const ( CacheClusterStatusFlushInProgress = "FLUSH_IN_PROGRESS" ) +const ( + // ContentHandlingStrategyConvertToBinary is a ContentHandlingStrategy enum value + ContentHandlingStrategyConvertToBinary = "CONVERT_TO_BINARY" + + // ContentHandlingStrategyConvertToText is a ContentHandlingStrategy enum value + ContentHandlingStrategyConvertToText = "CONVERT_TO_TEXT" +) + // The integration type. The valid value is HTTP for integrating with an HTTP // back end, AWS for any AWS service endpoints, MOCK for testing without actually // invoking the back end, HTTP_PROXY for integrating with the HTTP proxy integration, diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go index 0bcf442a9..96c1cb50c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go @@ -56,15 +56,13 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling // DeleteScalingPolicy API operation for Application Auto Scaling. // -// Deletes an Application Auto Scaling scaling policy that was previously created. -// If you are no longer using a scaling policy, you can delete it with this -// operation. +// Deletes the specified Application Auto Scaling scaling policy. // // Deleting a policy deletes the underlying alarm action, but does not delete // the CloudWatch alarm associated with the scaling policy, even if it no longer // has an associated action. // -// To create a new scaling policy or update an existing one, see PutScalingPolicy. +// To create a scaling policy or update an existing one, see PutScalingPolicy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -144,12 +142,12 @@ func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *Deregist // DeregisterScalableTarget API operation for Application Auto Scaling. // -// Deregisters a scalable target that was previously registered. If you are -// no longer using a scalable target, you can delete it with this operation. -// When you deregister a scalable target, all of the scaling policies that are -// associated with that scalable target are deleted. +// Deregisters a scalable target. // -// To create a new scalable target or update an existing one, see RegisterScalableTarget. +// Deregistering a scalable target deletes the scaling policies that are associated +// with it. +// +// To create a scalable target or update an existing one, see RegisterScalableTarget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -235,14 +233,13 @@ func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeS // DescribeScalableTargets API operation for Application Auto Scaling. // -// Provides descriptive information for scalable targets with a specified service +// Provides descriptive information about the scalable targets in the specified // namespace. // -// You can filter the results in a service namespace with the ResourceIds and -// ScalableDimension parameters. +// You can filter the results using the ResourceIds and ScalableDimension parameters. // -// To create a new scalable target or update an existing one, see RegisterScalableTarget. -// If you are no longer using a scalable target, you can deregister it with +// To create a scalable target or update an existing one, see RegisterScalableTarget. +// If you are no longer using a scalable target, you can deregister it using // DeregisterScalableTarget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -349,16 +346,15 @@ func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *Describ // DescribeScalingActivities API operation for Application Auto Scaling. // -// Provides descriptive information for scaling activities with a specified -// service namespace for the previous six weeks. +// Provides descriptive information about the scaling activities in the specified +// namespace from the previous six weeks. // -// You can filter the results in a service namespace with the ResourceId and -// ScalableDimension parameters. +// You can filter the results using the ResourceId and ScalableDimension parameters. // // Scaling activities are triggered by CloudWatch alarms that are associated -// with scaling policies. To view the existing scaling policies for a service -// namespace, see DescribeScalingPolicies. To create a new scaling policy or -// update an existing one, see PutScalingPolicy. +// with scaling policies. To view the scaling policies for a service namespace, +// see DescribeScalingPolicies. To create a scaling policy or update an existing +// one, see PutScalingPolicy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -464,14 +460,14 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS // DescribeScalingPolicies API operation for Application Auto Scaling. // -// Provides descriptive information for scaling policies with a specified service +// Provides descriptive information about the scaling policies in the specified // namespace. // -// You can filter the results in a service namespace with the ResourceId, ScalableDimension, -// and PolicyNames parameters. +// You can filter the results using the ResourceId, ScalableDimension, and PolicyNames +// parameters. // -// To create a new scaling policy or update an existing one, see PutScalingPolicy. -// If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy. +// To create a scaling policy or update an existing one, see PutScalingPolicy. +// If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -580,19 +576,19 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy // PutScalingPolicy API operation for Application Auto Scaling. // -// Creates or updates a policy for an existing Application Auto Scaling scalable -// target. Each scalable target is identified by service namespace, a resource -// ID, and a scalable dimension, and a scaling policy applies to a scalable -// target that is identified by those three attributes. You cannot create a -// scaling policy without first registering a scalable target with RegisterScalableTarget. +// Creates or updates a policy for an Application Auto Scaling scalable target. // -// To update an existing policy, use the existing policy name and set the parameters -// you want to change. Any existing parameter not changed in an update to an -// existing policy is not changed in this update request. +// Each scalable target is identified by a service namespace, resource ID, and +// scalable dimension. A scaling policy applies to the scalable target identified +// by those three attributes. You cannot create a scaling policy without first +// registering a scalable target using RegisterScalableTarget. // -// You can view the existing scaling policies for a service namespace with -// DescribeScalingPolicies. If you are no longer using a scaling policy, you -// can delete it with DeleteScalingPolicy. +// To update a policy, specify its policy name and the parameters that you want +// to change. Any parameters that you don't specify are not changed by this +// update request. +// +// You can view the scaling policies for a service namespace using DescribeScalingPolicies. +// If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -678,15 +674,14 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc // RegisterScalableTarget API operation for Application Auto Scaling. // // Registers or updates a scalable target. A scalable target is a resource that -// can be scaled out or in with Application Auto Scaling. After you have registered +// Application Auto Scaling can scale out or scale in. After you have registered // a scalable target, you can use this operation to update the minimum and maximum // values for your scalable dimension. // -// After you register a scalable target with Application Auto Scaling, you -// can create and apply scaling policies to it with PutScalingPolicy. You can -// view the existing scaling policies for a service namespace with DescribeScalableTargets. -// If you are no longer using a scalable target, you can deregister it with -// DeregisterScalableTarget. +// After you register a scalable target, you can create and apply scaling policies +// using PutScalingPolicy. You can view the scaling policies for a service namespace +// using DescribeScalableTargets. If you are no longer using a scalable target, +// you can deregister it using DeregisterScalableTarget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -718,7 +713,7 @@ func (c *ApplicationAutoScaling) RegisterScalableTarget(input *RegisterScalableT return out, err } -// An object representing a CloudWatch alarm associated with a scaling policy. +// Represents a CloudWatch alarm associated with a scaling policy. type Alarm struct { _ struct{} `type:"structure"` @@ -743,34 +738,57 @@ func (s Alarm) GoString() string { return s.String() } +// SetAlarmARN sets the AlarmARN field's value. +func (s *Alarm) SetAlarmARN(v string) *Alarm { + s.AlarmARN = &v + return s +} + +// SetAlarmName sets the AlarmName field's value. +func (s *Alarm) SetAlarmName(v string) *Alarm { + s.AlarmName = &v + return s +} + type DeleteScalingPolicyInput struct { _ struct{} `type:"structure"` - // The name of the scaling policy to delete. + // The name of the scaling policy. // // PolicyName is a required field PolicyName *string `min:"1" type:"string" required:"true"` - // The resource type and unique identifier string for the resource associated - // with the scaling policy. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scaling policy. The scalable dimension - // contains the service namespace, resource type, and scaling property, such - // as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, - // or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon - // EC2 Spot fleet request. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scaling policy is associated with. - // For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -815,6 +833,30 @@ func (s *DeleteScalingPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteScalingPolicyInput) SetPolicyName(v string) *DeleteScalingPolicyInput { + s.PolicyName = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteScalingPolicyInput) SetResourceId(v string) *DeleteScalingPolicyInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DeleteScalingPolicyInput) SetScalableDimension(v string) *DeleteScalingPolicyInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DeleteScalingPolicyInput) SetServiceNamespace(v string) *DeleteScalingPolicyInput { + s.ServiceNamespace = &v + return s +} + type DeleteScalingPolicyOutput struct { _ struct{} `type:"structure"` } @@ -832,26 +874,37 @@ func (s DeleteScalingPolicyOutput) GoString() string { type DeregisterScalableTargetInput struct { _ struct{} `type:"structure"` - // The resource type and unique identifier string for the resource associated - // with the scalable target. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. + // The scalable dimension associated with the scalable target. This string consists + // of the service namespace, resource type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -890,6 +943,24 @@ func (s *DeregisterScalableTargetInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *DeregisterScalableTargetInput) SetResourceId(v string) *DeregisterScalableTargetInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DeregisterScalableTargetInput) SetScalableDimension(v string) *DeregisterScalableTargetInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DeregisterScalableTargetInput) SetServiceNamespace(v string) *DeregisterScalableTargetInput { + s.ServiceNamespace = &v + return s +} + type DeregisterScalableTargetOutput struct { _ struct{} `type:"structure"` } @@ -907,40 +978,47 @@ func (s DeregisterScalableTargetOutput) GoString() string { type DescribeScalableTargetsInput struct { _ struct{} `type:"structure"` - // The maximum number of scalable target results returned by DescribeScalableTargets - // in paginated output. When this parameter is used, DescribeScalableTargets - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalableTargets request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalableTargets returns up to 50 results and a NextToken value, - // if applicable. + // The maximum number of scalable target results. This value can be between + // 1 and 50. The default value is 50. + // + // If this parameter is used, the operation returns up to MaxResults results + // at a time, along with a NextToken value. To get the next set of results, + // include the NextToken value in a subsequent call. If this parameter is not + // used, the operation returns up to 50 results and a NextToken value, if applicable. MaxResults *int64 `type:"integer"` - // The NextToken value returned from a previous paginated DescribeScalableTargets - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. + // The token for the next set of results. NextToken *string `type:"string"` - // The resource type and unique identifier string for the resource associated - // with the scalable target. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. - // If you specify a scalable dimension, you must also specify a resource ID. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. If you specify + // a scalable dimension, you must also specify a resource ID. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. ResourceIds []*string `type:"list"` - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. If you specify a scalable dimension, - // you must also specify a resource ID. + // The scalable dimension associated with the scalable target. This string consists + // of the service namespace, resource type, and scaling property. If you specify + // a scalable dimension, you must also specify a resource ID. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. ScalableDimension *string `type:"string" enum:"ScalableDimension"` - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -970,13 +1048,41 @@ func (s *DescribeScalableTargetsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScalableTargetsInput) SetMaxResults(v int64) *DescribeScalableTargetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalableTargetsInput) SetNextToken(v string) *DescribeScalableTargetsInput { + s.NextToken = &v + return s +} + +// SetResourceIds sets the ResourceIds field's value. +func (s *DescribeScalableTargetsInput) SetResourceIds(v []*string) *DescribeScalableTargetsInput { + s.ResourceIds = v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DescribeScalableTargetsInput) SetScalableDimension(v string) *DescribeScalableTargetsInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DescribeScalableTargetsInput) SetServiceNamespace(v string) *DescribeScalableTargetsInput { + s.ServiceNamespace = &v + return s +} + type DescribeScalableTargetsOutput struct { _ struct{} `type:"structure"` - // The NextToken value to include in a future DescribeScalableTargets request. - // When the results of a DescribeScalableTargets request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. + // The token required to get the next set of results. This value is null if + // there are no more results to return. NextToken *string `type:"string"` // The list of scalable targets that matches the request parameters. @@ -993,44 +1099,62 @@ func (s DescribeScalableTargetsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalableTargetsOutput) SetNextToken(v string) *DescribeScalableTargetsOutput { + s.NextToken = &v + return s +} + +// SetScalableTargets sets the ScalableTargets field's value. +func (s *DescribeScalableTargetsOutput) SetScalableTargets(v []*ScalableTarget) *DescribeScalableTargetsOutput { + s.ScalableTargets = v + return s +} + type DescribeScalingActivitiesInput struct { _ struct{} `type:"structure"` - // The maximum number of scaling activity results returned by DescribeScalingActivities - // in paginated output. When this parameter is used, DescribeScalingActivities - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalingActivities request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalingActivities returns up to 50 results and a NextToken value, - // if applicable. + // The maximum number of scalable target results. This value can be between + // 1 and 50. The default value is 50. + // + // If this parameter is used, the operation returns up to MaxResults results + // at a time, along with a NextToken value. To get the next set of results, + // include the NextToken value in a subsequent call. If this parameter is not + // used, the operation returns up to 50 results and a NextToken value, if applicable. MaxResults *int64 `type:"integer"` - // The NextToken value returned from a previous paginated DescribeScalingActivities - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. + // The token for the next set of results. NextToken *string `type:"string"` - // The resource type and unique identifier string for the resource associated - // with the scaling activity. For Amazon ECS services, the resource type is - // services, and the identifier is the cluster name and service name; for example, - // service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource - // type is spot-fleet-request, and the identifier is the Spot fleet request - // ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. - // If you specify a scalable dimension, you must also specify a resource ID. + // The identifier of the resource associated with the scaling activity. This + // string consists of the resource type and unique identifier. If you specify + // a scalable dimension, you must also specify a resource ID. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. ResourceId *string `min:"1" type:"string"` - // The scalable dimension associated with the scaling activity. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. If you specify a scalable dimension, - // you must also specify a resource ID. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. If you specify a scalable dimension, you must + // also specify a resource ID. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. ScalableDimension *string `type:"string" enum:"ScalableDimension"` - // The namespace for the AWS service that the scaling activity is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1063,13 +1187,41 @@ func (s *DescribeScalingActivitiesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScalingActivitiesInput) SetMaxResults(v int64) *DescribeScalingActivitiesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingActivitiesInput) SetNextToken(v string) *DescribeScalingActivitiesInput { + s.NextToken = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DescribeScalingActivitiesInput) SetResourceId(v string) *DescribeScalingActivitiesInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DescribeScalingActivitiesInput) SetScalableDimension(v string) *DescribeScalingActivitiesInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DescribeScalingActivitiesInput) SetServiceNamespace(v string) *DescribeScalingActivitiesInput { + s.ServiceNamespace = &v + return s +} + type DescribeScalingActivitiesOutput struct { _ struct{} `type:"structure"` - // The NextToken value to include in a future DescribeScalingActivities request. - // When the results of a DescribeScalingActivities request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. + // The token required to get the next set of results. This value is null if + // there are no more results to return. NextToken *string `type:"string"` // A list of scaling activity objects. @@ -1086,47 +1238,65 @@ func (s DescribeScalingActivitiesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingActivitiesOutput) SetNextToken(v string) *DescribeScalingActivitiesOutput { + s.NextToken = &v + return s +} + +// SetScalingActivities sets the ScalingActivities field's value. +func (s *DescribeScalingActivitiesOutput) SetScalingActivities(v []*ScalingActivity) *DescribeScalingActivitiesOutput { + s.ScalingActivities = v + return s +} + type DescribeScalingPoliciesInput struct { _ struct{} `type:"structure"` - // The maximum number of scaling policy results returned by DescribeScalingPolicies - // in paginated output. When this parameter is used, DescribeScalingPolicies - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalingPolicies request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalingPolicies returns up to 50 results and a NextToken value, - // if applicable. + // The maximum number of scalable target results. This value can be between + // 1 and 50. The default value is 50. + // + // If this parameter is used, the operation returns up to MaxResults results + // at a time, along with a NextToken value. To get the next set of results, + // include the NextToken value in a subsequent call. If this parameter is not + // used, the operation returns up to 50 results and a NextToken value, if applicable. MaxResults *int64 `type:"integer"` - // The NextToken value returned from a previous paginated DescribeScalingPolicies - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. + // The token for the next set of results. NextToken *string `type:"string"` // The names of the scaling policies to describe. PolicyNames []*string `type:"list"` - // The unique resource identifier string of the scalable target that the scaling - // policy is associated with. For Amazon ECS services, the resource type is - // services, and the identifier is the cluster name and service name; for example, - // service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource - // type is spot-fleet-request, and the identifier is the Spot fleet request - // ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. - // If you specify a scalable dimension, you must also specify a resource ID. + // The identifier of the resource associated with the scaling policy. This string + // consists of the resource type and unique identifier. If you specify a scalable + // dimension, you must also specify a resource ID. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. ResourceId *string `min:"1" type:"string"` - // The scalable dimension of the scalable target that the scaling policy is - // associated with. The scalable dimension contains the service namespace, resource - // type, and scaling property, such as ecs:service:DesiredCount for the desired - // task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity - // for the target capacity of an Amazon EC2 Spot fleet request. If you specify - // a scalable dimension, you must also specify a resource ID. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. If you specify a scalable dimension, you must + // also specify a resource ID. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. ScalableDimension *string `type:"string" enum:"ScalableDimension"` - // The AWS service namespace of the scalable target that the scaling policy - // is associated with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1159,13 +1329,47 @@ func (s *DescribeScalingPoliciesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScalingPoliciesInput) SetMaxResults(v int64) *DescribeScalingPoliciesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingPoliciesInput) SetNextToken(v string) *DescribeScalingPoliciesInput { + s.NextToken = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *DescribeScalingPoliciesInput) SetPolicyNames(v []*string) *DescribeScalingPoliciesInput { + s.PolicyNames = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DescribeScalingPoliciesInput) SetResourceId(v string) *DescribeScalingPoliciesInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DescribeScalingPoliciesInput) SetScalableDimension(v string) *DescribeScalingPoliciesInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DescribeScalingPoliciesInput) SetServiceNamespace(v string) *DescribeScalingPoliciesInput { + s.ServiceNamespace = &v + return s +} + type DescribeScalingPoliciesOutput struct { _ struct{} `type:"structure"` - // The NextToken value to include in a future DescribeScalingPolicies request. - // When the results of a DescribeScalingPolicies request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. + // The token required to get the next set of results. This value is null if + // there are no more results to return. NextToken *string `type:"string"` // A list of scaling policy objects. @@ -1182,6 +1386,18 @@ func (s DescribeScalingPoliciesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingPoliciesOutput) SetNextToken(v string) *DescribeScalingPoliciesOutput { + s.NextToken = &v + return s +} + +// SetScalingPolicies sets the ScalingPolicies field's value. +func (s *DescribeScalingPoliciesOutput) SetScalingPolicies(v []*ScalingPolicy) *DescribeScalingPoliciesOutput { + s.ScalingPolicies = v + return s +} + type PutScalingPolicyInput struct { _ struct{} `type:"structure"` @@ -1191,37 +1407,48 @@ type PutScalingPolicyInput struct { PolicyName *string `min:"1" type:"string" required:"true"` // The policy type. If you are creating a new policy, this parameter is required. - // If you are updating an existing policy, this parameter is not required. + // If you are updating a policy, this parameter is not required. PolicyType *string `type:"string" enum:"PolicyType"` - // The unique resource identifier string for the scalable target that this scaling - // policy applies to. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scaling policy. This string + // consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension of the scalable target that this scaling policy applies - // to. The scalable dimension contains the service namespace, resource type, - // and scaling property, such as ecs:service:DesiredCount for the desired task - // count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity - // for the target capacity of an Amazon EC2 Spot fleet request. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The AWS service namespace of the scalable target that this scaling policy - // applies to. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` // The configuration for the step scaling policy. If you are creating a new - // policy, this parameter is required. If you are updating an existing policy, - // this parameter is not required. For more information, see StepScalingPolicyConfiguration + // policy, this parameter is required. If you are updating a policy, this parameter + // is not required. For more information, see StepScalingPolicyConfiguration // and StepAdjustment. StepScalingPolicyConfiguration *StepScalingPolicyConfiguration `type:"structure"` } @@ -1269,6 +1496,42 @@ func (s *PutScalingPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *PutScalingPolicyInput) SetPolicyName(v string) *PutScalingPolicyInput { + s.PolicyName = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *PutScalingPolicyInput) SetPolicyType(v string) *PutScalingPolicyInput { + s.PolicyType = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutScalingPolicyInput) SetResourceId(v string) *PutScalingPolicyInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *PutScalingPolicyInput) SetScalableDimension(v string) *PutScalingPolicyInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *PutScalingPolicyInput) SetServiceNamespace(v string) *PutScalingPolicyInput { + s.ServiceNamespace = &v + return s +} + +// SetStepScalingPolicyConfiguration sets the StepScalingPolicyConfiguration field's value. +func (s *PutScalingPolicyInput) SetStepScalingPolicyConfiguration(v *StepScalingPolicyConfiguration) *PutScalingPolicyInput { + s.StepScalingPolicyConfiguration = v + return s +} + type PutScalingPolicyOutput struct { _ struct{} `type:"structure"` @@ -1288,46 +1551,61 @@ func (s PutScalingPolicyOutput) GoString() string { return s.String() } +// SetPolicyARN sets the PolicyARN field's value. +func (s *PutScalingPolicyOutput) SetPolicyARN(v string) *PutScalingPolicyOutput { + s.PolicyARN = &v + return s +} + type RegisterScalableTargetInput struct { _ struct{} `type:"structure"` - // The maximum value for this scalable target to scale out to in response to - // scaling activities. This parameter is required if you are registering a new - // scalable target, and it is optional if you are updating an existing one. + // The maximum value to scale to in response to a scale out event. This parameter + // is required if you are registering a scalable target and optional if you + // are updating one. MaxCapacity *int64 `type:"integer"` - // The minimum value for this scalable target to scale in to in response to - // scaling activities. This parameter is required if you are registering a new - // scalable target, and it is optional if you are updating an existing one. + // The minimum value to scale to in response to a scale in event. This parameter + // is required if you are registering a scalable target and optional if you + // are updating one. MinCapacity *int64 `type:"integer"` - // The resource type and unique identifier string for the resource to associate - // with the scalable target. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The ARN of the IAM role that allows Application Auto Scaling to modify your - // scalable target on your behalf. This parameter is required if you are registering - // a new scalable target, and it is optional if you are updating an existing - // one. + // The ARN of an IAM role that allows Application Auto Scaling to modify the + // scalable target on your behalf. This parameter is required when you register + // a scalable target and optional when you update one. RoleARN *string `min:"1" type:"string"` - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. + // The scalable dimension associated with the scalable target. This string consists + // of the service namespace, resource type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scalable target is associated - // with. For Amazon ECS services, the namespace value is ecs. For more information, - // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1369,6 +1647,42 @@ func (s *RegisterScalableTargetInput) Validate() error { return nil } +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *RegisterScalableTargetInput) SetMaxCapacity(v int64) *RegisterScalableTargetInput { + s.MaxCapacity = &v + return s +} + +// SetMinCapacity sets the MinCapacity field's value. +func (s *RegisterScalableTargetInput) SetMinCapacity(v int64) *RegisterScalableTargetInput { + s.MinCapacity = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *RegisterScalableTargetInput) SetResourceId(v string) *RegisterScalableTargetInput { + s.ResourceId = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *RegisterScalableTargetInput) SetRoleARN(v string) *RegisterScalableTargetInput { + s.RoleARN = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *RegisterScalableTargetInput) SetScalableDimension(v string) *RegisterScalableTargetInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *RegisterScalableTargetInput) SetServiceNamespace(v string) *RegisterScalableTargetInput { + s.ServiceNamespace = &v + return s +} + type RegisterScalableTargetOutput struct { _ struct{} `type:"structure"` } @@ -1383,7 +1697,7 @@ func (s RegisterScalableTargetOutput) GoString() string { return s.String() } -// An object representing a scalable target. +// Represents a scalable target. type ScalableTarget struct { _ struct{} `type:"structure"` @@ -1392,44 +1706,53 @@ type ScalableTarget struct { // CreationTime is a required field CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - // The maximum value for this scalable target to scale out to in response to - // scaling activities. + // The maximum value to scale to in response to a scale out event. // // MaxCapacity is a required field MaxCapacity *int64 `type:"integer" required:"true"` - // The minimum value for this scalable target to scale in to in response to - // scaling activities. + // The minimum value to scale to in response to a scale in event. // // MinCapacity is a required field MinCapacity *int64 `type:"integer" required:"true"` - // The resource type and unique identifier string for the resource associated - // with the scalable target. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The ARN of the IAM role that allows Application Auto Scaling to modify your + // The ARN of an IAM role that allows Application Auto Scaling to modify the // scalable target on your behalf. // // RoleARN is a required field RoleARN *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. + // The scalable dimension associated with the scalable target. This string consists + // of the service namespace, resource type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1446,11 +1769,53 @@ func (s ScalableTarget) GoString() string { return s.String() } -// An object representing a scaling activity. +// SetCreationTime sets the CreationTime field's value. +func (s *ScalableTarget) SetCreationTime(v time.Time) *ScalableTarget { + s.CreationTime = &v + return s +} + +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *ScalableTarget) SetMaxCapacity(v int64) *ScalableTarget { + s.MaxCapacity = &v + return s +} + +// SetMinCapacity sets the MinCapacity field's value. +func (s *ScalableTarget) SetMinCapacity(v int64) *ScalableTarget { + s.MinCapacity = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ScalableTarget) SetResourceId(v string) *ScalableTarget { + s.ResourceId = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ScalableTarget) SetRoleARN(v string) *ScalableTarget { + s.RoleARN = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *ScalableTarget) SetScalableDimension(v string) *ScalableTarget { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *ScalableTarget) SetServiceNamespace(v string) *ScalableTarget { + s.ServiceNamespace = &v + return s +} + +// Represents a scaling activity. type ScalingActivity struct { _ struct{} `type:"structure"` - // The unique identifier string for the scaling activity. + // The unique identifier of the scaling activity. // // ActivityId is a required field ActivityId *string `type:"string" required:"true"` @@ -1471,27 +1836,37 @@ type ScalingActivity struct { // The Unix timestamp for when the scaling activity ended. EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // The resource type and unique identifier string for the resource associated - // with the scaling activity. For Amazon ECS services, the resource type is - // services, and the identifier is the cluster name and service name; for example, - // service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource - // type is spot-fleet-request, and the identifier is the Spot fleet request - // ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scaling activity. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scaling activity. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scaling activity is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1521,11 +1896,77 @@ func (s ScalingActivity) GoString() string { return s.String() } -// An object representing a scaling policy. +// SetActivityId sets the ActivityId field's value. +func (s *ScalingActivity) SetActivityId(v string) *ScalingActivity { + s.ActivityId = &v + return s +} + +// SetCause sets the Cause field's value. +func (s *ScalingActivity) SetCause(v string) *ScalingActivity { + s.Cause = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ScalingActivity) SetDescription(v string) *ScalingActivity { + s.Description = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *ScalingActivity) SetDetails(v string) *ScalingActivity { + s.Details = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *ScalingActivity) SetEndTime(v time.Time) *ScalingActivity { + s.EndTime = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ScalingActivity) SetResourceId(v string) *ScalingActivity { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *ScalingActivity) SetScalableDimension(v string) *ScalingActivity { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *ScalingActivity) SetServiceNamespace(v string) *ScalingActivity { + s.ServiceNamespace = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ScalingActivity) SetStartTime(v time.Time) *ScalingActivity { + s.StartTime = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *ScalingActivity) SetStatusCode(v string) *ScalingActivity { + s.StatusCode = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ScalingActivity) SetStatusMessage(v string) *ScalingActivity { + s.StatusMessage = &v + return s +} + +// Represents a scaling policy. type ScalingPolicy struct { _ struct{} `type:"structure"` - // The CloudWatch alarms that are associated with the scaling policy. + // The CloudWatch alarms associated with the scaling policy. Alarms []*Alarm `type:"list"` // The Unix timestamp for when the scaling policy was created. @@ -1548,26 +1989,37 @@ type ScalingPolicy struct { // PolicyType is a required field PolicyType *string `type:"string" required:"true" enum:"PolicyType"` - // The resource type and unique identifier string for the resource associated - // with the scaling policy. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scaling policy. This string + // consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scaling policy. The scalable dimension - // contains the service namespace, resource type, and scaling property, such - // as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, - // or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon - // EC2 Spot fleet request. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scaling policy is associated with. - // For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1587,35 +2039,88 @@ func (s ScalingPolicy) GoString() string { return s.String() } -// An object representing a step adjustment for a StepScalingPolicyConfiguration. -// Describes an adjustment based on the difference between the value of the -// aggregated CloudWatch metric and the breach threshold that you've defined -// for the alarm. +// SetAlarms sets the Alarms field's value. +func (s *ScalingPolicy) SetAlarms(v []*Alarm) *ScalingPolicy { + s.Alarms = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ScalingPolicy) SetCreationTime(v time.Time) *ScalingPolicy { + s.CreationTime = &v + return s +} + +// SetPolicyARN sets the PolicyARN field's value. +func (s *ScalingPolicy) SetPolicyARN(v string) *ScalingPolicy { + s.PolicyARN = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ScalingPolicy) SetPolicyName(v string) *ScalingPolicy { + s.PolicyName = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *ScalingPolicy) SetPolicyType(v string) *ScalingPolicy { + s.PolicyType = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ScalingPolicy) SetResourceId(v string) *ScalingPolicy { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *ScalingPolicy) SetScalableDimension(v string) *ScalingPolicy { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *ScalingPolicy) SetServiceNamespace(v string) *ScalingPolicy { + s.ServiceNamespace = &v + return s +} + +// SetStepScalingPolicyConfiguration sets the StepScalingPolicyConfiguration field's value. +func (s *ScalingPolicy) SetStepScalingPolicyConfiguration(v *StepScalingPolicyConfiguration) *ScalingPolicy { + s.StepScalingPolicyConfiguration = v + return s +} + +// Represents a step adjustment for a StepScalingPolicyConfiguration. Describes +// an adjustment based on the difference between the value of the aggregated +// CloudWatch metric and the breach threshold that you've defined for the alarm. // // For the following examples, suppose that you have an alarm with a breach // threshold of 50: // -// If you want the adjustment to be triggered when the metric is greater -// than or equal to 50 and less than 60, specify a lower bound of 0 and an upper -// bound of 10. +// * To trigger the adjustment when the metric is greater than or equal to +// 50 and less than 60, specify a lower bound of 0 and an upper bound of +// 10. // -// If you want the adjustment to be triggered when the metric is greater -// than 40 and less than or equal to 50, specify a lower bound of -10 and an -// upper bound of 0. +// * To trigger the adjustment when the metric is greater than 40 and less +// than or equal to 50, specify a lower bound of -10 and an upper bound of +// 0. // -// There are a few rules for the step adjustments for your step policy: +// There are a few rules for the step adjustments for your step policy: // -// The ranges of your step adjustments can't overlap or have a gap. +// * The ranges of your step adjustments can't overlap or have a gap. // -// At most one step adjustment can have a null lower bound. If one step adjustment -// has a negative lower bound, then there must be a step adjustment with a null -// lower bound. +// * At most one step adjustment can have a null lower bound. If one step +// adjustment has a negative lower bound, then there must be a step adjustment +// with a null lower bound. // -// At most one step adjustment can have a null upper bound. If one step adjustment -// has a positive upper bound, then there must be a step adjustment with a null -// upper bound. +// * At most one step adjustment can have a null upper bound. If one step +// adjustment has a positive upper bound, then there must be a step adjustment +// with a null upper bound. // -// The upper and lower bound can't be null in the same step adjustment. +// * The upper and lower bound can't be null in the same step adjustment. type StepAdjustment struct { _ struct{} `type:"structure"` @@ -1667,7 +2172,25 @@ func (s *StepAdjustment) Validate() error { return nil } -// An object representing a step scaling policy configuration. +// SetMetricIntervalLowerBound sets the MetricIntervalLowerBound field's value. +func (s *StepAdjustment) SetMetricIntervalLowerBound(v float64) *StepAdjustment { + s.MetricIntervalLowerBound = &v + return s +} + +// SetMetricIntervalUpperBound sets the MetricIntervalUpperBound field's value. +func (s *StepAdjustment) SetMetricIntervalUpperBound(v float64) *StepAdjustment { + s.MetricIntervalUpperBound = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *StepAdjustment) SetScalingAdjustment(v int64) *StepAdjustment { + s.ScalingAdjustment = &v + return s +} + +// Represents a step scaling policy configuration. type StepScalingPolicyConfiguration struct { _ struct{} `type:"structure"` @@ -1742,6 +2265,36 @@ func (s *StepScalingPolicyConfiguration) Validate() error { return nil } +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *StepScalingPolicyConfiguration) SetAdjustmentType(v string) *StepScalingPolicyConfiguration { + s.AdjustmentType = &v + return s +} + +// SetCooldown sets the Cooldown field's value. +func (s *StepScalingPolicyConfiguration) SetCooldown(v int64) *StepScalingPolicyConfiguration { + s.Cooldown = &v + return s +} + +// SetMetricAggregationType sets the MetricAggregationType field's value. +func (s *StepScalingPolicyConfiguration) SetMetricAggregationType(v string) *StepScalingPolicyConfiguration { + s.MetricAggregationType = &v + return s +} + +// SetMinAdjustmentMagnitude sets the MinAdjustmentMagnitude field's value. +func (s *StepScalingPolicyConfiguration) SetMinAdjustmentMagnitude(v int64) *StepScalingPolicyConfiguration { + s.MinAdjustmentMagnitude = &v + return s +} + +// SetStepAdjustments sets the StepAdjustments field's value. +func (s *StepScalingPolicyConfiguration) SetStepAdjustments(v []*StepAdjustment) *StepScalingPolicyConfiguration { + s.StepAdjustments = v + return s +} + const ( // AdjustmentTypeChangeInCapacity is a AdjustmentType enum value AdjustmentTypeChangeInCapacity = "ChangeInCapacity" @@ -1775,6 +2328,9 @@ const ( // ScalableDimensionEc2SpotFleetRequestTargetCapacity is a ScalableDimension enum value ScalableDimensionEc2SpotFleetRequestTargetCapacity = "ec2:spot-fleet-request:TargetCapacity" + + // ScalableDimensionElasticmapreduceInstancegroupInstanceCount is a ScalableDimension enum value + ScalableDimensionElasticmapreduceInstancegroupInstanceCount = "elasticmapreduce:instancegroup:InstanceCount" ) const ( @@ -1801,6 +2357,9 @@ const ( // ServiceNamespaceEcs is a ServiceNamespace enum value ServiceNamespaceEcs = "ecs" + // ServiceNamespaceElasticmapreduce is a ServiceNamespace enum value + ServiceNamespaceElasticmapreduce = "elasticmapreduce" + // ServiceNamespaceEc2 is a ServiceNamespace enum value ServiceNamespaceEc2 = "ec2" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go index 348b5aa7b..ebbb1c47b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go @@ -11,41 +11,33 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// Application Auto Scaling is a general purpose Auto Scaling service for supported -// elastic AWS resources. With Application Auto Scaling, you can automatically -// scale your AWS resources, with an experience similar to that of Auto Scaling. +// With Application Auto Scaling, you can automatically scale your AWS resources. +// The experience similar to that of Auto Scaling (https://aws.amazon.com/autoscaling/). +// You can use Application Auto Scaling to accomplish the following tasks: // -// Application Auto Scaling supports scaling the following AWS resources: +// * Define scaling policies to automatically scale your AWS resources // -// Amazon ECS services +// * Scale your resources in response to CloudWatch alarms // -// Amazon EC2 Spot fleet instances +// * View the history of your scaling events // -// You can use Application Auto Scaling to accomplish the following tasks: +// Application Auto Scaling can scale the following AWS resources: // -// Define scaling policies for automatically adjusting your AWS resources +// * Amazon ECS services. For more information, see Service Auto Scaling +// (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html) +// in the Amazon EC2 Container Service Developer Guide. // -// Scale your resources in response to CloudWatch alarms +// * Amazon EC2 Spot fleets. For more information, see Automatic Scaling +// for Spot Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-auto-scaling.html) +// in the Amazon EC2 User Guide. // -// View history of your scaling events +// * Amazon EMR clusters. For more information, see Using Automatic Scaling +// in Amazon EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/ManagementGuide/emr-automatic-scaling.html) +// in the Amazon EMR Management Guide. // -// Application Auto Scaling is available in the following regions: -// -// us-east-1 -// -// us-west-1 -// -// us-west-2 -// -// ap-southeast-1 -// -// ap-southeast-2 -// -// ap-northeast-1 -// -// eu-central-1 -// -// eu-west-1 +// For a list of supported regions, see AWS Regions and Endpoints: Application +// Auto Scaling (http://docs.aws.amazon.com/general/latest/gr/rande.html#as-app_region) +// in the AWS General Reference. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type ApplicationAutoScaling struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go index 2f40e8506..884214e83 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go @@ -73,7 +73,7 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * // with the target groups. // // For more information, see Attach EC2 Instances to Your Auto Scaling Group -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-instance-asg.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-instance-asg.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -145,7 +145,7 @@ func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBal // To detach the target group from the Auto Scaling group, use DetachLoadBalancerTargetGroups. // // For more information, see Attach a Load Balancer to Your Auto Scaling Group -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-load-balancer-asg.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -220,7 +220,7 @@ func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput // To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers. // // For more information, see Attach a Load Balancer to Your Auto Scaling Group -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-load-balancer-asg.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -292,24 +292,22 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch -// Events to invoke your Lambda function when Auto Scaling launches or terminates -// instances. +// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// to invoke your Lambda function when Auto Scaling launches or terminates instances. // -// (Optional) Create a notification target and an IAM role. The target can -// be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto -// Scaling to publish lifecycle notifications to the target. +// (Optional) Create a notification target and an IAM role. The target can be +// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling +// to publish lifecycle notifications to the target. // -// Create the lifecycle hook. Specify whether the hook is used when the instances +// Create the lifecycle hook. Specify whether the hook is used when the instances // launch or terminate. // -// If you need more time, record the lifecycle action heartbeat to keep the +// If you need more time, record the lifecycle action heartbeat to keep the // instance in a pending state. // -// If you finish before the timeout period ends, complete the lifecycle -// action. +// If you finish before the timeout period ends, complete the lifecycle action. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -383,7 +381,7 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou // is 20 per region, the call fails. For information about viewing and updating // this limit, see DescribeAccountLimits. // -// For more information, see Auto Scaling Groups (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroup.html) +// For more information, see Auto Scaling Groups (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroup.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -466,7 +464,7 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig // is 100 per region, the call fails. For information about viewing and updating // this limit, see DescribeAccountLimits. // -// For more information, see Launch Configurations (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/LaunchConfiguration.html) +// For more information, see Launch Configurations (http://docs.aws.amazon.com/autoscaling/latest/userguide/LaunchConfiguration.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -548,7 +546,7 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) // When you specify a tag with a key that already exists, the operation overwrites // the previous tag definition, and you do not get an error message. // -// For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html) +// For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/autoscaling/latest/userguide/autoscaling-tagging.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -630,17 +628,16 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou // If the group has instances or scaling activities in progress, you must specify // the option to force the deletion in order for it to succeed. // -// If the group has policies, deleting the group deletes the policies, the -// underlying alarm actions, and any alarm that no longer has an associated -// action. +// If the group has policies, deleting the group deletes the policies, the underlying +// alarm actions, and any alarm that no longer has an associated action. // // To remove instances from the Auto Scaling group before deleting it, call // DetachInstances with the list of instances and the option to decrement the // desired capacity so that Auto Scaling does not launch replacement instances. // -// To terminate all instances before deleting the Auto Scaling group, call -// UpdateAutoScalingGroup and set the minimum size and desired capacity of the -// Auto Scaling group to zero. +// To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup +// and set the minimum size and desired capacity of the Auto Scaling group to +// zero. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -716,9 +713,9 @@ func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfig // // Deletes the specified launch configuration. // -// The launch configuration must not be attached to an Auto Scaling group. -// When this call completes, the launch configuration is no longer available -// for use. +// The launch configuration must not be attached to an Auto Scaling group. When +// this call completes, the launch configuration is no longer available for +// use. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2596,13 +2593,13 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req * // If you do not specify the option to decrement the desired capacity, Auto // Scaling launches instances to replace the ones that are detached. // -// If there is a Classic load balancer attached to the Auto Scaling group, -// the instances are deregistered from the load balancer. If there are target -// groups attached to the Auto Scaling group, the instances are deregistered -// from the target groups. +// If there is a Classic load balancer attached to the Auto Scaling group, the +// instances are deregistered from the load balancer. If there are target groups +// attached to the Auto Scaling group, the instances are deregistered from the +// target groups. // // For more information, see Detach EC2 Instances from Your Auto Scaling Group -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/detach-instance-asg.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/detach-instance-asg.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2877,7 +2874,7 @@ func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollect // EnableMetricsCollection API operation for Auto Scaling. // // Enables group metrics for the specified Auto Scaling group. For more information, -// see Monitoring Your Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/userguide/as-instance-monitoring.html) +// see Monitoring Your Auto Scaling Groups and Instances (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2945,7 +2942,7 @@ func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *reques // // Moves the specified instances into Standby mode. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3084,7 +3081,7 @@ func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request. // // Moves the specified instances out of Standby mode. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3159,23 +3156,22 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch -// Events to invoke your Lambda function when Auto Scaling launches or terminates -// instances. +// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// to invoke your Lambda function when Auto Scaling launches or terminates instances. // -// (Optional) Create a notification target and an IAM role. The target can -// be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto -// Scaling to publish lifecycle notifications to the target. +// (Optional) Create a notification target and an IAM role. The target can be +// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling +// to publish lifecycle notifications to the target. // -// Create the lifecycle hook. Specify whether the hook is used when the -// instances launch or terminate. +// Create the lifecycle hook. Specify whether the hook is used when the instances +// launch or terminate. // -// If you need more time, record the lifecycle action heartbeat to keep the +// If you need more time, record the lifecycle action heartbeat to keep the // instance in a pending state. // -// If you finish before the timeout period ends, complete the lifecycle action. +// If you finish before the timeout period ends, complete the lifecycle action. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// 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. // // If you exceed your maximum limit of lifecycle hooks, which by default is @@ -3260,7 +3256,7 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification // This configuration overwrites any existing configuration. // // For more information see Getting SNS Notifications When Your Auto Scaling -// Group Scales (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASGettingNotifications.html) +// Group Scales (http://docs.aws.amazon.com/autoscaling/latest/userguide/ASGettingNotifications.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3413,9 +3409,9 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp // // Creates or updates a scheduled scaling action for an Auto Scaling group. // When updating a scheduled scaling action, if you leave a parameter unspecified, -// the corresponding value remains unchanged in the affected Auto Scaling group. +// the corresponding value remains unchanged. // -// For more information, see Scheduled Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/schedule_time.html) +// For more information, see Scheduled Scaling (http://docs.aws.amazon.com/autoscaling/latest/userguide/schedule_time.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3497,23 +3493,22 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch -// Events to invoke your Lambda function when Auto Scaling launches or terminates -// instances. +// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// to invoke your Lambda function when Auto Scaling launches or terminates instances. // -// (Optional) Create a notification target and an IAM role. The target can -// be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto -// Scaling to publish lifecycle notifications to the target. +// (Optional) Create a notification target and an IAM role. The target can be +// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling +// to publish lifecycle notifications to the target. // -// Create the lifecycle hook. Specify whether the hook is used when the instances +// Create the lifecycle hook. Specify whether the hook is used when the instances // launch or terminate. // -// If you need more time, record the lifecycle action heartbeat to keep -// the instance in a pending state. +// If you need more time, record the lifecycle action heartbeat to keep the +// instance in a pending state. // -// If you finish before the timeout period ends, complete the lifecycle action. +// If you finish before the timeout period ends, complete the lifecycle action. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3585,7 +3580,7 @@ func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *r // process, for the specified Auto Scaling group. // // For more information, see Suspending and Resuming Auto Scaling Processes -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3658,7 +3653,7 @@ func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) // // Sets the size of the specified Auto Scaling group. // -// For more information about desired capacity, see What Is Auto Scaling? (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/WhatIsAutoScaling.html) +// For more information about desired capacity, see What Is Auto Scaling? (http://docs.aws.amazon.com/autoscaling/latest/userguide/WhatIsAutoScaling.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3732,7 +3727,7 @@ func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (r // // Sets the health status of the specified instance. // -// For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) +// For more information, see Health Checks (http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3800,7 +3795,7 @@ func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionI // // Updates the instance protection settings of the specified instances. // -// For more information, see Instance Protection (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html#instance-protection) +// For more information, see Instance Protection (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-termination.html#instance-protection) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3882,7 +3877,7 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * // To resume processes that have been suspended, use ResumeProcesses. // // For more information, see Suspending and Resuming Auto Scaling Processes -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4039,17 +4034,17 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou // // Note the following: // -// If you specify a new value for MinSize without specifying a value for -// DesiredCapacity, and the new MinSize is larger than the current size of the -// group, we implicitly call SetDesiredCapacity to set the size of the group -// to the new value of MinSize. +// * If you specify a new value for MinSize without specifying a value for +// DesiredCapacity, and the new MinSize is larger than the current size of +// the group, we implicitly call SetDesiredCapacity to set the size of the +// group to the new value of MinSize. // -// If you specify a new value for MaxSize without specifying a value for -// DesiredCapacity, and the new MaxSize is smaller than the current size of -// the group, we implicitly call SetDesiredCapacity to set the size of the group -// to the new value of MaxSize. +// * If you specify a new value for MaxSize without specifying a value for +// DesiredCapacity, and the new MaxSize is smaller than the current size +// of the group, we implicitly call SetDesiredCapacity to set the size of +// the group to the new value of MaxSize. // -// All other optional parameters are left unchanged if not specified. +// * All other optional parameters are left unchanged if not specified. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4130,6 +4125,66 @@ func (s Activity) GoString() string { return s.String() } +// SetActivityId sets the ActivityId field's value. +func (s *Activity) SetActivityId(v string) *Activity { + s.ActivityId = &v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *Activity) SetAutoScalingGroupName(v string) *Activity { + s.AutoScalingGroupName = &v + return s +} + +// SetCause sets the Cause field's value. +func (s *Activity) SetCause(v string) *Activity { + s.Cause = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Activity) SetDescription(v string) *Activity { + s.Description = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *Activity) SetDetails(v string) *Activity { + s.Details = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *Activity) SetEndTime(v time.Time) *Activity { + s.EndTime = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *Activity) SetProgress(v int64) *Activity { + s.Progress = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Activity) SetStartTime(v time.Time) *Activity { + s.StartTime = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *Activity) SetStatusCode(v string) *Activity { + s.StatusCode = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *Activity) SetStatusMessage(v string) *Activity { + s.StatusMessage = &v + return s +} + // Describes a policy adjustment type. // // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html) @@ -4152,6 +4207,12 @@ func (s AdjustmentType) GoString() string { return s.String() } +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *AdjustmentType) SetAdjustmentType(v string) *AdjustmentType { + s.AdjustmentType = &v + return s +} + // Describes an alarm. type Alarm struct { _ struct{} `type:"structure"` @@ -4173,6 +4234,18 @@ func (s Alarm) GoString() string { return s.String() } +// SetAlarmARN sets the AlarmARN field's value. +func (s *Alarm) SetAlarmARN(v string) *Alarm { + s.AlarmARN = &v + return s +} + +// SetAlarmName sets the AlarmName field's value. +func (s *Alarm) SetAlarmName(v string) *Alarm { + s.AlarmName = &v + return s +} + // Contains the parameters for AttachInstances. type AttachInstancesInput struct { _ struct{} `type:"structure"` @@ -4212,6 +4285,18 @@ func (s *AttachInstancesInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *AttachInstancesInput) SetAutoScalingGroupName(v string) *AttachInstancesInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *AttachInstancesInput) SetInstanceIds(v []*string) *AttachInstancesInput { + s.InstanceIds = v + return s +} + type AttachInstancesOutput struct { _ struct{} `type:"structure"` } @@ -4270,6 +4355,18 @@ func (s *AttachLoadBalancerTargetGroupsInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *AttachLoadBalancerTargetGroupsInput) SetAutoScalingGroupName(v string) *AttachLoadBalancerTargetGroupsInput { + s.AutoScalingGroupName = &v + return s +} + +// SetTargetGroupARNs sets the TargetGroupARNs field's value. +func (s *AttachLoadBalancerTargetGroupsInput) SetTargetGroupARNs(v []*string) *AttachLoadBalancerTargetGroupsInput { + s.TargetGroupARNs = v + return s +} + type AttachLoadBalancerTargetGroupsOutput struct { _ struct{} `type:"structure"` } @@ -4328,6 +4425,18 @@ func (s *AttachLoadBalancersInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *AttachLoadBalancersInput) SetAutoScalingGroupName(v string) *AttachLoadBalancersInput { + s.AutoScalingGroupName = &v + return s +} + +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *AttachLoadBalancersInput) SetLoadBalancerNames(v []*string) *AttachLoadBalancersInput { + s.LoadBalancerNames = v + return s +} + // Contains the output of AttachLoadBalancers. type AttachLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -4400,6 +4509,30 @@ func (s *BlockDeviceMapping) Validate() error { return nil } +// SetDeviceName sets the DeviceName field's value. +func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *BlockDeviceMapping) SetEbs(v *Ebs) *BlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *BlockDeviceMapping) SetNoDevice(v bool) *BlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping { + s.VirtualName = &v + return s +} + // Contains the parameters for CompleteLifecycleAction. type CompleteLifecycleActionInput struct { _ struct{} `type:"structure"` @@ -4470,6 +4603,36 @@ func (s *CompleteLifecycleActionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *CompleteLifecycleActionInput) SetAutoScalingGroupName(v string) *CompleteLifecycleActionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CompleteLifecycleActionInput) SetInstanceId(v string) *CompleteLifecycleActionInput { + s.InstanceId = &v + return s +} + +// SetLifecycleActionResult sets the LifecycleActionResult field's value. +func (s *CompleteLifecycleActionInput) SetLifecycleActionResult(v string) *CompleteLifecycleActionInput { + s.LifecycleActionResult = &v + return s +} + +// SetLifecycleActionToken sets the LifecycleActionToken field's value. +func (s *CompleteLifecycleActionInput) SetLifecycleActionToken(v string) *CompleteLifecycleActionInput { + s.LifecycleActionToken = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *CompleteLifecycleActionInput) SetLifecycleHookName(v string) *CompleteLifecycleActionInput { + s.LifecycleHookName = &v + return s +} + // Contains the output of CompleteLifecycleAction. type CompleteLifecycleActionOutput struct { _ struct{} `type:"structure"` @@ -4502,7 +4665,7 @@ type CreateAutoScalingGroupInput struct { // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. The default is 300. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html) // in the Auto Scaling User Guide. DefaultCooldown *int64 `type:"integer"` @@ -4518,14 +4681,14 @@ type CreateAutoScalingGroupInput struct { // // This parameter is required if you are adding an ELB health check. // - // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) + // For more information, see Health Checks (http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html) // in the Auto Scaling User Guide. HealthCheckGracePeriod *int64 `type:"integer"` // The service to use for the health checks. The valid values are EC2 and ELB. // // By default, health checks use Amazon EC2 instance status checks to determine - // the health of an instance. For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) + // the health of an instance. For more information, see Health Checks (http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html) // in the Auto Scaling User Guide. HealthCheckType *string `min:"1" type:"string"` @@ -4538,7 +4701,7 @@ type CreateAutoScalingGroupInput struct { // the block device mapping. // // For more information, see Create an Auto Scaling Group Using an EC2 Instance - // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-asg-from-instance.html) + // (http://docs.aws.amazon.com/autoscaling/latest/userguide/create-asg-from-instance.html) // in the Auto Scaling User Guide. InstanceId *string `min:"1" type:"string"` @@ -4550,7 +4713,7 @@ type CreateAutoScalingGroupInput struct { // use TargetGroupARNs instead. // // For more information, see Using a Load Balancer With an Auto Scaling Group - // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SetUpASLBApp.html) + // (http://docs.aws.amazon.com/autoscaling/latest/userguide/create-asg-from-instance.html) // in the Auto Scaling User Guide. LoadBalancerNames []*string `type:"list"` @@ -4575,7 +4738,7 @@ type CreateAutoScalingGroupInput struct { // One or more tags. // - // For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html) + // For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/autoscaling/latest/userguide/autoscaling-tagging.html) // in the Auto Scaling User Guide. Tags []*Tag `type:"list"` @@ -4586,7 +4749,7 @@ type CreateAutoScalingGroupInput struct { // These policies are executed in the order that they are listed. // // For more information, see Controlling Which Instances Auto Scaling Terminates - // During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html) + // During Scale In (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-termination.html) // in the Auto Scaling User Guide. TerminationPolicies []*string `type:"list"` @@ -4596,7 +4759,7 @@ type CreateAutoScalingGroupInput struct { // If you specify subnets and Availability Zones with this call, ensure that // the subnets' Availability Zones match the Availability Zones specified. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/autoscaling/latest/userguide/asg-in-vpc.html) // in the Auto Scaling User Guide. VPCZoneIdentifier *string `min:"1" type:"string"` } @@ -4661,6 +4824,108 @@ func (s *CreateAutoScalingGroupInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *CreateAutoScalingGroupInput) SetAutoScalingGroupName(v string) *CreateAutoScalingGroupInput { + s.AutoScalingGroupName = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *CreateAutoScalingGroupInput) SetAvailabilityZones(v []*string) *CreateAutoScalingGroupInput { + s.AvailabilityZones = v + return s +} + +// SetDefaultCooldown sets the DefaultCooldown field's value. +func (s *CreateAutoScalingGroupInput) SetDefaultCooldown(v int64) *CreateAutoScalingGroupInput { + s.DefaultCooldown = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *CreateAutoScalingGroupInput) SetDesiredCapacity(v int64) *CreateAutoScalingGroupInput { + s.DesiredCapacity = &v + return s +} + +// SetHealthCheckGracePeriod sets the HealthCheckGracePeriod field's value. +func (s *CreateAutoScalingGroupInput) SetHealthCheckGracePeriod(v int64) *CreateAutoScalingGroupInput { + s.HealthCheckGracePeriod = &v + return s +} + +// SetHealthCheckType sets the HealthCheckType field's value. +func (s *CreateAutoScalingGroupInput) SetHealthCheckType(v string) *CreateAutoScalingGroupInput { + s.HealthCheckType = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateAutoScalingGroupInput) SetInstanceId(v string) *CreateAutoScalingGroupInput { + s.InstanceId = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *CreateAutoScalingGroupInput) SetLaunchConfigurationName(v string) *CreateAutoScalingGroupInput { + s.LaunchConfigurationName = &v + return s +} + +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *CreateAutoScalingGroupInput) SetLoadBalancerNames(v []*string) *CreateAutoScalingGroupInput { + s.LoadBalancerNames = v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *CreateAutoScalingGroupInput) SetMaxSize(v int64) *CreateAutoScalingGroupInput { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *CreateAutoScalingGroupInput) SetMinSize(v int64) *CreateAutoScalingGroupInput { + s.MinSize = &v + return s +} + +// SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. +func (s *CreateAutoScalingGroupInput) SetNewInstancesProtectedFromScaleIn(v bool) *CreateAutoScalingGroupInput { + s.NewInstancesProtectedFromScaleIn = &v + return s +} + +// SetPlacementGroup sets the PlacementGroup field's value. +func (s *CreateAutoScalingGroupInput) SetPlacementGroup(v string) *CreateAutoScalingGroupInput { + s.PlacementGroup = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAutoScalingGroupInput) SetTags(v []*Tag) *CreateAutoScalingGroupInput { + s.Tags = v + return s +} + +// SetTargetGroupARNs sets the TargetGroupARNs field's value. +func (s *CreateAutoScalingGroupInput) SetTargetGroupARNs(v []*string) *CreateAutoScalingGroupInput { + s.TargetGroupARNs = v + return s +} + +// SetTerminationPolicies sets the TerminationPolicies field's value. +func (s *CreateAutoScalingGroupInput) SetTerminationPolicies(v []*string) *CreateAutoScalingGroupInput { + s.TerminationPolicies = v + return s +} + +// SetVPCZoneIdentifier sets the VPCZoneIdentifier field's value. +func (s *CreateAutoScalingGroupInput) SetVPCZoneIdentifier(v string) *CreateAutoScalingGroupInput { + s.VPCZoneIdentifier = &v + return s +} + type CreateAutoScalingGroupOutput struct { _ struct{} `type:"structure"` } @@ -4681,15 +4946,15 @@ type CreateLaunchConfigurationInput struct { // Used for groups that launch instances into a virtual private cloud (VPC). // Specifies whether to assign a public IP address to each instance. For more - // information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/autoscaling/latest/userguide/asg-in-vpc.html) // in the Auto Scaling User Guide. // // If you specify this parameter, be sure to specify at least one subnet when // you create your group. // - // Default: If the instance is launched into a default subnet, the default - // is true. If the instance is launched into a nondefault subnet, the default - // is false. For more information, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) + // Default: If the instance is launched into a default subnet, the default is + // true. If the instance is launched into a nondefault subnet, the default is + // false. For more information, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) // in the Amazon Elastic Compute Cloud User Guide. AssociatePublicIpAddress *bool `type:"boolean"` @@ -4726,7 +4991,7 @@ type CreateLaunchConfigurationInput struct { // credentials available. You can use IAM roles with Auto Scaling to automatically // enable applications running on your EC2 instances to securely access other // AWS resources. For more information, see Launch Auto Scaling Instances with - // an IAM Role (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html) + // an IAM Role (http://docs.aws.amazon.com/autoscaling/latest/userguide/us-iam-role.html) // in the Auto Scaling User Guide. IamInstanceProfile *string `min:"1" type:"string"` @@ -4737,14 +5002,14 @@ type CreateLaunchConfigurationInput struct { // 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 + // exception of the block device mapping. // // To create a launch configuration with a block device mapping or override // any other instance attributes, specify them as part of the same request. // // For more information, see Create a Launch Configuration Using an EC2 Instance - // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html) + // (http://docs.aws.amazon.com/autoscaling/latest/userguide/create-lc-with-instanceID.html) // in the Auto Scaling User Guide. InstanceId *string `min:"1" type:"string"` @@ -4774,14 +5039,14 @@ type CreateLaunchConfigurationInput struct { // The tenancy of the instance. An instance with a tenancy of dedicated runs // on single-tenant hardware and can only be launched into a VPC. // - // You must set the value of this parameter to dedicated if want to launch - // Dedicated Instances into a shared tenancy VPC (VPC with instance placement - // tenancy attribute set to default). + // You must set the value of this parameter to dedicated if want to launch Dedicated + // Instances into a shared tenancy VPC (VPC with instance placement tenancy + // attribute set to default). // // If you specify this parameter, be sure to specify at least one subnet when // you create your group. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/autoscaling/latest/userguide/asg-in-vpc.html) // in the Auto Scaling User Guide. // // Valid values: default | dedicated @@ -4805,7 +5070,7 @@ type CreateLaunchConfigurationInput struct { // The maximum hourly price to be paid for any Spot Instance launched to fulfill // the request. Spot Instances are launched when the price you specify exceeds // the current Spot market price. For more information, see Launching Spot Instances - // in Your Auto Scaling Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html) + // in Your Auto Scaling Group (http://docs.aws.amazon.com/autoscaling/latest/userguide/US-SpotInstances.html) // in the Auto Scaling User Guide. SpotPrice *string `min:"1" type:"string"` @@ -4881,6 +5146,114 @@ func (s *CreateLaunchConfigurationInput) Validate() error { return nil } +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *CreateLaunchConfigurationInput) SetAssociatePublicIpAddress(v bool) *CreateLaunchConfigurationInput { + s.AssociatePublicIpAddress = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *CreateLaunchConfigurationInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateLaunchConfigurationInput { + s.BlockDeviceMappings = v + return s +} + +// SetClassicLinkVPCId sets the ClassicLinkVPCId field's value. +func (s *CreateLaunchConfigurationInput) SetClassicLinkVPCId(v string) *CreateLaunchConfigurationInput { + s.ClassicLinkVPCId = &v + return s +} + +// SetClassicLinkVPCSecurityGroups sets the ClassicLinkVPCSecurityGroups field's value. +func (s *CreateLaunchConfigurationInput) SetClassicLinkVPCSecurityGroups(v []*string) *CreateLaunchConfigurationInput { + s.ClassicLinkVPCSecurityGroups = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *CreateLaunchConfigurationInput) SetEbsOptimized(v bool) *CreateLaunchConfigurationInput { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *CreateLaunchConfigurationInput) SetIamInstanceProfile(v string) *CreateLaunchConfigurationInput { + s.IamInstanceProfile = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *CreateLaunchConfigurationInput) SetImageId(v string) *CreateLaunchConfigurationInput { + s.ImageId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateLaunchConfigurationInput) SetInstanceId(v string) *CreateLaunchConfigurationInput { + s.InstanceId = &v + return s +} + +// SetInstanceMonitoring sets the InstanceMonitoring field's value. +func (s *CreateLaunchConfigurationInput) SetInstanceMonitoring(v *InstanceMonitoring) *CreateLaunchConfigurationInput { + s.InstanceMonitoring = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateLaunchConfigurationInput) SetInstanceType(v string) *CreateLaunchConfigurationInput { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *CreateLaunchConfigurationInput) SetKernelId(v string) *CreateLaunchConfigurationInput { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *CreateLaunchConfigurationInput) SetKeyName(v string) *CreateLaunchConfigurationInput { + s.KeyName = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *CreateLaunchConfigurationInput) SetLaunchConfigurationName(v string) *CreateLaunchConfigurationInput { + s.LaunchConfigurationName = &v + return s +} + +// SetPlacementTenancy sets the PlacementTenancy field's value. +func (s *CreateLaunchConfigurationInput) SetPlacementTenancy(v string) *CreateLaunchConfigurationInput { + s.PlacementTenancy = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *CreateLaunchConfigurationInput) SetRamdiskId(v string) *CreateLaunchConfigurationInput { + s.RamdiskId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateLaunchConfigurationInput) SetSecurityGroups(v []*string) *CreateLaunchConfigurationInput { + s.SecurityGroups = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *CreateLaunchConfigurationInput) SetSpotPrice(v string) *CreateLaunchConfigurationInput { + s.SpotPrice = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *CreateLaunchConfigurationInput) SetUserData(v string) *CreateLaunchConfigurationInput { + s.UserData = &v + return s +} + type CreateLaunchConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -4938,6 +5311,12 @@ func (s *CreateOrUpdateTagsInput) Validate() error { return nil } +// SetTags sets the Tags field's value. +func (s *CreateOrUpdateTagsInput) SetTags(v []*Tag) *CreateOrUpdateTagsInput { + s.Tags = v + return s +} + type CreateOrUpdateTagsOutput struct { _ struct{} `type:"structure"` } @@ -4993,6 +5372,18 @@ func (s *DeleteAutoScalingGroupInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeleteAutoScalingGroupInput) SetAutoScalingGroupName(v string) *DeleteAutoScalingGroupInput { + s.AutoScalingGroupName = &v + return s +} + +// SetForceDelete sets the ForceDelete field's value. +func (s *DeleteAutoScalingGroupInput) SetForceDelete(v bool) *DeleteAutoScalingGroupInput { + s.ForceDelete = &v + return s +} + type DeleteAutoScalingGroupOutput struct { _ struct{} `type:"structure"` } @@ -5043,6 +5434,12 @@ func (s *DeleteLaunchConfigurationInput) Validate() error { return nil } +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *DeleteLaunchConfigurationInput) SetLaunchConfigurationName(v string) *DeleteLaunchConfigurationInput { + s.LaunchConfigurationName = &v + return s +} + type DeleteLaunchConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -5104,6 +5501,18 @@ func (s *DeleteLifecycleHookInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeleteLifecycleHookInput) SetAutoScalingGroupName(v string) *DeleteLifecycleHookInput { + s.AutoScalingGroupName = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *DeleteLifecycleHookInput) SetLifecycleHookName(v string) *DeleteLifecycleHookInput { + s.LifecycleHookName = &v + return s +} + // Contains the output of DeleteLifecycleHook. type DeleteLifecycleHookOutput struct { _ struct{} `type:"structure"` @@ -5167,6 +5576,18 @@ func (s *DeleteNotificationConfigurationInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeleteNotificationConfigurationInput) SetAutoScalingGroupName(v string) *DeleteNotificationConfigurationInput { + s.AutoScalingGroupName = &v + return s +} + +// SetTopicARN sets the TopicARN field's value. +func (s *DeleteNotificationConfigurationInput) SetTopicARN(v string) *DeleteNotificationConfigurationInput { + s.TopicARN = &v + return s +} + type DeleteNotificationConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -5223,6 +5644,18 @@ func (s *DeletePolicyInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeletePolicyInput) SetAutoScalingGroupName(v string) *DeletePolicyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *DeletePolicyInput) SetPolicyName(v string) *DeletePolicyInput { + s.PolicyName = &v + return s +} + type DeletePolicyOutput struct { _ struct{} `type:"structure"` } @@ -5284,6 +5717,18 @@ func (s *DeleteScheduledActionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeleteScheduledActionInput) SetAutoScalingGroupName(v string) *DeleteScheduledActionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetScheduledActionName sets the ScheduledActionName field's value. +func (s *DeleteScheduledActionInput) SetScheduledActionName(v string) *DeleteScheduledActionInput { + s.ScheduledActionName = &v + return s +} + type DeleteScheduledActionOutput struct { _ struct{} `type:"structure"` } @@ -5341,6 +5786,12 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetTags sets the Tags field's value. +func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput { + s.Tags = v + return s +} + type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -5398,6 +5849,30 @@ func (s DescribeAccountLimitsOutput) GoString() string { return s.String() } +// SetMaxNumberOfAutoScalingGroups sets the MaxNumberOfAutoScalingGroups field's value. +func (s *DescribeAccountLimitsOutput) SetMaxNumberOfAutoScalingGroups(v int64) *DescribeAccountLimitsOutput { + s.MaxNumberOfAutoScalingGroups = &v + return s +} + +// SetMaxNumberOfLaunchConfigurations sets the MaxNumberOfLaunchConfigurations field's value. +func (s *DescribeAccountLimitsOutput) SetMaxNumberOfLaunchConfigurations(v int64) *DescribeAccountLimitsOutput { + s.MaxNumberOfLaunchConfigurations = &v + return s +} + +// SetNumberOfAutoScalingGroups sets the NumberOfAutoScalingGroups field's value. +func (s *DescribeAccountLimitsOutput) SetNumberOfAutoScalingGroups(v int64) *DescribeAccountLimitsOutput { + s.NumberOfAutoScalingGroups = &v + return s +} + +// SetNumberOfLaunchConfigurations sets the NumberOfLaunchConfigurations field's value. +func (s *DescribeAccountLimitsOutput) SetNumberOfLaunchConfigurations(v int64) *DescribeAccountLimitsOutput { + s.NumberOfLaunchConfigurations = &v + return s +} + type DescribeAdjustmentTypesInput struct { _ struct{} `type:"structure"` } @@ -5430,6 +5905,12 @@ func (s DescribeAdjustmentTypesOutput) GoString() string { return s.String() } +// SetAdjustmentTypes sets the AdjustmentTypes field's value. +func (s *DescribeAdjustmentTypesOutput) SetAdjustmentTypes(v []*AdjustmentType) *DescribeAdjustmentTypesOutput { + s.AdjustmentTypes = v + return s +} + // Contains the parameters for DescribeAutoScalingGroups. type DescribeAutoScalingGroupsInput struct { _ struct{} `type:"structure"` @@ -5456,6 +5937,24 @@ func (s DescribeAutoScalingGroupsInput) GoString() string { return s.String() } +// SetAutoScalingGroupNames sets the AutoScalingGroupNames field's value. +func (s *DescribeAutoScalingGroupsInput) SetAutoScalingGroupNames(v []*string) *DescribeAutoScalingGroupsInput { + s.AutoScalingGroupNames = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeAutoScalingGroupsInput) SetMaxRecords(v int64) *DescribeAutoScalingGroupsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutoScalingGroupsInput) SetNextToken(v string) *DescribeAutoScalingGroupsInput { + s.NextToken = &v + return s +} + // Contains the output for DescribeAutoScalingGroups. type DescribeAutoScalingGroupsOutput struct { _ struct{} `type:"structure"` @@ -5480,6 +5979,18 @@ func (s DescribeAutoScalingGroupsOutput) GoString() string { return s.String() } +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *DescribeAutoScalingGroupsOutput) SetAutoScalingGroups(v []*Group) *DescribeAutoScalingGroupsOutput { + s.AutoScalingGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutoScalingGroupsOutput) SetNextToken(v string) *DescribeAutoScalingGroupsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeAutoScalingInstances. type DescribeAutoScalingInstancesInput struct { _ struct{} `type:"structure"` @@ -5507,6 +6018,24 @@ func (s DescribeAutoScalingInstancesInput) GoString() string { return s.String() } +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeAutoScalingInstancesInput) SetInstanceIds(v []*string) *DescribeAutoScalingInstancesInput { + s.InstanceIds = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeAutoScalingInstancesInput) SetMaxRecords(v int64) *DescribeAutoScalingInstancesInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutoScalingInstancesInput) SetNextToken(v string) *DescribeAutoScalingInstancesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeAutoScalingInstances. type DescribeAutoScalingInstancesOutput struct { _ struct{} `type:"structure"` @@ -5529,6 +6058,18 @@ func (s DescribeAutoScalingInstancesOutput) GoString() string { return s.String() } +// SetAutoScalingInstances sets the AutoScalingInstances field's value. +func (s *DescribeAutoScalingInstancesOutput) SetAutoScalingInstances(v []*InstanceDetails) *DescribeAutoScalingInstancesOutput { + s.AutoScalingInstances = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutoScalingInstancesOutput) SetNextToken(v string) *DescribeAutoScalingInstancesOutput { + s.NextToken = &v + return s +} + type DescribeAutoScalingNotificationTypesInput struct { _ struct{} `type:"structure"` } @@ -5561,6 +6102,12 @@ func (s DescribeAutoScalingNotificationTypesOutput) GoString() string { return s.String() } +// SetAutoScalingNotificationTypes sets the AutoScalingNotificationTypes field's value. +func (s *DescribeAutoScalingNotificationTypesOutput) SetAutoScalingNotificationTypes(v []*string) *DescribeAutoScalingNotificationTypesOutput { + s.AutoScalingNotificationTypes = v + return s +} + // Contains the parameters for DescribeLaunchConfigurations. type DescribeLaunchConfigurationsInput struct { _ struct{} `type:"structure"` @@ -5587,6 +6134,24 @@ func (s DescribeLaunchConfigurationsInput) GoString() string { return s.String() } +// SetLaunchConfigurationNames sets the LaunchConfigurationNames field's value. +func (s *DescribeLaunchConfigurationsInput) SetLaunchConfigurationNames(v []*string) *DescribeLaunchConfigurationsInput { + s.LaunchConfigurationNames = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeLaunchConfigurationsInput) SetMaxRecords(v int64) *DescribeLaunchConfigurationsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLaunchConfigurationsInput) SetNextToken(v string) *DescribeLaunchConfigurationsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeLaunchConfigurations. type DescribeLaunchConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -5611,6 +6176,18 @@ func (s DescribeLaunchConfigurationsOutput) GoString() string { return s.String() } +// SetLaunchConfigurations sets the LaunchConfigurations field's value. +func (s *DescribeLaunchConfigurationsOutput) SetLaunchConfigurations(v []*LaunchConfiguration) *DescribeLaunchConfigurationsOutput { + s.LaunchConfigurations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLaunchConfigurationsOutput) SetNextToken(v string) *DescribeLaunchConfigurationsOutput { + s.NextToken = &v + return s +} + type DescribeLifecycleHookTypesInput struct { _ struct{} `type:"structure"` } @@ -5643,6 +6220,12 @@ func (s DescribeLifecycleHookTypesOutput) GoString() string { return s.String() } +// SetLifecycleHookTypes sets the LifecycleHookTypes field's value. +func (s *DescribeLifecycleHookTypesOutput) SetLifecycleHookTypes(v []*string) *DescribeLifecycleHookTypesOutput { + s.LifecycleHookTypes = v + return s +} + // Contains the parameters for DescribeLifecycleHooks. type DescribeLifecycleHooksInput struct { _ struct{} `type:"structure"` @@ -5683,6 +6266,18 @@ func (s *DescribeLifecycleHooksInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeLifecycleHooksInput) SetAutoScalingGroupName(v string) *DescribeLifecycleHooksInput { + s.AutoScalingGroupName = &v + return s +} + +// SetLifecycleHookNames sets the LifecycleHookNames field's value. +func (s *DescribeLifecycleHooksInput) SetLifecycleHookNames(v []*string) *DescribeLifecycleHooksInput { + s.LifecycleHookNames = v + return s +} + // Contains the output of DescribeLifecycleHooks. type DescribeLifecycleHooksOutput struct { _ struct{} `type:"structure"` @@ -5701,6 +6296,12 @@ func (s DescribeLifecycleHooksOutput) GoString() string { return s.String() } +// SetLifecycleHooks sets the LifecycleHooks field's value. +func (s *DescribeLifecycleHooksOutput) SetLifecycleHooks(v []*LifecycleHook) *DescribeLifecycleHooksOutput { + s.LifecycleHooks = v + return s +} + // Contains the parameters for DescribeLoadBalancerTargetGroups. type DescribeLoadBalancerTargetGroupsInput struct { _ struct{} `type:"structure"` @@ -5744,6 +6345,24 @@ func (s *DescribeLoadBalancerTargetGroupsInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeLoadBalancerTargetGroupsInput) SetAutoScalingGroupName(v string) *DescribeLoadBalancerTargetGroupsInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeLoadBalancerTargetGroupsInput) SetMaxRecords(v int64) *DescribeLoadBalancerTargetGroupsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLoadBalancerTargetGroupsInput) SetNextToken(v string) *DescribeLoadBalancerTargetGroupsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeLoadBalancerTargetGroups. type DescribeLoadBalancerTargetGroupsOutput struct { _ struct{} `type:"structure"` @@ -5766,6 +6385,18 @@ func (s DescribeLoadBalancerTargetGroupsOutput) GoString() string { return s.String() } +// SetLoadBalancerTargetGroups sets the LoadBalancerTargetGroups field's value. +func (s *DescribeLoadBalancerTargetGroupsOutput) SetLoadBalancerTargetGroups(v []*LoadBalancerTargetGroupState) *DescribeLoadBalancerTargetGroupsOutput { + s.LoadBalancerTargetGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLoadBalancerTargetGroupsOutput) SetNextToken(v string) *DescribeLoadBalancerTargetGroupsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeLoadBalancers. type DescribeLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -5809,6 +6440,24 @@ func (s *DescribeLoadBalancersInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeLoadBalancersInput) SetAutoScalingGroupName(v string) *DescribeLoadBalancersInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeLoadBalancersInput) SetMaxRecords(v int64) *DescribeLoadBalancersInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLoadBalancersInput) SetNextToken(v string) *DescribeLoadBalancersInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeLoadBalancers. type DescribeLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -5831,6 +6480,18 @@ func (s DescribeLoadBalancersOutput) GoString() string { return s.String() } +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *DescribeLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancerState) *DescribeLoadBalancersOutput { + s.LoadBalancers = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLoadBalancersOutput) SetNextToken(v string) *DescribeLoadBalancersOutput { + s.NextToken = &v + return s +} + type DescribeMetricCollectionTypesInput struct { _ struct{} `type:"structure"` } @@ -5866,6 +6527,18 @@ func (s DescribeMetricCollectionTypesOutput) GoString() string { return s.String() } +// SetGranularities sets the Granularities field's value. +func (s *DescribeMetricCollectionTypesOutput) SetGranularities(v []*MetricGranularityType) *DescribeMetricCollectionTypesOutput { + s.Granularities = v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *DescribeMetricCollectionTypesOutput) SetMetrics(v []*MetricCollectionType) *DescribeMetricCollectionTypesOutput { + s.Metrics = v + return s +} + // Contains the parameters for DescribeNotificationConfigurations. type DescribeNotificationConfigurationsInput struct { _ struct{} `type:"structure"` @@ -5891,6 +6564,24 @@ func (s DescribeNotificationConfigurationsInput) GoString() string { return s.String() } +// SetAutoScalingGroupNames sets the AutoScalingGroupNames field's value. +func (s *DescribeNotificationConfigurationsInput) SetAutoScalingGroupNames(v []*string) *DescribeNotificationConfigurationsInput { + s.AutoScalingGroupNames = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeNotificationConfigurationsInput) SetMaxRecords(v int64) *DescribeNotificationConfigurationsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeNotificationConfigurationsInput) SetNextToken(v string) *DescribeNotificationConfigurationsInput { + s.NextToken = &v + return s +} + // Contains the output from DescribeNotificationConfigurations. type DescribeNotificationConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -5915,6 +6606,18 @@ func (s DescribeNotificationConfigurationsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeNotificationConfigurationsOutput) SetNextToken(v string) *DescribeNotificationConfigurationsOutput { + s.NextToken = &v + return s +} + +// SetNotificationConfigurations sets the NotificationConfigurations field's value. +func (s *DescribeNotificationConfigurationsOutput) SetNotificationConfigurations(v []*NotificationConfiguration) *DescribeNotificationConfigurationsOutput { + s.NotificationConfigurations = v + return s +} + // Contains the parameters for DescribePolicies. type DescribePoliciesInput struct { _ struct{} `type:"structure"` @@ -5962,6 +6665,36 @@ func (s *DescribePoliciesInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribePoliciesInput) SetAutoScalingGroupName(v string) *DescribePoliciesInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribePoliciesInput) SetMaxRecords(v int64) *DescribePoliciesInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePoliciesInput) SetNextToken(v string) *DescribePoliciesInput { + s.NextToken = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *DescribePoliciesInput) SetPolicyNames(v []*string) *DescribePoliciesInput { + s.PolicyNames = v + return s +} + +// SetPolicyTypes sets the PolicyTypes field's value. +func (s *DescribePoliciesInput) SetPolicyTypes(v []*string) *DescribePoliciesInput { + s.PolicyTypes = v + return s +} + // Contains the output of DescribePolicies. type DescribePoliciesOutput struct { _ struct{} `type:"structure"` @@ -5984,6 +6717,18 @@ func (s DescribePoliciesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribePoliciesOutput) SetNextToken(v string) *DescribePoliciesOutput { + s.NextToken = &v + return s +} + +// SetScalingPolicies sets the ScalingPolicies field's value. +func (s *DescribePoliciesOutput) SetScalingPolicies(v []*ScalingPolicy) *DescribePoliciesOutput { + s.ScalingPolicies = v + return s +} + // Contains the parameters for DescribeScalingActivities. type DescribeScalingActivitiesInput struct { _ struct{} `type:"structure"` @@ -6029,6 +6774,30 @@ func (s *DescribeScalingActivitiesInput) Validate() error { return nil } +// SetActivityIds sets the ActivityIds field's value. +func (s *DescribeScalingActivitiesInput) SetActivityIds(v []*string) *DescribeScalingActivitiesInput { + s.ActivityIds = v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeScalingActivitiesInput) SetAutoScalingGroupName(v string) *DescribeScalingActivitiesInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeScalingActivitiesInput) SetMaxRecords(v int64) *DescribeScalingActivitiesInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingActivitiesInput) SetNextToken(v string) *DescribeScalingActivitiesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeScalingActivities. type DescribeScalingActivitiesOutput struct { _ struct{} `type:"structure"` @@ -6054,6 +6823,18 @@ func (s DescribeScalingActivitiesOutput) GoString() string { return s.String() } +// SetActivities sets the Activities field's value. +func (s *DescribeScalingActivitiesOutput) SetActivities(v []*Activity) *DescribeScalingActivitiesOutput { + s.Activities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingActivitiesOutput) SetNextToken(v string) *DescribeScalingActivitiesOutput { + s.NextToken = &v + return s +} + type DescribeScalingProcessTypesInput struct { _ struct{} `type:"structure"` } @@ -6086,6 +6867,12 @@ func (s DescribeScalingProcessTypesOutput) GoString() string { return s.String() } +// SetProcesses sets the Processes field's value. +func (s *DescribeScalingProcessTypesOutput) SetProcesses(v []*ProcessType) *DescribeScalingProcessTypesOutput { + s.Processes = v + return s +} + // Contains the parameters for DescribeScheduledActions. type DescribeScheduledActionsInput struct { _ struct{} `type:"structure"` @@ -6108,9 +6895,9 @@ type DescribeScheduledActionsInput struct { // scheduled actions are described. If you specify an unknown scheduled action, // it is ignored with no error. // - // You can describe up to a maximum of 50 instances with a single call. If - // there are more items to return, the call returns a token. To get the next - // set of items, repeat the call with the returned token. + // You can describe up to a maximum of 50 instances with a single call. If there + // are more items to return, the call returns a token. To get the next set of + // items, repeat the call with the returned token. ScheduledActionNames []*string `type:"list"` // The earliest scheduled start time to return. If scheduled action names are @@ -6141,6 +6928,42 @@ func (s *DescribeScheduledActionsInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeScheduledActionsInput) SetAutoScalingGroupName(v string) *DescribeScheduledActionsInput { + s.AutoScalingGroupName = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeScheduledActionsInput) SetEndTime(v time.Time) *DescribeScheduledActionsInput { + s.EndTime = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeScheduledActionsInput) SetMaxRecords(v int64) *DescribeScheduledActionsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledActionsInput) SetNextToken(v string) *DescribeScheduledActionsInput { + s.NextToken = &v + return s +} + +// SetScheduledActionNames sets the ScheduledActionNames field's value. +func (s *DescribeScheduledActionsInput) SetScheduledActionNames(v []*string) *DescribeScheduledActionsInput { + s.ScheduledActionNames = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeScheduledActionsInput) SetStartTime(v time.Time) *DescribeScheduledActionsInput { + s.StartTime = &v + return s +} + // Contains the output of DescribeScheduledActions. type DescribeScheduledActionsOutput struct { _ struct{} `type:"structure"` @@ -6163,6 +6986,18 @@ func (s DescribeScheduledActionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledActionsOutput) SetNextToken(v string) *DescribeScheduledActionsOutput { + s.NextToken = &v + return s +} + +// SetScheduledUpdateGroupActions sets the ScheduledUpdateGroupActions field's value. +func (s *DescribeScheduledActionsOutput) SetScheduledUpdateGroupActions(v []*ScheduledUpdateGroupAction) *DescribeScheduledActionsOutput { + s.ScheduledUpdateGroupActions = v + return s +} + // Contains the parameters for DescribeTags. type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -6188,6 +7023,24 @@ func (s DescribeTagsInput) GoString() string { return s.String() } +// SetFilters sets the Filters field's value. +func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput { + s.Filters = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeTagsInput) SetMaxRecords(v int64) *DescribeTagsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeTags. type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -6210,6 +7063,18 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput { + s.Tags = v + return s +} + type DescribeTerminationPolicyTypesInput struct { _ struct{} `type:"structure"` } @@ -6243,6 +7108,12 @@ func (s DescribeTerminationPolicyTypesOutput) GoString() string { return s.String() } +// SetTerminationPolicyTypes sets the TerminationPolicyTypes field's value. +func (s *DescribeTerminationPolicyTypesOutput) SetTerminationPolicyTypes(v []*string) *DescribeTerminationPolicyTypesOutput { + s.TerminationPolicyTypes = v + return s +} + // Contains the parameters for DetachInstances. type DetachInstancesInput struct { _ struct{} `type:"structure"` @@ -6291,6 +7162,24 @@ func (s *DetachInstancesInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DetachInstancesInput) SetAutoScalingGroupName(v string) *DetachInstancesInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DetachInstancesInput) SetInstanceIds(v []*string) *DetachInstancesInput { + s.InstanceIds = v + return s +} + +// SetShouldDecrementDesiredCapacity sets the ShouldDecrementDesiredCapacity field's value. +func (s *DetachInstancesInput) SetShouldDecrementDesiredCapacity(v bool) *DetachInstancesInput { + s.ShouldDecrementDesiredCapacity = &v + return s +} + // Contains the output of DetachInstances. type DetachInstancesOutput struct { _ struct{} `type:"structure"` @@ -6309,6 +7198,12 @@ func (s DetachInstancesOutput) GoString() string { return s.String() } +// SetActivities sets the Activities field's value. +func (s *DetachInstancesOutput) SetActivities(v []*Activity) *DetachInstancesOutput { + s.Activities = v + return s +} + type DetachLoadBalancerTargetGroupsInput struct { _ struct{} `type:"structure"` @@ -6352,6 +7247,18 @@ func (s *DetachLoadBalancerTargetGroupsInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DetachLoadBalancerTargetGroupsInput) SetAutoScalingGroupName(v string) *DetachLoadBalancerTargetGroupsInput { + s.AutoScalingGroupName = &v + return s +} + +// SetTargetGroupARNs sets the TargetGroupARNs field's value. +func (s *DetachLoadBalancerTargetGroupsInput) SetTargetGroupARNs(v []*string) *DetachLoadBalancerTargetGroupsInput { + s.TargetGroupARNs = v + return s +} + type DetachLoadBalancerTargetGroupsOutput struct { _ struct{} `type:"structure"` } @@ -6410,6 +7317,18 @@ func (s *DetachLoadBalancersInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DetachLoadBalancersInput) SetAutoScalingGroupName(v string) *DetachLoadBalancersInput { + s.AutoScalingGroupName = &v + return s +} + +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *DetachLoadBalancersInput) SetLoadBalancerNames(v []*string) *DetachLoadBalancersInput { + s.LoadBalancerNames = v + return s +} + // Contains the output for DetachLoadBalancers. type DetachLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -6437,21 +7356,21 @@ type DisableMetricsCollectionInput struct { // One or more of the following metrics. If you omit this parameter, all metrics // are disabled. // - // GroupMinSize + // * GroupMinSize // - // GroupMaxSize + // * GroupMaxSize // - // GroupDesiredCapacity + // * GroupDesiredCapacity // - // GroupInServiceInstances + // * GroupInServiceInstances // - // GroupPendingInstances + // * GroupPendingInstances // - // GroupStandbyInstances + // * GroupStandbyInstances // - // GroupTerminatingInstances + // * GroupTerminatingInstances // - // GroupTotalInstances + // * GroupTotalInstances Metrics []*string `type:"list"` } @@ -6481,6 +7400,18 @@ func (s *DisableMetricsCollectionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DisableMetricsCollectionInput) SetAutoScalingGroupName(v string) *DisableMetricsCollectionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *DisableMetricsCollectionInput) SetMetrics(v []*string) *DisableMetricsCollectionInput { + s.Metrics = v + return s +} + type DisableMetricsCollectionOutput struct { _ struct{} `type:"structure"` } @@ -6526,8 +7457,8 @@ type Ebs struct { // specify a value from 1 to 16,384. If you specify a snapshot, the volume size // must be equal to or larger than the snapshot size. // - // Default: If you create a volume from a snapshot and you don't specify a - // volume size, the default is the snapshot size. + // Default: If you create a volume from a snapshot and you don't specify a volume + // size, the default is the snapshot size. VolumeSize *int64 `min:"1" type:"integer"` // The volume type. For more information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) @@ -6571,6 +7502,42 @@ func (s *Ebs) Validate() error { return nil } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *Ebs) SetDeleteOnTermination(v bool) *Ebs { + s.DeleteOnTermination = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Ebs) SetEncrypted(v bool) *Ebs { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *Ebs) SetIops(v int64) *Ebs { + s.Iops = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *Ebs) SetSnapshotId(v string) *Ebs { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *Ebs) SetVolumeSize(v int64) *Ebs { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *Ebs) SetVolumeType(v string) *Ebs { + s.VolumeType = &v + return s +} + // Contains the parameters for EnableMetricsCollection. type EnableMetricsCollectionInput struct { _ struct{} `type:"structure"` @@ -6589,21 +7556,21 @@ type EnableMetricsCollectionInput struct { // One or more of the following metrics. If you omit this parameter, all metrics // are enabled. // - // GroupMinSize + // * GroupMinSize // - // GroupMaxSize + // * GroupMaxSize // - // GroupDesiredCapacity + // * GroupDesiredCapacity // - // GroupInServiceInstances + // * GroupInServiceInstances // - // GroupPendingInstances + // * GroupPendingInstances // - // GroupStandbyInstances + // * GroupStandbyInstances // - // GroupTerminatingInstances + // * GroupTerminatingInstances // - // GroupTotalInstances + // * GroupTotalInstances Metrics []*string `type:"list"` } @@ -6639,6 +7606,24 @@ func (s *EnableMetricsCollectionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *EnableMetricsCollectionInput) SetAutoScalingGroupName(v string) *EnableMetricsCollectionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetGranularity sets the Granularity field's value. +func (s *EnableMetricsCollectionInput) SetGranularity(v string) *EnableMetricsCollectionInput { + s.Granularity = &v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *EnableMetricsCollectionInput) SetMetrics(v []*string) *EnableMetricsCollectionInput { + s.Metrics = v + return s +} + type EnableMetricsCollectionOutput struct { _ struct{} `type:"structure"` } @@ -6662,21 +7647,21 @@ type EnabledMetric struct { // One of the following metrics: // - // GroupMinSize + // * GroupMinSize // - // GroupMaxSize + // * GroupMaxSize // - // GroupDesiredCapacity + // * GroupDesiredCapacity // - // GroupInServiceInstances + // * GroupInServiceInstances // - // GroupPendingInstances + // * GroupPendingInstances // - // GroupStandbyInstances + // * GroupStandbyInstances // - // GroupTerminatingInstances + // * GroupTerminatingInstances // - // GroupTotalInstances + // * GroupTotalInstances Metric *string `min:"1" type:"string"` } @@ -6690,6 +7675,18 @@ func (s EnabledMetric) GoString() string { return s.String() } +// SetGranularity sets the Granularity field's value. +func (s *EnabledMetric) SetGranularity(v string) *EnabledMetric { + s.Granularity = &v + return s +} + +// SetMetric sets the Metric field's value. +func (s *EnabledMetric) SetMetric(v string) *EnabledMetric { + s.Metric = &v + return s +} + // Contains the parameters for EnteStandby. type EnterStandbyInput struct { _ struct{} `type:"structure"` @@ -6741,6 +7738,24 @@ func (s *EnterStandbyInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *EnterStandbyInput) SetAutoScalingGroupName(v string) *EnterStandbyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *EnterStandbyInput) SetInstanceIds(v []*string) *EnterStandbyInput { + s.InstanceIds = v + return s +} + +// SetShouldDecrementDesiredCapacity sets the ShouldDecrementDesiredCapacity field's value. +func (s *EnterStandbyInput) SetShouldDecrementDesiredCapacity(v bool) *EnterStandbyInput { + s.ShouldDecrementDesiredCapacity = &v + return s +} + // Contains the output of EnterStandby. type EnterStandbyOutput struct { _ struct{} `type:"structure"` @@ -6759,6 +7774,12 @@ func (s EnterStandbyOutput) GoString() string { return s.String() } +// SetActivities sets the Activities field's value. +func (s *EnterStandbyOutput) SetActivities(v []*Activity) *EnterStandbyOutput { + s.Activities = v + return s +} + // Contains the parameters for ExecutePolicy. type ExecutePolicyInput struct { _ struct{} `type:"structure"` @@ -6778,7 +7799,7 @@ type ExecutePolicyInput struct { // // This parameter is not supported if the policy type is StepScaling. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html) // in the Auto Scaling User Guide. HonorCooldown *bool `type:"boolean"` @@ -6830,6 +7851,36 @@ func (s *ExecutePolicyInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ExecutePolicyInput) SetAutoScalingGroupName(v string) *ExecutePolicyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetBreachThreshold sets the BreachThreshold field's value. +func (s *ExecutePolicyInput) SetBreachThreshold(v float64) *ExecutePolicyInput { + s.BreachThreshold = &v + return s +} + +// SetHonorCooldown sets the HonorCooldown field's value. +func (s *ExecutePolicyInput) SetHonorCooldown(v bool) *ExecutePolicyInput { + s.HonorCooldown = &v + return s +} + +// SetMetricValue sets the MetricValue field's value. +func (s *ExecutePolicyInput) SetMetricValue(v float64) *ExecutePolicyInput { + s.MetricValue = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ExecutePolicyInput) SetPolicyName(v string) *ExecutePolicyInput { + s.PolicyName = &v + return s +} + type ExecutePolicyOutput struct { _ struct{} `type:"structure"` } @@ -6883,6 +7934,18 @@ func (s *ExitStandbyInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ExitStandbyInput) SetAutoScalingGroupName(v string) *ExitStandbyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *ExitStandbyInput) SetInstanceIds(v []*string) *ExitStandbyInput { + s.InstanceIds = v + return s +} + // Contains the parameters for ExitStandby. type ExitStandbyOutput struct { _ struct{} `type:"structure"` @@ -6901,6 +7964,12 @@ func (s ExitStandbyOutput) GoString() string { return s.String() } +// SetActivities sets the Activities field's value. +func (s *ExitStandbyOutput) SetActivities(v []*Activity) *ExitStandbyOutput { + s.Activities = v + return s +} + // Describes a filter. type Filter struct { _ struct{} `type:"structure"` @@ -6923,6 +7992,18 @@ func (s Filter) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v + return s +} + // Describes an Auto Scaling group. type Group struct { _ struct{} `type:"structure"` @@ -7013,8 +8094,8 @@ type Group struct { // One or more subnet IDs, if applicable, separated by commas. // - // If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the - // Availability Zones of the subnets match the values for AvailabilityZones. + // If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the Availability + // Zones of the subnets match the values for AvailabilityZones. VPCZoneIdentifier *string `min:"1" type:"string"` } @@ -7028,6 +8109,138 @@ func (s Group) GoString() string { return s.String() } +// SetAutoScalingGroupARN sets the AutoScalingGroupARN field's value. +func (s *Group) SetAutoScalingGroupARN(v string) *Group { + s.AutoScalingGroupARN = &v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *Group) SetAutoScalingGroupName(v string) *Group { + s.AutoScalingGroupName = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *Group) SetAvailabilityZones(v []*string) *Group { + s.AvailabilityZones = v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *Group) SetCreatedTime(v time.Time) *Group { + s.CreatedTime = &v + return s +} + +// SetDefaultCooldown sets the DefaultCooldown field's value. +func (s *Group) SetDefaultCooldown(v int64) *Group { + s.DefaultCooldown = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *Group) SetDesiredCapacity(v int64) *Group { + s.DesiredCapacity = &v + return s +} + +// SetEnabledMetrics sets the EnabledMetrics field's value. +func (s *Group) SetEnabledMetrics(v []*EnabledMetric) *Group { + s.EnabledMetrics = v + return s +} + +// SetHealthCheckGracePeriod sets the HealthCheckGracePeriod field's value. +func (s *Group) SetHealthCheckGracePeriod(v int64) *Group { + s.HealthCheckGracePeriod = &v + return s +} + +// SetHealthCheckType sets the HealthCheckType field's value. +func (s *Group) SetHealthCheckType(v string) *Group { + s.HealthCheckType = &v + return s +} + +// SetInstances sets the Instances field's value. +func (s *Group) SetInstances(v []*Instance) *Group { + s.Instances = v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *Group) SetLaunchConfigurationName(v string) *Group { + s.LaunchConfigurationName = &v + return s +} + +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *Group) SetLoadBalancerNames(v []*string) *Group { + s.LoadBalancerNames = v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *Group) SetMaxSize(v int64) *Group { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *Group) SetMinSize(v int64) *Group { + s.MinSize = &v + return s +} + +// SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. +func (s *Group) SetNewInstancesProtectedFromScaleIn(v bool) *Group { + s.NewInstancesProtectedFromScaleIn = &v + return s +} + +// SetPlacementGroup sets the PlacementGroup field's value. +func (s *Group) SetPlacementGroup(v string) *Group { + s.PlacementGroup = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Group) SetStatus(v string) *Group { + s.Status = &v + return s +} + +// SetSuspendedProcesses sets the SuspendedProcesses field's value. +func (s *Group) SetSuspendedProcesses(v []*SuspendedProcess) *Group { + s.SuspendedProcesses = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Group) SetTags(v []*TagDescription) *Group { + s.Tags = v + return s +} + +// SetTargetGroupARNs sets the TargetGroupARNs field's value. +func (s *Group) SetTargetGroupARNs(v []*string) *Group { + s.TargetGroupARNs = v + return s +} + +// SetTerminationPolicies sets the TerminationPolicies field's value. +func (s *Group) SetTerminationPolicies(v []*string) *Group { + s.TerminationPolicies = v + return s +} + +// SetVPCZoneIdentifier sets the VPCZoneIdentifier field's value. +func (s *Group) SetVPCZoneIdentifier(v string) *Group { + s.VPCZoneIdentifier = &v + return s +} + // Describes an EC2 instance. type Instance struct { _ struct{} `type:"structure"` @@ -7077,6 +8290,42 @@ func (s Instance) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Instance) SetAvailabilityZone(v string) *Instance { + s.AvailabilityZone = &v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *Instance) SetHealthStatus(v string) *Instance { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *Instance) SetLaunchConfigurationName(v string) *Instance { + s.LaunchConfigurationName = &v + return s +} + +// SetLifecycleState sets the LifecycleState field's value. +func (s *Instance) SetLifecycleState(v string) *Instance { + s.LifecycleState = &v + return s +} + +// SetProtectedFromScaleIn sets the ProtectedFromScaleIn field's value. +func (s *Instance) SetProtectedFromScaleIn(v bool) *Instance { + s.ProtectedFromScaleIn = &v + return s +} + // Describes an EC2 instance associated with an Auto Scaling group. type InstanceDetails struct { _ struct{} `type:"structure"` @@ -7109,7 +8358,7 @@ type InstanceDetails struct { LaunchConfigurationName *string `min:"1" type:"string" required:"true"` // The lifecycle state for the instance. For more information, see Auto Scaling - // Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) + // Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // LifecycleState is a required field @@ -7132,6 +8381,48 @@ func (s InstanceDetails) GoString() string { return s.String() } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *InstanceDetails) SetAutoScalingGroupName(v string) *InstanceDetails { + s.AutoScalingGroupName = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *InstanceDetails) SetAvailabilityZone(v string) *InstanceDetails { + s.AvailabilityZone = &v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *InstanceDetails) SetHealthStatus(v string) *InstanceDetails { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceDetails) SetInstanceId(v string) *InstanceDetails { + s.InstanceId = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *InstanceDetails) SetLaunchConfigurationName(v string) *InstanceDetails { + s.LaunchConfigurationName = &v + return s +} + +// SetLifecycleState sets the LifecycleState field's value. +func (s *InstanceDetails) SetLifecycleState(v string) *InstanceDetails { + s.LifecycleState = &v + return s +} + +// SetProtectedFromScaleIn sets the ProtectedFromScaleIn field's value. +func (s *InstanceDetails) SetProtectedFromScaleIn(v bool) *InstanceDetails { + s.ProtectedFromScaleIn = &v + return s +} + // Describes whether instance monitoring is enabled. type InstanceMonitoring struct { _ struct{} `type:"structure"` @@ -7150,6 +8441,12 @@ func (s InstanceMonitoring) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *InstanceMonitoring) SetEnabled(v bool) *InstanceMonitoring { + s.Enabled = &v + return s +} + // Describes a launch configuration. type LaunchConfiguration struct { _ struct{} `type:"structure"` @@ -7240,15 +8537,129 @@ func (s LaunchConfiguration) GoString() string { return s.String() } +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *LaunchConfiguration) SetAssociatePublicIpAddress(v bool) *LaunchConfiguration { + s.AssociatePublicIpAddress = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *LaunchConfiguration) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchConfiguration { + s.BlockDeviceMappings = v + return s +} + +// SetClassicLinkVPCId sets the ClassicLinkVPCId field's value. +func (s *LaunchConfiguration) SetClassicLinkVPCId(v string) *LaunchConfiguration { + s.ClassicLinkVPCId = &v + return s +} + +// SetClassicLinkVPCSecurityGroups sets the ClassicLinkVPCSecurityGroups field's value. +func (s *LaunchConfiguration) SetClassicLinkVPCSecurityGroups(v []*string) *LaunchConfiguration { + s.ClassicLinkVPCSecurityGroups = v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *LaunchConfiguration) SetCreatedTime(v time.Time) *LaunchConfiguration { + s.CreatedTime = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *LaunchConfiguration) SetEbsOptimized(v bool) *LaunchConfiguration { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *LaunchConfiguration) SetIamInstanceProfile(v string) *LaunchConfiguration { + s.IamInstanceProfile = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *LaunchConfiguration) SetImageId(v string) *LaunchConfiguration { + s.ImageId = &v + return s +} + +// SetInstanceMonitoring sets the InstanceMonitoring field's value. +func (s *LaunchConfiguration) SetInstanceMonitoring(v *InstanceMonitoring) *LaunchConfiguration { + s.InstanceMonitoring = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *LaunchConfiguration) SetInstanceType(v string) *LaunchConfiguration { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *LaunchConfiguration) SetKernelId(v string) *LaunchConfiguration { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *LaunchConfiguration) SetKeyName(v string) *LaunchConfiguration { + s.KeyName = &v + return s +} + +// SetLaunchConfigurationARN sets the LaunchConfigurationARN field's value. +func (s *LaunchConfiguration) SetLaunchConfigurationARN(v string) *LaunchConfiguration { + s.LaunchConfigurationARN = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *LaunchConfiguration) SetLaunchConfigurationName(v string) *LaunchConfiguration { + s.LaunchConfigurationName = &v + return s +} + +// SetPlacementTenancy sets the PlacementTenancy field's value. +func (s *LaunchConfiguration) SetPlacementTenancy(v string) *LaunchConfiguration { + s.PlacementTenancy = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *LaunchConfiguration) SetRamdiskId(v string) *LaunchConfiguration { + s.RamdiskId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *LaunchConfiguration) SetSecurityGroups(v []*string) *LaunchConfiguration { + s.SecurityGroups = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *LaunchConfiguration) SetSpotPrice(v string) *LaunchConfiguration { + s.SpotPrice = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *LaunchConfiguration) SetUserData(v string) *LaunchConfiguration { + s.UserData = &v + return s +} + // 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 // hook in place, the Auto Scaling group will either: // -// Pause the instance after it launches, but before it is put into service +// * Pause the instance after it launches, but before it is put into service // -// Pause the instance as it terminates, but before it is fully terminated +// * 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/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. type LifecycleHook struct { _ struct{} `type:"structure"` @@ -7262,7 +8673,8 @@ type LifecycleHook struct { DefaultResult *string `type:"string"` // The maximum time, in seconds, that an instance can remain in a Pending:Wait - // or Terminating:Wait state. The default is 172800 seconds (48 hours). + // or Terminating:Wait state. The maximum is 172800 seconds (48 hours) or 100 + // times HeartbeatTimeout, whichever is smaller. GlobalTimeout *int64 `type:"integer"` // The maximum time, in seconds, that can elapse before the lifecycle hook times @@ -7287,19 +8699,19 @@ type LifecycleHook struct { // can be either an SQS queue or an SNS topic. The notification message sent // to the target includes the following: // - // Lifecycle action token + // * Lifecycle action token // - // User account ID + // * User account ID // - // Name of the Auto Scaling group + // * Name of the Auto Scaling group // - // Lifecycle hook name + // * Lifecycle hook name // - // EC2 instance ID + // * EC2 instance ID // - // Lifecycle transition + // * Lifecycle transition // - // Notification metadata + // * Notification metadata NotificationTargetARN *string `min:"1" type:"string"` // The ARN of the IAM role that allows the Auto Scaling group to publish to @@ -7317,6 +8729,60 @@ func (s LifecycleHook) GoString() string { return s.String() } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *LifecycleHook) SetAutoScalingGroupName(v string) *LifecycleHook { + s.AutoScalingGroupName = &v + return s +} + +// SetDefaultResult sets the DefaultResult field's value. +func (s *LifecycleHook) SetDefaultResult(v string) *LifecycleHook { + s.DefaultResult = &v + return s +} + +// SetGlobalTimeout sets the GlobalTimeout field's value. +func (s *LifecycleHook) SetGlobalTimeout(v int64) *LifecycleHook { + s.GlobalTimeout = &v + return s +} + +// SetHeartbeatTimeout sets the HeartbeatTimeout field's value. +func (s *LifecycleHook) SetHeartbeatTimeout(v int64) *LifecycleHook { + s.HeartbeatTimeout = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *LifecycleHook) SetLifecycleHookName(v string) *LifecycleHook { + s.LifecycleHookName = &v + return s +} + +// SetLifecycleTransition sets the LifecycleTransition field's value. +func (s *LifecycleHook) SetLifecycleTransition(v string) *LifecycleHook { + s.LifecycleTransition = &v + return s +} + +// SetNotificationMetadata sets the NotificationMetadata field's value. +func (s *LifecycleHook) SetNotificationMetadata(v string) *LifecycleHook { + s.NotificationMetadata = &v + return s +} + +// SetNotificationTargetARN sets the NotificationTargetARN field's value. +func (s *LifecycleHook) SetNotificationTargetARN(v string) *LifecycleHook { + s.NotificationTargetARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *LifecycleHook) SetRoleARN(v string) *LifecycleHook { + s.RoleARN = &v + return s +} + // Describes the state of a Classic load balancer. // // If you specify a load balancer when creating the Auto Scaling group, the @@ -7336,18 +8802,20 @@ type LoadBalancerState struct { // One of the following load balancer states: // - // Adding - The instances in the group are being registered with the load - // balancer. + // * Adding - The instances in the group are being registered with the load + // balancer. // - // Added - All instances in the group are registered with the load balancer. + // * Added - All instances in the group are registered with the load balancer. // - // InService - At least one instance in the group passed an ELB health check. + // * InService - At least one instance in the group passed an ELB health + // check. // - // Removing - The instances in the group are being deregistered from the - // load balancer. If connection draining is enabled, Elastic Load Balancing - // waits for in-flight requests to complete before deregistering the instances. + // * Removing - The instances in the group are being deregistered from the + // load balancer. If connection draining is enabled, Elastic Load Balancing + // waits for in-flight requests to complete before deregistering the instances. // - // Removed - All instances in the group are deregistered from the load balancer. + // * Removed - All instances in the group are deregistered from the load + // balancer. State *string `min:"1" type:"string"` } @@ -7361,6 +8829,18 @@ func (s LoadBalancerState) GoString() string { return s.String() } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancerState) SetLoadBalancerName(v string) *LoadBalancerState { + s.LoadBalancerName = &v + return s +} + +// SetState sets the State field's value. +func (s *LoadBalancerState) SetState(v string) *LoadBalancerState { + s.State = &v + return s +} + // Describes the state of a target group. // // If you attach a target group to an existing Auto Scaling group, the initial @@ -7377,19 +8857,20 @@ type LoadBalancerTargetGroupState struct { // The state of the target group. // - // Adding - The Auto Scaling instances are being registered with the target - // group. + // * Adding - The Auto Scaling instances are being registered with the target + // group. // - // Added - All Auto Scaling instances are registered with the target group. + // * Added - All Auto Scaling instances are registered with the target group. // - // InService - At least one Auto Scaling instance passed an ELB health check. + // * InService - At least one Auto Scaling instance passed an ELB health + // check. // - // Removing - The Auto Scaling instances are being deregistered from the - // target group. If connection draining is enabled, Elastic Load Balancing waits - // for in-flight requests to complete before deregistering the instances. + // * Removing - The Auto Scaling instances are being deregistered from the + // target group. If connection draining is enabled, Elastic Load Balancing + // waits for in-flight requests to complete before deregistering the instances. // - // Removed - All Auto Scaling instances are deregistered from the target - // group. + // * Removed - All Auto Scaling instances are deregistered from the target + // group. State *string `min:"1" type:"string"` } @@ -7403,27 +8884,39 @@ func (s LoadBalancerTargetGroupState) GoString() string { return s.String() } +// SetLoadBalancerTargetGroupARN sets the LoadBalancerTargetGroupARN field's value. +func (s *LoadBalancerTargetGroupState) SetLoadBalancerTargetGroupARN(v string) *LoadBalancerTargetGroupState { + s.LoadBalancerTargetGroupARN = &v + return s +} + +// SetState sets the State field's value. +func (s *LoadBalancerTargetGroupState) SetState(v string) *LoadBalancerTargetGroupState { + s.State = &v + return s +} + // Describes a metric. type MetricCollectionType struct { _ struct{} `type:"structure"` // One of the following metrics: // - // GroupMinSize + // * GroupMinSize // - // GroupMaxSize + // * GroupMaxSize // - // GroupDesiredCapacity + // * GroupDesiredCapacity // - // GroupInServiceInstances + // * GroupInServiceInstances // - // GroupPendingInstances + // * GroupPendingInstances // - // GroupStandbyInstances + // * GroupStandbyInstances // - // GroupTerminatingInstances + // * GroupTerminatingInstances // - // GroupTotalInstances + // * GroupTotalInstances Metric *string `min:"1" type:"string"` } @@ -7437,6 +8930,12 @@ func (s MetricCollectionType) GoString() string { return s.String() } +// SetMetric sets the Metric field's value. +func (s *MetricCollectionType) SetMetric(v string) *MetricCollectionType { + s.Metric = &v + return s +} + // Describes a granularity of a metric. type MetricGranularityType struct { _ struct{} `type:"structure"` @@ -7455,6 +8954,12 @@ func (s MetricGranularityType) GoString() string { return s.String() } +// SetGranularity sets the Granularity field's value. +func (s *MetricGranularityType) SetGranularity(v string) *MetricGranularityType { + s.Granularity = &v + return s +} + // Describes a notification. type NotificationConfiguration struct { _ struct{} `type:"structure"` @@ -7464,15 +8969,15 @@ type NotificationConfiguration struct { // One of the following event notification types: // - // autoscaling:EC2_INSTANCE_LAUNCH + // * autoscaling:EC2_INSTANCE_LAUNCH // - // autoscaling:EC2_INSTANCE_LAUNCH_ERROR + // * autoscaling:EC2_INSTANCE_LAUNCH_ERROR // - // autoscaling:EC2_INSTANCE_TERMINATE + // * autoscaling:EC2_INSTANCE_TERMINATE // - // autoscaling:EC2_INSTANCE_TERMINATE_ERROR + // * autoscaling:EC2_INSTANCE_TERMINATE_ERROR // - // autoscaling:TEST_NOTIFICATION + // * autoscaling:TEST_NOTIFICATION NotificationType *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service @@ -7490,30 +8995,48 @@ func (s NotificationConfiguration) GoString() string { return s.String() } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *NotificationConfiguration) SetAutoScalingGroupName(v string) *NotificationConfiguration { + s.AutoScalingGroupName = &v + return s +} + +// SetNotificationType sets the NotificationType field's value. +func (s *NotificationConfiguration) SetNotificationType(v string) *NotificationConfiguration { + s.NotificationType = &v + return s +} + +// SetTopicARN sets the TopicARN field's value. +func (s *NotificationConfiguration) SetTopicARN(v string) *NotificationConfiguration { + s.TopicARN = &v + return s +} + // Describes a process type. // -// For more information, see Auto Scaling Processes (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html#process-types) +// For more information, see Auto Scaling Processes (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html#process-types) // in the Auto Scaling User Guide. type ProcessType struct { _ struct{} `type:"structure"` // One of the following processes: // - // Launch + // * Launch // - // Terminate + // * Terminate // - // AddToLoadBalancer + // * AddToLoadBalancer // - // AlarmNotification + // * AlarmNotification // - // AZRebalance + // * AZRebalance // - // HealthCheck + // * HealthCheck // - // ReplaceUnhealthy + // * ReplaceUnhealthy // - // ScheduledActions + // * ScheduledActions // // ProcessName is a required field ProcessName *string `min:"1" type:"string" required:"true"` @@ -7529,6 +9052,12 @@ func (s ProcessType) GoString() string { return s.String() } +// SetProcessName sets the ProcessName field's value. +func (s *ProcessType) SetProcessName(v string) *ProcessType { + s.ProcessName = &v + return s +} + // Contains the parameters for PutLifecycleHook. type PutLifecycleHookInput struct { _ struct{} `type:"structure"` @@ -7571,23 +9100,7 @@ type PutLifecycleHookInput struct { // target can be either an SQS queue or an SNS topic. If you specify an empty // string, this overrides the current ARN. // - // The notification messages sent to the target include the following information: - // - // AutoScalingGroupName. The name of the Auto Scaling group. - // - // AccountId. The AWS account ID. - // - // LifecycleTransition. The lifecycle hook type. - // - // LifecycleActionToken. The lifecycle action token. - // - // EC2InstanceId. The EC2 instance ID. - // - // LifecycleHookName. The name of the lifecycle hook. - // - // NotificationMetadata. User-defined information. - // - // This operation uses the JSON format when sending notifications to an Amazon + // This operation uses the JSON format when sending notifications to an Amazon // SQS queue, and an email key/value pair format when sending notifications // to an Amazon SNS topic. // @@ -7642,6 +9155,54 @@ func (s *PutLifecycleHookInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *PutLifecycleHookInput) SetAutoScalingGroupName(v string) *PutLifecycleHookInput { + s.AutoScalingGroupName = &v + return s +} + +// SetDefaultResult sets the DefaultResult field's value. +func (s *PutLifecycleHookInput) SetDefaultResult(v string) *PutLifecycleHookInput { + s.DefaultResult = &v + return s +} + +// SetHeartbeatTimeout sets the HeartbeatTimeout field's value. +func (s *PutLifecycleHookInput) SetHeartbeatTimeout(v int64) *PutLifecycleHookInput { + s.HeartbeatTimeout = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *PutLifecycleHookInput) SetLifecycleHookName(v string) *PutLifecycleHookInput { + s.LifecycleHookName = &v + return s +} + +// SetLifecycleTransition sets the LifecycleTransition field's value. +func (s *PutLifecycleHookInput) SetLifecycleTransition(v string) *PutLifecycleHookInput { + s.LifecycleTransition = &v + return s +} + +// SetNotificationMetadata sets the NotificationMetadata field's value. +func (s *PutLifecycleHookInput) SetNotificationMetadata(v string) *PutLifecycleHookInput { + s.NotificationMetadata = &v + return s +} + +// SetNotificationTargetARN sets the NotificationTargetARN field's value. +func (s *PutLifecycleHookInput) SetNotificationTargetARN(v string) *PutLifecycleHookInput { + s.NotificationTargetARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *PutLifecycleHookInput) SetRoleARN(v string) *PutLifecycleHookInput { + s.RoleARN = &v + return s +} + // Contains the output of PutLifecycleHook. type PutLifecycleHookOutput struct { _ struct{} `type:"structure"` @@ -7714,6 +9275,24 @@ func (s *PutNotificationConfigurationInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *PutNotificationConfigurationInput) SetAutoScalingGroupName(v string) *PutNotificationConfigurationInput { + s.AutoScalingGroupName = &v + return s +} + +// SetNotificationTypes sets the NotificationTypes field's value. +func (s *PutNotificationConfigurationInput) SetNotificationTypes(v []*string) *PutNotificationConfigurationInput { + s.NotificationTypes = v + return s +} + +// SetTopicARN sets the TopicARN field's value. +func (s *PutNotificationConfigurationInput) SetTopicARN(v string) *PutNotificationConfigurationInput { + s.TopicARN = &v + return s +} + type PutNotificationConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -7735,7 +9314,7 @@ type PutScalingPolicyInput struct { // The adjustment type. Valid values are ChangeInCapacity, ExactCapacity, and // PercentChangeInCapacity. // - // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html) + // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-scale-based-on-demand.html) // in the Auto Scaling User Guide. // // AdjustmentType is a required field @@ -7752,7 +9331,7 @@ type PutScalingPolicyInput struct { // // This parameter is not supported unless the policy type is SimpleScaling. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html) // in the Auto Scaling User Guide. Cooldown *int64 `type:"integer"` @@ -7858,6 +9437,72 @@ func (s *PutScalingPolicyInput) Validate() error { return nil } +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *PutScalingPolicyInput) SetAdjustmentType(v string) *PutScalingPolicyInput { + s.AdjustmentType = &v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *PutScalingPolicyInput) SetAutoScalingGroupName(v string) *PutScalingPolicyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetCooldown sets the Cooldown field's value. +func (s *PutScalingPolicyInput) SetCooldown(v int64) *PutScalingPolicyInput { + s.Cooldown = &v + return s +} + +// SetEstimatedInstanceWarmup sets the EstimatedInstanceWarmup field's value. +func (s *PutScalingPolicyInput) SetEstimatedInstanceWarmup(v int64) *PutScalingPolicyInput { + s.EstimatedInstanceWarmup = &v + return s +} + +// SetMetricAggregationType sets the MetricAggregationType field's value. +func (s *PutScalingPolicyInput) SetMetricAggregationType(v string) *PutScalingPolicyInput { + s.MetricAggregationType = &v + return s +} + +// SetMinAdjustmentMagnitude sets the MinAdjustmentMagnitude field's value. +func (s *PutScalingPolicyInput) SetMinAdjustmentMagnitude(v int64) *PutScalingPolicyInput { + s.MinAdjustmentMagnitude = &v + return s +} + +// SetMinAdjustmentStep sets the MinAdjustmentStep field's value. +func (s *PutScalingPolicyInput) SetMinAdjustmentStep(v int64) *PutScalingPolicyInput { + s.MinAdjustmentStep = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutScalingPolicyInput) SetPolicyName(v string) *PutScalingPolicyInput { + s.PolicyName = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *PutScalingPolicyInput) SetPolicyType(v string) *PutScalingPolicyInput { + s.PolicyType = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *PutScalingPolicyInput) SetScalingAdjustment(v int64) *PutScalingPolicyInput { + s.ScalingAdjustment = &v + return s +} + +// SetStepAdjustments sets the StepAdjustments field's value. +func (s *PutScalingPolicyInput) SetStepAdjustments(v []*StepAdjustment) *PutScalingPolicyInput { + s.StepAdjustments = v + return s +} + // Contains the output of PutScalingPolicy. type PutScalingPolicyOutput struct { _ struct{} `type:"structure"` @@ -7876,6 +9521,12 @@ func (s PutScalingPolicyOutput) GoString() string { return s.String() } +// SetPolicyARN sets the PolicyARN field's value. +func (s *PutScalingPolicyOutput) SetPolicyARN(v string) *PutScalingPolicyOutput { + s.PolicyARN = &v + return s +} + // Contains the parameters for PutScheduledUpdateGroupAction. type PutScheduledUpdateGroupActionInput struct { _ struct{} `type:"structure"` @@ -7888,7 +9539,8 @@ type PutScheduledUpdateGroupActionInput struct { // The number of EC2 instances that should be running in the group. DesiredCapacity *int64 `type:"integer"` - // The time for this action to end. + // The time for the recurring schedule to end. Auto Scaling does not perform + // the action after this time. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The maximum size for the Auto Scaling group. @@ -7897,12 +9549,8 @@ type PutScheduledUpdateGroupActionInput struct { // The minimum size for the Auto Scaling group. MinSize *int64 `type:"integer"` - // The time when recurring future actions will start. Start time is specified - // by the user following the Unix cron syntax format. For more information, - // see Cron (http://en.wikipedia.org/wiki/Cron) in Wikipedia. - // - // When StartTime and EndTime are specified with Recurrence, they form the - // boundaries of when the recurring action will start and stop. + // The recurring schedule for this action, in Unix cron syntax format. For more + // information, see Cron (http://en.wikipedia.org/wiki/Cron) in Wikipedia. Recurrence *string `min:"1" type:"string"` // The name of this scaling action. @@ -7913,11 +9561,11 @@ type PutScheduledUpdateGroupActionInput struct { // The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT // only (for example, 2014-06-01T00:00:00Z). // - // If you try to schedule your action in the past, Auto Scaling returns an - // error message. + // If you specify Recurrence and StartTime, Auto Scaling performs the action + // at this time, and then performs the action based on the specified recurrence. // - // When StartTime and EndTime are specified with Recurrence, they form the - // boundaries of when the recurring action starts and stops. + // If you try to schedule your action in the past, Auto Scaling returns an error + // message. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // This parameter is deprecated. @@ -7959,6 +9607,60 @@ func (s *PutScheduledUpdateGroupActionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *PutScheduledUpdateGroupActionInput) SetAutoScalingGroupName(v string) *PutScheduledUpdateGroupActionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *PutScheduledUpdateGroupActionInput) SetDesiredCapacity(v int64) *PutScheduledUpdateGroupActionInput { + s.DesiredCapacity = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *PutScheduledUpdateGroupActionInput) SetEndTime(v time.Time) *PutScheduledUpdateGroupActionInput { + s.EndTime = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *PutScheduledUpdateGroupActionInput) SetMaxSize(v int64) *PutScheduledUpdateGroupActionInput { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *PutScheduledUpdateGroupActionInput) SetMinSize(v int64) *PutScheduledUpdateGroupActionInput { + s.MinSize = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *PutScheduledUpdateGroupActionInput) SetRecurrence(v string) *PutScheduledUpdateGroupActionInput { + s.Recurrence = &v + return s +} + +// SetScheduledActionName sets the ScheduledActionName field's value. +func (s *PutScheduledUpdateGroupActionInput) SetScheduledActionName(v string) *PutScheduledUpdateGroupActionInput { + s.ScheduledActionName = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *PutScheduledUpdateGroupActionInput) SetStartTime(v time.Time) *PutScheduledUpdateGroupActionInput { + s.StartTime = &v + return s +} + +// SetTime sets the Time field's value. +func (s *PutScheduledUpdateGroupActionInput) SetTime(v time.Time) *PutScheduledUpdateGroupActionInput { + s.Time = &v + return s +} + type PutScheduledUpdateGroupActionOutput struct { _ struct{} `type:"structure"` } @@ -8034,6 +9736,30 @@ func (s *RecordLifecycleActionHeartbeatInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *RecordLifecycleActionHeartbeatInput) SetAutoScalingGroupName(v string) *RecordLifecycleActionHeartbeatInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *RecordLifecycleActionHeartbeatInput) SetInstanceId(v string) *RecordLifecycleActionHeartbeatInput { + s.InstanceId = &v + return s +} + +// SetLifecycleActionToken sets the LifecycleActionToken field's value. +func (s *RecordLifecycleActionHeartbeatInput) SetLifecycleActionToken(v string) *RecordLifecycleActionHeartbeatInput { + s.LifecycleActionToken = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *RecordLifecycleActionHeartbeatInput) SetLifecycleHookName(v string) *RecordLifecycleActionHeartbeatInput { + s.LifecycleHookName = &v + return s +} + // Contains the output of RecordLifecycleActionHeartBeat. type RecordLifecycleActionHeartbeatOutput struct { _ struct{} `type:"structure"` @@ -8127,6 +9853,84 @@ func (s ScalingPolicy) GoString() string { return s.String() } +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *ScalingPolicy) SetAdjustmentType(v string) *ScalingPolicy { + s.AdjustmentType = &v + return s +} + +// SetAlarms sets the Alarms field's value. +func (s *ScalingPolicy) SetAlarms(v []*Alarm) *ScalingPolicy { + s.Alarms = v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ScalingPolicy) SetAutoScalingGroupName(v string) *ScalingPolicy { + s.AutoScalingGroupName = &v + return s +} + +// SetCooldown sets the Cooldown field's value. +func (s *ScalingPolicy) SetCooldown(v int64) *ScalingPolicy { + s.Cooldown = &v + return s +} + +// SetEstimatedInstanceWarmup sets the EstimatedInstanceWarmup field's value. +func (s *ScalingPolicy) SetEstimatedInstanceWarmup(v int64) *ScalingPolicy { + s.EstimatedInstanceWarmup = &v + return s +} + +// SetMetricAggregationType sets the MetricAggregationType field's value. +func (s *ScalingPolicy) SetMetricAggregationType(v string) *ScalingPolicy { + s.MetricAggregationType = &v + return s +} + +// SetMinAdjustmentMagnitude sets the MinAdjustmentMagnitude field's value. +func (s *ScalingPolicy) SetMinAdjustmentMagnitude(v int64) *ScalingPolicy { + s.MinAdjustmentMagnitude = &v + return s +} + +// SetMinAdjustmentStep sets the MinAdjustmentStep field's value. +func (s *ScalingPolicy) SetMinAdjustmentStep(v int64) *ScalingPolicy { + s.MinAdjustmentStep = &v + return s +} + +// SetPolicyARN sets the PolicyARN field's value. +func (s *ScalingPolicy) SetPolicyARN(v string) *ScalingPolicy { + s.PolicyARN = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ScalingPolicy) SetPolicyName(v string) *ScalingPolicy { + s.PolicyName = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *ScalingPolicy) SetPolicyType(v string) *ScalingPolicy { + s.PolicyType = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *ScalingPolicy) SetScalingAdjustment(v int64) *ScalingPolicy { + s.ScalingAdjustment = &v + return s +} + +// SetStepAdjustments sets the StepAdjustments field's value. +func (s *ScalingPolicy) SetStepAdjustments(v []*StepAdjustment) *ScalingPolicy { + s.StepAdjustments = v + return s +} + // Contains the parameters for SuspendProcesses and ResumeProcesses. type ScalingProcessQuery struct { _ struct{} `type:"structure"` @@ -8139,21 +9943,21 @@ type ScalingProcessQuery struct { // One or more of the following processes. If you omit this parameter, all processes // are specified. // - // Launch + // * Launch // - // Terminate + // * Terminate // - // HealthCheck + // * HealthCheck // - // ReplaceUnhealthy + // * ReplaceUnhealthy // - // AZRebalance + // * AZRebalance // - // AlarmNotification + // * AlarmNotification // - // ScheduledActions + // * ScheduledActions // - // AddToLoadBalancer + // * AddToLoadBalancer ScalingProcesses []*string `type:"list"` } @@ -8183,6 +9987,18 @@ func (s *ScalingProcessQuery) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ScalingProcessQuery) SetAutoScalingGroupName(v string) *ScalingProcessQuery { + s.AutoScalingGroupName = &v + return s +} + +// SetScalingProcesses sets the ScalingProcesses field's value. +func (s *ScalingProcessQuery) SetScalingProcesses(v []*string) *ScalingProcessQuery { + s.ScalingProcesses = v + return s +} + // Describes a scheduled update to an Auto Scaling group. type ScheduledUpdateGroupAction struct { _ struct{} `type:"structure"` @@ -8215,8 +10031,8 @@ type ScheduledUpdateGroupAction struct { // The date and time that the action is scheduled to begin. This date and time // can be up to one month in the future. // - // When StartTime and EndTime are specified with Recurrence, they form the - // boundaries of when the recurring action will start and stop. + // When StartTime and EndTime are specified with Recurrence, they form the boundaries + // of when the recurring action will start and stop. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // This parameter is deprecated. @@ -8233,6 +10049,66 @@ func (s ScheduledUpdateGroupAction) GoString() string { return s.String() } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ScheduledUpdateGroupAction) SetAutoScalingGroupName(v string) *ScheduledUpdateGroupAction { + s.AutoScalingGroupName = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *ScheduledUpdateGroupAction) SetDesiredCapacity(v int64) *ScheduledUpdateGroupAction { + s.DesiredCapacity = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *ScheduledUpdateGroupAction) SetEndTime(v time.Time) *ScheduledUpdateGroupAction { + s.EndTime = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *ScheduledUpdateGroupAction) SetMaxSize(v int64) *ScheduledUpdateGroupAction { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *ScheduledUpdateGroupAction) SetMinSize(v int64) *ScheduledUpdateGroupAction { + s.MinSize = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *ScheduledUpdateGroupAction) SetRecurrence(v string) *ScheduledUpdateGroupAction { + s.Recurrence = &v + return s +} + +// SetScheduledActionARN sets the ScheduledActionARN field's value. +func (s *ScheduledUpdateGroupAction) SetScheduledActionARN(v string) *ScheduledUpdateGroupAction { + s.ScheduledActionARN = &v + return s +} + +// SetScheduledActionName sets the ScheduledActionName field's value. +func (s *ScheduledUpdateGroupAction) SetScheduledActionName(v string) *ScheduledUpdateGroupAction { + s.ScheduledActionName = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ScheduledUpdateGroupAction) SetStartTime(v time.Time) *ScheduledUpdateGroupAction { + s.StartTime = &v + return s +} + +// SetTime sets the Time field's value. +func (s *ScheduledUpdateGroupAction) SetTime(v time.Time) *ScheduledUpdateGroupAction { + s.Time = &v + return s +} + // Contains the parameters for SetDesiredCapacity. type SetDesiredCapacityInput struct { _ struct{} `type:"structure"` @@ -8283,6 +10159,24 @@ func (s *SetDesiredCapacityInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *SetDesiredCapacityInput) SetAutoScalingGroupName(v string) *SetDesiredCapacityInput { + s.AutoScalingGroupName = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *SetDesiredCapacityInput) SetDesiredCapacity(v int64) *SetDesiredCapacityInput { + s.DesiredCapacity = &v + return s +} + +// SetHonorCooldown sets the HonorCooldown field's value. +func (s *SetDesiredCapacityInput) SetHonorCooldown(v bool) *SetDesiredCapacityInput { + s.HonorCooldown = &v + return s +} + type SetDesiredCapacityOutput struct { _ struct{} `type:"structure"` } @@ -8355,6 +10249,24 @@ func (s *SetInstanceHealthInput) Validate() error { return nil } +// SetHealthStatus sets the HealthStatus field's value. +func (s *SetInstanceHealthInput) SetHealthStatus(v string) *SetInstanceHealthInput { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SetInstanceHealthInput) SetInstanceId(v string) *SetInstanceHealthInput { + s.InstanceId = &v + return s +} + +// SetShouldRespectGracePeriod sets the ShouldRespectGracePeriod field's value. +func (s *SetInstanceHealthInput) SetShouldRespectGracePeriod(v bool) *SetInstanceHealthInput { + s.ShouldRespectGracePeriod = &v + return s +} + type SetInstanceHealthOutput struct { _ struct{} `type:"structure"` } @@ -8422,6 +10334,24 @@ func (s *SetInstanceProtectionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *SetInstanceProtectionInput) SetAutoScalingGroupName(v string) *SetInstanceProtectionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *SetInstanceProtectionInput) SetInstanceIds(v []*string) *SetInstanceProtectionInput { + s.InstanceIds = v + return s +} + +// SetProtectedFromScaleIn sets the ProtectedFromScaleIn field's value. +func (s *SetInstanceProtectionInput) SetProtectedFromScaleIn(v bool) *SetInstanceProtectionInput { + s.ProtectedFromScaleIn = &v + return s +} + // Contains the output of SetInstanceProtection. type SetInstanceProtectionOutput struct { _ struct{} `type:"structure"` @@ -8444,27 +10374,27 @@ func (s SetInstanceProtectionOutput) GoString() string { // For the following examples, suppose that you have an alarm with a breach // threshold of 50: // -// If you want the adjustment to be triggered when the metric is greater -// than or equal to 50 and less than 60, specify a lower bound of 0 and an upper -// bound of 10. +// * If you want the adjustment to be triggered when the metric is greater +// than or equal to 50 and less than 60, specify a lower bound of 0 and an +// upper bound of 10. // -// If you want the adjustment to be triggered when the metric is greater -// than 40 and less than or equal to 50, specify a lower bound of -10 and an -// upper bound of 0. +// * If you want the adjustment to be triggered when the metric is greater +// than 40 and less than or equal to 50, specify a lower bound of -10 and +// an upper bound of 0. // -// There are a few rules for the step adjustments for your step policy: +// There are a few rules for the step adjustments for your step policy: // -// The ranges of your step adjustments can't overlap or have a gap. +// * The ranges of your step adjustments can't overlap or have a gap. // -// At most one step adjustment can have a null lower bound. If one step adjustment -// has a negative lower bound, then there must be a step adjustment with a null -// lower bound. +// * At most one step adjustment can have a null lower bound. If one step +// adjustment has a negative lower bound, then there must be a step adjustment +// with a null lower bound. // -// At most one step adjustment can have a null upper bound. If one step adjustment -// has a positive upper bound, then there must be a step adjustment with a null -// upper bound. +// * At most one step adjustment can have a null upper bound. If one step +// adjustment has a positive upper bound, then there must be a step adjustment +// with a null upper bound. // -// The upper and lower bound can't be null in the same step adjustment. +// * The upper and lower bound can't be null in the same step adjustment. type StepAdjustment struct { _ struct{} `type:"structure"` @@ -8516,6 +10446,24 @@ func (s *StepAdjustment) Validate() error { return nil } +// SetMetricIntervalLowerBound sets the MetricIntervalLowerBound field's value. +func (s *StepAdjustment) SetMetricIntervalLowerBound(v float64) *StepAdjustment { + s.MetricIntervalLowerBound = &v + return s +} + +// SetMetricIntervalUpperBound sets the MetricIntervalUpperBound field's value. +func (s *StepAdjustment) SetMetricIntervalUpperBound(v float64) *StepAdjustment { + s.MetricIntervalUpperBound = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *StepAdjustment) SetScalingAdjustment(v int64) *StepAdjustment { + s.ScalingAdjustment = &v + return s +} + type SuspendProcessesOutput struct { _ struct{} `type:"structure"` } @@ -8552,6 +10500,18 @@ func (s SuspendedProcess) GoString() string { return s.String() } +// SetProcessName sets the ProcessName field's value. +func (s *SuspendedProcess) SetProcessName(v string) *SuspendedProcess { + s.ProcessName = &v + return s +} + +// SetSuspensionReason sets the SuspensionReason field's value. +func (s *SuspendedProcess) SetSuspensionReason(v string) *SuspendedProcess { + s.SuspensionReason = &v + return s +} + // Describes a tag for an Auto Scaling group. type Tag struct { _ struct{} `type:"structure"` @@ -8601,6 +10561,36 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetPropagateAtLaunch sets the PropagateAtLaunch field's value. +func (s *Tag) SetPropagateAtLaunch(v bool) *Tag { + s.PropagateAtLaunch = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *Tag) SetResourceId(v string) *Tag { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Tag) SetResourceType(v string) *Tag { + s.ResourceType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Describes a tag for an Auto Scaling group. type TagDescription struct { _ struct{} `type:"structure"` @@ -8632,6 +10622,36 @@ func (s TagDescription) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *TagDescription) SetKey(v string) *TagDescription { + s.Key = &v + return s +} + +// SetPropagateAtLaunch sets the PropagateAtLaunch field's value. +func (s *TagDescription) SetPropagateAtLaunch(v bool) *TagDescription { + s.PropagateAtLaunch = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *TagDescription) SetResourceId(v string) *TagDescription { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TagDescription) SetResourceType(v string) *TagDescription { + s.ResourceType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TagDescription) SetValue(v string) *TagDescription { + s.Value = &v + return s +} + // Contains the parameters for TerminateInstanceInAutoScalingGroup. type TerminateInstanceInAutoScalingGroupInput struct { _ struct{} `type:"structure"` @@ -8677,6 +10697,18 @@ func (s *TerminateInstanceInAutoScalingGroupInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *TerminateInstanceInAutoScalingGroupInput) SetInstanceId(v string) *TerminateInstanceInAutoScalingGroupInput { + s.InstanceId = &v + return s +} + +// SetShouldDecrementDesiredCapacity sets the ShouldDecrementDesiredCapacity field's value. +func (s *TerminateInstanceInAutoScalingGroupInput) SetShouldDecrementDesiredCapacity(v bool) *TerminateInstanceInAutoScalingGroupInput { + s.ShouldDecrementDesiredCapacity = &v + return s +} + // Contains the output of TerminateInstancesInAutoScalingGroup. type TerminateInstanceInAutoScalingGroupOutput struct { _ struct{} `type:"structure"` @@ -8695,6 +10727,12 @@ func (s TerminateInstanceInAutoScalingGroupOutput) GoString() string { return s.String() } +// SetActivity sets the Activity field's value. +func (s *TerminateInstanceInAutoScalingGroupOutput) SetActivity(v *Activity) *TerminateInstanceInAutoScalingGroupOutput { + s.Activity = v + return s +} + // Contains the parameters for UpdateAutoScalingGroup. type UpdateAutoScalingGroupInput struct { _ struct{} `type:"structure"` @@ -8710,7 +10748,7 @@ type UpdateAutoScalingGroupInput struct { // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. The default is 300. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html) // in the Auto Scaling User Guide. DefaultCooldown *int64 `type:"integer"` @@ -8723,7 +10761,7 @@ type UpdateAutoScalingGroupInput struct { // health status of an EC2 instance that has come into service. The default // is 0. // - // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) + // For more information, see Health Checks (http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html) // in the Auto Scaling User Guide. HealthCheckGracePeriod *int64 `type:"integer"` @@ -8753,7 +10791,7 @@ type UpdateAutoScalingGroupInput struct { // that they are listed. // // For more information, see Controlling Which Instances Auto Scaling Terminates - // During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html) + // During Scale In (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-termination.html) // in the Auto Scaling User Guide. TerminationPolicies []*string `type:"list"` @@ -8763,7 +10801,7 @@ type UpdateAutoScalingGroupInput struct { // When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the // subnets' Availability Zones match the values you specify for AvailabilityZones. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/autoscaling/latest/userguide/asg-in-vpc.html) // in the Auto Scaling User Guide. VPCZoneIdentifier *string `min:"1" type:"string"` } @@ -8809,6 +10847,84 @@ func (s *UpdateAutoScalingGroupInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *UpdateAutoScalingGroupInput) SetAutoScalingGroupName(v string) *UpdateAutoScalingGroupInput { + s.AutoScalingGroupName = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *UpdateAutoScalingGroupInput) SetAvailabilityZones(v []*string) *UpdateAutoScalingGroupInput { + s.AvailabilityZones = v + return s +} + +// SetDefaultCooldown sets the DefaultCooldown field's value. +func (s *UpdateAutoScalingGroupInput) SetDefaultCooldown(v int64) *UpdateAutoScalingGroupInput { + s.DefaultCooldown = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *UpdateAutoScalingGroupInput) SetDesiredCapacity(v int64) *UpdateAutoScalingGroupInput { + s.DesiredCapacity = &v + return s +} + +// SetHealthCheckGracePeriod sets the HealthCheckGracePeriod field's value. +func (s *UpdateAutoScalingGroupInput) SetHealthCheckGracePeriod(v int64) *UpdateAutoScalingGroupInput { + s.HealthCheckGracePeriod = &v + return s +} + +// SetHealthCheckType sets the HealthCheckType field's value. +func (s *UpdateAutoScalingGroupInput) SetHealthCheckType(v string) *UpdateAutoScalingGroupInput { + s.HealthCheckType = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *UpdateAutoScalingGroupInput) SetLaunchConfigurationName(v string) *UpdateAutoScalingGroupInput { + s.LaunchConfigurationName = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *UpdateAutoScalingGroupInput) SetMaxSize(v int64) *UpdateAutoScalingGroupInput { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *UpdateAutoScalingGroupInput) SetMinSize(v int64) *UpdateAutoScalingGroupInput { + s.MinSize = &v + return s +} + +// SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. +func (s *UpdateAutoScalingGroupInput) SetNewInstancesProtectedFromScaleIn(v bool) *UpdateAutoScalingGroupInput { + s.NewInstancesProtectedFromScaleIn = &v + return s +} + +// SetPlacementGroup sets the PlacementGroup field's value. +func (s *UpdateAutoScalingGroupInput) SetPlacementGroup(v string) *UpdateAutoScalingGroupInput { + s.PlacementGroup = &v + return s +} + +// SetTerminationPolicies sets the TerminationPolicies field's value. +func (s *UpdateAutoScalingGroupInput) SetTerminationPolicies(v []*string) *UpdateAutoScalingGroupInput { + s.TerminationPolicies = v + return s +} + +// SetVPCZoneIdentifier sets the VPCZoneIdentifier field's value. +func (s *UpdateAutoScalingGroupInput) SetVPCZoneIdentifier(v string) *UpdateAutoScalingGroupInput { + s.VPCZoneIdentifier = &v + return s +} + type UpdateAutoScalingGroupOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go index 711d6d62f..2022f2496 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go @@ -62,7 +62,7 @@ func (c *CloudFormation) CancelUpdateStackRequest(input *CancelUpdateStackInput) // Cancels an update on the specified stack. If the call completes successfully, // the stack rolls back the update and reverts to the previous stack configuration. // -// You can cancel only stacks that are in the UPDATE_IN_PROGRESS state. +// You can cancel only stacks that are in the UPDATE_IN_PROGRESS state. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -193,10 +193,10 @@ func (c *CloudFormation) CreateChangeSetRequest(input *CreateChangeSetInput) (re // CreateChangeSet API operation for AWS CloudFormation. // // Creates a list of changes for a stack. AWS CloudFormation generates the change -// set by comparing the stack's information with the information that you submit. -// A change set can help you understand which resources AWS CloudFormation will -// change and how it will change them before you update your stack. Change sets -// allow you to check before you make a change so that you don't delete or replace +// set by comparing the template's information with the information that you +// submit. A change set can help you understand which resources AWS CloudFormation +// will change, and how it will change them, before you update your stack. Change +// sets allow you to check before making a change to avoid deleting or replacing // critical resources. // // AWS CloudFormation doesn't make any changes to the stack when you create @@ -620,8 +620,8 @@ func (c *CloudFormation) DescribeStackEventsRequest(input *DescribeStackEventsIn // order. For more information about a stack's event history, go to Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html) // in the AWS CloudFormation User Guide. // -// You can list events for stacks that have failed to create or have been -// deleted by specifying the unique stack identifier (stack ID). +// You can list events for stacks that have failed to create or have been deleted +// by specifying the unique stack identifier (stack ID). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -772,18 +772,18 @@ func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResou // returned. If PhysicalResourceId is specified, the associated resources of // the stack that the resource belongs to are returned. // -// Only the first 100 resources will be returned. If your stack has more resources +// Only the first 100 resources will be returned. If your stack has more resources // than this, you should use ListStackResources instead. // -// For deleted stacks, DescribeStackResources returns resource information -// for up to 90 days after the stack has been deleted. +// For deleted stacks, DescribeStackResources returns resource information for +// up to 90 days after the stack has been deleted. // // You must specify either StackName or PhysicalResourceId, but not both. In // addition, you can specify LogicalResourceId to filter the returned result. // For more information about resources, the LogicalResourceId and PhysicalResourceId, // go to the AWS CloudFormation User Guide (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/). // -// A ValidationError is returned if you specify both StackName and PhysicalResourceId +// A ValidationError is returned if you specify both StackName and PhysicalResourceId // in the same request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -852,7 +852,7 @@ func (c *CloudFormation) DescribeStacksRequest(input *DescribeStacksInput) (req // Returns the description for the specified stack; if no stack name was specified, // then it returns the description for all the stacks created. // -// If the stack does not exist, an AmazonCloudFormationException is returned. +// If the stack does not exist, an AmazonCloudFormationException is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1144,7 +1144,7 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque // For deleted stacks, GetTemplate returns the template for up to 90 days after // the stack has been deleted. // -// If the template does not exist, a ValidationError is returned. +// If the template does not exist, a ValidationError is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1210,9 +1210,9 @@ func (c *CloudFormation) GetTemplateSummaryRequest(input *GetTemplateSummaryInpu // You can use the GetTemplateSummary action when you submit a template, or // you can get template information for a running or deleted stack. // -// For deleted stacks, GetTemplateSummary returns the template information -// for up to 90 days after the stack has been deleted. If the template does -// not exist, a ValidationError is returned. +// For deleted stacks, GetTemplateSummary returns the template information for +// up to 90 days after the stack has been deleted. If the template does not +// exist, a ValidationError is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1287,6 +1287,71 @@ func (c *CloudFormation) ListChangeSets(input *ListChangeSetsInput) (*ListChange return out, err } +const opListExports = "ListExports" + +// ListExportsRequest generates a "aws/request.Request" representing the +// client's request for the ListExports operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListExports for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListExports method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListExportsRequest method. +// req, resp := client.ListExportsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *CloudFormation) ListExportsRequest(input *ListExportsInput) (req *request.Request, output *ListExportsOutput) { + op := &request.Operation{ + Name: opListExports, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListExportsInput{} + } + + req = c.newRequest(op, input, output) + output = &ListExportsOutput{} + req.Data = output + return +} + +// ListExports API operation for AWS CloudFormation. +// +// Lists all exported output values in the account and region in which you call +// this action. Use this action to see the exported output values that you can +// import into other stacks. To import values, use the Fn::ImportValue (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html) +// function. +// +// For more information, see AWS CloudFormation Export Stack Output Values +// (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ListExports for usage and error information. +func (c *CloudFormation) ListExports(input *ListExportsInput) (*ListExportsOutput, error) { + req, out := c.ListExportsRequest(input) + err := req.Send() + return out, err +} + const opListStackResources = "ListStackResources" // ListStackResourcesRequest generates a "aws/request.Request" representing the @@ -1340,8 +1405,8 @@ func (c *CloudFormation) ListStackResourcesRequest(input *ListStackResourcesInpu // // Returns descriptions of all resources of the specified stack. // -// For deleted stacks, ListStackResources returns resource information for -// up to 90 days after the stack has been deleted. +// For deleted stacks, ListStackResources returns resource information for up +// to 90 days after the stack has been deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1757,6 +1822,18 @@ func (s AccountLimit) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AccountLimit) SetName(v string) *AccountLimit { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AccountLimit) SetValue(v int64) *AccountLimit { + s.Value = &v + return s +} + // The input for the CancelUpdateStack action. type CancelUpdateStackInput struct { _ struct{} `type:"structure"` @@ -1790,6 +1867,12 @@ func (s *CancelUpdateStackInput) Validate() error { return nil } +// SetStackName sets the StackName field's value. +func (s *CancelUpdateStackInput) SetStackName(v string) *CancelUpdateStackInput { + s.StackName = &v + return s +} + type CancelUpdateStackOutput struct { _ struct{} `type:"structure"` } @@ -1828,6 +1911,18 @@ func (s Change) GoString() string { return s.String() } +// SetResourceChange sets the ResourceChange field's value. +func (s *Change) SetResourceChange(v *ResourceChange) *Change { + s.ResourceChange = v + return s +} + +// SetType sets the Type field's value. +func (s *Change) SetType(v string) *Change { + s.Type = &v + return s +} + // The ChangeSetSummary structure describes a change set, its status, and the // stack with which it's associated. type ChangeSetSummary struct { @@ -1877,10 +1972,92 @@ func (s ChangeSetSummary) GoString() string { return s.String() } +// SetChangeSetId sets the ChangeSetId field's value. +func (s *ChangeSetSummary) SetChangeSetId(v string) *ChangeSetSummary { + s.ChangeSetId = &v + return s +} + +// SetChangeSetName sets the ChangeSetName field's value. +func (s *ChangeSetSummary) SetChangeSetName(v string) *ChangeSetSummary { + s.ChangeSetName = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ChangeSetSummary) SetCreationTime(v time.Time) *ChangeSetSummary { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ChangeSetSummary) SetDescription(v string) *ChangeSetSummary { + s.Description = &v + return s +} + +// SetExecutionStatus sets the ExecutionStatus field's value. +func (s *ChangeSetSummary) SetExecutionStatus(v string) *ChangeSetSummary { + s.ExecutionStatus = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *ChangeSetSummary) SetStackId(v string) *ChangeSetSummary { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ChangeSetSummary) SetStackName(v string) *ChangeSetSummary { + s.StackName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ChangeSetSummary) SetStatus(v string) *ChangeSetSummary { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *ChangeSetSummary) SetStatusReason(v string) *ChangeSetSummary { + s.StatusReason = &v + return s +} + // The input for the ContinueUpdateRollback action. type ContinueUpdateRollbackInput struct { _ struct{} `type:"structure"` + // A list of the logical IDs of the resources that AWS CloudFormation skips + // during the continue update rollback operation. You can specify only resources + // that are in the UPDATE_FAILED state because a rollback failed. You can't + // specify resources that are in the UPDATE_FAILED state for other reasons, + // for example, because an update was canceled. To check why a resource update + // failed, use the DescribeStackResources action, and view the resource status + // reason. + // + // Specify this property to skip rolling back resources that AWS CloudFormation + // can't successfully roll back. We recommend that you troubleshoot (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) + // resources before skipping them. AWS CloudFormation sets the status of the + // specified resources to UPDATE_COMPLETE and continues to roll back the stack. + // After the rollback is complete, the state of the skipped resources will be + // inconsistent with the state of the resources in the stack template. Before + // performing another stack update, you must update the stack or resources to + // be consistent with each other. If you don't, subsequent stack updates might + // fail, and the stack will become unrecoverable. + // + // Specify the minimum number of resources required to successfully roll back + // your stack. For example, a failed resource update might cause dependent resources + // to fail. In this case, it might not be necessary to skip the dependent resources. + // + // To specify resources in a nested stack, use the following format: NestedStackName.ResourceLogicalID. + // You can specify a nested stack resource (the logical ID of an AWS::CloudFormation::Stack + // resource) only if it's in one of the following states: DELETE_IN_PROGRESS, + // DELETE_COMPLETE, or DELETE_FAILED. + ResourcesToSkip []*string `type:"list"` + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation // uses the role's credentials to make calls on your behalf. AWS CloudFormation @@ -1889,14 +2066,19 @@ type ContinueUpdateRollbackInput struct { // role even if the users don't have permission to pass it. Ensure that the // role grants least privilege. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name or the unique ID of the stack that you want to continue rolling // back. // + // Don't specify the name of a nested stack (a stack that was created by using + // the AWS::CloudFormation::Stack resource). Instead, use this operation on + // the parent stack (the stack that contains the AWS::CloudFormation::Stack + // resource). + // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` } @@ -1930,6 +2112,24 @@ func (s *ContinueUpdateRollbackInput) Validate() error { return nil } +// SetResourcesToSkip sets the ResourcesToSkip field's value. +func (s *ContinueUpdateRollbackInput) SetResourcesToSkip(v []*string) *ContinueUpdateRollbackInput { + s.ResourcesToSkip = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ContinueUpdateRollbackInput) SetRoleARN(v string) *ContinueUpdateRollbackInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ContinueUpdateRollbackInput) SetStackName(v string) *ContinueUpdateRollbackInput { + s.StackName = &v + return s +} + // The output for a ContinueUpdateRollback action. type ContinueUpdateRollbackOutput struct { _ struct{} `type:"structure"` @@ -1985,6 +2185,20 @@ type CreateChangeSetInput struct { // ChangeSetName is a required field ChangeSetName *string `min:"1" type:"string" required:"true"` + // The type of change set operation. + // + // Valid values are CREATE and UPDATE. The default value is UPDATE. + // + // * CREATE - Specify to use the change set to create a new stack. While + // AWS CloudFormation creates the stack, the stack has the REVIEW_IN_PROGRESS + // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995) + // status and an expected StackId, but no template or resources. Except for + // its StackId, the stack is completely empty until you execute the change + // set. You can apply multiple change sets to a stack. + // + // * UPDATE - Specify to create a change set for an existing stack. + ChangeSetType *string `type:"string" enum:"ChangeSetType"` + // A unique identifier for this CreateChangeSet request. Specify this token // if you plan to retry requests so that AWS CloudFormation knows that you're // not attempting to create another change set with the same name. You might @@ -2020,14 +2234,14 @@ type CreateChangeSetInput struct { // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes when executing the change set. AWS CloudFormation // uses the role's credentials to make calls on your behalf. AWS CloudFormation - // always uses this role for all future operations on the stack. As long as - // users have permission to operate on the stack, AWS CloudFormation uses this - // role even if the users don't have permission to pass it. Ensure that the - // role grants least privilege. + // uses this role for all future operations on the stack. As long as users have + // permission to operate on the stack, AWS CloudFormation uses this role even + // if the users don't have permission to pass it. Ensure that the role grants + // least privilege. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name or the unique ID of the stack for which you are creating a change @@ -2110,12 +2324,99 @@ func (s *CreateChangeSetInput) Validate() error { return nil } +// SetCapabilities sets the Capabilities field's value. +func (s *CreateChangeSetInput) SetCapabilities(v []*string) *CreateChangeSetInput { + s.Capabilities = v + return s +} + +// SetChangeSetName sets the ChangeSetName field's value. +func (s *CreateChangeSetInput) SetChangeSetName(v string) *CreateChangeSetInput { + s.ChangeSetName = &v + return s +} + +// SetChangeSetType sets the ChangeSetType field's value. +func (s *CreateChangeSetInput) SetChangeSetType(v string) *CreateChangeSetInput { + s.ChangeSetType = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateChangeSetInput) SetClientToken(v string) *CreateChangeSetInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateChangeSetInput) SetDescription(v string) *CreateChangeSetInput { + s.Description = &v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *CreateChangeSetInput) SetNotificationARNs(v []*string) *CreateChangeSetInput { + s.NotificationARNs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateChangeSetInput) SetParameters(v []*Parameter) *CreateChangeSetInput { + s.Parameters = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *CreateChangeSetInput) SetResourceTypes(v []*string) *CreateChangeSetInput { + s.ResourceTypes = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CreateChangeSetInput) SetRoleARN(v string) *CreateChangeSetInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *CreateChangeSetInput) SetStackName(v string) *CreateChangeSetInput { + s.StackName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateChangeSetInput) SetTags(v []*Tag) *CreateChangeSetInput { + s.Tags = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *CreateChangeSetInput) SetTemplateBody(v string) *CreateChangeSetInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *CreateChangeSetInput) SetTemplateURL(v string) *CreateChangeSetInput { + s.TemplateURL = &v + return s +} + +// SetUsePreviousTemplate sets the UsePreviousTemplate field's value. +func (s *CreateChangeSetInput) SetUsePreviousTemplate(v bool) *CreateChangeSetInput { + s.UsePreviousTemplate = &v + return s +} + // The output for the CreateChangeSet action. type CreateChangeSetOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the change set. Id *string `min:"1" type:"string"` + + // The unique ID of the stack. + StackId *string `type:"string"` } // String returns the string representation @@ -2128,6 +2429,18 @@ func (s CreateChangeSetOutput) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *CreateChangeSetOutput) SetId(v string) *CreateChangeSetOutput { + s.Id = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateChangeSetOutput) SetStackId(v string) *CreateChangeSetOutput { + s.StackId = &v + return s +} + // The input for CreateStack action. type CreateStackInput struct { _ struct{} `type:"structure"` @@ -2185,9 +2498,9 @@ type CreateStackInput struct { // create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. // Use the following syntax to describe template resource types: AWS::* (for // all AWS resource), Custom::* (for all custom resources), Custom::logical_ID - // (for a specific custom resource), AWS::service_name::* (for all resources + // (for a specific custom resource), AWS::service_name::* (for all resources // of a particular AWS service), and AWS::service_name::resource_logical_ID - // (for a specific AWS resource). + // (for a specific AWS resource). // // If the list of resource types doesn't include a resource that you're creating, // the stack creation fails. By default, AWS CloudFormation grants permissions @@ -2205,16 +2518,16 @@ type CreateStackInput struct { // role even if the users don't have permission to pass it. Ensure that the // role grants least privilege. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name that is associated with the stack. The name must be unique in the // region in which you are creating the stack. // - // A stack name can contain only alphanumeric characters (case sensitive) - // and hyphens. It must start with an alphabetic character and cannot be longer + // A stack name can contain only alphanumeric characters (case sensitive) and + // hyphens. It must start with an alphabetic character and cannot be longer // than 128 characters. // // StackName is a required field @@ -2302,6 +2615,90 @@ func (s *CreateStackInput) Validate() error { return nil } +// SetCapabilities sets the Capabilities field's value. +func (s *CreateStackInput) SetCapabilities(v []*string) *CreateStackInput { + s.Capabilities = v + return s +} + +// SetDisableRollback sets the DisableRollback field's value. +func (s *CreateStackInput) SetDisableRollback(v bool) *CreateStackInput { + s.DisableRollback = &v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *CreateStackInput) SetNotificationARNs(v []*string) *CreateStackInput { + s.NotificationARNs = v + return s +} + +// SetOnFailure sets the OnFailure field's value. +func (s *CreateStackInput) SetOnFailure(v string) *CreateStackInput { + s.OnFailure = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateStackInput) SetParameters(v []*Parameter) *CreateStackInput { + s.Parameters = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *CreateStackInput) SetResourceTypes(v []*string) *CreateStackInput { + s.ResourceTypes = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CreateStackInput) SetRoleARN(v string) *CreateStackInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *CreateStackInput) SetStackName(v string) *CreateStackInput { + s.StackName = &v + return s +} + +// SetStackPolicyBody sets the StackPolicyBody field's value. +func (s *CreateStackInput) SetStackPolicyBody(v string) *CreateStackInput { + s.StackPolicyBody = &v + return s +} + +// SetStackPolicyURL sets the StackPolicyURL field's value. +func (s *CreateStackInput) SetStackPolicyURL(v string) *CreateStackInput { + s.StackPolicyURL = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateStackInput) SetTags(v []*Tag) *CreateStackInput { + s.Tags = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *CreateStackInput) SetTemplateBody(v string) *CreateStackInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *CreateStackInput) SetTemplateURL(v string) *CreateStackInput { + s.TemplateURL = &v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *CreateStackInput) SetTimeoutInMinutes(v int64) *CreateStackInput { + s.TimeoutInMinutes = &v + return s +} + // The output for a CreateStack action. type CreateStackOutput struct { _ struct{} `type:"structure"` @@ -2320,6 +2717,12 @@ func (s CreateStackOutput) GoString() string { return s.String() } +// SetStackId sets the StackId field's value. +func (s *CreateStackOutput) SetStackId(v string) *CreateStackOutput { + s.StackId = &v + return s +} + // The input for the DeleteChangeSet action. type DeleteChangeSetInput struct { _ struct{} `type:"structure"` @@ -2364,6 +2767,18 @@ func (s *DeleteChangeSetInput) Validate() error { return nil } +// SetChangeSetName sets the ChangeSetName field's value. +func (s *DeleteChangeSetInput) SetChangeSetName(v string) *DeleteChangeSetInput { + s.ChangeSetName = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DeleteChangeSetInput) SetStackName(v string) *DeleteChangeSetInput { + s.StackName = &v + return s +} + // The output for the DeleteChangeSet action. type DeleteChangeSetOutput struct { _ struct{} `type:"structure"` @@ -2395,9 +2810,9 @@ type DeleteStackInput struct { // role that AWS CloudFormation assumes to delete the stack. AWS CloudFormation // uses the role's credentials to make calls on your behalf. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name or the unique stack ID that is associated with the stack. @@ -2432,6 +2847,24 @@ func (s *DeleteStackInput) Validate() error { return nil } +// SetRetainResources sets the RetainResources field's value. +func (s *DeleteStackInput) SetRetainResources(v []*string) *DeleteStackInput { + s.RetainResources = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *DeleteStackInput) SetRoleARN(v string) *DeleteStackInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DeleteStackInput) SetStackName(v string) *DeleteStackInput { + s.StackName = &v + return s +} + type DeleteStackOutput struct { _ struct{} `type:"structure"` } @@ -2477,6 +2910,12 @@ func (s *DescribeAccountLimitsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *DescribeAccountLimitsInput) SetNextToken(v string) *DescribeAccountLimitsInput { + s.NextToken = &v + return s +} + // The output for the DescribeAccountLimits action. type DescribeAccountLimitsOutput struct { _ struct{} `type:"structure"` @@ -2500,6 +2939,18 @@ func (s DescribeAccountLimitsOutput) GoString() string { return s.String() } +// SetAccountLimits sets the AccountLimits field's value. +func (s *DescribeAccountLimitsOutput) SetAccountLimits(v []*AccountLimit) *DescribeAccountLimitsOutput { + s.AccountLimits = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAccountLimitsOutput) SetNextToken(v string) *DescribeAccountLimitsOutput { + s.NextToken = &v + return s +} + // The input for the DescribeChangeSet action. type DescribeChangeSetInput struct { _ struct{} `type:"structure"` @@ -2551,6 +3002,24 @@ func (s *DescribeChangeSetInput) Validate() error { return nil } +// SetChangeSetName sets the ChangeSetName field's value. +func (s *DescribeChangeSetInput) SetChangeSetName(v string) *DescribeChangeSetInput { + s.ChangeSetName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeChangeSetInput) SetNextToken(v string) *DescribeChangeSetInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeChangeSetInput) SetStackName(v string) *DescribeChangeSetInput { + s.StackName = &v + return s +} + // The output for the DescribeChangeSet action. type DescribeChangeSetOutput struct { _ struct{} `type:"structure"` @@ -2625,6 +3094,96 @@ func (s DescribeChangeSetOutput) GoString() string { return s.String() } +// SetCapabilities sets the Capabilities field's value. +func (s *DescribeChangeSetOutput) SetCapabilities(v []*string) *DescribeChangeSetOutput { + s.Capabilities = v + return s +} + +// SetChangeSetId sets the ChangeSetId field's value. +func (s *DescribeChangeSetOutput) SetChangeSetId(v string) *DescribeChangeSetOutput { + s.ChangeSetId = &v + return s +} + +// SetChangeSetName sets the ChangeSetName field's value. +func (s *DescribeChangeSetOutput) SetChangeSetName(v string) *DescribeChangeSetOutput { + s.ChangeSetName = &v + return s +} + +// SetChanges sets the Changes field's value. +func (s *DescribeChangeSetOutput) SetChanges(v []*Change) *DescribeChangeSetOutput { + s.Changes = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeChangeSetOutput) SetCreationTime(v time.Time) *DescribeChangeSetOutput { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeChangeSetOutput) SetDescription(v string) *DescribeChangeSetOutput { + s.Description = &v + return s +} + +// SetExecutionStatus sets the ExecutionStatus field's value. +func (s *DescribeChangeSetOutput) SetExecutionStatus(v string) *DescribeChangeSetOutput { + s.ExecutionStatus = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeChangeSetOutput) SetNextToken(v string) *DescribeChangeSetOutput { + s.NextToken = &v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *DescribeChangeSetOutput) SetNotificationARNs(v []*string) *DescribeChangeSetOutput { + s.NotificationARNs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeChangeSetOutput) SetParameters(v []*Parameter) *DescribeChangeSetOutput { + s.Parameters = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeChangeSetOutput) SetStackId(v string) *DescribeChangeSetOutput { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeChangeSetOutput) SetStackName(v string) *DescribeChangeSetOutput { + s.StackName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeChangeSetOutput) SetStatus(v string) *DescribeChangeSetOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *DescribeChangeSetOutput) SetStatusReason(v string) *DescribeChangeSetOutput { + s.StatusReason = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeChangeSetOutput) SetTags(v []*Tag) *DescribeChangeSetOutput { + s.Tags = v + return s +} + // The input for DescribeStackEvents action. type DescribeStackEventsInput struct { _ struct{} `type:"structure"` @@ -2635,12 +3194,12 @@ type DescribeStackEventsInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. StackName *string `type:"string"` } @@ -2667,6 +3226,18 @@ func (s *DescribeStackEventsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStackEventsInput) SetNextToken(v string) *DescribeStackEventsInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeStackEventsInput) SetStackName(v string) *DescribeStackEventsInput { + s.StackName = &v + return s +} + // The output for a DescribeStackEvents action. type DescribeStackEventsOutput struct { _ struct{} `type:"structure"` @@ -2689,6 +3260,18 @@ func (s DescribeStackEventsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStackEventsOutput) SetNextToken(v string) *DescribeStackEventsOutput { + s.NextToken = &v + return s +} + +// SetStackEvents sets the StackEvents field's value. +func (s *DescribeStackEventsOutput) SetStackEvents(v []*StackEvent) *DescribeStackEventsOutput { + s.StackEvents = v + return s +} + // The input for DescribeStackResource action. type DescribeStackResourceInput struct { _ struct{} `type:"structure"` @@ -2703,12 +3286,12 @@ type DescribeStackResourceInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. // // StackName is a required field StackName *string `type:"string" required:"true"` @@ -2740,6 +3323,18 @@ func (s *DescribeStackResourceInput) Validate() error { return nil } +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *DescribeStackResourceInput) SetLogicalResourceId(v string) *DescribeStackResourceInput { + s.LogicalResourceId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeStackResourceInput) SetStackName(v string) *DescribeStackResourceInput { + s.StackName = &v + return s +} + // The output for a DescribeStackResource action. type DescribeStackResourceOutput struct { _ struct{} `type:"structure"` @@ -2759,6 +3354,12 @@ func (s DescribeStackResourceOutput) GoString() string { return s.String() } +// SetStackResourceDetail sets the StackResourceDetail field's value. +func (s *DescribeStackResourceOutput) SetStackResourceDetail(v *StackResourceDetail) *DescribeStackResourceOutput { + s.StackResourceDetail = v + return s +} + // The input for DescribeStackResources action. type DescribeStackResourcesInput struct { _ struct{} `type:"structure"` @@ -2785,12 +3386,12 @@ type DescribeStackResourcesInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. // // Required: Conditional. If you do not specify StackName, you must specify // PhysicalResourceId. @@ -2807,6 +3408,24 @@ func (s DescribeStackResourcesInput) GoString() string { return s.String() } +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *DescribeStackResourcesInput) SetLogicalResourceId(v string) *DescribeStackResourcesInput { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *DescribeStackResourcesInput) SetPhysicalResourceId(v string) *DescribeStackResourcesInput { + s.PhysicalResourceId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeStackResourcesInput) SetStackName(v string) *DescribeStackResourcesInput { + s.StackName = &v + return s +} + // The output for a DescribeStackResources action. type DescribeStackResourcesOutput struct { _ struct{} `type:"structure"` @@ -2825,6 +3444,12 @@ func (s DescribeStackResourcesOutput) GoString() string { return s.String() } +// SetStackResources sets the StackResources field's value. +func (s *DescribeStackResourcesOutput) SetStackResources(v []*StackResource) *DescribeStackResourcesOutput { + s.StackResources = v + return s +} + // The input for DescribeStacks action. type DescribeStacksInput struct { _ struct{} `type:"structure"` @@ -2835,12 +3460,12 @@ type DescribeStacksInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. StackName *string `type:"string"` } @@ -2867,6 +3492,18 @@ func (s *DescribeStacksInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStacksInput) SetNextToken(v string) *DescribeStacksInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeStacksInput) SetStackName(v string) *DescribeStacksInput { + s.StackName = &v + return s +} + // The output for a DescribeStacks action. type DescribeStacksOutput struct { _ struct{} `type:"structure"` @@ -2889,6 +3526,18 @@ func (s DescribeStacksOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStacksOutput) SetNextToken(v string) *DescribeStacksOutput { + s.NextToken = &v + return s +} + +// SetStacks sets the Stacks field's value. +func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput { + s.Stacks = v + return s +} + // The input for an EstimateTemplateCost action. type EstimateTemplateCostInput struct { _ struct{} `type:"structure"` @@ -2941,6 +3590,24 @@ func (s *EstimateTemplateCostInput) Validate() error { return nil } +// SetParameters sets the Parameters field's value. +func (s *EstimateTemplateCostInput) SetParameters(v []*Parameter) *EstimateTemplateCostInput { + s.Parameters = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *EstimateTemplateCostInput) SetTemplateBody(v string) *EstimateTemplateCostInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *EstimateTemplateCostInput) SetTemplateURL(v string) *EstimateTemplateCostInput { + s.TemplateURL = &v + return s +} + // The output for a EstimateTemplateCost action. type EstimateTemplateCostOutput struct { _ struct{} `type:"structure"` @@ -2960,6 +3627,12 @@ func (s EstimateTemplateCostOutput) GoString() string { return s.String() } +// SetUrl sets the Url field's value. +func (s *EstimateTemplateCostOutput) SetUrl(v string) *EstimateTemplateCostOutput { + s.Url = &v + return s +} + // The input for the ExecuteChangeSet action. type ExecuteChangeSetInput struct { _ struct{} `type:"structure"` @@ -3004,6 +3677,18 @@ func (s *ExecuteChangeSetInput) Validate() error { return nil } +// SetChangeSetName sets the ChangeSetName field's value. +func (s *ExecuteChangeSetInput) SetChangeSetName(v string) *ExecuteChangeSetInput { + s.ChangeSetName = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ExecuteChangeSetInput) SetStackName(v string) *ExecuteChangeSetInput { + s.StackName = &v + return s +} + // The output for the ExecuteChangeSet action. type ExecuteChangeSetOutput struct { _ struct{} `type:"structure"` @@ -3019,6 +3704,51 @@ func (s ExecuteChangeSetOutput) GoString() string { return s.String() } +// The Export structure describes the exported output values for a stack. +type Export struct { + _ struct{} `type:"structure"` + + // The stack that contains the exported output name and value. + ExportingStackId *string `type:"string"` + + // The name of exported output value. Use this name and the Fn::ImportValue + // function to import the associated value into other stacks. The name is defined + // in the Export field in the associated stack's Outputs section. + Name *string `type:"string"` + + // The value of the exported output, such as a resource physical ID. This value + // is defined in the Export field in the associated stack's Outputs section. + Value *string `type:"string"` +} + +// String returns the string representation +func (s Export) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Export) GoString() string { + return s.String() +} + +// SetExportingStackId sets the ExportingStackId field's value. +func (s *Export) SetExportingStackId(v string) *Export { + s.ExportingStackId = &v + return s +} + +// SetName sets the Name field's value. +func (s *Export) SetName(v string) *Export { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Export) SetValue(v string) *Export { + s.Value = &v + return s +} + // The input for the GetStackPolicy action. type GetStackPolicyInput struct { _ struct{} `type:"structure"` @@ -3053,6 +3783,12 @@ func (s *GetStackPolicyInput) Validate() error { return nil } +// SetStackName sets the StackName field's value. +func (s *GetStackPolicyInput) SetStackName(v string) *GetStackPolicyInput { + s.StackName = &v + return s +} + // The output for the GetStackPolicy action. type GetStackPolicyOutput struct { _ struct{} `type:"structure"` @@ -3073,22 +3809,41 @@ func (s GetStackPolicyOutput) GoString() string { return s.String() } +// SetStackPolicyBody sets the StackPolicyBody field's value. +func (s *GetStackPolicyOutput) SetStackPolicyBody(v string) *GetStackPolicyOutput { + s.StackPolicyBody = &v + return s +} + // The input for a GetTemplate action. type GetTemplateInput struct { _ struct{} `type:"structure"` + // Returns the template for a change set using the Amazon Resource Name (ARN) + // or name of the change set. If you specify a name, you must also specify the + // StackName. + ChangeSetName *string `min:"1" type:"string"` + // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. + StackName *string `type:"string"` + + // The stage of the template that is returned. // - // StackName is a required field - StackName *string `type:"string" required:"true"` + // Valid values are Original and Processed. The default value is Original. + // + // * Original - Use this value to return the user-submitted template. + // + // * Processed - Use this value to return the template after all transforms + // have been processed. + TemplateStage *string `type:"string" enum:"TemplateStage"` } // String returns the string representation @@ -3104,8 +3859,8 @@ func (s GetTemplateInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *GetTemplateInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetTemplateInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) + if s.ChangeSetName != nil && len(*s.ChangeSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChangeSetName", 1)) } if invalidParams.Len() > 0 { @@ -3114,10 +3869,40 @@ func (s *GetTemplateInput) Validate() error { return nil } +// SetChangeSetName sets the ChangeSetName field's value. +func (s *GetTemplateInput) SetChangeSetName(v string) *GetTemplateInput { + s.ChangeSetName = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *GetTemplateInput) SetStackName(v string) *GetTemplateInput { + s.StackName = &v + return s +} + +// SetTemplateStage sets the TemplateStage field's value. +func (s *GetTemplateInput) SetTemplateStage(v string) *GetTemplateInput { + s.TemplateStage = &v + return s +} + // The output for GetTemplate action. type GetTemplateOutput struct { _ struct{} `type:"structure"` + // The template type. + // + // * For stacks, you can use either the Original or the Processed template + // type. + // + // * For change sets, you can use only the Original template type. After + // the transforms are processed, you can use the Processed template type. + // + // If you create a change set for a new stack, you must select the template + // type. + StagesAvailable []*string `type:"list"` + // Structure containing the template body. (For more information, go to Template // Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) // in the AWS CloudFormation User Guide.) @@ -3137,6 +3922,18 @@ func (s GetTemplateOutput) GoString() string { return s.String() } +// SetStagesAvailable sets the StagesAvailable field's value. +func (s *GetTemplateOutput) SetStagesAvailable(v []*string) *GetTemplateOutput { + s.StagesAvailable = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *GetTemplateOutput) SetTemplateBody(v string) *GetTemplateOutput { + s.TemplateBody = &v + return s +} + // The input for the GetTemplateSummary action. type GetTemplateSummaryInput struct { _ struct{} `type:"structure"` @@ -3198,6 +3995,24 @@ func (s *GetTemplateSummaryInput) Validate() error { return nil } +// SetStackName sets the StackName field's value. +func (s *GetTemplateSummaryInput) SetStackName(v string) *GetTemplateSummaryInput { + s.StackName = &v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *GetTemplateSummaryInput) SetTemplateBody(v string) *GetTemplateSummaryInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *GetTemplateSummaryInput) SetTemplateURL(v string) *GetTemplateSummaryInput { + s.TemplateURL = &v + return s +} + // The output for the GetTemplateSummary action. type GetTemplateSummaryOutput struct { _ struct{} `type:"structure"` @@ -3216,6 +4031,9 @@ type GetTemplateSummaryOutput struct { // element. CapabilitiesReason *string `type:"string"` + // A list of the transforms that are declared in the template. + DeclaredTransforms []*string `type:"list"` + // The value that is defined in the Description property of the template. Description *string `min:"1" type:"string"` @@ -3245,6 +4063,54 @@ func (s GetTemplateSummaryOutput) GoString() string { return s.String() } +// SetCapabilities sets the Capabilities field's value. +func (s *GetTemplateSummaryOutput) SetCapabilities(v []*string) *GetTemplateSummaryOutput { + s.Capabilities = v + return s +} + +// SetCapabilitiesReason sets the CapabilitiesReason field's value. +func (s *GetTemplateSummaryOutput) SetCapabilitiesReason(v string) *GetTemplateSummaryOutput { + s.CapabilitiesReason = &v + return s +} + +// SetDeclaredTransforms sets the DeclaredTransforms field's value. +func (s *GetTemplateSummaryOutput) SetDeclaredTransforms(v []*string) *GetTemplateSummaryOutput { + s.DeclaredTransforms = v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetTemplateSummaryOutput) SetDescription(v string) *GetTemplateSummaryOutput { + s.Description = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *GetTemplateSummaryOutput) SetMetadata(v string) *GetTemplateSummaryOutput { + s.Metadata = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *GetTemplateSummaryOutput) SetParameters(v []*ParameterDeclaration) *GetTemplateSummaryOutput { + s.Parameters = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *GetTemplateSummaryOutput) SetResourceTypes(v []*string) *GetTemplateSummaryOutput { + s.ResourceTypes = v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetTemplateSummaryOutput) SetVersion(v string) *GetTemplateSummaryOutput { + s.Version = &v + return s +} + // The input for the ListChangeSets action. type ListChangeSetsInput struct { _ struct{} `type:"structure"` @@ -3289,6 +4155,18 @@ func (s *ListChangeSetsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListChangeSetsInput) SetNextToken(v string) *ListChangeSetsInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ListChangeSetsInput) SetStackName(v string) *ListChangeSetsInput { + s.StackName = &v + return s +} + // The output for the ListChangeSets action. type ListChangeSetsOutput struct { _ struct{} `type:"structure"` @@ -3312,6 +4190,88 @@ func (s ListChangeSetsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListChangeSetsOutput) SetNextToken(v string) *ListChangeSetsOutput { + s.NextToken = &v + return s +} + +// SetSummaries sets the Summaries field's value. +func (s *ListChangeSetsOutput) SetSummaries(v []*ChangeSetSummary) *ListChangeSetsOutput { + s.Summaries = v + return s +} + +type ListExportsInput struct { + _ struct{} `type:"structure"` + + // A string (provided by the ListExports response output) that identifies the + // next page of exported output values that you asked to retrieve. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListExportsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListExportsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListExportsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListExportsInput"} + 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. +func (s *ListExportsInput) SetNextToken(v string) *ListExportsInput { + s.NextToken = &v + return s +} + +type ListExportsOutput struct { + _ struct{} `type:"structure"` + + // The output for the ListExports action. + Exports []*Export `type:"list"` + + // If the output exceeds 100 exported output values, a string that identifies + // the next page of exports. If there is no additional page, this value is null. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListExportsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListExportsOutput) GoString() string { + return s.String() +} + +// SetExports sets the Exports field's value. +func (s *ListExportsOutput) SetExports(v []*Export) *ListExportsOutput { + s.Exports = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListExportsOutput) SetNextToken(v string) *ListExportsOutput { + s.NextToken = &v + return s +} + // The input for the ListStackResource action. type ListStackResourcesInput struct { _ struct{} `type:"structure"` @@ -3323,12 +4283,12 @@ type ListStackResourcesInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. // // StackName is a required field StackName *string `type:"string" required:"true"` @@ -3360,6 +4320,18 @@ func (s *ListStackResourcesInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListStackResourcesInput) SetNextToken(v string) *ListStackResourcesInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ListStackResourcesInput) SetStackName(v string) *ListStackResourcesInput { + s.StackName = &v + return s +} + // The output for a ListStackResources action. type ListStackResourcesOutput struct { _ struct{} `type:"structure"` @@ -3382,6 +4354,18 @@ func (s ListStackResourcesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListStackResourcesOutput) SetNextToken(v string) *ListStackResourcesOutput { + s.NextToken = &v + return s +} + +// SetStackResourceSummaries sets the StackResourceSummaries field's value. +func (s *ListStackResourcesOutput) SetStackResourceSummaries(v []*StackResourceSummary) *ListStackResourcesOutput { + s.StackResourceSummaries = v + return s +} + // The input for ListStacks action. type ListStacksInput struct { _ struct{} `type:"structure"` @@ -3418,6 +4402,18 @@ func (s *ListStacksInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListStacksInput) SetNextToken(v string) *ListStacksInput { + s.NextToken = &v + return s +} + +// SetStackStatusFilter sets the StackStatusFilter field's value. +func (s *ListStacksInput) SetStackStatusFilter(v []*string) *ListStacksInput { + s.StackStatusFilter = v + return s +} + // The output for ListStacks action. type ListStacksOutput struct { _ struct{} `type:"structure"` @@ -3441,6 +4437,18 @@ func (s ListStacksOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListStacksOutput) SetNextToken(v string) *ListStacksOutput { + s.NextToken = &v + return s +} + +// SetStackSummaries sets the StackSummaries field's value. +func (s *ListStacksOutput) SetStackSummaries(v []*StackSummary) *ListStacksOutput { + s.StackSummaries = v + return s +} + // The Output data type. type Output struct { _ struct{} `type:"structure"` @@ -3465,6 +4473,24 @@ func (s Output) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *Output) SetDescription(v string) *Output { + s.Description = &v + return s +} + +// SetOutputKey sets the OutputKey field's value. +func (s *Output) SetOutputKey(v string) *Output { + s.OutputKey = &v + return s +} + +// SetOutputValue sets the OutputValue field's value. +func (s *Output) SetOutputValue(v string) *Output { + s.OutputValue = &v + return s +} + // The Parameter data type. type Parameter struct { _ struct{} `type:"structure"` @@ -3493,6 +4519,24 @@ func (s Parameter) GoString() string { return s.String() } +// SetParameterKey sets the ParameterKey field's value. +func (s *Parameter) SetParameterKey(v string) *Parameter { + s.ParameterKey = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *Parameter) SetParameterValue(v string) *Parameter { + s.ParameterValue = &v + return s +} + +// SetUsePreviousValue sets the UsePreviousValue field's value. +func (s *Parameter) SetUsePreviousValue(v bool) *Parameter { + s.UsePreviousValue = &v + return s +} + // A set of criteria that AWS CloudFormation uses to validate parameter values. // Although other constraints might be defined in the stack template, AWS CloudFormation // returns only the AllowedValues property. @@ -3513,6 +4557,12 @@ func (s ParameterConstraints) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *ParameterConstraints) SetAllowedValues(v []*string) *ParameterConstraints { + s.AllowedValues = v + return s +} + // The ParameterDeclaration data type. type ParameterDeclaration struct { _ struct{} `type:"structure"` @@ -3547,6 +4597,42 @@ func (s ParameterDeclaration) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *ParameterDeclaration) SetDefaultValue(v string) *ParameterDeclaration { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ParameterDeclaration) SetDescription(v string) *ParameterDeclaration { + s.Description = &v + return s +} + +// SetNoEcho sets the NoEcho field's value. +func (s *ParameterDeclaration) SetNoEcho(v bool) *ParameterDeclaration { + s.NoEcho = &v + return s +} + +// SetParameterConstraints sets the ParameterConstraints field's value. +func (s *ParameterDeclaration) SetParameterConstraints(v *ParameterConstraints) *ParameterDeclaration { + s.ParameterConstraints = v + return s +} + +// SetParameterKey sets the ParameterKey field's value. +func (s *ParameterDeclaration) SetParameterKey(v string) *ParameterDeclaration { + s.ParameterKey = &v + return s +} + +// SetParameterType sets the ParameterType field's value. +func (s *ParameterDeclaration) SetParameterType(v string) *ParameterDeclaration { + s.ParameterType = &v + return s +} + // The ResourceChange structure describes the resource and the action that AWS // CloudFormation will perform on it if you execute this change set. type ResourceChange struct { @@ -3599,6 +4685,48 @@ func (s ResourceChange) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *ResourceChange) SetAction(v string) *ResourceChange { + s.Action = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *ResourceChange) SetDetails(v []*ResourceChangeDetail) *ResourceChange { + s.Details = v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *ResourceChange) SetLogicalResourceId(v string) *ResourceChange { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *ResourceChange) SetPhysicalResourceId(v string) *ResourceChange { + s.PhysicalResourceId = &v + return s +} + +// SetReplacement sets the Replacement field's value. +func (s *ResourceChange) SetReplacement(v string) *ResourceChange { + s.Replacement = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ResourceChange) SetResourceType(v string) *ResourceChange { + s.ResourceType = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ResourceChange) SetScope(v []*string) *ResourceChange { + s.Scope = v + return s +} + // For a resource with Modify as the action, the ResourceChange structure describes // the changes AWS CloudFormation will make to that resource. type ResourceChangeDetail struct { @@ -3615,25 +4743,25 @@ type ResourceChangeDetail struct { // The group to which the CausingEntity value belongs. There are five entity // groups: // - // ResourceReference entities are Ref intrinsic functions that refer to - // resources in the template, such as { "Ref" : "MyEC2InstanceResource" }. + // * ResourceReference entities are Ref intrinsic functions that refer to + // resources in the template, such as { "Ref" : "MyEC2InstanceResource" }. // - // ParameterReference entities are Ref intrinsic functions that get template - // parameter values, such as { "Ref" : "MyPasswordParameter" }. + // * ParameterReference entities are Ref intrinsic functions that get template + // parameter values, such as { "Ref" : "MyPasswordParameter" }. // - // ResourceAttribute entities are Fn::GetAtt intrinsic functions that get - // resource attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", - // "PublicDnsName" ] }. + // * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get + // resource attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", + // "PublicDnsName" ] }. // - // DirectModification entities are changes that are made directly to the - // template. + // * DirectModification entities are changes that are made directly to the + // template. // - // Automatic entities are AWS::CloudFormation::Stack resource types, which - // are also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack - // resource, AWS CloudFormation sets the ChangeSource to Automatic because the - // nested stack's template might have changed. Changes to a nested stack's template - // aren't visible to AWS CloudFormation until you run an update on the parent - // stack. + // * Automatic entities are AWS::CloudFormation::Stack resource types, which + // are also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack + // resource, AWS CloudFormation sets the ChangeSource to Automatic because + // the nested stack's template might have changed. Changes to a nested stack's + // template aren't visible to AWS CloudFormation until you run an update + // on the parent stack. ChangeSource *string `type:"string" enum:"ChangeSource"` // Indicates whether AWS CloudFormation can determine the target value, and @@ -3668,6 +4796,30 @@ func (s ResourceChangeDetail) GoString() string { return s.String() } +// SetCausingEntity sets the CausingEntity field's value. +func (s *ResourceChangeDetail) SetCausingEntity(v string) *ResourceChangeDetail { + s.CausingEntity = &v + return s +} + +// SetChangeSource sets the ChangeSource field's value. +func (s *ResourceChangeDetail) SetChangeSource(v string) *ResourceChangeDetail { + s.ChangeSource = &v + return s +} + +// SetEvaluation sets the Evaluation field's value. +func (s *ResourceChangeDetail) SetEvaluation(v string) *ResourceChangeDetail { + s.Evaluation = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *ResourceChangeDetail) SetTarget(v *ResourceTargetDefinition) *ResourceChangeDetail { + s.Target = v + return s +} + // The field that AWS CloudFormation will change, such as the name of a resource's // property, and whether the resource will be recreated. type ResourceTargetDefinition struct { @@ -3699,6 +4851,24 @@ func (s ResourceTargetDefinition) GoString() string { return s.String() } +// SetAttribute sets the Attribute field's value. +func (s *ResourceTargetDefinition) SetAttribute(v string) *ResourceTargetDefinition { + s.Attribute = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResourceTargetDefinition) SetName(v string) *ResourceTargetDefinition { + s.Name = &v + return s +} + +// SetRequiresRecreation sets the RequiresRecreation field's value. +func (s *ResourceTargetDefinition) SetRequiresRecreation(v string) *ResourceTargetDefinition { + s.RequiresRecreation = &v + return s +} + // The input for the SetStackPolicy action. type SetStackPolicyInput struct { _ struct{} `type:"structure"` @@ -3750,6 +4920,24 @@ func (s *SetStackPolicyInput) Validate() error { return nil } +// SetStackName sets the StackName field's value. +func (s *SetStackPolicyInput) SetStackName(v string) *SetStackPolicyInput { + s.StackName = &v + return s +} + +// SetStackPolicyBody sets the StackPolicyBody field's value. +func (s *SetStackPolicyInput) SetStackPolicyBody(v string) *SetStackPolicyInput { + s.StackPolicyBody = &v + return s +} + +// SetStackPolicyURL sets the StackPolicyURL field's value. +func (s *SetStackPolicyInput) SetStackPolicyURL(v string) *SetStackPolicyInput { + s.StackPolicyURL = &v + return s +} + type SetStackPolicyOutput struct { _ struct{} `type:"structure"` } @@ -3833,6 +5021,30 @@ func (s *SignalResourceInput) Validate() error { return nil } +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *SignalResourceInput) SetLogicalResourceId(v string) *SignalResourceInput { + s.LogicalResourceId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *SignalResourceInput) SetStackName(v string) *SignalResourceInput { + s.StackName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SignalResourceInput) SetStatus(v string) *SignalResourceInput { + s.Status = &v + return s +} + +// SetUniqueId sets the UniqueId field's value. +func (s *SignalResourceInput) SetUniqueId(v string) *SignalResourceInput { + s.UniqueId = &v + return s +} + type SignalResourceOutput struct { _ struct{} `type:"structure"` } @@ -3854,6 +5066,9 @@ type Stack struct { // The capabilities allowed in the stack. Capabilities []*string `type:"list"` + // The unique ID of the change set. + ChangeSetId *string `min:"1" type:"string"` + // The time at which the stack was created. // // CreationTime is a required field @@ -3864,9 +5079,9 @@ type Stack struct { // Boolean to enable or disable rollback on stack creation failures: // - // true: disable rollback + // * true: disable rollback // - // false: enable rollback + // * false: enable rollback DisableRollback *bool `type:"boolean"` // The time the stack was last updated. This field will only be returned if @@ -3920,6 +5135,102 @@ func (s Stack) GoString() string { return s.String() } +// SetCapabilities sets the Capabilities field's value. +func (s *Stack) SetCapabilities(v []*string) *Stack { + s.Capabilities = v + return s +} + +// SetChangeSetId sets the ChangeSetId field's value. +func (s *Stack) SetChangeSetId(v string) *Stack { + s.ChangeSetId = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Stack) SetCreationTime(v time.Time) *Stack { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Stack) SetDescription(v string) *Stack { + s.Description = &v + return s +} + +// SetDisableRollback sets the DisableRollback field's value. +func (s *Stack) SetDisableRollback(v bool) *Stack { + s.DisableRollback = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Stack) SetLastUpdatedTime(v time.Time) *Stack { + s.LastUpdatedTime = &v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *Stack) SetNotificationARNs(v []*string) *Stack { + s.NotificationARNs = v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *Stack) SetOutputs(v []*Output) *Stack { + s.Outputs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *Stack) SetParameters(v []*Parameter) *Stack { + s.Parameters = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *Stack) SetRoleARN(v string) *Stack { + s.RoleARN = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Stack) SetStackId(v string) *Stack { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *Stack) SetStackName(v string) *Stack { + s.StackName = &v + return s +} + +// SetStackStatus sets the StackStatus field's value. +func (s *Stack) SetStackStatus(v string) *Stack { + s.StackStatus = &v + return s +} + +// SetStackStatusReason sets the StackStatusReason field's value. +func (s *Stack) SetStackStatusReason(v string) *Stack { + s.StackStatusReason = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Stack) SetTags(v []*Tag) *Stack { + s.Tags = v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *Stack) SetTimeoutInMinutes(v int64) *Stack { + s.TimeoutInMinutes = &v + return s +} + // The StackEvent data type. type StackEvent struct { _ struct{} `type:"structure"` @@ -3976,6 +5287,66 @@ func (s StackEvent) GoString() string { return s.String() } +// SetEventId sets the EventId field's value. +func (s *StackEvent) SetEventId(v string) *StackEvent { + s.EventId = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackEvent) SetLogicalResourceId(v string) *StackEvent { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackEvent) SetPhysicalResourceId(v string) *StackEvent { + s.PhysicalResourceId = &v + return s +} + +// SetResourceProperties sets the ResourceProperties field's value. +func (s *StackEvent) SetResourceProperties(v string) *StackEvent { + s.ResourceProperties = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *StackEvent) SetResourceStatus(v string) *StackEvent { + s.ResourceStatus = &v + return s +} + +// SetResourceStatusReason sets the ResourceStatusReason field's value. +func (s *StackEvent) SetResourceStatusReason(v string) *StackEvent { + s.ResourceStatusReason = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackEvent) SetResourceType(v string) *StackEvent { + s.ResourceType = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackEvent) SetStackId(v string) *StackEvent { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *StackEvent) SetStackName(v string) *StackEvent { + s.StackName = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *StackEvent) SetTimestamp(v time.Time) *StackEvent { + s.Timestamp = &v + return s +} + // The StackResource data type. type StackResource struct { _ struct{} `type:"structure"` @@ -4029,6 +5400,60 @@ func (s StackResource) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *StackResource) SetDescription(v string) *StackResource { + s.Description = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackResource) SetLogicalResourceId(v string) *StackResource { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackResource) SetPhysicalResourceId(v string) *StackResource { + s.PhysicalResourceId = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *StackResource) SetResourceStatus(v string) *StackResource { + s.ResourceStatus = &v + return s +} + +// SetResourceStatusReason sets the ResourceStatusReason field's value. +func (s *StackResource) SetResourceStatusReason(v string) *StackResource { + s.ResourceStatusReason = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackResource) SetResourceType(v string) *StackResource { + s.ResourceType = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackResource) SetStackId(v string) *StackResource { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *StackResource) SetStackName(v string) *StackResource { + s.StackName = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *StackResource) SetTimestamp(v time.Time) *StackResource { + s.Timestamp = &v + return s +} + // Contains detailed information about the specified stack resource. type StackResourceDetail struct { _ struct{} `type:"structure"` @@ -4087,6 +5512,66 @@ func (s StackResourceDetail) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *StackResourceDetail) SetDescription(v string) *StackResourceDetail { + s.Description = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *StackResourceDetail) SetLastUpdatedTimestamp(v time.Time) *StackResourceDetail { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackResourceDetail) SetLogicalResourceId(v string) *StackResourceDetail { + s.LogicalResourceId = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *StackResourceDetail) SetMetadata(v string) *StackResourceDetail { + s.Metadata = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackResourceDetail) SetPhysicalResourceId(v string) *StackResourceDetail { + s.PhysicalResourceId = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *StackResourceDetail) SetResourceStatus(v string) *StackResourceDetail { + s.ResourceStatus = &v + return s +} + +// SetResourceStatusReason sets the ResourceStatusReason field's value. +func (s *StackResourceDetail) SetResourceStatusReason(v string) *StackResourceDetail { + s.ResourceStatusReason = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackResourceDetail) SetResourceType(v string) *StackResourceDetail { + s.ResourceType = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackResourceDetail) SetStackId(v string) *StackResourceDetail { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *StackResourceDetail) SetStackName(v string) *StackResourceDetail { + s.StackName = &v + return s +} + // Contains high-level information about the specified stack resource. type StackResourceSummary struct { _ struct{} `type:"structure"` @@ -4131,6 +5616,42 @@ func (s StackResourceSummary) GoString() string { return s.String() } +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *StackResourceSummary) SetLastUpdatedTimestamp(v time.Time) *StackResourceSummary { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackResourceSummary) SetLogicalResourceId(v string) *StackResourceSummary { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackResourceSummary) SetPhysicalResourceId(v string) *StackResourceSummary { + s.PhysicalResourceId = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *StackResourceSummary) SetResourceStatus(v string) *StackResourceSummary { + s.ResourceStatus = &v + return s +} + +// SetResourceStatusReason sets the ResourceStatusReason field's value. +func (s *StackResourceSummary) SetResourceStatusReason(v string) *StackResourceSummary { + s.ResourceStatusReason = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackResourceSummary) SetResourceType(v string) *StackResourceSummary { + s.ResourceType = &v + return s +} + // The StackSummary Data Type type StackSummary struct { _ struct{} `type:"structure"` @@ -4177,6 +5698,54 @@ func (s StackSummary) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *StackSummary) SetCreationTime(v time.Time) *StackSummary { + s.CreationTime = &v + return s +} + +// SetDeletionTime sets the DeletionTime field's value. +func (s *StackSummary) SetDeletionTime(v time.Time) *StackSummary { + s.DeletionTime = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *StackSummary) SetLastUpdatedTime(v time.Time) *StackSummary { + s.LastUpdatedTime = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackSummary) SetStackId(v string) *StackSummary { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *StackSummary) SetStackName(v string) *StackSummary { + s.StackName = &v + return s +} + +// SetStackStatus sets the StackStatus field's value. +func (s *StackSummary) SetStackStatus(v string) *StackSummary { + s.StackStatus = &v + return s +} + +// SetStackStatusReason sets the StackStatusReason field's value. +func (s *StackSummary) SetStackStatusReason(v string) *StackSummary { + s.StackStatusReason = &v + return s +} + +// SetTemplateDescription sets the TemplateDescription field's value. +func (s *StackSummary) SetTemplateDescription(v string) *StackSummary { + s.TemplateDescription = &v + return s +} + // The Tag type enables you to specify a key-value pair that can be used to // store information about an AWS CloudFormation stack. type Tag struct { @@ -4202,6 +5771,18 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The TemplateParameter data type. type TemplateParameter struct { _ struct{} `type:"structure"` @@ -4230,6 +5811,30 @@ func (s TemplateParameter) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *TemplateParameter) SetDefaultValue(v string) *TemplateParameter { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *TemplateParameter) SetDescription(v string) *TemplateParameter { + s.Description = &v + return s +} + +// SetNoEcho sets the NoEcho field's value. +func (s *TemplateParameter) SetNoEcho(v bool) *TemplateParameter { + s.NoEcho = &v + return s +} + +// SetParameterKey sets the ParameterKey field's value. +func (s *TemplateParameter) SetParameterKey(v string) *TemplateParameter { + s.ParameterKey = &v + return s +} + // The input for an UpdateStack action. type UpdateStackInput struct { _ struct{} `type:"structure"` @@ -4289,9 +5894,9 @@ type UpdateStackInput struct { // role even if the users don't have permission to pass it. Ensure that the // role grants least privilege. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name or unique stack ID of the stack to update. @@ -4412,6 +6017,90 @@ func (s *UpdateStackInput) Validate() error { return nil } +// SetCapabilities sets the Capabilities field's value. +func (s *UpdateStackInput) SetCapabilities(v []*string) *UpdateStackInput { + s.Capabilities = v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *UpdateStackInput) SetNotificationARNs(v []*string) *UpdateStackInput { + s.NotificationARNs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *UpdateStackInput) SetParameters(v []*Parameter) *UpdateStackInput { + s.Parameters = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *UpdateStackInput) SetResourceTypes(v []*string) *UpdateStackInput { + s.ResourceTypes = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *UpdateStackInput) SetRoleARN(v string) *UpdateStackInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *UpdateStackInput) SetStackName(v string) *UpdateStackInput { + s.StackName = &v + return s +} + +// SetStackPolicyBody sets the StackPolicyBody field's value. +func (s *UpdateStackInput) SetStackPolicyBody(v string) *UpdateStackInput { + s.StackPolicyBody = &v + return s +} + +// SetStackPolicyDuringUpdateBody sets the StackPolicyDuringUpdateBody field's value. +func (s *UpdateStackInput) SetStackPolicyDuringUpdateBody(v string) *UpdateStackInput { + s.StackPolicyDuringUpdateBody = &v + return s +} + +// SetStackPolicyDuringUpdateURL sets the StackPolicyDuringUpdateURL field's value. +func (s *UpdateStackInput) SetStackPolicyDuringUpdateURL(v string) *UpdateStackInput { + s.StackPolicyDuringUpdateURL = &v + return s +} + +// SetStackPolicyURL sets the StackPolicyURL field's value. +func (s *UpdateStackInput) SetStackPolicyURL(v string) *UpdateStackInput { + s.StackPolicyURL = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateStackInput) SetTags(v []*Tag) *UpdateStackInput { + s.Tags = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *UpdateStackInput) SetTemplateBody(v string) *UpdateStackInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *UpdateStackInput) SetTemplateURL(v string) *UpdateStackInput { + s.TemplateURL = &v + return s +} + +// SetUsePreviousTemplate sets the UsePreviousTemplate field's value. +func (s *UpdateStackInput) SetUsePreviousTemplate(v bool) *UpdateStackInput { + s.UsePreviousTemplate = &v + return s +} + // The output for an UpdateStack action. type UpdateStackOutput struct { _ struct{} `type:"structure"` @@ -4430,6 +6119,12 @@ func (s UpdateStackOutput) GoString() string { return s.String() } +// SetStackId sets the StackId field's value. +func (s *UpdateStackOutput) SetStackId(v string) *UpdateStackOutput { + s.StackId = &v + return s +} + // The input for ValidateTemplate action. type ValidateTemplateInput struct { _ struct{} `type:"structure"` @@ -4479,6 +6174,18 @@ func (s *ValidateTemplateInput) Validate() error { return nil } +// SetTemplateBody sets the TemplateBody field's value. +func (s *ValidateTemplateInput) SetTemplateBody(v string) *ValidateTemplateInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *ValidateTemplateInput) SetTemplateURL(v string) *ValidateTemplateInput { + s.TemplateURL = &v + return s +} + // The output for ValidateTemplate action. type ValidateTemplateOutput struct { _ struct{} `type:"structure"` @@ -4497,6 +6204,9 @@ type ValidateTemplateOutput struct { // element. CapabilitiesReason *string `type:"string"` + // A list of the transforms that are declared in the template. + DeclaredTransforms []*string `type:"list"` + // The description found within the template. Description *string `min:"1" type:"string"` @@ -4514,6 +6224,36 @@ func (s ValidateTemplateOutput) GoString() string { return s.String() } +// SetCapabilities sets the Capabilities field's value. +func (s *ValidateTemplateOutput) SetCapabilities(v []*string) *ValidateTemplateOutput { + s.Capabilities = v + return s +} + +// SetCapabilitiesReason sets the CapabilitiesReason field's value. +func (s *ValidateTemplateOutput) SetCapabilitiesReason(v string) *ValidateTemplateOutput { + s.CapabilitiesReason = &v + return s +} + +// SetDeclaredTransforms sets the DeclaredTransforms field's value. +func (s *ValidateTemplateOutput) SetDeclaredTransforms(v []*string) *ValidateTemplateOutput { + s.DeclaredTransforms = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ValidateTemplateOutput) SetDescription(v string) *ValidateTemplateOutput { + s.Description = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ValidateTemplateOutput) SetParameters(v []*TemplateParameter) *ValidateTemplateOutput { + s.Parameters = v + return s +} + const ( // CapabilityCapabilityIam is a Capability enum value CapabilityCapabilityIam = "CAPABILITY_IAM" @@ -4550,6 +6290,14 @@ const ( ChangeSetStatusFailed = "FAILED" ) +const ( + // ChangeSetTypeCreate is a ChangeSetType enum value + ChangeSetTypeCreate = "CREATE" + + // ChangeSetTypeUpdate is a ChangeSetType enum value + ChangeSetTypeUpdate = "UPDATE" +) + const ( // ChangeSourceResourceReference is a ChangeSource enum value ChangeSourceResourceReference = "ResourceReference" @@ -4741,4 +6489,15 @@ const ( // StackStatusUpdateRollbackComplete is a StackStatus enum value StackStatusUpdateRollbackComplete = "UPDATE_ROLLBACK_COMPLETE" + + // StackStatusReviewInProgress is a StackStatus enum value + StackStatusReviewInProgress = "REVIEW_IN_PROGRESS" +) + +const ( + // TemplateStageOriginal is a TemplateStage enum value + TemplateStageOriginal = "Original" + + // TemplateStageProcessed is a TemplateStage enum value + TemplateStageProcessed = "Processed" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go index bd9d2917e..0ba97a2c2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go @@ -11,11 +11,12 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/query" ) -// AWS CloudFormation enables you to create and manage AWS infrastructure deployments -// predictably and repeatedly. AWS CloudFormation helps you leverage AWS products -// such as Amazon EC2, EBS, Amazon SNS, ELB, and Auto Scaling to build highly-reliable, -// highly scalable, cost effective applications without worrying about creating -// and configuring the underlying AWS infrastructure. +// AWS CloudFormation allows you to create and manage AWS infrastructure deployments +// predictably and repeatedly. You can use AWS CloudFormation to leverage AWS +// products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, +// Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling +// to build highly-reliable, highly scalable, cost-effective applications without +// creating or configuring the underlying AWS infrastructure. // // With AWS CloudFormation, you declare all of your resources and dependencies // in a template file. The template defines a collection of resources as a single @@ -23,12 +24,12 @@ import ( // of the stack together and manages all dependencies between the resources // for you. // -// For more information about this product, go to the CloudFormation Product -// Page (http://aws.amazon.com/cloudformation/). +// For more information about AWS CloudFormation, see the AWS CloudFormation +// Product Page (http://aws.amazon.com/cloudformation/). // // Amazon CloudFormation makes use of other AWS products. If you need additional // technical information about a specific AWS product, you can find the product's -// technical documentation at http://docs.aws.amazon.com/ (http://docs.aws.amazon.com/). +// technical documentation at http://docs.aws.amazon.com/ (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/). //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type CloudFormation struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go index 62744e3d3..5960e9443 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go @@ -34,24 +34,12 @@ func (c *CloudFormation) WaitUntilStackCreateComplete(input *DescribeStacksInput Argument: "Stacks[].StackStatus", Expected: "DELETE_COMPLETE", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "DELETE_IN_PROGRESS", - }, { State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", Expected: "DELETE_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_COMPLETE", - }, { State: "failure", Matcher: "pathAny", @@ -62,7 +50,7 @@ func (c *CloudFormation) WaitUntilStackCreateComplete(input *DescribeStacksInput State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_IN_PROGRESS", + Expected: "ROLLBACK_COMPLETE", }, { State: "failure", @@ -109,72 +97,18 @@ func (c *CloudFormation) WaitUntilStackDeleteComplete(input *DescribeStacksInput Argument: "Stacks[].StackStatus", Expected: "DELETE_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_COMPLETE", - }, { State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", Expected: "CREATE_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_COMPLETE", - }, { State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", Expected: "ROLLBACK_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - }, { State: "failure", Matcher: "pathAny", @@ -253,12 +187,6 @@ func (c *CloudFormation) WaitUntilStackUpdateComplete(input *DescribeStacksInput Argument: "Stacks[].StackStatus", Expected: "UPDATE_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE", - }, { State: "failure", Matcher: "pathAny", @@ -269,13 +197,7 @@ func (c *CloudFormation) WaitUntilStackUpdateComplete(input *DescribeStacksInput State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_IN_PROGRESS", + Expected: "UPDATE_ROLLBACK_COMPLETE", }, { State: "failure", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go index 9554127d1..e6090b48c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go @@ -13,7 +13,7 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restxml" ) -const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2016_09_07" +const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2016_09_29" // CreateCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the CreateCloudFrontOriginAccessIdentity operation. The "output" return @@ -43,7 +43,7 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCl op := &request.Operation{ Name: opCreateCloudFrontOriginAccessIdentity, HTTPMethod: "POST", - HTTPPath: "/2016-09-07/origin-access-identity/cloudfront", + HTTPPath: "/2016-09-29/origin-access-identity/cloudfront", } if input == nil { @@ -58,7 +58,12 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCl // CreateCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. // -// Create a new origin access identity. +// Creates a new origin access identity. If you're using Amazon S3 for your +// origin, you can use an origin access identity to require users to access +// your content using a CloudFront URL instead of the Amazon S3 URL. For more +// information about how to use origin access identities, see Serving Private +// Content through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) +// in the Amazon CloudFront Developer 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 @@ -94,7 +99,7 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentity(input *CreateCloudFron return out, err } -const opCreateDistribution = "CreateDistribution2016_09_07" +const opCreateDistribution = "CreateDistribution2016_09_29" // CreateDistributionRequest generates a "aws/request.Request" representing the // client's request for the CreateDistribution operation. The "output" return @@ -124,7 +129,7 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( op := &request.Operation{ Name: opCreateDistribution, HTTPMethod: "POST", - HTTPPath: "/2016-09-07/distribution", + HTTPPath: "/2016-09-29/distribution", } if input == nil { @@ -139,7 +144,8 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // CreateDistribution API operation for Amazon CloudFront. // -// Create a new distribution. +// Creates a new web distribution. Send a GET request to the /CloudFront API +// version/distribution/distribution ID resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -214,10 +220,10 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // No origin exists with the specified Origin Id. // // * TooManyOrigins -// You cannot create anymore origins for the distribution. +// You cannot create more origins for the distribution. // // * TooManyCacheBehaviors -// You cannot create anymore cache behaviors for the distribution. +// You cannot create more cache behaviors for the distribution. // // * TooManyCookieNamesInWhiteList // Your request contains more cookie names in the whitelist than are allowed @@ -239,7 +245,7 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // The value of Quantity and the size of Items do not match. // // * TooManyCertificates -// You cannot create anymore custom ssl certificates. +// You cannot create anymore custom SSL/TLS certificates. // // * InvalidLocationCode @@ -249,7 +255,7 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // // * InvalidProtocolSettings // You cannot specify SSLv3 as the minimum protocol version if you only want -// to support only clients that Support Server Name Indication (SNI). +// to support only clients that support Server Name Indication (SNI). // // * InvalidTTLOrder @@ -272,7 +278,7 @@ func (c *CloudFront) CreateDistribution(input *CreateDistributionInput) (*Create return out, err } -const opCreateDistributionWithTags = "CreateDistributionWithTags2016_09_07" +const opCreateDistributionWithTags = "CreateDistributionWithTags2016_09_29" // CreateDistributionWithTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateDistributionWithTags operation. The "output" return @@ -302,7 +308,7 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution op := &request.Operation{ Name: opCreateDistributionWithTags, HTTPMethod: "POST", - HTTPPath: "/2016-09-07/distribution?WithTags", + HTTPPath: "/2016-09-29/distribution?WithTags", } if input == nil { @@ -392,10 +398,10 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution // No origin exists with the specified Origin Id. // // * TooManyOrigins -// You cannot create anymore origins for the distribution. +// You cannot create more origins for the distribution. // // * TooManyCacheBehaviors -// You cannot create anymore cache behaviors for the distribution. +// You cannot create more cache behaviors for the distribution. // // * TooManyCookieNamesInWhiteList // Your request contains more cookie names in the whitelist than are allowed @@ -417,7 +423,7 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution // The value of Quantity and the size of Items do not match. // // * TooManyCertificates -// You cannot create anymore custom ssl certificates. +// You cannot create anymore custom SSL/TLS certificates. // // * InvalidLocationCode @@ -427,7 +433,7 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution // // * InvalidProtocolSettings // You cannot specify SSLv3 as the minimum protocol version if you only want -// to support only clients that Support Server Name Indication (SNI). +// to support only clients that support Server Name Indication (SNI). // // * InvalidTTLOrder @@ -439,8 +445,7 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution // // * InvalidTagging -// The specified tagging for a CloudFront resource is invalid. For more information, -// see the error text. + // // * TooManyQueryStringParameters @@ -454,7 +459,7 @@ func (c *CloudFront) CreateDistributionWithTags(input *CreateDistributionWithTag return out, err } -const opCreateInvalidation = "CreateInvalidation2016_09_07" +const opCreateInvalidation = "CreateInvalidation2016_09_29" // CreateInvalidationRequest generates a "aws/request.Request" representing the // client's request for the CreateInvalidation operation. The "output" return @@ -484,7 +489,7 @@ func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) ( op := &request.Operation{ Name: opCreateInvalidation, HTTPMethod: "POST", - HTTPPath: "/2016-09-07/distribution/{DistributionId}/invalidation", + HTTPPath: "/2016-09-29/distribution/{DistributionId}/invalidation", } if input == nil { @@ -538,7 +543,7 @@ func (c *CloudFront) CreateInvalidation(input *CreateInvalidationInput) (*Create return out, err } -const opCreateStreamingDistribution = "CreateStreamingDistribution2016_09_07" +const opCreateStreamingDistribution = "CreateStreamingDistribution2016_09_29" // CreateStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamingDistribution operation. The "output" return @@ -568,7 +573,7 @@ func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDi op := &request.Operation{ Name: opCreateStreamingDistribution, HTTPMethod: "POST", - HTTPPath: "/2016-09-07/streaming-distribution", + HTTPPath: "/2016-09-29/streaming-distribution", } if input == nil { @@ -583,7 +588,34 @@ func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDi // CreateStreamingDistribution API operation for Amazon CloudFront. // -// Create a new streaming distribution. +// Creates a new RMTP distribution. An RTMP distribution is similar to a web +// distribution, but an RTMP distribution streams media files using the Adobe +// Real-Time Messaging Protocol (RTMP) instead of serving files using HTTP. +// +// To create a new web distribution, submit a POST request to the CloudFront +// API version/distribution resource. The request body must include a document +// with a StreamingDistributionConfig element. The response echoes the StreamingDistributionConfig +// element and returns other information about the RTMP distribution. +// +// To get the status of your request, use the GET StreamingDistribution API +// action. When the value of Enabled is true and the value of Status is Deployed, +// your distribution is ready. A distribution usually deploys in less than 15 +// minutes. +// +// For more information about web distributions, see Working with RTMP Distributions +// (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-rtmp.html) +// in the Amazon CloudFront Developer Guide. +// +// Beginning with the 2012-05-05 version of the CloudFront API, we made substantial +// changes to the format of the XML document that you include in the request +// body when you create or update a web distribution or an RTMP distribution, +// and when you invalidate objects. With previous versions of the API, we discovered +// that it was too easy to accidentally delete one or more values for an element +// that accepts multiple values, for example, CNAMEs and trusted signers. Our +// changes for the 2012-05-05 release are intended to prevent these accidental +// deletions and to notify you when there's a mismatch between the number of +// values you say you're specifying in the Quantity element and the number of +// values specified. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -638,7 +670,7 @@ func (c *CloudFront) CreateStreamingDistribution(input *CreateStreamingDistribut return out, err } -const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTags2016_09_07" +const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTags2016_09_29" // CreateStreamingDistributionWithTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamingDistributionWithTags operation. The "output" return @@ -668,7 +700,7 @@ func (c *CloudFront) CreateStreamingDistributionWithTagsRequest(input *CreateStr op := &request.Operation{ Name: opCreateStreamingDistributionWithTags, HTTPMethod: "POST", - HTTPPath: "/2016-09-07/streaming-distribution?WithTags", + HTTPPath: "/2016-09-29/streaming-distribution?WithTags", } if input == nil { @@ -733,8 +765,7 @@ func (c *CloudFront) CreateStreamingDistributionWithTagsRequest(input *CreateStr // The value of Quantity and the size of Items do not match. // // * InvalidTagging -// The specified tagging for a CloudFront resource is invalid. For more information, -// see the error text. + // func (c *CloudFront) CreateStreamingDistributionWithTags(input *CreateStreamingDistributionWithTagsInput) (*CreateStreamingDistributionWithTagsOutput, error) { req, out := c.CreateStreamingDistributionWithTagsRequest(input) @@ -742,7 +773,7 @@ func (c *CloudFront) CreateStreamingDistributionWithTags(input *CreateStreamingD return out, err } -const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2016_09_07" +const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2016_09_29" // DeleteCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the DeleteCloudFrontOriginAccessIdentity operation. The "output" return @@ -772,7 +803,7 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCl op := &request.Operation{ Name: opDeleteCloudFrontOriginAccessIdentity, HTTPMethod: "DELETE", - HTTPPath: "/2016-09-07/origin-access-identity/cloudfront/{Id}", + HTTPPath: "/2016-09-29/origin-access-identity/cloudfront/{Id}", } if input == nil { @@ -821,7 +852,7 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentity(input *DeleteCloudFron return out, err } -const opDeleteDistribution = "DeleteDistribution2016_09_07" +const opDeleteDistribution = "DeleteDistribution2016_09_29" // DeleteDistributionRequest generates a "aws/request.Request" representing the // client's request for the DeleteDistribution operation. The "output" return @@ -851,7 +882,7 @@ func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) ( op := &request.Operation{ Name: opDeleteDistribution, HTTPMethod: "DELETE", - HTTPPath: "/2016-09-07/distribution/{Id}", + HTTPPath: "/2016-09-29/distribution/{Id}", } if input == nil { @@ -900,7 +931,7 @@ func (c *CloudFront) DeleteDistribution(input *DeleteDistributionInput) (*Delete return out, err } -const opDeleteStreamingDistribution = "DeleteStreamingDistribution2016_09_07" +const opDeleteStreamingDistribution = "DeleteStreamingDistribution2016_09_29" // DeleteStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the DeleteStreamingDistribution operation. The "output" return @@ -930,7 +961,7 @@ func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDi op := &request.Operation{ Name: opDeleteStreamingDistribution, HTTPMethod: "DELETE", - HTTPPath: "/2016-09-07/streaming-distribution/{Id}", + HTTPPath: "/2016-09-29/streaming-distribution/{Id}", } if input == nil { @@ -947,7 +978,42 @@ func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDi // DeleteStreamingDistribution API operation for Amazon CloudFront. // -// Delete a streaming distribution. +// Delete a streaming distribution. To delete an RTMP distribution using the +// CloudFront API, perform the following steps. +// +// To delete an RTMP distribution using the CloudFront API: +// +// Disable the RTMP distribution. +// +// Submit a GET Streaming Distribution Config request to get the current configuration +// and the Etag header for the distribution. +// +// Update the XML document that was returned in the response to your GET Streaming +// Distribution Config request to change the value of Enabled to false. +// +// Submit a PUT Streaming Distribution Config request to update the configuration +// for your distribution. In the request body, include the XML document that +// you updated in Step 3. Then set the value of the HTTP If-Match header to +// the value of the ETag header that CloudFront returned when you submitted +// the GET Streaming Distribution Config request in Step 2. +// +// Review the response to the PUT Streaming Distribution Config request to confirm +// that the distribution was successfully disabled. +// +// Submit a GET Streaming Distribution Config request to confirm that your changes +// have propagated. When propagation is complete, the value of Status is Deployed. +// +// Submit a DELETE Streaming Distribution request. Set the value of the HTTP +// If-Match header to the value of the ETag header that CloudFront returned +// when you submitted the GET Streaming Distribution Config request in Step +// 2. +// +// Review the response to your DELETE Streaming Distribution request to confirm +// that the distribution was successfully deleted. +// +// For information about deleting a distribution using the CloudFront console, +// see Deleting a Distribution (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html) +// in the Amazon CloudFront Developer 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 @@ -979,7 +1045,7 @@ func (c *CloudFront) DeleteStreamingDistribution(input *DeleteStreamingDistribut return out, err } -const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2016_09_07" +const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2016_09_29" // GetCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the GetCloudFrontOriginAccessIdentity operation. The "output" return @@ -1009,7 +1075,7 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFro op := &request.Operation{ Name: opGetCloudFrontOriginAccessIdentity, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/origin-access-identity/cloudfront/{Id}", + HTTPPath: "/2016-09-29/origin-access-identity/cloudfront/{Id}", } if input == nil { @@ -1046,7 +1112,7 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentity(input *GetCloudFrontOrigi return out, err } -const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2016_09_07" +const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2016_09_29" // GetCloudFrontOriginAccessIdentityConfigRequest generates a "aws/request.Request" representing the // client's request for the GetCloudFrontOriginAccessIdentityConfig operation. The "output" return @@ -1076,7 +1142,7 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCl op := &request.Operation{ Name: opGetCloudFrontOriginAccessIdentityConfig, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/origin-access-identity/cloudfront/{Id}/config", + HTTPPath: "/2016-09-29/origin-access-identity/cloudfront/{Id}/config", } if input == nil { @@ -1113,7 +1179,7 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfig(input *GetCloudFron return out, err } -const opGetDistribution = "GetDistribution2016_09_07" +const opGetDistribution = "GetDistribution2016_09_29" // GetDistributionRequest generates a "aws/request.Request" representing the // client's request for the GetDistribution operation. The "output" return @@ -1143,7 +1209,7 @@ func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *r op := &request.Operation{ Name: opGetDistribution, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/distribution/{Id}", + HTTPPath: "/2016-09-29/distribution/{Id}", } if input == nil { @@ -1180,7 +1246,7 @@ func (c *CloudFront) GetDistribution(input *GetDistributionInput) (*GetDistribut return out, err } -const opGetDistributionConfig = "GetDistributionConfig2016_09_07" +const opGetDistributionConfig = "GetDistributionConfig2016_09_29" // GetDistributionConfigRequest generates a "aws/request.Request" representing the // client's request for the GetDistributionConfig operation. The "output" return @@ -1210,7 +1276,7 @@ func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigIn op := &request.Operation{ Name: opGetDistributionConfig, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/distribution/{Id}/config", + HTTPPath: "/2016-09-29/distribution/{Id}/config", } if input == nil { @@ -1247,7 +1313,7 @@ func (c *CloudFront) GetDistributionConfig(input *GetDistributionConfigInput) (* return out, err } -const opGetInvalidation = "GetInvalidation2016_09_07" +const opGetInvalidation = "GetInvalidation2016_09_29" // GetInvalidationRequest generates a "aws/request.Request" representing the // client's request for the GetInvalidation operation. The "output" return @@ -1277,7 +1343,7 @@ func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *r op := &request.Operation{ Name: opGetInvalidation, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/distribution/{DistributionId}/invalidation/{Id}", + HTTPPath: "/2016-09-29/distribution/{DistributionId}/invalidation/{Id}", } if input == nil { @@ -1317,7 +1383,7 @@ func (c *CloudFront) GetInvalidation(input *GetInvalidationInput) (*GetInvalidat return out, err } -const opGetStreamingDistribution = "GetStreamingDistribution2016_09_07" +const opGetStreamingDistribution = "GetStreamingDistribution2016_09_29" // GetStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the GetStreamingDistribution operation. The "output" return @@ -1347,7 +1413,7 @@ func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistribu op := &request.Operation{ Name: opGetStreamingDistribution, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/streaming-distribution/{Id}", + HTTPPath: "/2016-09-29/streaming-distribution/{Id}", } if input == nil { @@ -1362,7 +1428,8 @@ func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistribu // GetStreamingDistribution API operation for Amazon CloudFront. // -// Get the information about a streaming distribution. +// Gets information about a specified RTMP distribution, including the distribution +// configuration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1384,7 +1451,7 @@ func (c *CloudFront) GetStreamingDistribution(input *GetStreamingDistributionInp return out, err } -const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2016_09_07" +const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2016_09_29" // GetStreamingDistributionConfigRequest generates a "aws/request.Request" representing the // client's request for the GetStreamingDistributionConfig operation. The "output" return @@ -1414,7 +1481,7 @@ func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDi op := &request.Operation{ Name: opGetStreamingDistributionConfig, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/streaming-distribution/{Id}/config", + HTTPPath: "/2016-09-29/streaming-distribution/{Id}/config", } if input == nil { @@ -1451,7 +1518,7 @@ func (c *CloudFront) GetStreamingDistributionConfig(input *GetStreamingDistribut return out, err } -const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2016_09_07" +const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2016_09_29" // ListCloudFrontOriginAccessIdentitiesRequest generates a "aws/request.Request" representing the // client's request for the ListCloudFrontOriginAccessIdentities operation. The "output" return @@ -1481,7 +1548,7 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListClou op := &request.Operation{ Name: opListCloudFrontOriginAccessIdentities, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/origin-access-identity/cloudfront", + HTTPPath: "/2016-09-29/origin-access-identity/cloudfront", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"CloudFrontOriginAccessIdentityList.NextMarker"}, @@ -1502,7 +1569,7 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListClou // ListCloudFrontOriginAccessIdentities API operation for Amazon CloudFront. // -// List origin access identities. +// Lists origin access identities. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1546,7 +1613,7 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesPages(input *ListCloudF }) } -const opListDistributions = "ListDistributions2016_09_07" +const opListDistributions = "ListDistributions2016_09_29" // ListDistributionsRequest generates a "aws/request.Request" representing the // client's request for the ListDistributions operation. The "output" return @@ -1576,7 +1643,7 @@ func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (re op := &request.Operation{ Name: opListDistributions, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/distribution", + HTTPPath: "/2016-09-29/distribution", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"DistributionList.NextMarker"}, @@ -1641,7 +1708,7 @@ func (c *CloudFront) ListDistributionsPages(input *ListDistributionsInput, fn fu }) } -const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2016_09_07" +const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2016_09_29" // ListDistributionsByWebACLIdRequest generates a "aws/request.Request" representing the // client's request for the ListDistributionsByWebACLId operation. The "output" return @@ -1671,7 +1738,7 @@ func (c *CloudFront) ListDistributionsByWebACLIdRequest(input *ListDistributions op := &request.Operation{ Name: opListDistributionsByWebACLId, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/distributionsByWebACLId/{WebACLId}", + HTTPPath: "/2016-09-29/distributionsByWebACLId/{WebACLId}", } if input == nil { @@ -1708,7 +1775,7 @@ func (c *CloudFront) ListDistributionsByWebACLId(input *ListDistributionsByWebAC return out, err } -const opListInvalidations = "ListInvalidations2016_09_07" +const opListInvalidations = "ListInvalidations2016_09_29" // ListInvalidationsRequest generates a "aws/request.Request" representing the // client's request for the ListInvalidations operation. The "output" return @@ -1738,7 +1805,7 @@ func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (re op := &request.Operation{ Name: opListInvalidations, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/distribution/{DistributionId}/invalidation", + HTTPPath: "/2016-09-29/distribution/{DistributionId}/invalidation", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"InvalidationList.NextMarker"}, @@ -1759,7 +1826,7 @@ func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (re // ListInvalidations API operation for Amazon CloudFront. // -// List invalidation batches. +// Lists invalidation batches. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1809,7 +1876,7 @@ func (c *CloudFront) ListInvalidationsPages(input *ListInvalidationsInput, fn fu }) } -const opListStreamingDistributions = "ListStreamingDistributions2016_09_07" +const opListStreamingDistributions = "ListStreamingDistributions2016_09_29" // ListStreamingDistributionsRequest generates a "aws/request.Request" representing the // client's request for the ListStreamingDistributions operation. The "output" return @@ -1839,7 +1906,7 @@ func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistr op := &request.Operation{ Name: opListStreamingDistributions, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/streaming-distribution", + HTTPPath: "/2016-09-29/streaming-distribution", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"StreamingDistributionList.NextMarker"}, @@ -1904,7 +1971,7 @@ func (c *CloudFront) ListStreamingDistributionsPages(input *ListStreamingDistrib }) } -const opListTagsForResource = "ListTagsForResource2016_09_07" +const opListTagsForResource = "ListTagsForResource2016_09_29" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return @@ -1934,7 +2001,7 @@ func (c *CloudFront) ListTagsForResourceRequest(input *ListTagsForResourceInput) op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", - HTTPPath: "/2016-09-07/tagging", + HTTPPath: "/2016-09-29/tagging", } if input == nil { @@ -1966,11 +2033,10 @@ func (c *CloudFront) ListTagsForResourceRequest(input *ListTagsForResourceInput) // The argument is invalid. // // * InvalidTagging -// The specified tagging for a CloudFront resource is invalid. For more information, -// see the error text. + // // * NoSuchResource -// The specified CloudFront resource does not exist. + // func (c *CloudFront) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) @@ -1978,7 +2044,7 @@ func (c *CloudFront) ListTagsForResource(input *ListTagsForResourceInput) (*List return out, err } -const opTagResource = "TagResource2016_09_07" +const opTagResource = "TagResource2016_09_29" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return @@ -2008,7 +2074,7 @@ func (c *CloudFront) TagResourceRequest(input *TagResourceInput) (req *request.R op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", - HTTPPath: "/2016-09-07/tagging?Operation=Tag", + HTTPPath: "/2016-09-29/tagging?Operation=Tag", } if input == nil { @@ -2042,11 +2108,10 @@ func (c *CloudFront) TagResourceRequest(input *TagResourceInput) (req *request.R // The argument is invalid. // // * InvalidTagging -// The specified tagging for a CloudFront resource is invalid. For more information, -// see the error text. + // // * NoSuchResource -// The specified CloudFront resource does not exist. + // func (c *CloudFront) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) @@ -2054,7 +2119,7 @@ func (c *CloudFront) TagResource(input *TagResourceInput) (*TagResourceOutput, e return out, err } -const opUntagResource = "UntagResource2016_09_07" +const opUntagResource = "UntagResource2016_09_29" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return @@ -2084,7 +2149,7 @@ func (c *CloudFront) UntagResourceRequest(input *UntagResourceInput) (req *reque op := &request.Operation{ Name: opUntagResource, HTTPMethod: "POST", - HTTPPath: "/2016-09-07/tagging?Operation=Untag", + HTTPPath: "/2016-09-29/tagging?Operation=Untag", } if input == nil { @@ -2118,11 +2183,10 @@ func (c *CloudFront) UntagResourceRequest(input *UntagResourceInput) (req *reque // The argument is invalid. // // * InvalidTagging -// The specified tagging for a CloudFront resource is invalid. For more information, -// see the error text. + // // * NoSuchResource -// The specified CloudFront resource does not exist. + // func (c *CloudFront) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) @@ -2130,7 +2194,7 @@ func (c *CloudFront) UntagResource(input *UntagResourceInput) (*UntagResourceOut return out, err } -const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2016_09_07" +const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2016_09_29" // UpdateCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the UpdateCloudFrontOriginAccessIdentity operation. The "output" return @@ -2160,7 +2224,7 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCl op := &request.Operation{ Name: opUpdateCloudFrontOriginAccessIdentity, HTTPMethod: "PUT", - HTTPPath: "/2016-09-07/origin-access-identity/cloudfront/{Id}/config", + HTTPPath: "/2016-09-29/origin-access-identity/cloudfront/{Id}/config", } if input == nil { @@ -2217,7 +2281,7 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentity(input *UpdateCloudFron return out, err } -const opUpdateDistribution = "UpdateDistribution2016_09_07" +const opUpdateDistribution = "UpdateDistribution2016_09_29" // UpdateDistributionRequest generates a "aws/request.Request" representing the // client's request for the UpdateDistribution operation. The "output" return @@ -2247,7 +2311,7 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( op := &request.Operation{ Name: opUpdateDistribution, HTTPMethod: "PUT", - HTTPPath: "/2016-09-07/distribution/{Id}/config", + HTTPPath: "/2016-09-29/distribution/{Id}/config", } if input == nil { @@ -2338,10 +2402,10 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // No origin exists with the specified Origin Id. // // * TooManyOrigins -// You cannot create anymore origins for the distribution. +// You cannot create more origins for the distribution. // // * TooManyCacheBehaviors -// You cannot create anymore cache behaviors for the distribution. +// You cannot create more cache behaviors for the distribution. // // * TooManyCookieNamesInWhiteList // Your request contains more cookie names in the whitelist than are allowed @@ -2363,7 +2427,7 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // The value of Quantity and the size of Items do not match. // // * TooManyCertificates -// You cannot create anymore custom ssl certificates. +// You cannot create anymore custom SSL/TLS certificates. // // * InvalidLocationCode @@ -2392,7 +2456,7 @@ func (c *CloudFront) UpdateDistribution(input *UpdateDistributionInput) (*Update return out, err } -const opUpdateStreamingDistribution = "UpdateStreamingDistribution2016_09_07" +const opUpdateStreamingDistribution = "UpdateStreamingDistribution2016_09_29" // UpdateStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the UpdateStreamingDistribution operation. The "output" return @@ -2422,7 +2486,7 @@ func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDi op := &request.Operation{ Name: opUpdateStreamingDistribution, HTTPMethod: "PUT", - HTTPPath: "/2016-09-07/streaming-distribution/{Id}/config", + HTTPPath: "/2016-09-29/streaming-distribution/{Id}/config", } if input == nil { @@ -2495,25 +2559,39 @@ func (c *CloudFront) UpdateStreamingDistribution(input *UpdateStreamingDistribut } // A complex type that lists the AWS accounts, if any, that you included in -// the TrustedSigners complex type for the default cache behavior or for any -// of the other cache behaviors for this distribution. These are accounts that -// you want to allow to create signed URLs for private content. +// the TrustedSigners complex type for this distribution. These are the accounts +// that you want to allow to create signed URLs for private content. +// +// The Signer complex type lists the AWS account number of the trusted signer +// or self if the signer is the AWS account that created the distribution. The +// Signer element also includes the IDs of any active CloudFront key pairs that +// are associated with the trusted signer's AWS account. If no KeyPairId element +// appears for a Signer, that signer can't create signed URLs. +// +// For more information, see Serving Private Content through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) +// in the Amazon CloudFront Developer Guide. type ActiveTrustedSigners struct { _ struct{} `type:"structure"` - // Each active trusted signer. + // Enabled is true if any of the AWS accounts listed in the TrustedSigners complex + // type for this RTMP distribution have active CloudFront key pairs. If not, + // Enabled is false. + // + // For more information, see ActiveTrustedSigners. // // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` - // A complex type that contains one Signer complex type for each unique trusted - // signer that is specified in the TrustedSigners complex type, including trusted - // signers in the default cache behavior and in all of the other cache behaviors. + // A complex type that contains one Signer complex type for each trusted signer + // that is specified in the TrustedSigners complex type. + // + // For more information, see ActiveTrustedSigners. Items []*Signer `locationNameList:"Signer" type:"list"` - // The number of unique trusted signers included in all cache behaviors. For - // example, if three cache behaviors all list the same three AWS accounts, the - // value of Quantity for ActiveTrustedSigners will be 3. + // A complex type that contains one Signer complex type for each trusted signer + // specified in the TrustedSigners complex type. + // + // For more information, see ActiveTrustedSigners. // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` @@ -2529,16 +2607,35 @@ func (s ActiveTrustedSigners) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *ActiveTrustedSigners) SetEnabled(v bool) *ActiveTrustedSigners { + s.Enabled = &v + return s +} + +// SetItems sets the Items field's value. +func (s *ActiveTrustedSigners) SetItems(v []*Signer) *ActiveTrustedSigners { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *ActiveTrustedSigners) SetQuantity(v int64) *ActiveTrustedSigners { + s.Quantity = &v + return s +} + // A complex type that contains information about CNAMEs (alternate domain names), // if any, for this distribution. type Aliases struct { _ struct{} `type:"structure"` - // Optional: A complex type that contains CNAME elements, if any, for this distribution. - // If Quantity is 0, you can omit Items. + // A complex type that contains the CNAME aliases, if any, that you want to + // associate with this distribution. Items []*string `locationNameList:"CNAME" type:"list"` - // The number of CNAMEs, if any, for this distribution. + // The number of CNAME aliases, if any, that you want to associate with this + // distribution. // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` @@ -2567,23 +2664,46 @@ func (s *Aliases) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Aliases) SetItems(v []*string) *Aliases { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *Aliases) SetQuantity(v int64) *Aliases { + s.Quantity = &v + return s +} + // A complex type that controls which HTTP methods CloudFront processes and // forwards to your Amazon S3 bucket or your custom origin. There are three -// choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards -// only GET, HEAD and OPTIONS requests. - CloudFront forwards GET, HEAD, OPTIONS, -// PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you -// may need to restrict access to your Amazon S3 bucket or to your custom origin -// so users can't perform operations that you don't want them to. For example, -// you may not want users to have permission to delete objects from your origin. +// choices: +// +// * CloudFront forwards only GET and HEAD requests. +// +// * CloudFront forwards only GET, HEAD, and OPTIONS requests. +// +// * CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE +// requests. +// +// If you pick the third choice, you may need to restrict access to your Amazon +// S3 bucket or to your custom origin so users can't perform operations that +// you don't want them to. For example, you might not want users to have permissions +// to delete objects from your origin. type AllowedMethods struct { _ struct{} `type:"structure"` // A complex type that controls whether CloudFront caches the response to requests - // using the specified HTTP methods. There are two choices: - CloudFront caches - // responses to GET and HEAD requests. - CloudFront caches responses to GET, - // HEAD, and OPTIONS requests. If you pick the second choice for your S3 Origin, - // you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers - // and Origin headers for the responses to be cached correctly. + // using the specified HTTP methods. There are two choices: + // + // * CloudFront caches responses to GET and HEAD requests. + // + // * CloudFront caches responses to GET, HEAD, and OPTIONS requests. + // + // If you pick the second choice for your Amazon S3 Origin, you may need to + // forward Access-Control-Request-Method, Access-Control-Request-Headers, and + // Origin headers for the responses to be cached correctly. CachedMethods *CachedMethods `type:"structure"` // A complex type that contains the HTTP methods that you want CloudFront to @@ -2593,7 +2713,7 @@ type AllowedMethods struct { Items []*string `locationNameList:"Method" type:"list" required:"true"` // The number of HTTP methods that you want CloudFront to forward to your origin. - // Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD and OPTIONS + // Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS // requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests). // // Quantity is a required field @@ -2631,95 +2751,136 @@ func (s *AllowedMethods) Validate() error { return nil } -// A complex type that describes how CloudFront processes requests. You can -// create up to 10 cache behaviors.You must create at least as many cache behaviors -// (including the default cache behavior) as you have origins if you want CloudFront -// to distribute objects from all of the origins. Each cache behavior specifies -// the one origin from which you want CloudFront to get objects. If you have -// two origins and only the default cache behavior, the default cache behavior -// will cause CloudFront to get objects from one of the origins, but the other -// origin will never be used. If you don't want to specify any cache behaviors, -// include only an empty CacheBehaviors element. Don't include an empty CacheBehavior -// element, or CloudFront returns a MalformedXML error. To delete all cache -// behaviors in an existing distribution, update the distribution configuration -// and include only an empty CacheBehaviors element. To add, change, or remove -// one or more cache behaviors, update the distribution configuration and specify -// all of the cache behaviors that you want to include in the updated distribution. +// SetCachedMethods sets the CachedMethods field's value. +func (s *AllowedMethods) SetCachedMethods(v *CachedMethods) *AllowedMethods { + s.CachedMethods = v + return s +} + +// SetItems sets the Items field's value. +func (s *AllowedMethods) SetItems(v []*string) *AllowedMethods { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *AllowedMethods) SetQuantity(v int64) *AllowedMethods { + s.Quantity = &v + return s +} + +// A complex type that describes how CloudFront processes requests. +// +// You must create at least as many cache behaviors (including the default cache +// behavior) as you have origins if you want CloudFront to distribute objects +// from all of the origins. Each cache behavior specifies the one origin from +// which you want CloudFront to get objects. If you have two origins and only +// the default cache behavior, the default cache behavior will cause CloudFront +// to get objects from one of the origins, but the other origin is never used. +// +// For the current limit on the number of cache behaviors that you can add to +// a distribution, see Amazon CloudFront Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudfront) +// in the AWS General Reference. +// +// If you don't want to specify any cache behaviors, include only an empty CacheBehaviors +// element. Don't include an empty CacheBehavior element, or CloudFront returns +// a MalformedXML error. +// +// To delete all cache behaviors in an existing distribution, update the distribution +// configuration and include only an empty CacheBehaviors element. +// +// To add, change, or remove one or more cache behaviors, update the distribution +// configuration and specify all of the cache behaviors that you want to include +// in the updated distribution. +// +// For more information about cache behaviors, see Cache Behaviors (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior) +// in the Amazon CloudFront Developer Guide. type CacheBehavior struct { _ struct{} `type:"structure"` // A complex type that controls which HTTP methods CloudFront processes and // forwards to your Amazon S3 bucket or your custom origin. There are three - // choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards - // only GET, HEAD and OPTIONS requests. - CloudFront forwards GET, HEAD, OPTIONS, - // PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you - // may need to restrict access to your Amazon S3 bucket or to your custom origin - // so users can't perform operations that you don't want them to. For example, - // you may not want users to have permission to delete objects from your origin. + // choices: + // + // * CloudFront forwards only GET and HEAD requests. + // + // * CloudFront forwards only GET, HEAD, and OPTIONS requests. + // + // * CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE + // requests. + // + // If you pick the third choice, you may need to restrict access to your Amazon + // S3 bucket or to your custom origin so users can't perform operations that + // you don't want them to. For example, you might not want users to have permissions + // to delete objects from your origin. AllowedMethods *AllowedMethods `type:"structure"` - // Whether you want CloudFront to automatically compress content for web requests - // that include Accept-Encoding: gzip in the request header. If so, specify - // true; if not, specify false. CloudFront compresses files larger than 1000 - // bytes and less than 1 megabyte for both Amazon S3 and custom origins. When - // a CloudFront edge location is unusually busy, some files might not be compressed. - // The value of the Content-Type header must be on the list of file types that - // CloudFront will compress. For the current list, see Serving Compressed Content - // (http://docs.aws.amazon.com/console/cloudfront/compressed-content) in the - // Amazon CloudFront Developer Guide. If you configure CloudFront to compress - // content, CloudFront removes the ETag response header from the objects that - // it compresses. The ETag header indicates that the version in a CloudFront - // edge cache is identical to the version on the origin server, but after compression - // the two versions are no longer identical. As a result, for compressed objects, - // CloudFront can't use the ETag header to determine whether an expired object - // in the CloudFront edge cache is still the latest version. + // Whether you want CloudFront to automatically compress certain files for this + // cache behavior. If so, specify true; if not, specify false. For more information, + // see Serving Compressed Files (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) + // in the Amazon CloudFront Developer Guide. Compress *bool `type:"boolean"` - // If you don't configure your origin to add a Cache-Control max-age directive - // or an Expires header, DefaultTTL is the default amount of time (in seconds) - // that an object is in a CloudFront cache before CloudFront forwards another - // request to your origin to determine whether the object has been updated. - // The value that you specify applies only when your origin does not add HTTP - // headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires - // to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 - // years). + // The default amount of time that you want objects to stay in CloudFront caches + // before CloudFront forwards another request to your origin to determine whether + // the object has been updated. The value that you specify applies only when + // your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control + // s-maxage, and Expires to objects. For more information, see Specifying How + // Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + // in the Amazon CloudFront Developer Guide. DefaultTTL *int64 `type:"long"` - // A complex type that specifies how CloudFront handles query strings, cookies - // and headers. + // A complex type that specifies how CloudFront handles query strings and cookies. // // ForwardedValues is a required field ForwardedValues *ForwardedValues `type:"structure" required:"true"` - // The maximum amount of time (in seconds) that an object is in a CloudFront - // cache before CloudFront forwards another request to your origin to determine - // whether the object has been updated. The value that you specify applies only - // when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control - // s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 - // seconds (100 years). + // The maximum amount of time that you want objects to stay in CloudFront caches + // before CloudFront forwards another request to your origin to determine whether + // the object has been updated. The value that you specify applies only when + // your origin adds HTTP headers such as Cache-Control max-age, Cache-Control + // s-maxage, and Expires to objects. For more information, see Specifying How + // Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + // in the Amazon CloudFront Developer Guide. MaxTTL *int64 `type:"long"` // The minimum amount of time that you want objects to stay in CloudFront caches - // before CloudFront queries your origin to see whether the object has been - // updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years). + // before CloudFront forwards another request to your origin to determine whether + // the object has been updated. For more information, see Specifying How Long + // Objects and Errors Stay in a CloudFront Edge Cache (Expiration) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + // in the Amazon Amazon CloudFront Developer Guide. + // + // You must specify 0 for MinTTL if you configure CloudFront to forward all + // headers to your origin (under Headers, if you specify 1 for Quantity and + // * for Name). // // MinTTL is a required field MinTTL *int64 `type:"long" required:"true"` - // The pattern (for example, images/*.jpg) that specifies which requests you - // want this cache behavior to apply to. When CloudFront receives an end-user - // request, the requested path is compared with path patterns in the order in - // which cache behaviors are listed in the distribution. The path pattern for - // the default cache behavior is * and cannot be changed. If the request for - // an object does not match the path pattern for any cache behaviors, CloudFront - // applies the behavior in the default cache behavior. + // The pattern (for example, images/*.jpg) that specifies which requests to + // apply the behavior to. When CloudFront receives a viewer request, the requested + // path is compared with path patterns in the order in which cache behaviors + // are listed in the distribution. + // + // You can optionally include a slash (/) at the beginning of the path pattern. + // For example, /images/*.jpg. CloudFront behavior is the same with or without + // the leading /. + // + // The path pattern for the default cache behavior is * and cannot be changed. + // If the request for an object does not match the path pattern for any cache + // behaviors, CloudFront applies the behavior in the default cache behavior. + // + // For more information, see Path Pattern (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern) + // in the Amazon CloudFront Developer Guide. // // PathPattern is a required field PathPattern *string `type:"string" required:"true"` - // Indicates whether you want to distribute media files in Microsoft Smooth + // Indicates whether you want to distribute media files in the Microsoft Smooth // Streaming format using the origin that is associated with this cache behavior. - // If so, specify true; if not, specify false. + // If so, specify true; if not, specify false. If you specify true for SmoothStreaming, + // you can still distribute other content using this cache behavior if the content + // matches the value of PathPattern. SmoothStreaming *bool `type:"boolean"` // The value of ID for the origin that you want CloudFront to route requests @@ -2730,28 +2891,51 @@ type CacheBehavior struct { TargetOriginId *string `type:"string" required:"true"` // A complex type that specifies the AWS accounts, if any, that you want to - // allow to create signed URLs for private content. If you want to require signed - // URLs in requests for objects in the target origin that match the PathPattern - // for this cache behavior, specify true for Enabled, and specify the applicable - // values for Quantity and Items. For more information, go to Using a Signed - // URL to Serve Private Content in the Amazon CloudFront Developer Guide. If - // you don't want to require signed URLs in requests for objects that match - // PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To - // add, change, or remove one or more trusted signers, change Enabled to true - // (if it's currently false), change Quantity as applicable, and specify all - // of the trusted signers that you want to include in the updated distribution. + // allow to create signed URLs for private content. + // + // If you want to require signed URLs in requests for objects in the target + // origin that match the PathPattern for this cache behavior, specify true for + // Enabled, and specify the applicable values for Quantity and Items. For more + // information, see Serving Private Content through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + // in the Amazon Amazon CloudFront Developer Guide. + // + // If you don't want to require signed URLs in requests for objects that match + // PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. + // + // To add, change, or remove one or more trusted signers, change Enabled to + // true (if it's currently false), change Quantity as applicable, and specify + // all of the trusted signers that you want to include in the updated distribution. // // TrustedSigners is a required field TrustedSigners *TrustedSigners `type:"structure" required:"true"` - // Use this element to specify the protocol that users can use to access the - // files in the origin specified by TargetOriginId when a request matches the - // path pattern in PathPattern. If you want CloudFront to allow end users to - // use any available protocol, specify allow-all. If you want CloudFront to - // require HTTPS, specify https. If you want CloudFront to respond to an HTTP - // request with an HTTP status code of 301 (Moved Permanently) and the HTTPS - // URL, specify redirect-to-https. The viewer then resubmits the request using - // the HTTPS URL. + // The protocol that viewers can use to access the files in the origin specified + // by TargetOriginId when a request matches the path pattern in PathPattern. + // You can specify the following options: + // + // * allow-all: Viewers can use HTTP or HTTPS. + // + // * redirect-to-https: If a viewer submits an HTTP request, CloudFront returns + // an HTTP status code of 301 (Moved Permanently) to the viewer along with + // the HTTPS URL. The viewer then resubmits the request using the new URL. + // + // + // * https-only: If a viewer sends an HTTP request, CloudFront returns an + // HTTP status code of 403 (Forbidden). + // + // For more information about requiring the HTTPS protocol, see Using an HTTPS + // Connection to Access Your Objects (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) + // in the Amazon CloudFront Developer Guide. + // + // The only way to guarantee that viewers retrieve an object that was fetched + // from the origin using HTTPS is never to use any other protocol to fetch the + // object. If you have recently changed from HTTP to HTTPS, we recommend that + // you clear your objects' cache because cached objects are protocol agnostic. + // That means that an edge location will return an object from the cache regardless + // of whether the current request protocol matches the protocol used previously. + // For more information, see Specifying How Long Objects and Errors Stay in + // a CloudFront Edge Cache (Expiration) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + // in the Amazon CloudFront Developer Guide. // // ViewerProtocolPolicy is a required field ViewerProtocolPolicy *string `type:"string" required:"true" enum:"ViewerProtocolPolicy"` @@ -2810,6 +2994,72 @@ func (s *CacheBehavior) Validate() error { return nil } +// SetAllowedMethods sets the AllowedMethods field's value. +func (s *CacheBehavior) SetAllowedMethods(v *AllowedMethods) *CacheBehavior { + s.AllowedMethods = v + return s +} + +// SetCompress sets the Compress field's value. +func (s *CacheBehavior) SetCompress(v bool) *CacheBehavior { + s.Compress = &v + return s +} + +// SetDefaultTTL sets the DefaultTTL field's value. +func (s *CacheBehavior) SetDefaultTTL(v int64) *CacheBehavior { + s.DefaultTTL = &v + return s +} + +// SetForwardedValues sets the ForwardedValues field's value. +func (s *CacheBehavior) SetForwardedValues(v *ForwardedValues) *CacheBehavior { + s.ForwardedValues = v + return s +} + +// SetMaxTTL sets the MaxTTL field's value. +func (s *CacheBehavior) SetMaxTTL(v int64) *CacheBehavior { + s.MaxTTL = &v + return s +} + +// SetMinTTL sets the MinTTL field's value. +func (s *CacheBehavior) SetMinTTL(v int64) *CacheBehavior { + s.MinTTL = &v + return s +} + +// SetPathPattern sets the PathPattern field's value. +func (s *CacheBehavior) SetPathPattern(v string) *CacheBehavior { + s.PathPattern = &v + return s +} + +// SetSmoothStreaming sets the SmoothStreaming field's value. +func (s *CacheBehavior) SetSmoothStreaming(v bool) *CacheBehavior { + s.SmoothStreaming = &v + return s +} + +// SetTargetOriginId sets the TargetOriginId field's value. +func (s *CacheBehavior) SetTargetOriginId(v string) *CacheBehavior { + s.TargetOriginId = &v + return s +} + +// SetTrustedSigners sets the TrustedSigners field's value. +func (s *CacheBehavior) SetTrustedSigners(v *TrustedSigners) *CacheBehavior { + s.TrustedSigners = v + return s +} + +// SetViewerProtocolPolicy sets the ViewerProtocolPolicy field's value. +func (s *CacheBehavior) SetViewerProtocolPolicy(v string) *CacheBehavior { + s.ViewerProtocolPolicy = &v + return s +} + // A complex type that contains zero or more CacheBehavior elements. type CacheBehaviors struct { _ struct{} `type:"structure"` @@ -2857,12 +3107,28 @@ func (s *CacheBehaviors) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *CacheBehaviors) SetItems(v []*CacheBehavior) *CacheBehaviors { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CacheBehaviors) SetQuantity(v int64) *CacheBehaviors { + s.Quantity = &v + return s +} + // A complex type that controls whether CloudFront caches the response to requests -// using the specified HTTP methods. There are two choices: - CloudFront caches -// responses to GET and HEAD requests. - CloudFront caches responses to GET, -// HEAD, and OPTIONS requests. If you pick the second choice for your S3 Origin, -// you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers -// and Origin headers for the responses to be cached correctly. +// using the specified HTTP methods. There are two choices: +// +// * CloudFront caches responses to GET and HEAD requests. +// +// * CloudFront caches responses to GET, HEAD, and OPTIONS requests. +// +// If you pick the second choice for your Amazon S3 Origin, you may need to +// forward Access-Control-Request-Method, Access-Control-Request-Headers, and +// Origin headers for the responses to be cached correctly. type CachedMethods struct { _ struct{} `type:"structure"` @@ -2906,16 +3172,32 @@ func (s *CachedMethods) Validate() error { return nil } -// A complex type that specifies the whitelisted cookies, if any, that you want -// CloudFront to forward to your origin that is associated with this cache behavior. +// SetItems sets the Items field's value. +func (s *CachedMethods) SetItems(v []*string) *CachedMethods { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CachedMethods) SetQuantity(v int64) *CachedMethods { + s.Quantity = &v + return s +} + +// A complex type that specifies whether you want CloudFront to forward cookies +// to the origin and, if so, which ones. For more information about forwarding +// cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies +// (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) +// in the Amazon CloudFront Developer Guide. type CookieNames struct { _ struct{} `type:"structure"` - // Optional: A complex type that contains whitelisted cookies for this cache - // behavior. If Quantity is 0, you can omit Items. + // A complex type that contains one Name element for each cookie that you want + // CloudFront to forward to the origin for this cache behavior. Items []*string `locationNameList:"Name" type:"list"` - // The number of whitelisted cookies for this cache behavior. + // The number of different cookies that you want CloudFront to forward to the + // origin for this cache behavior. // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` @@ -2944,21 +3226,49 @@ func (s *CookieNames) Validate() error { return nil } -// A complex type that specifies the cookie preferences associated with this -// cache behavior. +// SetItems sets the Items field's value. +func (s *CookieNames) SetItems(v []*string) *CookieNames { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CookieNames) SetQuantity(v int64) *CookieNames { + s.Quantity = &v + return s +} + +// A complex type that specifies whether you want CloudFront to forward cookies +// to the origin and, if so, which ones. For more information about forwarding +// cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies +// (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) +// in the Amazon CloudFront Developer Guide. type CookiePreference struct { _ struct{} `type:"structure"` - // Use this element to specify whether you want CloudFront to forward cookies - // to the origin that is associated with this cache behavior. You can specify - // all, none or whitelist. If you choose All, CloudFront forwards all cookies - // regardless of how many your application uses. + // Specifies which cookies to forward to the origin for this cache behavior: + // all, none, or the list of cookies specified in the WhitelistedNames complex + // type. + // + // Amazon S3 doesn't process cookies. When the cache behavior is forwarding + // requests to an Amazon S3 origin, specify none for the Forward element. // // Forward is a required field Forward *string `type:"string" required:"true" enum:"ItemSelection"` - // A complex type that specifies the whitelisted cookies, if any, that you want - // CloudFront to forward to your origin that is associated with this cache behavior. + // Required if you specify whitelist for the value of Forward:. A complex type + // that specifies how many different cookies you want CloudFront to forward + // to the origin for this cache behavior and, if you want to forward selected + // cookies, the names of those cookies. + // + // If you specify all or none for the value of Forward, omit WhitelistedNames. + // If you change the value of Forward from whitelist to all or none and you + // don't delete the WhitelistedNames element and its child elements, CloudFront + // deletes them automatically. + // + // For the current limit on the number of cookie names that you can whitelist + // for each cache behavior, see Amazon CloudFront Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudfront) + // in the AWS General Reference. WhitelistedNames *CookieNames `type:"structure"` } @@ -2990,11 +3300,23 @@ func (s *CookiePreference) Validate() error { return nil } +// SetForward sets the Forward field's value. +func (s *CookiePreference) SetForward(v string) *CookiePreference { + s.Forward = &v + return s +} + +// SetWhitelistedNames sets the WhitelistedNames field's value. +func (s *CookiePreference) SetWhitelistedNames(v *CookieNames) *CookiePreference { + s.WhitelistedNames = v + return s +} + // The request to create a new origin access identity. type CreateCloudFrontOriginAccessIdentityInput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` - // The origin access identity's configuration information. + // The current configuration information for the identity. // // CloudFrontOriginAccessIdentityConfig is a required field CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `locationName:"CloudFrontOriginAccessIdentityConfig" type:"structure" required:"true"` @@ -3028,6 +3350,12 @@ func (s *CreateCloudFrontOriginAccessIdentityInput) Validate() error { return nil } +// SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value. +func (s *CreateCloudFrontOriginAccessIdentityInput) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *CreateCloudFrontOriginAccessIdentityInput { + s.CloudFrontOriginAccessIdentityConfig = v + return s +} + // The returned result of the corresponding request. type CreateCloudFrontOriginAccessIdentityOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` @@ -3053,6 +3381,24 @@ func (s CreateCloudFrontOriginAccessIdentityOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentity sets the CloudFrontOriginAccessIdentity field's value. +func (s *CreateCloudFrontOriginAccessIdentityOutput) SetCloudFrontOriginAccessIdentity(v *OriginAccessIdentity) *CreateCloudFrontOriginAccessIdentityOutput { + s.CloudFrontOriginAccessIdentity = v + return s +} + +// SetETag sets the ETag field's value. +func (s *CreateCloudFrontOriginAccessIdentityOutput) SetETag(v string) *CreateCloudFrontOriginAccessIdentityOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateCloudFrontOriginAccessIdentityOutput) SetLocation(v string) *CreateCloudFrontOriginAccessIdentityOutput { + s.Location = &v + return s +} + // The request to create a new distribution. type CreateDistributionInput struct { _ struct{} `type:"structure" payload:"DistributionConfig"` @@ -3091,6 +3437,12 @@ func (s *CreateDistributionInput) Validate() error { return nil } +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *CreateDistributionInput) SetDistributionConfig(v *DistributionConfig) *CreateDistributionInput { + s.DistributionConfig = v + return s +} + // The returned result of the corresponding request. type CreateDistributionOutput struct { _ struct{} `type:"structure" payload:"Distribution"` @@ -3116,7 +3468,25 @@ func (s CreateDistributionOutput) GoString() string { return s.String() } -// The request to create a new distribution with tags +// SetDistribution sets the Distribution field's value. +func (s *CreateDistributionOutput) SetDistribution(v *Distribution) *CreateDistributionOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *CreateDistributionOutput) SetETag(v string) *CreateDistributionOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateDistributionOutput) SetLocation(v string) *CreateDistributionOutput { + s.Location = &v + return s +} + +// The request to create a new distribution with tags. type CreateDistributionWithTagsInput struct { _ struct{} `type:"structure" payload:"DistributionConfigWithTags"` @@ -3154,6 +3524,12 @@ func (s *CreateDistributionWithTagsInput) Validate() error { return nil } +// SetDistributionConfigWithTags sets the DistributionConfigWithTags field's value. +func (s *CreateDistributionWithTagsInput) SetDistributionConfigWithTags(v *DistributionConfigWithTags) *CreateDistributionWithTagsInput { + s.DistributionConfigWithTags = v + return s +} + // The returned result of the corresponding request. type CreateDistributionWithTagsOutput struct { _ struct{} `type:"structure" payload:"Distribution"` @@ -3179,6 +3555,24 @@ func (s CreateDistributionWithTagsOutput) GoString() string { return s.String() } +// SetDistribution sets the Distribution field's value. +func (s *CreateDistributionWithTagsOutput) SetDistribution(v *Distribution) *CreateDistributionWithTagsOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *CreateDistributionWithTagsOutput) SetETag(v string) *CreateDistributionWithTagsOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateDistributionWithTagsOutput) SetLocation(v string) *CreateDistributionWithTagsOutput { + s.Location = &v + return s +} + // The request to create an invalidation. type CreateInvalidationInput struct { _ struct{} `type:"structure" payload:"InvalidationBatch"` @@ -3225,6 +3619,18 @@ func (s *CreateInvalidationInput) Validate() error { return nil } +// SetDistributionId sets the DistributionId field's value. +func (s *CreateInvalidationInput) SetDistributionId(v string) *CreateInvalidationInput { + s.DistributionId = &v + return s +} + +// SetInvalidationBatch sets the InvalidationBatch field's value. +func (s *CreateInvalidationInput) SetInvalidationBatch(v *InvalidationBatch) *CreateInvalidationInput { + s.InvalidationBatch = v + return s +} + // The returned result of the corresponding request. type CreateInvalidationOutput struct { _ struct{} `type:"structure" payload:"Invalidation"` @@ -3247,6 +3653,18 @@ func (s CreateInvalidationOutput) GoString() string { return s.String() } +// SetInvalidation sets the Invalidation field's value. +func (s *CreateInvalidationOutput) SetInvalidation(v *Invalidation) *CreateInvalidationOutput { + s.Invalidation = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateInvalidationOutput) SetLocation(v string) *CreateInvalidationOutput { + s.Location = &v + return s +} + // The request to create a new streaming distribution. type CreateStreamingDistributionInput struct { _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` @@ -3285,6 +3703,12 @@ func (s *CreateStreamingDistributionInput) Validate() error { return nil } +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *CreateStreamingDistributionInput) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *CreateStreamingDistributionInput { + s.StreamingDistributionConfig = v + return s +} + // The returned result of the corresponding request. type CreateStreamingDistributionOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` @@ -3310,6 +3734,24 @@ func (s CreateStreamingDistributionOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CreateStreamingDistributionOutput) SetETag(v string) *CreateStreamingDistributionOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateStreamingDistributionOutput) SetLocation(v string) *CreateStreamingDistributionOutput { + s.Location = &v + return s +} + +// SetStreamingDistribution sets the StreamingDistribution field's value. +func (s *CreateStreamingDistributionOutput) SetStreamingDistribution(v *StreamingDistribution) *CreateStreamingDistributionOutput { + s.StreamingDistribution = v + return s +} + // The request to create a new streaming distribution with tags. type CreateStreamingDistributionWithTagsInput struct { _ struct{} `type:"structure" payload:"StreamingDistributionConfigWithTags"` @@ -3348,11 +3790,16 @@ func (s *CreateStreamingDistributionWithTagsInput) Validate() error { return nil } +// SetStreamingDistributionConfigWithTags sets the StreamingDistributionConfigWithTags field's value. +func (s *CreateStreamingDistributionWithTagsInput) SetStreamingDistributionConfigWithTags(v *StreamingDistributionConfigWithTags) *CreateStreamingDistributionWithTagsInput { + s.StreamingDistributionConfigWithTags = v + return s +} + // The returned result of the corresponding request. type CreateStreamingDistributionWithTagsOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` - // The current version of the streaming distribution created. ETag *string `location:"header" locationName:"ETag" type:"string"` // The fully qualified URI of the new streaming distribution resource just created. @@ -3373,42 +3820,102 @@ func (s CreateStreamingDistributionWithTagsOutput) GoString() string { return s.String() } -// A complex type that describes how you'd prefer CloudFront to respond to requests -// that result in either a 4xx or 5xx response. You can control whether a custom -// error page should be displayed, what the desired response code should be -// for this error page and how long should the error response be cached by CloudFront. -// If you don't want to specify any custom error responses, include only an -// empty CustomErrorResponses element. To delete all custom error responses -// in an existing distribution, update the distribution configuration and include -// only an empty CustomErrorResponses element. To add, change, or remove one -// or more custom error responses, update the distribution configuration and -// specify all of the custom error responses that you want to include in the -// updated distribution. +// SetETag sets the ETag field's value. +func (s *CreateStreamingDistributionWithTagsOutput) SetETag(v string) *CreateStreamingDistributionWithTagsOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateStreamingDistributionWithTagsOutput) SetLocation(v string) *CreateStreamingDistributionWithTagsOutput { + s.Location = &v + return s +} + +// SetStreamingDistribution sets the StreamingDistribution field's value. +func (s *CreateStreamingDistributionWithTagsOutput) SetStreamingDistribution(v *StreamingDistribution) *CreateStreamingDistributionWithTagsOutput { + s.StreamingDistribution = v + return s +} + +// A complex type that controls: +// +// * Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range +// with custom error messages before returning the response to the viewer. +// +// +// * How long CloudFront caches HTTP status codes in the 4xx and 5xx range. +// +// For more information about custom error pages, see Customizing Error Responses +// (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) +// in the Amazon CloudFront Developer Guide. type CustomErrorResponse struct { _ struct{} `type:"structure"` - // The minimum amount of time you want HTTP error codes to stay in CloudFront - // caches before CloudFront queries your origin to see whether the object has - // been updated. You can specify a value from 0 to 31,536,000. + // The minimum amount of time, in seconds, that you want CloudFront to cache + // the HTTP status code specified in ErrorCode. When this time period has elapsed, + // CloudFront queries your origin to see whether the problem that caused the + // error has been resolved and the requested object is now available. + // + // If you don't want to specify a value, include an empty element, , + // in the XML document. + // + // For more information, see Customizing Error Responses (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + // in the Amazon CloudFront Developer Guide. ErrorCachingMinTTL *int64 `type:"long"` - // The 4xx or 5xx HTTP status code that you want to customize. For a list of - // HTTP status codes that you can customize, see CloudFront documentation. + // The HTTP status code for which you want to specify a custom error page and/or + // a caching duration. // // ErrorCode is a required field ErrorCode *int64 `type:"integer" required:"true"` - // The HTTP status code that you want CloudFront to return with the custom error - // page to the viewer. For a list of HTTP status codes that you can replace, - // see CloudFront Documentation. + // The HTTP status code that you want CloudFront to return to the viewer along + // with the custom error page. There are a variety of reasons that you might + // want CloudFront to return a status code different from the status code that + // your origin returned to CloudFront, for example: + // + // * Some Internet devices (some firewalls and corporate proxies, for example) + // intercept HTTP 4xx and 5xx and prevent the response from being returned + // to the viewer. If you substitute 200, the response typically won't be + // intercepted. + // + // * If you don't care about distinguishing among different client errors + // or server errors, you can specify 400 or 500 as the ResponseCode for all + // 4xx or 5xx errors. + // + // * You might want to return a 200 status code (OK) and static website so + // your customers don't know that your website is down. + // + // If you specify a value for ResponseCode, you must also specify a value for + // ResponsePagePath. If you don't want to specify a value, include an empty + // element, , in the XML document. ResponseCode *string `type:"string"` - // The path of the custom error page (for example, /custom_404.html). The path - // is relative to the distribution and must begin with a slash (/). If the path - // includes any non-ASCII characters or unsafe characters as defined in RFC - // 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. - // Do not URL encode any other characters in the path, or CloudFront will not - // return the custom error page to the viewer. + // The path to the custom error page that you want CloudFront to return to a + // viewer when your origin returns the HTTP status code specified by ErrorCode, + // for example, /4xx-errors/403-forbidden.html. If you want to store your objects + // and your custom error pages in different locations, your distribution must + // include a cache behavior for which the following is true: + // + // * The value of PathPattern matches the path to your custom error messages. + // For example, suppose you saved custom error pages for 4xx errors in an + // Amazon S3 bucket in a directory named /4xx-errors. Your distribution must + // include a cache behavior for which the path pattern routes requests for + // your custom error pages to that location, for example, /4xx-errors/*. + // + // + // * The value of TargetOriginId specifies the value of the ID element for + // the origin that contains your custom error pages. + // + // If you specify a value for ResponsePagePath, you must also specify a value + // for ResponseCode. If you don't want to specify a value, include an empty + // element, , in the XML document. + // + // We recommend that you store custom error pages in an Amazon S3 bucket. If + // you store custom error pages on an HTTP server and the server starts to return + // 5xx errors, CloudFront can't get the files that you want to return to viewers + // because the origin server is unavailable. ResponsePagePath *string `type:"string"` } @@ -3435,15 +3942,50 @@ func (s *CustomErrorResponse) Validate() error { return nil } -// A complex type that contains zero or more CustomErrorResponse elements. +// SetErrorCachingMinTTL sets the ErrorCachingMinTTL field's value. +func (s *CustomErrorResponse) SetErrorCachingMinTTL(v int64) *CustomErrorResponse { + s.ErrorCachingMinTTL = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *CustomErrorResponse) SetErrorCode(v int64) *CustomErrorResponse { + s.ErrorCode = &v + return s +} + +// SetResponseCode sets the ResponseCode field's value. +func (s *CustomErrorResponse) SetResponseCode(v string) *CustomErrorResponse { + s.ResponseCode = &v + return s +} + +// SetResponsePagePath sets the ResponsePagePath field's value. +func (s *CustomErrorResponse) SetResponsePagePath(v string) *CustomErrorResponse { + s.ResponsePagePath = &v + return s +} + +// A complex type that controls: +// +// * Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range +// with custom error messages before returning the response to the viewer. +// +// * How long CloudFront caches HTTP status codes in the 4xx and 5xx range. +// +// For more information about custom error pages, see Customizing Error Responses +// (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) +// in the Amazon CloudFront Developer Guide. type CustomErrorResponses struct { _ struct{} `type:"structure"` - // Optional: A complex type that contains custom error responses for this distribution. - // If Quantity is 0, you can omit Items. + // A complex type that contains a CustomErrorResponse element for each HTTP + // status code for which you want to specify a custom error page and/or a caching + // duration. Items []*CustomErrorResponse `locationNameList:"CustomErrorResponse" type:"list"` - // The number of custom error responses for this distribution. + // The number of HTTP status codes for which you want to specify a custom error + // page and/or a caching duration. If Quantity is 0, you can omit Items. // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` @@ -3482,14 +4024,28 @@ func (s *CustomErrorResponses) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *CustomErrorResponses) SetItems(v []*CustomErrorResponse) *CustomErrorResponses { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CustomErrorResponses) SetQuantity(v int64) *CustomErrorResponses { + s.Quantity = &v + return s +} + // A complex type that contains the list of Custom Headers for each origin. type CustomHeaders struct { _ struct{} `type:"structure"` - // A complex type that contains the custom headers for this Origin. + // Optional: A list that contains one OriginCustomHeader element for each custom + // header that you want CloudFront to forward to the origin. If Quantity is + // 0, omit Items. Items []*OriginCustomHeader `locationNameList:"OriginCustomHeader" type:"list"` - // The number of custom headers for this origin. + // The number of custom headers, if any, for this distribution. // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` @@ -3528,6 +4084,18 @@ func (s *CustomHeaders) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *CustomHeaders) SetItems(v []*OriginCustomHeader) *CustomHeaders { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CustomHeaders) SetQuantity(v int64) *CustomHeaders { + s.Quantity = &v + return s +} + // A customer origin. type CustomOriginConfig struct { _ struct{} `type:"structure"` @@ -3586,73 +4154,93 @@ func (s *CustomOriginConfig) Validate() error { return nil } +// SetHTTPPort sets the HTTPPort field's value. +func (s *CustomOriginConfig) SetHTTPPort(v int64) *CustomOriginConfig { + s.HTTPPort = &v + return s +} + +// SetHTTPSPort sets the HTTPSPort field's value. +func (s *CustomOriginConfig) SetHTTPSPort(v int64) *CustomOriginConfig { + s.HTTPSPort = &v + return s +} + +// SetOriginProtocolPolicy sets the OriginProtocolPolicy field's value. +func (s *CustomOriginConfig) SetOriginProtocolPolicy(v string) *CustomOriginConfig { + s.OriginProtocolPolicy = &v + return s +} + +// SetOriginSslProtocols sets the OriginSslProtocols field's value. +func (s *CustomOriginConfig) SetOriginSslProtocols(v *OriginSslProtocols) *CustomOriginConfig { + s.OriginSslProtocols = v + return s +} + // A complex type that describes the default cache behavior if you do not specify // a CacheBehavior element or if files don't match any of the values of PathPattern -// in CacheBehavior elements.You must create exactly one default cache behavior. +// in CacheBehavior elements. You must create exactly one default cache behavior. type DefaultCacheBehavior struct { _ struct{} `type:"structure"` // A complex type that controls which HTTP methods CloudFront processes and // forwards to your Amazon S3 bucket or your custom origin. There are three - // choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards - // only GET, HEAD and OPTIONS requests. - CloudFront forwards GET, HEAD, OPTIONS, - // PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you - // may need to restrict access to your Amazon S3 bucket or to your custom origin - // so users can't perform operations that you don't want them to. For example, - // you may not want users to have permission to delete objects from your origin. + // choices: + // + // * CloudFront forwards only GET and HEAD requests. + // + // * CloudFront forwards only GET, HEAD, and OPTIONS requests. + // + // * CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE + // requests. + // + // If you pick the third choice, you may need to restrict access to your Amazon + // S3 bucket or to your custom origin so users can't perform operations that + // you don't want them to. For example, you might not want users to have permissions + // to delete objects from your origin. AllowedMethods *AllowedMethods `type:"structure"` - // Whether you want CloudFront to automatically compress content for web requests - // that include Accept-Encoding: gzip in the request header. If so, specify - // true; if not, specify false. CloudFront compresses files larger than 1000 - // bytes and less than 1 megabyte for both Amazon S3 and custom origins. When - // a CloudFront edge location is unusually busy, some files might not be compressed. - // The value of the Content-Type header must be on the list of file types that - // CloudFront will compress. For the current list, see Serving Compressed Content - // (http://docs.aws.amazon.com/console/cloudfront/compressed-content) in the - // Amazon CloudFront Developer Guide. If you configure CloudFront to compress - // content, CloudFront removes the ETag response header from the objects that - // it compresses. The ETag header indicates that the version in a CloudFront - // edge cache is identical to the version on the origin server, but after compression - // the two versions are no longer identical. As a result, for compressed objects, - // CloudFront can't use the ETag header to determine whether an expired object - // in the CloudFront edge cache is still the latest version. + // Whether you want CloudFront to automatically compress certain files for this + // cache behavior. If so, specify true; if not, specify false. For more information, + // see Serving Compressed Files (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) + // in the Amazon CloudFront Developer Guide. Compress *bool `type:"boolean"` - // If you don't configure your origin to add a Cache-Control max-age directive - // or an Expires header, DefaultTTL is the default amount of time (in seconds) - // that an object is in a CloudFront cache before CloudFront forwards another - // request to your origin to determine whether the object has been updated. - // The value that you specify applies only when your origin does not add HTTP - // headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires - // to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 - // years). + // The default amount of time that you want objects to stay in CloudFront caches + // before CloudFront forwards another request to your origin to determine whether + // the object has been updated. The value that you specify applies only when + // your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control + // s-maxage, and Expires to objects. For more information, see Specifying How + // Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + // in the Amazon CloudFront Developer Guide. DefaultTTL *int64 `type:"long"` - // A complex type that specifies how CloudFront handles query strings, cookies - // and headers. + // A complex type that specifies how CloudFront handles query strings and cookies. // // ForwardedValues is a required field ForwardedValues *ForwardedValues `type:"structure" required:"true"` - // The maximum amount of time (in seconds) that an object is in a CloudFront - // cache before CloudFront forwards another request to your origin to determine - // whether the object has been updated. The value that you specify applies only - // when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control - // s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 - // seconds (100 years). MaxTTL *int64 `type:"long"` // The minimum amount of time that you want objects to stay in CloudFront caches - // before CloudFront queries your origin to see whether the object has been - // updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years). + // before CloudFront forwards another request to your origin to determine whether + // the object has been updated. For more information, see Specifying How Long + // Objects and Errors Stay in a CloudFront Edge Cache (Expiration) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + // in the Amazon Amazon CloudFront Developer Guide. + // + // You must specify 0 for MinTTL if you configure CloudFront to forward all + // headers to your origin (under Headers, if you specify 1 for Quantity and + // * for Name). // // MinTTL is a required field MinTTL *int64 `type:"long" required:"true"` - // Indicates whether you want to distribute media files in Microsoft Smooth + // Indicates whether you want to distribute media files in the Microsoft Smooth // Streaming format using the origin that is associated with this cache behavior. - // If so, specify true; if not, specify false. + // If so, specify true; if not, specify false. If you specify true for SmoothStreaming, + // you can still distribute other content using this cache behavior if the content + // matches the value of PathPattern. SmoothStreaming *bool `type:"boolean"` // The value of ID for the origin that you want CloudFront to route requests @@ -3663,28 +4251,50 @@ type DefaultCacheBehavior struct { TargetOriginId *string `type:"string" required:"true"` // A complex type that specifies the AWS accounts, if any, that you want to - // allow to create signed URLs for private content. If you want to require signed - // URLs in requests for objects in the target origin that match the PathPattern - // for this cache behavior, specify true for Enabled, and specify the applicable - // values for Quantity and Items. For more information, go to Using a Signed - // URL to Serve Private Content in the Amazon CloudFront Developer Guide. If - // you don't want to require signed URLs in requests for objects that match - // PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To - // add, change, or remove one or more trusted signers, change Enabled to true - // (if it's currently false), change Quantity as applicable, and specify all - // of the trusted signers that you want to include in the updated distribution. + // allow to create signed URLs for private content. + // + // If you want to require signed URLs in requests for objects in the target + // origin that match the PathPattern for this cache behavior, specify true for + // Enabled, and specify the applicable values for Quantity and Items. For more + // information, see Serving Private Content through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + // in the Amazon Amazon CloudFront Developer Guide. + // + // If you don't want to require signed URLs in requests for objects that match + // PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. + // + // To add, change, or remove one or more trusted signers, change Enabled to + // true (if it's currently false), change Quantity as applicable, and specify + // all of the trusted signers that you want to include in the updated distribution. // // TrustedSigners is a required field TrustedSigners *TrustedSigners `type:"structure" required:"true"` - // Use this element to specify the protocol that users can use to access the - // files in the origin specified by TargetOriginId when a request matches the - // path pattern in PathPattern. If you want CloudFront to allow end users to - // use any available protocol, specify allow-all. If you want CloudFront to - // require HTTPS, specify https. If you want CloudFront to respond to an HTTP - // request with an HTTP status code of 301 (Moved Permanently) and the HTTPS - // URL, specify redirect-to-https. The viewer then resubmits the request using - // the HTTPS URL. + // The protocol that viewers can use to access the files in the origin specified + // by TargetOriginId when a request matches the path pattern in PathPattern. + // You can specify the following options: + // + // * allow-all: Viewers can use HTTP or HTTPS. + // + // * redirect-to-https: If a viewer submits an HTTP request, CloudFront returns + // an HTTP status code of 301 (Moved Permanently) to the viewer along with + // the HTTPS URL. The viewer then resubmits the request using the new URL. + // + // * https-only: If a viewer sends an HTTP request, CloudFront returns an + // HTTP status code of 403 (Forbidden). + // + // For more information about requiring the HTTPS protocol, see Using an HTTPS + // Connection to Access Your Objects (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) + // in the Amazon CloudFront Developer Guide. + // + // The only way to guarantee that viewers retrieve an object that was fetched + // from the origin using HTTPS is never to use any other protocol to fetch the + // object. If you have recently changed from HTTP to HTTPS, we recommend that + // you clear your objects' cache because cached objects are protocol agnostic. + // That means that an edge location will return an object from the cache regardless + // of whether the current request protocol matches the protocol used previously. + // For more information, see Specifying How Long Objects and Errors Stay in + // a CloudFront Edge Cache (Expiration) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + // in the Amazon CloudFront Developer Guide. // // ViewerProtocolPolicy is a required field ViewerProtocolPolicy *string `type:"string" required:"true" enum:"ViewerProtocolPolicy"` @@ -3740,11 +4350,71 @@ func (s *DefaultCacheBehavior) Validate() error { return nil } -// The request to delete a origin access identity. +// SetAllowedMethods sets the AllowedMethods field's value. +func (s *DefaultCacheBehavior) SetAllowedMethods(v *AllowedMethods) *DefaultCacheBehavior { + s.AllowedMethods = v + return s +} + +// SetCompress sets the Compress field's value. +func (s *DefaultCacheBehavior) SetCompress(v bool) *DefaultCacheBehavior { + s.Compress = &v + return s +} + +// SetDefaultTTL sets the DefaultTTL field's value. +func (s *DefaultCacheBehavior) SetDefaultTTL(v int64) *DefaultCacheBehavior { + s.DefaultTTL = &v + return s +} + +// SetForwardedValues sets the ForwardedValues field's value. +func (s *DefaultCacheBehavior) SetForwardedValues(v *ForwardedValues) *DefaultCacheBehavior { + s.ForwardedValues = v + return s +} + +// SetMaxTTL sets the MaxTTL field's value. +func (s *DefaultCacheBehavior) SetMaxTTL(v int64) *DefaultCacheBehavior { + s.MaxTTL = &v + return s +} + +// SetMinTTL sets the MinTTL field's value. +func (s *DefaultCacheBehavior) SetMinTTL(v int64) *DefaultCacheBehavior { + s.MinTTL = &v + return s +} + +// SetSmoothStreaming sets the SmoothStreaming field's value. +func (s *DefaultCacheBehavior) SetSmoothStreaming(v bool) *DefaultCacheBehavior { + s.SmoothStreaming = &v + return s +} + +// SetTargetOriginId sets the TargetOriginId field's value. +func (s *DefaultCacheBehavior) SetTargetOriginId(v string) *DefaultCacheBehavior { + s.TargetOriginId = &v + return s +} + +// SetTrustedSigners sets the TrustedSigners field's value. +func (s *DefaultCacheBehavior) SetTrustedSigners(v *TrustedSigners) *DefaultCacheBehavior { + s.TrustedSigners = v + return s +} + +// SetViewerProtocolPolicy sets the ViewerProtocolPolicy field's value. +func (s *DefaultCacheBehavior) SetViewerProtocolPolicy(v string) *DefaultCacheBehavior { + s.ViewerProtocolPolicy = &v + return s +} + +// Deletes a origin access identity. type DeleteCloudFrontOriginAccessIdentityInput struct { _ struct{} `type:"structure"` - // The origin access identity's id. + // The origin access identity's ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -3777,6 +4447,18 @@ func (s *DeleteCloudFrontOriginAccessIdentityInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteCloudFrontOriginAccessIdentityInput) SetId(v string) *DeleteCloudFrontOriginAccessIdentityInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *DeleteCloudFrontOriginAccessIdentityInput) SetIfMatch(v string) *DeleteCloudFrontOriginAccessIdentityInput { + s.IfMatch = &v + return s +} + type DeleteCloudFrontOriginAccessIdentityOutput struct { _ struct{} `type:"structure"` } @@ -3791,16 +4473,50 @@ func (s DeleteCloudFrontOriginAccessIdentityOutput) GoString() string { return s.String() } -// The request to delete a distribution. +// This action deletes a web distribution. To delete a web distribution using +// the CloudFront API, perform the following steps. +// +// To delete a web distribution using the CloudFront API: +// +// Disable the web distribution +// +// Submit a GET Distribution Config request to get the current configuration +// and the Etag header for the distribution. +// +// Update the XML document that was returned in the response to your GET Distribution +// Config request to change the value of Enabled to false. +// +// Submit a PUT Distribution Config request to update the configuration for +// your distribution. In the request body, include the XML document that you +// updated in Step 3. Set the value of the HTTP If-Match header to the value +// of the ETag header that CloudFront returned when you submitted the GET Distribution +// Config request in Step 2. +// +// Review the response to the PUT Distribution Config request to confirm that +// the distribution was successfully disabled. +// +// Submit a GET Distribution request to confirm that your changes have propagated. +// When propagation is complete, the value of Status is Deployed. +// +// Submit a DELETE Distribution request. Set the value of the HTTP If-Match +// header to the value of the ETag header that CloudFront returned when you +// submitted the GET Distribution Config request in Step 6. +// +// Review the response to your DELETE Distribution request to confirm that the +// distribution was successfully deleted. +// +// For information about deleting a distribution using the CloudFront console, +// see Deleting a Distribution (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html) +// in the Amazon CloudFront Developer Guide. type DeleteDistributionInput struct { _ struct{} `type:"structure"` - // The distribution id. + // The distribution ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The value of the ETag header you received when you disabled the distribution. + // The value of the ETag header that you received when you disabled the distribution. // For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` } @@ -3828,6 +4544,18 @@ func (s *DeleteDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteDistributionInput) SetId(v string) *DeleteDistributionInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *DeleteDistributionInput) SetIfMatch(v string) *DeleteDistributionInput { + s.IfMatch = &v + return s +} + type DeleteDistributionOutput struct { _ struct{} `type:"structure"` } @@ -3846,12 +4574,12 @@ func (s DeleteDistributionOutput) GoString() string { type DeleteStreamingDistributionInput struct { _ struct{} `type:"structure"` - // The distribution id. + // The distribution ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The value of the ETag header you received when you disabled the streaming + // The value of the ETag header that you received when you disabled the streaming // distribution. For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` } @@ -3879,6 +4607,18 @@ func (s *DeleteStreamingDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteStreamingDistributionInput) SetId(v string) *DeleteStreamingDistributionInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *DeleteStreamingDistributionInput) SetIfMatch(v string) *DeleteStreamingDistributionInput { + s.IfMatch = &v + return s +} + type DeleteStreamingDistributionOutput struct { _ struct{} `type:"structure"` } @@ -3893,12 +4633,12 @@ func (s DeleteStreamingDistributionOutput) GoString() string { return s.String() } -// A distribution. +// The distribution's information. type Distribution struct { _ struct{} `type:"structure"` // The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, - // where 123456789012 is your AWS account Id. + // where 123456789012 is your AWS account ID. // // ARN is a required field ARN *string `type:"string" required:"true"` @@ -3915,7 +4655,8 @@ type Distribution struct { // ActiveTrustedSigners is a required field ActiveTrustedSigners *ActiveTrustedSigners `type:"structure" required:"true"` - // The current configuration information for the distribution. + // The current configuration information for the distribution. Send a GET request + // to the /CloudFront API version/distribution ID/config resource. // // DistributionConfig is a required field DistributionConfig *DistributionConfig `type:"structure" required:"true"` @@ -3942,7 +4683,7 @@ type Distribution struct { // This response element indicates the current status of the distribution. When // the status is Deployed, the distribution's information is fully propagated - // throughout the Amazon CloudFront system. + // to all CloudFront edge locations. // // Status is a required field Status *string `type:"string" required:"true"` @@ -3958,7 +4699,55 @@ func (s Distribution) GoString() string { return s.String() } -// A distribution Configuration. +// SetARN sets the ARN field's value. +func (s *Distribution) SetARN(v string) *Distribution { + s.ARN = &v + return s +} + +// SetActiveTrustedSigners sets the ActiveTrustedSigners field's value. +func (s *Distribution) SetActiveTrustedSigners(v *ActiveTrustedSigners) *Distribution { + s.ActiveTrustedSigners = v + return s +} + +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *Distribution) SetDistributionConfig(v *DistributionConfig) *Distribution { + s.DistributionConfig = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *Distribution) SetDomainName(v string) *Distribution { + s.DomainName = &v + return s +} + +// SetId sets the Id field's value. +func (s *Distribution) SetId(v string) *Distribution { + s.Id = &v + return s +} + +// SetInProgressInvalidationBatches sets the InProgressInvalidationBatches field's value. +func (s *Distribution) SetInProgressInvalidationBatches(v int64) *Distribution { + s.InProgressInvalidationBatches = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *Distribution) SetLastModifiedTime(v time.Time) *Distribution { + s.LastModifiedTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Distribution) SetStatus(v string) *Distribution { + s.Status = &v + return s +} + +// A distribution configuration. type DistributionConfig struct { _ struct{} `type:"structure"` @@ -3969,57 +4758,142 @@ type DistributionConfig struct { // A complex type that contains zero or more CacheBehavior elements. CacheBehaviors *CacheBehaviors `type:"structure"` - // A unique number that ensures the request can't be replayed. If the CallerReference - // is new (no matter the content of the DistributionConfig object), a new distribution - // is created. If the CallerReference is a value you already sent in a previous - // request to create a distribution, and the content of the DistributionConfig - // is identical to the original request (ignoring white space), the response - // includes the same information returned to the original request. If the CallerReference - // is a value you already sent in a previous request to create a distribution - // but the content of the DistributionConfig is different from the original - // request, CloudFront returns a DistributionAlreadyExists error. + // A unique value (for example, a date-time stamp) that ensures that the request + // can't be replayed. + // + // If the value of CallerReference is new (regardless of the content of the + // DistributionConfig object), CloudFront creates a new distribution. + // + // If CallerReference is a value you already sent in a previous request to create + // a distribution, and if the content of the DistributionConfig is identical + // to the original request (ignoring white space), CloudFront returns the same + // the response that it returned to the original request. + // + // If CallerReference is a value you already sent in a previous request to create + // a distribution but the content of the DistributionConfig is different from + // the original request, CloudFront returns a DistributionAlreadyExists error. // // CallerReference is a required field CallerReference *string `type:"string" required:"true"` // Any comments you want to include about the distribution. // + // If you don't want to specify a comment, include an empty Comment element. + // + // To delete an existing comment, update the distribution configuration and + // include an empty Comment element. + // + // To add or change a comment, update the distribution configuration and specify + // the new comment. + // // Comment is a required field Comment *string `type:"string" required:"true"` - // A complex type that contains zero or more CustomErrorResponse elements. + // A complex type that controls the following: + // + // * Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range + // with custom error messages before returning the response to the viewer. + // + // * How long CloudFront caches HTTP status codes in the 4xx and 5xx range. + // + // For more information about custom error pages, see Customizing Error Responses + // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + // in the Amazon CloudFront Developer Guide. CustomErrorResponses *CustomErrorResponses `type:"structure"` // A complex type that describes the default cache behavior if you do not specify // a CacheBehavior element or if files don't match any of the values of PathPattern - // in CacheBehavior elements.You must create exactly one default cache behavior. + // in CacheBehavior elements. You must create exactly one default cache behavior. // // DefaultCacheBehavior is a required field DefaultCacheBehavior *DefaultCacheBehavior `type:"structure" required:"true"` - // The object that you want CloudFront to return (for example, index.html) when - // an end user requests the root URL for your distribution (http://www.example.com) - // instead of an object in your distribution (http://www.example.com/index.html). + // The object that you want CloudFront to request from your origin (for example, + // index.html) when a viewer requests the root URL for your distribution (http://www.example.com) + // instead of an object in your distribution (http://www.example.com/product-description.html). // Specifying a default root object avoids exposing the contents of your distribution. + // + // Specify only the object name, for example, index.html. Do not add a / before + // the object name. + // // If you don't want to specify a default root object when you create a distribution, - // include an empty DefaultRootObject element. To delete the default root object - // from an existing distribution, update the distribution configuration and - // include an empty DefaultRootObject element. To replace the default root object, - // update the distribution configuration and specify the new object. + // include an empty DefaultRootObject element. + // + // To delete the default root object from an existing distribution, update the + // distribution configuration and include an empty DefaultRootObject element. + // + // To replace the default root object, update the distribution configuration + // and specify the new object. + // + // For more information about the default root object, see Creating a Default + // Root Object (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html) + // in the Amazon CloudFront Developer Guide. DefaultRootObject *string `type:"string"` - // Whether the distribution is enabled to accept end user requests for content. + // Specifies whether you want CloudFront to save access logs to an Amazon S3 + // bucket. + // + // If you do not want to enable logging when you create a distribution, or if + // you want to disable logging for an existing distribution, specify false for + // Enabled, and specify empty Bucket and Prefix elements. + // + // If you specify false for Enabled but you specify values for Bucket and Prefix, + // the values are automatically deleted. // // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` // (Optional) Specify the maximum HTTP version that you want viewers to use // to communicate with CloudFront. The default value for new web distributions - // is http2. Viewers that don't support HTTP/2 will automatically use an earlier - // version. + // is http2. Viewers that don't support HTTP/2 automatically use an earlier + // HTTP version. + // + // For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or + // later, and must support Server Name Identification (SNI). + // + // In general, configuring CloudFront to communicate with viewers using HTTP/2 + // reduces latency. You can improve performance by optimizing for HTTP/2. For + // more information, do an Internet search for "http/2 optimization." HttpVersion *string `type:"string" enum:"HttpVersion"` + // If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address + // for your distribution, specify true. If you specify false, CloudFront responds + // to IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses. + // This allows viewers to submit a second request, for an IPv4 address for your + // distribution. + // + // In general, you should enable IPv6 if you have users on IPv6 networks who + // want to access your content. However, if you're using signed URLs or signed + // cookies to restrict access to your content, and if you're using a custom + // policy that includes the IpAddress parameter to restrict the IP addresses + // that can access your content, do not enable IPv6. If you want to restrict + // access to some content by IP address and not restrict access to other content + // (or restrict access but not by IP address), you can create two distributions. + // For more information, see Creating a Signed URL Using a Custom Policy (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html) + // in the Amazon CloudFront Developer Guide. + // + // If you're using an Amazon Route 53 alias resource record set to route traffic + // to your CloudFront distribution, you need to create a second alias resource + // record set when both of the following are true: + // + // * You enable IPv6 for the distribution + // + // * You're using alternate domain names in the URLs for your objects + // + // For more information, see Routing Traffic to an Amazon CloudFront Web Distribution + // by Using Your Domain Name (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html) + // in the Amazon Route 53 Developer Guide. + // + // If you created a CNAME resource record set, either with Amazon Route 53 or + // with another DNS service, you don't need to make any changes. A CNAME record + // will route traffic to your distribution regardless of the IP address format + // of the viewer request. + IsIPV6Enabled *bool `type:"boolean"` + // A complex type that controls whether access logs are written for the distribution. + // + // For more information about logging, see Access Logs (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html) + // in the Amazon CloudFront Developer Guide. Logging *LoggingConfig `type:"structure"` // A complex type that contains information about origins for this distribution. @@ -4027,19 +4901,54 @@ type DistributionConfig struct { // Origins is a required field Origins *Origins `type:"structure" required:"true"` - // A complex type that contains information about price class for this distribution. + // The price class that corresponds with the maximum price that you want to + // pay for CloudFront service. If you specify PriceClass_All, CloudFront responds + // to requests for your objects from all CloudFront edge locations. + // + // If you specify a price class other than PriceClass_All, CloudFront serves + // your objects from the CloudFront edge location that has the lowest latency + // among the edge locations in your price class. Viewers who are in or near + // regions that are excluded from your specified price class may encounter slower + // performance. + // + // For more information about price classes, see Choosing the Price Class for + // a CloudFront Distribution (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html) + // in the Amazon CloudFront Developer Guide. For information about CloudFront + // pricing, including how price classes map to CloudFront regions, see Amazon + // CloudFront Pricing (https://aws.amazon.com/cloudfront/pricing/). PriceClass *string `type:"string" enum:"PriceClass"` // A complex type that identifies ways in which you want to restrict distribution // of your content. Restrictions *Restrictions `type:"structure"` - // A complex type that contains information about viewer certificates for this - // distribution. + // A complex type that specifies the following: + // + // * Which SSL/TLS certificate to use when viewers request objects using + // HTTPS + // + // * Whether you want CloudFront to use dedicated IP addresses or SNI when + // you're using alternate domain names in your object names + // + // * The minimum protocol version that you want CloudFront to use when communicating + // with viewers + // + // For more information, see Using an HTTPS Connection to Access Your Objects + // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) + // in the Amazon Amazon CloudFront Developer Guide. ViewerCertificate *ViewerCertificate `type:"structure"` - // (Optional) If you're using AWS WAF to filter CloudFront requests, the Id - // of the AWS WAF web ACL that is associated with the distribution. + // A unique identifier that specifies the AWS WAF web ACL, if any, to associate + // with this distribution. + // + // AWS WAF is a web application firewall that lets you monitor the HTTP and + // HTTPS requests that are forwarded to CloudFront, and lets you control access + // to your content. Based on conditions that you specify, such as the IP addresses + // that requests originate from or the values of query strings, CloudFront responds + // to requests either with the requested content or with an HTTP 403 status + // code (Forbidden). You can also configure CloudFront to return a custom error + // page when a request is blocked. For more information about AWS WAF, see the + // AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html). WebACLId *string `type:"string"` } @@ -4113,12 +5022,108 @@ func (s *DistributionConfig) Validate() error { return nil } +// SetAliases sets the Aliases field's value. +func (s *DistributionConfig) SetAliases(v *Aliases) *DistributionConfig { + s.Aliases = v + return s +} + +// SetCacheBehaviors sets the CacheBehaviors field's value. +func (s *DistributionConfig) SetCacheBehaviors(v *CacheBehaviors) *DistributionConfig { + s.CacheBehaviors = v + return s +} + +// SetCallerReference sets the CallerReference field's value. +func (s *DistributionConfig) SetCallerReference(v string) *DistributionConfig { + s.CallerReference = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *DistributionConfig) SetComment(v string) *DistributionConfig { + s.Comment = &v + return s +} + +// SetCustomErrorResponses sets the CustomErrorResponses field's value. +func (s *DistributionConfig) SetCustomErrorResponses(v *CustomErrorResponses) *DistributionConfig { + s.CustomErrorResponses = v + return s +} + +// SetDefaultCacheBehavior sets the DefaultCacheBehavior field's value. +func (s *DistributionConfig) SetDefaultCacheBehavior(v *DefaultCacheBehavior) *DistributionConfig { + s.DefaultCacheBehavior = v + return s +} + +// SetDefaultRootObject sets the DefaultRootObject field's value. +func (s *DistributionConfig) SetDefaultRootObject(v string) *DistributionConfig { + s.DefaultRootObject = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *DistributionConfig) SetEnabled(v bool) *DistributionConfig { + s.Enabled = &v + return s +} + +// SetHttpVersion sets the HttpVersion field's value. +func (s *DistributionConfig) SetHttpVersion(v string) *DistributionConfig { + s.HttpVersion = &v + return s +} + +// SetIsIPV6Enabled sets the IsIPV6Enabled field's value. +func (s *DistributionConfig) SetIsIPV6Enabled(v bool) *DistributionConfig { + s.IsIPV6Enabled = &v + return s +} + +// SetLogging sets the Logging field's value. +func (s *DistributionConfig) SetLogging(v *LoggingConfig) *DistributionConfig { + s.Logging = v + return s +} + +// SetOrigins sets the Origins field's value. +func (s *DistributionConfig) SetOrigins(v *Origins) *DistributionConfig { + s.Origins = v + return s +} + +// SetPriceClass sets the PriceClass field's value. +func (s *DistributionConfig) SetPriceClass(v string) *DistributionConfig { + s.PriceClass = &v + return s +} + +// SetRestrictions sets the Restrictions field's value. +func (s *DistributionConfig) SetRestrictions(v *Restrictions) *DistributionConfig { + s.Restrictions = v + return s +} + +// SetViewerCertificate sets the ViewerCertificate field's value. +func (s *DistributionConfig) SetViewerCertificate(v *ViewerCertificate) *DistributionConfig { + s.ViewerCertificate = v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *DistributionConfig) SetWebACLId(v string) *DistributionConfig { + s.WebACLId = &v + return s +} + // A distribution Configuration and a list of tags to be associated with the // distribution. type DistributionConfigWithTags struct { _ struct{} `type:"structure"` - // A distribution Configuration. + // A distribution configuration. // // DistributionConfig is a required field DistributionConfig *DistributionConfig `type:"structure" required:"true"` @@ -4165,6 +5170,18 @@ func (s *DistributionConfigWithTags) Validate() error { return nil } +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *DistributionConfigWithTags) SetDistributionConfig(v *DistributionConfig) *DistributionConfigWithTags { + s.DistributionConfig = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DistributionConfigWithTags) SetTags(v *Tags) *DistributionConfigWithTags { + s.Tags = v + return s +} + // A distribution list. type DistributionList struct { _ struct{} `type:"structure"` @@ -4212,12 +5229,48 @@ func (s DistributionList) GoString() string { return s.String() } -// A summary of the information for an Amazon CloudFront distribution. +// SetIsTruncated sets the IsTruncated field's value. +func (s *DistributionList) SetIsTruncated(v bool) *DistributionList { + s.IsTruncated = &v + return s +} + +// SetItems sets the Items field's value. +func (s *DistributionList) SetItems(v []*DistributionSummary) *DistributionList { + s.Items = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DistributionList) SetMarker(v string) *DistributionList { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DistributionList) SetMaxItems(v int64) *DistributionList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DistributionList) SetNextMarker(v string) *DistributionList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *DistributionList) SetQuantity(v int64) *DistributionList { + s.Quantity = &v + return s +} + +// A summary of the information about a CloudFront distribution. type DistributionSummary struct { _ struct{} `type:"structure"` // The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, - // where 123456789012 is your AWS account Id. + // where 123456789012 is your AWS account ID. // // ARN is a required field ARN *string `type:"string" required:"true"` @@ -4245,17 +5298,17 @@ type DistributionSummary struct { // A complex type that describes the default cache behavior if you do not specify // a CacheBehavior element or if files don't match any of the values of PathPattern - // in CacheBehavior elements.You must create exactly one default cache behavior. + // in CacheBehavior elements. You must create exactly one default cache behavior. // // DefaultCacheBehavior is a required field DefaultCacheBehavior *DefaultCacheBehavior `type:"structure" required:"true"` - // The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net. + // The domain name that corresponds to the distribution. For example: d604721fxaaqy9.cloudfront.net. // // DomainName is a required field DomainName *string `type:"string" required:"true"` - // Whether the distribution is enabled to accept end user requests for content. + // Whether the distribution is enabled to accept user requests for content. // // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` @@ -4272,6 +5325,12 @@ type DistributionSummary struct { // Id is a required field Id *string `type:"string" required:"true"` + // Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for + // your distribution. + // + // IsIPV6Enabled is a required field + IsIPV6Enabled *bool `type:"boolean" required:"true"` + // The date and time the distribution was last modified. // // LastModifiedTime is a required field @@ -4291,15 +5350,26 @@ type DistributionSummary struct { // Restrictions is a required field Restrictions *Restrictions `type:"structure" required:"true"` - // This response element indicates the current status of the distribution. When - // the status is Deployed, the distribution's information is fully propagated - // throughout the Amazon CloudFront system. + // The current status of the distribution. When the status is Deployed, the + // distribution's information is propagated to all CloudFront edge locations. // // Status is a required field Status *string `type:"string" required:"true"` - // A complex type that contains information about viewer certificates for this - // distribution. + // A complex type that specifies the following: + // + // * Which SSL/TLS certificate to use when viewers request objects using + // HTTPS + // + // * Whether you want CloudFront to use dedicated IP addresses or SNI when + // you're using alternate domain names in your object names + // + // * The minimum protocol version that you want CloudFront to use when communicating + // with viewers + // + // For more information, see Using an HTTPS Connection to Access Your Objects + // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) + // in the Amazon Amazon CloudFront Developer Guide. // // ViewerCertificate is a required field ViewerCertificate *ViewerCertificate `type:"structure" required:"true"` @@ -4320,12 +5390,123 @@ func (s DistributionSummary) GoString() string { return s.String() } -// A complex type that specifies how CloudFront handles query strings, cookies -// and headers. +// SetARN sets the ARN field's value. +func (s *DistributionSummary) SetARN(v string) *DistributionSummary { + s.ARN = &v + return s +} + +// SetAliases sets the Aliases field's value. +func (s *DistributionSummary) SetAliases(v *Aliases) *DistributionSummary { + s.Aliases = v + return s +} + +// SetCacheBehaviors sets the CacheBehaviors field's value. +func (s *DistributionSummary) SetCacheBehaviors(v *CacheBehaviors) *DistributionSummary { + s.CacheBehaviors = v + return s +} + +// SetComment sets the Comment field's value. +func (s *DistributionSummary) SetComment(v string) *DistributionSummary { + s.Comment = &v + return s +} + +// SetCustomErrorResponses sets the CustomErrorResponses field's value. +func (s *DistributionSummary) SetCustomErrorResponses(v *CustomErrorResponses) *DistributionSummary { + s.CustomErrorResponses = v + return s +} + +// SetDefaultCacheBehavior sets the DefaultCacheBehavior field's value. +func (s *DistributionSummary) SetDefaultCacheBehavior(v *DefaultCacheBehavior) *DistributionSummary { + s.DefaultCacheBehavior = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DistributionSummary) SetDomainName(v string) *DistributionSummary { + s.DomainName = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *DistributionSummary) SetEnabled(v bool) *DistributionSummary { + s.Enabled = &v + return s +} + +// SetHttpVersion sets the HttpVersion field's value. +func (s *DistributionSummary) SetHttpVersion(v string) *DistributionSummary { + s.HttpVersion = &v + return s +} + +// SetId sets the Id field's value. +func (s *DistributionSummary) SetId(v string) *DistributionSummary { + s.Id = &v + return s +} + +// SetIsIPV6Enabled sets the IsIPV6Enabled field's value. +func (s *DistributionSummary) SetIsIPV6Enabled(v bool) *DistributionSummary { + s.IsIPV6Enabled = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DistributionSummary) SetLastModifiedTime(v time.Time) *DistributionSummary { + s.LastModifiedTime = &v + return s +} + +// SetOrigins sets the Origins field's value. +func (s *DistributionSummary) SetOrigins(v *Origins) *DistributionSummary { + s.Origins = v + return s +} + +// SetPriceClass sets the PriceClass field's value. +func (s *DistributionSummary) SetPriceClass(v string) *DistributionSummary { + s.PriceClass = &v + return s +} + +// SetRestrictions sets the Restrictions field's value. +func (s *DistributionSummary) SetRestrictions(v *Restrictions) *DistributionSummary { + s.Restrictions = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DistributionSummary) SetStatus(v string) *DistributionSummary { + s.Status = &v + return s +} + +// SetViewerCertificate sets the ViewerCertificate field's value. +func (s *DistributionSummary) SetViewerCertificate(v *ViewerCertificate) *DistributionSummary { + s.ViewerCertificate = v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *DistributionSummary) SetWebACLId(v string) *DistributionSummary { + s.WebACLId = &v + return s +} + +// A complex type that specifies how CloudFront handles query strings and cookies. type ForwardedValues struct { _ struct{} `type:"structure"` - // A complex type that specifies how CloudFront handles cookies. + // A complex type that specifies whether you want CloudFront to forward cookies + // to the origin and, if so, which ones. For more information about forwarding + // cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies + // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) + // in the Amazon CloudFront Developer Guide. // // Cookies is a required field Cookies *CookiePreference `type:"structure" required:"true"` @@ -4339,17 +5520,24 @@ type ForwardedValues struct { // string parameters. CloudFront behavior depends on the value of QueryString // and on the values that you specify for QueryStringCacheKeys, if any: // - // If you specify true for QueryString and you don't specify any values for + // If you specify true for QueryString and you don't specify any values for // QueryStringCacheKeys, CloudFront forwards all query string parameters to // the origin and caches based on all query string parameters. Depending on // how many query string parameters and values you have, this can adversely // affect performance because CloudFront must forward more requests to the origin. + // // If you specify true for QueryString and you specify one or more values for // QueryStringCacheKeys, CloudFront forwards all query string parameters to // the origin, but it only caches based on the query string parameters that - // you specify. If you specify false for QueryString, CloudFront doesn't forward - // any query string parameters to the origin, and doesn't cache based on query - // string parameters. + // you specify. + // + // If you specify false for QueryString, CloudFront doesn't forward any query + // string parameters to the origin, and doesn't cache based on query string + // parameters. + // + // For more information, see Configuring CloudFront to Cache Based on Query + // String Parameters (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html) + // in the Amazon CloudFront Developer Guide. // // QueryString is a required field QueryString *bool `type:"boolean" required:"true"` @@ -4400,24 +5588,48 @@ func (s *ForwardedValues) Validate() error { return nil } +// SetCookies sets the Cookies field's value. +func (s *ForwardedValues) SetCookies(v *CookiePreference) *ForwardedValues { + s.Cookies = v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *ForwardedValues) SetHeaders(v *Headers) *ForwardedValues { + s.Headers = v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *ForwardedValues) SetQueryString(v bool) *ForwardedValues { + s.QueryString = &v + return s +} + +// SetQueryStringCacheKeys sets the QueryStringCacheKeys field's value. +func (s *ForwardedValues) SetQueryStringCacheKeys(v *QueryStringCacheKeys) *ForwardedValues { + s.QueryStringCacheKeys = v + return s +} + // A complex type that controls the countries in which your content is distributed. -// For more information about geo restriction, go to Customizing Error Responses -// in the Amazon CloudFront Developer Guide. CloudFront determines the location -// of your users using MaxMind GeoIP databases. For information about the accuracy -// of these databases, see How accurate are your GeoIP databases? on the MaxMind -// website. +// CloudFront determines the location of your users using MaxMind GeoIP databases. type GeoRestriction struct { _ struct{} `type:"structure"` // A complex type that contains a Location element for each country in which // you want CloudFront either to distribute your content (whitelist) or not - // distribute your content (blacklist). The Location element is a two-letter, - // uppercase country code for a country that you want to include in your blacklist - // or whitelist. Include one Location element for each country. CloudFront and - // MaxMind both use ISO 3166 country codes. For the current list of countries - // and the corresponding codes, see ISO 3166-1-alpha-2 code on the International - // Organization for Standardization website. You can also refer to the country - // list in the CloudFront console, which includes both country names and codes. + // distribute your content (blacklist). + // + // The Location element is a two-letter, uppercase country code for a country + // that you want to include in your blacklist or whitelist. Include one Location + // element for each country. + // + // CloudFront and MaxMind both use ISO 3166 country codes. For the current list + // of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on + // the International Organization for Standardization website. You can also + // refer to the country list in the CloudFront console, which includes both + // country names and codes. Items []*string `locationNameList:"Location" type:"list"` // When geo restriction is enabled, this is the number of countries in your @@ -4428,11 +5640,16 @@ type GeoRestriction struct { Quantity *int64 `type:"integer" required:"true"` // The method that you want to use to restrict distribution of your content - // by country: - none: No geo restriction is enabled, meaning access to content - // is not restricted by client geo location. - blacklist: The Location elements - // specify the countries in which you do not want CloudFront to distribute your - // content. - whitelist: The Location elements specify the countries in which - // you want CloudFront to distribute your content. + // by country: + // + // * none: No geo restriction is enabled, meaning access to content is not + // restricted by client geo location. + // + // * blacklist: The Location elements specify the countries in which you + // do not want CloudFront to distribute your content. + // + // * whitelist: The Location elements specify the countries in which you + // want CloudFront to distribute your content. // // RestrictionType is a required field RestrictionType *string `type:"string" required:"true" enum:"GeoRestrictionType"` @@ -4464,11 +5681,30 @@ func (s *GeoRestriction) Validate() error { return nil } -// The request to get an origin access identity's configuration. +// SetItems sets the Items field's value. +func (s *GeoRestriction) SetItems(v []*string) *GeoRestriction { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *GeoRestriction) SetQuantity(v int64) *GeoRestriction { + s.Quantity = &v + return s +} + +// SetRestrictionType sets the RestrictionType field's value. +func (s *GeoRestriction) SetRestrictionType(v string) *GeoRestriction { + s.RestrictionType = &v + return s +} + +// The origin access identity's configuration information. For more information, +// see CloudFrontOriginAccessIdentityConfigComplexType. type GetCloudFrontOriginAccessIdentityConfigInput struct { _ struct{} `type:"structure"` - // The identity's id. + // The identity's ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4497,6 +5733,12 @@ func (s *GetCloudFrontOriginAccessIdentityConfigInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetCloudFrontOriginAccessIdentityConfigInput) SetId(v string) *GetCloudFrontOriginAccessIdentityConfigInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. type GetCloudFrontOriginAccessIdentityConfigOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` @@ -4518,11 +5760,23 @@ func (s GetCloudFrontOriginAccessIdentityConfigOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value. +func (s *GetCloudFrontOriginAccessIdentityConfigOutput) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *GetCloudFrontOriginAccessIdentityConfigOutput { + s.CloudFrontOriginAccessIdentityConfig = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetCloudFrontOriginAccessIdentityConfigOutput) SetETag(v string) *GetCloudFrontOriginAccessIdentityConfigOutput { + s.ETag = &v + return s +} + // The request to get an origin access identity's information. type GetCloudFrontOriginAccessIdentityInput struct { _ struct{} `type:"structure"` - // The identity's id. + // The identity's ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4551,6 +5805,12 @@ func (s *GetCloudFrontOriginAccessIdentityInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetCloudFrontOriginAccessIdentityInput) SetId(v string) *GetCloudFrontOriginAccessIdentityInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. type GetCloudFrontOriginAccessIdentityOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` @@ -4573,11 +5833,23 @@ func (s GetCloudFrontOriginAccessIdentityOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentity sets the CloudFrontOriginAccessIdentity field's value. +func (s *GetCloudFrontOriginAccessIdentityOutput) SetCloudFrontOriginAccessIdentity(v *OriginAccessIdentity) *GetCloudFrontOriginAccessIdentityOutput { + s.CloudFrontOriginAccessIdentity = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetCloudFrontOriginAccessIdentityOutput) SetETag(v string) *GetCloudFrontOriginAccessIdentityOutput { + s.ETag = &v + return s +} + // The request to get a distribution configuration. type GetDistributionConfigInput struct { _ struct{} `type:"structure"` - // The distribution's id. + // The distribution's ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4606,6 +5878,12 @@ func (s *GetDistributionConfigInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetDistributionConfigInput) SetId(v string) *GetDistributionConfigInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. type GetDistributionConfigOutput struct { _ struct{} `type:"structure" payload:"DistributionConfig"` @@ -4627,11 +5905,23 @@ func (s GetDistributionConfigOutput) GoString() string { return s.String() } +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *GetDistributionConfigOutput) SetDistributionConfig(v *DistributionConfig) *GetDistributionConfigOutput { + s.DistributionConfig = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetDistributionConfigOutput) SetETag(v string) *GetDistributionConfigOutput { + s.ETag = &v + return s +} + // The request to get a distribution's information. type GetDistributionInput struct { _ struct{} `type:"structure"` - // The distribution's id. + // The distribution's ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4660,6 +5950,12 @@ func (s *GetDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetDistributionInput) SetId(v string) *GetDistributionInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. type GetDistributionOutput struct { _ struct{} `type:"structure" payload:"Distribution"` @@ -4681,16 +5977,28 @@ func (s GetDistributionOutput) GoString() string { return s.String() } +// SetDistribution sets the Distribution field's value. +func (s *GetDistributionOutput) SetDistribution(v *Distribution) *GetDistributionOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetDistributionOutput) SetETag(v string) *GetDistributionOutput { + s.ETag = &v + return s +} + // The request to get an invalidation's information. type GetInvalidationInput struct { _ struct{} `type:"structure"` - // The distribution's id. + // The distribution's ID. // // DistributionId is a required field DistributionId *string `location:"uri" locationName:"DistributionId" type:"string" required:"true"` - // The invalidation's id. + // The identifier for the invalidation request, for example, IDFDVBD632BHDS5. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4722,11 +6030,24 @@ func (s *GetInvalidationInput) Validate() error { return nil } +// SetDistributionId sets the DistributionId field's value. +func (s *GetInvalidationInput) SetDistributionId(v string) *GetInvalidationInput { + s.DistributionId = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetInvalidationInput) SetId(v string) *GetInvalidationInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. type GetInvalidationOutput struct { _ struct{} `type:"structure" payload:"Invalidation"` - // The invalidation's information. + // The invalidation's information. For more information, see Invalidation Complex + // Type (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/InvalidationDatatype.html). Invalidation *Invalidation `type:"structure"` } @@ -4740,11 +6061,17 @@ func (s GetInvalidationOutput) GoString() string { return s.String() } +// SetInvalidation sets the Invalidation field's value. +func (s *GetInvalidationOutput) SetInvalidation(v *Invalidation) *GetInvalidationOutput { + s.Invalidation = v + return s +} + // To request to get a streaming distribution configuration. type GetStreamingDistributionConfigInput struct { _ struct{} `type:"structure"` - // The streaming distribution's id. + // The streaming distribution's ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4773,6 +6100,12 @@ func (s *GetStreamingDistributionConfigInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetStreamingDistributionConfigInput) SetId(v string) *GetStreamingDistributionConfigInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. type GetStreamingDistributionConfigOutput struct { _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` @@ -4794,11 +6127,23 @@ func (s GetStreamingDistributionConfigOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *GetStreamingDistributionConfigOutput) SetETag(v string) *GetStreamingDistributionConfigOutput { + s.ETag = &v + return s +} + +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *GetStreamingDistributionConfigOutput) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *GetStreamingDistributionConfigOutput { + s.StreamingDistributionConfig = v + return s +} + // The request to get a streaming distribution's information. type GetStreamingDistributionInput struct { _ struct{} `type:"structure"` - // The streaming distribution's id. + // The streaming distribution's ID. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4827,6 +6172,12 @@ func (s *GetStreamingDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetStreamingDistributionInput) SetId(v string) *GetStreamingDistributionInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. type GetStreamingDistributionOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` @@ -4849,29 +6200,59 @@ func (s GetStreamingDistributionOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *GetStreamingDistributionOutput) SetETag(v string) *GetStreamingDistributionOutput { + s.ETag = &v + return s +} + +// SetStreamingDistribution sets the StreamingDistribution field's value. +func (s *GetStreamingDistributionOutput) SetStreamingDistribution(v *StreamingDistribution) *GetStreamingDistributionOutput { + s.StreamingDistribution = v + return s +} + // A complex type that specifies the headers that you want CloudFront to forward -// to the origin for this cache behavior. For the headers that you specify, -// CloudFront also caches separate versions of a given object based on the header -// values in viewer requests; this is known as varying on headers. For example, -// suppose viewer requests for logo.jpg contain a custom Product header that -// has a value of either Acme or Apex, and you configure CloudFront to vary -// on the Product header. CloudFront forwards the Product header to the origin -// and caches the response from the origin once for each header value. +// to the origin for this cache behavior. +// +// For the headers that you specify, CloudFront also caches separate versions +// of a specified object based on the header values in viewer requests. For +// example, suppose viewer requests for logo.jpg contain a custom Product header +// that has a value of either Acme or Apex, and you configure CloudFront to +// cache your content based on values in the Product header. CloudFront forwards +// the Product header to the origin and caches the response from the origin +// once for each header value. For more information about caching based on header +// values, see How CloudFront Forwards and Caches Headers (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html) +// in the Amazon CloudFront Developer Guide. type Headers struct { _ struct{} `type:"structure"` - // Optional: A complex type that contains a Name element for each header that - // you want CloudFront to forward to the origin and to vary on for this cache - // behavior. If Quantity is 0, omit Items. + // A complex type that contains one Name element for each header that you want + // CloudFront to forward to the origin and to vary on for this cache behavior. + // If Quantity is 0, omit Items. Items []*string `locationNameList:"Name" type:"list"` // The number of different headers that you want CloudFront to forward to the - // origin and to vary on for this cache behavior. The maximum number of headers - // that you can specify by name is 10. If you want CloudFront to forward all - // headers to the origin and vary on all of them, specify 1 for Quantity and - // * for Name. If you don't want CloudFront to forward any additional headers - // to the origin or to vary on any headers, specify 0 for Quantity and omit - // Items. + // origin for this cache behavior. You can configure each cache behavior in + // a web distribution to do one of the following: + // + // * Forward all headers to your origin: Specify 1 for Quantity and * for + // Name. + // + // If you configure CloudFront to forward all headers to your origin, CloudFront + // doesn't cache the objects associated with this cache behavior. Instead, + // it sends every request to the origin. + // + // * Forward a whitelist of headers you specify: Specify the number of headers + // that you want to forward, and specify the header names in Name elements. + // CloudFront caches your objects based on the values in all of the specified + // headers. CloudFront also forwards the headers that it forwards by default, + // but it caches your objects based only on the headers that you specify. + // + // + // * Forward only the default headers: Specify 0 for Quantity and omit Items. + // In this configuration, CloudFront doesn't cache based on the values in + // the request headers. // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` @@ -4900,6 +6281,18 @@ func (s *Headers) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Headers) SetItems(v []*string) *Headers { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *Headers) SetQuantity(v int64) *Headers { + s.Quantity = &v + return s +} + // An invalidation. type Invalidation struct { _ struct{} `type:"structure"` @@ -4936,29 +6329,57 @@ func (s Invalidation) GoString() string { return s.String() } +// SetCreateTime sets the CreateTime field's value. +func (s *Invalidation) SetCreateTime(v time.Time) *Invalidation { + s.CreateTime = &v + return s +} + +// SetId sets the Id field's value. +func (s *Invalidation) SetId(v string) *Invalidation { + s.Id = &v + return s +} + +// SetInvalidationBatch sets the InvalidationBatch field's value. +func (s *Invalidation) SetInvalidationBatch(v *InvalidationBatch) *Invalidation { + s.InvalidationBatch = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Invalidation) SetStatus(v string) *Invalidation { + s.Status = &v + return s +} + // An invalidation batch. type InvalidationBatch struct { _ struct{} `type:"structure"` - // A unique name that ensures the request can't be replayed. If the CallerReference - // is new (no matter the content of the Path object), a new distribution is - // created. If the CallerReference is a value you already sent in a previous - // request to create an invalidation batch, and the content of each Path element - // is identical to the original request, the response includes the same information - // returned to the original request. If the CallerReference is a value you already - // sent in a previous request to create a distribution but the content of any - // Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists - // error. + // A value that you specify to uniquely identify an invalidation request. CloudFront + // uses the value to prevent you from accidentally resubmitting an identical + // request. Whenever you create a new invalidation request, you must specify + // a new value for CallerReference and change other values in the request as + // applicable. One way to ensure that the value of CallerReference is unique + // is to use a timestamp, for example, 20120301090000. + // + // If you make a second invalidation request with the same value for CallerReference, + // and if the rest of the request is the same, CloudFront doesn't create a new + // invalidation request. Instead, CloudFront returns information about the invalidation + // request that you previously created with the same CallerReference. + // + // If CallerReference is a value you already sent in a previous invalidation + // batch request but the content of any Path is different from the original + // request, CloudFront returns an InvalidationBatchAlreadyExists error. // // CallerReference is a required field CallerReference *string `type:"string" required:"true"` - // The path of the object to invalidate. The path is relative to the distribution - // and must begin with a slash (/). You must enclose each invalidation object - // with the Path element tags. If the path includes non-ASCII characters or - // unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), - // URL encode those characters. Do not URL encode any other characters in the - // path, or CloudFront will not invalidate the old version of the updated object. + // A complex type that contains information about the objects that you want + // to invalidate. For more information, see Specifying the Objects to Invalidate + // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects) + // in the Amazon CloudFront Developer Guide. // // Paths is a required field Paths *Paths `type:"structure" required:"true"` @@ -4995,7 +6416,22 @@ func (s *InvalidationBatch) Validate() error { return nil } -// An invalidation list. +// SetCallerReference sets the CallerReference field's value. +func (s *InvalidationBatch) SetCallerReference(v string) *InvalidationBatch { + s.CallerReference = &v + return s +} + +// SetPaths sets the Paths field's value. +func (s *InvalidationBatch) SetPaths(v *Paths) *InvalidationBatch { + s.Paths = v + return s +} + +// The InvalidationList complex type describes the list of invalidation objects. +// For more information about invalidation, see Invalidating Objects (Web Distributions +// Only) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html) +// in the Amazon CloudFront Developer Guide. type InvalidationList struct { _ struct{} `type:"structure"` @@ -5008,21 +6444,21 @@ type InvalidationList struct { IsTruncated *bool `type:"boolean" required:"true"` // A complex type that contains one InvalidationSummary element for each invalidation - // batch that was created by the current AWS account. + // batch created by the current AWS account. Items []*InvalidationSummary `locationNameList:"InvalidationSummary" type:"list"` - // The value you provided for the Marker request parameter. + // The value that you provided for the Marker request parameter. // // Marker is a required field Marker *string `type:"string" required:"true"` - // The value you provided for the MaxItems request parameter. + // The value that you provided for the MaxItems request parameter. // // MaxItems is a required field MaxItems *int64 `type:"integer" required:"true"` - // If IsTruncated is true, this element is present and contains the value you - // can use for the Marker request parameter to continue listing your invalidation + // If IsTruncated is true, this element is present and contains the value that + // you can use for the Marker request parameter to continue listing your invalidation // batches where they left off. NextMarker *string `type:"string"` @@ -5042,7 +6478,43 @@ func (s InvalidationList) GoString() string { return s.String() } -// Summary of an invalidation request. +// SetIsTruncated sets the IsTruncated field's value. +func (s *InvalidationList) SetIsTruncated(v bool) *InvalidationList { + s.IsTruncated = &v + return s +} + +// SetItems sets the Items field's value. +func (s *InvalidationList) SetItems(v []*InvalidationSummary) *InvalidationList { + s.Items = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *InvalidationList) SetMarker(v string) *InvalidationList { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *InvalidationList) SetMaxItems(v int64) *InvalidationList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *InvalidationList) SetNextMarker(v string) *InvalidationList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *InvalidationList) SetQuantity(v int64) *InvalidationList { + s.Quantity = &v + return s +} + +// A summary of an invalidation request. type InvalidationSummary struct { _ struct{} `type:"structure"` @@ -5070,17 +6542,41 @@ func (s InvalidationSummary) GoString() string { return s.String() } +// SetCreateTime sets the CreateTime field's value. +func (s *InvalidationSummary) SetCreateTime(v time.Time) *InvalidationSummary { + s.CreateTime = &v + return s +} + +// SetId sets the Id field's value. +func (s *InvalidationSummary) SetId(v string) *InvalidationSummary { + s.Id = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *InvalidationSummary) SetStatus(v string) *InvalidationSummary { + s.Status = &v + return s +} + // A complex type that lists the active CloudFront key pairs, if any, that are // associated with AwsAccountNumber. +// +// For more information, see ActiveTrustedSigners. type KeyPairIds struct { _ struct{} `type:"structure"` // A complex type that lists the active CloudFront key pairs, if any, that are // associated with AwsAccountNumber. + // + // For more information, see ActiveTrustedSigners. Items []*string `locationNameList:"KeyPairId" type:"list"` // The number of active CloudFront key pairs for AwsAccountNumber. // + // For more information, see ActiveTrustedSigners. + // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` } @@ -5095,6 +6591,18 @@ func (s KeyPairIds) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *KeyPairIds) SetItems(v []*string) *KeyPairIds { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *KeyPairIds) SetQuantity(v int64) *KeyPairIds { + s.Quantity = &v + return s +} + // The request to list origin access identities. type ListCloudFrontOriginAccessIdentitiesInput struct { _ struct{} `type:"structure"` @@ -5120,6 +6628,18 @@ func (s ListCloudFrontOriginAccessIdentitiesInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListCloudFrontOriginAccessIdentitiesInput) SetMarker(v string) *ListCloudFrontOriginAccessIdentitiesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListCloudFrontOriginAccessIdentitiesInput) SetMaxItems(v int64) *ListCloudFrontOriginAccessIdentitiesInput { + s.MaxItems = &v + return s +} + // The returned result of the corresponding request. type ListCloudFrontOriginAccessIdentitiesOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityList"` @@ -5138,6 +6658,12 @@ func (s ListCloudFrontOriginAccessIdentitiesOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentityList sets the CloudFrontOriginAccessIdentityList field's value. +func (s *ListCloudFrontOriginAccessIdentitiesOutput) SetCloudFrontOriginAccessIdentityList(v *OriginAccessIdentityList) *ListCloudFrontOriginAccessIdentitiesOutput { + s.CloudFrontOriginAccessIdentityList = v + return s +} + // The request to list distributions that are associated with a specified AWS // WAF web ACL. type ListDistributionsByWebACLIdInput struct { @@ -5154,8 +6680,8 @@ type ListDistributionsByWebACLIdInput struct { // the response body. The maximum and default values are both 100. MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` - // The Id of the AWS WAF web ACL for which you want to list the associated distributions. - // If you specify "null" for the Id, the request returns a list of the distributions + // The ID of the AWS WAF web ACL that you want to list the associated distributions. + // If you specify "null" for the ID, the request returns a list of the distributions // that aren't associated with a web ACL. // // WebACLId is a required field @@ -5185,6 +6711,24 @@ func (s *ListDistributionsByWebACLIdInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListDistributionsByWebACLIdInput) SetMarker(v string) *ListDistributionsByWebACLIdInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListDistributionsByWebACLIdInput) SetMaxItems(v int64) *ListDistributionsByWebACLIdInput { + s.MaxItems = &v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *ListDistributionsByWebACLIdInput) SetWebACLId(v string) *ListDistributionsByWebACLIdInput { + s.WebACLId = &v + return s +} + // The response to a request to list the distributions that are associated with // a specified AWS WAF web ACL. type ListDistributionsByWebACLIdOutput struct { @@ -5204,19 +6748,24 @@ func (s ListDistributionsByWebACLIdOutput) GoString() string { return s.String() } +// SetDistributionList sets the DistributionList field's value. +func (s *ListDistributionsByWebACLIdOutput) SetDistributionList(v *DistributionList) *ListDistributionsByWebACLIdOutput { + s.DistributionList = v + return s +} + // The request to list your distributions. type ListDistributionsInput struct { _ struct{} `type:"structure"` - // Use Marker and MaxItems to control pagination of results. If you have more - // than MaxItems distributions that satisfy the request, the response includes - // a NextMarker element. To get the next page of results, submit another request. - // For the value of Marker, specify the value of NextMarker from the last response. - // (For the first request, omit Marker.) + // Use this when paginating results to indicate where to begin in your list + // of distributions. The results include distributions in the list that occur + // after the marker. To get the next page of results, set the Marker to the + // value of the NextMarker from the current page's response (which is also the + // ID of the last distribution on that page). Marker *string `location:"querystring" locationName:"Marker" type:"string"` - // The maximum number of distributions that you want CloudFront to return in - // the response body. The maximum and default values are both 100. + // The maximum number of distributions you want in the response body. MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` } @@ -5230,6 +6779,18 @@ func (s ListDistributionsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListDistributionsInput) SetMarker(v string) *ListDistributionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListDistributionsInput) SetMaxItems(v int64) *ListDistributionsInput { + s.MaxItems = &v + return s +} + // The returned result of the corresponding request. type ListDistributionsOutput struct { _ struct{} `type:"structure" payload:"DistributionList"` @@ -5248,11 +6809,17 @@ func (s ListDistributionsOutput) GoString() string { return s.String() } +// SetDistributionList sets the DistributionList field's value. +func (s *ListDistributionsOutput) SetDistributionList(v *DistributionList) *ListDistributionsOutput { + s.DistributionList = v + return s +} + // The request to list invalidations. type ListInvalidationsInput struct { _ struct{} `type:"structure"` - // The distribution's id. + // The distribution's ID. // // DistributionId is a required field DistributionId *string `location:"uri" locationName:"DistributionId" type:"string" required:"true"` @@ -5261,12 +6828,13 @@ type ListInvalidationsInput struct { // your list of invalidation batches. Because the results are returned in decreasing // order from most recent to oldest, the most recent results are on the first // page, the second page will contain earlier results, and so on. To get the - // next page of results, set the Marker to the value of the NextMarker from - // the current page's response. This value is the same as the ID of the last - // invalidation batch on that page. + // next page of results, set Marker to the value of the NextMarker from the + // current page's response. This value is the same as the ID of the last invalidation + // batch on that page. Marker *string `location:"querystring" locationName:"Marker" type:"string"` - // The maximum number of invalidation batches you want in the response body. + // The maximum number of invalidation batches that you want in the response + // body. MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` } @@ -5293,6 +6861,24 @@ func (s *ListInvalidationsInput) Validate() error { return nil } +// SetDistributionId sets the DistributionId field's value. +func (s *ListInvalidationsInput) SetDistributionId(v string) *ListInvalidationsInput { + s.DistributionId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInvalidationsInput) SetMarker(v string) *ListInvalidationsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListInvalidationsInput) SetMaxItems(v int64) *ListInvalidationsInput { + s.MaxItems = &v + return s +} + // The returned result of the corresponding request. type ListInvalidationsOutput struct { _ struct{} `type:"structure" payload:"InvalidationList"` @@ -5311,18 +6897,20 @@ func (s ListInvalidationsOutput) GoString() string { return s.String() } +// SetInvalidationList sets the InvalidationList field's value. +func (s *ListInvalidationsOutput) SetInvalidationList(v *InvalidationList) *ListInvalidationsOutput { + s.InvalidationList = v + return s +} + // The request to list your streaming distributions. type ListStreamingDistributionsInput struct { _ struct{} `type:"structure"` - // Use this when paginating results to indicate where to begin in your list - // of streaming distributions. The results include distributions in the list - // that occur after the marker. To get the next page of results, set the Marker - // to the value of the NextMarker from the current page's response (which is - // also the ID of the last distribution on that page). + // The value that you provided for the Marker request parameter. Marker *string `location:"querystring" locationName:"Marker" type:"string"` - // The maximum number of streaming distributions you want in the response body. + // The value that you provided for the MaxItems request parameter. MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` } @@ -5336,6 +6924,18 @@ func (s ListStreamingDistributionsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListStreamingDistributionsInput) SetMarker(v string) *ListStreamingDistributionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListStreamingDistributionsInput) SetMaxItems(v int64) *ListStreamingDistributionsInput { + s.MaxItems = &v + return s +} + // The returned result of the corresponding request. type ListStreamingDistributionsOutput struct { _ struct{} `type:"structure" payload:"StreamingDistributionList"` @@ -5354,6 +6954,12 @@ func (s ListStreamingDistributionsOutput) GoString() string { return s.String() } +// SetStreamingDistributionList sets the StreamingDistributionList field's value. +func (s *ListStreamingDistributionsOutput) SetStreamingDistributionList(v *StreamingDistributionList) *ListStreamingDistributionsOutput { + s.StreamingDistributionList = v + return s +} + // The request to list tags for a CloudFront resource. type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -5387,6 +6993,12 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResource sets the Resource field's value. +func (s *ListTagsForResourceInput) SetResource(v string) *ListTagsForResourceInput { + s.Resource = &v + return s +} + // The returned result of the corresponding request. type ListTagsForResourceOutput struct { _ struct{} `type:"structure" payload:"Tags"` @@ -5407,6 +7019,12 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v *Tags) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // A complex type that controls whether access logs are written for the distribution. type LoggingConfig struct { _ struct{} `type:"structure"` @@ -5420,7 +7038,7 @@ type LoggingConfig struct { // bucket. If you do not want to enable logging when you create a distribution // or if you want to disable logging for an existing distribution, specify false // for Enabled, and specify empty Bucket and Prefix elements. If you specify - // false for Enabled but you specify values for Bucket, prefix and IncludeCookies, + // false for Enabled but you specify values for Bucket, prefix, and IncludeCookies, // the values are automatically deleted. // // Enabled is a required field @@ -5477,14 +7095,42 @@ func (s *LoggingConfig) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *LoggingConfig) SetBucket(v string) *LoggingConfig { + s.Bucket = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *LoggingConfig) SetEnabled(v bool) *LoggingConfig { + s.Enabled = &v + return s +} + +// SetIncludeCookies sets the IncludeCookies field's value. +func (s *LoggingConfig) SetIncludeCookies(v bool) *LoggingConfig { + s.IncludeCookies = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *LoggingConfig) SetPrefix(v string) *LoggingConfig { + s.Prefix = &v + return s +} + // A complex type that describes the Amazon S3 bucket or the HTTP server (for -// example, a web server) from which CloudFront gets your files.You must create +// example, a web server) from which CloudFront gets your files. You must create // at least one origin. +// +// For the current limit on the number of origins that you can create for a +// distribution, see Amazon CloudFront Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudfront) +// in the AWS General Reference. type Origin struct { _ struct{} `type:"structure"` - // A complex type that contains information about the custom headers associated - // with this Origin. + // A complex type that contains names and values for the custom headers that + // you want. CustomHeaders *CustomHeaders `type:"structure"` // A complex type that contains information about a custom origin. If the origin @@ -5493,16 +7139,42 @@ type Origin struct { // Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want // CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. - // Custom origins: The DNS domain name for the HTTP server from which you want + // + // Constraints for Amazon S3 origins: + // + // * If you configured Amazon S3 Transfer Acceleration for your bucket, do + // not specify the s3-accelerate endpoint for DomainName. + // + // * The bucket name must be between 3 and 63 characters long (inclusive). + // + // * The bucket name must contain only lowercase characters, numbers, periods, + // underscores, and dashes. + // + // * The bucket name must not contain adjacent periods. + // + // Custom Origins: The DNS domain name for the HTTP server from which you want // CloudFront to get objects for this origin, for example, www.example.com. // + // Constraints for custom origins: + // + // * DomainName must be a valid DNS name that contains only a-z, A-Z, 0-9, + // dot (.), hyphen (-), or underscore (_) characters. + // + // * The name cannot exceed 128 characters. + // // DomainName is a required field DomainName *string `type:"string" required:"true"` // A unique identifier for the origin. The value of Id must be unique within - // the distribution. You use the value of Id when you create a cache behavior. - // The Id identifies the origin that CloudFront routes a request to when the - // request matches the path pattern for that cache behavior. + // the distribution. + // + // When you specify the value of TargetOriginId for the default cache behavior + // or for another cache behavior, you indicate the origin to which you want + // the cache behavior to route requests by specifying the value of the Id element + // for that origin. When a request matches the path pattern for that cache behavior, + // CloudFront routes the request to the specified origin. For more information, + // see Cache Behavior Settings (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior) + // in the Amazon CloudFront Developer Guide. // // Id is a required field Id *string `type:"string" required:"true"` @@ -5510,7 +7182,22 @@ type Origin struct { // An optional element that causes CloudFront to request your content from a // directory in your Amazon S3 bucket or your custom origin. When you include // the OriginPath element, specify the directory name, beginning with a /. CloudFront - // appends the directory name to the value of DomainName. + // appends the directory name to the value of DomainName, for example, example.com/production. + // Do not include a / at the end of the directory name. + // + // For example, suppose you've specified the following values for your distribution: + // + // * DomainName: An Amazon S3 bucket named myawsbucket. + // + // * OriginPath: /production + // + // * CNAME: example.com + // + // When a user enters example.com/index.html in a browser, CloudFront sends + // a request to Amazon S3 for myawsbucket/production/index.html. + // + // When a user enters example.com/acme/index.html in a browser, CloudFront sends + // a request to Amazon S3 for myawsbucket/production/acme/index.html. OriginPath *string `type:"string"` // A complex type that contains information about the Amazon S3 origin. If the @@ -5559,6 +7246,42 @@ func (s *Origin) Validate() error { return nil } +// SetCustomHeaders sets the CustomHeaders field's value. +func (s *Origin) SetCustomHeaders(v *CustomHeaders) *Origin { + s.CustomHeaders = v + return s +} + +// SetCustomOriginConfig sets the CustomOriginConfig field's value. +func (s *Origin) SetCustomOriginConfig(v *CustomOriginConfig) *Origin { + s.CustomOriginConfig = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *Origin) SetDomainName(v string) *Origin { + s.DomainName = &v + return s +} + +// SetId sets the Id field's value. +func (s *Origin) SetId(v string) *Origin { + s.Id = &v + return s +} + +// SetOriginPath sets the OriginPath field's value. +func (s *Origin) SetOriginPath(v string) *Origin { + s.OriginPath = &v + return s +} + +// SetS3OriginConfig sets the S3OriginConfig field's value. +func (s *Origin) SetS3OriginConfig(v *S3OriginConfig) *Origin { + s.S3OriginConfig = v + return s +} + // CloudFront origin access identity. type OriginAccessIdentity struct { _ struct{} `type:"structure"` @@ -5571,9 +7294,9 @@ type OriginAccessIdentity struct { // Id is a required field Id *string `type:"string" required:"true"` - // The Amazon S3 canonical user ID for the origin access identity, which you - // use when giving the origin access identity read permission to an object in - // Amazon S3. + // The Amazon S3 canonical user ID for the origin access identity, used when + // giving the origin access identity read permission to an object in Amazon + // S3. // // S3CanonicalUserId is a required field S3CanonicalUserId *string `type:"string" required:"true"` @@ -5589,20 +7312,42 @@ func (s OriginAccessIdentity) GoString() string { return s.String() } -// Origin access identity configuration. +// SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value. +func (s *OriginAccessIdentity) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *OriginAccessIdentity { + s.CloudFrontOriginAccessIdentityConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *OriginAccessIdentity) SetId(v string) *OriginAccessIdentity { + s.Id = &v + return s +} + +// SetS3CanonicalUserId sets the S3CanonicalUserId field's value. +func (s *OriginAccessIdentity) SetS3CanonicalUserId(v string) *OriginAccessIdentity { + s.S3CanonicalUserId = &v + return s +} + +// Origin access identity configuration. Send a GET request to the /CloudFront +// API version/CloudFront/identity ID/config resource. type OriginAccessIdentityConfig struct { _ struct{} `type:"structure"` - // A unique number that ensures the request can't be replayed. If the CallerReference - // is new (no matter the content of the CloudFrontOriginAccessIdentityConfig - // object), a new origin access identity is created. If the CallerReference - // is a value you already sent in a previous request to create an identity, + // A unique number that ensures the request can't be replayed. + // + // If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig + // object), a new origin access identity is created. + // + // If the CallerReference is a value already sent in a previous identity request, // and the content of the CloudFrontOriginAccessIdentityConfig is identical // to the original request (ignoring white space), the response includes the - // same information returned to the original request. If the CallerReference - // is a value you already sent in a previous request to create an identity but - // the content of the CloudFrontOriginAccessIdentityConfig is different from - // the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists + // same information returned to the original request. + // + // If the CallerReference is a value you already sent in a previous request + // to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig + // is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists // error. // // CallerReference is a required field @@ -5640,7 +7385,24 @@ func (s *OriginAccessIdentityConfig) Validate() error { return nil } -// The CloudFrontOriginAccessIdentityList type. +// SetCallerReference sets the CallerReference field's value. +func (s *OriginAccessIdentityConfig) SetCallerReference(v string) *OriginAccessIdentityConfig { + s.CallerReference = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *OriginAccessIdentityConfig) SetComment(v string) *OriginAccessIdentityConfig { + s.Comment = &v + return s +} + +// Lists the origin access identities for CloudFront.Send a GET request to the +// /CloudFront API version/origin-access-identity/cloudfront resource. The response +// includes a CloudFrontOriginAccessIdentityList element with zero or more CloudFrontOriginAccessIdentitySummary +// child elements. By default, your entire list of origin access identities +// is returned in one single page. If the list is long, you can paginate it +// using the MaxItems and Marker parameters. type OriginAccessIdentityList struct { _ struct{} `type:"structure"` @@ -5656,12 +7418,16 @@ type OriginAccessIdentityList struct { // for each origin access identity that was created by the current AWS account. Items []*OriginAccessIdentitySummary `locationNameList:"CloudFrontOriginAccessIdentitySummary" type:"list"` - // The value you provided for the Marker request parameter. + // Use this when paginating results to indicate where to begin in your list + // of origin access identities. The results include identities in the list that + // occur after the marker. To get the next page of results, set the Marker to + // the value of the NextMarker from the current page's response (which is also + // the ID of the last identity on that page). // // Marker is a required field Marker *string `type:"string" required:"true"` - // The value you provided for the MaxItems request parameter. + // The maximum number of origin access identities you want in the response body. // // MaxItems is a required field MaxItems *int64 `type:"integer" required:"true"` @@ -5688,6 +7454,42 @@ func (s OriginAccessIdentityList) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *OriginAccessIdentityList) SetIsTruncated(v bool) *OriginAccessIdentityList { + s.IsTruncated = &v + return s +} + +// SetItems sets the Items field's value. +func (s *OriginAccessIdentityList) SetItems(v []*OriginAccessIdentitySummary) *OriginAccessIdentityList { + s.Items = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *OriginAccessIdentityList) SetMarker(v string) *OriginAccessIdentityList { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *OriginAccessIdentityList) SetMaxItems(v int64) *OriginAccessIdentityList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *OriginAccessIdentityList) SetNextMarker(v string) *OriginAccessIdentityList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *OriginAccessIdentityList) SetQuantity(v int64) *OriginAccessIdentityList { + s.Quantity = &v + return s +} + // Summary of the information about a CloudFront origin access identity. type OriginAccessIdentitySummary struct { _ struct{} `type:"structure"` @@ -5721,16 +7523,38 @@ func (s OriginAccessIdentitySummary) GoString() string { return s.String() } -// A complex type that contains information related to a Header +// SetComment sets the Comment field's value. +func (s *OriginAccessIdentitySummary) SetComment(v string) *OriginAccessIdentitySummary { + s.Comment = &v + return s +} + +// SetId sets the Id field's value. +func (s *OriginAccessIdentitySummary) SetId(v string) *OriginAccessIdentitySummary { + s.Id = &v + return s +} + +// SetS3CanonicalUserId sets the S3CanonicalUserId field's value. +func (s *OriginAccessIdentitySummary) SetS3CanonicalUserId(v string) *OriginAccessIdentitySummary { + s.S3CanonicalUserId = &v + return s +} + +// A complex type that contains HeaderName and HeaderValue elements, if any, +// for this distribution. type OriginCustomHeader struct { _ struct{} `type:"structure"` - // The header's name. + // The name of a header that you want CloudFront to forward to your origin. + // For more information, see Forwarding Custom Headers to Your Origin (Web Distributions + // Only) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) + // in the Amazon Amazon CloudFront Developer Guide. // // HeaderName is a required field HeaderName *string `type:"string" required:"true"` - // The header's value. + // The value for the header that you specified in the HeaderName field. // // HeaderValue is a required field HeaderValue *string `type:"string" required:"true"` @@ -5762,14 +7586,24 @@ func (s *OriginCustomHeader) Validate() error { return nil } -// A complex type that contains the list of SSL/TLS protocols that you want -// CloudFront to use when communicating with your origin over HTTPS. +// SetHeaderName sets the HeaderName field's value. +func (s *OriginCustomHeader) SetHeaderName(v string) *OriginCustomHeader { + s.HeaderName = &v + return s +} + +// SetHeaderValue sets the HeaderValue field's value. +func (s *OriginCustomHeader) SetHeaderValue(v string) *OriginCustomHeader { + s.HeaderValue = &v + return s +} + +// A complex type that contains information about the SSL/TLS protocols that +// CloudFront can use when establishing an HTTPS connection with your origin. type OriginSslProtocols struct { _ struct{} `type:"structure"` - // A complex type that contains one SslProtocol element for each SSL/TLS protocol - // that you want to allow CloudFront to use when establishing an HTTPS connection - // with this origin. + // A list that contains allowed SSL/TLS protocols for this distribution. // // Items is a required field Items []*string `locationNameList:"SslProtocol" type:"list" required:"true"` @@ -5807,6 +7641,18 @@ func (s *OriginSslProtocols) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *OriginSslProtocols) SetItems(v []*string) *OriginSslProtocols { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *OriginSslProtocols) SetQuantity(v int64) *OriginSslProtocols { + s.Quantity = &v + return s +} + // A complex type that contains information about origins for this distribution. type Origins struct { _ struct{} `type:"structure"` @@ -5856,12 +7702,26 @@ func (s *Origins) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Origins) SetItems(v []*Origin) *Origins { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *Origins) SetQuantity(v int64) *Origins { + s.Quantity = &v + return s +} + // A complex type that contains information about the objects that you want -// to invalidate. +// to invalidate. For more information, see Specifying the Objects to Invalidate +// (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects) +// in the Amazon CloudFront Developer Guide. type Paths struct { _ struct{} `type:"structure"` - // A complex type that contains a list of the objects that you want to invalidate. + // A complex type that contains a list of the paths that you want to invalidate. Items []*string `locationNameList:"Path" type:"list"` // The number of objects that you want to invalidate. @@ -5893,10 +7753,22 @@ func (s *Paths) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Paths) SetItems(v []*string) *Paths { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *Paths) SetQuantity(v int64) *Paths { + s.Quantity = &v + return s +} + type QueryStringCacheKeys struct { _ struct{} `type:"structure"` - // Optional: A list that contains the query string parameters that you want + // (Optional) A list that contains the query string parameters that you want // CloudFront to use as a basis for caching for this cache behavior. If Quantity // is 0, you can omit Items. Items []*string `locationNameList:"Name" type:"list"` @@ -5930,17 +7802,25 @@ func (s *QueryStringCacheKeys) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *QueryStringCacheKeys) SetItems(v []*string) *QueryStringCacheKeys { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *QueryStringCacheKeys) SetQuantity(v int64) *QueryStringCacheKeys { + s.Quantity = &v + return s +} + // A complex type that identifies ways in which you want to restrict distribution // of your content. type Restrictions struct { _ struct{} `type:"structure"` // A complex type that controls the countries in which your content is distributed. - // For more information about geo restriction, go to Customizing Error Responses - // in the Amazon CloudFront Developer Guide. CloudFront determines the location - // of your users using MaxMind GeoIP databases. For information about the accuracy - // of these databases, see How accurate are your GeoIP databases? on the MaxMind - // website. + // CloudFront determines the location of your users using MaxMind GeoIP databases. // // GeoRestriction is a required field GeoRestriction *GeoRestriction `type:"structure" required:"true"` @@ -5974,17 +7854,39 @@ func (s *Restrictions) Validate() error { return nil } +// SetGeoRestriction sets the GeoRestriction field's value. +func (s *Restrictions) SetGeoRestriction(v *GeoRestriction) *Restrictions { + s.GeoRestriction = v + return s +} + // A complex type that contains information about the Amazon S3 bucket from // which you want CloudFront to get your media files for distribution. type S3Origin struct { _ struct{} `type:"structure"` - // The DNS name of the S3 origin. + // The DNS name of the Amazon S3 origin. // // DomainName is a required field DomainName *string `type:"string" required:"true"` - // Your S3 origin's origin access identity. + // The CloudFront origin access identity to associate with the RTMP distribution. + // Use an origin access identity to configure the distribution so that end users + // can only access objects in an Amazon S3 bucket through CloudFront. + // + // If you want end users to be able to access objects using either the CloudFront + // URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. + // + // To delete the origin access identity from an existing distribution, update + // the distribution configuration and include an empty OriginAccessIdentity + // element. + // + // To replace the origin access identity, update the distribution configuration + // and specify the new origin access identity. + // + // For more information, see Using an Origin Access Identity to Restrict Access + // to Your Amazon S3 Content (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) + // in the Amazon Amazon CloudFront Developer Guide. // // OriginAccessIdentity is a required field OriginAccessIdentity *string `type:"string" required:"true"` @@ -6016,22 +7918,46 @@ func (s *S3Origin) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *S3Origin) SetDomainName(v string) *S3Origin { + s.DomainName = &v + return s +} + +// SetOriginAccessIdentity sets the OriginAccessIdentity field's value. +func (s *S3Origin) SetOriginAccessIdentity(v string) *S3Origin { + s.OriginAccessIdentity = &v + return s +} + // A complex type that contains information about the Amazon S3 origin. If the // origin is a custom origin, use the CustomOriginConfig element instead. type S3OriginConfig struct { _ struct{} `type:"structure"` // The CloudFront origin access identity to associate with the origin. Use an - // origin access identity to configure the origin so that end users can only - // access objects in an Amazon S3 bucket through CloudFront. If you want end - // users to be able to access objects using either the CloudFront URL or the - // Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the - // origin access identity from an existing distribution, update the distribution - // configuration and include an empty OriginAccessIdentity element. To replace - // the origin access identity, update the distribution configuration and specify - // the new origin access identity. Use the format origin-access-identity/cloudfront/Id - // where Id is the value that CloudFront returned in the Id element when you - // created the origin access identity. + // origin access identity to configure the origin so that viewers can only access + // objects in an Amazon S3 bucket through CloudFront. The format of the value + // is: + // + // origin-access-identity/CloudFront/ID-of-origin-access-identity + // + // where ID-of-origin-access-identity is the value that CloudFront returned + // in the ID element when you created the origin access identity. + // + // If you want viewers to be able to access objects using either the CloudFront + // URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. + // + // To delete the origin access identity from an existing distribution, update + // the distribution configuration and include an empty OriginAccessIdentity + // element. + // + // To replace the origin access identity, update the distribution configuration + // and specify the new origin access identity. + // + // For more information about the origin access identity, see Serving Private + // Content through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + // in the Amazon CloudFront Developer Guide. // // OriginAccessIdentity is a required field OriginAccessIdentity *string `type:"string" required:"true"` @@ -6060,15 +7986,23 @@ func (s *S3OriginConfig) Validate() error { return nil } +// SetOriginAccessIdentity sets the OriginAccessIdentity field's value. +func (s *S3OriginConfig) SetOriginAccessIdentity(v string) *S3OriginConfig { + s.OriginAccessIdentity = &v + return s +} + // A complex type that lists the AWS accounts that were included in the TrustedSigners // complex type, as well as their active CloudFront key pair IDs, if any. type Signer struct { _ struct{} `type:"structure"` - // Specifies an AWS account that can create signed URLs. Values: self, which - // indicates that the AWS account that was used to create the distribution can - // created signed URLs, or an AWS account number. Omit the dashes in the account - // number. + // An AWS account that is included in the TrustedSigners complex type for this + // RTMP distribution. Valid values include: + // + // * self, which is the AWS account used to create the distribution. + // + // * An AWS account number. AwsAccountNumber *string `type:"string"` // A complex type that lists the active CloudFront key pairs, if any, that are @@ -6086,51 +8020,62 @@ func (s Signer) GoString() string { return s.String() } +// SetAwsAccountNumber sets the AwsAccountNumber field's value. +func (s *Signer) SetAwsAccountNumber(v string) *Signer { + s.AwsAccountNumber = &v + return s +} + +// SetKeyPairIds sets the KeyPairIds field's value. +func (s *Signer) SetKeyPairIds(v *KeyPairIds) *Signer { + s.KeyPairIds = v + return s +} + // A streaming distribution. type StreamingDistribution struct { _ struct{} `type:"structure"` - // The ARN (Amazon Resource Name) for the streaming distribution. For example: - // arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5, - // where 123456789012 is your AWS account Id. - // // ARN is a required field ARN *string `type:"string" required:"true"` - // CloudFront automatically adds this element to the response only if you've - // set up the distribution to serve private content with signed URLs. The element - // lists the key pair IDs that CloudFront is aware of for each trusted signer. - // The Signer child element lists the AWS account number of the trusted signer - // (or an empty Self element if the signer is you). The Signer element also - // includes the IDs of any active key pairs associated with the trusted signer's - // AWS account. If no KeyPairId element appears for a Signer, that signer can't - // create working signed URLs. + // A complex type that lists the AWS accounts, if any, that you included in + // the TrustedSigners complex type for this distribution. These are the accounts + // that you want to allow to create signed URLs for private content. + // + // The Signer complex type lists the AWS account number of the trusted signer + // or self if the signer is the AWS account that created the distribution. The + // Signer element also includes the IDs of any active CloudFront key pairs that + // are associated with the trusted signer's AWS account. If no KeyPairId element + // appears for a Signer, that signer can't create signed URLs. + // + // For more information, see Serving Private Content through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + // in the Amazon CloudFront Developer Guide. // // ActiveTrustedSigners is a required field ActiveTrustedSigners *ActiveTrustedSigners `type:"structure" required:"true"` - // The domain name corresponding to the streaming distribution. For example: + // The domain name that corresponds to the streaming distribution. For example: // s5c39gqb8ow64r.cloudfront.net. // // DomainName is a required field DomainName *string `type:"string" required:"true"` - // The identifier for the streaming distribution. For example: EGTXBD79H29TRA8. + // The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE. // // Id is a required field Id *string `type:"string" required:"true"` - // The date and time the distribution was last modified. + // The date and time that the distribution was last modified. LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The current status of the streaming distribution. When the status is Deployed, - // the distribution's information is fully propagated throughout the Amazon - // CloudFront system. + // The current status of the RTMP distribution. When the status is Deployed, + // the distribution's information is propagated to all CloudFront edge locations. // // Status is a required field Status *string `type:"string" required:"true"` - // The current configuration information for the streaming distribution. + // The current configuration information for the RTMP distribution. // // StreamingDistributionConfig is a required field StreamingDistributionConfig *StreamingDistributionConfig `type:"structure" required:"true"` @@ -6146,7 +8091,49 @@ func (s StreamingDistribution) GoString() string { return s.String() } -// The configuration for the streaming distribution. +// SetARN sets the ARN field's value. +func (s *StreamingDistribution) SetARN(v string) *StreamingDistribution { + s.ARN = &v + return s +} + +// SetActiveTrustedSigners sets the ActiveTrustedSigners field's value. +func (s *StreamingDistribution) SetActiveTrustedSigners(v *ActiveTrustedSigners) *StreamingDistribution { + s.ActiveTrustedSigners = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *StreamingDistribution) SetDomainName(v string) *StreamingDistribution { + s.DomainName = &v + return s +} + +// SetId sets the Id field's value. +func (s *StreamingDistribution) SetId(v string) *StreamingDistribution { + s.Id = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *StreamingDistribution) SetLastModifiedTime(v time.Time) *StreamingDistribution { + s.LastModifiedTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StreamingDistribution) SetStatus(v string) *StreamingDistribution { + s.Status = &v + return s +} + +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *StreamingDistribution) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *StreamingDistribution { + s.StreamingDistributionConfig = v + return s +} + +// The RTMP distribution's configuration information. type StreamingDistributionConfig struct { _ struct{} `type:"structure"` @@ -6154,16 +8141,16 @@ type StreamingDistributionConfig struct { // if any, for this streaming distribution. Aliases *Aliases `type:"structure"` - // A unique number that ensures the request can't be replayed. If the CallerReference + // A unique number that ensures that the request can't be replayed. If the CallerReference // is new (no matter the content of the StreamingDistributionConfig object), // a new streaming distribution is created. If the CallerReference is a value - // you already sent in a previous request to create a streaming distribution, + // that you already sent in a previous request to create a streaming distribution, // and the content of the StreamingDistributionConfig is identical to the original // request (ignoring white space), the response includes the same information - // returned to the original request. If the CallerReference is a value you already - // sent in a previous request to create a streaming distribution but the content - // of the StreamingDistributionConfig is different from the original request, - // CloudFront returns a DistributionAlreadyExists error. + // returned to the original request. If the CallerReference is a value that + // you already sent in a previous request to create a streaming distribution + // but the content of the StreamingDistributionConfig is different from the + // original request, CloudFront returns a DistributionAlreadyExists error. // // CallerReference is a required field CallerReference *string `type:"string" required:"true"` @@ -6173,8 +8160,8 @@ type StreamingDistributionConfig struct { // Comment is a required field Comment *string `type:"string" required:"true"` - // Whether the streaming distribution is enabled to accept end user requests - // for content. + // Whether the streaming distribution is enabled to accept user requests for + // content. // // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` @@ -6193,17 +8180,12 @@ type StreamingDistributionConfig struct { // S3Origin is a required field S3Origin *S3Origin `type:"structure" required:"true"` - // A complex type that specifies the AWS accounts, if any, that you want to - // allow to create signed URLs for private content. If you want to require signed - // URLs in requests for objects in the target origin that match the PathPattern - // for this cache behavior, specify true for Enabled, and specify the applicable - // values for Quantity and Items. For more information, go to Using a Signed - // URL to Serve Private Content in the Amazon CloudFront Developer Guide. If - // you don't want to require signed URLs in requests for objects that match - // PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To - // add, change, or remove one or more trusted signers, change Enabled to true - // (if it's currently false), change Quantity as applicable, and specify all - // of the trusted signers that you want to include in the updated distribution. + // A complex type that specifies any AWS accounts that you want to permit to + // create signed URLs for private content. If you want the distribution to use + // signed URLs, include this element; if you want the distribution to use public + // URLs, remove this element. For more information, see Serving Private Content + // through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + // in the Amazon CloudFront Developer Guide. // // TrustedSigners is a required field TrustedSigners *TrustedSigners `type:"structure" required:"true"` @@ -6264,6 +8246,54 @@ func (s *StreamingDistributionConfig) Validate() error { return nil } +// SetAliases sets the Aliases field's value. +func (s *StreamingDistributionConfig) SetAliases(v *Aliases) *StreamingDistributionConfig { + s.Aliases = v + return s +} + +// SetCallerReference sets the CallerReference field's value. +func (s *StreamingDistributionConfig) SetCallerReference(v string) *StreamingDistributionConfig { + s.CallerReference = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *StreamingDistributionConfig) SetComment(v string) *StreamingDistributionConfig { + s.Comment = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *StreamingDistributionConfig) SetEnabled(v bool) *StreamingDistributionConfig { + s.Enabled = &v + return s +} + +// SetLogging sets the Logging field's value. +func (s *StreamingDistributionConfig) SetLogging(v *StreamingLoggingConfig) *StreamingDistributionConfig { + s.Logging = v + return s +} + +// SetPriceClass sets the PriceClass field's value. +func (s *StreamingDistributionConfig) SetPriceClass(v string) *StreamingDistributionConfig { + s.PriceClass = &v + return s +} + +// SetS3Origin sets the S3Origin field's value. +func (s *StreamingDistributionConfig) SetS3Origin(v *S3Origin) *StreamingDistributionConfig { + s.S3Origin = v + return s +} + +// SetTrustedSigners sets the TrustedSigners field's value. +func (s *StreamingDistributionConfig) SetTrustedSigners(v *TrustedSigners) *StreamingDistributionConfig { + s.TrustedSigners = v + return s +} + // A streaming distribution Configuration and a list of tags to be associated // with the streaming distribution. type StreamingDistributionConfigWithTags struct { @@ -6316,6 +8346,18 @@ func (s *StreamingDistributionConfigWithTags) Validate() error { return nil } +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *StreamingDistributionConfigWithTags) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *StreamingDistributionConfigWithTags { + s.StreamingDistributionConfig = v + return s +} + +// SetTags sets the Tags field's value. +func (s *StreamingDistributionConfigWithTags) SetTags(v *Tags) *StreamingDistributionConfigWithTags { + s.Tags = v + return s +} + // A streaming distribution list. type StreamingDistributionList struct { _ struct{} `type:"structure"` @@ -6343,8 +8385,8 @@ type StreamingDistributionList struct { MaxItems *int64 `type:"integer" required:"true"` // If IsTruncated is true, this element is present and contains the value you - // can use for the Marker request parameter to continue listing your streaming - // distributions where they left off. + // can use for the Marker request parameter to continue listing your RTMP distributions + // where they left off. NextMarker *string `type:"string"` // The number of streaming distributions that were created by the current AWS @@ -6364,13 +8406,49 @@ func (s StreamingDistributionList) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *StreamingDistributionList) SetIsTruncated(v bool) *StreamingDistributionList { + s.IsTruncated = &v + return s +} + +// SetItems sets the Items field's value. +func (s *StreamingDistributionList) SetItems(v []*StreamingDistributionSummary) *StreamingDistributionList { + s.Items = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *StreamingDistributionList) SetMarker(v string) *StreamingDistributionList { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *StreamingDistributionList) SetMaxItems(v int64) *StreamingDistributionList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *StreamingDistributionList) SetNextMarker(v string) *StreamingDistributionList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *StreamingDistributionList) SetQuantity(v int64) *StreamingDistributionList { + s.Quantity = &v + return s +} + // A summary of the information for an Amazon CloudFront streaming distribution. type StreamingDistributionSummary struct { _ struct{} `type:"structure"` // The ARN (Amazon Resource Name) for the streaming distribution. For example: // arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5, - // where 123456789012 is your AWS account Id. + // where 123456789012 is your AWS account ID. // // ARN is a required field ARN *string `type:"string" required:"true"` @@ -6426,13 +8504,12 @@ type StreamingDistributionSummary struct { // allow to create signed URLs for private content. If you want to require signed // URLs in requests for objects in the target origin that match the PathPattern // for this cache behavior, specify true for Enabled, and specify the applicable - // values for Quantity and Items. For more information, go to Using a Signed - // URL to Serve Private Content in the Amazon CloudFront Developer Guide. If - // you don't want to require signed URLs in requests for objects that match - // PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To - // add, change, or remove one or more trusted signers, change Enabled to true - // (if it's currently false), change Quantity as applicable, and specify all - // of the trusted signers that you want to include in the updated distribution. + // values for Quantity and Items.If you don't want to require signed URLs in + // requests for objects that match PathPattern, specify false for Enabled and + // 0 for Quantity. Omit Items. To add, change, or remove one or more trusted + // signers, change Enabled to true (if it's currently false), change Quantity + // as applicable, and specify all of the trusted signers that you want to include + // in the updated distribution. // // TrustedSigners is a required field TrustedSigners *TrustedSigners `type:"structure" required:"true"` @@ -6448,6 +8525,72 @@ func (s StreamingDistributionSummary) GoString() string { return s.String() } +// SetARN sets the ARN field's value. +func (s *StreamingDistributionSummary) SetARN(v string) *StreamingDistributionSummary { + s.ARN = &v + return s +} + +// SetAliases sets the Aliases field's value. +func (s *StreamingDistributionSummary) SetAliases(v *Aliases) *StreamingDistributionSummary { + s.Aliases = v + return s +} + +// SetComment sets the Comment field's value. +func (s *StreamingDistributionSummary) SetComment(v string) *StreamingDistributionSummary { + s.Comment = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *StreamingDistributionSummary) SetDomainName(v string) *StreamingDistributionSummary { + s.DomainName = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *StreamingDistributionSummary) SetEnabled(v bool) *StreamingDistributionSummary { + s.Enabled = &v + return s +} + +// SetId sets the Id field's value. +func (s *StreamingDistributionSummary) SetId(v string) *StreamingDistributionSummary { + s.Id = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *StreamingDistributionSummary) SetLastModifiedTime(v time.Time) *StreamingDistributionSummary { + s.LastModifiedTime = &v + return s +} + +// SetPriceClass sets the PriceClass field's value. +func (s *StreamingDistributionSummary) SetPriceClass(v string) *StreamingDistributionSummary { + s.PriceClass = &v + return s +} + +// SetS3Origin sets the S3Origin field's value. +func (s *StreamingDistributionSummary) SetS3Origin(v *S3Origin) *StreamingDistributionSummary { + s.S3Origin = v + return s +} + +// SetStatus sets the Status field's value. +func (s *StreamingDistributionSummary) SetStatus(v string) *StreamingDistributionSummary { + s.Status = &v + return s +} + +// SetTrustedSigners sets the TrustedSigners field's value. +func (s *StreamingDistributionSummary) SetTrustedSigners(v *TrustedSigners) *StreamingDistributionSummary { + s.TrustedSigners = v + return s +} + // A complex type that controls whether access logs are written for this streaming // distribution. type StreamingLoggingConfig struct { @@ -6506,20 +8649,40 @@ func (s *StreamingLoggingConfig) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *StreamingLoggingConfig) SetBucket(v string) *StreamingLoggingConfig { + s.Bucket = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *StreamingLoggingConfig) SetEnabled(v bool) *StreamingLoggingConfig { + s.Enabled = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *StreamingLoggingConfig) SetPrefix(v string) *StreamingLoggingConfig { + s.Prefix = &v + return s +} + // A complex type that contains Tag key and Tag value. type Tag struct { _ struct{} `type:"structure"` - // A string that contains Tag key. The string length should be between 1 and - // 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special - // characters _ - . : / = + @. + // A string that contains Tag key. + // + // The string length should be between 1 and 128 characters. Valid characters + // include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` - // A string that contains an optional Tag value. The string length should be - // between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, - // and the special characters _ - . : / = + @. + // A string that contains an optional Tag value. + // + // The string length should be between 0 and 256 characters. Valid characters + // include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @. Value *string `type:"string"` } @@ -6549,11 +8712,23 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // A complex type that contains zero or more Tag elements. type TagKeys struct { _ struct{} `type:"structure"` - // A complex type that contains Tag key elements + // A complex type that contains Tag key elements. Items []*string `locationNameList:"Key" type:"list"` } @@ -6567,6 +8742,12 @@ func (s TagKeys) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *TagKeys) SetItems(v []*string) *TagKeys { + s.Items = v + return s +} + // The request to add tags to a CloudFront resource. type TagResourceInput struct { _ struct{} `type:"structure" payload:"Tags"` @@ -6613,6 +8794,18 @@ func (s *TagResourceInput) Validate() error { return nil } +// SetResource sets the Resource field's value. +func (s *TagResourceInput) SetResource(v string) *TagResourceInput { + s.Resource = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v *Tags) *TagResourceInput { + s.Tags = v + return s +} + type TagResourceOutput struct { _ struct{} `type:"structure"` } @@ -6631,7 +8824,7 @@ func (s TagResourceOutput) GoString() string { type Tags struct { _ struct{} `type:"structure"` - // A complex type that contains Tag elements + // A complex type that contains Tag elements. Items []*Tag `locationNameList:"Tag" type:"list"` } @@ -6665,21 +8858,34 @@ func (s *Tags) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Tags) SetItems(v []*Tag) *Tags { + s.Items = v + return s +} + // A complex type that specifies the AWS accounts, if any, that you want to -// allow to create signed URLs for private content. If you want to require signed -// URLs in requests for objects in the target origin that match the PathPattern -// for this cache behavior, specify true for Enabled, and specify the applicable -// values for Quantity and Items. For more information, go to Using a Signed -// URL to Serve Private Content in the Amazon CloudFront Developer Guide. If -// you don't want to require signed URLs in requests for objects that match -// PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To -// add, change, or remove one or more trusted signers, change Enabled to true -// (if it's currently false), change Quantity as applicable, and specify all -// of the trusted signers that you want to include in the updated distribution. +// allow to create signed URLs for private content. +// +// If you want to require signed URLs in requests for objects in the target +// origin that match the PathPattern for this cache behavior, specify true for +// Enabled, and specify the applicable values for Quantity and Items. For more +// information, see Serving Private Content through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) +// in the Amazon Amazon CloudFront Developer Guide. +// +// If you don't want to require signed URLs in requests for objects that match +// PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. +// +// To add, change, or remove one or more trusted signers, change Enabled to +// true (if it's currently false), change Quantity as applicable, and specify +// all of the trusted signers that you want to include in the updated distribution. +// +// For more information about updating the distribution configuration, see DistributionConfig +// . type TrustedSigners struct { _ struct{} `type:"structure"` - // Specifies whether you want to require end users to use signed URLs to access + // Specifies whether you want to require viewers to use signed URLs to access // the files specified by PathPattern and TargetOriginId. // // Enabled is a required field @@ -6721,6 +8927,24 @@ func (s *TrustedSigners) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *TrustedSigners) SetEnabled(v bool) *TrustedSigners { + s.Enabled = &v + return s +} + +// SetItems sets the Items field's value. +func (s *TrustedSigners) SetItems(v []*string) *TrustedSigners { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *TrustedSigners) SetQuantity(v int64) *TrustedSigners { + s.Quantity = &v + return s +} + // The request to remove tags from a CloudFront resource. type UntagResourceInput struct { _ struct{} `type:"structure" payload:"TagKeys"` @@ -6762,6 +8986,18 @@ func (s *UntagResourceInput) Validate() error { return nil } +// SetResource sets the Resource field's value. +func (s *UntagResourceInput) SetResource(v string) *UntagResourceInput { + s.Resource = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v *TagKeys) *UntagResourceInput { + s.TagKeys = v + return s +} + type UntagResourceOutput struct { _ struct{} `type:"structure"` } @@ -6790,7 +9026,7 @@ type UpdateCloudFrontOriginAccessIdentityInput struct { // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The value of the ETag header you received when retrieving the identity's + // The value of the ETag header that you received when retrieving the identity's // configuration. For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` } @@ -6826,6 +9062,24 @@ func (s *UpdateCloudFrontOriginAccessIdentityInput) Validate() error { return nil } +// SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value. +func (s *UpdateCloudFrontOriginAccessIdentityInput) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *UpdateCloudFrontOriginAccessIdentityInput { + s.CloudFrontOriginAccessIdentityConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateCloudFrontOriginAccessIdentityInput) SetId(v string) *UpdateCloudFrontOriginAccessIdentityInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *UpdateCloudFrontOriginAccessIdentityInput) SetIfMatch(v string) *UpdateCloudFrontOriginAccessIdentityInput { + s.IfMatch = &v + return s +} + // The returned result of the corresponding request. type UpdateCloudFrontOriginAccessIdentityOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` @@ -6847,6 +9101,18 @@ func (s UpdateCloudFrontOriginAccessIdentityOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentity sets the CloudFrontOriginAccessIdentity field's value. +func (s *UpdateCloudFrontOriginAccessIdentityOutput) SetCloudFrontOriginAccessIdentity(v *OriginAccessIdentity) *UpdateCloudFrontOriginAccessIdentityOutput { + s.CloudFrontOriginAccessIdentity = v + return s +} + +// SetETag sets the ETag field's value. +func (s *UpdateCloudFrontOriginAccessIdentityOutput) SetETag(v string) *UpdateCloudFrontOriginAccessIdentityOutput { + s.ETag = &v + return s +} + // The request to update a distribution. type UpdateDistributionInput struct { _ struct{} `type:"structure" payload:"DistributionConfig"` @@ -6861,7 +9127,7 @@ type UpdateDistributionInput struct { // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The value of the ETag header you received when retrieving the distribution's + // The value of the ETag header that you received when retrieving the distribution's // configuration. For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` } @@ -6897,6 +9163,24 @@ func (s *UpdateDistributionInput) Validate() error { return nil } +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *UpdateDistributionInput) SetDistributionConfig(v *DistributionConfig) *UpdateDistributionInput { + s.DistributionConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateDistributionInput) SetId(v string) *UpdateDistributionInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *UpdateDistributionInput) SetIfMatch(v string) *UpdateDistributionInput { + s.IfMatch = &v + return s +} + // The returned result of the corresponding request. type UpdateDistributionOutput struct { _ struct{} `type:"structure" payload:"Distribution"` @@ -6918,6 +9202,18 @@ func (s UpdateDistributionOutput) GoString() string { return s.String() } +// SetDistribution sets the Distribution field's value. +func (s *UpdateDistributionOutput) SetDistribution(v *Distribution) *UpdateDistributionOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *UpdateDistributionOutput) SetETag(v string) *UpdateDistributionOutput { + s.ETag = &v + return s +} + // The request to update a streaming distribution. type UpdateStreamingDistributionInput struct { _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` @@ -6927,8 +9223,8 @@ type UpdateStreamingDistributionInput struct { // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The value of the ETag header you received when retrieving the streaming distribution's - // configuration. For example: E2QWRUHAPOMQZL. + // The value of the ETag header that you received when retrieving the streaming + // distribution's configuration. For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` // The streaming distribution's configuration information. @@ -6968,6 +9264,24 @@ func (s *UpdateStreamingDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *UpdateStreamingDistributionInput) SetId(v string) *UpdateStreamingDistributionInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *UpdateStreamingDistributionInput) SetIfMatch(v string) *UpdateStreamingDistributionInput { + s.IfMatch = &v + return s +} + +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *UpdateStreamingDistributionInput) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *UpdateStreamingDistributionInput { + s.StreamingDistributionConfig = v + return s +} + // The returned result of the corresponding request. type UpdateStreamingDistributionOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` @@ -6989,8 +9303,32 @@ func (s UpdateStreamingDistributionOutput) GoString() string { return s.String() } -// A complex type that contains information about viewer certificates for this -// distribution. +// SetETag sets the ETag field's value. +func (s *UpdateStreamingDistributionOutput) SetETag(v string) *UpdateStreamingDistributionOutput { + s.ETag = &v + return s +} + +// SetStreamingDistribution sets the StreamingDistribution field's value. +func (s *UpdateStreamingDistributionOutput) SetStreamingDistribution(v *StreamingDistribution) *UpdateStreamingDistributionOutput { + s.StreamingDistribution = v + return s +} + +// A complex type that specifies the following: +// +// * Which SSL/TLS certificate to use when viewers request objects using +// HTTPS +// +// * Whether you want CloudFront to use dedicated IP addresses or SNI when +// you're using alternate domain names in your object names +// +// * The minimum protocol version that you want CloudFront to use when communicating +// with viewers +// +// For more information, see Using an HTTPS Connection to Access Your Objects +// (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) +// in the Amazon Amazon CloudFront Developer Guide. type ViewerCertificate struct { _ struct{} `type:"structure"` @@ -7000,12 +9338,89 @@ type ViewerCertificate struct { // distribution. Specify either this value, IAMCertificateId, or CloudFrontDefaultCertificate. ACMCertificateArn *string `type:"string"` - // Note: this field is deprecated. Please use one of [ACMCertificateArn, IAMCertificateId, - // CloudFrontDefaultCertificate]. + // Include one of these values to specify the following: + // + // * Whether you want viewers to use HTTP or HTTPS to request your objects. + // + // * If you want viewers to use HTTPS, whether you're using an alternate + // domain name such as example.com or the CloudFront domain name for your + // distribution, such as d111111abcdef8.cloudfront.net. + // + // * If you're using an alternate domain name, whether AWS Certificate Manager + // (ACM) provided the certificate, or you purchased a certificate from a + // third-party certificate authority and imported it into ACM or uploaded + // it to the IAM certificate store. + // + // You must specify one (and only one) of the three values. Do not specify false + // for CloudFrontDefaultCertificate. + // + // If you want viewers to use HTTP to request your objects: Specify the following + // value: + // + // true + // + // In addition, specify allow-all for ViewerProtocolPolicy for all of your cache + // behaviors. + // + // If you want viewers to use HTTPS to request your objects: Choose the type + // of certificate that you want to use based on whether you're using an alternate + // domain name for your objects or the CloudFront domain name: + // + // * If you're using an alternate domain name, such as example.com: Specify + // one of the following values, depending on whether ACM provided your certificate + // or you purchased your certificate from third-party certificate authority: + // + // ARN for ACM SSL/TLS certificate where + // ARN for ACM SSL/TLS certificate is the ARN for the ACM SSL/TLS certificate + // that you want to use for this distribution. + // + // IAM certificate ID where IAM certificate + // ID is the ID that IAM returned when you added the certificate to the IAM + // certificate store. + // + // If you specify ACMCertificateArn or IAMCertificateId, you must also specify + // a value for SSLSupportMethod. + // + // If you choose to use an ACM certificate or a certificate in the IAM certificate + // store, we recommend that you use only an alternate domain name in your + // object URLs (https://example.com/logo.jpg). If you use the domain name + // that is associated with your CloudFront distribution (https://d111111abcdef8.cloudfront.net/logo.jpg) + // and the viewer supports SNI, then CloudFront behaves normally. However, + // if the browser does not support SNI, the user's experience depends on + // the value that you choose for SSLSupportMethod: + // + // vip: The viewer displays a warning because there is a mismatch between the + // CloudFront domain name and the domain name in your SSL/TLS certificate. + // + // sni-only: CloudFront drops the connection with the browser without returning + // the object. + // + // * If you're using the CloudFront domain name for your distribution, such + // as d111111abcdef8.cloudfront.net: Specify the following value: + // + // true + // + // If you want viewers to use HTTPS, you must also specify one of the following + // values in your cache behaviors: + // + // https-only + // + // redirect-to-https + // + // You can also optionally require that CloudFront use HTTPS to communicate + // with your origin by specifying one of the following values for the applicable + // origins: + // + // https-only + // + // match-viewer + // + // For more information, see Using Alternate Domain Names and HTTPS (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html#CNAMEsAndHTTPS) + // in the Amazon CloudFront Developer Guide. Certificate *string `deprecated:"true" type:"string"` - // Note: this field is deprecated. Please use one of [ACMCertificateArn, IAMCertificateId, - // CloudFrontDefaultCertificate]. + // This field is deprecated. You can use one of the following: [ACMCertificateArn, + // IAMCertificateId, or CloudFrontDefaultCertificate]. CertificateSource *string `deprecated:"true" type:"string" enum:"CertificateSource"` // If you want viewers to use HTTPS to request your objects and you're using @@ -7020,28 +9435,49 @@ type ViewerCertificate struct { // this distribution. Specify either this value, ACMCertificateArn, or CloudFrontDefaultCertificate. IAMCertificateId *string `type:"string"` - // Specify the minimum version of the SSL protocol that you want CloudFront - // to use, SSLv3 or TLSv1, for HTTPS connections. CloudFront will serve your - // objects only to browsers or devices that support at least the SSL version - // that you specify. The TLSv1 protocol is more secure, so we recommend that - // you specify SSLv3 only if your users are using browsers or devices that don't - // support TLSv1. If you're using a custom certificate (if you specify a value - // for IAMCertificateId) and if you're using dedicated IP (if you specify vip - // for SSLSupportMethod), you can choose SSLv3 or TLSv1 as the MinimumProtocolVersion. - // If you're using a custom certificate (if you specify a value for IAMCertificateId) - // and if you're using SNI (if you specify sni-only for SSLSupportMethod), you - // must specify TLSv1 for MinimumProtocolVersion. + // Specify the minimum version of the SSL/TLS protocol that you want CloudFront + // to use for HTTPS connections between viewers and CloudFront: SSLv3 or TLSv1. + // CloudFront serves your objects only to viewers that support SSL/TLS version + // that you specify and later versions. The TLSv1 protocol is more secure, so + // we recommend that you specify SSLv3 only if your users are using browsers + // or devices that don't support TLSv1. Note the following: + // + // * If you specify true, + // the minimum SSL protocol version is TLSv1 and can't be changed. + // + // * If you're using a custom certificate (if you specify a value for ACMCertificateArn + // or for IAMCertificateId) and if you're using SNI (if you specify sni-only + // for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion. MinimumProtocolVersion *string `type:"string" enum:"MinimumProtocolVersion"` - // If you specify a value for IAMCertificateId, you must also specify how you - // want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. - // If you specify vip, CloudFront uses dedicated IP addresses for your content - // and can respond to HTTPS requests from any viewer. However, you must request - // permission to use this feature, and you incur additional monthly charges. - // If you specify sni-only, CloudFront can only respond to HTTPS requests from - // viewers that support Server Name Indication (SNI). All modern browsers support - // SNI, but some browsers still in use don't support SNI. Do not specify a value - // for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate. + // If you specify a value for ACMCertificateArn or for IAMCertificateId, you + // must also specify how you want CloudFront to serve HTTPS requests: using + // a method that works for all clients or one that works for most clients: + // + // * vip: CloudFront uses dedicated IP addresses for your content and can + // respond to HTTPS requests from any viewer. However, you must request permission + // to use this feature, and you incur additional monthly charges. + // + // * sni-only: CloudFront can respond to HTTPS requests from viewers that + // support Server Name Indication (SNI). All modern browsers support SNI, + // but some browsers still in use don't support SNI. If some of your users' + // browsers don't support SNI, we recommend that you do one of the following: + // + // Use the vip option (dedicated IP addresses) instead of sni-only. + // + // Use the CloudFront SSL/TLS certificate instead of a custom certificate. This + // requires that you use the CloudFront domain name of your distribution + // in the URLs for your objects, for example, https://d111111abcdef8.cloudfront.net/logo.png. + // + // If you can control which browser your users use, upgrade the browser to one + // that supports SNI. + // + // Use HTTP instead of HTTPS. + // + // Do not specify a value for SSLSupportMethod if you specified true. + // + // For more information, see Using Alternate Domain Names and HTTPS (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html#CNAMEsAndHTTPS.html) + // in the Amazon CloudFront Developer Guide. SSLSupportMethod *string `type:"string" enum:"SSLSupportMethod"` } @@ -7055,6 +9491,48 @@ func (s ViewerCertificate) GoString() string { return s.String() } +// SetACMCertificateArn sets the ACMCertificateArn field's value. +func (s *ViewerCertificate) SetACMCertificateArn(v string) *ViewerCertificate { + s.ACMCertificateArn = &v + return s +} + +// SetCertificate sets the Certificate field's value. +func (s *ViewerCertificate) SetCertificate(v string) *ViewerCertificate { + s.Certificate = &v + return s +} + +// SetCertificateSource sets the CertificateSource field's value. +func (s *ViewerCertificate) SetCertificateSource(v string) *ViewerCertificate { + s.CertificateSource = &v + return s +} + +// SetCloudFrontDefaultCertificate sets the CloudFrontDefaultCertificate field's value. +func (s *ViewerCertificate) SetCloudFrontDefaultCertificate(v bool) *ViewerCertificate { + s.CloudFrontDefaultCertificate = &v + return s +} + +// SetIAMCertificateId sets the IAMCertificateId field's value. +func (s *ViewerCertificate) SetIAMCertificateId(v string) *ViewerCertificate { + s.IAMCertificateId = &v + return s +} + +// SetMinimumProtocolVersion sets the MinimumProtocolVersion field's value. +func (s *ViewerCertificate) SetMinimumProtocolVersion(v string) *ViewerCertificate { + s.MinimumProtocolVersion = &v + return s +} + +// SetSSLSupportMethod sets the SSLSupportMethod field's value. +func (s *ViewerCertificate) SetSSLSupportMethod(v string) *ViewerCertificate { + s.SSLSupportMethod = &v + return s +} + const ( // CertificateSourceCloudfront is a CertificateSource enum value CertificateSourceCloudfront = "cloudfront" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go index a4bf396a6..b768e2f8e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go @@ -11,11 +11,10 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restxml" ) -// Amazon CloudFront is a global content delivery network (CDN) service that -// accelerates delivery of your websites, APIs, video content or other web assets. -// It integrates with other Amazon Web Services products to give developers -// and businesses an easy way to accelerate content to end users with no minimum -// usage commitments. +// This is the Amazon CloudFront API Reference. This guide is for developers +// who need detailed information about the CloudFront API actions, data types, +// and errors. For detailed information about CloudFront features and their +// associated API calls, see the Amazon CloudFront Developer Guide. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type CloudFront struct { @@ -55,7 +54,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio ServiceName: ServiceName, SigningRegion: signingRegion, Endpoint: endpoint, - APIVersion: "2016-09-07", + APIVersion: "2016-09-29", }, handlers, ), diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go index ebccedbd6..f713e8ffe 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go @@ -78,7 +78,7 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // -// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // * ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported @@ -92,17 +92,17 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // // * InvalidTagParameterException // This exception is thrown when the key or value specified for the tag does @@ -212,17 +212,17 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // // * TrailNotProvidedException // This exception is deprecated. @@ -327,17 +327,17 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // // * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region @@ -483,17 +483,17 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatusOutput, error) { req, out := c.GetTrailStatusRequest(input) @@ -550,7 +550,7 @@ func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req // within the specified time range. The public key is needed to validate digest // files that were signed with its corresponding private key. // -// CloudTrail uses different private/public key pairs per region. Each digest +// CloudTrail uses different private/public key pairs per region. Each digest // file is signed with a private key unique to its region. Therefore, when you // validate a digest file from a particular region, you must look in the same // region for its corresponding public key. @@ -644,7 +644,7 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // -// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // * ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported @@ -654,17 +654,17 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // // * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. @@ -737,10 +737,10 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request // 50 possible. The response includes a token that you can use to get the next // page of results. // -// The rate of lookup requests is limited to one per second per account. If +// The rate of lookup requests is limited to one per second per account. If // this limit is exceeded, a throttling error occurs. // -// Events that occurred during the selected time range will not be available +// Events that occurred during the selected time range will not be available // for lookup if CloudTrail logging was not enabled when the events occurred. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -833,7 +833,7 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // -// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // * ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported @@ -843,17 +843,17 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // // * InvalidTagParameterException // This exception is thrown when the key or value specified for the tag does @@ -937,17 +937,17 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // // * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region @@ -1027,17 +1027,17 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // // * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region @@ -1141,17 +1141,17 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // // * TrailNotProvidedException // This exception is deprecated. @@ -1203,7 +1203,7 @@ type AddTagsInput struct { // Specifies the ARN of the trail to which one or more tags will be added. The // format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` @@ -1245,6 +1245,18 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsInput) SetResourceId(v string) *AddTagsInput { + s.ResourceId = &v + return s +} + +// SetTagsList sets the TagsList field's value. +func (s *AddTagsInput) SetTagsList(v []*Tag) *AddTagsInput { + s.TagsList = v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type AddTagsOutput struct { @@ -1277,7 +1289,7 @@ type CreateTrailInput struct { // Specifies whether log file integrity validation is enabled. The default is // false. // - // When you disable log file integrity validation, the chain of digest files + // When you disable log file integrity validation, the chain of digest files // is broken after one hour. CloudTrail will not create digest files for log // files that were delivered during a period in which log file integrity validation // was disabled. For example, if you enable log file integrity validation at @@ -1301,28 +1313,28 @@ type CreateTrailInput struct { // // Examples: // - // alias/MyAliasName + // * alias/MyAliasName // - // arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // 12345678-1234-1234-1234-123456789012 + // * 12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies the name of the trail. The name must meet the following requirements: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-) + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-) // - // Start with a letter or number, and end with a letter or number + // * Start with a letter or number, and end with a letter or number // - // Be between 3 and 128 characters + // * Be between 3 and 128 characters // - // Have no adjacent periods, underscores or dashes. Names like my-_namespace - // and my--namespace are invalid. + // * Have no adjacent periods, underscores or dashes. Names like my-_namespace + // and my--namespace are invalid. // - // Not be in IP address format (for example, 192.168.5.4) + // * Not be in IP address format (for example, 192.168.5.4) // // Name is a required field Name *string `type:"string" required:"true"` @@ -1370,6 +1382,66 @@ func (s *CreateTrailInput) Validate() error { return nil } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *CreateTrailInput) SetCloudWatchLogsLogGroupArn(v string) *CreateTrailInput { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *CreateTrailInput) SetCloudWatchLogsRoleArn(v string) *CreateTrailInput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetEnableLogFileValidation sets the EnableLogFileValidation field's value. +func (s *CreateTrailInput) SetEnableLogFileValidation(v bool) *CreateTrailInput { + s.EnableLogFileValidation = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *CreateTrailInput) SetIncludeGlobalServiceEvents(v bool) *CreateTrailInput { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *CreateTrailInput) SetIsMultiRegionTrail(v bool) *CreateTrailInput { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateTrailInput) SetKmsKeyId(v string) *CreateTrailInput { + s.KmsKeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTrailInput) SetName(v string) *CreateTrailInput { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *CreateTrailInput) SetS3BucketName(v string) *CreateTrailInput { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *CreateTrailInput) SetS3KeyPrefix(v string) *CreateTrailInput { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *CreateTrailInput) SetSnsTopicName(v string) *CreateTrailInput { + s.SnsTopicName = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type CreateTrailOutput struct { @@ -1393,7 +1465,7 @@ type CreateTrailOutput struct { // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file integrity validation is enabled. @@ -1414,7 +1486,7 @@ type CreateTrailOutput struct { // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // - // arn:aws:sns:us-east-1:123456789012:MyTopic + // arn:aws:sns:us-east-1:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -1423,7 +1495,7 @@ type CreateTrailOutput struct { // Specifies the ARN of the trail that was created. The format of a trail ARN // is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -1437,6 +1509,78 @@ func (s CreateTrailOutput) GoString() string { return s.String() } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *CreateTrailOutput) SetCloudWatchLogsLogGroupArn(v string) *CreateTrailOutput { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *CreateTrailOutput) SetCloudWatchLogsRoleArn(v string) *CreateTrailOutput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *CreateTrailOutput) SetIncludeGlobalServiceEvents(v bool) *CreateTrailOutput { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *CreateTrailOutput) SetIsMultiRegionTrail(v bool) *CreateTrailOutput { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateTrailOutput) SetKmsKeyId(v string) *CreateTrailOutput { + s.KmsKeyId = &v + return s +} + +// SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value. +func (s *CreateTrailOutput) SetLogFileValidationEnabled(v bool) *CreateTrailOutput { + s.LogFileValidationEnabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTrailOutput) SetName(v string) *CreateTrailOutput { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *CreateTrailOutput) SetS3BucketName(v string) *CreateTrailOutput { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *CreateTrailOutput) SetS3KeyPrefix(v string) *CreateTrailOutput { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicARN sets the SnsTopicARN field's value. +func (s *CreateTrailOutput) SetSnsTopicARN(v string) *CreateTrailOutput { + s.SnsTopicARN = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *CreateTrailOutput) SetSnsTopicName(v string) *CreateTrailOutput { + s.SnsTopicName = &v + return s +} + +// SetTrailARN sets the TrailARN field's value. +func (s *CreateTrailOutput) SetTrailARN(v string) *CreateTrailOutput { + s.TrailARN = &v + return s +} + // The request that specifies the name of a trail to delete. type DeleteTrailInput struct { _ struct{} `type:"structure"` @@ -1444,7 +1588,7 @@ type DeleteTrailInput struct { // Specifies the name or the CloudTrail ARN of the trail to be deleted. The // format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -1473,6 +1617,12 @@ func (s *DeleteTrailInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeleteTrailInput) SetName(v string) *DeleteTrailInput { + s.Name = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type DeleteTrailOutput struct { @@ -1501,20 +1651,20 @@ type DescribeTrailsInput struct { // Specifies a list of trail names, trail ARNs, or both, of the trails to describe. // The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // - // If an empty list is specified, information for the trail in the current - // region is returned. + // If an empty list is specified, information for the trail in the current region + // is returned. // - // If an empty list is specified and IncludeShadowTrails is false, then information - // for all trails in the current region is returned. + // * If an empty list is specified and IncludeShadowTrails is false, then + // information for all trails in the current region is returned. // - // If an empty list is specified and IncludeShadowTrails is null or true, - // then information for all trails in the current region and any associated - // shadow trails in other regions is returned. + // * If an empty list is specified and IncludeShadowTrails is null or true, + // then information for all trails in the current region and any associated + // shadow trails in other regions is returned. // - // If one or more trail names are specified, information is returned only - // if the names match the names of trails belonging only to the current region. + // If one or more trail names are specified, information is returned only if + // the names match the names of trails belonging only to the current region. // To return information about a trail in another region, you must specify its // trail ARN. TrailNameList []*string `locationName:"trailNameList" type:"list"` @@ -1530,6 +1680,18 @@ func (s DescribeTrailsInput) GoString() string { return s.String() } +// SetIncludeShadowTrails sets the IncludeShadowTrails field's value. +func (s *DescribeTrailsInput) SetIncludeShadowTrails(v bool) *DescribeTrailsInput { + s.IncludeShadowTrails = &v + return s +} + +// SetTrailNameList sets the TrailNameList field's value. +func (s *DescribeTrailsInput) SetTrailNameList(v []*string) *DescribeTrailsInput { + s.TrailNameList = v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type DescribeTrailsOutput struct { @@ -1549,6 +1711,12 @@ func (s DescribeTrailsOutput) GoString() string { return s.String() } +// SetTrailList sets the TrailList field's value. +func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput { + s.TrailList = v + return s +} + // Contains information about an event that was returned by a lookup request. // The result includes a representation of a CloudTrail event. type Event struct { @@ -1584,6 +1752,42 @@ func (s Event) GoString() string { return s.String() } +// SetCloudTrailEvent sets the CloudTrailEvent field's value. +func (s *Event) SetCloudTrailEvent(v string) *Event { + s.CloudTrailEvent = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *Event) SetEventId(v string) *Event { + s.EventId = &v + return s +} + +// SetEventName sets the EventName field's value. +func (s *Event) SetEventName(v string) *Event { + s.EventName = &v + return s +} + +// SetEventTime sets the EventTime field's value. +func (s *Event) SetEventTime(v time.Time) *Event { + s.EventTime = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *Event) SetResources(v []*Resource) *Event { + s.Resources = v + return s +} + +// SetUsername sets the Username field's value. +func (s *Event) SetUsername(v string) *Event { + s.Username = &v + return s +} + // The name of a trail about which you want the current status. type GetTrailStatusInput struct { _ struct{} `type:"structure"` @@ -1592,7 +1796,7 @@ type GetTrailStatusInput struct { // status. To get the status of a shadow trail (a replication of the trail in // another region), you must specify its ARN. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -1621,6 +1825,12 @@ func (s *GetTrailStatusInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *GetTrailStatusInput) SetName(v string) *GetTrailStatusInput { + s.Name = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type GetTrailStatusOutput struct { @@ -1648,10 +1858,10 @@ type GetTrailStatusOutput struct { // topic Error Responses (http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) // in the Amazon S3 API Reference. // - // This error occurs only when there is a problem with the destination S3 - // bucket and will not occur for timeouts. To resolve the issue, create a new - // bucket and call UpdateTrail to specify the new bucket, or fix the existing - // objects so that CloudTrail can again write to the bucket. + // This error occurs only when there is a problem with the destination S3 bucket + // and will not occur for timeouts. To resolve the issue, create a new bucket + // and call UpdateTrail to specify the new bucket, or fix the existing objects + // so that CloudTrail can again write to the bucket. LatestDeliveryError *string `type:"string"` // Specifies the date and time that CloudTrail last delivered log files to an @@ -1663,10 +1873,10 @@ type GetTrailStatusOutput struct { // the topic Error Responses (http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) // in the Amazon S3 API Reference. // - // This error occurs only when there is a problem with the destination S3 - // bucket and will not occur for timeouts. To resolve the issue, create a new - // bucket and call UpdateTrail to specify the new bucket, or fix the existing - // objects so that CloudTrail can again write to the bucket. + // This error occurs only when there is a problem with the destination S3 bucket + // and will not occur for timeouts. To resolve the issue, create a new bucket + // and call UpdateTrail to specify the new bucket, or fix the existing objects + // so that CloudTrail can again write to the bucket. LatestDigestDeliveryError *string `type:"string"` // Specifies the date and time that CloudTrail last delivered a digest file @@ -1713,6 +1923,108 @@ func (s GetTrailStatusOutput) GoString() string { return s.String() } +// SetIsLogging sets the IsLogging field's value. +func (s *GetTrailStatusOutput) SetIsLogging(v bool) *GetTrailStatusOutput { + s.IsLogging = &v + return s +} + +// SetLatestCloudWatchLogsDeliveryError sets the LatestCloudWatchLogsDeliveryError field's value. +func (s *GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryError(v string) *GetTrailStatusOutput { + s.LatestCloudWatchLogsDeliveryError = &v + return s +} + +// SetLatestCloudWatchLogsDeliveryTime sets the LatestCloudWatchLogsDeliveryTime field's value. +func (s *GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryTime(v time.Time) *GetTrailStatusOutput { + s.LatestCloudWatchLogsDeliveryTime = &v + return s +} + +// SetLatestDeliveryAttemptSucceeded sets the LatestDeliveryAttemptSucceeded field's value. +func (s *GetTrailStatusOutput) SetLatestDeliveryAttemptSucceeded(v string) *GetTrailStatusOutput { + s.LatestDeliveryAttemptSucceeded = &v + return s +} + +// SetLatestDeliveryAttemptTime sets the LatestDeliveryAttemptTime field's value. +func (s *GetTrailStatusOutput) SetLatestDeliveryAttemptTime(v string) *GetTrailStatusOutput { + s.LatestDeliveryAttemptTime = &v + return s +} + +// SetLatestDeliveryError sets the LatestDeliveryError field's value. +func (s *GetTrailStatusOutput) SetLatestDeliveryError(v string) *GetTrailStatusOutput { + s.LatestDeliveryError = &v + return s +} + +// SetLatestDeliveryTime sets the LatestDeliveryTime field's value. +func (s *GetTrailStatusOutput) SetLatestDeliveryTime(v time.Time) *GetTrailStatusOutput { + s.LatestDeliveryTime = &v + return s +} + +// SetLatestDigestDeliveryError sets the LatestDigestDeliveryError field's value. +func (s *GetTrailStatusOutput) SetLatestDigestDeliveryError(v string) *GetTrailStatusOutput { + s.LatestDigestDeliveryError = &v + return s +} + +// SetLatestDigestDeliveryTime sets the LatestDigestDeliveryTime field's value. +func (s *GetTrailStatusOutput) SetLatestDigestDeliveryTime(v time.Time) *GetTrailStatusOutput { + s.LatestDigestDeliveryTime = &v + return s +} + +// SetLatestNotificationAttemptSucceeded sets the LatestNotificationAttemptSucceeded field's value. +func (s *GetTrailStatusOutput) SetLatestNotificationAttemptSucceeded(v string) *GetTrailStatusOutput { + s.LatestNotificationAttemptSucceeded = &v + return s +} + +// SetLatestNotificationAttemptTime sets the LatestNotificationAttemptTime field's value. +func (s *GetTrailStatusOutput) SetLatestNotificationAttemptTime(v string) *GetTrailStatusOutput { + s.LatestNotificationAttemptTime = &v + return s +} + +// SetLatestNotificationError sets the LatestNotificationError field's value. +func (s *GetTrailStatusOutput) SetLatestNotificationError(v string) *GetTrailStatusOutput { + s.LatestNotificationError = &v + return s +} + +// SetLatestNotificationTime sets the LatestNotificationTime field's value. +func (s *GetTrailStatusOutput) SetLatestNotificationTime(v time.Time) *GetTrailStatusOutput { + s.LatestNotificationTime = &v + return s +} + +// SetStartLoggingTime sets the StartLoggingTime field's value. +func (s *GetTrailStatusOutput) SetStartLoggingTime(v time.Time) *GetTrailStatusOutput { + s.StartLoggingTime = &v + return s +} + +// SetStopLoggingTime sets the StopLoggingTime field's value. +func (s *GetTrailStatusOutput) SetStopLoggingTime(v time.Time) *GetTrailStatusOutput { + s.StopLoggingTime = &v + return s +} + +// SetTimeLoggingStarted sets the TimeLoggingStarted field's value. +func (s *GetTrailStatusOutput) SetTimeLoggingStarted(v string) *GetTrailStatusOutput { + s.TimeLoggingStarted = &v + return s +} + +// SetTimeLoggingStopped sets the TimeLoggingStopped field's value. +func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOutput { + s.TimeLoggingStopped = &v + return s +} + // Requests the public keys for a specified time range. type ListPublicKeysInput struct { _ struct{} `type:"structure"` @@ -1740,6 +2052,24 @@ func (s ListPublicKeysInput) GoString() string { return s.String() } +// SetEndTime sets the EndTime field's value. +func (s *ListPublicKeysInput) SetEndTime(v time.Time) *ListPublicKeysInput { + s.EndTime = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPublicKeysInput) SetNextToken(v string) *ListPublicKeysInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ListPublicKeysInput) SetStartTime(v time.Time) *ListPublicKeysInput { + s.StartTime = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type ListPublicKeysOutput struct { @@ -1750,7 +2080,7 @@ type ListPublicKeysOutput struct { // Contains an array of PublicKey objects. // - // The returned public keys may have validity time ranges that overlap. + // The returned public keys may have validity time ranges that overlap. PublicKeyList []*PublicKey `type:"list"` } @@ -1764,6 +2094,18 @@ func (s ListPublicKeysOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPublicKeysOutput) SetNextToken(v string) *ListPublicKeysOutput { + s.NextToken = &v + return s +} + +// SetPublicKeyList sets the PublicKeyList field's value. +func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput { + s.PublicKeyList = v + return s +} + // Specifies a list of trail tags to return. type ListTagsInput struct { _ struct{} `type:"structure"` @@ -1774,7 +2116,7 @@ type ListTagsInput struct { // Specifies a list of trail ARNs whose tags will be listed. The list has a // limit of 20 ARNs. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // ResourceIdList is a required field ResourceIdList []*string `type:"list" required:"true"` @@ -1803,6 +2145,18 @@ func (s *ListTagsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { + s.NextToken = &v + return s +} + +// SetResourceIdList sets the ResourceIdList field's value. +func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput { + s.ResourceIdList = v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type ListTagsOutput struct { @@ -1825,6 +2179,18 @@ func (s ListTagsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { + s.NextToken = &v + return s +} + +// SetResourceTagList sets the ResourceTagList field's value. +func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput { + s.ResourceTagList = v + return s +} + // Specifies an attribute and value that filter the events returned. type LookupAttribute struct { _ struct{} `type:"structure"` @@ -1866,6 +2232,18 @@ func (s *LookupAttribute) Validate() error { return nil } +// SetAttributeKey sets the AttributeKey field's value. +func (s *LookupAttribute) SetAttributeKey(v string) *LookupAttribute { + s.AttributeKey = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *LookupAttribute) SetAttributeValue(v string) *LookupAttribute { + s.AttributeValue = &v + return s +} + // Contains a request for LookupEvents. type LookupEventsInput struct { _ struct{} `type:"structure"` @@ -1929,6 +2307,36 @@ func (s *LookupEventsInput) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *LookupEventsInput) SetEndTime(v time.Time) *LookupEventsInput { + s.EndTime = &v + return s +} + +// SetLookupAttributes sets the LookupAttributes field's value. +func (s *LookupEventsInput) SetLookupAttributes(v []*LookupAttribute) *LookupEventsInput { + s.LookupAttributes = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *LookupEventsInput) SetMaxResults(v int64) *LookupEventsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupEventsInput) SetNextToken(v string) *LookupEventsInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *LookupEventsInput) SetStartTime(v time.Time) *LookupEventsInput { + s.StartTime = &v + return s +} + // Contains a response to a LookupEvents action. type LookupEventsOutput struct { _ struct{} `type:"structure"` @@ -1956,6 +2364,18 @@ func (s LookupEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *LookupEventsOutput) SetEvents(v []*Event) *LookupEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupEventsOutput) SetNextToken(v string) *LookupEventsOutput { + s.NextToken = &v + return s +} + // Contains information about a returned public key. type PublicKey struct { _ struct{} `type:"structure"` @@ -1985,6 +2405,30 @@ func (s PublicKey) GoString() string { return s.String() } +// SetFingerprint sets the Fingerprint field's value. +func (s *PublicKey) SetFingerprint(v string) *PublicKey { + s.Fingerprint = &v + return s +} + +// SetValidityEndTime sets the ValidityEndTime field's value. +func (s *PublicKey) SetValidityEndTime(v time.Time) *PublicKey { + s.ValidityEndTime = &v + return s +} + +// SetValidityStartTime sets the ValidityStartTime field's value. +func (s *PublicKey) SetValidityStartTime(v time.Time) *PublicKey { + s.ValidityStartTime = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PublicKey) SetValue(v []byte) *PublicKey { + s.Value = v + return s +} + // Specifies the tags to remove from a trail. type RemoveTagsInput struct { _ struct{} `type:"structure"` @@ -1992,7 +2436,7 @@ type RemoveTagsInput struct { // Specifies the ARN of the trail from which tags should be removed. The format // of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` @@ -2034,6 +2478,18 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsInput) SetResourceId(v string) *RemoveTagsInput { + s.ResourceId = &v + return s +} + +// SetTagsList sets the TagsList field's value. +func (s *RemoveTagsInput) SetTagsList(v []*Tag) *RemoveTagsInput { + s.TagsList = v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type RemoveTagsOutput struct { @@ -2078,6 +2534,18 @@ func (s Resource) GoString() string { return s.String() } +// SetResourceName sets the ResourceName field's value. +func (s *Resource) SetResourceName(v string) *Resource { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Resource) SetResourceType(v string) *Resource { + s.ResourceType = &v + return s +} + // A resource tag. type ResourceTag struct { _ struct{} `type:"structure"` @@ -2099,6 +2567,18 @@ func (s ResourceTag) GoString() string { return s.String() } +// SetResourceId sets the ResourceId field's value. +func (s *ResourceTag) SetResourceId(v string) *ResourceTag { + s.ResourceId = &v + return s +} + +// SetTagsList sets the TagsList field's value. +func (s *ResourceTag) SetTagsList(v []*Tag) *ResourceTag { + s.TagsList = v + return s +} + // The request to CloudTrail to start logging AWS API calls for an account. type StartLoggingInput struct { _ struct{} `type:"structure"` @@ -2106,7 +2586,7 @@ type StartLoggingInput struct { // Specifies the name or the CloudTrail ARN of the trail for which CloudTrail // logs AWS API calls. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -2135,6 +2615,12 @@ func (s *StartLoggingInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *StartLoggingInput) SetName(v string) *StartLoggingInput { + s.Name = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type StartLoggingOutput struct { @@ -2159,7 +2645,7 @@ type StopLoggingInput struct { // Specifies the name or the CloudTrail ARN of the trail for which CloudTrail // will stop logging AWS API calls. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -2188,6 +2674,12 @@ func (s *StopLoggingInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *StopLoggingInput) SetName(v string) *StopLoggingInput { + s.Name = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type StopLoggingOutput struct { @@ -2242,6 +2734,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The settings for a trail. type Trail struct { _ struct{} `type:"structure"` @@ -2267,7 +2771,7 @@ type Trail struct { // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file validation is enabled. @@ -2289,7 +2793,7 @@ type Trail struct { // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // - // arn:aws:sns:us-east-1:123456789012:MyTopic + // arn:aws:sns:us-east-1:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -2297,7 +2801,7 @@ type Trail struct { // Specifies the ARN of the trail. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -2311,6 +2815,84 @@ func (s Trail) GoString() string { return s.String() } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *Trail) SetCloudWatchLogsLogGroupArn(v string) *Trail { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *Trail) SetCloudWatchLogsRoleArn(v string) *Trail { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetHomeRegion sets the HomeRegion field's value. +func (s *Trail) SetHomeRegion(v string) *Trail { + s.HomeRegion = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *Trail) SetIncludeGlobalServiceEvents(v bool) *Trail { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *Trail) SetIsMultiRegionTrail(v bool) *Trail { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Trail) SetKmsKeyId(v string) *Trail { + s.KmsKeyId = &v + return s +} + +// SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value. +func (s *Trail) SetLogFileValidationEnabled(v bool) *Trail { + s.LogFileValidationEnabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *Trail) SetName(v string) *Trail { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *Trail) SetS3BucketName(v string) *Trail { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *Trail) SetS3KeyPrefix(v string) *Trail { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicARN sets the SnsTopicARN field's value. +func (s *Trail) SetSnsTopicARN(v string) *Trail { + s.SnsTopicARN = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *Trail) SetSnsTopicName(v string) *Trail { + s.SnsTopicName = &v + return s +} + +// SetTrailARN sets the TrailARN field's value. +func (s *Trail) SetTrailARN(v string) *Trail { + s.TrailARN = &v + return s +} + // Specifies settings to update for the trail. type UpdateTrailInput struct { _ struct{} `type:"structure"` @@ -2326,7 +2908,7 @@ type UpdateTrailInput struct { // Specifies whether log file validation is enabled. The default is false. // - // When you disable log file integrity validation, the chain of digest files + // When you disable log file integrity validation, the chain of digest files // is broken after one hour. CloudTrail will not create digest files for log // files that were delivered during a period in which log file integrity validation // was disabled. For example, if you enable log file integrity validation at @@ -2354,33 +2936,33 @@ type UpdateTrailInput struct { // // Examples: // - // alias/MyAliasName + // * alias/MyAliasName // - // arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // 12345678-1234-1234-1234-123456789012 + // * 12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies the name of the trail or trail ARN. If Name is a trail name, the // string must meet the following requirements: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-) + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-) // - // Start with a letter or number, and end with a letter or number + // * Start with a letter or number, and end with a letter or number // - // Be between 3 and 128 characters + // * Be between 3 and 128 characters // - // Have no adjacent periods, underscores or dashes. Names like my-_namespace - // and my--namespace are invalid. + // * Have no adjacent periods, underscores or dashes. Names like my-_namespace + // and my--namespace are invalid. // - // Not be in IP address format (for example, 192.168.5.4) + // * Not be in IP address format (for example, 192.168.5.4) // - // If Name is a trail ARN, it must be in the format: + // If Name is a trail ARN, it must be in the format: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -2423,6 +3005,66 @@ func (s *UpdateTrailInput) Validate() error { return nil } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *UpdateTrailInput) SetCloudWatchLogsLogGroupArn(v string) *UpdateTrailInput { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *UpdateTrailInput) SetCloudWatchLogsRoleArn(v string) *UpdateTrailInput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetEnableLogFileValidation sets the EnableLogFileValidation field's value. +func (s *UpdateTrailInput) SetEnableLogFileValidation(v bool) *UpdateTrailInput { + s.EnableLogFileValidation = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *UpdateTrailInput) SetIncludeGlobalServiceEvents(v bool) *UpdateTrailInput { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *UpdateTrailInput) SetIsMultiRegionTrail(v bool) *UpdateTrailInput { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *UpdateTrailInput) SetKmsKeyId(v string) *UpdateTrailInput { + s.KmsKeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateTrailInput) SetName(v string) *UpdateTrailInput { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *UpdateTrailInput) SetS3BucketName(v string) *UpdateTrailInput { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *UpdateTrailInput) SetS3KeyPrefix(v string) *UpdateTrailInput { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *UpdateTrailInput) SetSnsTopicName(v string) *UpdateTrailInput { + s.SnsTopicName = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. type UpdateTrailOutput struct { @@ -2446,7 +3088,7 @@ type UpdateTrailOutput struct { // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file integrity validation is enabled. @@ -2467,7 +3109,7 @@ type UpdateTrailOutput struct { // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // - // arn:aws:sns:us-east-1:123456789012:MyTopic + // arn:aws:sns:us-east-1:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -2476,7 +3118,7 @@ type UpdateTrailOutput struct { // Specifies the ARN of the trail that was updated. The format of a trail ARN // is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -2490,6 +3132,78 @@ func (s UpdateTrailOutput) GoString() string { return s.String() } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *UpdateTrailOutput) SetCloudWatchLogsLogGroupArn(v string) *UpdateTrailOutput { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *UpdateTrailOutput) SetCloudWatchLogsRoleArn(v string) *UpdateTrailOutput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *UpdateTrailOutput) SetIncludeGlobalServiceEvents(v bool) *UpdateTrailOutput { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *UpdateTrailOutput) SetIsMultiRegionTrail(v bool) *UpdateTrailOutput { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *UpdateTrailOutput) SetKmsKeyId(v string) *UpdateTrailOutput { + s.KmsKeyId = &v + return s +} + +// SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value. +func (s *UpdateTrailOutput) SetLogFileValidationEnabled(v bool) *UpdateTrailOutput { + s.LogFileValidationEnabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateTrailOutput) SetName(v string) *UpdateTrailOutput { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *UpdateTrailOutput) SetS3BucketName(v string) *UpdateTrailOutput { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *UpdateTrailOutput) SetS3KeyPrefix(v string) *UpdateTrailOutput { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicARN sets the SnsTopicARN field's value. +func (s *UpdateTrailOutput) SetSnsTopicARN(v string) *UpdateTrailOutput { + s.SnsTopicARN = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *UpdateTrailOutput) SetSnsTopicName(v string) *UpdateTrailOutput { + s.SnsTopicName = &v + return s +} + +// SetTrailARN sets the TrailARN field's value. +func (s *UpdateTrailOutput) SetTrailARN(v string) *UpdateTrailOutput { + s.TrailARN = &v + return s +} + const ( // LookupAttributeKeyEventId is a LookupAttributeKey enum value LookupAttributeKeyEventId = "EventId" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go index 621e16698..e16034500 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go @@ -20,7 +20,7 @@ import ( // IP address, the request parameters, and the response elements returned by // the service. // -// As an alternative to the API, you can use one of the AWS SDKs, which consist +// As an alternative to the API, you can use one of the AWS SDKs, which consist // of libraries and sample code for various programming languages and platforms // (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way // to create programmatic access to AWSCloudTrail. For example, the SDKs take @@ -29,7 +29,7 @@ import ( // to download and install them, see the Tools for Amazon Web Services page // (http://aws.amazon.com/tools/). // -// See the CloudTrail User Guide for information about the data that is included +// See the CloudTrail User Guide for information about the data that is included // with each AWS API call listed in the log files. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go index b198b4a84..146103859 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go @@ -60,7 +60,7 @@ func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request // DeleteAlarms API operation for Amazon CloudWatch. // -// Deletes all specified alarms. In the event of an error, no alarms are deleted. +// Deletes the specified alarms. In the event of an error, no alarms are deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -130,12 +130,12 @@ func (c *CloudWatch) DescribeAlarmHistoryRequest(input *DescribeAlarmHistoryInpu // DescribeAlarmHistory API operation for Amazon CloudWatch. // -// Retrieves history for the specified alarm. Filter alarms by date range or -// item type. If an alarm name is not specified, Amazon CloudWatch returns histories -// for all of the owner's alarms. +// Retrieves the history for the specified alarm. You can filter the results +// by date range or item type. If an alarm name is not specified, the histories +// for all alarms are returned. // -// Amazon CloudWatch retains the history of an alarm for two weeks, whether -// or not you delete the alarm. +// Note that Amazon CloudWatch retains the history of an alarm even if you delete +// the alarm. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -230,9 +230,9 @@ func (c *CloudWatch) DescribeAlarmsRequest(input *DescribeAlarmsInput) (req *req // DescribeAlarms API operation for Amazon CloudWatch. // -// Retrieves alarms with the specified names. If no name is specified, all alarms -// for the user are returned. Alarms can be retrieved by using only a prefix -// for the alarm name, the alarm state, or a prefix for any action. +// Retrieves the specified alarms. If no alarms are specified, all alarms are +// returned. Alarms can be retrieved by using only a prefix for the alarm name, +// the alarm state, or a prefix for any action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -321,8 +321,8 @@ func (c *CloudWatch) DescribeAlarmsForMetricRequest(input *DescribeAlarmsForMetr // DescribeAlarmsForMetric API operation for Amazon CloudWatch. // -// Retrieves all alarms for a single metric. Specify a statistic, period, or -// unit to filter the set of alarms further. +// Retrieves the alarms for the specified metric. Specify a statistic, period, +// or unit to filter the results. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -383,8 +383,8 @@ func (c *CloudWatch) DisableAlarmActionsRequest(input *DisableAlarmActionsInput) // DisableAlarmActions API operation for Amazon CloudWatch. // -// Disables actions for the specified alarms. When an alarm's actions are disabled -// the alarm's state may change, but none of the alarm's actions will execute. +// Disables the actions for the specified alarms. When an alarm's actions are +// disabled, the alarm actions do not execute when the alarm state changes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -445,7 +445,7 @@ func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) ( // EnableAlarmActions API operation for Amazon CloudWatch. // -// Enables actions for the specified alarms. +// Enables the actions for the specified alarms. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -506,36 +506,36 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // // Gets statistics for the specified metric. // -// The maximum number of data points that can be queried is 50,850, whereas -// the maximum number of data points returned from a single GetMetricStatistics -// request is 1,440. If you make a request that generates more than 1,440 data -// points, Amazon CloudWatch returns an error. In such a case, you can alter -// the request by narrowing the specified time range or increasing the specified -// period. A period can be as short as one minute (60 seconds) or as long as -// one day (86,400 seconds). Alternatively, you can make multiple requests across -// adjacent time ranges. GetMetricStatistics does not return the data in chronological -// order. +// Amazon CloudWatch retains metric data as follows: // -// Amazon CloudWatch aggregates data points based on the length of the period -// that you specify. For example, if you request statistics with a one-minute -// granularity, Amazon CloudWatch aggregates data points with time stamps that -// fall within the same one-minute period. In such a case, the data points queried -// can greatly outnumber the data points returned. +// * Data points with a period of 60 seconds (1 minute) are available for +// 15 days // -// The following examples show various statistics allowed by the data point -// query maximum of 50,850 when you call GetMetricStatistics on Amazon EC2 instances -// with detailed (one-minute) monitoring enabled: +// * Data points with a period of 300 seconds (5 minute) are available for +// 63 days // -// Statistics for up to 400 instances for a span of one hour +// * Data points with a period of 3600 seconds (1 hour) are available for +// 455 days (15 months) // -// Statistics for up to 35 instances over a span of 24 hours +// Note that CloudWatch started retaining 5-minute and 1-hour metric data as +// of 9 July 2016. // -// Statistics for up to 2 instances over a span of 2 weeks +// The maximum number of data points returned from a single call is 1,440. If +// you request more than 1,440 data points, Amazon CloudWatch returns an error. +// To reduce the number of data points, you can narrow the specified time range +// and make multiple requests across adjacent time ranges, or you can increase +// the specified period. A period can be as short as one minute (60 seconds). +// Note that data points are not returned in chronological order. // -// For information about the namespace, metric names, and dimensions that -// other Amazon Web Services products use to send metrics to CloudWatch, go -// to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) -// in the Amazon CloudWatch Developer Guide. +// Amazon CloudWatch aggregates data points based on the length of the period +// that you specify. For example, if you request statistics with a one-hour +// period, Amazon CloudWatch aggregates all data points with time stamps that +// fall within each one-hour period. Therefore, the number of values aggregated +// by CloudWatch is larger than the number of data points returned. +// +// For a list of metrics and dimensions supported by AWS services, see the Amazon +// CloudWatch Metrics and Dimensions Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html) +// in the Amazon CloudWatch 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 @@ -546,17 +546,16 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // // Returned Error Codes: // * InvalidParameterValue -// Bad or out-of-range value was supplied for the input parameter. +// The value of an input parameter is bad or out-of-range. // // * MissingParameter -// An input parameter that is mandatory for processing the request is not supplied. +// An input parameter that is required is missing. // // * InvalidParameterCombination -// Parameters that must not be used together were used together. +// Parameters that cannot be used together were used together. // // * InternalServiceError -// Indicates that the request processing has failed due to some unknown error, -// exception, or failure. +// Request processing has failed due to some unknown error, exception, or failure. // func (c *CloudWatch) GetMetricStatistics(input *GetMetricStatisticsInput) (*GetMetricStatisticsOutput, error) { req, out := c.GetMetricStatisticsRequest(input) @@ -615,16 +614,15 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R // ListMetrics API operation for Amazon CloudWatch. // -// Returns a list of valid metrics stored for the AWS account owner. Returned -// metrics can be used with GetMetricStatistics to obtain statistical data for -// a given metric. +// List the specified metrics. You can use the returned metrics with GetMetricStatistics +// to obtain statistical data. // -// Up to 500 results are returned for any one call. To retrieve further results, -// use returned NextToken values with subsequent ListMetrics operations. +// Up to 500 results are returned for any one call. To retrieve additional results, +// use the returned token with subsequent calls. // -// If you create a metric with PutMetricData, allow up to fifteen minutes -// for the metric to appear in calls to ListMetrics. Statistics about the metric, -// however, are available sooner using GetMetricStatistics. +// After you create a metric, allow up to fifteen minutes before the metric +// appears. Statistics about the metric, however, are available sooner using +// GetMetricStatistics. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -635,11 +633,10 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R // // Returned Error Codes: // * InternalServiceError -// Indicates that the request processing has failed due to some unknown error, -// exception, or failure. +// Request processing has failed due to some unknown error, exception, or failure. // // * InvalidParameterValue -// Bad or out-of-range value was supplied for the input parameter. +// The value of an input parameter is bad or out-of-range. // func (c *CloudWatch) ListMetrics(input *ListMetricsInput) (*ListMetricsOutput, error) { req, out := c.ListMetricsRequest(input) @@ -719,47 +716,49 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req // PutMetricAlarm API operation for Amazon CloudWatch. // -// Creates or updates an alarm and associates it with the specified Amazon CloudWatch -// metric. Optionally, this operation can associate one or more Amazon SNS resources +// Creates or updates an alarm and associates it with the specified metric. +// Optionally, this operation can associate one or more Amazon SNS resources // with the alarm. // -// When this operation creates an alarm, the alarm state is immediately set -// to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. -// Any actions associated with the StateValue are then executed. +// When this operation creates an alarm, the alarm state is immediately set +// to INSUFFICIENT_DATA. The alarm is evaluated and its state is set appropriately. +// Any actions associated with the state are then executed. // -// When updating an existing alarm, its StateValue is left unchanged, but -// it completely overwrites the alarm's previous configuration. +// When you update an existing alarm, its state is left unchanged, but the update +// completely overwrites the previous configuration of the alarm. // -// If you are using an AWS Identity and Access Management (IAM) account to -// create or modify an alarm, you must have the following Amazon EC2 permissions: +// If you are an AWS Identity and Access Management (IAM) user, you must have +// Amazon EC2 permissions for some operations: // -// ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms on -// Amazon EC2 instance status metrics. +// * ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms +// on EC2 instance status metrics // -// ec2:StopInstances for alarms with stop actions. +// * ec2:StopInstances for alarms with stop actions // -// ec2:TerminateInstances for alarms with terminate actions. +// * ec2:TerminateInstances for alarms with terminate actions // -// ec2:DescribeInstanceRecoveryAttribute, and ec2:RecoverInstances for alarms -// with recover actions. +// * ec2:DescribeInstanceRecoveryAttribute and ec2:RecoverInstances for alarms +// with recover actions // -// If you have read/write permissions for Amazon CloudWatch but not for Amazon -// EC2, you can still create an alarm but the stop or terminate actions won't -// be performed on the Amazon EC2 instance. However, if you are later granted -// permission to use the associated Amazon EC2 APIs, the alarm actions you created -// earlier will be performed. For more information about IAM permissions, see -// Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html) -// in Using IAM. +// If you have read/write permissions for Amazon CloudWatch but not for Amazon +// EC2, you can still create an alarm, but the stop or terminate actions won't +// be performed. However, if you are later granted the required permissions, +// the alarm actions that you created earlier will be performed. // -// If you are using an IAM role (e.g., an Amazon EC2 instance profile), you -// cannot stop or terminate the instance using alarm actions. However, you can -// still see the alarm state and perform any other actions such as Amazon SNS -// notifications or Auto Scaling policies. +// If you are using an IAM role (for example, an Amazon EC2 instance profile), +// you cannot stop or terminate the instance using alarm actions. However, you +// can still see the alarm state and perform any other actions such as Amazon +// SNS notifications or Auto Scaling policies. // // If you are using temporary security credentials granted using the AWS Security // Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance // using alarm actions. // +// Note that you must create at least one stop, terminate, or reboot alarm using +// the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role. +// After this IAM role is created, you can create stop, terminate, or reboot +// alarms using a command-line interface or an API. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -830,17 +829,18 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque // a metric, it can take up to fifteen minutes for the metric to appear in calls // to ListMetrics. // -// Each PutMetricData request is limited to 8 KB in size for HTTP GET requests +// Each PutMetricData request is limited to 8 KB in size for HTTP GET requests // and is limited to 40 KB in size for HTTP POST requests. // -// Although the Value parameter accepts numbers of type Double, Amazon CloudWatch +// Although the Value parameter accepts numbers of type Double, Amazon CloudWatch // rejects values that are either too small or too large. Values must be in // the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 // (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are // not supported. // -// Data that is timestamped 24 hours or more in the past may take in excess -// of 48 hours to become available from submission time using GetMetricStatistics. +// Data points with time stamps from 24 hours ago or longer can take at least +// 48 hours to become available for GetMetricStatistics from the time they are +// submitted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -851,17 +851,16 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque // // Returned Error Codes: // * InvalidParameterValue -// Bad or out-of-range value was supplied for the input parameter. +// The value of an input parameter is bad or out-of-range. // // * MissingParameter -// An input parameter that is mandatory for processing the request is not supplied. +// An input parameter that is required is missing. // // * InvalidParameterCombination -// Parameters that must not be used together were used together. +// Parameters that cannot be used together were used together. // // * InternalServiceError -// Indicates that the request processing has failed due to some unknown error, -// exception, or failure. +// Request processing has failed due to some unknown error, exception, or failure. // func (c *CloudWatch) PutMetricData(input *PutMetricDataInput) (*PutMetricDataOutput, error) { req, out := c.PutMetricDataRequest(input) @@ -917,13 +916,13 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque // SetAlarmState API operation for Amazon CloudWatch. // // Temporarily sets the state of an alarm for testing purposes. When the updated -// StateValue differs from the previous value, the action configured for the -// appropriate state is invoked. For example, if your alarm is configured to -// send an Amazon SNS message when an alarm is triggered, temporarily changing -// the alarm's state to ALARM sends an Amazon SNS message. The alarm returns -// to its actual state (often within seconds). Because the alarm state change -// happens very quickly, it is typically only visible in the alarm's History -// tab in the Amazon CloudWatch console or through DescribeAlarmHistory. +// state differs from the previous value, the action configured for the appropriate +// state is invoked. For example, if your alarm is configured to send an Amazon +// SNS message when an alarm is triggered, temporarily changing the alarm state +// to ALARM sends an Amazon SNS message. The alarm returns to its actual state +// (often within seconds). Because the alarm state change happens very quickly, +// it is typically only visible in the alarm's History tab in the Amazon CloudWatch +// console or through DescribeAlarmHistory. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -945,22 +944,20 @@ func (c *CloudWatch) SetAlarmState(input *SetAlarmStateInput) (*SetAlarmStateOut return out, err } -// The AlarmHistoryItem data type contains descriptive information about the -// history of a specific alarm. If you call DescribeAlarmHistory, Amazon CloudWatch -// returns this data type as part of the DescribeAlarmHistoryResult data type. +// Represents the history of a specific alarm. type AlarmHistoryItem struct { _ struct{} `type:"structure"` // The descriptive name for the alarm. AlarmName *string `min:"1" type:"string"` - // Machine-readable data about the alarm in JSON format. + // Data about the alarm, in JSON format. HistoryData *string `min:"1" type:"string"` // The type of alarm history item. HistoryItemType *string `type:"string" enum:"HistoryItemType"` - // A human-readable summary of the alarm history. + // A summary of the alarm history, in text format. HistorySummary *string `min:"1" type:"string"` // The time stamp for the alarm history item. @@ -977,31 +974,64 @@ func (s AlarmHistoryItem) GoString() string { return s.String() } -// The Datapoint data type encapsulates the statistical data that Amazon CloudWatch -// computes from metric data. +// SetAlarmName sets the AlarmName field's value. +func (s *AlarmHistoryItem) SetAlarmName(v string) *AlarmHistoryItem { + s.AlarmName = &v + return s +} + +// SetHistoryData sets the HistoryData field's value. +func (s *AlarmHistoryItem) SetHistoryData(v string) *AlarmHistoryItem { + s.HistoryData = &v + return s +} + +// SetHistoryItemType sets the HistoryItemType field's value. +func (s *AlarmHistoryItem) SetHistoryItemType(v string) *AlarmHistoryItem { + s.HistoryItemType = &v + return s +} + +// SetHistorySummary sets the HistorySummary field's value. +func (s *AlarmHistoryItem) SetHistorySummary(v string) *AlarmHistoryItem { + s.HistorySummary = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *AlarmHistoryItem) SetTimestamp(v time.Time) *AlarmHistoryItem { + s.Timestamp = &v + return s +} + +// Encapsulates the statistical data that Amazon CloudWatch computes from metric +// data. type Datapoint struct { _ struct{} `type:"structure"` - // The average of metric values that correspond to the datapoint. + // The average of the metric values that correspond to the data point. Average *float64 `type:"double"` - // The maximum of the metric value used for the datapoint. + // The percentile statistic for the data point. + ExtendedStatistics map[string]*float64 `type:"map"` + + // The maximum metric value for the data point. Maximum *float64 `type:"double"` - // The minimum metric value used for the datapoint. + // The minimum metric value for the data point. Minimum *float64 `type:"double"` // The number of metric values that contributed to the aggregate value of this - // datapoint. + // data point. SampleCount *float64 `type:"double"` - // The sum of metric values used for the datapoint. + // The sum of the metric values for the data point. Sum *float64 `type:"double"` - // The time stamp used for the datapoint. + // The time stamp used for the data point. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The standard unit used for the datapoint. + // The standard unit for the data point. Unit *string `type:"string" enum:"StandardUnit"` } @@ -1015,11 +1045,58 @@ func (s Datapoint) GoString() string { return s.String() } -// Describes the inputs for DeleteAlarms. +// SetAverage sets the Average field's value. +func (s *Datapoint) SetAverage(v float64) *Datapoint { + s.Average = &v + return s +} + +// SetExtendedStatistics sets the ExtendedStatistics field's value. +func (s *Datapoint) SetExtendedStatistics(v map[string]*float64) *Datapoint { + s.ExtendedStatistics = v + return s +} + +// SetMaximum sets the Maximum field's value. +func (s *Datapoint) SetMaximum(v float64) *Datapoint { + s.Maximum = &v + return s +} + +// SetMinimum sets the Minimum field's value. +func (s *Datapoint) SetMinimum(v float64) *Datapoint { + s.Minimum = &v + return s +} + +// SetSampleCount sets the SampleCount field's value. +func (s *Datapoint) SetSampleCount(v float64) *Datapoint { + s.SampleCount = &v + return s +} + +// SetSum sets the Sum field's value. +func (s *Datapoint) SetSum(v float64) *Datapoint { + s.Sum = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *Datapoint) SetTimestamp(v time.Time) *Datapoint { + s.Timestamp = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *Datapoint) SetUnit(v string) *Datapoint { + s.Unit = &v + return s +} + type DeleteAlarmsInput struct { _ struct{} `type:"structure"` - // A list of alarms to be deleted. + // The alarms to be deleted. // // AlarmNames is a required field AlarmNames []*string `type:"list" required:"true"` @@ -1048,6 +1125,12 @@ func (s *DeleteAlarmsInput) Validate() error { return nil } +// SetAlarmNames sets the AlarmNames field's value. +func (s *DeleteAlarmsInput) SetAlarmNames(v []*string) *DeleteAlarmsInput { + s.AlarmNames = v + return s +} + type DeleteAlarmsOutput struct { _ struct{} `type:"structure"` } @@ -1062,7 +1145,6 @@ func (s DeleteAlarmsOutput) GoString() string { return s.String() } -// Describes the inputs for DescribeAlarmHistory. type DescribeAlarmHistoryInput struct { _ struct{} `type:"structure"` @@ -1112,14 +1194,49 @@ func (s *DescribeAlarmHistoryInput) Validate() error { return nil } -// The output for DescribeAlarmHistory. +// SetAlarmName sets the AlarmName field's value. +func (s *DescribeAlarmHistoryInput) SetAlarmName(v string) *DescribeAlarmHistoryInput { + s.AlarmName = &v + return s +} + +// SetEndDate sets the EndDate field's value. +func (s *DescribeAlarmHistoryInput) SetEndDate(v time.Time) *DescribeAlarmHistoryInput { + s.EndDate = &v + return s +} + +// SetHistoryItemType sets the HistoryItemType field's value. +func (s *DescribeAlarmHistoryInput) SetHistoryItemType(v string) *DescribeAlarmHistoryInput { + s.HistoryItemType = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeAlarmHistoryInput) SetMaxRecords(v int64) *DescribeAlarmHistoryInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAlarmHistoryInput) SetNextToken(v string) *DescribeAlarmHistoryInput { + s.NextToken = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *DescribeAlarmHistoryInput) SetStartDate(v time.Time) *DescribeAlarmHistoryInput { + s.StartDate = &v + return s +} + type DescribeAlarmHistoryOutput struct { _ struct{} `type:"structure"` - // A list of alarm histories in JSON format. + // The alarm histories, in JSON format. AlarmHistoryItems []*AlarmHistoryItem `type:"list"` - // A string that marks the start of the next batch of returned results. + // The token that marks the start of the next batch of returned results. NextToken *string `type:"string"` } @@ -1133,15 +1250,29 @@ func (s DescribeAlarmHistoryOutput) GoString() string { return s.String() } -// Describes the inputs for DescribeAlarmsForMetric. +// SetAlarmHistoryItems sets the AlarmHistoryItems field's value. +func (s *DescribeAlarmHistoryOutput) SetAlarmHistoryItems(v []*AlarmHistoryItem) *DescribeAlarmHistoryOutput { + s.AlarmHistoryItems = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAlarmHistoryOutput) SetNextToken(v string) *DescribeAlarmHistoryOutput { + s.NextToken = &v + return s +} + type DescribeAlarmsForMetricInput struct { _ struct{} `type:"structure"` - // The list of dimensions associated with the metric. If the metric has any - // associated dimensions, you must specify them in order for the DescribeAlarmsForMetric - // to succeed. + // The dimensions associated with the metric. If the metric has any associated + // dimensions, you must specify them in order for the call to succeed. Dimensions []*Dimension `type:"list"` + // The percentile statistic for the metric. Specify a value between p0.0 and + // p100. + ExtendedStatistic *string `type:"string"` + // The name of the metric. // // MetricName is a required field @@ -1152,10 +1283,11 @@ type DescribeAlarmsForMetricInput struct { // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` - // The period in seconds over which the statistic is applied. + // The period, in seconds, over which the statistic is applied. Period *int64 `min:"60" type:"integer"` - // The statistic for the metric. + // The statistic for the metric, other than percentiles. For percentile statistics, + // use ExtendedStatistics. Statistic *string `type:"string" enum:"Statistic"` // The unit for the metric. @@ -1207,11 +1339,52 @@ func (s *DescribeAlarmsForMetricInput) Validate() error { return nil } -// The output for DescribeAlarmsForMetric. +// SetDimensions sets the Dimensions field's value. +func (s *DescribeAlarmsForMetricInput) SetDimensions(v []*Dimension) *DescribeAlarmsForMetricInput { + s.Dimensions = v + return s +} + +// SetExtendedStatistic sets the ExtendedStatistic field's value. +func (s *DescribeAlarmsForMetricInput) SetExtendedStatistic(v string) *DescribeAlarmsForMetricInput { + s.ExtendedStatistic = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *DescribeAlarmsForMetricInput) SetMetricName(v string) *DescribeAlarmsForMetricInput { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *DescribeAlarmsForMetricInput) SetNamespace(v string) *DescribeAlarmsForMetricInput { + s.Namespace = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *DescribeAlarmsForMetricInput) SetPeriod(v int64) *DescribeAlarmsForMetricInput { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *DescribeAlarmsForMetricInput) SetStatistic(v string) *DescribeAlarmsForMetricInput { + s.Statistic = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *DescribeAlarmsForMetricInput) SetUnit(v string) *DescribeAlarmsForMetricInput { + s.Unit = &v + return s +} + type DescribeAlarmsForMetricOutput struct { _ struct{} `type:"structure"` - // A list of information for each alarm with the specified metric. + // The information for each alarm with the specified metric. MetricAlarms []*MetricAlarm `type:"list"` } @@ -1225,18 +1398,23 @@ func (s DescribeAlarmsForMetricOutput) GoString() string { return s.String() } -// Describes the inputs for DescribeAlarms. +// SetMetricAlarms sets the MetricAlarms field's value. +func (s *DescribeAlarmsForMetricOutput) SetMetricAlarms(v []*MetricAlarm) *DescribeAlarmsForMetricOutput { + s.MetricAlarms = v + return s +} + type DescribeAlarmsInput struct { _ struct{} `type:"structure"` // The action name prefix. ActionPrefix *string `min:"1" type:"string"` - // The alarm name prefix. AlarmNames cannot be specified if this parameter is + // The alarm name prefix. You cannot specify AlarmNames if this parameter is // specified. AlarmNamePrefix *string `min:"1" type:"string"` - // A list of alarm names to retrieve information for. + // The names of the alarms. AlarmNames []*string `type:"list"` // The maximum number of alarm descriptions to retrieve. @@ -1279,14 +1457,49 @@ func (s *DescribeAlarmsInput) Validate() error { return nil } -// The output for DescribeAlarms. +// SetActionPrefix sets the ActionPrefix field's value. +func (s *DescribeAlarmsInput) SetActionPrefix(v string) *DescribeAlarmsInput { + s.ActionPrefix = &v + return s +} + +// SetAlarmNamePrefix sets the AlarmNamePrefix field's value. +func (s *DescribeAlarmsInput) SetAlarmNamePrefix(v string) *DescribeAlarmsInput { + s.AlarmNamePrefix = &v + return s +} + +// SetAlarmNames sets the AlarmNames field's value. +func (s *DescribeAlarmsInput) SetAlarmNames(v []*string) *DescribeAlarmsInput { + s.AlarmNames = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeAlarmsInput) SetMaxRecords(v int64) *DescribeAlarmsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAlarmsInput) SetNextToken(v string) *DescribeAlarmsInput { + s.NextToken = &v + return s +} + +// SetStateValue sets the StateValue field's value. +func (s *DescribeAlarmsInput) SetStateValue(v string) *DescribeAlarmsInput { + s.StateValue = &v + return s +} + type DescribeAlarmsOutput struct { _ struct{} `type:"structure"` - // A list of information for the specified alarms. + // The information for the specified alarms. MetricAlarms []*MetricAlarm `type:"list"` - // A string that marks the start of the next batch of returned results. + // The token that marks the start of the next batch of returned results. NextToken *string `type:"string"` } @@ -1300,10 +1513,19 @@ func (s DescribeAlarmsOutput) GoString() string { return s.String() } -// The Dimension data type further expands on the identity of a metric using -// a Name, Value pair. -// -// For examples that use one or more dimensions, see PutMetricData. +// SetMetricAlarms sets the MetricAlarms field's value. +func (s *DescribeAlarmsOutput) SetMetricAlarms(v []*MetricAlarm) *DescribeAlarmsOutput { + s.MetricAlarms = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAlarmsOutput) SetNextToken(v string) *DescribeAlarmsOutput { + s.NextToken = &v + return s +} + +// Expands the identity of a metric. type Dimension struct { _ struct{} `type:"structure"` @@ -1312,7 +1534,7 @@ type Dimension struct { // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // The value representing the dimension measurement + // The value representing the dimension measurement. // // Value is a required field Value *string `min:"1" type:"string" required:"true"` @@ -1350,7 +1572,19 @@ func (s *Dimension) Validate() error { return nil } -// The DimensionFilter data type is used to filter ListMetrics results. +// SetName sets the Name field's value. +func (s *Dimension) SetName(v string) *Dimension { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Dimension) SetValue(v string) *Dimension { + s.Value = &v + return s +} + +// Represents filters for a dimension. type DimensionFilter struct { _ struct{} `type:"structure"` @@ -1360,9 +1594,6 @@ type DimensionFilter struct { Name *string `min:"1" type:"string" required:"true"` // The value of the dimension to be matched. - // - // Specifying a Name without specifying a Value returns all values associated - // with that Name. Value *string `min:"1" type:"string"` } @@ -1395,10 +1626,22 @@ func (s *DimensionFilter) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DimensionFilter) SetName(v string) *DimensionFilter { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DimensionFilter) SetValue(v string) *DimensionFilter { + s.Value = &v + return s +} + type DisableAlarmActionsInput struct { _ struct{} `type:"structure"` - // The names of the alarms to disable actions for. + // The names of the alarms. // // AlarmNames is a required field AlarmNames []*string `type:"list" required:"true"` @@ -1427,6 +1670,12 @@ func (s *DisableAlarmActionsInput) Validate() error { return nil } +// SetAlarmNames sets the AlarmNames field's value. +func (s *DisableAlarmActionsInput) SetAlarmNames(v []*string) *DisableAlarmActionsInput { + s.AlarmNames = v + return s +} + type DisableAlarmActionsOutput struct { _ struct{} `type:"structure"` } @@ -1441,11 +1690,10 @@ func (s DisableAlarmActionsOutput) GoString() string { return s.String() } -// Describes the inputs for EnableAlarmActions. type EnableAlarmActionsInput struct { _ struct{} `type:"structure"` - // The names of the alarms to enable actions for. + // The names of the alarms. // // AlarmNames is a required field AlarmNames []*string `type:"list" required:"true"` @@ -1474,6 +1722,12 @@ func (s *EnableAlarmActionsInput) Validate() error { return nil } +// SetAlarmNames sets the AlarmNames field's value. +func (s *EnableAlarmActionsInput) SetAlarmNames(v []*string) *EnableAlarmActionsInput { + s.AlarmNames = v + return s +} + type EnableAlarmActionsOutput struct { _ struct{} `type:"structure"` } @@ -1488,20 +1742,29 @@ func (s EnableAlarmActionsOutput) GoString() string { return s.String() } -// Describes the inputs for GetMetricStatistics. type GetMetricStatisticsInput struct { _ struct{} `type:"structure"` - // A list of dimensions describing qualities of the metric. + // The dimensions. CloudWatch treats each unique combination of dimensions as + // a separate metric. You can't retrieve statistics using combinations of dimensions + // that were not specially published. You must specify the same dimensions that + // were used when the metrics were created. For an example, see Dimension Combinations + // (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations) + // in the Amazon CloudWatch User Guide. Dimensions []*Dimension `type:"list"` - // The time stamp to use for determining the last datapoint to return. The value - // specified is exclusive; results will include datapoints up to the time stamp - // specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z). + // The time stamp that determines the last data point to return. + // + // The value specified is exclusive; results will include data points up to + // the specified time stamp. The time stamp must be in ISO 8601 UTC format (for + // example, 2016-10-10T23:00:00Z). // // EndTime is a required field EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + // The percentile statistics. Specify values between p0.0 and p100. + ExtendedStatistics []*string `min:"1" type:"list"` + // The name of the metric, with or without spaces. // // MetricName is a required field @@ -1512,38 +1775,51 @@ type GetMetricStatisticsInput struct { // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` - // The granularity, in seconds, of the returned datapoints. A Period can be - // as short as one minute (60 seconds) or as long as one day (86,400 seconds), - // and must be a multiple of 60. The default value is 60. + // The granularity, in seconds, of the returned data points. A period can be + // as short as one minute (60 seconds) and must be a multiple of 60. The default + // value is 60. + // + // If the StartTime parameter specifies a time stamp that is greater than 15 + // days ago, you must specify the period as follows or no data points in that + // time range is returned: + // + // * Start time between 15 and 63 days ago - Use a multiple of 300 seconds + // (5 minutes). + // + // * Start time greater than 63 days ago - Use a multiple of 3600 seconds + // (1 hour). // // Period is a required field Period *int64 `min:"60" type:"integer" required:"true"` - // The time stamp to use for determining the first datapoint to return. The - // value specified is inclusive; results include datapoints with the time stamp - // specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z). + // The time stamp that determines the first data point to return. Note that + // start times are evaluated relative to the time that CloudWatch receives the + // request. // - // The specified start time is rounded down to the nearest value. Datapoints - // are returned for start times up to two weeks in the past. Specified start - // times that are more than two weeks in the past will not return datapoints - // for metrics that are older than two weeks. + // The value specified is inclusive; results include data points with the specified + // time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z). // - // Data that is timestamped 24 hours or more in the past may take in excess - // of 48 hours to become available from submission time using GetMetricStatistics. + // CloudWatch rounds the specified time stamp as follows: + // + // * Start time less than 15 days ago - Round down to the nearest whole minute. + // For example, 12:32:34 is rounded down to 12:32:00. + // + // * Start time between 15 and 63 days ago - Round down to the nearest 5-minute + // clock interval. For example, 12:32:34 is rounded down to 12:30:00. + // + // * Start time greater than 63 days ago - Round down to the nearest 1-hour + // clock interval. For example, 12:32:34 is rounded down to 12:00:00. // // StartTime is a required field StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` - // The metric statistics to return. For information about specific statistics - // returned by GetMetricStatistics, see Statistics (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Statistic) - // in the Amazon CloudWatch Developer Guide. - // - // Statistics is a required field - Statistics []*string `min:"1" type:"list" required:"true"` + // The metric statistics, other than percentile. For percentile statistics, + // use ExtendedStatistic. + Statistics []*string `min:"1" type:"list"` - // The specific unit for a given metric. Metrics may be reported in multiple - // units. Not supplying a unit results in all units being returned. If the metric - // only ever reports one unit, specifying a unit will have no effect. + // The unit for a given metric. Metrics may be reported in multiple units. Not + // supplying a unit results in all units being returned. If the metric only + // ever reports one unit, specifying a unit has no effect. Unit *string `type:"string" enum:"StandardUnit"` } @@ -1563,6 +1839,9 @@ func (s *GetMetricStatisticsInput) Validate() error { if s.EndTime == nil { invalidParams.Add(request.NewErrParamRequired("EndTime")) } + if s.ExtendedStatistics != nil && len(s.ExtendedStatistics) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExtendedStatistics", 1)) + } if s.MetricName == nil { invalidParams.Add(request.NewErrParamRequired("MetricName")) } @@ -1584,9 +1863,6 @@ func (s *GetMetricStatisticsInput) Validate() error { if s.StartTime == nil { invalidParams.Add(request.NewErrParamRequired("StartTime")) } - if s.Statistics == nil { - invalidParams.Add(request.NewErrParamRequired("Statistics")) - } if s.Statistics != nil && len(s.Statistics) < 1 { invalidParams.Add(request.NewErrParamMinLen("Statistics", 1)) } @@ -1607,14 +1883,67 @@ func (s *GetMetricStatisticsInput) Validate() error { return nil } -// The output for GetMetricStatistics. +// SetDimensions sets the Dimensions field's value. +func (s *GetMetricStatisticsInput) SetDimensions(v []*Dimension) *GetMetricStatisticsInput { + s.Dimensions = v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *GetMetricStatisticsInput) SetEndTime(v time.Time) *GetMetricStatisticsInput { + s.EndTime = &v + return s +} + +// SetExtendedStatistics sets the ExtendedStatistics field's value. +func (s *GetMetricStatisticsInput) SetExtendedStatistics(v []*string) *GetMetricStatisticsInput { + s.ExtendedStatistics = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *GetMetricStatisticsInput) SetMetricName(v string) *GetMetricStatisticsInput { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *GetMetricStatisticsInput) SetNamespace(v string) *GetMetricStatisticsInput { + s.Namespace = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *GetMetricStatisticsInput) SetPeriod(v int64) *GetMetricStatisticsInput { + s.Period = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetMetricStatisticsInput) SetStartTime(v time.Time) *GetMetricStatisticsInput { + s.StartTime = &v + return s +} + +// SetStatistics sets the Statistics field's value. +func (s *GetMetricStatisticsInput) SetStatistics(v []*string) *GetMetricStatisticsInput { + s.Statistics = v + return s +} + +// SetUnit sets the Unit field's value. +func (s *GetMetricStatisticsInput) SetUnit(v string) *GetMetricStatisticsInput { + s.Unit = &v + return s +} + type GetMetricStatisticsOutput struct { _ struct{} `type:"structure"` - // The datapoints for the specified metric. + // The data points for the specified metric. Datapoints []*Datapoint `type:"list"` - // A label describing the specified metric. + // A label for the specified metric. Label *string `type:"string"` } @@ -1628,11 +1957,22 @@ func (s GetMetricStatisticsOutput) GoString() string { return s.String() } -// Describes the inputs for ListMetrics. +// SetDatapoints sets the Datapoints field's value. +func (s *GetMetricStatisticsOutput) SetDatapoints(v []*Datapoint) *GetMetricStatisticsOutput { + s.Datapoints = v + return s +} + +// SetLabel sets the Label field's value. +func (s *GetMetricStatisticsOutput) SetLabel(v string) *GetMetricStatisticsOutput { + s.Label = &v + return s +} + type ListMetricsInput struct { _ struct{} `type:"structure"` - // A list of dimensions to filter against. + // The dimensions to filter against. Dimensions []*DimensionFilter `type:"list"` // The name of the metric to filter against. @@ -1682,14 +2022,37 @@ func (s *ListMetricsInput) Validate() error { return nil } -// The output for ListMetrics. +// SetDimensions sets the Dimensions field's value. +func (s *ListMetricsInput) SetDimensions(v []*DimensionFilter) *ListMetricsInput { + s.Dimensions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *ListMetricsInput) SetMetricName(v string) *ListMetricsInput { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ListMetricsInput) SetNamespace(v string) *ListMetricsInput { + s.Namespace = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMetricsInput) SetNextToken(v string) *ListMetricsInput { + s.NextToken = &v + return s +} + type ListMetricsOutput struct { _ struct{} `type:"structure"` - // A list of metrics used to generate statistics for an AWS account. + // The metrics. Metrics []*Metric `type:"list"` - // A string that marks the start of the next batch of returned results. + // The token that marks the start of the next batch of returned results. NextToken *string `type:"string"` } @@ -1703,17 +2066,23 @@ func (s ListMetricsOutput) GoString() string { return s.String() } -// The Metric data type contains information about a specific metric. If you -// call ListMetrics, Amazon CloudWatch returns information contained by this -// data type. -// -// The example in the Examples section publishes two metrics named buffers -// and latency. Both metrics are in the examples namespace. Both metrics have -// two dimensions, InstanceID and InstanceType. +// SetMetrics sets the Metrics field's value. +func (s *ListMetricsOutput) SetMetrics(v []*Metric) *ListMetricsOutput { + s.Metrics = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMetricsOutput) SetNextToken(v string) *ListMetricsOutput { + s.NextToken = &v + return s +} + +// Represents a specific metric. type Metric struct { _ struct{} `type:"structure"` - // A list of dimensions associated with the metric. + // The dimensions for the metric. Dimensions []*Dimension `type:"list"` // The name of the metric. @@ -1733,18 +2102,34 @@ func (s Metric) GoString() string { return s.String() } -// The MetricAlarm data type represents an alarm. You can use PutMetricAlarm -// to create or update an alarm. +// SetDimensions sets the Dimensions field's value. +func (s *Metric) SetDimensions(v []*Dimension) *Metric { + s.Dimensions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *Metric) SetMetricName(v string) *Metric { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *Metric) SetNamespace(v string) *Metric { + s.Namespace = &v + return s +} + +// Represents an alarm. type MetricAlarm struct { _ struct{} `type:"structure"` - // Indicates whether actions should be executed during any changes to the alarm's + // Indicates whether actions should be executed during any changes to the alarm // state. ActionsEnabled *bool `type:"boolean"` - // The list of actions to execute when this alarm transitions into an ALARM - // state from any other state. Each action is specified as an Amazon Resource - // Name (ARN). + // The actions to execute when this alarm transitions to the ALARM state from + // any other state. Each action is specified as an Amazon Resource Name (ARN). AlarmActions []*string `type:"list"` // The Amazon Resource Name (ARN) of the alarm. @@ -1753,62 +2138,64 @@ type MetricAlarm struct { // The time stamp of the last update to the alarm configuration. AlarmConfigurationUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The description for the alarm. + // The description of the alarm. AlarmDescription *string `type:"string"` // The name of the alarm. AlarmName *string `min:"1" type:"string"` - // The arithmetic operation to use when comparing the specified Statistic and - // Threshold. The specified Statistic value is used as the first operand. + // The arithmetic operation to use when comparing the specified statistic and + // threshold. The specified statistic value is used as the first operand. ComparisonOperator *string `type:"string" enum:"ComparisonOperator"` - // The list of dimensions associated with the alarm's associated metric. + // The dimensions for the metric associated with the alarm. Dimensions []*Dimension `type:"list"` // The number of periods over which data is compared to the specified threshold. EvaluationPeriods *int64 `min:"1" type:"integer"` - // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA + // The percentile statistic for the metric associated with the alarm. Specify + // a value between p0.0 and p100. + ExtendedStatistic *string `type:"string"` + + // The actions to execute when this alarm transitions to the INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource // Name (ARN). - // - // The current WSDL lists this attribute as UnknownActions. InsufficientDataActions []*string `type:"list"` - // The name of the alarm's metric. + // The name of the metric associated with the alarm. MetricName *string `min:"1" type:"string"` - // The namespace of alarm's associated metric. + // The namespace of the metric associated with the alarm. Namespace *string `min:"1" type:"string"` - // The list of actions to execute when this alarm transitions into an OK state - // from any other state. Each action is specified as an Amazon Resource Name - // (ARN). + // The actions to execute when this alarm transitions to the OK state from any + // other state. Each action is specified as an Amazon Resource Name (ARN). OKActions []*string `type:"list"` - // The period in seconds over which the statistic is applied. + // The period, in seconds, over which the statistic is applied. Period *int64 `min:"60" type:"integer"` - // A human-readable explanation for the alarm's state. + // An explanation for the alarm state, in text format. StateReason *string `type:"string"` - // An explanation for the alarm's state in machine-readable JSON format + // An explanation for the alarm state, in JSON format. StateReasonData *string `type:"string"` - // The time stamp of the last update to the alarm's state. + // The time stamp of the last update to the alarm state. StateUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The state value for the alarm. StateValue *string `type:"string" enum:"StateValue"` - // The statistic to apply to the alarm's associated metric. + // The statistic for the metric associated with the alarm, other than percentile. + // For percentile statistics, use ExtendedStatistic. Statistic *string `type:"string" enum:"Statistic"` - // The value against which the specified statistic is compared. + // The value to compare with the specified statistic. Threshold *float64 `type:"double"` - // The unit of the alarm's associated metric. + // The unit of the metric associated with the alarm. Unit *string `type:"string" enum:"StandardUnit"` } @@ -1822,14 +2209,144 @@ func (s MetricAlarm) GoString() string { return s.String() } -// The MetricDatum data type encapsulates the information sent with PutMetricData -// to either create a new metric or add new values to be aggregated into an -// existing metric. +// SetActionsEnabled sets the ActionsEnabled field's value. +func (s *MetricAlarm) SetActionsEnabled(v bool) *MetricAlarm { + s.ActionsEnabled = &v + return s +} + +// SetAlarmActions sets the AlarmActions field's value. +func (s *MetricAlarm) SetAlarmActions(v []*string) *MetricAlarm { + s.AlarmActions = v + return s +} + +// SetAlarmArn sets the AlarmArn field's value. +func (s *MetricAlarm) SetAlarmArn(v string) *MetricAlarm { + s.AlarmArn = &v + return s +} + +// SetAlarmConfigurationUpdatedTimestamp sets the AlarmConfigurationUpdatedTimestamp field's value. +func (s *MetricAlarm) SetAlarmConfigurationUpdatedTimestamp(v time.Time) *MetricAlarm { + s.AlarmConfigurationUpdatedTimestamp = &v + return s +} + +// SetAlarmDescription sets the AlarmDescription field's value. +func (s *MetricAlarm) SetAlarmDescription(v string) *MetricAlarm { + s.AlarmDescription = &v + return s +} + +// SetAlarmName sets the AlarmName field's value. +func (s *MetricAlarm) SetAlarmName(v string) *MetricAlarm { + s.AlarmName = &v + return s +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *MetricAlarm) SetComparisonOperator(v string) *MetricAlarm { + s.ComparisonOperator = &v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *MetricAlarm) SetDimensions(v []*Dimension) *MetricAlarm { + s.Dimensions = v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *MetricAlarm) SetEvaluationPeriods(v int64) *MetricAlarm { + s.EvaluationPeriods = &v + return s +} + +// SetExtendedStatistic sets the ExtendedStatistic field's value. +func (s *MetricAlarm) SetExtendedStatistic(v string) *MetricAlarm { + s.ExtendedStatistic = &v + return s +} + +// SetInsufficientDataActions sets the InsufficientDataActions field's value. +func (s *MetricAlarm) SetInsufficientDataActions(v []*string) *MetricAlarm { + s.InsufficientDataActions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *MetricAlarm) SetMetricName(v string) *MetricAlarm { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *MetricAlarm) SetNamespace(v string) *MetricAlarm { + s.Namespace = &v + return s +} + +// SetOKActions sets the OKActions field's value. +func (s *MetricAlarm) SetOKActions(v []*string) *MetricAlarm { + s.OKActions = v + return s +} + +// SetPeriod sets the Period field's value. +func (s *MetricAlarm) SetPeriod(v int64) *MetricAlarm { + s.Period = &v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *MetricAlarm) SetStateReason(v string) *MetricAlarm { + s.StateReason = &v + return s +} + +// SetStateReasonData sets the StateReasonData field's value. +func (s *MetricAlarm) SetStateReasonData(v string) *MetricAlarm { + s.StateReasonData = &v + return s +} + +// SetStateUpdatedTimestamp sets the StateUpdatedTimestamp field's value. +func (s *MetricAlarm) SetStateUpdatedTimestamp(v time.Time) *MetricAlarm { + s.StateUpdatedTimestamp = &v + return s +} + +// SetStateValue sets the StateValue field's value. +func (s *MetricAlarm) SetStateValue(v string) *MetricAlarm { + s.StateValue = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *MetricAlarm) SetStatistic(v string) *MetricAlarm { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *MetricAlarm) SetThreshold(v float64) *MetricAlarm { + s.Threshold = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *MetricAlarm) SetUnit(v string) *MetricAlarm { + s.Unit = &v + return s +} + +// Encapsulates the information sent to either create a metric or add new values +// to be aggregated into an existing metric. type MetricDatum struct { _ struct{} `type:"structure"` - // A list of dimensions associated with the metric. Note, when using the Dimensions - // value in a query, you need to append .member.N to it (e.g., Dimensions.member.N). + // The dimensions associated with the metric. Dimensions []*Dimension `type:"list"` // The name of the metric. @@ -1837,12 +2354,11 @@ type MetricDatum struct { // MetricName is a required field MetricName *string `min:"1" type:"string" required:"true"` - // A set of statistical values describing the metric. + // The statistical values for the metric. StatisticValues *StatisticSet `type:"structure"` - // The time stamp used for the metric in ISO 8601 Universal Coordinated Time - // (UTC) format. If not specified, the default value is set to the time the - // metric data was received. + // The time the metric data was received, expressed as the number of milliseconds + // since Jan 1, 1970 00:00:00 UTC. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The unit of the metric. @@ -1850,11 +2366,11 @@ type MetricDatum struct { // The value for the metric. // - // Although the Value parameter accepts numbers of type Double, Amazon CloudWatch + // Although the parameter accepts numbers of type Double, Amazon CloudWatch // rejects values that are either too small or too large. Values must be in // the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 - // (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are - // not supported. + // (Base 2). In addition, special values (for example, NaN, +Infinity, -Infinity) + // are not supported. Value *float64 `type:"double"` } @@ -1899,47 +2415,75 @@ func (s *MetricDatum) Validate() error { return nil } -// Describes the inputs for PutMetricAlarm. +// SetDimensions sets the Dimensions field's value. +func (s *MetricDatum) SetDimensions(v []*Dimension) *MetricDatum { + s.Dimensions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *MetricDatum) SetMetricName(v string) *MetricDatum { + s.MetricName = &v + return s +} + +// SetStatisticValues sets the StatisticValues field's value. +func (s *MetricDatum) SetStatisticValues(v *StatisticSet) *MetricDatum { + s.StatisticValues = v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *MetricDatum) SetTimestamp(v time.Time) *MetricDatum { + s.Timestamp = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *MetricDatum) SetUnit(v string) *MetricDatum { + s.Unit = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MetricDatum) SetValue(v float64) *MetricDatum { + s.Value = &v + return s +} + type PutMetricAlarmInput struct { _ struct{} `type:"structure"` - // Indicates whether or not actions should be executed during any changes to - // the alarm's state. + // Indicates whether actions should be executed during any changes to the alarm + // state. ActionsEnabled *bool `type:"boolean"` - // The list of actions to execute when this alarm transitions into an ALARM - // state from any other state. Each action is specified as an Amazon Resource - // Name (ARN). + // The actions to execute when this alarm transitions to the ALARM state from + // any other state. Each action is specified as an Amazon Resource Name (ARN). // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover + // Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate + // | arn:aws:automate:region:ec2:recover // // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. AlarmActions []*string `type:"list"` // The description for the alarm. AlarmDescription *string `type:"string"` - // The descriptive name for the alarm. This name must be unique within the user's - // AWS account + // The name for the alarm. This name must be unique within the AWS account. // // AlarmName is a required field AlarmName *string `min:"1" type:"string" required:"true"` - // The arithmetic operation to use when comparing the specified Statistic and - // Threshold. The specified Statistic value is used as the first operand. + // The arithmetic operation to use when comparing the specified statistic and + // threshold. The specified statistic value is used as the first operand. // // ComparisonOperator is a required field ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` - // The dimensions for the alarm's associated metric. + // The dimensions for the metric associated with the alarm. Dimensions []*Dimension `type:"list"` // The number of periods over which data is compared to the specified threshold. @@ -1947,75 +2491,67 @@ type PutMetricAlarmInput struct { // EvaluationPeriods is a required field EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"` - // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA + // The percentile statistic for the metric associated with the alarm. Specify + // a value between p0.0 and p100. + ExtendedStatistic *string `type:"string"` + + // The actions to execute when this alarm transitions to the INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource // Name (ARN). // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover + // Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate + // | arn:aws:automate:region:ec2:recover // // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. InsufficientDataActions []*string `type:"list"` - // The name for the alarm's associated metric. + // The name for the metric associated with the alarm. // // MetricName is a required field MetricName *string `min:"1" type:"string" required:"true"` - // The namespace for the alarm's associated metric. + // The namespace for the metric associated with the alarm. // // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` - // The list of actions to execute when this alarm transitions into an OK state - // from any other state. Each action is specified as an Amazon Resource Name - // (ARN). + // The actions to execute when this alarm transitions to an OK state from any + // other state. Each action is specified as an Amazon Resource Name (ARN). // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover + // Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate + // | arn:aws:automate:region:ec2:recover // // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. OKActions []*string `type:"list"` - // The period in seconds over which the specified statistic is applied. + // The period, in seconds, over which the specified statistic is applied. // // Period is a required field Period *int64 `min:"60" type:"integer" required:"true"` - // The statistic to apply to the alarm's associated metric. - // - // Statistic is a required field - Statistic *string `type:"string" required:"true" enum:"Statistic"` + // The statistic for the metric associated with the alarm, other than percentile. + // For percentile statistics, use ExtendedStatistic. + Statistic *string `type:"string" enum:"Statistic"` // The value against which the specified statistic is compared. // // Threshold is a required field Threshold *float64 `type:"double" required:"true"` - // The statistic's unit of measure. For example, the units for the Amazon EC2 - // NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that - // an instance receives on all network interfaces. You can also specify a unit - // when you create a custom metric. Units help provide conceptual meaning to - // your data. Metric data points that specify a unit of measure, such as Percent, - // are aggregated separately. + // The unit of measure for the statistic. For example, the units for the Amazon + // EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes + // that an instance receives on all network interfaces. You can also specify + // a unit when you create a custom metric. Units help provide conceptual meaning + // to your data. Metric data points that specify a unit of measure, such as + // Percent, are aggregated separately. // - // Note: If you specify a unit, you must use a unit that is appropriate for - // the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck - // in the INSUFFICIENT DATA state. + // If you specify a unit, you must use a unit that is appropriate for the metric. + // Otherwise, the Amazon CloudWatch alarm can get stuck in the INSUFFICIENT + // DATA state. Unit *string `type:"string" enum:"StandardUnit"` } @@ -2065,9 +2601,6 @@ func (s *PutMetricAlarmInput) Validate() error { if s.Period != nil && *s.Period < 60 { invalidParams.Add(request.NewErrParamMinValue("Period", 60)) } - if s.Statistic == nil { - invalidParams.Add(request.NewErrParamRequired("Statistic")) - } if s.Threshold == nil { invalidParams.Add(request.NewErrParamRequired("Threshold")) } @@ -2088,6 +2621,102 @@ func (s *PutMetricAlarmInput) Validate() error { return nil } +// SetActionsEnabled sets the ActionsEnabled field's value. +func (s *PutMetricAlarmInput) SetActionsEnabled(v bool) *PutMetricAlarmInput { + s.ActionsEnabled = &v + return s +} + +// SetAlarmActions sets the AlarmActions field's value. +func (s *PutMetricAlarmInput) SetAlarmActions(v []*string) *PutMetricAlarmInput { + s.AlarmActions = v + return s +} + +// SetAlarmDescription sets the AlarmDescription field's value. +func (s *PutMetricAlarmInput) SetAlarmDescription(v string) *PutMetricAlarmInput { + s.AlarmDescription = &v + return s +} + +// SetAlarmName sets the AlarmName field's value. +func (s *PutMetricAlarmInput) SetAlarmName(v string) *PutMetricAlarmInput { + s.AlarmName = &v + return s +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *PutMetricAlarmInput) SetComparisonOperator(v string) *PutMetricAlarmInput { + s.ComparisonOperator = &v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *PutMetricAlarmInput) SetDimensions(v []*Dimension) *PutMetricAlarmInput { + s.Dimensions = v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *PutMetricAlarmInput) SetEvaluationPeriods(v int64) *PutMetricAlarmInput { + s.EvaluationPeriods = &v + return s +} + +// SetExtendedStatistic sets the ExtendedStatistic field's value. +func (s *PutMetricAlarmInput) SetExtendedStatistic(v string) *PutMetricAlarmInput { + s.ExtendedStatistic = &v + return s +} + +// SetInsufficientDataActions sets the InsufficientDataActions field's value. +func (s *PutMetricAlarmInput) SetInsufficientDataActions(v []*string) *PutMetricAlarmInput { + s.InsufficientDataActions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *PutMetricAlarmInput) SetMetricName(v string) *PutMetricAlarmInput { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *PutMetricAlarmInput) SetNamespace(v string) *PutMetricAlarmInput { + s.Namespace = &v + return s +} + +// SetOKActions sets the OKActions field's value. +func (s *PutMetricAlarmInput) SetOKActions(v []*string) *PutMetricAlarmInput { + s.OKActions = v + return s +} + +// SetPeriod sets the Period field's value. +func (s *PutMetricAlarmInput) SetPeriod(v int64) *PutMetricAlarmInput { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *PutMetricAlarmInput) SetStatistic(v string) *PutMetricAlarmInput { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *PutMetricAlarmInput) SetThreshold(v float64) *PutMetricAlarmInput { + s.Threshold = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *PutMetricAlarmInput) SetUnit(v string) *PutMetricAlarmInput { + s.Unit = &v + return s +} + type PutMetricAlarmOutput struct { _ struct{} `type:"structure"` } @@ -2102,20 +2731,18 @@ func (s PutMetricAlarmOutput) GoString() string { return s.String() } -// Describes the inputs for PutMetricData. type PutMetricDataInput struct { _ struct{} `type:"structure"` - // A list of data describing the metric. + // The data for the metric. // // MetricData is a required field MetricData []*MetricDatum `type:"list" required:"true"` // The namespace for the metric data. // - // You cannot specify a namespace that begins with "AWS/". Namespaces that - // begin with "AWS/" are reserved for other Amazon Web Services products that - // send metrics to Amazon CloudWatch. + // You cannot specify a namespace that begins with "AWS/". Namespaces that begin + // with "AWS/" are reserved for use by Amazon Web Services products. // // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` @@ -2160,6 +2787,18 @@ func (s *PutMetricDataInput) Validate() error { return nil } +// SetMetricData sets the MetricData field's value. +func (s *PutMetricDataInput) SetMetricData(v []*MetricDatum) *PutMetricDataInput { + s.MetricData = v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *PutMetricDataInput) SetNamespace(v string) *PutMetricDataInput { + s.Namespace = &v + return s +} + type PutMetricDataOutput struct { _ struct{} `type:"structure"` } @@ -2174,24 +2813,21 @@ func (s PutMetricDataOutput) GoString() string { return s.String() } -// Describes the inputs for SetAlarmState. type SetAlarmStateInput struct { _ struct{} `type:"structure"` - // The descriptive name for the alarm. This name must be unique within the user's - // AWS account. The maximum length is 255 characters. + // The name for the alarm. This name must be unique within the AWS account. + // The maximum length is 255 characters. // // AlarmName is a required field AlarmName *string `min:"1" type:"string" required:"true"` - // The reason that this alarm is set to this specific state (in human-readable - // text format) + // The reason that this alarm is set to this specific state, in text format. // // StateReason is a required field StateReason *string `type:"string" required:"true"` - // The reason that this alarm is set to this specific state (in machine-readable - // JSON format) + // The reason that this alarm is set to this specific state, in JSON format. StateReasonData *string `type:"string"` // The value of the state. @@ -2232,6 +2868,30 @@ func (s *SetAlarmStateInput) Validate() error { return nil } +// SetAlarmName sets the AlarmName field's value. +func (s *SetAlarmStateInput) SetAlarmName(v string) *SetAlarmStateInput { + s.AlarmName = &v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *SetAlarmStateInput) SetStateReason(v string) *SetAlarmStateInput { + s.StateReason = &v + return s +} + +// SetStateReasonData sets the StateReasonData field's value. +func (s *SetAlarmStateInput) SetStateReasonData(v string) *SetAlarmStateInput { + s.StateReasonData = &v + return s +} + +// SetStateValue sets the StateValue field's value. +func (s *SetAlarmStateInput) SetStateValue(v string) *SetAlarmStateInput { + s.StateValue = &v + return s +} + type SetAlarmStateOutput struct { _ struct{} `type:"structure"` } @@ -2246,8 +2906,7 @@ func (s SetAlarmStateOutput) GoString() string { return s.String() } -// The StatisticSet data type describes the StatisticValues component of MetricDatum, -// and represents a set of statistics that describes a specific metric. +// Represents a set of statistics that describes a specific metric. type StatisticSet struct { _ struct{} `type:"structure"` @@ -2304,6 +2963,30 @@ func (s *StatisticSet) Validate() error { return nil } +// SetMaximum sets the Maximum field's value. +func (s *StatisticSet) SetMaximum(v float64) *StatisticSet { + s.Maximum = &v + return s +} + +// SetMinimum sets the Minimum field's value. +func (s *StatisticSet) SetMinimum(v float64) *StatisticSet { + s.Minimum = &v + return s +} + +// SetSampleCount sets the SampleCount field's value. +func (s *StatisticSet) SetSampleCount(v float64) *StatisticSet { + s.SampleCount = &v + return s +} + +// SetSum sets the Sum field's value. +func (s *StatisticSet) SetSum(v float64) *StatisticSet { + s.Sum = &v + return s +} + const ( // ComparisonOperatorGreaterThanOrEqualToThreshold is a ComparisonOperator enum value ComparisonOperatorGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go index 3ec1c868a..578569ce7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go @@ -63,7 +63,7 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque // Deletes a rule. You must remove all targets from a rule using RemoveTargets // before you can delete the rule. // -// Note: When you delete a rule, incoming events might still continue to match +// Note: When you delete a rule, incoming events might still continue to match // to the deleted rule. Please allow a short period of time for changes to take // effect. // @@ -204,9 +204,9 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req // Disables a rule. A disabled rule won't match any events, and won't self-trigger // if it has a schedule expression. // -// Note: When you disable a rule, incoming events might still continue to -// match to the disabled rule. Please allow a short period of time for changes -// to take effect. +// Note: When you disable a rule, incoming events might still continue to match +// to the disabled rule. Please allow a short period of time for changes to +// take effect. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -280,7 +280,7 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque // // Enables a rule. If the rule does not exist, the operation fails. // -// Note: When you enable a rule, incoming events might not immediately start +// Note: When you enable a rule, incoming events might not immediately start // matching to a newly enabled rule. Please allow a short period of time for // changes to take effect. // @@ -624,7 +624,7 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // Creates or updates a rule. Rules are enabled by default, or based on value // of the State parameter. You can disable a rule using DisableRule. // -// Note: When you create or update a rule, incoming events might not immediately +// Note: When you create or update a rule, incoming events might not immediately // start matching to new or updated rules. Please allow a short period of time // for changes to take effect. // @@ -634,11 +634,10 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // can have both an EventPattern and a ScheduleExpression, in which case the // rule will trigger on matching events as well as on a schedule. // -// Note: Most services in AWS treat : or / as the same character in Amazon -// Resource Names (ARNs). However, CloudWatch Events uses an exact match in -// event patterns and rules. Be sure to use the correct ARN characters when -// creating event patterns so that they match the ARN syntax in the event you -// want to match. +// Note: Most services in AWS treat : or / as the same character in Amazon Resource +// Names (ARNs). However, CloudWatch Events uses an exact match in event patterns +// and rules. Be sure to use the correct ARN characters when creating event +// patterns so that they match the ARN syntax in the event you want to match. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -725,17 +724,19 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque // see Permissions for Sending Events to Targets (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/EventsTargetPermissions.html) // in the Amazon CloudWatch Developer Guide. // -// Input and InputPath are mutually-exclusive and optional parameters of a -// target. When a rule is triggered due to a matched event, if for a target: +// Input and InputPath are mutually-exclusive and optional parameters of a target. +// When a rule is triggered due to a matched event, if for a target: // -// Neither Input nor InputPath is specified, then the entire event is passed -// to the target in JSON form. InputPath is specified in the form of JSONPath -// (e.g. $.detail), then only the part of the event specified in the path is -// passed to the target (e.g. only the detail part of the event is passed). -// Input is specified in the form of a valid JSON, then the matched event -// is overridden with this constant. Note: When you add targets to a rule, -// when the associated rule triggers, new or updated targets might not be immediately -// invoked. Please allow a short period of time for changes to take effect. +// * Neither Input nor InputPath is specified, then the entire event is passed +// to the target in JSON form. +// * InputPath is specified in the form of JSONPath (e.g. $.detail), then +// only the part of the event specified in the path is passed to the target +// (e.g. only the detail part of the event is passed). +// * Input is specified in the form of a valid JSON, then the matched event +// is overridden with this constant. +// Note: When you add targets to a rule, when the associated rule triggers, +// new or updated targets might not be immediately invoked. Please allow a short +// period of time for changes to take effect. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -812,7 +813,7 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req // Removes target(s) from a rule so that when the rule is triggered, those targets // will no longer be invoked. // -// Note: When you remove a target, when the associated rule triggers, removed +// Note: When you remove a target, when the associated rule triggers, removed // targets might still continue to be invoked. Please allow a short period of // time for changes to take effect. // @@ -886,11 +887,10 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) // // Tests whether an event pattern matches the provided event. // -// Note: Most services in AWS treat : or / as the same character in Amazon -// Resource Names (ARNs). However, CloudWatch Events uses an exact match in -// event patterns and rules. Be sure to use the correct ARN characters when -// creating event patterns so that they match the ARN syntax in the event you -// want to match. +// Note: Most services in AWS treat : or / as the same character in Amazon Resource +// Names (ARNs). However, CloudWatch Events uses an exact match in event patterns +// and rules. Be sure to use the correct ARN characters when creating event +// patterns so that they match the ARN syntax in the event you want to match. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -948,6 +948,12 @@ func (s *DeleteRuleInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeleteRuleInput) SetName(v string) *DeleteRuleInput { + s.Name = &v + return s +} + type DeleteRuleOutput struct { _ struct{} `type:"structure"` } @@ -998,6 +1004,12 @@ func (s *DescribeRuleInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DescribeRuleInput) SetName(v string) *DescribeRuleInput { + s.Name = &v + return s +} + // The result of the DescribeRule operation. type DescribeRuleOutput struct { _ struct{} `type:"structure"` @@ -1034,6 +1046,48 @@ func (s DescribeRuleOutput) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *DescribeRuleOutput) SetArn(v string) *DescribeRuleOutput { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeRuleOutput) SetDescription(v string) *DescribeRuleOutput { + s.Description = &v + return s +} + +// SetEventPattern sets the EventPattern field's value. +func (s *DescribeRuleOutput) SetEventPattern(v string) *DescribeRuleOutput { + s.EventPattern = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeRuleOutput) SetName(v string) *DescribeRuleOutput { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeRuleOutput) SetRoleArn(v string) *DescribeRuleOutput { + s.RoleArn = &v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *DescribeRuleOutput) SetScheduleExpression(v string) *DescribeRuleOutput { + s.ScheduleExpression = &v + return s +} + +// SetState sets the State field's value. +func (s *DescribeRuleOutput) SetState(v string) *DescribeRuleOutput { + s.State = &v + return s +} + // Container for the parameters to the DisableRule operation. type DisableRuleInput struct { _ struct{} `type:"structure"` @@ -1070,6 +1124,12 @@ func (s *DisableRuleInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DisableRuleInput) SetName(v string) *DisableRuleInput { + s.Name = &v + return s +} + type DisableRuleOutput struct { _ struct{} `type:"structure"` } @@ -1120,6 +1180,12 @@ func (s *EnableRuleInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *EnableRuleInput) SetName(v string) *EnableRuleInput { + s.Name = &v + return s +} + type EnableRuleOutput struct { _ struct{} `type:"structure"` } @@ -1184,6 +1250,24 @@ func (s *ListRuleNamesByTargetInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListRuleNamesByTargetInput) SetLimit(v int64) *ListRuleNamesByTargetInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRuleNamesByTargetInput) SetNextToken(v string) *ListRuleNamesByTargetInput { + s.NextToken = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ListRuleNamesByTargetInput) SetTargetArn(v string) *ListRuleNamesByTargetInput { + s.TargetArn = &v + return s +} + // The result of the ListRuleNamesByTarget operation. type ListRuleNamesByTargetOutput struct { _ struct{} `type:"structure"` @@ -1205,6 +1289,18 @@ func (s ListRuleNamesByTargetOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRuleNamesByTargetOutput) SetNextToken(v string) *ListRuleNamesByTargetOutput { + s.NextToken = &v + return s +} + +// SetRuleNames sets the RuleNames field's value. +func (s *ListRuleNamesByTargetOutput) SetRuleNames(v []*string) *ListRuleNamesByTargetOutput { + s.RuleNames = v + return s +} + // Container for the parameters to the ListRules operation. type ListRulesInput struct { _ struct{} `type:"structure"` @@ -1249,6 +1345,24 @@ func (s *ListRulesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListRulesInput) SetLimit(v int64) *ListRulesInput { + s.Limit = &v + return s +} + +// SetNamePrefix sets the NamePrefix field's value. +func (s *ListRulesInput) SetNamePrefix(v string) *ListRulesInput { + s.NamePrefix = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRulesInput) SetNextToken(v string) *ListRulesInput { + s.NextToken = &v + return s +} + // The result of the ListRules operation. type ListRulesOutput struct { _ struct{} `type:"structure"` @@ -1270,6 +1384,18 @@ func (s ListRulesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRulesOutput) SetNextToken(v string) *ListRulesOutput { + s.NextToken = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *ListRulesOutput) SetRules(v []*Rule) *ListRulesOutput { + s.Rules = v + return s +} + // Container for the parameters to the ListTargetsByRule operation. type ListTargetsByRuleInput struct { _ struct{} `type:"structure"` @@ -1319,6 +1445,24 @@ func (s *ListTargetsByRuleInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListTargetsByRuleInput) SetLimit(v int64) *ListTargetsByRuleInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTargetsByRuleInput) SetNextToken(v string) *ListTargetsByRuleInput { + s.NextToken = &v + return s +} + +// SetRule sets the Rule field's value. +func (s *ListTargetsByRuleInput) SetRule(v string) *ListTargetsByRuleInput { + s.Rule = &v + return s +} + // The result of the ListTargetsByRule operation. type ListTargetsByRuleOutput struct { _ struct{} `type:"structure"` @@ -1340,6 +1484,18 @@ func (s ListTargetsByRuleOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTargetsByRuleOutput) SetNextToken(v string) *ListTargetsByRuleOutput { + s.NextToken = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *ListTargetsByRuleOutput) SetTargets(v []*Target) *ListTargetsByRuleOutput { + s.Targets = v + return s +} + // Container for the parameters to the PutEvents operation. type PutEventsInput struct { _ struct{} `type:"structure"` @@ -1378,6 +1534,12 @@ func (s *PutEventsInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *PutEventsInput) SetEntries(v []*PutEventsRequestEntry) *PutEventsInput { + s.Entries = v + return s +} + // The result of the PutEvents operation. type PutEventsOutput struct { _ struct{} `type:"structure"` @@ -1402,6 +1564,18 @@ func (s PutEventsOutput) GoString() string { return s.String() } +// SetEntries sets the Entries field's value. +func (s *PutEventsOutput) SetEntries(v []*PutEventsResultEntry) *PutEventsOutput { + s.Entries = v + return s +} + +// SetFailedEntryCount sets the FailedEntryCount field's value. +func (s *PutEventsOutput) SetFailedEntryCount(v int64) *PutEventsOutput { + s.FailedEntryCount = &v + return s +} + // Contains information about the event to be used in PutEvents. type PutEventsRequestEntry struct { _ struct{} `type:"structure"` @@ -1436,6 +1610,36 @@ func (s PutEventsRequestEntry) GoString() string { return s.String() } +// SetDetail sets the Detail field's value. +func (s *PutEventsRequestEntry) SetDetail(v string) *PutEventsRequestEntry { + s.Detail = &v + return s +} + +// SetDetailType sets the DetailType field's value. +func (s *PutEventsRequestEntry) SetDetailType(v string) *PutEventsRequestEntry { + s.DetailType = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *PutEventsRequestEntry) SetResources(v []*string) *PutEventsRequestEntry { + s.Resources = v + return s +} + +// SetSource sets the Source field's value. +func (s *PutEventsRequestEntry) SetSource(v string) *PutEventsRequestEntry { + s.Source = &v + return s +} + +// SetTime sets the Time field's value. +func (s *PutEventsRequestEntry) SetTime(v time.Time) *PutEventsRequestEntry { + s.Time = &v + return s +} + // A PutEventsResult contains a list of PutEventsResultEntry. type PutEventsResultEntry struct { _ struct{} `type:"structure"` @@ -1460,6 +1664,24 @@ func (s PutEventsResultEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *PutEventsResultEntry) SetErrorCode(v string) *PutEventsResultEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PutEventsResultEntry) SetErrorMessage(v string) *PutEventsResultEntry { + s.ErrorMessage = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *PutEventsResultEntry) SetEventId(v string) *PutEventsResultEntry { + s.EventId = &v + return s +} + // Container for the parameters to the PutRule operation. type PutRuleInput struct { _ struct{} `type:"structure"` @@ -1514,6 +1736,42 @@ func (s *PutRuleInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *PutRuleInput) SetDescription(v string) *PutRuleInput { + s.Description = &v + return s +} + +// SetEventPattern sets the EventPattern field's value. +func (s *PutRuleInput) SetEventPattern(v string) *PutRuleInput { + s.EventPattern = &v + return s +} + +// SetName sets the Name field's value. +func (s *PutRuleInput) SetName(v string) *PutRuleInput { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *PutRuleInput) SetRoleArn(v string) *PutRuleInput { + s.RoleArn = &v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *PutRuleInput) SetScheduleExpression(v string) *PutRuleInput { + s.ScheduleExpression = &v + return s +} + +// SetState sets the State field's value. +func (s *PutRuleInput) SetState(v string) *PutRuleInput { + s.State = &v + return s +} + // The result of the PutRule operation. type PutRuleOutput struct { _ struct{} `type:"structure"` @@ -1532,6 +1790,12 @@ func (s PutRuleOutput) GoString() string { return s.String() } +// SetRuleArn sets the RuleArn field's value. +func (s *PutRuleOutput) SetRuleArn(v string) *PutRuleOutput { + s.RuleArn = &v + return s +} + // Container for the parameters to the PutTargets operation. type PutTargetsInput struct { _ struct{} `type:"structure"` @@ -1586,6 +1850,18 @@ func (s *PutTargetsInput) Validate() error { return nil } +// SetRule sets the Rule field's value. +func (s *PutTargetsInput) SetRule(v string) *PutTargetsInput { + s.Rule = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *PutTargetsInput) SetTargets(v []*Target) *PutTargetsInput { + s.Targets = v + return s +} + // The result of the PutTargets operation. type PutTargetsOutput struct { _ struct{} `type:"structure"` @@ -1607,6 +1883,18 @@ func (s PutTargetsOutput) GoString() string { return s.String() } +// SetFailedEntries sets the FailedEntries field's value. +func (s *PutTargetsOutput) SetFailedEntries(v []*PutTargetsResultEntry) *PutTargetsOutput { + s.FailedEntries = v + return s +} + +// SetFailedEntryCount sets the FailedEntryCount field's value. +func (s *PutTargetsOutput) SetFailedEntryCount(v int64) *PutTargetsOutput { + s.FailedEntryCount = &v + return s +} + // A PutTargetsResult contains a list of PutTargetsResultEntry. type PutTargetsResultEntry struct { _ struct{} `type:"structure"` @@ -1631,6 +1919,24 @@ func (s PutTargetsResultEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *PutTargetsResultEntry) SetErrorCode(v string) *PutTargetsResultEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PutTargetsResultEntry) SetErrorMessage(v string) *PutTargetsResultEntry { + s.ErrorMessage = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *PutTargetsResultEntry) SetTargetId(v string) *PutTargetsResultEntry { + s.TargetId = &v + return s +} + // Container for the parameters to the RemoveTargets operation. type RemoveTargetsInput struct { _ struct{} `type:"structure"` @@ -1678,6 +1984,18 @@ func (s *RemoveTargetsInput) Validate() error { return nil } +// SetIds sets the Ids field's value. +func (s *RemoveTargetsInput) SetIds(v []*string) *RemoveTargetsInput { + s.Ids = v + return s +} + +// SetRule sets the Rule field's value. +func (s *RemoveTargetsInput) SetRule(v string) *RemoveTargetsInput { + s.Rule = &v + return s +} + // The result of the RemoveTargets operation. type RemoveTargetsOutput struct { _ struct{} `type:"structure"` @@ -1699,6 +2017,18 @@ func (s RemoveTargetsOutput) GoString() string { return s.String() } +// SetFailedEntries sets the FailedEntries field's value. +func (s *RemoveTargetsOutput) SetFailedEntries(v []*RemoveTargetsResultEntry) *RemoveTargetsOutput { + s.FailedEntries = v + return s +} + +// SetFailedEntryCount sets the FailedEntryCount field's value. +func (s *RemoveTargetsOutput) SetFailedEntryCount(v int64) *RemoveTargetsOutput { + s.FailedEntryCount = &v + return s +} + // The ID of the target requested to be removed from the rule by Amazon CloudWatch // Events. type RemoveTargetsResultEntry struct { @@ -1724,6 +2054,24 @@ func (s RemoveTargetsResultEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *RemoveTargetsResultEntry) SetErrorCode(v string) *RemoveTargetsResultEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *RemoveTargetsResultEntry) SetErrorMessage(v string) *RemoveTargetsResultEntry { + s.ErrorMessage = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *RemoveTargetsResultEntry) SetTargetId(v string) *RemoveTargetsResultEntry { + s.TargetId = &v + return s +} + // Contains information about a rule in Amazon CloudWatch Events. A ListRulesResult // contains a list of Rules. type Rule struct { @@ -1762,18 +2110,61 @@ func (s Rule) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Rule) SetArn(v string) *Rule { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Rule) SetDescription(v string) *Rule { + s.Description = &v + return s +} + +// SetEventPattern sets the EventPattern field's value. +func (s *Rule) SetEventPattern(v string) *Rule { + s.EventPattern = &v + return s +} + +// SetName sets the Name field's value. +func (s *Rule) SetName(v string) *Rule { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Rule) SetRoleArn(v string) *Rule { + s.RoleArn = &v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *Rule) SetScheduleExpression(v string) *Rule { + s.ScheduleExpression = &v + return s +} + +// SetState sets the State field's value. +func (s *Rule) SetState(v string) *Rule { + s.State = &v + return s +} + // Targets are the resources that can be invoked when a rule is triggered. For // example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets. // -// Input and InputPath are mutually-exclusive and optional parameters of a -// target. When a rule is triggered due to a matched event, if for a target: +// Input and InputPath are mutually-exclusive and optional parameters of a target. +// When a rule is triggered due to a matched event, if for a target: // -// Neither Input nor InputPath is specified, then the entire event is passed -// to the target in JSON form. InputPath is specified in the form of JSONPath -// (e.g. $.detail), then only the part of the event specified in the path is -// passed to the target (e.g. only the detail part of the event is passed). -// Input is specified in the form of a valid JSON, then the matched event -// is overridden with this constant. +// * Neither Input nor InputPath is specified, then the entire event is passed +// to the target in JSON form. +// * InputPath is specified in the form of JSONPath (e.g. $.detail), then +// only the part of the event specified in the path is passed to the target +// (e.g. only the detail part of the event is passed). +// * Input is specified in the form of a valid JSON, then the matched event +// is overridden with this constant. type Target struct { _ struct{} `type:"structure"` @@ -1829,6 +2220,30 @@ func (s *Target) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *Target) SetArn(v string) *Target { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *Target) SetId(v string) *Target { + s.Id = &v + return s +} + +// SetInput sets the Input field's value. +func (s *Target) SetInput(v string) *Target { + s.Input = &v + return s +} + +// SetInputPath sets the InputPath field's value. +func (s *Target) SetInputPath(v string) *Target { + s.InputPath = &v + return s +} + // Container for the parameters to the TestEventPattern operation. type TestEventPatternInput struct { _ struct{} `type:"structure"` @@ -1870,6 +2285,18 @@ func (s *TestEventPatternInput) Validate() error { return nil } +// SetEvent sets the Event field's value. +func (s *TestEventPatternInput) SetEvent(v string) *TestEventPatternInput { + s.Event = &v + return s +} + +// SetEventPattern sets the EventPattern field's value. +func (s *TestEventPatternInput) SetEventPattern(v string) *TestEventPatternInput { + s.EventPattern = &v + return s +} + // The result of the TestEventPattern operation. type TestEventPatternOutput struct { _ struct{} `type:"structure"` @@ -1888,6 +2315,12 @@ func (s TestEventPatternOutput) GoString() string { return s.String() } +// SetResult sets the Result field's value. +func (s *TestEventPatternOutput) SetResult(v bool) *TestEventPatternOutput { + s.Result = &v + return s +} + const ( // RuleStateEnabled is a RuleState enum value RuleStateEnabled = "ENABLED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go index 0501a80d9..7bfa0937b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go @@ -18,11 +18,13 @@ import ( // to take action on a pre-determined schedule. For example, you can configure // rules to: // -// Automatically invoke an AWS Lambda function to update DNS entries when -// an event notifies you that Amazon EC2 instance enters the running state. -// Direct specific API records from CloudTrail to an Amazon Kinesis stream for -// detailed analysis of potential security or availability risks. Periodically -// invoke a built-in target to create a snapshot of an Amazon EBS volume. +// * Automatically invoke an AWS Lambda function to update DNS entries when +// an event notifies you that Amazon EC2 instance enters the running state. +// +// * Direct specific API records from CloudTrail to an Amazon Kinesis stream +// for detailed analysis of potential security or availability risks. +// * Periodically invoke a built-in target to create a snapshot of an Amazon +// EBS volume. // For more information about Amazon CloudWatch Events features, see the Amazon // CloudWatch Developer Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide). //The service client's operations are safe to be used concurrently. diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go index c69ad6f08..72d28986a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go @@ -59,7 +59,9 @@ func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) ( // CancelExportTask API operation for Amazon CloudWatch Logs. // -// Cancels an export task if it is in PENDING or RUNNING state. +// Cancels the specified export task. +// +// The task must be in the PENDING or RUNNING state. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -70,16 +72,16 @@ func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) ( // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * InvalidOperationException -// Returned if the operation is not valid on the specified resource +// The operation is not valid on the specified resource. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) { req, out := c.CancelExportTaskRequest(input) @@ -132,19 +134,18 @@ func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) ( // CreateExportTask API operation for Amazon CloudWatch Logs. // -// Creates an ExportTask which allows you to efficiently export data from a -// Log Group to your Amazon S3 bucket. +// Creates an export task, which allows you to efficiently export data from +// a log group to an Amazon S3 bucket. // // This is an asynchronous call. If all the required information is provided, -// this API will initiate an export task and respond with the task Id. Once -// started, DescribeExportTasks can be used to get the status of an export task. -// You can only have one active (RUNNING or PENDING) export task at a time, -// per account. +// this operation initiates an export task and responds with the ID of the task. +// After the task has started, you can use DescribeExportTasks to get the status +// of the export task. Each account can only have one active (RUNNING or PENDING) +// export task at a time. To cancel an export task, use CancelExportTask. // -// You can export logs from multiple log groups or multiple time ranges to -// the same Amazon S3 bucket. To separate out log data for each export task, -// you can specify a prefix that will be used as the Amazon S3 key prefix for -// all exported objects. +// You can export logs from multiple log groups or multiple time ranges to the +// same S3 bucket. To separate out log data for each export task, you can specify +// a prefix that will be used as the Amazon S3 key prefix for all exported objects. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -155,23 +156,22 @@ func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) ( // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * LimitExceededException -// Returned if you have reached the maximum number of resources that can be -// created. +// You have reached the maximum number of resources that can be created. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * ResourceAlreadyExistsException -// Returned if the specified resource already exists. +// The specified resource already exists. // func (c *CloudWatchLogs) CreateExportTask(input *CreateExportTaskInput) (*CreateExportTaskOutput, error) { req, out := c.CreateExportTaskRequest(input) @@ -226,16 +226,18 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req // CreateLogGroup API operation for Amazon CloudWatch Logs. // -// Creates a new log group with the specified name. The name of the log group -// must be unique within a region for an AWS account. You can create up to 500 -// log groups per account. +// Creates a log group with the specified name. +// +// You can create up to 5000 log groups per account. // // You must use the following guidelines when naming a log group: // -// Log group names can be between 1 and 512 characters long. +// * Log group names must be unique within a region for an AWS account. // -// Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), -// '/' (forward slash), and '.' (period). +// * Log group names can be between 1 and 512 characters long. +// +// * Log group names consist of the following characters: a-z, A-Z, 0-9, +// '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -246,20 +248,19 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceAlreadyExistsException -// Returned if the specified resource already exists. +// The specified resource already exists. // // * LimitExceededException -// Returned if you have reached the maximum number of resources that can be -// created. +// You have reached the maximum number of resources that can be created. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) CreateLogGroup(input *CreateLogGroupInput) (*CreateLogGroupOutput, error) { req, out := c.CreateLogGroupRequest(input) @@ -314,15 +315,18 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re // CreateLogStream API operation for Amazon CloudWatch Logs. // -// Creates a new log stream in the specified log group. The name of the log -// stream must be unique within the log group. There is no limit on the number -// of log streams that can exist in a log group. +// Creates a log stream for the specified log group. +// +// There is no limit on the number of log streams that you can create for a +// log group. // // You must use the following guidelines when naming a log stream: // -// Log stream names can be between 1 and 512 characters long. +// * Log stream names must be unique within the log group. // -// The ':' colon character is not allowed. +// * Log stream names can be between 1 and 512 characters long. +// +// * The ':' (colon) and '*' (asterisk) characters are not allowed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -333,16 +337,16 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceAlreadyExistsException -// Returned if the specified resource already exists. +// The specified resource already exists. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) CreateLogStream(input *CreateLogStreamInput) (*CreateLogStreamOutput, error) { req, out := c.CreateLogStreamRequest(input) @@ -397,9 +401,9 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) // DeleteDestination API operation for Amazon CloudWatch Logs. // -// Deletes the destination with the specified name and eventually disables all -// the subscription filters that publish to it. This will not delete the physical -// resource encapsulated by the destination. +// Deletes the specified destination, and eventually disables all the subscription +// filters that publish to it. This operation does not delete the physical resource +// encapsulated by the destination. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -410,16 +414,16 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) { req, out := c.DeleteDestinationRequest(input) @@ -474,8 +478,8 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req // DeleteLogGroup API operation for Amazon CloudWatch Logs. // -// Deletes the log group with the specified name and permanently deletes all -// the archived log events associated with it. +// Deletes the specified log group and permanently deletes all the archived +// log events associated with the log group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -486,16 +490,16 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DeleteLogGroup(input *DeleteLogGroupInput) (*DeleteLogGroupOutput, error) { req, out := c.DeleteLogGroupRequest(input) @@ -550,8 +554,8 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re // DeleteLogStream API operation for Amazon CloudWatch Logs. // -// Deletes a log stream and permanently deletes all the archived log events -// associated with it. +// Deletes the specified log stream and permanently deletes all the archived +// log events associated with the log stream. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -562,16 +566,16 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DeleteLogStream(input *DeleteLogStreamInput) (*DeleteLogStreamOutput, error) { req, out := c.DeleteLogStreamRequest(input) @@ -626,7 +630,7 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu // DeleteMetricFilter API operation for Amazon CloudWatch Logs. // -// Deletes a metric filter associated with the specified log group. +// Deletes the specified metric filter. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -637,16 +641,16 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DeleteMetricFilter(input *DeleteMetricFilterInput) (*DeleteMetricFilterOutput, error) { req, out := c.DeleteMetricFilterRequest(input) @@ -701,8 +705,10 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli // DeleteRetentionPolicy API operation for Amazon CloudWatch Logs. // -// Deletes the retention policy of the specified log group. Log events would -// not expire if they belong to log groups without a retention policy. +// Deletes the specified retention policy. +// +// Log events do not expire if they belong to log groups without a retention +// policy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -713,16 +719,16 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DeleteRetentionPolicy(input *DeleteRetentionPolicyInput) (*DeleteRetentionPolicyOutput, error) { req, out := c.DeleteRetentionPolicyRequest(input) @@ -777,7 +783,7 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti // DeleteSubscriptionFilter API operation for Amazon CloudWatch Logs. // -// Deletes a subscription filter associated with the specified log group. +// Deletes the specified subscription filter. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -788,16 +794,16 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DeleteSubscriptionFilter(input *DeleteSubscriptionFilterInput) (*DeleteSubscriptionFilterOutput, error) { req, out := c.DeleteSubscriptionFilterRequest(input) @@ -856,15 +862,9 @@ func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinations // DescribeDestinations API operation for Amazon CloudWatch Logs. // -// Returns all the destinations that are associated with the AWS account making -// the request. The list returned in the response is ASCII-sorted by destination +// Lists all your destinations. The results are ASCII-sorted by destination // name. // -// By default, this operation returns up to 50 destinations. If there are more -// destinations to list, the response would contain a nextToken value in the -// response body. You can also limit the number of destinations returned in -// the response by specifying the limit parameter in the request. -// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -874,10 +874,10 @@ func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinations // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput) (*DescribeDestinationsOutput, error) { req, out := c.DescribeDestinationsRequest(input) @@ -955,14 +955,8 @@ func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksIn // DescribeExportTasks API operation for Amazon CloudWatch Logs. // -// Returns all the export tasks that are associated with the AWS account making -// the request. The export tasks can be filtered based on TaskId or TaskStatus. -// -// By default, this operation returns up to 50 export tasks that satisfy the -// specified filters. If there are more export tasks to list, the response would -// contain a nextToken value in the response body. You can also limit the number -// of export tasks returned in the response by specifying the limit parameter -// in the request. +// Lists the specified export tasks. You can list all your export tasks or filter +// the results based on task ID or task status. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -973,10 +967,10 @@ func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksIn // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) @@ -1035,14 +1029,8 @@ func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) // DescribeLogGroups API operation for Amazon CloudWatch Logs. // -// Returns all the log groups that are associated with the AWS account making -// the request. The list returned in the response is ASCII-sorted by log group -// name. -// -// By default, this operation returns up to 50 log groups. If there are more -// log groups to list, the response would contain a nextToken value in the response -// body. You can also limit the number of log groups returned in the response -// by specifying the limit parameter in the request. +// Lists the specified log groups. You can list all your log groups or filter +// the results by prefix. The results are ASCII-sorted by log group name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1053,10 +1041,10 @@ func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*DescribeLogGroupsOutput, error) { req, out := c.DescribeLogGroupsRequest(input) @@ -1140,15 +1128,12 @@ func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInpu // DescribeLogStreams API operation for Amazon CloudWatch Logs. // -// Returns all the log streams that are associated with the specified log group. -// The list returned in the response is ASCII-sorted by log stream name. +// Lists the log streams for the specified log group. You can list all the log +// streams or filter the results by prefix. You can also control how the results +// are ordered. // -// By default, this operation returns up to 50 log streams. If there are more -// log streams to list, the response would contain a nextToken value in the -// response body. You can also limit the number of log streams returned in the -// response by specifying the limit parameter in the request. This operation -// has a limit of five transactions per second, after which transactions are -// throttled. +// This operation has a limit of five transactions per second, after which transactions +// are throttled. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1159,13 +1144,13 @@ func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInpu // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*DescribeLogStreamsOutput, error) { req, out := c.DescribeLogStreamsRequest(input) @@ -1249,13 +1234,9 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte // DescribeMetricFilters API operation for Amazon CloudWatch Logs. // -// Returns all the metrics filters associated with the specified log group. -// The list returned in the response is ASCII-sorted by filter name. -// -// By default, this operation returns up to 50 metric filters. If there are -// more metric filters to list, the response would contain a nextToken value -// in the response body. You can also limit the number of metric filters returned -// in the response by specifying the limit parameter in the request. +// Lists the specified metric filters. You can list all the metric filters or +// filter the results by log name, prefix, metric name, or metric namespace. +// The results are ASCII-sorted by filter name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1266,13 +1247,13 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput) (*DescribeMetricFiltersOutput, error) { req, out := c.DescribeMetricFiltersRequest(input) @@ -1356,14 +1337,9 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc // DescribeSubscriptionFilters API operation for Amazon CloudWatch Logs. // -// Returns all the subscription filters associated with the specified log group. -// The list returned in the response is ASCII-sorted by filter name. -// -// By default, this operation returns up to 50 subscription filters. If there -// are more subscription filters to list, the response would contain a nextToken -// value in the response body. You can also limit the number of subscription -// filters returned in the response by specifying the limit parameter in the -// request. +// Lists the subscription filters for the specified log group. You can list +// all the subscription filters or filter the results by prefix. The results +// are ASCII-sorted by filter name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1374,13 +1350,13 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscriptionFiltersInput) (*DescribeSubscriptionFiltersOutput, error) { req, out := c.DescribeSubscriptionFiltersRequest(input) @@ -1464,20 +1440,15 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re // FilterLogEvents API operation for Amazon CloudWatch Logs. // -// Retrieves log events, optionally filtered by a filter pattern from the specified -// log group. You can provide an optional time range to filter the results on -// the event timestamp. You can limit the streams searched to an explicit list -// of logStreamNames. +// Lists log events from the specified log group. You can list all the log events +// or filter the results using a filter pattern, a time range, and the name +// of the log stream. // -// By default, this operation returns as much matching log events as can fit -// in a response size of 1MB, up to 10,000 log events, or all the events found -// within a time-bounded scan window. If the response includes a nextToken, -// then there is more data to search, and the search can be resumed with a new -// request providing the nextToken. The response will contain a list of searchedLogStreams -// that contains information about which streams were searched in the request -// and whether they have been searched completely or require further pagination. -// The limit parameter in the request can be used to specify the maximum number -// of events to return in a page. +// By default, this operation returns as many log events as can fit in 1MB (up +// to 10,000 log events), or all the events found within the time range that +// you specify. If the results include a token, then there are more log events +// available, and you can get additional results by specifying the token in +// a subsequent call. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1488,13 +1459,13 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLogEventsOutput, error) { req, out := c.FilterLogEventsRequest(input) @@ -1578,16 +1549,13 @@ func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *req // GetLogEvents API operation for Amazon CloudWatch Logs. // -// Retrieves log events from the specified log stream. You can provide an optional -// time range to filter the results on the event timestamp. +// Lists log events from the specified log stream. You can list all the log +// events or filter using a time range. // -// By default, this operation returns as much log events as can fit in a response -// size of 1MB, up to 10,000 log events. The response will always include a -// nextForwardToken and a nextBackwardToken in the response body. You can use -// any of these tokens in subsequent GetLogEvents requests to paginate through -// events in either forward or backward direction. You can also limit the number -// of log events returned in the response by specifying the limit parameter -// in the request. +// By default, this operation returns as many log events as can fit in a response +// size of 1MB (up to 10,000 log events). If the results include tokens, there +// are more log events available. You can get additional log events by specifying +// one of the tokens in a subsequent call. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1598,13 +1566,13 @@ func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *req // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOutput, error) { req, out := c.GetLogEventsRequest(input) @@ -1682,17 +1650,17 @@ func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req // PutDestination API operation for Amazon CloudWatch Logs. // -// Creates or updates a Destination. A destination encapsulates a physical resource -// (such as a Kinesis stream) and allows you to subscribe to a real-time stream -// of log events of a different account, ingested through PutLogEvents requests. -// Currently, the only supported physical resource is a Amazon Kinesis stream -// belonging to the same account as the destination. +// Creates or updates a destination. A destination encapsulates a physical resource +// (such as a Kinesis stream) and enables you to subscribe to a real-time stream +// of log events of a different account, ingested using PutLogEvents. Currently, +// the only supported physical resource is a Amazon Kinesis stream belonging +// to the same account as the destination. // // A destination controls what is written to its Amazon Kinesis stream through // an access policy. By default, PutDestination does not set any access policy -// with the destination, which means a cross-account user will not be able to -// call PutSubscriptionFilter against this destination. To enable that, the -// destination owner must call PutDestinationPolicy after PutDestination. +// with the destination, which means a cross-account user cannot call PutSubscriptionFilter +// against this destination. To enable this, the destination owner must call +// PutDestinationPolicy after PutDestination. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1703,13 +1671,13 @@ func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) PutDestination(input *PutDestinationInput) (*PutDestinationOutput, error) { req, out := c.PutDestinationRequest(input) @@ -1764,7 +1732,7 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy // PutDestinationPolicy API operation for Amazon CloudWatch Logs. // -// Creates or updates an access policy associated with an existing Destination. +// Creates or updates an access policy associated with an existing destination. // An access policy is an IAM policy document (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) // that is used to authorize claims to register a subscription filter against // a given destination. @@ -1778,13 +1746,13 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) PutDestinationPolicy(input *PutDestinationPolicyInput) (*PutDestinationPolicyOutput, error) { req, out := c.PutDestinationPolicyRequest(input) @@ -1839,28 +1807,29 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // // Uploads a batch of log events to the specified log stream. // -// Every PutLogEvents request must include the sequenceToken obtained from -// the response of the previous request. An upload in a newly created log stream -// does not require a sequenceToken. You can also get the sequenceToken using -// DescribeLogStreams. +// You must include the sequence token obtained from the response of the previous +// call. An upload in a newly created log stream does not require a sequence +// token. You can also get the sequence token using DescribeLogStreams. // // The batch of events must satisfy the following constraints: // -// The maximum batch size is 1,048,576 bytes, and this size is calculated -// as the sum of all event messages in UTF-8, plus 26 bytes for each log event. +// * The maximum batch size is 1,048,576 bytes, and this size is calculated +// as the sum of all event messages in UTF-8, plus 26 bytes for each log +// event. // -// None of the log events in the batch can be more than 2 hours in the future. +// * None of the log events in the batch can be more than 2 hours in the +// future. // -// None of the log events in the batch can be older than 14 days or the retention -// period of the log group. +// * None of the log events in the batch can be older than 14 days or the +// retention period of the log group. // -// The log events in the batch must be in chronological ordered by their -// timestamp. +// * The log events in the batch must be in chronological ordered by their +// timestamp. // -// The maximum number of log events in a batch is 10,000. +// * The maximum number of log events in a batch is 10,000. // -// A batch of log events in a single PutLogEvents request cannot span more -// than 24 hours. Otherwise, the PutLogEvents operation will fail. +// * A batch of log events in a single PutLogEvents request cannot span more +// than 24 hours. Otherwise, the PutLogEvents operation will fail. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1871,19 +1840,19 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * InvalidSequenceTokenException - +// The sequence token is not valid. // // * DataAlreadyAcceptedException - +// The event was already logged. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOutput, error) { req, out := c.PutLogEventsRequest(input) @@ -1940,7 +1909,7 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re // // Creates or updates a metric filter and associates it with the specified log // group. Metric filters allow you to configure rules to extract metric data -// from log events ingested through PutLogEvents requests. +// from log events ingested through PutLogEvents. // // The maximum number of metric filters that can be associated with a log group // is 100. @@ -1954,20 +1923,19 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * LimitExceededException -// Returned if you have reached the maximum number of resources that can be -// created. +// You have reached the maximum number of resources that can be created. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) PutMetricFilter(input *PutMetricFilterInput) (*PutMetricFilterOutput, error) { req, out := c.PutMetricFilterRequest(input) @@ -2035,16 +2003,16 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) PutRetentionPolicy(input *PutRetentionPolicyInput) (*PutRetentionPolicyOutput, error) { req, out := c.PutRetentionPolicyRequest(input) @@ -2101,23 +2069,22 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // // Creates or updates a subscription filter and associates it with the specified // log group. Subscription filters allow you to subscribe to a real-time stream -// of log events ingested through PutLogEvents requests and have them delivered -// to a specific destination. Currently, the supported destinations are: +// of log events ingested through PutLogEvents and have them delivered to a +// specific destination. Currently, the supported destinations are: // -// An Amazon Kinesis stream belonging to the same account as the subscription -// filter, for same-account delivery. +// * An Amazon Kinesis stream belonging to the same account as the subscription +// filter, for same-account delivery. // -// A logical destination (used via an ARN of Destination) belonging to a -// different account, for cross-account delivery. +// * A logical destination that belongs to a different account, for cross-account +// delivery. // -// An Amazon Kinesis Firehose stream belonging to the same account as the -// subscription filter, for same-account delivery. +// * An Amazon Kinesis Firehose stream that belongs to the same account as +// the subscription filter, for same-account delivery. // -// An AWS Lambda function belonging to the same account as the subscription -// filter, for same-account delivery. +// * An AWS Lambda function that belongs to the same account as the subscription +// filter, for same-account delivery. // -// Currently there can only be one subscription filter associated with a -// log group. +// There can only be one subscription filter associated with a log group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2128,20 +2095,19 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ResourceNotFoundException -// Returned if the specified resource does not exist. +// The specified resource does not exist. // // * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// Multiple requests to update the same resource were in conflict. // // * LimitExceededException -// Returned if you have reached the maximum number of resources that can be -// created. +// You have reached the maximum number of resources that can be created. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) PutSubscriptionFilter(input *PutSubscriptionFilterInput) (*PutSubscriptionFilterOutput, error) { req, out := c.PutSubscriptionFilterRequest(input) @@ -2207,10 +2173,10 @@ func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) ( // // Returned Error Codes: // * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// A parameter is specified incorrectly. // // * ServiceUnavailableException -// Returned if the service cannot complete the request. +// The service cannot complete the request. // func (c *CloudWatchLogs) TestMetricFilter(input *TestMetricFilterInput) (*TestMetricFilterOutput, error) { req, out := c.TestMetricFilterRequest(input) @@ -2221,7 +2187,7 @@ func (c *CloudWatchLogs) TestMetricFilter(input *TestMetricFilterInput) (*TestMe type CancelExportTaskInput struct { _ struct{} `type:"structure"` - // Id of the export task to cancel. + // The ID of the export task. // // TaskId is a required field TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"` @@ -2253,6 +2219,12 @@ func (s *CancelExportTaskInput) Validate() error { return nil } +// SetTaskId sets the TaskId field's value. +func (s *CancelExportTaskInput) SetTaskId(v string) *CancelExportTaskInput { + s.TaskId = &v + return s +} + type CancelExportTaskOutput struct { _ struct{} `type:"structure"` } @@ -2270,39 +2242,38 @@ func (s CancelExportTaskOutput) GoString() string { type CreateExportTaskInput struct { _ struct{} `type:"structure"` - // Name of Amazon S3 bucket to which the log data will be exported. - // - // Note: Only buckets in the same AWS region are supported. + // The name of S3 bucket for the exported log data. The bucket must be in the + // same AWS region. // // Destination is a required field Destination *string `locationName:"destination" min:"1" type:"string" required:"true"` - // Prefix that will be used as the start of Amazon S3 key for every object exported. - // If not specified, this defaults to 'exportedlogs'. + // The prefix used as the start of the key for every object exported. If you + // don't specify a value, the default is exportedlogs. DestinationPrefix *string `locationName:"destinationPrefix" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. It indicates the start time of the range for the request. Events - // with a timestamp prior to this time will not be exported. + // The start time of the range for the request, expressed as the number of milliseconds + // since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this + // time are not exported. // // From is a required field From *int64 `locationName:"from" type:"long" required:"true"` - // The name of the log group to export. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // Will only export log streams that match the provided logStreamNamePrefix. - // If you don't specify a value, no prefix filter is applied. + // Export only log streams that match the provided prefix. If you don't specify + // a value, no prefix filter is applied. LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"` // The name of the export task. TaskName *string `locationName:"taskName" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. It indicates the end time of the range for the request. Events - // with a timestamp later than this time will not be exported. + // The end time of the range for the request, expressed as the number of milliseconds + // since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time + // are not exported. // // To is a required field To *int64 `locationName:"to" type:"long" required:"true"` @@ -2352,10 +2323,52 @@ func (s *CreateExportTaskInput) Validate() error { return nil } +// SetDestination sets the Destination field's value. +func (s *CreateExportTaskInput) SetDestination(v string) *CreateExportTaskInput { + s.Destination = &v + return s +} + +// SetDestinationPrefix sets the DestinationPrefix field's value. +func (s *CreateExportTaskInput) SetDestinationPrefix(v string) *CreateExportTaskInput { + s.DestinationPrefix = &v + return s +} + +// SetFrom sets the From field's value. +func (s *CreateExportTaskInput) SetFrom(v int64) *CreateExportTaskInput { + s.From = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateExportTaskInput) SetLogGroupName(v string) *CreateExportTaskInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value. +func (s *CreateExportTaskInput) SetLogStreamNamePrefix(v string) *CreateExportTaskInput { + s.LogStreamNamePrefix = &v + return s +} + +// SetTaskName sets the TaskName field's value. +func (s *CreateExportTaskInput) SetTaskName(v string) *CreateExportTaskInput { + s.TaskName = &v + return s +} + +// SetTo sets the To field's value. +func (s *CreateExportTaskInput) SetTo(v int64) *CreateExportTaskInput { + s.To = &v + return s +} + type CreateExportTaskOutput struct { _ struct{} `type:"structure"` - // Id of the export task that got created. + // The ID of the export task. TaskId *string `locationName:"taskId" min:"1" type:"string"` } @@ -2369,10 +2382,16 @@ func (s CreateExportTaskOutput) GoString() string { return s.String() } +// SetTaskId sets the TaskId field's value. +func (s *CreateExportTaskOutput) SetTaskId(v string) *CreateExportTaskOutput { + s.TaskId = &v + return s +} + type CreateLogGroupInput struct { _ struct{} `type:"structure"` - // The name of the log group to create. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2404,6 +2423,12 @@ func (s *CreateLogGroupInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateLogGroupInput) SetLogGroupName(v string) *CreateLogGroupInput { + s.LogGroupName = &v + return s +} + type CreateLogGroupOutput struct { _ struct{} `type:"structure"` } @@ -2421,12 +2446,12 @@ func (s CreateLogGroupOutput) GoString() string { type CreateLogStreamInput struct { _ struct{} `type:"structure"` - // The name of the log group under which the log stream is to be created. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // The name of the log stream to create. + // The name of the log stream. // // LogStreamName is a required field LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` @@ -2464,6 +2489,18 @@ func (s *CreateLogStreamInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateLogStreamInput) SetLogGroupName(v string) *CreateLogStreamInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *CreateLogStreamInput) SetLogStreamName(v string) *CreateLogStreamInput { + s.LogStreamName = &v + return s +} + type CreateLogStreamOutput struct { _ struct{} `type:"structure"` } @@ -2481,7 +2518,7 @@ func (s CreateLogStreamOutput) GoString() string { type DeleteDestinationInput struct { _ struct{} `type:"structure"` - // The name of destination to delete. + // The name of the destination. // // DestinationName is a required field DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"` @@ -2513,6 +2550,12 @@ func (s *DeleteDestinationInput) Validate() error { return nil } +// SetDestinationName sets the DestinationName field's value. +func (s *DeleteDestinationInput) SetDestinationName(v string) *DeleteDestinationInput { + s.DestinationName = &v + return s +} + type DeleteDestinationOutput struct { _ struct{} `type:"structure"` } @@ -2530,7 +2573,7 @@ func (s DeleteDestinationOutput) GoString() string { type DeleteLogGroupInput struct { _ struct{} `type:"structure"` - // The name of the log group to delete. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2562,6 +2605,12 @@ func (s *DeleteLogGroupInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteLogGroupInput) SetLogGroupName(v string) *DeleteLogGroupInput { + s.LogGroupName = &v + return s +} + type DeleteLogGroupOutput struct { _ struct{} `type:"structure"` } @@ -2579,12 +2628,12 @@ func (s DeleteLogGroupOutput) GoString() string { type DeleteLogStreamInput struct { _ struct{} `type:"structure"` - // The name of the log group under which the log stream to delete belongs. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // The name of the log stream to delete. + // The name of the log stream. // // LogStreamName is a required field LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` @@ -2622,6 +2671,18 @@ func (s *DeleteLogStreamInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteLogStreamInput) SetLogGroupName(v string) *DeleteLogStreamInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *DeleteLogStreamInput) SetLogStreamName(v string) *DeleteLogStreamInput { + s.LogStreamName = &v + return s +} + type DeleteLogStreamOutput struct { _ struct{} `type:"structure"` } @@ -2639,12 +2700,12 @@ func (s DeleteLogStreamOutput) GoString() string { type DeleteMetricFilterInput struct { _ struct{} `type:"structure"` - // The name of the metric filter to delete. + // The name of the metric filter. // // FilterName is a required field FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` - // The name of the log group that is associated with the metric filter to delete. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2682,6 +2743,18 @@ func (s *DeleteMetricFilterInput) Validate() error { return nil } +// SetFilterName sets the FilterName field's value. +func (s *DeleteMetricFilterInput) SetFilterName(v string) *DeleteMetricFilterInput { + s.FilterName = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteMetricFilterInput) SetLogGroupName(v string) *DeleteMetricFilterInput { + s.LogGroupName = &v + return s +} + type DeleteMetricFilterOutput struct { _ struct{} `type:"structure"` } @@ -2699,8 +2772,7 @@ func (s DeleteMetricFilterOutput) GoString() string { type DeleteRetentionPolicyInput struct { _ struct{} `type:"structure"` - // The name of the log group that is associated with the retention policy to - // delete. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2732,6 +2804,12 @@ func (s *DeleteRetentionPolicyInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteRetentionPolicyInput) SetLogGroupName(v string) *DeleteRetentionPolicyInput { + s.LogGroupName = &v + return s +} + type DeleteRetentionPolicyOutput struct { _ struct{} `type:"structure"` } @@ -2749,13 +2827,12 @@ func (s DeleteRetentionPolicyOutput) GoString() string { type DeleteSubscriptionFilterInput struct { _ struct{} `type:"structure"` - // The name of the subscription filter to delete. + // The name of the subscription filter. // // FilterName is a required field FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` - // The name of the log group that is associated with the subscription filter - // to delete. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2793,6 +2870,18 @@ func (s *DeleteSubscriptionFilterInput) Validate() error { return nil } +// SetFilterName sets the FilterName field's value. +func (s *DeleteSubscriptionFilterInput) SetFilterName(v string) *DeleteSubscriptionFilterInput { + s.FilterName = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteSubscriptionFilterInput) SetLogGroupName(v string) *DeleteSubscriptionFilterInput { + s.LogGroupName = &v + return s +} + type DeleteSubscriptionFilterOutput struct { _ struct{} `type:"structure"` } @@ -2810,16 +2899,15 @@ func (s DeleteSubscriptionFilterOutput) GoString() string { type DescribeDestinationsInput struct { _ struct{} `type:"structure"` - // Will only return destinations that match the provided destinationNamePrefix. - // If you don't specify a value, no prefix is applied. + // The prefix to match. If you don't specify a value, no prefix filter is applied. DestinationNamePrefix *string `min:"1" type:"string"` - // The maximum number of results to return. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -2852,14 +2940,32 @@ func (s *DescribeDestinationsInput) Validate() error { return nil } +// SetDestinationNamePrefix sets the DestinationNamePrefix field's value. +func (s *DescribeDestinationsInput) SetDestinationNamePrefix(v string) *DescribeDestinationsInput { + s.DestinationNamePrefix = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeDestinationsInput) SetLimit(v int64) *DescribeDestinationsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDestinationsInput) SetNextToken(v string) *DescribeDestinationsInput { + s.NextToken = &v + return s +} + type DescribeDestinationsOutput struct { _ struct{} `type:"structure"` + // The destinations. Destinations []*Destination `locationName:"destinations" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -2873,24 +2979,35 @@ func (s DescribeDestinationsOutput) GoString() string { return s.String() } +// SetDestinations sets the Destinations field's value. +func (s *DescribeDestinationsOutput) SetDestinations(v []*Destination) *DescribeDestinationsOutput { + s.Destinations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDestinationsOutput) SetNextToken(v string) *DescribeDestinationsOutput { + s.NextToken = &v + return s +} + type DescribeExportTasksInput struct { _ struct{} `type:"structure"` - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeExportTasks - // request. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // All export tasks that matches the specified status code will be returned. - // This can return zero or more export tasks. + // The status code of the export task. Specifying a status code filters the + // results to zero or more export tasks. StatusCode *string `locationName:"statusCode" type:"string" enum:"ExportTaskStatusCode"` - // Export task that matches the specified task Id will be returned. This can - // result in zero or one export task. + // The ID of the export task. Specifying a task ID filters the results to zero + // or one export tasks. TaskId *string `locationName:"taskId" min:"1" type:"string"` } @@ -2923,15 +3040,38 @@ func (s *DescribeExportTasksInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *DescribeExportTasksInput) SetLimit(v int64) *DescribeExportTasksInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksInput { + s.NextToken = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *DescribeExportTasksInput) SetStatusCode(v string) *DescribeExportTasksInput { + s.StatusCode = &v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *DescribeExportTasksInput) SetTaskId(v string) *DescribeExportTasksInput { + s.TaskId = &v + return s +} + type DescribeExportTasksOutput struct { _ struct{} `type:"structure"` - // A list of export tasks. + // The export tasks. ExportTasks []*ExportTask `locationName:"exportTasks" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -2945,20 +3085,30 @@ func (s DescribeExportTasksOutput) GoString() string { return s.String() } +// SetExportTasks sets the ExportTasks field's value. +func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput { + s.ExportTasks = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksOutput { + s.NextToken = &v + return s +} + type DescribeLogGroupsInput struct { _ struct{} `type:"structure"` - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // Will only return log groups that match the provided logGroupNamePrefix. If - // you don't specify a value, no prefix filter is applied. + // The prefix to match. LogGroupNamePrefix *string `locationName:"logGroupNamePrefix" min:"1" type:"string"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeLogGroups - // request. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -2991,15 +3141,32 @@ func (s *DescribeLogGroupsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *DescribeLogGroupsInput) SetLimit(v int64) *DescribeLogGroupsInput { + s.Limit = &v + return s +} + +// SetLogGroupNamePrefix sets the LogGroupNamePrefix field's value. +func (s *DescribeLogGroupsInput) SetLogGroupNamePrefix(v string) *DescribeLogGroupsInput { + s.LogGroupNamePrefix = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLogGroupsInput) SetNextToken(v string) *DescribeLogGroupsInput { + s.NextToken = &v + return s +} + type DescribeLogGroupsOutput struct { _ struct{} `type:"structure"` - // A list of log groups. + // The log groups. LogGroups []*LogGroup `locationName:"logGroups" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3013,35 +3180,50 @@ func (s DescribeLogGroupsOutput) GoString() string { return s.String() } +// SetLogGroups sets the LogGroups field's value. +func (s *DescribeLogGroupsOutput) SetLogGroups(v []*LogGroup) *DescribeLogGroupsOutput { + s.LogGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLogGroupsOutput) SetNextToken(v string) *DescribeLogGroupsOutput { + s.NextToken = &v + return s +} + type DescribeLogStreamsInput struct { _ struct{} `type:"structure"` - // If set to true, results are returned in descending order. If you don't specify - // a value or set it to false, results are returned in ascending order. + // If the value is true, results are returned in descending order. If the value + // is to false, results are returned in ascending order. The default value is + // false. Descending *bool `locationName:"descending" type:"boolean"` - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The log group name for which log streams are to be listed. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // Will only return log streams that match the provided logStreamNamePrefix. - // If you don't specify a value, no prefix filter is applied. + // The prefix to match. + // + // You cannot specify this parameter if orderBy is LastEventTime. LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeLogStreams - // request. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // Specifies what to order the returned log streams by. Valid arguments are - // 'LogStreamName' or 'LastEventTime'. If you don't specify a value, results - // are ordered by LogStreamName. If 'LastEventTime' is chosen, the request cannot - // also contain a logStreamNamePrefix. + // If the value is LogStreamName, the results are ordered by log stream name. + // If the value is LastEventTime, the results are ordered by the event time. + // The default value is LogStreamName. + // + // If you order the results by event time, you cannot specify the logStreamNamePrefix + // parameter. OrderBy *string `locationName:"orderBy" type:"string" enum:"OrderBy"` } @@ -3080,15 +3262,50 @@ func (s *DescribeLogStreamsInput) Validate() error { return nil } +// SetDescending sets the Descending field's value. +func (s *DescribeLogStreamsInput) SetDescending(v bool) *DescribeLogStreamsInput { + s.Descending = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeLogStreamsInput) SetLimit(v int64) *DescribeLogStreamsInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DescribeLogStreamsInput) SetLogGroupName(v string) *DescribeLogStreamsInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value. +func (s *DescribeLogStreamsInput) SetLogStreamNamePrefix(v string) *DescribeLogStreamsInput { + s.LogStreamNamePrefix = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLogStreamsInput) SetNextToken(v string) *DescribeLogStreamsInput { + s.NextToken = &v + return s +} + +// SetOrderBy sets the OrderBy field's value. +func (s *DescribeLogStreamsInput) SetOrderBy(v string) *DescribeLogStreamsInput { + s.OrderBy = &v + return s +} + type DescribeLogStreamsOutput struct { _ struct{} `type:"structure"` - // A list of log streams. + // The log streams. LogStreams []*LogStream `locationName:"logStreams" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3102,25 +3319,39 @@ func (s DescribeLogStreamsOutput) GoString() string { return s.String() } +// SetLogStreams sets the LogStreams field's value. +func (s *DescribeLogStreamsOutput) SetLogStreams(v []*LogStream) *DescribeLogStreamsOutput { + s.LogStreams = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLogStreamsOutput) SetNextToken(v string) *DescribeLogStreamsOutput { + s.NextToken = &v + return s +} + type DescribeMetricFiltersInput struct { _ struct{} `type:"structure"` - // Will only return metric filters that match the provided filterNamePrefix. - // If you don't specify a value, no prefix filter is applied. + // The prefix to match. FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"` - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The log group name for which metric filters are to be listed. - // - // LogGroupName is a required field - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + // The name of the log group. + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeMetricFilters - // request. + // The name of the CloudWatch metric. + MetricName *string `locationName:"metricName" type:"string"` + + // The namespace of the CloudWatch metric. + MetricNamespace *string `locationName:"metricNamespace" type:"string"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3143,9 +3374,6 @@ func (s *DescribeMetricFiltersInput) Validate() error { if s.Limit != nil && *s.Limit < 1 { invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) } @@ -3159,14 +3387,50 @@ func (s *DescribeMetricFiltersInput) Validate() error { return nil } +// SetFilterNamePrefix sets the FilterNamePrefix field's value. +func (s *DescribeMetricFiltersInput) SetFilterNamePrefix(v string) *DescribeMetricFiltersInput { + s.FilterNamePrefix = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeMetricFiltersInput) SetLimit(v int64) *DescribeMetricFiltersInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DescribeMetricFiltersInput) SetLogGroupName(v string) *DescribeMetricFiltersInput { + s.LogGroupName = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *DescribeMetricFiltersInput) SetMetricName(v string) *DescribeMetricFiltersInput { + s.MetricName = &v + return s +} + +// SetMetricNamespace sets the MetricNamespace field's value. +func (s *DescribeMetricFiltersInput) SetMetricNamespace(v string) *DescribeMetricFiltersInput { + s.MetricNamespace = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMetricFiltersInput) SetNextToken(v string) *DescribeMetricFiltersInput { + s.NextToken = &v + return s +} + type DescribeMetricFiltersOutput struct { _ struct{} `type:"structure"` + // The metric filters. MetricFilters []*MetricFilter `locationName:"metricFilters" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3180,24 +3444,35 @@ func (s DescribeMetricFiltersOutput) GoString() string { return s.String() } +// SetMetricFilters sets the MetricFilters field's value. +func (s *DescribeMetricFiltersOutput) SetMetricFilters(v []*MetricFilter) *DescribeMetricFiltersOutput { + s.MetricFilters = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMetricFiltersOutput) SetNextToken(v string) *DescribeMetricFiltersOutput { + s.NextToken = &v + return s +} + type DescribeSubscriptionFiltersInput struct { _ struct{} `type:"structure"` - // Will only return subscription filters that match the provided filterNamePrefix. - // If you don't specify a value, no prefix filter is applied. + // The prefix to match. If you don't specify a value, no prefix filter is applied. FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"` - // The maximum number of results to return. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The log group name for which subscription filters are to be listed. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3236,14 +3511,38 @@ func (s *DescribeSubscriptionFiltersInput) Validate() error { return nil } +// SetFilterNamePrefix sets the FilterNamePrefix field's value. +func (s *DescribeSubscriptionFiltersInput) SetFilterNamePrefix(v string) *DescribeSubscriptionFiltersInput { + s.FilterNamePrefix = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeSubscriptionFiltersInput) SetLimit(v int64) *DescribeSubscriptionFiltersInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DescribeSubscriptionFiltersInput) SetLogGroupName(v string) *DescribeSubscriptionFiltersInput { + s.LogGroupName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSubscriptionFiltersInput) SetNextToken(v string) *DescribeSubscriptionFiltersInput { + s.NextToken = &v + return s +} + type DescribeSubscriptionFiltersOutput struct { _ struct{} `type:"structure"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` + // The subscription filters. SubscriptionFilters []*SubscriptionFilter `locationName:"subscriptionFilters" type:"list"` } @@ -3257,7 +3556,19 @@ func (s DescribeSubscriptionFiltersOutput) GoString() string { return s.String() } -// A cross account destination that is the recipient of subscription log events. +// SetNextToken sets the NextToken field's value. +func (s *DescribeSubscriptionFiltersOutput) SetNextToken(v string) *DescribeSubscriptionFiltersOutput { + s.NextToken = &v + return s +} + +// SetSubscriptionFilters sets the SubscriptionFilters field's value. +func (s *DescribeSubscriptionFiltersOutput) SetSubscriptionFilters(v []*SubscriptionFilter) *DescribeSubscriptionFiltersOutput { + s.SubscriptionFilters = v + return s +} + +// Represents a cross-account destination that receives subscription log events. type Destination struct { _ struct{} `type:"structure"` @@ -3265,21 +3576,20 @@ type Destination struct { // filters against this destination. AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string"` - // ARN of this destination. + // The ARN of this destination. Arn *string `locationName:"arn" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC specifying when this destination was created. + // The creation time of the destination. CreationTime *int64 `locationName:"creationTime" type:"long"` - // Name of the destination. + // The name of the destination. DestinationName *string `locationName:"destinationName" min:"1" type:"string"` - // A role for impersonation for delivering log events to the target. + // A role for impersonation, used when delivering log events to the target. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` - // ARN of the physical target where the log events will be delivered (eg. ARN - // of a Kinesis stream). + // The Amazon Resource Name (ARN) of the physical target where the log events + // will be delivered (for example, a Kinesis stream). TargetArn *string `locationName:"targetArn" min:"1" type:"string"` } @@ -3293,37 +3603,71 @@ func (s Destination) GoString() string { return s.String() } +// SetAccessPolicy sets the AccessPolicy field's value. +func (s *Destination) SetAccessPolicy(v string) *Destination { + s.AccessPolicy = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Destination) SetArn(v string) *Destination { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Destination) SetCreationTime(v int64) *Destination { + s.CreationTime = &v + return s +} + +// SetDestinationName sets the DestinationName field's value. +func (s *Destination) SetDestinationName(v string) *Destination { + s.DestinationName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Destination) SetRoleArn(v string) *Destination { + s.RoleArn = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *Destination) SetTargetArn(v string) *Destination { + s.TargetArn = &v + return s +} + // Represents an export task. type ExportTask struct { _ struct{} `type:"structure"` - // Name of Amazon S3 bucket to which the log data was exported. + // The name of Amazon S3 bucket to which the log data was exported. Destination *string `locationName:"destination" min:"1" type:"string"` - // Prefix that was used as the start of Amazon S3 key for every object exported. + // The prefix that was used as the start of Amazon S3 key for every object exported. DestinationPrefix *string `locationName:"destinationPrefix" type:"string"` // Execution info about the export task. ExecutionInfo *ExportTaskExecutionInfo `locationName:"executionInfo" type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. Events with a timestamp prior to this time are not exported. + // The start time. Events with a timestamp prior to this time are not exported. From *int64 `locationName:"from" type:"long"` // The name of the log group from which logs data was exported. LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` - // Status of the export task. + // The status of the export task. Status *ExportTaskStatus `locationName:"status" type:"structure"` - // Id of the export task. + // The ID of the export task. TaskId *string `locationName:"taskId" min:"1" type:"string"` // The name of the export task. TaskName *string `locationName:"taskName" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. Events with a timestamp later than this time are not exported. + // The end time. Events with a timestamp later than this time are not exported. To *int64 `locationName:"to" type:"long"` } @@ -3337,14 +3681,68 @@ func (s ExportTask) GoString() string { return s.String() } +// SetDestination sets the Destination field's value. +func (s *ExportTask) SetDestination(v string) *ExportTask { + s.Destination = &v + return s +} + +// SetDestinationPrefix sets the DestinationPrefix field's value. +func (s *ExportTask) SetDestinationPrefix(v string) *ExportTask { + s.DestinationPrefix = &v + return s +} + +// SetExecutionInfo sets the ExecutionInfo field's value. +func (s *ExportTask) SetExecutionInfo(v *ExportTaskExecutionInfo) *ExportTask { + s.ExecutionInfo = v + return s +} + +// SetFrom sets the From field's value. +func (s *ExportTask) SetFrom(v int64) *ExportTask { + s.From = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *ExportTask) SetLogGroupName(v string) *ExportTask { + s.LogGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ExportTask) SetStatus(v *ExportTaskStatus) *ExportTask { + s.Status = v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *ExportTask) SetTaskId(v string) *ExportTask { + s.TaskId = &v + return s +} + +// SetTaskName sets the TaskName field's value. +func (s *ExportTask) SetTaskName(v string) *ExportTask { + s.TaskName = &v + return s +} + +// SetTo sets the To field's value. +func (s *ExportTask) SetTo(v int64) *ExportTask { + s.To = &v + return s +} + // Represents the status of an export task. type ExportTaskExecutionInfo struct { _ struct{} `type:"structure"` - // A point in time when the export task got completed. + // The completion time of the export task. CompletionTime *int64 `locationName:"completionTime" type:"long"` - // A point in time when the export task got created. + // The creation time of the export task. CreationTime *int64 `locationName:"creationTime" type:"long"` } @@ -3358,14 +3756,26 @@ func (s ExportTaskExecutionInfo) GoString() string { return s.String() } +// SetCompletionTime sets the CompletionTime field's value. +func (s *ExportTaskExecutionInfo) SetCompletionTime(v int64) *ExportTaskExecutionInfo { + s.CompletionTime = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ExportTaskExecutionInfo) SetCreationTime(v int64) *ExportTaskExecutionInfo { + s.CreationTime = &v + return s +} + // Represents the status of an export task. type ExportTaskStatus struct { _ struct{} `type:"structure"` - // Status code of the export task. + // The status code of the export task. Code *string `locationName:"code" type:"string" enum:"ExportTaskStatusCode"` - // Status message related to the code. + // The status message related to the status code. Message *string `locationName:"message" type:"string"` } @@ -3379,44 +3789,51 @@ func (s ExportTaskStatus) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *ExportTaskStatus) SetCode(v string) *ExportTaskStatus { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ExportTaskStatus) SetMessage(v string) *ExportTaskStatus { + s.Message = &v + return s +} + type FilterLogEventsInput struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. If provided, events with a timestamp later than this time are + // The end of the time range. Events with a timestamp later than this time are // not returned. EndTime *int64 `locationName:"endTime" type:"long"` - // A valid CloudWatch Logs filter pattern to use for filtering the response. - // If not provided, all the events are matched. + // The filter pattern to use. If not provided, all the events are matched. FilterPattern *string `locationName:"filterPattern" type:"string"` - // If provided, the API will make a best effort to provide responses that contain - // events from multiple log streams within the log group interleaved in a single - // response. If not provided, all the matched log events in the first log stream - // will be searched first, then those in the next log stream, etc. + // If the value is true, the operation makes a best effort to provide responses + // that contain events from multiple log streams within the log group interleaved + // in a single response. If the value is false all the matched log events in + // the first log stream are searched first, then those in the next log stream, + // and so on. The default is false. Interleaved *bool `locationName:"interleaved" type:"boolean"` - // The maximum number of events to return in a page of results. Default is 10,000 - // events. + // The maximum number of events to return. The default is 10,000 events. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The name of the log group to query. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // Optional list of log stream names within the specified log group to search. - // Defaults to all the log streams in the log group. + // Optional list of log stream names. LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"` - // A pagination token obtained from a FilterLogEvents response to continue paginating - // the FilterLogEvents results. This token is omitted from the response when - // there are no other events to display. + // The token for the next set of events to return. (You received this token + // from a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. If provided, events with a timestamp prior to this time are + // The start of the time range. Events with a timestamp prior to this time are // not returned. StartTime *int64 `locationName:"startTime" type:"long"` } @@ -3456,21 +3873,66 @@ func (s *FilterLogEventsInput) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *FilterLogEventsInput) SetEndTime(v int64) *FilterLogEventsInput { + s.EndTime = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *FilterLogEventsInput) SetFilterPattern(v string) *FilterLogEventsInput { + s.FilterPattern = &v + return s +} + +// SetInterleaved sets the Interleaved field's value. +func (s *FilterLogEventsInput) SetInterleaved(v bool) *FilterLogEventsInput { + s.Interleaved = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *FilterLogEventsInput) SetLimit(v int64) *FilterLogEventsInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *FilterLogEventsInput) SetLogGroupName(v string) *FilterLogEventsInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamNames sets the LogStreamNames field's value. +func (s *FilterLogEventsInput) SetLogStreamNames(v []*string) *FilterLogEventsInput { + s.LogStreamNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *FilterLogEventsInput) SetNextToken(v string) *FilterLogEventsInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *FilterLogEventsInput) SetStartTime(v int64) *FilterLogEventsInput { + s.StartTime = &v + return s +} + type FilterLogEventsOutput struct { _ struct{} `type:"structure"` - // A list of FilteredLogEvent objects representing the matched events from the - // request. + // The matched events. Events []*FilteredLogEvent `locationName:"events" type:"list"` - // A pagination token obtained from a FilterLogEvents response to continue paginating - // the FilterLogEvents results. This token is omitted from the response when - // there are no other events to display. + // The token to use when requesting the next set of items. The token expires + // after 24 hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // A list of SearchedLogStream objects indicating which log streams have been - // searched in this request and whether each has been searched completely or - // still has more to be paginated. + // Indicates which log streams have been searched and whether each has been + // searched completely. SearchedLogStreams []*SearchedLogStream `locationName:"searchedLogStreams" type:"list"` } @@ -3484,15 +3946,32 @@ func (s FilterLogEventsOutput) GoString() string { return s.String() } -// Represents a matched event from a FilterLogEvents request. +// SetEvents sets the Events field's value. +func (s *FilterLogEventsOutput) SetEvents(v []*FilteredLogEvent) *FilterLogEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *FilterLogEventsOutput) SetNextToken(v string) *FilterLogEventsOutput { + s.NextToken = &v + return s +} + +// SetSearchedLogStreams sets the SearchedLogStreams field's value. +func (s *FilterLogEventsOutput) SetSearchedLogStreams(v []*SearchedLogStream) *FilterLogEventsOutput { + s.SearchedLogStreams = v + return s +} + +// Represents a matched event. type FilteredLogEvent struct { _ struct{} `type:"structure"` - // A unique identifier for this event. + // The ID of the event. EventId *string `locationName:"eventId" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event was ingested. IngestionTime *int64 `locationName:"ingestionTime" type:"long"` // The name of the log stream this event belongs to. @@ -3501,8 +3980,7 @@ type FilteredLogEvent struct { // The data contained in the log event. Message *string `locationName:"message" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event occurred. Timestamp *int64 `locationName:"timestamp" type:"long"` } @@ -3516,39 +3994,69 @@ func (s FilteredLogEvent) GoString() string { return s.String() } +// SetEventId sets the EventId field's value. +func (s *FilteredLogEvent) SetEventId(v string) *FilteredLogEvent { + s.EventId = &v + return s +} + +// SetIngestionTime sets the IngestionTime field's value. +func (s *FilteredLogEvent) SetIngestionTime(v int64) *FilteredLogEvent { + s.IngestionTime = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *FilteredLogEvent) SetLogStreamName(v string) *FilteredLogEvent { + s.LogStreamName = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *FilteredLogEvent) SetMessage(v string) *FilteredLogEvent { + s.Message = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *FilteredLogEvent) SetTimestamp(v int64) *FilteredLogEvent { + s.Timestamp = &v + return s +} + type GetLogEventsInput struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The end of the time range. Events with a timestamp later than this time are + // not included. EndTime *int64 `locationName:"endTime" type:"long"` - // The maximum number of log events returned in the response. If you don't specify - // a value, the request would return as many log events as can fit in a response - // size of 1MB, up to 10,000 log events. + // The maximum number of log events returned. If you don't specify a value, + // the maximum is as many log events as can fit in a response size of 1MB, up + // to 10,000 log events. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The name of the log group to query. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // The name of the log stream to query. + // The name of the log stream. // // LogStreamName is a required field LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the nextForwardToken or nextBackwardToken - // fields in the response of the previous GetLogEvents request. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // If set to true, the earliest log events would be returned first. The default - // is false (the latest log events are returned first). + // If the value is true, the earliest log events are returned first. If the + // value is false, the latest log events are returned first. The default value + // is false. StartFromHead *bool `locationName:"startFromHead" type:"boolean"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The start of the time range. Events with a timestamp earlier than this time + // are not included. StartTime *int64 `locationName:"startTime" type:"long"` } @@ -3590,19 +4098,60 @@ func (s *GetLogEventsInput) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *GetLogEventsInput) SetEndTime(v int64) *GetLogEventsInput { + s.EndTime = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetLogEventsInput) SetLimit(v int64) *GetLogEventsInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *GetLogEventsInput) SetLogGroupName(v string) *GetLogEventsInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *GetLogEventsInput) SetLogStreamName(v string) *GetLogEventsInput { + s.LogStreamName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetLogEventsInput) SetNextToken(v string) *GetLogEventsInput { + s.NextToken = &v + return s +} + +// SetStartFromHead sets the StartFromHead field's value. +func (s *GetLogEventsInput) SetStartFromHead(v bool) *GetLogEventsInput { + s.StartFromHead = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetLogEventsInput) SetStartTime(v int64) *GetLogEventsInput { + s.StartTime = &v + return s +} + type GetLogEventsOutput struct { _ struct{} `type:"structure"` + // The events. Events []*OutputLogEvent `locationName:"events" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items in the backward direction. The token + // expires after 24 hours. NextBackwardToken *string `locationName:"nextBackwardToken" min:"1" type:"string"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items in the forward direction. The token expires + // after 24 hours. NextForwardToken *string `locationName:"nextForwardToken" min:"1" type:"string"` } @@ -3616,18 +4165,35 @@ func (s GetLogEventsOutput) GoString() string { return s.String() } -// A log event is a record of some activity that was recorded by the application -// or resource being monitored. The log event record that CloudWatch Logs understands -// contains two properties: the timestamp of when the event occurred, and the -// raw event message. +// SetEvents sets the Events field's value. +func (s *GetLogEventsOutput) SetEvents(v []*OutputLogEvent) *GetLogEventsOutput { + s.Events = v + return s +} + +// SetNextBackwardToken sets the NextBackwardToken field's value. +func (s *GetLogEventsOutput) SetNextBackwardToken(v string) *GetLogEventsOutput { + s.NextBackwardToken = &v + return s +} + +// SetNextForwardToken sets the NextForwardToken field's value. +func (s *GetLogEventsOutput) SetNextForwardToken(v string) *GetLogEventsOutput { + s.NextForwardToken = &v + return s +} + +// Represents a log event, which is a record of activity that was recorded by +// the application or resource being monitored. type InputLogEvent struct { _ struct{} `type:"structure"` + // The raw event message. + // // Message is a required field Message *string `locationName:"message" min:"1" type:"string" required:"true"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event occurred. // // Timestamp is a required field Timestamp *int64 `locationName:"timestamp" type:"long" required:"true"` @@ -3662,25 +4228,40 @@ func (s *InputLogEvent) Validate() error { return nil } +// SetMessage sets the Message field's value. +func (s *InputLogEvent) SetMessage(v string) *InputLogEvent { + s.Message = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *InputLogEvent) SetTimestamp(v int64) *InputLogEvent { + s.Timestamp = &v + return s +} + +// Represents a log group. type LogGroup struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the log group. Arn *string `locationName:"arn" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The creation time of the log group. CreationTime *int64 `locationName:"creationTime" type:"long"` + // The name of the log group. LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` - // The number of metric filters associated with the log group. + // The number of metric filters. MetricFilterCount *int64 `locationName:"metricFilterCount" type:"integer"` - // Specifies the number of days you want to retain log events in the specified - // log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, - // 365, 400, 545, 731, 1827, 3653. + // The number of days to retain the log events in the specified log group. Possible + // values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, + // 1827, and 3653. RetentionInDays *int64 `locationName:"retentionInDays" type:"integer"` + // The number of bytes stored. StoredBytes *int64 `locationName:"storedBytes" type:"long"` } @@ -3694,35 +4275,69 @@ func (s LogGroup) GoString() string { return s.String() } -// A log stream is sequence of log events from a single emitter of logs. +// SetArn sets the Arn field's value. +func (s *LogGroup) SetArn(v string) *LogGroup { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *LogGroup) SetCreationTime(v int64) *LogGroup { + s.CreationTime = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *LogGroup) SetLogGroupName(v string) *LogGroup { + s.LogGroupName = &v + return s +} + +// SetMetricFilterCount sets the MetricFilterCount field's value. +func (s *LogGroup) SetMetricFilterCount(v int64) *LogGroup { + s.MetricFilterCount = &v + return s +} + +// SetRetentionInDays sets the RetentionInDays field's value. +func (s *LogGroup) SetRetentionInDays(v int64) *LogGroup { + s.RetentionInDays = &v + return s +} + +// SetStoredBytes sets the StoredBytes field's value. +func (s *LogGroup) SetStoredBytes(v int64) *LogGroup { + s.StoredBytes = &v + return s +} + +// Represents a log stream, which is a sequence of log events from a single +// emitter of logs. type LogStream struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the log stream. Arn *string `locationName:"arn" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The creation time of the stream. CreationTime *int64 `locationName:"creationTime" type:"long"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time of the first event. FirstEventTimestamp *int64 `locationName:"firstEventTimestamp" type:"long"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time of the last event. LastEventTimestamp *int64 `locationName:"lastEventTimestamp" type:"long"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The ingestion time. LastIngestionTime *int64 `locationName:"lastIngestionTime" type:"long"` + // The name of the log stream. LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"` + // The number of bytes stored. StoredBytes *int64 `locationName:"storedBytes" type:"long"` - // A string token used for making PutLogEvents requests. A sequenceToken can - // only be used once, and PutLogEvents requests must include the sequenceToken - // obtained from the response of the previous request. + // The sequence token. UploadSequenceToken *string `locationName:"uploadSequenceToken" min:"1" type:"string"` } @@ -3736,17 +4351,64 @@ func (s LogStream) GoString() string { return s.String() } -// Metric filters can be used to express how CloudWatch Logs would extract metric -// observations from ingested log events and transform them to metric data in -// a CloudWatch metric. +// SetArn sets the Arn field's value. +func (s *LogStream) SetArn(v string) *LogStream { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *LogStream) SetCreationTime(v int64) *LogStream { + s.CreationTime = &v + return s +} + +// SetFirstEventTimestamp sets the FirstEventTimestamp field's value. +func (s *LogStream) SetFirstEventTimestamp(v int64) *LogStream { + s.FirstEventTimestamp = &v + return s +} + +// SetLastEventTimestamp sets the LastEventTimestamp field's value. +func (s *LogStream) SetLastEventTimestamp(v int64) *LogStream { + s.LastEventTimestamp = &v + return s +} + +// SetLastIngestionTime sets the LastIngestionTime field's value. +func (s *LogStream) SetLastIngestionTime(v int64) *LogStream { + s.LastIngestionTime = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *LogStream) SetLogStreamName(v string) *LogStream { + s.LogStreamName = &v + return s +} + +// SetStoredBytes sets the StoredBytes field's value. +func (s *LogStream) SetStoredBytes(v int64) *LogStream { + s.StoredBytes = &v + return s +} + +// SetUploadSequenceToken sets the UploadSequenceToken field's value. +func (s *LogStream) SetUploadSequenceToken(v string) *LogStream { + s.UploadSequenceToken = &v + return s +} + +// Metric filters express how CloudWatch Logs would extract metric observations +// from ingested log events and transform them into metric data in a CloudWatch +// metric. type MetricFilter struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The creation time of the metric filter. CreationTime *int64 `locationName:"creationTime" type:"long"` - // A name for a metric or subscription filter. + // The name of the metric filter. FilterName *string `locationName:"filterName" min:"1" type:"string"` // A symbolic description of how CloudWatch Logs should interpret the data in @@ -3755,6 +4417,10 @@ type MetricFilter struct { // in the log event message. FilterPattern *string `locationName:"filterPattern" type:"string"` + // The name of the log group. + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` + + // The metric transformations. MetricTransformations []*MetricTransformation `locationName:"metricTransformations" min:"1" type:"list"` } @@ -3768,13 +4434,47 @@ func (s MetricFilter) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *MetricFilter) SetCreationTime(v int64) *MetricFilter { + s.CreationTime = &v + return s +} + +// SetFilterName sets the FilterName field's value. +func (s *MetricFilter) SetFilterName(v string) *MetricFilter { + s.FilterName = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *MetricFilter) SetFilterPattern(v string) *MetricFilter { + s.FilterPattern = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *MetricFilter) SetLogGroupName(v string) *MetricFilter { + s.LogGroupName = &v + return s +} + +// SetMetricTransformations sets the MetricTransformations field's value. +func (s *MetricFilter) SetMetricTransformations(v []*MetricTransformation) *MetricFilter { + s.MetricTransformations = v + return s +} + +// Represents a matched event. type MetricFilterMatchRecord struct { _ struct{} `type:"structure"` + // The raw event data. EventMessage *string `locationName:"eventMessage" min:"1" type:"string"` + // The event number. EventNumber *int64 `locationName:"eventNumber" type:"long"` + // The values extracted from the event data by the filter. ExtractedValues map[string]*string `locationName:"extractedValues" type:"map"` } @@ -3788,25 +4488,45 @@ func (s MetricFilterMatchRecord) GoString() string { return s.String() } +// SetEventMessage sets the EventMessage field's value. +func (s *MetricFilterMatchRecord) SetEventMessage(v string) *MetricFilterMatchRecord { + s.EventMessage = &v + return s +} + +// SetEventNumber sets the EventNumber field's value. +func (s *MetricFilterMatchRecord) SetEventNumber(v int64) *MetricFilterMatchRecord { + s.EventNumber = &v + return s +} + +// SetExtractedValues sets the ExtractedValues field's value. +func (s *MetricFilterMatchRecord) SetExtractedValues(v map[string]*string) *MetricFilterMatchRecord { + s.ExtractedValues = v + return s +} + +// Indicates how to transform ingested log events into metric data in a CloudWatch +// metric. type MetricTransformation struct { _ struct{} `type:"structure"` - // (Optional) A default value to emit when a filter pattern does not match a - // log event. Can be null. + // (Optional) The value to emit when a filter pattern does not match a log event. + // This value can be null. DefaultValue *float64 `locationName:"defaultValue" type:"double"` - // Name of the metric. + // The name of the CloudWatch metric. // // MetricName is a required field MetricName *string `locationName:"metricName" type:"string" required:"true"` - // Namespace to which the metric belongs. + // The namespace of the CloudWatch metric. // // MetricNamespace is a required field MetricNamespace *string `locationName:"metricNamespace" type:"string" required:"true"` - // A string representing a value to publish to this metric when a filter pattern - // matches a log event. + // The value to publish to the CloudWatch metric when a filter pattern matches + // a log event. // // MetricValue is a required field MetricValue *string `locationName:"metricValue" type:"string" required:"true"` @@ -3841,17 +4561,41 @@ func (s *MetricTransformation) Validate() error { return nil } +// SetDefaultValue sets the DefaultValue field's value. +func (s *MetricTransformation) SetDefaultValue(v float64) *MetricTransformation { + s.DefaultValue = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *MetricTransformation) SetMetricName(v string) *MetricTransformation { + s.MetricName = &v + return s +} + +// SetMetricNamespace sets the MetricNamespace field's value. +func (s *MetricTransformation) SetMetricNamespace(v string) *MetricTransformation { + s.MetricNamespace = &v + return s +} + +// SetMetricValue sets the MetricValue field's value. +func (s *MetricTransformation) SetMetricValue(v string) *MetricTransformation { + s.MetricValue = &v + return s +} + +// Represents a log event. type OutputLogEvent struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event was ingested. IngestionTime *int64 `locationName:"ingestionTime" type:"long"` + // The data contained in the log event. Message *string `locationName:"message" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event occurred. Timestamp *int64 `locationName:"timestamp" type:"long"` } @@ -3865,6 +4609,24 @@ func (s OutputLogEvent) GoString() string { return s.String() } +// SetIngestionTime sets the IngestionTime field's value. +func (s *OutputLogEvent) SetIngestionTime(v int64) *OutputLogEvent { + s.IngestionTime = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *OutputLogEvent) SetMessage(v string) *OutputLogEvent { + s.Message = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *OutputLogEvent) SetTimestamp(v int64) *OutputLogEvent { + s.Timestamp = &v + return s +} + type PutDestinationInput struct { _ struct{} `type:"structure"` @@ -3873,8 +4635,8 @@ type PutDestinationInput struct { // DestinationName is a required field DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"` - // The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon - // Kinesis PutRecord requests on the destination stream. + // The ARN of an IAM role that grants CloudWatch Logs permissions to call Amazon + // Kinesis PutRecord on the destination stream. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` @@ -3923,10 +4685,28 @@ func (s *PutDestinationInput) Validate() error { return nil } +// SetDestinationName sets the DestinationName field's value. +func (s *PutDestinationInput) SetDestinationName(v string) *PutDestinationInput { + s.DestinationName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *PutDestinationInput) SetRoleArn(v string) *PutDestinationInput { + s.RoleArn = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *PutDestinationInput) SetTargetArn(v string) *PutDestinationInput { + s.TargetArn = &v + return s +} + type PutDestinationOutput struct { _ struct{} `type:"structure"` - // A cross account destination that is the recipient of subscription log events. + // The destination. Destination *Destination `locationName:"destination" type:"structure"` } @@ -3940,11 +4720,17 @@ func (s PutDestinationOutput) GoString() string { return s.String() } +// SetDestination sets the Destination field's value. +func (s *PutDestinationOutput) SetDestination(v *Destination) *PutDestinationOutput { + s.Destination = v + return s +} + type PutDestinationPolicyInput struct { _ struct{} `type:"structure"` // An IAM policy document that authorizes cross-account users to deliver their - // log events to associated destination. + // log events to the associated destination. // // AccessPolicy is a required field AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string" required:"true"` @@ -3987,6 +4773,18 @@ func (s *PutDestinationPolicyInput) Validate() error { return nil } +// SetAccessPolicy sets the AccessPolicy field's value. +func (s *PutDestinationPolicyInput) SetAccessPolicy(v string) *PutDestinationPolicyInput { + s.AccessPolicy = &v + return s +} + +// SetDestinationName sets the DestinationName field's value. +func (s *PutDestinationPolicyInput) SetDestinationName(v string) *PutDestinationPolicyInput { + s.DestinationName = &v + return s +} + type PutDestinationPolicyOutput struct { _ struct{} `type:"structure"` } @@ -4004,23 +4802,22 @@ func (s PutDestinationPolicyOutput) GoString() string { type PutLogEventsInput struct { _ struct{} `type:"structure"` - // A list of log events belonging to a log stream. + // The log events. // // LogEvents is a required field LogEvents []*InputLogEvent `locationName:"logEvents" min:"1" type:"list" required:"true"` - // The name of the log group to put log events to. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // The name of the log stream to put log events to. + // The name of the log stream. // // LogStreamName is a required field LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` - // A string token that must be obtained from the response of the previous PutLogEvents - // request. + // The sequence token. SequenceToken *string `locationName:"sequenceToken" min:"1" type:"string"` } @@ -4075,14 +4872,37 @@ func (s *PutLogEventsInput) Validate() error { return nil } +// SetLogEvents sets the LogEvents field's value. +func (s *PutLogEventsInput) SetLogEvents(v []*InputLogEvent) *PutLogEventsInput { + s.LogEvents = v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *PutLogEventsInput) SetLogGroupName(v string) *PutLogEventsInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *PutLogEventsInput) SetLogStreamName(v string) *PutLogEventsInput { + s.LogStreamName = &v + return s +} + +// SetSequenceToken sets the SequenceToken field's value. +func (s *PutLogEventsInput) SetSequenceToken(v string) *PutLogEventsInput { + s.SequenceToken = &v + return s +} + type PutLogEventsOutput struct { _ struct{} `type:"structure"` - // A string token used for making PutLogEvents requests. A sequenceToken can - // only be used once, and PutLogEvents requests must include the sequenceToken - // obtained from the response of the previous request. + // The next sequence token. NextSequenceToken *string `locationName:"nextSequenceToken" min:"1" type:"string"` + // The rejected events. RejectedLogEventsInfo *RejectedLogEventsInfo `locationName:"rejectedLogEventsInfo" type:"structure"` } @@ -4096,6 +4916,18 @@ func (s PutLogEventsOutput) GoString() string { return s.String() } +// SetNextSequenceToken sets the NextSequenceToken field's value. +func (s *PutLogEventsOutput) SetNextSequenceToken(v string) *PutLogEventsOutput { + s.NextSequenceToken = &v + return s +} + +// SetRejectedLogEventsInfo sets the RejectedLogEventsInfo field's value. +func (s *PutLogEventsOutput) SetRejectedLogEventsInfo(v *RejectedLogEventsInfo) *PutLogEventsOutput { + s.RejectedLogEventsInfo = v + return s +} + type PutMetricFilterInput struct { _ struct{} `type:"structure"` @@ -4104,13 +4936,12 @@ type PutMetricFilterInput struct { // FilterName is a required field FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` - // A valid CloudWatch Logs filter pattern for extracting metric data out of - // ingested log events. + // A filter pattern for extracting metric data out of ingested log events. // // FilterPattern is a required field FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` - // The name of the log group to associate the metric filter with. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -4172,6 +5003,30 @@ func (s *PutMetricFilterInput) Validate() error { return nil } +// SetFilterName sets the FilterName field's value. +func (s *PutMetricFilterInput) SetFilterName(v string) *PutMetricFilterInput { + s.FilterName = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *PutMetricFilterInput) SetFilterPattern(v string) *PutMetricFilterInput { + s.FilterPattern = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *PutMetricFilterInput) SetLogGroupName(v string) *PutMetricFilterInput { + s.LogGroupName = &v + return s +} + +// SetMetricTransformations sets the MetricTransformations field's value. +func (s *PutMetricFilterInput) SetMetricTransformations(v []*MetricTransformation) *PutMetricFilterInput { + s.MetricTransformations = v + return s +} + type PutMetricFilterOutput struct { _ struct{} `type:"structure"` } @@ -4189,14 +5044,14 @@ func (s PutMetricFilterOutput) GoString() string { type PutRetentionPolicyInput struct { _ struct{} `type:"structure"` - // The name of the log group to associate the retention policy with. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // Specifies the number of days you want to retain log events in the specified - // log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, - // 365, 400, 545, 731, 1827, 3653. + // The number of days to retain the log events in the specified log group. Possible + // values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, + // 1827, and 3653. // // RetentionInDays is a required field RetentionInDays *int64 `locationName:"retentionInDays" type:"integer" required:"true"` @@ -4231,6 +5086,18 @@ func (s *PutRetentionPolicyInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *PutRetentionPolicyInput) SetLogGroupName(v string) *PutRetentionPolicyInput { + s.LogGroupName = &v + return s +} + +// SetRetentionInDays sets the RetentionInDays field's value. +func (s *PutRetentionPolicyInput) SetRetentionInDays(v int64) *PutRetentionPolicyInput { + s.RetentionInDays = &v + return s +} + type PutRetentionPolicyOutput struct { _ struct{} `type:"structure"` } @@ -4251,17 +5118,17 @@ type PutSubscriptionFilterInput struct { // The ARN of the destination to deliver matching log events to. Currently, // the supported destinations are: // - // An Amazon Kinesis stream belonging to the same account as the subscription - // filter, for same-account delivery. + // * An Amazon Kinesis stream belonging to the same account as the subscription + // filter, for same-account delivery. // - // A logical destination (used via an ARN of Destination) belonging to a - // different account, for cross-account delivery. + // * A logical destination (specified using an ARN) belonging to a different + // account, for cross-account delivery. // - // An Amazon Kinesis Firehose stream belonging to the same account as the - // subscription filter, for same-account delivery. + // * An Amazon Kinesis Firehose stream belonging to the same account as the + // subscription filter, for same-account delivery. // - // An AWS Lambda function belonging to the same account as the subscription - // filter, for same-account delivery. + // * An AWS Lambda function belonging to the same account as the subscription + // filter, for same-account delivery. // // DestinationArn is a required field DestinationArn *string `locationName:"destinationArn" min:"1" type:"string" required:"true"` @@ -4271,21 +5138,20 @@ type PutSubscriptionFilterInput struct { // FilterName is a required field FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` - // A valid CloudWatch Logs filter pattern for subscribing to a filtered stream - // of log events. + // A filter pattern for subscribing to a filtered stream of log events. // // FilterPattern is a required field FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` - // The name of the log group to associate the subscription filter with. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` // The ARN of an IAM role that grants CloudWatch Logs permissions to deliver // ingested log events to the destination stream. You don't need to provide - // the ARN when you are working with a logical destination (used via an ARN - // of Destination) for cross-account delivery. + // the ARN when you are working with a logical destination for cross-account + // delivery. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` } @@ -4333,6 +5199,36 @@ func (s *PutSubscriptionFilterInput) Validate() error { return nil } +// SetDestinationArn sets the DestinationArn field's value. +func (s *PutSubscriptionFilterInput) SetDestinationArn(v string) *PutSubscriptionFilterInput { + s.DestinationArn = &v + return s +} + +// SetFilterName sets the FilterName field's value. +func (s *PutSubscriptionFilterInput) SetFilterName(v string) *PutSubscriptionFilterInput { + s.FilterName = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *PutSubscriptionFilterInput) SetFilterPattern(v string) *PutSubscriptionFilterInput { + s.FilterPattern = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *PutSubscriptionFilterInput) SetLogGroupName(v string) *PutSubscriptionFilterInput { + s.LogGroupName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *PutSubscriptionFilterInput) SetRoleArn(v string) *PutSubscriptionFilterInput { + s.RoleArn = &v + return s +} + type PutSubscriptionFilterOutput struct { _ struct{} `type:"structure"` } @@ -4347,13 +5243,17 @@ func (s PutSubscriptionFilterOutput) GoString() string { return s.String() } +// Represents the rejected events. type RejectedLogEventsInfo struct { _ struct{} `type:"structure"` + // The expired log events. ExpiredLogEventEndIndex *int64 `locationName:"expiredLogEventEndIndex" type:"integer"` + // The log events that are too new. TooNewLogEventStartIndex *int64 `locationName:"tooNewLogEventStartIndex" type:"integer"` + // The log events that are too old. TooOldLogEventEndIndex *int64 `locationName:"tooOldLogEventEndIndex" type:"integer"` } @@ -4367,16 +5267,32 @@ func (s RejectedLogEventsInfo) GoString() string { return s.String() } -// An object indicating the search status of a log stream in a FilterLogEvents -// request. +// SetExpiredLogEventEndIndex sets the ExpiredLogEventEndIndex field's value. +func (s *RejectedLogEventsInfo) SetExpiredLogEventEndIndex(v int64) *RejectedLogEventsInfo { + s.ExpiredLogEventEndIndex = &v + return s +} + +// SetTooNewLogEventStartIndex sets the TooNewLogEventStartIndex field's value. +func (s *RejectedLogEventsInfo) SetTooNewLogEventStartIndex(v int64) *RejectedLogEventsInfo { + s.TooNewLogEventStartIndex = &v + return s +} + +// SetTooOldLogEventEndIndex sets the TooOldLogEventEndIndex field's value. +func (s *RejectedLogEventsInfo) SetTooOldLogEventEndIndex(v int64) *RejectedLogEventsInfo { + s.TooOldLogEventEndIndex = &v + return s +} + +// Represents the search status of a log stream. type SearchedLogStream struct { _ struct{} `type:"structure"` // The name of the log stream. LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"` - // Indicates whether all the events in this log stream were searched or more - // data exists to search by paginating further. + // Indicates whether all the events in this log stream were searched. SearchedCompletely *bool `locationName:"searchedCompletely" type:"boolean"` } @@ -4390,16 +5306,29 @@ func (s SearchedLogStream) GoString() string { return s.String() } +// SetLogStreamName sets the LogStreamName field's value. +func (s *SearchedLogStream) SetLogStreamName(v string) *SearchedLogStream { + s.LogStreamName = &v + return s +} + +// SetSearchedCompletely sets the SearchedCompletely field's value. +func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream { + s.SearchedCompletely = &v + return s +} + +// Represents a subscription filter. type SubscriptionFilter struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The creation time of the subscription filter. CreationTime *int64 `locationName:"creationTime" type:"long"` + // The Amazon Resource Name (ARN) of the destination. DestinationArn *string `locationName:"destinationArn" min:"1" type:"string"` - // A name for a metric or subscription filter. + // The name of the subscription filter. FilterName *string `locationName:"filterName" min:"1" type:"string"` // A symbolic description of how CloudWatch Logs should interpret the data in @@ -4408,6 +5337,7 @@ type SubscriptionFilter struct { // in the log event message. FilterPattern *string `locationName:"filterPattern" type:"string"` + // The name of the log group. LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` RoleArn *string `locationName:"roleArn" min:"1" type:"string"` @@ -4423,6 +5353,42 @@ func (s SubscriptionFilter) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *SubscriptionFilter) SetCreationTime(v int64) *SubscriptionFilter { + s.CreationTime = &v + return s +} + +// SetDestinationArn sets the DestinationArn field's value. +func (s *SubscriptionFilter) SetDestinationArn(v string) *SubscriptionFilter { + s.DestinationArn = &v + return s +} + +// SetFilterName sets the FilterName field's value. +func (s *SubscriptionFilter) SetFilterName(v string) *SubscriptionFilter { + s.FilterName = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *SubscriptionFilter) SetFilterPattern(v string) *SubscriptionFilter { + s.FilterPattern = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *SubscriptionFilter) SetLogGroupName(v string) *SubscriptionFilter { + s.LogGroupName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *SubscriptionFilter) SetRoleArn(v string) *SubscriptionFilter { + s.RoleArn = &v + return s +} + type TestMetricFilterInput struct { _ struct{} `type:"structure"` @@ -4434,7 +5400,7 @@ type TestMetricFilterInput struct { // FilterPattern is a required field FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` - // A list of log event messages to test. + // The log event messages to test. // // LogEventMessages is a required field LogEventMessages []*string `locationName:"logEventMessages" min:"1" type:"list" required:"true"` @@ -4469,9 +5435,22 @@ func (s *TestMetricFilterInput) Validate() error { return nil } +// SetFilterPattern sets the FilterPattern field's value. +func (s *TestMetricFilterInput) SetFilterPattern(v string) *TestMetricFilterInput { + s.FilterPattern = &v + return s +} + +// SetLogEventMessages sets the LogEventMessages field's value. +func (s *TestMetricFilterInput) SetLogEventMessages(v []*string) *TestMetricFilterInput { + s.LogEventMessages = v + return s +} + type TestMetricFilterOutput struct { _ struct{} `type:"structure"` + // The matched events. Matches []*MetricFilterMatchRecord `locationName:"matches" type:"list"` } @@ -4485,6 +5464,12 @@ func (s TestMetricFilterOutput) GoString() string { return s.String() } +// SetMatches sets the Matches field's value. +func (s *TestMetricFilterOutput) SetMatches(v []*MetricFilterMatchRecord) *TestMetricFilterOutput { + s.Matches = v + return s +} + const ( // ExportTaskStatusCodeCancelled is a ExportTaskStatusCode enum value ExportTaskStatusCodeCancelled = "CANCELLED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go index c769589cf..4ae9017ca 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go @@ -12,34 +12,35 @@ import ( ) // You can use Amazon CloudWatch Logs to monitor, store, and access your log -// files from Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon CloudTrail, -// or other sources. You can then retrieve the associated log data from CloudWatch -// Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in -// the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK. +// files from EC2 instances, Amazon CloudTrail, or other sources. You can then +// retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch +// console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs +// API, or the CloudWatch Logs SDK. // // You can use CloudWatch Logs to: // -// Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch -// Logs to monitor applications and systems using log data. For example, 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 threshold you -// specify. CloudWatch Logs uses your log data for monitoring; so, no code changes -// are required. For example, you can monitor application logs for specific -// literal terms (such as "NullReferenceException") or 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 the term you are searching for is found, -// CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify. +// * Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch +// Logs to monitor applications and systems using log data. For example, +// 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 +// threshold you specify. CloudWatch Logs uses your log data for monitoring; +// so, no code changes are required. For example, you can monitor application +// logs for specific literal terms (such as "NullReferenceException") or +// 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 +// the term you are searching for is found, CloudWatch Logs reports the data +// to a Amazon CloudWatch metric that you specify. // -// Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon -// CloudWatch and receive notifications of particular API activity as captured -// by CloudTrail and use the notification to perform troubleshooting. +// * Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon +// CloudWatch and receive notifications of particular API activity as captured +// by CloudTrail and use the notification to perform troubleshooting. // -// 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 that -// any log events older than this setting are automatically deleted. The CloudWatch -// Logs agent makes it easy to quickly send both rotated and non-rotated log -// data off of a host and into the log service. You can then access the raw -// log data when you need it. +// * 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 +// that any log events older than this setting are automatically deleted. +// The CloudWatch Logs agent makes it easy to quickly send both rotated and +// non-rotated log data off of a host and into the log service. You can then +// access the raw log data when you need it. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type CloudWatchLogs struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go index 504b5addb..b834f02fd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go @@ -157,8 +157,8 @@ func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request // // Creates a new branch in a repository and points the branch to a commit. // -// Calling the create branch operation does not set a repository's default -// branch. To do this, call the update default branch operation. +// Calling the create branch operation does not set a repository's default branch. +// To do this, call the update default branch operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -364,8 +364,8 @@ func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req // Deletes a repository. If a specified repository was already deleted, a null // repository ID will be returned. // -// Deleting a repository also deletes all associated objects and metadata. -// After a repository is deleted, all future push calls to the deleted repository +// Deleting a repository also deletes all associated objects and metadata. After +// a repository is deleted, all future push calls to the deleted repository // will fail. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1606,6 +1606,12 @@ func (s *BatchGetRepositoriesInput) Validate() error { return nil } +// SetRepositoryNames sets the RepositoryNames field's value. +func (s *BatchGetRepositoriesInput) SetRepositoryNames(v []*string) *BatchGetRepositoriesInput { + s.RepositoryNames = v + return s +} + // Represents the output of a batch get repositories operation. type BatchGetRepositoriesOutput struct { _ struct{} `type:"structure"` @@ -1627,6 +1633,18 @@ func (s BatchGetRepositoriesOutput) GoString() string { return s.String() } +// SetRepositories sets the Repositories field's value. +func (s *BatchGetRepositoriesOutput) SetRepositories(v []*RepositoryMetadata) *BatchGetRepositoriesOutput { + s.Repositories = v + return s +} + +// SetRepositoriesNotFound sets the RepositoriesNotFound field's value. +func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *BatchGetRepositoriesOutput { + s.RepositoriesNotFound = v + return s +} + // Returns information about a branch. type BranchInfo struct { _ struct{} `type:"structure"` @@ -1648,6 +1666,18 @@ func (s BranchInfo) GoString() string { return s.String() } +// SetBranchName sets the BranchName field's value. +func (s *BranchInfo) SetBranchName(v string) *BranchInfo { + s.BranchName = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *BranchInfo) SetCommitId(v string) *BranchInfo { + s.CommitId = &v + return s +} + // Returns information about a specific commit. type Commit struct { _ struct{} `type:"structure"` @@ -1684,6 +1714,42 @@ func (s Commit) GoString() string { return s.String() } +// SetAdditionalData sets the AdditionalData field's value. +func (s *Commit) SetAdditionalData(v string) *Commit { + s.AdditionalData = &v + return s +} + +// SetAuthor sets the Author field's value. +func (s *Commit) SetAuthor(v *UserInfo) *Commit { + s.Author = v + return s +} + +// SetCommitter sets the Committer field's value. +func (s *Commit) SetCommitter(v *UserInfo) *Commit { + s.Committer = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Commit) SetMessage(v string) *Commit { + s.Message = &v + return s +} + +// SetParents sets the Parents field's value. +func (s *Commit) SetParents(v []*string) *Commit { + s.Parents = v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *Commit) SetTreeId(v string) *Commit { + s.TreeId = &v + return s +} + // Represents the input of a create branch operation. type CreateBranchInput struct { _ struct{} `type:"structure"` @@ -1739,6 +1805,24 @@ func (s *CreateBranchInput) Validate() error { return nil } +// SetBranchName sets the BranchName field's value. +func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput { + s.BranchName = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput { + s.CommitId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput { + s.RepositoryName = &v + return s +} + type CreateBranchOutput struct { _ struct{} `type:"structure"` } @@ -1804,6 +1888,18 @@ func (s *CreateRepositoryInput) Validate() error { return nil } +// SetRepositoryDescription sets the RepositoryDescription field's value. +func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput { + s.RepositoryDescription = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput { + s.RepositoryName = &v + return s +} + // Represents the output of a create repository operation. type CreateRepositoryOutput struct { _ struct{} `type:"structure"` @@ -1822,6 +1918,12 @@ func (s CreateRepositoryOutput) GoString() string { return s.String() } +// SetRepositoryMetadata sets the RepositoryMetadata field's value. +func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *CreateRepositoryOutput { + s.RepositoryMetadata = v + return s +} + // Represents the input of a delete repository operation. type DeleteRepositoryInput struct { _ struct{} `type:"structure"` @@ -1858,6 +1960,12 @@ func (s *DeleteRepositoryInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput { + s.RepositoryName = &v + return s +} + // Represents the output of a delete repository operation. type DeleteRepositoryOutput struct { _ struct{} `type:"structure"` @@ -1876,6 +1984,12 @@ func (s DeleteRepositoryOutput) GoString() string { return s.String() } +// SetRepositoryId sets the RepositoryId field's value. +func (s *DeleteRepositoryOutput) SetRepositoryId(v string) *DeleteRepositoryOutput { + s.RepositoryId = &v + return s +} + // Represents the input of a get branch operation. type GetBranchInput struct { _ struct{} `type:"structure"` @@ -1914,6 +2028,18 @@ func (s *GetBranchInput) Validate() error { return nil } +// SetBranchName sets the BranchName field's value. +func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput { + s.BranchName = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetBranchInput) SetRepositoryName(v string) *GetBranchInput { + s.RepositoryName = &v + return s +} + // Represents the output of a get branch operation. type GetBranchOutput struct { _ struct{} `type:"structure"` @@ -1932,6 +2058,12 @@ func (s GetBranchOutput) GoString() string { return s.String() } +// SetBranch sets the Branch field's value. +func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput { + s.Branch = v + return s +} + // Represents the input of a get commit operation. type GetCommitInput struct { _ struct{} `type:"structure"` @@ -1976,6 +2108,18 @@ func (s *GetCommitInput) Validate() error { return nil } +// SetCommitId sets the CommitId field's value. +func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput { + s.CommitId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput { + s.RepositoryName = &v + return s +} + // Represents the output of a get commit operation. type GetCommitOutput struct { _ struct{} `type:"structure"` @@ -1996,6 +2140,12 @@ func (s GetCommitOutput) GoString() string { return s.String() } +// SetCommit sets the Commit field's value. +func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput { + s.Commit = v + return s +} + // Represents the input of a get repository operation. type GetRepositoryInput struct { _ struct{} `type:"structure"` @@ -2032,6 +2182,12 @@ func (s *GetRepositoryInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryInput) SetRepositoryName(v string) *GetRepositoryInput { + s.RepositoryName = &v + return s +} + // Represents the output of a get repository operation. type GetRepositoryOutput struct { _ struct{} `type:"structure"` @@ -2050,6 +2206,12 @@ func (s GetRepositoryOutput) GoString() string { return s.String() } +// SetRepositoryMetadata sets the RepositoryMetadata field's value. +func (s *GetRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *GetRepositoryOutput { + s.RepositoryMetadata = v + return s +} + // Represents the input of a get repository triggers operation. type GetRepositoryTriggersInput struct { _ struct{} `type:"structure"` @@ -2081,6 +2243,12 @@ func (s *GetRepositoryTriggersInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryTriggersInput) SetRepositoryName(v string) *GetRepositoryTriggersInput { + s.RepositoryName = &v + return s +} + // Represents the output of a get repository triggers operation. type GetRepositoryTriggersOutput struct { _ struct{} `type:"structure"` @@ -2102,6 +2270,18 @@ func (s GetRepositoryTriggersOutput) GoString() string { return s.String() } +// SetConfigurationId sets the ConfigurationId field's value. +func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput { + s.ConfigurationId = &v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput { + s.Triggers = v + return s +} + // Represents the input of a list branches operation. type ListBranchesInput struct { _ struct{} `type:"structure"` @@ -2141,6 +2321,18 @@ func (s *ListBranchesInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput { + s.NextToken = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *ListBranchesInput) SetRepositoryName(v string) *ListBranchesInput { + s.RepositoryName = &v + return s +} + // Represents the output of a list branches operation. type ListBranchesOutput struct { _ struct{} `type:"structure"` @@ -2162,6 +2354,18 @@ func (s ListBranchesOutput) GoString() string { return s.String() } +// SetBranches sets the Branches field's value. +func (s *ListBranchesOutput) SetBranches(v []*string) *ListBranchesOutput { + s.Branches = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput { + s.NextToken = &v + return s +} + // Represents the input of a list repositories operation. type ListRepositoriesInput struct { _ struct{} `type:"structure"` @@ -2189,6 +2393,24 @@ func (s ListRepositoriesInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput { + s.NextToken = &v + return s +} + +// SetOrder sets the Order field's value. +func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput { + s.Order = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput { + s.SortBy = &v + return s +} + // Represents the output of a list repositories operation. type ListRepositoriesOutput struct { _ struct{} `type:"structure"` @@ -2213,6 +2435,18 @@ func (s ListRepositoriesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput { + s.NextToken = &v + return s +} + +// SetRepositories sets the Repositories field's value. +func (s *ListRepositoriesOutput) SetRepositories(v []*RepositoryNameIdPair) *ListRepositoriesOutput { + s.Repositories = v + return s +} + // Represents the input ofa put repository triggers operation. type PutRepositoryTriggersInput struct { _ struct{} `type:"structure"` @@ -2247,6 +2481,18 @@ func (s *PutRepositoryTriggersInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput { + s.RepositoryName = &v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput { + s.Triggers = v + return s +} + // Represents the output of a put repository triggers operation. type PutRepositoryTriggersOutput struct { _ struct{} `type:"structure"` @@ -2265,6 +2511,12 @@ func (s PutRepositoryTriggersOutput) GoString() string { return s.String() } +// SetConfigurationId sets the ConfigurationId field's value. +func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositoryTriggersOutput { + s.ConfigurationId = &v + return s +} + // Information about a repository. type RepositoryMetadata struct { _ struct{} `type:"structure"` @@ -2310,6 +2562,66 @@ func (s RepositoryMetadata) GoString() string { return s.String() } +// SetAccountId sets the AccountId field's value. +func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata { + s.AccountId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata { + s.Arn = &v + return s +} + +// SetCloneUrlHttp sets the CloneUrlHttp field's value. +func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata { + s.CloneUrlHttp = &v + return s +} + +// SetCloneUrlSsh sets the CloneUrlSsh field's value. +func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata { + s.CloneUrlSsh = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata { + s.CreationDate = &v + return s +} + +// SetDefaultBranch sets the DefaultBranch field's value. +func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata { + s.DefaultBranch = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata { + s.LastModifiedDate = &v + return s +} + +// SetRepositoryDescription sets the RepositoryDescription field's value. +func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata { + s.RepositoryDescription = &v + return s +} + +// SetRepositoryId sets the RepositoryId field's value. +func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata { + s.RepositoryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata { + s.RepositoryName = &v + return s +} + // Information about a repository name and ID. type RepositoryNameIdPair struct { _ struct{} `type:"structure"` @@ -2331,6 +2643,18 @@ func (s RepositoryNameIdPair) GoString() string { return s.String() } +// SetRepositoryId sets the RepositoryId field's value. +func (s *RepositoryNameIdPair) SetRepositoryId(v string) *RepositoryNameIdPair { + s.RepositoryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair { + s.RepositoryName = &v + return s +} + // Information about a trigger for a repository. type RepositoryTrigger struct { _ struct{} `type:"structure"` @@ -2367,6 +2691,36 @@ func (s RepositoryTrigger) GoString() string { return s.String() } +// SetBranches sets the Branches field's value. +func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger { + s.Branches = v + return s +} + +// SetCustomData sets the CustomData field's value. +func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger { + s.CustomData = &v + return s +} + +// SetDestinationArn sets the DestinationArn field's value. +func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger { + s.DestinationArn = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger { + s.Events = v + return s +} + +// SetName sets the Name field's value. +func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger { + s.Name = &v + return s +} + // A trigger failed to run. type RepositoryTriggerExecutionFailure struct { _ struct{} `type:"structure"` @@ -2388,6 +2742,18 @@ func (s RepositoryTriggerExecutionFailure) GoString() string { return s.String() } +// SetFailureMessage sets the FailureMessage field's value. +func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure { + s.FailureMessage = &v + return s +} + +// SetTrigger sets the Trigger field's value. +func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure { + s.Trigger = &v + return s +} + // Represents the input of a test repository triggers operation. type TestRepositoryTriggersInput struct { _ struct{} `type:"structure"` @@ -2422,6 +2788,18 @@ func (s *TestRepositoryTriggersInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *TestRepositoryTriggersInput) SetRepositoryName(v string) *TestRepositoryTriggersInput { + s.RepositoryName = &v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *TestRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *TestRepositoryTriggersInput { + s.Triggers = v + return s +} + // Represents the output of a test repository triggers operation. type TestRepositoryTriggersOutput struct { _ struct{} `type:"structure"` @@ -2445,6 +2823,18 @@ func (s TestRepositoryTriggersOutput) GoString() string { return s.String() } +// SetFailedExecutions sets the FailedExecutions field's value. +func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput { + s.FailedExecutions = v + return s +} + +// SetSuccessfulExecutions sets the SuccessfulExecutions field's value. +func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput { + s.SuccessfulExecutions = v + return s +} + // Represents the input of an update default branch operation. type UpdateDefaultBranchInput struct { _ struct{} `type:"structure"` @@ -2492,6 +2882,18 @@ func (s *UpdateDefaultBranchInput) Validate() error { return nil } +// SetDefaultBranchName sets the DefaultBranchName field's value. +func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput { + s.DefaultBranchName = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UpdateDefaultBranchInput) SetRepositoryName(v string) *UpdateDefaultBranchInput { + s.RepositoryName = &v + return s +} + type UpdateDefaultBranchOutput struct { _ struct{} `type:"structure"` } @@ -2546,6 +2948,18 @@ func (s *UpdateRepositoryDescriptionInput) Validate() error { return nil } +// SetRepositoryDescription sets the RepositoryDescription field's value. +func (s *UpdateRepositoryDescriptionInput) SetRepositoryDescription(v string) *UpdateRepositoryDescriptionInput { + s.RepositoryDescription = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UpdateRepositoryDescriptionInput) SetRepositoryName(v string) *UpdateRepositoryDescriptionInput { + s.RepositoryName = &v + return s +} + type UpdateRepositoryDescriptionOutput struct { _ struct{} `type:"structure"` } @@ -2607,6 +3021,18 @@ func (s *UpdateRepositoryNameInput) Validate() error { return nil } +// SetNewName sets the NewName field's value. +func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput { + s.NewName = &v + return s +} + +// SetOldName sets the OldName field's value. +func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput { + s.OldName = &v + return s +} + type UpdateRepositoryNameOutput struct { _ struct{} `type:"structure"` } @@ -2645,6 +3071,24 @@ func (s UserInfo) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *UserInfo) SetDate(v string) *UserInfo { + s.Date = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *UserInfo) SetEmail(v string) *UserInfo { + s.Email = &v + return s +} + +// SetName sets the Name field's value. +func (s *UserInfo) SetName(v string) *UserInfo { + s.Name = &v + return s +} + const ( // OrderEnumAscending is a OrderEnum enum value OrderEnumAscending = "ascending" diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go index ec608b7c1..ac052cb0e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go @@ -16,28 +16,39 @@ import ( // // You can use the AWS CodeCommit API to work with the following objects: // -// Repositories, by calling the following: BatchGetRepositories, which returns -// information about one or more repositories associated with your AWS account -// CreateRepository, which creates an AWS CodeCommit repository DeleteRepository, -// which deletes an AWS CodeCommit repository GetRepository, which returns information -// about a specified repository ListRepositories, which lists all AWS CodeCommit -// repositories associated with your AWS account UpdateRepositoryDescription, -// which sets or updates the description of the repository UpdateRepositoryName, -// which changes the name of the repository. If you change the name of a repository, -// no other users of that repository will be able to access it until you send -// them the new HTTPS or SSH URL to use. Branches, by calling the following: -// CreateBranch, which creates a new branch in a specified repository GetBranch, -// which returns information about a specified branch ListBranches, which lists -// all branches for a specified repository UpdateDefaultBranch, which changes -// the default branch for a repository Information about committed code in -// a repository, by calling the following: GetCommit, which returns information -// about a commit, including commit messages and committer information. Triggers, -// by calling the following: GetRepositoryTriggers, which returns information -// about triggers configured for a repository PutRepositoryTriggers, which replaces -// all triggers for a repository and can be used to create or delete triggers +// * Repositories, by calling the following: BatchGetRepositories, which +// returns information about one or more repositories associated with your +// AWS account +// CreateRepository, which creates an AWS CodeCommit repository +// DeleteRepository, which deletes an AWS CodeCommit repository +// GetRepository, which returns information about a specified repository +// ListRepositories, which lists all AWS CodeCommit repositories associated +// with your AWS account +// UpdateRepositoryDescription, which sets or updates the description of the +// repository +// UpdateRepositoryName, which changes the name of the repository. If you change +// the name of a repository, no other users of that repository will be able +// to access it until you send them the new HTTPS or SSH URL to use. +// +// * Branches, by calling the following: CreateBranch, which creates a new +// branch in a specified repository +// GetBranch, which returns information about a specified branch +// ListBranches, which lists all branches for a specified repository +// UpdateDefaultBranch, which changes the default branch for a repository +// +// * Information about committed code in a repository, by calling the following: +// GetCommit, which returns information about a commit, including commit +// messages and committer information. +// +// * Triggers, by calling the following: GetRepositoryTriggers, which returns +// information about triggers configured for a repository +// PutRepositoryTriggers, which replaces all triggers for a repository and can +// be used to create or delete triggers // TestRepositoryTriggers, which tests the functionality of a repository trigger -// by sending data to the trigger target For information about how to use -// AWS CodeCommit, see the AWS CodeCommit User Guide (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html). +// by sending data to the trigger target +// +// For information about how to use AWS CodeCommit, see the AWS CodeCommit User +// Guide (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html). //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type CodeCommit struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go index 41136c874..3e7207bcc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go @@ -916,15 +916,15 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn // * InvalidAlarmConfigException // The format of the alarm configuration is invalid. Possible causes include: // -// The alarm list is null. +// * The alarm list is null. // -// The alarm object is null. +// * The alarm object is null. // -// The alarm name is empty or null or exceeds the 255 character limit. +// * The alarm name is empty or null or exceeds the 255 character limit. // -// Two alarms with the same name have been specified. +// * Two alarms with the same name have been specified. // -// The alarm configuration is enabled but the alarm list is empty. +// * The alarm configuration is enabled but the alarm list is empty. // // * AlarmsLimitExceededException // The maximum number of alarms for a deployment group (10) was exceeded. @@ -1058,8 +1058,8 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig // // Deletes a deployment configuration. // -// A deployment configuration cannot be deleted if it is currently in use. -// Predefined configurations cannot be deleted. +// A deployment configuration cannot be deleted if it is currently in use. Predefined +// configurations cannot be deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2981,15 +2981,15 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn // * InvalidAlarmConfigException // The format of the alarm configuration is invalid. Possible causes include: // -// The alarm list is null. +// * The alarm list is null. // -// The alarm object is null. +// * The alarm object is null. // -// The alarm name is empty or null or exceeds the 255 character limit. +// * The alarm name is empty or null or exceeds the 255 character limit. // -// Two alarms with the same name have been specified. +// * Two alarms with the same name have been specified. // -// The alarm configuration is enabled but the alarm list is empty. +// * The alarm configuration is enabled but the alarm list is empty. // // * AlarmsLimitExceededException // The maximum number of alarms for a deployment group (10) was exceeded. @@ -3049,6 +3049,18 @@ func (s *AddTagsToOnPremisesInstancesInput) Validate() error { return nil } +// SetInstanceNames sets the InstanceNames field's value. +func (s *AddTagsToOnPremisesInstancesInput) SetInstanceNames(v []*string) *AddTagsToOnPremisesInstancesInput { + s.InstanceNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToOnPremisesInstancesInput) SetTags(v []*Tag) *AddTagsToOnPremisesInstancesInput { + s.Tags = v + return s +} + type AddTagsToOnPremisesInstancesOutput struct { _ struct{} `type:"structure"` } @@ -3082,6 +3094,12 @@ func (s Alarm) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Alarm) SetName(v string) *Alarm { + s.Name = &v + return s +} + // Information about alarms associated with the deployment group. type AlarmConfiguration struct { _ struct{} `type:"structure"` @@ -3097,11 +3115,11 @@ type AlarmConfiguration struct { // state of alarms cannot be retrieved from Amazon CloudWatch. The default value // is false. // - // true: The deployment will proceed even if alarm status information can't - // be retrieved from Amazon CloudWatch. + // * true: The deployment will proceed even if alarm status information can't + // be retrieved from Amazon CloudWatch. // - // false: The deployment will stop if alarm status information can't be retrieved - // from Amazon CloudWatch. + // * false: The deployment will stop if alarm status information can't be + // retrieved from Amazon CloudWatch. IgnorePollAlarmFailure *bool `locationName:"ignorePollAlarmFailure" type:"boolean"` } @@ -3115,6 +3133,24 @@ func (s AlarmConfiguration) GoString() string { return s.String() } +// SetAlarms sets the Alarms field's value. +func (s *AlarmConfiguration) SetAlarms(v []*Alarm) *AlarmConfiguration { + s.Alarms = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *AlarmConfiguration) SetEnabled(v bool) *AlarmConfiguration { + s.Enabled = &v + return s +} + +// SetIgnorePollAlarmFailure sets the IgnorePollAlarmFailure field's value. +func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfiguration { + s.IgnorePollAlarmFailure = &v + return s +} + // Information about an application. type ApplicationInfo struct { _ struct{} `type:"structure"` @@ -3143,6 +3179,30 @@ func (s ApplicationInfo) GoString() string { return s.String() } +// SetApplicationId sets the ApplicationId field's value. +func (s *ApplicationInfo) SetApplicationId(v string) *ApplicationInfo { + s.ApplicationId = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *ApplicationInfo) SetApplicationName(v string) *ApplicationInfo { + s.ApplicationName = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *ApplicationInfo) SetCreateTime(v time.Time) *ApplicationInfo { + s.CreateTime = &v + return s +} + +// SetLinkedToGitHub sets the LinkedToGitHub field's value. +func (s *ApplicationInfo) SetLinkedToGitHub(v bool) *ApplicationInfo { + s.LinkedToGitHub = &v + return s +} + // Information about a configuration for automatically rolling back to a previous // version of an application revision when a deployment doesn't complete successfully. type AutoRollbackConfiguration struct { @@ -3166,6 +3226,18 @@ func (s AutoRollbackConfiguration) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *AutoRollbackConfiguration) SetEnabled(v bool) *AutoRollbackConfiguration { + s.Enabled = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *AutoRollbackConfiguration) SetEvents(v []*string) *AutoRollbackConfiguration { + s.Events = v + return s +} + // Information about an Auto Scaling group. type AutoScalingGroup struct { _ struct{} `type:"structure"` @@ -3187,6 +3259,18 @@ func (s AutoScalingGroup) GoString() string { return s.String() } +// SetHook sets the Hook field's value. +func (s *AutoScalingGroup) SetHook(v string) *AutoScalingGroup { + s.Hook = &v + return s +} + +// SetName sets the Name field's value. +func (s *AutoScalingGroup) SetName(v string) *AutoScalingGroup { + s.Name = &v + return s +} + // Represents the input of a batch get application revisions operation. type BatchGetApplicationRevisionsInput struct { _ struct{} `type:"structure"` @@ -3231,6 +3315,18 @@ func (s *BatchGetApplicationRevisionsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *BatchGetApplicationRevisionsInput) SetApplicationName(v string) *BatchGetApplicationRevisionsInput { + s.ApplicationName = &v + return s +} + +// SetRevisions sets the Revisions field's value. +func (s *BatchGetApplicationRevisionsInput) SetRevisions(v []*RevisionLocation) *BatchGetApplicationRevisionsInput { + s.Revisions = v + return s +} + // Represents the output of a batch get application revisions operation. type BatchGetApplicationRevisionsOutput struct { _ struct{} `type:"structure"` @@ -3255,6 +3351,24 @@ func (s BatchGetApplicationRevisionsOutput) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *BatchGetApplicationRevisionsOutput) SetApplicationName(v string) *BatchGetApplicationRevisionsOutput { + s.ApplicationName = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetApplicationRevisionsOutput) SetErrorMessage(v string) *BatchGetApplicationRevisionsOutput { + s.ErrorMessage = &v + return s +} + +// SetRevisions sets the Revisions field's value. +func (s *BatchGetApplicationRevisionsOutput) SetRevisions(v []*RevisionInfo) *BatchGetApplicationRevisionsOutput { + s.Revisions = v + return s +} + // Represents the input of a batch get applications operation. type BatchGetApplicationsInput struct { _ struct{} `type:"structure"` @@ -3273,6 +3387,12 @@ func (s BatchGetApplicationsInput) GoString() string { return s.String() } +// SetApplicationNames sets the ApplicationNames field's value. +func (s *BatchGetApplicationsInput) SetApplicationNames(v []*string) *BatchGetApplicationsInput { + s.ApplicationNames = v + return s +} + // Represents the output of a batch get applications operation. type BatchGetApplicationsOutput struct { _ struct{} `type:"structure"` @@ -3291,6 +3411,12 @@ func (s BatchGetApplicationsOutput) GoString() string { return s.String() } +// SetApplicationsInfo sets the ApplicationsInfo field's value. +func (s *BatchGetApplicationsOutput) SetApplicationsInfo(v []*ApplicationInfo) *BatchGetApplicationsOutput { + s.ApplicationsInfo = v + return s +} + // Represents the input of a batch get deployment groups operation. type BatchGetDeploymentGroupsInput struct { _ struct{} `type:"structure"` @@ -3336,6 +3462,18 @@ func (s *BatchGetDeploymentGroupsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *BatchGetDeploymentGroupsInput) SetApplicationName(v string) *BatchGetDeploymentGroupsInput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroupNames sets the DeploymentGroupNames field's value. +func (s *BatchGetDeploymentGroupsInput) SetDeploymentGroupNames(v []*string) *BatchGetDeploymentGroupsInput { + s.DeploymentGroupNames = v + return s +} + // Represents the output of a batch get deployment groups operation. type BatchGetDeploymentGroupsOutput struct { _ struct{} `type:"structure"` @@ -3357,6 +3495,18 @@ func (s BatchGetDeploymentGroupsOutput) GoString() string { return s.String() } +// SetDeploymentGroupsInfo sets the DeploymentGroupsInfo field's value. +func (s *BatchGetDeploymentGroupsOutput) SetDeploymentGroupsInfo(v []*DeploymentGroupInfo) *BatchGetDeploymentGroupsOutput { + s.DeploymentGroupsInfo = v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetDeploymentGroupsOutput) SetErrorMessage(v string) *BatchGetDeploymentGroupsOutput { + s.ErrorMessage = &v + return s +} + // Represents the input of a batch get deployment instances operation. type BatchGetDeploymentInstancesInput struct { _ struct{} `type:"structure"` @@ -3398,6 +3548,18 @@ func (s *BatchGetDeploymentInstancesInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *BatchGetDeploymentInstancesInput) SetDeploymentId(v string) *BatchGetDeploymentInstancesInput { + s.DeploymentId = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *BatchGetDeploymentInstancesInput) SetInstanceIds(v []*string) *BatchGetDeploymentInstancesInput { + s.InstanceIds = v + return s +} + // Represents the output of a batch get deployment instance operation. type BatchGetDeploymentInstancesOutput struct { _ struct{} `type:"structure"` @@ -3419,6 +3581,18 @@ func (s BatchGetDeploymentInstancesOutput) GoString() string { return s.String() } +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetDeploymentInstancesOutput) SetErrorMessage(v string) *BatchGetDeploymentInstancesOutput { + s.ErrorMessage = &v + return s +} + +// SetInstancesSummary sets the InstancesSummary field's value. +func (s *BatchGetDeploymentInstancesOutput) SetInstancesSummary(v []*InstanceSummary) *BatchGetDeploymentInstancesOutput { + s.InstancesSummary = v + return s +} + // Represents the input of a batch get deployments operation. type BatchGetDeploymentsInput struct { _ struct{} `type:"structure"` @@ -3437,6 +3611,12 @@ func (s BatchGetDeploymentsInput) GoString() string { return s.String() } +// SetDeploymentIds sets the DeploymentIds field's value. +func (s *BatchGetDeploymentsInput) SetDeploymentIds(v []*string) *BatchGetDeploymentsInput { + s.DeploymentIds = v + return s +} + // Represents the output of a batch get deployments operation. type BatchGetDeploymentsOutput struct { _ struct{} `type:"structure"` @@ -3455,6 +3635,12 @@ func (s BatchGetDeploymentsOutput) GoString() string { return s.String() } +// SetDeploymentsInfo sets the DeploymentsInfo field's value. +func (s *BatchGetDeploymentsOutput) SetDeploymentsInfo(v []*DeploymentInfo) *BatchGetDeploymentsOutput { + s.DeploymentsInfo = v + return s +} + // Represents the input of a batch get on-premises instances operation. type BatchGetOnPremisesInstancesInput struct { _ struct{} `type:"structure"` @@ -3473,6 +3659,12 @@ func (s BatchGetOnPremisesInstancesInput) GoString() string { return s.String() } +// SetInstanceNames sets the InstanceNames field's value. +func (s *BatchGetOnPremisesInstancesInput) SetInstanceNames(v []*string) *BatchGetOnPremisesInstancesInput { + s.InstanceNames = v + return s +} + // Represents the output of a batch get on-premises instances operation. type BatchGetOnPremisesInstancesOutput struct { _ struct{} `type:"structure"` @@ -3491,6 +3683,12 @@ func (s BatchGetOnPremisesInstancesOutput) GoString() string { return s.String() } +// SetInstanceInfos sets the InstanceInfos field's value. +func (s *BatchGetOnPremisesInstancesOutput) SetInstanceInfos(v []*InstanceInfo) *BatchGetOnPremisesInstancesOutput { + s.InstanceInfos = v + return s +} + // Represents the input of a create application operation. type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -3528,6 +3726,12 @@ func (s *CreateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateApplicationInput) SetApplicationName(v string) *CreateApplicationInput { + s.ApplicationName = &v + return s +} + // Represents the output of a create application operation. type CreateApplicationOutput struct { _ struct{} `type:"structure"` @@ -3546,6 +3750,12 @@ func (s CreateApplicationOutput) GoString() string { return s.String() } +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput { + s.ApplicationId = &v + return s +} + // Represents the input of a create deployment configuration operation. type CreateDeploymentConfigInput struct { _ struct{} `type:"structure"` @@ -3561,16 +3771,16 @@ type CreateDeploymentConfigInput struct { // // The type parameter takes either of the following values: // - // HOST_COUNT: The value parameter represents the minimum number of healthy - // instances as an absolute value. + // * HOST_COUNT: The value parameter represents the minimum number of healthy + // instances as an absolute value. // - // FLEET_PERCENT: The value parameter represents the minimum number of healthy - // instances as a percentage of the total number of instances in the deployment. - // If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy - // converts the percentage to the equivalent number of instance and rounds up - // fractional instances. + // * FLEET_PERCENT: The value parameter represents the minimum number of + // healthy instances as a percentage of the total number of instances in + // the deployment. If you specify FLEET_PERCENT, at the start of the deployment, + // AWS CodeDeploy converts the percentage to the equivalent number of instance + // and rounds up fractional instances. // - // The value parameter takes an integer. + // The value parameter takes an integer. // // For example, to set a minimum of 95% healthy instance, specify a type of // FLEET_PERCENT and a value of 95. @@ -3603,6 +3813,18 @@ func (s *CreateDeploymentConfigInput) Validate() error { return nil } +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *CreateDeploymentConfigInput) SetDeploymentConfigName(v string) *CreateDeploymentConfigInput { + s.DeploymentConfigName = &v + return s +} + +// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. +func (s *CreateDeploymentConfigInput) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *CreateDeploymentConfigInput { + s.MinimumHealthyHosts = v + return s +} + // Represents the output of a create deployment configuration operation. type CreateDeploymentConfigOutput struct { _ struct{} `type:"structure"` @@ -3621,6 +3843,12 @@ func (s CreateDeploymentConfigOutput) GoString() string { return s.String() } +// SetDeploymentConfigId sets the DeploymentConfigId field's value. +func (s *CreateDeploymentConfigOutput) SetDeploymentConfigId(v string) *CreateDeploymentConfigOutput { + s.DeploymentConfigId = &v + return s +} + // Represents the input of a create deployment group operation. type CreateDeploymentGroupInput struct { _ struct{} `type:"structure"` @@ -3647,53 +3875,53 @@ type CreateDeploymentGroupInput struct { // configuration that you create by calling the create deployment configuration // operation. // - // CodeDeployDefault.OneAtATime is the default deployment configuration. It + // CodeDeployDefault.OneAtATime is the default deployment configuration. It // is used if a configuration isn't specified for the deployment or the deployment // group. // - // The predefined deployment configurations include the following: + // The predefined deployment configurations include the following: // - // CodeDeployDefault.AllAtOnce attempts to deploy an application revision - // to as many instances as possible at once. The status of the overall deployment - // will be displayed as Succeeded if the application revision is deployed to - // one or more of the instances. The status of the overall deployment will be - // displayed as Failed if the application revision is not deployed to any of - // the instances. Using an example of nine instances, CodeDeployDefault.AllAtOnce - // will attempt to deploy to all nine instances at once. The overall deployment - // will succeed if deployment to even a single instance is successful; it will - // fail only if deployments to all nine instances fail. + // * CodeDeployDefault.AllAtOnce attempts to deploy an application revision + // to as many instances as possible at once. The status of the overall deployment + // will be displayed as Succeeded if the application revision is deployed + // to one or more of the instances. The status of the overall deployment + // will be displayed as Failed if the application revision is not deployed + // to any of the instances. Using an example of nine instances, CodeDeployDefault.AllAtOnce + // will attempt to deploy to all nine instances at once. The overall deployment + // will succeed if deployment to even a single instance is successful; it + // will fail only if deployments to all nine instances fail. // - // CodeDeployDefault.HalfAtATime deploys to up to half of the instances - // at a time (with fractions rounded down). The overall deployment succeeds - // if the application revision is deployed to at least half of the instances - // (with fractions rounded up); otherwise, the deployment fails. In the example - // of nine instances, it will deploy to up to four instances at a time. The - // overall deployment succeeds if deployment to five or more instances succeed; - // otherwise, the deployment fails. The deployment may be successfully deployed - // to some instances even if the overall deployment fails. + // * CodeDeployDefault.HalfAtATime deploys to up to half of the instances + // at a time (with fractions rounded down). The overall deployment succeeds + // if the application revision is deployed to at least half of the instances + // (with fractions rounded up); otherwise, the deployment fails. In the example + // of nine instances, it will deploy to up to four instances at a time. The + // overall deployment succeeds if deployment to five or more instances succeed; + // otherwise, the deployment fails. The deployment may be successfully deployed + // to some instances even if the overall deployment fails. // - // CodeDeployDefault.OneAtATime deploys the application revision to only - // one instance at a time. + // * CodeDeployDefault.OneAtATime deploys the application revision to only + // one instance at a time. // // For deployment groups that contain more than one instance: // - // The overall deployment succeeds if the application revision is deployed - // to all of the instances. The exception to this rule is if deployment to the - // last instance fails, the overall deployment still succeeds. This is because - // AWS CodeDeploy allows only one instance at a time to be taken offline with - // the CodeDeployDefault.OneAtATime configuration. + // The overall deployment succeeds if the application revision is deployed to + // all of the instances. The exception to this rule is if deployment to the + // last instance fails, the overall deployment still succeeds. This is because + // AWS CodeDeploy allows only one instance at a time to be taken offline + // with the CodeDeployDefault.OneAtATime configuration. // - // The overall deployment fails as soon as the application revision fails - // to be deployed to any but the last instance. The deployment may be successfully - // deployed to some instances even if the overall deployment fails. + // The overall deployment fails as soon as the application revision fails to + // be deployed to any but the last instance. The deployment may be successfully + // deployed to some instances even if the overall deployment fails. // - // In an example using nine instances, it will deploy to one instance at - // a time. The overall deployment succeeds if deployment to the first eight - // instances is successful; the overall deployment fails if deployment to any - // of the first eight instances fails. + // In an example using nine instances, it will deploy to one instance at a time. + // The overall deployment succeeds if deployment to the first eight instances + // is successful; the overall deployment fails if deployment to any of the + // first eight instances fails. // - // For deployment groups that contain only one instance, the overall deployment - // is successful only if deployment to the single instance is successful + // For deployment groups that contain only one instance, the overall deployment + // is successful only if deployment to the single instance is successful DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` // The name of a new deployment group for the specified application. @@ -3757,6 +3985,66 @@ func (s *CreateDeploymentGroupInput) Validate() error { return nil } +// SetAlarmConfiguration sets the AlarmConfiguration field's value. +func (s *CreateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *CreateDeploymentGroupInput { + s.AlarmConfiguration = v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateDeploymentGroupInput) SetApplicationName(v string) *CreateDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *CreateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentGroupInput { + s.AutoRollbackConfiguration = v + return s +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *CreateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *CreateDeploymentGroupInput { + s.AutoScalingGroups = v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *CreateDeploymentGroupInput) SetDeploymentConfigName(v string) *CreateDeploymentGroupInput { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *CreateDeploymentGroupInput) SetDeploymentGroupName(v string) *CreateDeploymentGroupInput { + s.DeploymentGroupName = &v + return s +} + +// SetEc2TagFilters sets the Ec2TagFilters field's value. +func (s *CreateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *CreateDeploymentGroupInput { + s.Ec2TagFilters = v + return s +} + +// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. +func (s *CreateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *CreateDeploymentGroupInput { + s.OnPremisesInstanceTagFilters = v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *CreateDeploymentGroupInput) SetServiceRoleArn(v string) *CreateDeploymentGroupInput { + s.ServiceRoleArn = &v + return s +} + +// SetTriggerConfigurations sets the TriggerConfigurations field's value. +func (s *CreateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *CreateDeploymentGroupInput { + s.TriggerConfigurations = v + return s +} + // Represents the output of a create deployment group operation. type CreateDeploymentGroupOutput struct { _ struct{} `type:"structure"` @@ -3775,6 +4063,12 @@ func (s CreateDeploymentGroupOutput) GoString() string { return s.String() } +// SetDeploymentGroupId sets the DeploymentGroupId field's value. +func (s *CreateDeploymentGroupOutput) SetDeploymentGroupId(v string) *CreateDeploymentGroupOutput { + s.DeploymentGroupId = &v + return s +} + // Represents the input of a create deployment operation. type CreateDeploymentInput struct { _ struct{} `type:"structure"` @@ -3854,6 +4148,54 @@ func (s *CreateDeploymentInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateDeploymentInput) SetApplicationName(v string) *CreateDeploymentInput { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *CreateDeploymentInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentInput { + s.AutoRollbackConfiguration = v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *CreateDeploymentInput) SetDeploymentConfigName(v string) *CreateDeploymentInput { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *CreateDeploymentInput) SetDeploymentGroupName(v string) *CreateDeploymentInput { + s.DeploymentGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDeploymentInput) SetDescription(v string) *CreateDeploymentInput { + s.Description = &v + return s +} + +// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. +func (s *CreateDeploymentInput) SetIgnoreApplicationStopFailures(v bool) *CreateDeploymentInput { + s.IgnoreApplicationStopFailures = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *CreateDeploymentInput) SetRevision(v *RevisionLocation) *CreateDeploymentInput { + s.Revision = v + return s +} + +// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. +func (s *CreateDeploymentInput) SetUpdateOutdatedInstancesOnly(v bool) *CreateDeploymentInput { + s.UpdateOutdatedInstancesOnly = &v + return s +} + // Represents the output of a create deployment operation. type CreateDeploymentOutput struct { _ struct{} `type:"structure"` @@ -3872,6 +4214,12 @@ func (s CreateDeploymentOutput) GoString() string { return s.String() } +// SetDeploymentId sets the DeploymentId field's value. +func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput { + s.DeploymentId = &v + return s +} + // Represents the input of a delete application operation. type DeleteApplicationInput struct { _ struct{} `type:"structure"` @@ -3909,6 +4257,12 @@ func (s *DeleteApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationInput) SetApplicationName(v string) *DeleteApplicationInput { + s.ApplicationName = &v + return s +} + type DeleteApplicationOutput struct { _ struct{} `type:"structure"` } @@ -3960,6 +4314,12 @@ func (s *DeleteDeploymentConfigInput) Validate() error { return nil } +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeleteDeploymentConfigInput) SetDeploymentConfigName(v string) *DeleteDeploymentConfigInput { + s.DeploymentConfigName = &v + return s +} + type DeleteDeploymentConfigOutput struct { _ struct{} `type:"structure"` } @@ -4022,6 +4382,18 @@ func (s *DeleteDeploymentGroupInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteDeploymentGroupInput) SetApplicationName(v string) *DeleteDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *DeleteDeploymentGroupInput) SetDeploymentGroupName(v string) *DeleteDeploymentGroupInput { + s.DeploymentGroupName = &v + return s +} + // Represents the output of a delete deployment group operation. type DeleteDeploymentGroupOutput struct { _ struct{} `type:"structure"` @@ -4045,6 +4417,12 @@ func (s DeleteDeploymentGroupOutput) GoString() string { return s.String() } +// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value. +func (s *DeleteDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *DeleteDeploymentGroupOutput { + s.HooksNotCleanedUp = v + return s +} + // Information about a deployment configuration. type DeploymentConfigInfo struct { _ struct{} `type:"structure"` @@ -4072,6 +4450,30 @@ func (s DeploymentConfigInfo) GoString() string { return s.String() } +// SetCreateTime sets the CreateTime field's value. +func (s *DeploymentConfigInfo) SetCreateTime(v time.Time) *DeploymentConfigInfo { + s.CreateTime = &v + return s +} + +// SetDeploymentConfigId sets the DeploymentConfigId field's value. +func (s *DeploymentConfigInfo) SetDeploymentConfigId(v string) *DeploymentConfigInfo { + s.DeploymentConfigId = &v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentConfigInfo) SetDeploymentConfigName(v string) *DeploymentConfigInfo { + s.DeploymentConfigName = &v + return s +} + +// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. +func (s *DeploymentConfigInfo) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *DeploymentConfigInfo { + s.MinimumHealthyHosts = v + return s +} + // Information about a deployment group. type DeploymentGroupInfo struct { _ struct{} `type:"structure"` @@ -4125,6 +4527,78 @@ func (s DeploymentGroupInfo) GoString() string { return s.String() } +// SetAlarmConfiguration sets the AlarmConfiguration field's value. +func (s *DeploymentGroupInfo) SetAlarmConfiguration(v *AlarmConfiguration) *DeploymentGroupInfo { + s.AlarmConfiguration = v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeploymentGroupInfo) SetApplicationName(v string) *DeploymentGroupInfo { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *DeploymentGroupInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentGroupInfo { + s.AutoRollbackConfiguration = v + return s +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *DeploymentGroupInfo) SetAutoScalingGroups(v []*AutoScalingGroup) *DeploymentGroupInfo { + s.AutoScalingGroups = v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentGroupInfo) SetDeploymentConfigName(v string) *DeploymentGroupInfo { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupId sets the DeploymentGroupId field's value. +func (s *DeploymentGroupInfo) SetDeploymentGroupId(v string) *DeploymentGroupInfo { + s.DeploymentGroupId = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *DeploymentGroupInfo) SetDeploymentGroupName(v string) *DeploymentGroupInfo { + s.DeploymentGroupName = &v + return s +} + +// SetEc2TagFilters sets the Ec2TagFilters field's value. +func (s *DeploymentGroupInfo) SetEc2TagFilters(v []*EC2TagFilter) *DeploymentGroupInfo { + s.Ec2TagFilters = v + return s +} + +// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. +func (s *DeploymentGroupInfo) SetOnPremisesInstanceTagFilters(v []*TagFilter) *DeploymentGroupInfo { + s.OnPremisesInstanceTagFilters = v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *DeploymentGroupInfo) SetServiceRoleArn(v string) *DeploymentGroupInfo { + s.ServiceRoleArn = &v + return s +} + +// SetTargetRevision sets the TargetRevision field's value. +func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo { + s.TargetRevision = v + return s +} + +// SetTriggerConfigurations sets the TriggerConfigurations field's value. +func (s *DeploymentGroupInfo) SetTriggerConfigurations(v []*TriggerConfig) *DeploymentGroupInfo { + s.TriggerConfigurations = v + return s +} + // Information about a deployment. type DeploymentInfo struct { _ struct{} `type:"structure"` @@ -4144,11 +4618,11 @@ type DeploymentInfo struct { // The means by which the deployment was created: // - // user: A user created the deployment. + // * user: A user created the deployment. // - // autoscaling: Auto Scaling created the deployment. + // * autoscaling: Auto Scaling created the deployment. // - // codeDeployRollback: A rollback process created the deployment. + // * codeDeployRollback: A rollback process created the deployment. Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"` // The deployment configuration name. @@ -4213,6 +4687,108 @@ func (s DeploymentInfo) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeploymentInfo) SetApplicationName(v string) *DeploymentInfo { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *DeploymentInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentInfo { + s.AutoRollbackConfiguration = v + return s +} + +// SetCompleteTime sets the CompleteTime field's value. +func (s *DeploymentInfo) SetCompleteTime(v time.Time) *DeploymentInfo { + s.CompleteTime = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *DeploymentInfo) SetCreateTime(v time.Time) *DeploymentInfo { + s.CreateTime = &v + return s +} + +// SetCreator sets the Creator field's value. +func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo { + s.Creator = &v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentInfo) SetDeploymentConfigName(v string) *DeploymentInfo { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *DeploymentInfo) SetDeploymentGroupName(v string) *DeploymentInfo { + s.DeploymentGroupName = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *DeploymentInfo) SetDeploymentId(v string) *DeploymentInfo { + s.DeploymentId = &v + return s +} + +// SetDeploymentOverview sets the DeploymentOverview field's value. +func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo { + s.DeploymentOverview = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DeploymentInfo) SetDescription(v string) *DeploymentInfo { + s.Description = &v + return s +} + +// SetErrorInformation sets the ErrorInformation field's value. +func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo { + s.ErrorInformation = v + return s +} + +// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. +func (s *DeploymentInfo) SetIgnoreApplicationStopFailures(v bool) *DeploymentInfo { + s.IgnoreApplicationStopFailures = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *DeploymentInfo) SetRevision(v *RevisionLocation) *DeploymentInfo { + s.Revision = v + return s +} + +// SetRollbackInfo sets the RollbackInfo field's value. +func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo { + s.RollbackInfo = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DeploymentInfo) SetStartTime(v time.Time) *DeploymentInfo { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentInfo) SetStatus(v string) *DeploymentInfo { + s.Status = &v + return s +} + +// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. +func (s *DeploymentInfo) SetUpdateOutdatedInstancesOnly(v bool) *DeploymentInfo { + s.UpdateOutdatedInstancesOnly = &v + return s +} + // Information about the deployment status of the instances in the deployment. type DeploymentOverview struct { _ struct{} `type:"structure"` @@ -4244,6 +4820,36 @@ func (s DeploymentOverview) GoString() string { return s.String() } +// SetFailed sets the Failed field's value. +func (s *DeploymentOverview) SetFailed(v int64) *DeploymentOverview { + s.Failed = &v + return s +} + +// SetInProgress sets the InProgress field's value. +func (s *DeploymentOverview) SetInProgress(v int64) *DeploymentOverview { + s.InProgress = &v + return s +} + +// SetPending sets the Pending field's value. +func (s *DeploymentOverview) SetPending(v int64) *DeploymentOverview { + s.Pending = &v + return s +} + +// SetSkipped sets the Skipped field's value. +func (s *DeploymentOverview) SetSkipped(v int64) *DeploymentOverview { + s.Skipped = &v + return s +} + +// SetSucceeded sets the Succeeded field's value. +func (s *DeploymentOverview) SetSucceeded(v int64) *DeploymentOverview { + s.Succeeded = &v + return s +} + // Represents the input of a deregister on-premises instance operation. type DeregisterOnPremisesInstanceInput struct { _ struct{} `type:"structure"` @@ -4277,6 +4883,12 @@ func (s *DeregisterOnPremisesInstanceInput) Validate() error { return nil } +// SetInstanceName sets the InstanceName field's value. +func (s *DeregisterOnPremisesInstanceInput) SetInstanceName(v string) *DeregisterOnPremisesInstanceInput { + s.InstanceName = &v + return s +} + type DeregisterOnPremisesInstanceOutput struct { _ struct{} `type:"structure"` } @@ -4297,19 +4909,19 @@ type Diagnostics struct { // The associated error code: // - // Success: The specified script ran. + // * Success: The specified script ran. // - // ScriptMissing: The specified script was not found in the specified location. + // * ScriptMissing: The specified script was not found in the specified location. // - // ScriptNotExecutable: The specified script is not a recognized executable - // file type. + // * ScriptNotExecutable: The specified script is not a recognized executable + // file type. // - // ScriptTimedOut: The specified script did not finish running in the specified - // time period. + // * ScriptTimedOut: The specified script did not finish running in the specified + // time period. // - // ScriptFailed: The specified script failed to run as expected. + // * ScriptFailed: The specified script failed to run as expected. // - // UnknownError: The specified script did not run for an unknown reason. + // * UnknownError: The specified script did not run for an unknown reason. ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"` // The last portion of the diagnostic log. @@ -4335,6 +4947,30 @@ func (s Diagnostics) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *Diagnostics) SetErrorCode(v string) *Diagnostics { + s.ErrorCode = &v + return s +} + +// SetLogTail sets the LogTail field's value. +func (s *Diagnostics) SetLogTail(v string) *Diagnostics { + s.LogTail = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Diagnostics) SetMessage(v string) *Diagnostics { + s.Message = &v + return s +} + +// SetScriptName sets the ScriptName field's value. +func (s *Diagnostics) SetScriptName(v string) *Diagnostics { + s.ScriptName = &v + return s +} + // Information about a tag filter. type EC2TagFilter struct { _ struct{} `type:"structure"` @@ -4344,11 +4980,11 @@ type EC2TagFilter struct { // The tag filter type: // - // KEY_ONLY: Key only. + // * KEY_ONLY: Key only. // - // VALUE_ONLY: Value only. + // * VALUE_ONLY: Value only. // - // KEY_AND_VALUE: Key and value. + // * KEY_AND_VALUE: Key and value. Type *string `type:"string" enum:"EC2TagFilterType"` // The tag filter value. @@ -4365,47 +5001,65 @@ func (s EC2TagFilter) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *EC2TagFilter) SetKey(v string) *EC2TagFilter { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *EC2TagFilter) SetType(v string) *EC2TagFilter { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *EC2TagFilter) SetValue(v string) *EC2TagFilter { + s.Value = &v + return s +} + // Information about a deployment error. type ErrorInformation struct { _ struct{} `type:"structure"` // The error code: // - // APPLICATION_MISSING: The application was missing. This error code will - // most likely be raised if the application is deleted after the deployment - // is created but before it is started. + // * APPLICATION_MISSING: The application was missing. This error code will + // most likely be raised if the application is deleted after the deployment + // is created but before it is started. // - // DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error - // code will most likely be raised if the deployment group is deleted after - // the deployment is created but before it is started. + // * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error + // code will most likely be raised if the deployment group is deleted after + // the deployment is created but before it is started. // - // HEALTH_CONSTRAINTS: The deployment failed on too many instances to be - // successfully deployed within the instance health constraints specified. + // * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be + // successfully deployed within the instance health constraints specified. // - // HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed - // within the instance health constraints specified. + // * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed + // within the instance health constraints specified. // - // IAM_ROLE_MISSING: The service role cannot be accessed. + // * IAM_ROLE_MISSING: The service role cannot be accessed. // - // IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. + // * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. // - // INTERNAL_ERROR: There was an internal error. + // * INTERNAL_ERROR: There was an internal error. // - // NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon - // EC2 service. + // * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon + // EC2 service. // - // NO_INSTANCES: No instance were specified, or no instance can be found. + // * NO_INSTANCES: No instance were specified, or no instance can be found. // - // OVER_MAX_INSTANCES: The maximum number of instance was exceeded. + // * OVER_MAX_INSTANCES: The maximum number of instance was exceeded. // - // THROTTLED: The operation was throttled because the calling account exceeded - // the throttling limits of one or more AWS services. + // * THROTTLED: The operation was throttled because the calling account exceeded + // the throttling limits of one or more AWS services. // - // TIMEOUT: The deployment has timed out. + // * TIMEOUT: The deployment has timed out. // - // REVISION_MISSING: The revision ID was missing. This error code will most - // likely be raised if the revision is deleted after the deployment is created - // but before it is started. + // * REVISION_MISSING: The revision ID was missing. This error code will + // most likely be raised if the revision is deleted after the deployment + // is created but before it is started. Code *string `locationName:"code" type:"string" enum:"ErrorCode"` // An accompanying error message. @@ -4422,6 +5076,18 @@ func (s ErrorInformation) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *ErrorInformation) SetCode(v string) *ErrorInformation { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ErrorInformation) SetMessage(v string) *ErrorInformation { + s.Message = &v + return s +} + // Information about an application revision. type GenericRevisionInfo struct { _ struct{} `type:"structure"` @@ -4452,6 +5118,36 @@ func (s GenericRevisionInfo) GoString() string { return s.String() } +// SetDeploymentGroups sets the DeploymentGroups field's value. +func (s *GenericRevisionInfo) SetDeploymentGroups(v []*string) *GenericRevisionInfo { + s.DeploymentGroups = v + return s +} + +// SetDescription sets the Description field's value. +func (s *GenericRevisionInfo) SetDescription(v string) *GenericRevisionInfo { + s.Description = &v + return s +} + +// SetFirstUsedTime sets the FirstUsedTime field's value. +func (s *GenericRevisionInfo) SetFirstUsedTime(v time.Time) *GenericRevisionInfo { + s.FirstUsedTime = &v + return s +} + +// SetLastUsedTime sets the LastUsedTime field's value. +func (s *GenericRevisionInfo) SetLastUsedTime(v time.Time) *GenericRevisionInfo { + s.LastUsedTime = &v + return s +} + +// SetRegisterTime sets the RegisterTime field's value. +func (s *GenericRevisionInfo) SetRegisterTime(v time.Time) *GenericRevisionInfo { + s.RegisterTime = &v + return s +} + // Represents the input of a get application operation. type GetApplicationInput struct { _ struct{} `type:"structure"` @@ -4489,6 +5185,12 @@ func (s *GetApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationInput) SetApplicationName(v string) *GetApplicationInput { + s.ApplicationName = &v + return s +} + // Represents the output of a get application operation. type GetApplicationOutput struct { _ struct{} `type:"structure"` @@ -4507,6 +5209,12 @@ func (s GetApplicationOutput) GoString() string { return s.String() } +// SetApplication sets the Application field's value. +func (s *GetApplicationOutput) SetApplication(v *ApplicationInfo) *GetApplicationOutput { + s.Application = v + return s +} + // Represents the input of a get application revision operation. type GetApplicationRevisionInput struct { _ struct{} `type:"structure"` @@ -4551,6 +5259,18 @@ func (s *GetApplicationRevisionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationRevisionInput) SetApplicationName(v string) *GetApplicationRevisionInput { + s.ApplicationName = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *GetApplicationRevisionInput) SetRevision(v *RevisionLocation) *GetApplicationRevisionInput { + s.Revision = v + return s +} + // Represents the output of a get application revision operation. type GetApplicationRevisionOutput struct { _ struct{} `type:"structure"` @@ -4575,6 +5295,24 @@ func (s GetApplicationRevisionOutput) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationRevisionOutput) SetApplicationName(v string) *GetApplicationRevisionOutput { + s.ApplicationName = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *GetApplicationRevisionOutput) SetRevision(v *RevisionLocation) *GetApplicationRevisionOutput { + s.Revision = v + return s +} + +// SetRevisionInfo sets the RevisionInfo field's value. +func (s *GetApplicationRevisionOutput) SetRevisionInfo(v *GenericRevisionInfo) *GetApplicationRevisionOutput { + s.RevisionInfo = v + return s +} + // Represents the input of a get deployment configuration operation. type GetDeploymentConfigInput struct { _ struct{} `type:"structure"` @@ -4612,6 +5350,12 @@ func (s *GetDeploymentConfigInput) Validate() error { return nil } +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *GetDeploymentConfigInput) SetDeploymentConfigName(v string) *GetDeploymentConfigInput { + s.DeploymentConfigName = &v + return s +} + // Represents the output of a get deployment configuration operation. type GetDeploymentConfigOutput struct { _ struct{} `type:"structure"` @@ -4630,6 +5374,12 @@ func (s GetDeploymentConfigOutput) GoString() string { return s.String() } +// SetDeploymentConfigInfo sets the DeploymentConfigInfo field's value. +func (s *GetDeploymentConfigOutput) SetDeploymentConfigInfo(v *DeploymentConfigInfo) *GetDeploymentConfigOutput { + s.DeploymentConfigInfo = v + return s +} + // Represents the input of a get deployment group operation. type GetDeploymentGroupInput struct { _ struct{} `type:"structure"` @@ -4678,6 +5428,18 @@ func (s *GetDeploymentGroupInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *GetDeploymentGroupInput) SetApplicationName(v string) *GetDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *GetDeploymentGroupInput) SetDeploymentGroupName(v string) *GetDeploymentGroupInput { + s.DeploymentGroupName = &v + return s +} + // Represents the output of a get deployment group operation. type GetDeploymentGroupOutput struct { _ struct{} `type:"structure"` @@ -4696,6 +5458,12 @@ func (s GetDeploymentGroupOutput) GoString() string { return s.String() } +// SetDeploymentGroupInfo sets the DeploymentGroupInfo field's value. +func (s *GetDeploymentGroupOutput) SetDeploymentGroupInfo(v *DeploymentGroupInfo) *GetDeploymentGroupOutput { + s.DeploymentGroupInfo = v + return s +} + // Represents the input of a get deployment operation. type GetDeploymentInput struct { _ struct{} `type:"structure"` @@ -4729,6 +5497,12 @@ func (s *GetDeploymentInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { + s.DeploymentId = &v + return s +} + // Represents the input of a get deployment instance operation. type GetDeploymentInstanceInput struct { _ struct{} `type:"structure"` @@ -4770,6 +5544,18 @@ func (s *GetDeploymentInstanceInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInstanceInput) SetDeploymentId(v string) *GetDeploymentInstanceInput { + s.DeploymentId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetDeploymentInstanceInput) SetInstanceId(v string) *GetDeploymentInstanceInput { + s.InstanceId = &v + return s +} + // Represents the output of a get deployment instance operation. type GetDeploymentInstanceOutput struct { _ struct{} `type:"structure"` @@ -4788,6 +5574,12 @@ func (s GetDeploymentInstanceOutput) GoString() string { return s.String() } +// SetInstanceSummary sets the InstanceSummary field's value. +func (s *GetDeploymentInstanceOutput) SetInstanceSummary(v *InstanceSummary) *GetDeploymentInstanceOutput { + s.InstanceSummary = v + return s +} + // Represents the output of a get deployment operation. type GetDeploymentOutput struct { _ struct{} `type:"structure"` @@ -4806,6 +5598,12 @@ func (s GetDeploymentOutput) GoString() string { return s.String() } +// SetDeploymentInfo sets the DeploymentInfo field's value. +func (s *GetDeploymentOutput) SetDeploymentInfo(v *DeploymentInfo) *GetDeploymentOutput { + s.DeploymentInfo = v + return s +} + // Represents the input of a get on-premises instance operation. type GetOnPremisesInstanceInput struct { _ struct{} `type:"structure"` @@ -4839,6 +5637,12 @@ func (s *GetOnPremisesInstanceInput) Validate() error { return nil } +// SetInstanceName sets the InstanceName field's value. +func (s *GetOnPremisesInstanceInput) SetInstanceName(v string) *GetOnPremisesInstanceInput { + s.InstanceName = &v + return s +} + // Represents the output of a get on-premises instance operation. type GetOnPremisesInstanceOutput struct { _ struct{} `type:"structure"` @@ -4857,6 +5661,12 @@ func (s GetOnPremisesInstanceOutput) GoString() string { return s.String() } +// SetInstanceInfo sets the InstanceInfo field's value. +func (s *GetOnPremisesInstanceOutput) SetInstanceInfo(v *InstanceInfo) *GetOnPremisesInstanceOutput { + s.InstanceInfo = v + return s +} + // Information about the location of application artifacts stored in GitHub. type GitHubLocation struct { _ struct{} `type:"structure"` @@ -4882,6 +5692,18 @@ func (s GitHubLocation) GoString() string { return s.String() } +// SetCommitId sets the CommitId field's value. +func (s *GitHubLocation) SetCommitId(v string) *GitHubLocation { + s.CommitId = &v + return s +} + +// SetRepository sets the Repository field's value. +func (s *GitHubLocation) SetRepository(v string) *GitHubLocation { + s.Repository = &v + return s +} + // Information about an on-premises instance. type InstanceInfo struct { _ struct{} `type:"structure"` @@ -4916,6 +5738,42 @@ func (s InstanceInfo) GoString() string { return s.String() } +// SetDeregisterTime sets the DeregisterTime field's value. +func (s *InstanceInfo) SetDeregisterTime(v time.Time) *InstanceInfo { + s.DeregisterTime = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *InstanceInfo) SetIamUserArn(v string) *InstanceInfo { + s.IamUserArn = &v + return s +} + +// SetInstanceArn sets the InstanceArn field's value. +func (s *InstanceInfo) SetInstanceArn(v string) *InstanceInfo { + s.InstanceArn = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *InstanceInfo) SetInstanceName(v string) *InstanceInfo { + s.InstanceName = &v + return s +} + +// SetRegisterTime sets the RegisterTime field's value. +func (s *InstanceInfo) SetRegisterTime(v time.Time) *InstanceInfo { + s.RegisterTime = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo { + s.Tags = v + return s +} + // Information about an instance in a deployment. type InstanceSummary struct { _ struct{} `type:"structure"` @@ -4934,17 +5792,17 @@ type InstanceSummary struct { // The deployment status for this instance: // - // Pending: The deployment is pending for this instance. + // * Pending: The deployment is pending for this instance. // - // In Progress: The deployment is in progress for this instance. + // * In Progress: The deployment is in progress for this instance. // - // Succeeded: The deployment has succeeded for this instance. + // * Succeeded: The deployment has succeeded for this instance. // - // Failed: The deployment has failed for this instance. + // * Failed: The deployment has failed for this instance. // - // Skipped: The deployment has been skipped for this instance. + // * Skipped: The deployment has been skipped for this instance. // - // Unknown: The deployment status is unknown for this instance. + // * Unknown: The deployment status is unknown for this instance. Status *string `locationName:"status" type:"string" enum:"InstanceStatus"` } @@ -4958,6 +5816,36 @@ func (s InstanceSummary) GoString() string { return s.String() } +// SetDeploymentId sets the DeploymentId field's value. +func (s *InstanceSummary) SetDeploymentId(v string) *InstanceSummary { + s.DeploymentId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceSummary) SetInstanceId(v string) *InstanceSummary { + s.InstanceId = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *InstanceSummary) SetLastUpdatedAt(v time.Time) *InstanceSummary { + s.LastUpdatedAt = &v + return s +} + +// SetLifecycleEvents sets the LifecycleEvents field's value. +func (s *InstanceSummary) SetLifecycleEvents(v []*LifecycleEvent) *InstanceSummary { + s.LifecycleEvents = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceSummary) SetStatus(v string) *InstanceSummary { + s.Status = &v + return s +} + // Information about a deployment lifecycle event. type LifecycleEvent struct { _ struct{} `type:"structure"` @@ -4977,17 +5865,17 @@ type LifecycleEvent struct { // The deployment lifecycle event status: // - // Pending: The deployment lifecycle event is pending. + // * Pending: The deployment lifecycle event is pending. // - // InProgress: The deployment lifecycle event is in progress. + // * InProgress: The deployment lifecycle event is in progress. // - // Succeeded: The deployment lifecycle event ran successfully. + // * Succeeded: The deployment lifecycle event ran successfully. // - // Failed: The deployment lifecycle event has failed. + // * Failed: The deployment lifecycle event has failed. // - // Skipped: The deployment lifecycle event has been skipped. + // * Skipped: The deployment lifecycle event has been skipped. // - // Unknown: The deployment lifecycle event is unknown. + // * Unknown: The deployment lifecycle event is unknown. Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"` } @@ -5001,6 +5889,36 @@ func (s LifecycleEvent) GoString() string { return s.String() } +// SetDiagnostics sets the Diagnostics field's value. +func (s *LifecycleEvent) SetDiagnostics(v *Diagnostics) *LifecycleEvent { + s.Diagnostics = v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *LifecycleEvent) SetEndTime(v time.Time) *LifecycleEvent { + s.EndTime = &v + return s +} + +// SetLifecycleEventName sets the LifecycleEventName field's value. +func (s *LifecycleEvent) SetLifecycleEventName(v string) *LifecycleEvent { + s.LifecycleEventName = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *LifecycleEvent) SetStartTime(v time.Time) *LifecycleEvent { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *LifecycleEvent) SetStatus(v string) *LifecycleEvent { + s.Status = &v + return s +} + // Represents the input of a list application revisions operation. type ListApplicationRevisionsInput struct { _ struct{} `type:"structure"` @@ -5014,12 +5932,12 @@ type ListApplicationRevisionsInput struct { // Whether to list revisions based on whether the revision is the target revision // of an deployment group: // - // include: List revisions that are target revisions of a deployment group. + // * include: List revisions that are target revisions of a deployment group. // - // exclude: Do not list revisions that are target revisions of a deployment - // group. + // * exclude: Do not list revisions that are target revisions of a deployment + // group. // - // ignore: List all revisions. + // * ignore: List all revisions. Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"` // An identifier returned from the previous list application revisions call. @@ -5036,24 +5954,24 @@ type ListApplicationRevisionsInput struct { // The column name to use to sort the list results: // - // registerTime: Sort by the time the revisions were registered with AWS - // CodeDeploy. + // * registerTime: Sort by the time the revisions were registered with AWS + // CodeDeploy. // - // firstUsedTime: Sort by the time the revisions were first used in a deployment. + // * firstUsedTime: Sort by the time the revisions were first used in a deployment. // - // lastUsedTime: Sort by the time the revisions were last used in a deployment. + // * lastUsedTime: Sort by the time the revisions were last used in a deployment. // - // If not specified or set to null, the results will be returned in an arbitrary + // If not specified or set to null, the results will be returned in an arbitrary // order. SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"` // The order in which to sort the list results: // - // ascending: ascending order. + // * ascending: ascending order. // - // descending: descending order. + // * descending: descending order. // - // If not specified, the results will be sorted in ascending order. + // If not specified, the results will be sorted in ascending order. // // If set to null, the results will be sorted in an arbitrary order. SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"` @@ -5085,6 +6003,48 @@ func (s *ListApplicationRevisionsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ListApplicationRevisionsInput) SetApplicationName(v string) *ListApplicationRevisionsInput { + s.ApplicationName = &v + return s +} + +// SetDeployed sets the Deployed field's value. +func (s *ListApplicationRevisionsInput) SetDeployed(v string) *ListApplicationRevisionsInput { + s.Deployed = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationRevisionsInput) SetNextToken(v string) *ListApplicationRevisionsInput { + s.NextToken = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *ListApplicationRevisionsInput) SetS3Bucket(v string) *ListApplicationRevisionsInput { + s.S3Bucket = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *ListApplicationRevisionsInput) SetS3KeyPrefix(v string) *ListApplicationRevisionsInput { + s.S3KeyPrefix = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListApplicationRevisionsInput) SetSortBy(v string) *ListApplicationRevisionsInput { + s.SortBy = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *ListApplicationRevisionsInput) SetSortOrder(v string) *ListApplicationRevisionsInput { + s.SortOrder = &v + return s +} + // Represents the output of a list application revisions operation. type ListApplicationRevisionsOutput struct { _ struct{} `type:"structure"` @@ -5108,6 +6068,18 @@ func (s ListApplicationRevisionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationRevisionsOutput) SetNextToken(v string) *ListApplicationRevisionsOutput { + s.NextToken = &v + return s +} + +// SetRevisions sets the Revisions field's value. +func (s *ListApplicationRevisionsOutput) SetRevisions(v []*RevisionLocation) *ListApplicationRevisionsOutput { + s.Revisions = v + return s +} + // Represents the input of a list applications operation. type ListApplicationsInput struct { _ struct{} `type:"structure"` @@ -5127,6 +6099,12 @@ func (s ListApplicationsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { + s.NextToken = &v + return s +} + // Represents the output of a list applications operation. type ListApplicationsOutput struct { _ struct{} `type:"structure"` @@ -5150,6 +6128,18 @@ func (s ListApplicationsOutput) GoString() string { return s.String() } +// SetApplications sets the Applications field's value. +func (s *ListApplicationsOutput) SetApplications(v []*string) *ListApplicationsOutput { + s.Applications = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput { + s.NextToken = &v + return s +} + // Represents the input of a list deployment configurations operation. type ListDeploymentConfigsInput struct { _ struct{} `type:"structure"` @@ -5170,6 +6160,12 @@ func (s ListDeploymentConfigsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentConfigsInput) SetNextToken(v string) *ListDeploymentConfigsInput { + s.NextToken = &v + return s +} + // Represents the output of a list deployment configurations operation. type ListDeploymentConfigsOutput struct { _ struct{} `type:"structure"` @@ -5194,6 +6190,18 @@ func (s ListDeploymentConfigsOutput) GoString() string { return s.String() } +// SetDeploymentConfigsList sets the DeploymentConfigsList field's value. +func (s *ListDeploymentConfigsOutput) SetDeploymentConfigsList(v []*string) *ListDeploymentConfigsOutput { + s.DeploymentConfigsList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentConfigsOutput) SetNextToken(v string) *ListDeploymentConfigsOutput { + s.NextToken = &v + return s +} + // Represents the input of a list deployment groups operation. type ListDeploymentGroupsInput struct { _ struct{} `type:"structure"` @@ -5235,6 +6243,18 @@ func (s *ListDeploymentGroupsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ListDeploymentGroupsInput) SetApplicationName(v string) *ListDeploymentGroupsInput { + s.ApplicationName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentGroupsInput) SetNextToken(v string) *ListDeploymentGroupsInput { + s.NextToken = &v + return s +} + // Represents the output of a list deployment groups operation. type ListDeploymentGroupsOutput struct { _ struct{} `type:"structure"` @@ -5261,6 +6281,24 @@ func (s ListDeploymentGroupsOutput) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *ListDeploymentGroupsOutput) SetApplicationName(v string) *ListDeploymentGroupsOutput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroups sets the DeploymentGroups field's value. +func (s *ListDeploymentGroupsOutput) SetDeploymentGroups(v []*string) *ListDeploymentGroupsOutput { + s.DeploymentGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentGroupsOutput) SetNextToken(v string) *ListDeploymentGroupsOutput { + s.NextToken = &v + return s +} + // Represents the input of a list deployment instances operation. type ListDeploymentInstancesInput struct { _ struct{} `type:"structure"` @@ -5272,17 +6310,17 @@ type ListDeploymentInstancesInput struct { // A subset of instances to list by status: // - // Pending: Include those instance with pending deployments. + // * Pending: Include those instance with pending deployments. // - // InProgress: Include those instance where deployments are still in progress. + // * InProgress: Include those instance where deployments are still in progress. // - // Succeeded: Include those instances with successful deployments. + // * Succeeded: Include those instances with successful deployments. // - // Failed: Include those instance with failed deployments. + // * Failed: Include those instance with failed deployments. // - // Skipped: Include those instance with skipped deployments. + // * Skipped: Include those instance with skipped deployments. // - // Unknown: Include those instance with deployments in an unknown state. + // * Unknown: Include those instance with deployments in an unknown state. InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"` // An identifier returned from the previous list deployment instances call. @@ -5313,6 +6351,24 @@ func (s *ListDeploymentInstancesInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *ListDeploymentInstancesInput) SetDeploymentId(v string) *ListDeploymentInstancesInput { + s.DeploymentId = &v + return s +} + +// SetInstanceStatusFilter sets the InstanceStatusFilter field's value. +func (s *ListDeploymentInstancesInput) SetInstanceStatusFilter(v []*string) *ListDeploymentInstancesInput { + s.InstanceStatusFilter = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentInstancesInput) SetNextToken(v string) *ListDeploymentInstancesInput { + s.NextToken = &v + return s +} + // Represents the output of a list deployment instances operation. type ListDeploymentInstancesOutput struct { _ struct{} `type:"structure"` @@ -5336,6 +6392,18 @@ func (s ListDeploymentInstancesOutput) GoString() string { return s.String() } +// SetInstancesList sets the InstancesList field's value. +func (s *ListDeploymentInstancesOutput) SetInstancesList(v []*string) *ListDeploymentInstancesOutput { + s.InstancesList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentInstancesOutput) SetNextToken(v string) *ListDeploymentInstancesOutput { + s.NextToken = &v + return s +} + // Represents the input of a list deployments operation. type ListDeploymentsInput struct { _ struct{} `type:"structure"` @@ -5352,17 +6420,17 @@ type ListDeploymentsInput struct { // A subset of deployments to list by status: // - // Created: Include created deployments in the resulting list. + // * Created: Include created deployments in the resulting list. // - // Queued: Include queued deployments in the resulting list. + // * Queued: Include queued deployments in the resulting list. // - // In Progress: Include in-progress deployments in the resulting list. + // * In Progress: Include in-progress deployments in the resulting list. // - // Succeeded: Include successful deployments in the resulting list. + // * Succeeded: Include successful deployments in the resulting list. // - // Failed: Include failed deployments in the resulting list. + // * Failed: Include failed deployments in the resulting list. // - // Stopped: Include stopped deployments in the resulting list. + // * Stopped: Include stopped deployments in the resulting list. IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"` // An identifier returned from the previous list deployments call. It can be @@ -5396,6 +6464,36 @@ func (s *ListDeploymentsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ListDeploymentsInput) SetApplicationName(v string) *ListDeploymentsInput { + s.ApplicationName = &v + return s +} + +// SetCreateTimeRange sets the CreateTimeRange field's value. +func (s *ListDeploymentsInput) SetCreateTimeRange(v *TimeRange) *ListDeploymentsInput { + s.CreateTimeRange = v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *ListDeploymentsInput) SetDeploymentGroupName(v string) *ListDeploymentsInput { + s.DeploymentGroupName = &v + return s +} + +// SetIncludeOnlyStatuses sets the IncludeOnlyStatuses field's value. +func (s *ListDeploymentsInput) SetIncludeOnlyStatuses(v []*string) *ListDeploymentsInput { + s.IncludeOnlyStatuses = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput { + s.NextToken = &v + return s +} + // Represents the output of a list deployments operation. type ListDeploymentsOutput struct { _ struct{} `type:"structure"` @@ -5419,6 +6517,18 @@ func (s ListDeploymentsOutput) GoString() string { return s.String() } +// SetDeployments sets the Deployments field's value. +func (s *ListDeploymentsOutput) SetDeployments(v []*string) *ListDeploymentsOutput { + s.Deployments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput { + s.NextToken = &v + return s +} + // Represents the input of a list on-premises instances operation. type ListOnPremisesInstancesInput struct { _ struct{} `type:"structure"` @@ -5429,11 +6539,11 @@ type ListOnPremisesInstancesInput struct { // The registration status of the on-premises instances: // - // Deregistered: Include deregistered on-premises instances in the resulting - // list. + // * Deregistered: Include deregistered on-premises instances in the resulting + // list. // - // Registered: Include registered on-premises instances in the resulting - // list. + // * Registered: Include registered on-premises instances in the resulting + // list. RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"` // The on-premises instance tags that will be used to restrict the corresponding @@ -5451,6 +6561,24 @@ func (s ListOnPremisesInstancesInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListOnPremisesInstancesInput) SetNextToken(v string) *ListOnPremisesInstancesInput { + s.NextToken = &v + return s +} + +// SetRegistrationStatus sets the RegistrationStatus field's value. +func (s *ListOnPremisesInstancesInput) SetRegistrationStatus(v string) *ListOnPremisesInstancesInput { + s.RegistrationStatus = &v + return s +} + +// SetTagFilters sets the TagFilters field's value. +func (s *ListOnPremisesInstancesInput) SetTagFilters(v []*TagFilter) *ListOnPremisesInstancesInput { + s.TagFilters = v + return s +} + // Represents the output of list on-premises instances operation. type ListOnPremisesInstancesOutput struct { _ struct{} `type:"structure"` @@ -5474,25 +6602,37 @@ func (s ListOnPremisesInstancesOutput) GoString() string { return s.String() } +// SetInstanceNames sets the InstanceNames field's value. +func (s *ListOnPremisesInstancesOutput) SetInstanceNames(v []*string) *ListOnPremisesInstancesOutput { + s.InstanceNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListOnPremisesInstancesOutput) SetNextToken(v string) *ListOnPremisesInstancesOutput { + s.NextToken = &v + return s +} + // Information about minimum healthy instance. type MinimumHealthyHosts struct { _ struct{} `type:"structure"` // The minimum healthy instance type: // - // HOST_COUNT: The minimum number of healthy instance as an absolute value. + // * HOST_COUNT: The minimum number of healthy instance as an absolute value. // - // FLEET_PERCENT: The minimum number of healthy instance as a percentage - // of the total number of instance in the deployment. + // * FLEET_PERCENT: The minimum number of healthy instance as a percentage + // of the total number of instance in the deployment. // - // In an example of nine instance, if a HOST_COUNT of six is specified, deploy + // In an example of nine instance, if a HOST_COUNT of six is specified, deploy // to up to three instances at a time. The deployment will be successful if // six or more instances are deployed to successfully; otherwise, the deployment // fails. If a FLEET_PERCENT of 40 is specified, deploy to up to five instance // at a time. The deployment will be successful if four or more instance are // deployed to successfully; otherwise, the deployment fails. // - // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime + // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime // will return a minimum healthy instance type of MOST_CONCURRENCY and a value // of 1. This means a deployment to only one instance at a time. (You cannot // set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In @@ -5517,6 +6657,18 @@ func (s MinimumHealthyHosts) GoString() string { return s.String() } +// SetType sets the Type field's value. +func (s *MinimumHealthyHosts) SetType(v string) *MinimumHealthyHosts { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MinimumHealthyHosts) SetValue(v int64) *MinimumHealthyHosts { + s.Value = &v + return s +} + // Represents the input of a register application revision operation. type RegisterApplicationRevisionInput struct { _ struct{} `type:"structure"` @@ -5566,6 +6718,24 @@ func (s *RegisterApplicationRevisionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *RegisterApplicationRevisionInput) SetApplicationName(v string) *RegisterApplicationRevisionInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *RegisterApplicationRevisionInput) SetDescription(v string) *RegisterApplicationRevisionInput { + s.Description = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *RegisterApplicationRevisionInput) SetRevision(v *RevisionLocation) *RegisterApplicationRevisionInput { + s.Revision = v + return s +} + type RegisterApplicationRevisionOutput struct { _ struct{} `type:"structure"` } @@ -5621,6 +6791,18 @@ func (s *RegisterOnPremisesInstanceInput) Validate() error { return nil } +// SetIamUserArn sets the IamUserArn field's value. +func (s *RegisterOnPremisesInstanceInput) SetIamUserArn(v string) *RegisterOnPremisesInstanceInput { + s.IamUserArn = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *RegisterOnPremisesInstanceInput) SetInstanceName(v string) *RegisterOnPremisesInstanceInput { + s.InstanceName = &v + return s +} + type RegisterOnPremisesInstanceOutput struct { _ struct{} `type:"structure"` } @@ -5676,6 +6858,18 @@ func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error { return nil } +// SetInstanceNames sets the InstanceNames field's value. +func (s *RemoveTagsFromOnPremisesInstancesInput) SetInstanceNames(v []*string) *RemoveTagsFromOnPremisesInstancesInput { + s.InstanceNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RemoveTagsFromOnPremisesInstancesInput) SetTags(v []*Tag) *RemoveTagsFromOnPremisesInstancesInput { + s.Tags = v + return s +} + type RemoveTagsFromOnPremisesInstancesOutput struct { _ struct{} `type:"structure"` } @@ -5711,6 +6905,18 @@ func (s RevisionInfo) GoString() string { return s.String() } +// SetGenericRevisionInfo sets the GenericRevisionInfo field's value. +func (s *RevisionInfo) SetGenericRevisionInfo(v *GenericRevisionInfo) *RevisionInfo { + s.GenericRevisionInfo = v + return s +} + +// SetRevisionLocation sets the RevisionLocation field's value. +func (s *RevisionInfo) SetRevisionLocation(v *RevisionLocation) *RevisionInfo { + s.RevisionLocation = v + return s +} + // Information about the location of an application revision. type RevisionLocation struct { _ struct{} `type:"structure"` @@ -5720,9 +6926,9 @@ type RevisionLocation struct { // The type of application revision: // - // S3: An application revision stored in Amazon S3. + // * S3: An application revision stored in Amazon S3. // - // GitHub: An application revision stored in GitHub. + // * GitHub: An application revision stored in GitHub. RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"` // Information about the location of application artifacts stored in Amazon @@ -5740,6 +6946,24 @@ func (s RevisionLocation) GoString() string { return s.String() } +// SetGitHubLocation sets the GitHubLocation field's value. +func (s *RevisionLocation) SetGitHubLocation(v *GitHubLocation) *RevisionLocation { + s.GitHubLocation = v + return s +} + +// SetRevisionType sets the RevisionType field's value. +func (s *RevisionLocation) SetRevisionType(v string) *RevisionLocation { + s.RevisionType = &v + return s +} + +// SetS3Location sets the S3Location field's value. +func (s *RevisionLocation) SetS3Location(v *S3Location) *RevisionLocation { + s.S3Location = v + return s +} + // Information about a deployment rollback. type RollbackInfo struct { _ struct{} `type:"structure"` @@ -5766,6 +6990,24 @@ func (s RollbackInfo) GoString() string { return s.String() } +// SetRollbackDeploymentId sets the RollbackDeploymentId field's value. +func (s *RollbackInfo) SetRollbackDeploymentId(v string) *RollbackInfo { + s.RollbackDeploymentId = &v + return s +} + +// SetRollbackMessage sets the RollbackMessage field's value. +func (s *RollbackInfo) SetRollbackMessage(v string) *RollbackInfo { + s.RollbackMessage = &v + return s +} + +// SetRollbackTriggeringDeploymentId sets the RollbackTriggeringDeploymentId field's value. +func (s *RollbackInfo) SetRollbackTriggeringDeploymentId(v string) *RollbackInfo { + s.RollbackTriggeringDeploymentId = &v + return s +} + // Information about the location of application artifacts stored in Amazon // S3. type S3Location struct { @@ -5776,11 +7018,11 @@ type S3Location struct { // The file type of the application revision. Must be one of the following: // - // tar: A tar archive file. + // * tar: A tar archive file. // - // tgz: A compressed tar archive file. + // * tgz: A compressed tar archive file. // - // zip: A zip archive file. + // * zip: A zip archive file. BundleType *string `locationName:"bundleType" type:"string" enum:"BundleType"` // The ETag of the Amazon S3 object that represents the bundled artifacts for @@ -5812,6 +7054,36 @@ func (s S3Location) GoString() string { return s.String() } +// SetBucket sets the Bucket field's value. +func (s *S3Location) SetBucket(v string) *S3Location { + s.Bucket = &v + return s +} + +// SetBundleType sets the BundleType field's value. +func (s *S3Location) SetBundleType(v string) *S3Location { + s.BundleType = &v + return s +} + +// SetETag sets the ETag field's value. +func (s *S3Location) SetETag(v string) *S3Location { + s.ETag = &v + return s +} + +// SetKey sets the Key field's value. +func (s *S3Location) SetKey(v string) *S3Location { + s.Key = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *S3Location) SetVersion(v string) *S3Location { + s.Version = &v + return s +} + // Represents the input of a stop deployment operation. type StopDeploymentInput struct { _ struct{} `type:"structure"` @@ -5850,15 +7122,27 @@ func (s *StopDeploymentInput) Validate() error { return nil } +// SetAutoRollbackEnabled sets the AutoRollbackEnabled field's value. +func (s *StopDeploymentInput) SetAutoRollbackEnabled(v bool) *StopDeploymentInput { + s.AutoRollbackEnabled = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *StopDeploymentInput) SetDeploymentId(v string) *StopDeploymentInput { + s.DeploymentId = &v + return s +} + // Represents the output of a stop deployment operation. type StopDeploymentOutput struct { _ struct{} `type:"structure"` // The status of the stop deployment operation: // - // Pending: The stop operation is pending. + // * Pending: The stop operation is pending. // - // Succeeded: The stop operation was successful. + // * Succeeded: The stop operation was successful. Status *string `locationName:"status" type:"string" enum:"StopStatus"` // An accompanying status message. @@ -5875,6 +7159,18 @@ func (s StopDeploymentOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *StopDeploymentOutput) SetStatus(v string) *StopDeploymentOutput { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *StopDeploymentOutput) SetStatusMessage(v string) *StopDeploymentOutput { + s.StatusMessage = &v + return s +} + // Information about a tag. type Tag struct { _ struct{} `type:"structure"` @@ -5896,6 +7192,18 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Information about an on-premises instance tag filter. type TagFilter struct { _ struct{} `type:"structure"` @@ -5905,11 +7213,11 @@ type TagFilter struct { // The on-premises instance tag filter type: // - // KEY_ONLY: Key only. + // * KEY_ONLY: Key only. // - // VALUE_ONLY: Value only. + // * VALUE_ONLY: Value only. // - // KEY_AND_VALUE: Key and value. + // * KEY_AND_VALUE: Key and value. Type *string `type:"string" enum:"TagFilterType"` // The on-premises instance tag filter value. @@ -5926,18 +7234,36 @@ func (s TagFilter) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *TagFilter) SetKey(v string) *TagFilter { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *TagFilter) SetType(v string) *TagFilter { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TagFilter) SetValue(v string) *TagFilter { + s.Value = &v + return s +} + // Information about a time range. type TimeRange struct { _ struct{} `type:"structure"` // The end time of the time range. // - // Specify null to leave the end time open-ended. + // Specify null to leave the end time open-ended. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"unix"` // The start time of the time range. // - // Specify null to leave the start time open-ended. + // Specify null to leave the start time open-ended. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"unix"` } @@ -5951,6 +7277,18 @@ func (s TimeRange) GoString() string { return s.String() } +// SetEnd sets the End field's value. +func (s *TimeRange) SetEnd(v time.Time) *TimeRange { + s.End = &v + return s +} + +// SetStart sets the Start field's value. +func (s *TimeRange) SetStart(v time.Time) *TimeRange { + s.Start = &v + return s +} + // Information about notification triggers for the deployment group. type TriggerConfig struct { _ struct{} `type:"structure"` @@ -5976,6 +7314,24 @@ func (s TriggerConfig) GoString() string { return s.String() } +// SetTriggerEvents sets the TriggerEvents field's value. +func (s *TriggerConfig) SetTriggerEvents(v []*string) *TriggerConfig { + s.TriggerEvents = v + return s +} + +// SetTriggerName sets the TriggerName field's value. +func (s *TriggerConfig) SetTriggerName(v string) *TriggerConfig { + s.TriggerName = &v + return s +} + +// SetTriggerTargetArn sets the TriggerTargetArn field's value. +func (s *TriggerConfig) SetTriggerTargetArn(v string) *TriggerConfig { + s.TriggerTargetArn = &v + return s +} + // Represents the input of an update application operation. type UpdateApplicationInput struct { _ struct{} `type:"structure"` @@ -6013,6 +7369,18 @@ func (s *UpdateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetNewApplicationName sets the NewApplicationName field's value. +func (s *UpdateApplicationInput) SetNewApplicationName(v string) *UpdateApplicationInput { + s.NewApplicationName = &v + return s +} + type UpdateApplicationOutput struct { _ struct{} `type:"structure"` } @@ -6119,6 +7487,72 @@ func (s *UpdateDeploymentGroupInput) Validate() error { return nil } +// SetAlarmConfiguration sets the AlarmConfiguration field's value. +func (s *UpdateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *UpdateDeploymentGroupInput { + s.AlarmConfiguration = v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateDeploymentGroupInput) SetApplicationName(v string) *UpdateDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *UpdateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *UpdateDeploymentGroupInput { + s.AutoRollbackConfiguration = v + return s +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *UpdateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *UpdateDeploymentGroupInput { + s.AutoScalingGroups = v + return s +} + +// SetCurrentDeploymentGroupName sets the CurrentDeploymentGroupName field's value. +func (s *UpdateDeploymentGroupInput) SetCurrentDeploymentGroupName(v string) *UpdateDeploymentGroupInput { + s.CurrentDeploymentGroupName = &v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *UpdateDeploymentGroupInput) SetDeploymentConfigName(v string) *UpdateDeploymentGroupInput { + s.DeploymentConfigName = &v + return s +} + +// SetEc2TagFilters sets the Ec2TagFilters field's value. +func (s *UpdateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *UpdateDeploymentGroupInput { + s.Ec2TagFilters = v + return s +} + +// SetNewDeploymentGroupName sets the NewDeploymentGroupName field's value. +func (s *UpdateDeploymentGroupInput) SetNewDeploymentGroupName(v string) *UpdateDeploymentGroupInput { + s.NewDeploymentGroupName = &v + return s +} + +// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. +func (s *UpdateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *UpdateDeploymentGroupInput { + s.OnPremisesInstanceTagFilters = v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *UpdateDeploymentGroupInput) SetServiceRoleArn(v string) *UpdateDeploymentGroupInput { + s.ServiceRoleArn = &v + return s +} + +// SetTriggerConfigurations sets the TriggerConfigurations field's value. +func (s *UpdateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *UpdateDeploymentGroupInput { + s.TriggerConfigurations = v + return s +} + // Represents the output of an update deployment group operation. type UpdateDeploymentGroupOutput struct { _ struct{} `type:"structure"` @@ -6141,6 +7575,12 @@ func (s UpdateDeploymentGroupOutput) GoString() string { return s.String() } +// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value. +func (s *UpdateDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *UpdateDeploymentGroupOutput { + s.HooksNotCleanedUp = v + return s +} + const ( // ApplicationRevisionSortByRegisterTime is a ApplicationRevisionSortBy enum value ApplicationRevisionSortByRegisterTime = "registerTime" diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go index 4a83dcfd2..ef4dac058 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go @@ -17,52 +17,53 @@ import ( // more information about AWS CodeDeploy, see the AWS CodeDeploy User Guide // (http://docs.aws.amazon.com/codedeploy/latest/userguide). // -// Using the APIs +// Using the APIs // // You can use the AWS CodeDeploy APIs to work with the following: // -// Applications are unique identifiers used by AWS CodeDeploy to ensure the -// correct combinations of revisions, deployment configurations, and deployment -// groups are being referenced during deployments. +// * Applications are unique identifiers used by AWS CodeDeploy to ensure +// the correct combinations of revisions, deployment configurations, and +// deployment groups are being referenced during deployments. // // You can use the AWS CodeDeploy APIs to create, delete, get, list, and update -// applications. +// applications. // -// Deployment configurations are sets of deployment rules and success and -// failure conditions used by AWS CodeDeploy during deployments. +// * Deployment configurations are sets of deployment rules and success and +// failure conditions used by AWS CodeDeploy during deployments. // // You can use the AWS CodeDeploy APIs to create, delete, get, and list deployment -// configurations. +// configurations. // -// Deployment groups are groups of instances to which application revisions -// can be deployed. +// * Deployment groups are groups of instances to which application revisions +// can be deployed. // // You can use the AWS CodeDeploy APIs to create, delete, get, list, and update -// deployment groups. +// deployment groups. // -// Instances represent Amazon EC2 instances to which application revisions -// are deployed. Instances are identified by their Amazon EC2 tags or Auto Scaling -// group names. Instances belong to deployment groups. +// * Instances represent Amazon EC2 instances to which application revisions +// are deployed. Instances are identified by their Amazon EC2 tags or Auto +// Scaling group names. Instances belong to deployment groups. // // You can use the AWS CodeDeploy APIs to get and list instance. // -// Deployments represent the process of deploying revisions to instances. +// * Deployments represent the process of deploying revisions to instances. // // You can use the AWS CodeDeploy APIs to create, get, list, and stop deployments. // -// Application revisions are archive files stored in Amazon S3 buckets or -// GitHub repositories. These revisions contain source content (such as source -// code, web pages, executable files, and deployment scripts) along with an -// application specification (AppSpec) file. (The AppSpec file is unique to -// AWS CodeDeploy; it defines the deployment actions you want AWS CodeDeploy -// to execute.) For application revisions stored in Amazon S3 buckets, an application -// revision is uniquely identified by its Amazon S3 object key and its ETag, -// version, or both. For application revisions stored in GitHub repositories, -// an application revision is uniquely identified by its repository name and -// commit ID. Application revisions are deployed through deployment groups. +// * Application revisions are archive files stored in Amazon S3 buckets +// or GitHub repositories. These revisions contain source content (such as +// source code, web pages, executable files, and deployment scripts) along +// with an application specification (AppSpec) file. (The AppSpec file is +// unique to AWS CodeDeploy; it defines the deployment actions you want AWS +// CodeDeploy to execute.) For application revisions stored in Amazon S3 +// buckets, an application revision is uniquely identified by its Amazon +// S3 object key and its ETag, version, or both. For application revisions +// stored in GitHub repositories, an application revision is uniquely identified +// by its repository name and commit ID. Application revisions are deployed +// through deployment groups. // // You can use the AWS CodeDeploy APIs to get, list, and register application -// revisions. +// revisions. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type CodeDeploy struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go index 610dbff11..1e09ba943 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go @@ -62,6 +62,11 @@ func (c *DirectoryService) AddIpRoutesRequest(input *AddIpRoutesInput) (req *req // address block. You can also use AddIpRoutes to facilitate routing traffic // that uses public IP ranges from your Microsoft AD on AWS to a peer VPC. // +// Before you call AddIpRoutes, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the AddIpRoutes operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -144,7 +149,7 @@ func (c *DirectoryService) AddTagsToResourceRequest(input *AddTagsToResourceInpu // AddTagsToResource API operation for AWS Directory Service. // // Adds or overwrites one or more tags for the specified Amazon Directory Services -// directory. Each directory can have a maximum of 10 tags. Each tag consists +// directory. Each directory can have a maximum of 50 tags. Each tag consists // of a key and optional value. Tag keys must be unique to each resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -176,6 +181,79 @@ func (c *DirectoryService) AddTagsToResource(input *AddTagsToResourceInput) (*Ad return out, err } +const opCancelSchemaExtension = "CancelSchemaExtension" + +// CancelSchemaExtensionRequest generates a "aws/request.Request" representing the +// client's request for the CancelSchemaExtension operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CancelSchemaExtension for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CancelSchemaExtension method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CancelSchemaExtensionRequest method. +// req, resp := client.CancelSchemaExtensionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *DirectoryService) CancelSchemaExtensionRequest(input *CancelSchemaExtensionInput) (req *request.Request, output *CancelSchemaExtensionOutput) { + op := &request.Operation{ + Name: opCancelSchemaExtension, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelSchemaExtensionInput{} + } + + req = c.newRequest(op, input, output) + output = &CancelSchemaExtensionOutput{} + req.Data = output + return +} + +// CancelSchemaExtension API operation for AWS Directory Service. +// +// Cancels an in-progress schema extension to a Microsoft AD directory. Once +// a schema extension has started replicating to all domain controllers, the +// task can no longer be canceled. A schema extension can be canceled during +// any of the following states; Initializing, CreatingSnapshot, and UpdatingSchema. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Directory Service's +// API operation CancelSchemaExtension for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// +func (c *DirectoryService) CancelSchemaExtension(input *CancelSchemaExtensionInput) (*CancelSchemaExtensionOutput, error) { + req, out := c.CancelSchemaExtensionRequest(input) + err := req.Send() + return out, err +} + const opConnectDirectory = "ConnectDirectory" // ConnectDirectoryRequest generates a "aws/request.Request" representing the @@ -223,6 +301,11 @@ func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) // // Creates an AD Connector to connect to an on-premises directory. // +// Before you call ConnectDirectory, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the ConnectDirectory operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -300,7 +383,7 @@ func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *req // The alias is used to construct the access URL for the directory, such as // http://.awsapps.com. // -// After an alias has been created, it cannot be deleted or reused, so this +// After an alias has been created, it cannot be deleted or reused, so this // operation should only be used when absolutely necessary. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -549,6 +632,11 @@ func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) ( // // Creates a Simple AD directory. // +// Before you call CreateDirectory, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the CreateDirectory operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -624,6 +712,11 @@ func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInpu // // Creates a Microsoft AD in the AWS cloud. // +// Before you call CreateMicrosoftAD, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the CreateMicrosoftAD operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -702,7 +795,7 @@ func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (re // // Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud. // -// You cannot take snapshots of AD Connector directories. +// You cannot take snapshots of AD Connector directories. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -947,6 +1040,11 @@ func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) ( // // Deletes an AWS Directory Service directory. // +// Before you call DeleteDirectory, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the DeleteDirectory operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1240,8 +1338,8 @@ func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeC // // Obtains information about the conditional forwarders for this account. // -// If no input parameters are provided for RemoteDomainNames, this request -// describes all conditional forwarders for the specified directory ID. +// If no input parameters are provided for RemoteDomainNames, this request describes +// all conditional forwarders for the specified directory ID. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2120,6 +2218,79 @@ func (c *DirectoryService) ListIpRoutes(input *ListIpRoutesInput) (*ListIpRoutes return out, err } +const opListSchemaExtensions = "ListSchemaExtensions" + +// ListSchemaExtensionsRequest generates a "aws/request.Request" representing the +// client's request for the ListSchemaExtensions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListSchemaExtensions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListSchemaExtensions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListSchemaExtensionsRequest method. +// req, resp := client.ListSchemaExtensionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *DirectoryService) ListSchemaExtensionsRequest(input *ListSchemaExtensionsInput) (req *request.Request, output *ListSchemaExtensionsOutput) { + op := &request.Operation{ + Name: opListSchemaExtensions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListSchemaExtensionsInput{} + } + + req = c.newRequest(op, input, output) + output = &ListSchemaExtensionsOutput{} + req.Data = output + return +} + +// ListSchemaExtensions API operation for AWS Directory Service. +// +// Lists all schema extensions applied to a Microsoft AD Directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Directory Service's +// API operation ListSchemaExtensions for usage and error information. +// +// Returned Error Codes: +// * InvalidNextTokenException +// The NextToken value is not valid. +// +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// +func (c *DirectoryService) ListSchemaExtensions(input *ListSchemaExtensionsInput) (*ListSchemaExtensionsOutput, error) { + req, out := c.ListSchemaExtensionsRequest(input) + err := req.Send() + return out, err +} + const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the @@ -2504,6 +2675,87 @@ func (c *DirectoryService) RestoreFromSnapshot(input *RestoreFromSnapshotInput) return out, err } +const opStartSchemaExtension = "StartSchemaExtension" + +// StartSchemaExtensionRequest generates a "aws/request.Request" representing the +// client's request for the StartSchemaExtension operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartSchemaExtension for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartSchemaExtension method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartSchemaExtensionRequest method. +// req, resp := client.StartSchemaExtensionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *DirectoryService) StartSchemaExtensionRequest(input *StartSchemaExtensionInput) (req *request.Request, output *StartSchemaExtensionOutput) { + op := &request.Operation{ + Name: opStartSchemaExtension, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartSchemaExtensionInput{} + } + + req = c.newRequest(op, input, output) + output = &StartSchemaExtensionOutput{} + req.Data = output + return +} + +// StartSchemaExtension API operation for AWS Directory Service. +// +// Applies a schema extension to a Microsoft AD directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Directory Service's +// API operation StartSchemaExtension for usage and error information. +// +// Returned Error Codes: +// * DirectoryUnavailableException +// The specified directory is unavailable or could not be found. +// +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * SnapshotLimitExceededException +// The maximum number of manual snapshots for the directory has been reached. +// You can use the GetSnapshotLimits operation to determine the snapshot limits +// for a directory. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// +func (c *DirectoryService) StartSchemaExtension(input *StartSchemaExtensionInput) (*StartSchemaExtensionOutput, error) { + req, out := c.StartSchemaExtensionRequest(input) + err := req.Send() + return out, err +} + const opUpdateConditionalForwarder = "UpdateConditionalForwarder" // UpdateConditionalForwarderRequest generates a "aws/request.Request" representing the @@ -2757,46 +3009,43 @@ type AddIpRoutesInput struct { // // Inbound: // - // Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source: 0.0.0.0/0 // - // Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0 + // * Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0 // - // Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0 + // * Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0 // - // Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0 + // * Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0 // - // Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0 + // * Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0 // - // Outbound: + // Outbound: // - // Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0 - // - // These security rules impact an internal network interface that is not - // exposed publicly. + // Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0 UpdateSecurityGroupForDirectoryControllers *bool `type:"boolean"` } @@ -2826,6 +3075,24 @@ func (s *AddIpRoutesInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *AddIpRoutesInput) SetDirectoryId(v string) *AddIpRoutesInput { + s.DirectoryId = &v + return s +} + +// SetIpRoutes sets the IpRoutes field's value. +func (s *AddIpRoutesInput) SetIpRoutes(v []*IpRoute) *AddIpRoutesInput { + s.IpRoutes = v + return s +} + +// SetUpdateSecurityGroupForDirectoryControllers sets the UpdateSecurityGroupForDirectoryControllers field's value. +func (s *AddIpRoutesInput) SetUpdateSecurityGroupForDirectoryControllers(v bool) *AddIpRoutesInput { + s.UpdateSecurityGroupForDirectoryControllers = &v + return s +} + type AddIpRoutesOutput struct { _ struct{} `type:"structure"` } @@ -2890,6 +3157,18 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsToResourceInput) SetResourceId(v string) *AddTagsToResourceInput { + s.ResourceId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + type AddTagsToResourceOutput struct { _ struct{} `type:"structure"` } @@ -2938,6 +3217,84 @@ func (s *Attribute) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *Attribute) SetName(v string) *Attribute { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Attribute) SetValue(v string) *Attribute { + s.Value = &v + return s +} + +type CancelSchemaExtensionInput struct { + _ struct{} `type:"structure"` + + // The identifier of the directory whose schema extension will be canceled. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The identifier of the schema extension that will be canceled. + // + // SchemaExtensionId is a required field + SchemaExtensionId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelSchemaExtensionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelSchemaExtensionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelSchemaExtensionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelSchemaExtensionInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + if s.SchemaExtensionId == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaExtensionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CancelSchemaExtensionInput) SetDirectoryId(v string) *CancelSchemaExtensionInput { + s.DirectoryId = &v + return s +} + +// SetSchemaExtensionId sets the SchemaExtensionId field's value. +func (s *CancelSchemaExtensionInput) SetSchemaExtensionId(v string) *CancelSchemaExtensionInput { + s.SchemaExtensionId = &v + return s +} + +type CancelSchemaExtensionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CancelSchemaExtensionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelSchemaExtensionOutput) GoString() string { + return s.String() +} + // Contains information about a computer account in a directory. type Computer struct { _ struct{} `type:"structure"` @@ -2963,6 +3320,24 @@ func (s Computer) GoString() string { return s.String() } +// SetComputerAttributes sets the ComputerAttributes field's value. +func (s *Computer) SetComputerAttributes(v []*Attribute) *Computer { + s.ComputerAttributes = v + return s +} + +// SetComputerId sets the ComputerId field's value. +func (s *Computer) SetComputerId(v string) *Computer { + s.ComputerId = &v + return s +} + +// SetComputerName sets the ComputerName field's value. +func (s *Computer) SetComputerName(v string) *Computer { + s.ComputerName = &v + return s +} + // Points to a remote domain with which you are setting up a trust relationship. // Conditional forwarders are required in order to set up a trust relationship // with another domain. @@ -2994,6 +3369,24 @@ func (s ConditionalForwarder) GoString() string { return s.String() } +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *ConditionalForwarder) SetDnsIpAddrs(v []*string) *ConditionalForwarder { + s.DnsIpAddrs = v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *ConditionalForwarder) SetRemoteDomainName(v string) *ConditionalForwarder { + s.RemoteDomainName = &v + return s +} + +// SetReplicationScope sets the ReplicationScope field's value. +func (s *ConditionalForwarder) SetReplicationScope(v string) *ConditionalForwarder { + s.ReplicationScope = &v + return s +} + // Contains the inputs for the ConnectDirectory operation. type ConnectDirectoryInput struct { _ struct{} `type:"structure"` @@ -3066,6 +3459,42 @@ func (s *ConnectDirectoryInput) Validate() error { return nil } +// SetConnectSettings sets the ConnectSettings field's value. +func (s *ConnectDirectoryInput) SetConnectSettings(v *DirectoryConnectSettings) *ConnectDirectoryInput { + s.ConnectSettings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ConnectDirectoryInput) SetDescription(v string) *ConnectDirectoryInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *ConnectDirectoryInput) SetName(v string) *ConnectDirectoryInput { + s.Name = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *ConnectDirectoryInput) SetPassword(v string) *ConnectDirectoryInput { + s.Password = &v + return s +} + +// SetShortName sets the ShortName field's value. +func (s *ConnectDirectoryInput) SetShortName(v string) *ConnectDirectoryInput { + s.ShortName = &v + return s +} + +// SetSize sets the Size field's value. +func (s *ConnectDirectoryInput) SetSize(v string) *ConnectDirectoryInput { + s.Size = &v + return s +} + // Contains the results of the ConnectDirectory operation. type ConnectDirectoryOutput struct { _ struct{} `type:"structure"` @@ -3084,6 +3513,12 @@ func (s ConnectDirectoryOutput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *ConnectDirectoryOutput) SetDirectoryId(v string) *ConnectDirectoryOutput { + s.DirectoryId = &v + return s +} + // Contains the inputs for the CreateAlias operation. type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -3131,6 +3566,18 @@ func (s *CreateAliasInput) Validate() error { return nil } +// SetAlias sets the Alias field's value. +func (s *CreateAliasInput) SetAlias(v string) *CreateAliasInput { + s.Alias = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateAliasInput) SetDirectoryId(v string) *CreateAliasInput { + s.DirectoryId = &v + return s +} + // Contains the results of the CreateAlias operation. type CreateAliasOutput struct { _ struct{} `type:"structure"` @@ -3152,6 +3599,18 @@ func (s CreateAliasOutput) GoString() string { return s.String() } +// SetAlias sets the Alias field's value. +func (s *CreateAliasOutput) SetAlias(v string) *CreateAliasOutput { + s.Alias = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateAliasOutput) SetDirectoryId(v string) *CreateAliasOutput { + s.DirectoryId = &v + return s +} + // Contains the inputs for the CreateComputer operation. type CreateComputerInput struct { _ struct{} `type:"structure"` @@ -3229,6 +3688,36 @@ func (s *CreateComputerInput) Validate() error { return nil } +// SetComputerAttributes sets the ComputerAttributes field's value. +func (s *CreateComputerInput) SetComputerAttributes(v []*Attribute) *CreateComputerInput { + s.ComputerAttributes = v + return s +} + +// SetComputerName sets the ComputerName field's value. +func (s *CreateComputerInput) SetComputerName(v string) *CreateComputerInput { + s.ComputerName = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateComputerInput) SetDirectoryId(v string) *CreateComputerInput { + s.DirectoryId = &v + return s +} + +// SetOrganizationalUnitDistinguishedName sets the OrganizationalUnitDistinguishedName field's value. +func (s *CreateComputerInput) SetOrganizationalUnitDistinguishedName(v string) *CreateComputerInput { + s.OrganizationalUnitDistinguishedName = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateComputerInput) SetPassword(v string) *CreateComputerInput { + s.Password = &v + return s +} + // Contains the results for the CreateComputer operation. type CreateComputerOutput struct { _ struct{} `type:"structure"` @@ -3247,6 +3736,12 @@ func (s CreateComputerOutput) GoString() string { return s.String() } +// SetComputer sets the Computer field's value. +func (s *CreateComputerOutput) SetComputer(v *Computer) *CreateComputerOutput { + s.Computer = v + return s +} + // Initiates the creation of a conditional forwarder for your AWS Directory // Service for Microsoft Active Directory. Conditional forwarders are required // in order to set up a trust relationship with another domain. @@ -3300,6 +3795,24 @@ func (s *CreateConditionalForwarderInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateConditionalForwarderInput) SetDirectoryId(v string) *CreateConditionalForwarderInput { + s.DirectoryId = &v + return s +} + +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *CreateConditionalForwarderInput) SetDnsIpAddrs(v []*string) *CreateConditionalForwarderInput { + s.DnsIpAddrs = v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *CreateConditionalForwarderInput) SetRemoteDomainName(v string) *CreateConditionalForwarderInput { + s.RemoteDomainName = &v + return s +} + // The result of a CreateConditinalForwarder request. type CreateConditionalForwarderOutput struct { _ struct{} `type:"structure"` @@ -3381,6 +3894,42 @@ func (s *CreateDirectoryInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateDirectoryInput) SetDescription(v string) *CreateDirectoryInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDirectoryInput) SetName(v string) *CreateDirectoryInput { + s.Name = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateDirectoryInput) SetPassword(v string) *CreateDirectoryInput { + s.Password = &v + return s +} + +// SetShortName sets the ShortName field's value. +func (s *CreateDirectoryInput) SetShortName(v string) *CreateDirectoryInput { + s.ShortName = &v + return s +} + +// SetSize sets the Size field's value. +func (s *CreateDirectoryInput) SetSize(v string) *CreateDirectoryInput { + s.Size = &v + return s +} + +// SetVpcSettings sets the VpcSettings field's value. +func (s *CreateDirectoryInput) SetVpcSettings(v *DirectoryVpcSettings) *CreateDirectoryInput { + s.VpcSettings = v + return s +} + // Contains the results of the CreateDirectory operation. type CreateDirectoryOutput struct { _ struct{} `type:"structure"` @@ -3399,6 +3948,12 @@ func (s CreateDirectoryOutput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateDirectoryOutput) SetDirectoryId(v string) *CreateDirectoryOutput { + s.DirectoryId = &v + return s +} + // Creates a Microsoft AD in the AWS cloud. type CreateMicrosoftADInput struct { _ struct{} `type:"structure"` @@ -3464,6 +4019,36 @@ func (s *CreateMicrosoftADInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateMicrosoftADInput) SetDescription(v string) *CreateMicrosoftADInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateMicrosoftADInput) SetName(v string) *CreateMicrosoftADInput { + s.Name = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateMicrosoftADInput) SetPassword(v string) *CreateMicrosoftADInput { + s.Password = &v + return s +} + +// SetShortName sets the ShortName field's value. +func (s *CreateMicrosoftADInput) SetShortName(v string) *CreateMicrosoftADInput { + s.ShortName = &v + return s +} + +// SetVpcSettings sets the VpcSettings field's value. +func (s *CreateMicrosoftADInput) SetVpcSettings(v *DirectoryVpcSettings) *CreateMicrosoftADInput { + s.VpcSettings = v + return s +} + // Result of a CreateMicrosoftAD request. type CreateMicrosoftADOutput struct { _ struct{} `type:"structure"` @@ -3482,6 +4067,12 @@ func (s CreateMicrosoftADOutput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateMicrosoftADOutput) SetDirectoryId(v string) *CreateMicrosoftADOutput { + s.DirectoryId = &v + return s +} + // Contains the inputs for the CreateSnapshot operation. type CreateSnapshotInput struct { _ struct{} `type:"structure"` @@ -3518,6 +4109,18 @@ func (s *CreateSnapshotInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateSnapshotInput) SetDirectoryId(v string) *CreateSnapshotInput { + s.DirectoryId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSnapshotInput) SetName(v string) *CreateSnapshotInput { + s.Name = &v + return s +} + // Contains the results of the CreateSnapshot operation. type CreateSnapshotOutput struct { _ struct{} `type:"structure"` @@ -3536,6 +4139,12 @@ func (s CreateSnapshotOutput) GoString() string { return s.String() } +// SetSnapshotId sets the SnapshotId field's value. +func (s *CreateSnapshotOutput) SetSnapshotId(v string) *CreateSnapshotOutput { + s.SnapshotId = &v + return s +} + // AWS Directory Service for Microsoft Active Directory allows you to configure // trust relationships. For example, you can establish a trust between your // Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active @@ -3612,6 +4221,42 @@ func (s *CreateTrustInput) Validate() error { return nil } +// SetConditionalForwarderIpAddrs sets the ConditionalForwarderIpAddrs field's value. +func (s *CreateTrustInput) SetConditionalForwarderIpAddrs(v []*string) *CreateTrustInput { + s.ConditionalForwarderIpAddrs = v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateTrustInput) SetDirectoryId(v string) *CreateTrustInput { + s.DirectoryId = &v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *CreateTrustInput) SetRemoteDomainName(v string) *CreateTrustInput { + s.RemoteDomainName = &v + return s +} + +// SetTrustDirection sets the TrustDirection field's value. +func (s *CreateTrustInput) SetTrustDirection(v string) *CreateTrustInput { + s.TrustDirection = &v + return s +} + +// SetTrustPassword sets the TrustPassword field's value. +func (s *CreateTrustInput) SetTrustPassword(v string) *CreateTrustInput { + s.TrustPassword = &v + return s +} + +// SetTrustType sets the TrustType field's value. +func (s *CreateTrustInput) SetTrustType(v string) *CreateTrustInput { + s.TrustType = &v + return s +} + // The result of a CreateTrust request. type CreateTrustOutput struct { _ struct{} `type:"structure"` @@ -3630,6 +4275,12 @@ func (s CreateTrustOutput) GoString() string { return s.String() } +// SetTrustId sets the TrustId field's value. +func (s *CreateTrustOutput) SetTrustId(v string) *CreateTrustOutput { + s.TrustId = &v + return s +} + // Deletes a conditional forwarder. type DeleteConditionalForwarderInput struct { _ struct{} `type:"structure"` @@ -3672,6 +4323,18 @@ func (s *DeleteConditionalForwarderInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeleteConditionalForwarderInput) SetDirectoryId(v string) *DeleteConditionalForwarderInput { + s.DirectoryId = &v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *DeleteConditionalForwarderInput) SetRemoteDomainName(v string) *DeleteConditionalForwarderInput { + s.RemoteDomainName = &v + return s +} + // The result of a DeleteConditionalForwarder request. type DeleteConditionalForwarderOutput struct { _ struct{} `type:"structure"` @@ -3720,6 +4383,12 @@ func (s *DeleteDirectoryInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeleteDirectoryInput) SetDirectoryId(v string) *DeleteDirectoryInput { + s.DirectoryId = &v + return s +} + // Contains the results of the DeleteDirectory operation. type DeleteDirectoryOutput struct { _ struct{} `type:"structure"` @@ -3738,6 +4407,12 @@ func (s DeleteDirectoryOutput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeleteDirectoryOutput) SetDirectoryId(v string) *DeleteDirectoryOutput { + s.DirectoryId = &v + return s +} + // Contains the inputs for the DeleteSnapshot operation. type DeleteSnapshotInput struct { _ struct{} `type:"structure"` @@ -3771,6 +4446,12 @@ func (s *DeleteSnapshotInput) Validate() error { return nil } +// SetSnapshotId sets the SnapshotId field's value. +func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput { + s.SnapshotId = &v + return s +} + // Contains the results of the DeleteSnapshot operation. type DeleteSnapshotOutput struct { _ struct{} `type:"structure"` @@ -3789,6 +4470,12 @@ func (s DeleteSnapshotOutput) GoString() string { return s.String() } +// SetSnapshotId sets the SnapshotId field's value. +func (s *DeleteSnapshotOutput) SetSnapshotId(v string) *DeleteSnapshotOutput { + s.SnapshotId = &v + return s +} + // Deletes the local side of an existing trust relationship between the Microsoft // AD in the AWS cloud and the external domain. type DeleteTrustInput struct { @@ -3826,6 +4513,18 @@ func (s *DeleteTrustInput) Validate() error { return nil } +// SetDeleteAssociatedConditionalForwarder sets the DeleteAssociatedConditionalForwarder field's value. +func (s *DeleteTrustInput) SetDeleteAssociatedConditionalForwarder(v bool) *DeleteTrustInput { + s.DeleteAssociatedConditionalForwarder = &v + return s +} + +// SetTrustId sets the TrustId field's value. +func (s *DeleteTrustInput) SetTrustId(v string) *DeleteTrustInput { + s.TrustId = &v + return s +} + // The result of a DeleteTrust request. type DeleteTrustOutput struct { _ struct{} `type:"structure"` @@ -3844,6 +4543,12 @@ func (s DeleteTrustOutput) GoString() string { return s.String() } +// SetTrustId sets the TrustId field's value. +func (s *DeleteTrustOutput) SetTrustId(v string) *DeleteTrustOutput { + s.TrustId = &v + return s +} + // Removes the specified directory as a publisher to the specified SNS topic. type DeregisterEventTopicInput struct { _ struct{} `type:"structure"` @@ -3889,6 +4594,18 @@ func (s *DeregisterEventTopicInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeregisterEventTopicInput) SetDirectoryId(v string) *DeregisterEventTopicInput { + s.DirectoryId = &v + return s +} + +// SetTopicName sets the TopicName field's value. +func (s *DeregisterEventTopicInput) SetTopicName(v string) *DeregisterEventTopicInput { + s.TopicName = &v + return s +} + // The result of a DeregisterEventTopic request. type DeregisterEventTopicOutput struct { _ struct{} `type:"structure"` @@ -3942,6 +4659,18 @@ func (s *DescribeConditionalForwardersInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeConditionalForwardersInput) SetDirectoryId(v string) *DescribeConditionalForwardersInput { + s.DirectoryId = &v + return s +} + +// SetRemoteDomainNames sets the RemoteDomainNames field's value. +func (s *DescribeConditionalForwardersInput) SetRemoteDomainNames(v []*string) *DescribeConditionalForwardersInput { + s.RemoteDomainNames = v + return s +} + // The result of a DescribeConditionalForwarder request. type DescribeConditionalForwardersOutput struct { _ struct{} `type:"structure"` @@ -3960,6 +4689,12 @@ func (s DescribeConditionalForwardersOutput) GoString() string { return s.String() } +// SetConditionalForwarders sets the ConditionalForwarders field's value. +func (s *DescribeConditionalForwardersOutput) SetConditionalForwarders(v []*ConditionalForwarder) *DescribeConditionalForwardersOutput { + s.ConditionalForwarders = v + return s +} + // Contains the inputs for the DescribeDirectories operation. type DescribeDirectoriesInput struct { _ struct{} `type:"structure"` @@ -3990,6 +4725,24 @@ func (s DescribeDirectoriesInput) GoString() string { return s.String() } +// SetDirectoryIds sets the DirectoryIds field's value. +func (s *DescribeDirectoriesInput) SetDirectoryIds(v []*string) *DescribeDirectoriesInput { + s.DirectoryIds = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeDirectoriesInput) SetLimit(v int64) *DescribeDirectoriesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDirectoriesInput) SetNextToken(v string) *DescribeDirectoriesInput { + s.NextToken = &v + return s +} + // Contains the results of the DescribeDirectories operation. type DescribeDirectoriesOutput struct { _ struct{} `type:"structure"` @@ -4018,6 +4771,18 @@ func (s DescribeDirectoriesOutput) GoString() string { return s.String() } +// SetDirectoryDescriptions sets the DirectoryDescriptions field's value. +func (s *DescribeDirectoriesOutput) SetDirectoryDescriptions(v []*DirectoryDescription) *DescribeDirectoriesOutput { + s.DirectoryDescriptions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDirectoriesOutput) SetNextToken(v string) *DescribeDirectoriesOutput { + s.NextToken = &v + return s +} + // Describes event topics. type DescribeEventTopicsInput struct { _ struct{} `type:"structure"` @@ -4043,6 +4808,18 @@ func (s DescribeEventTopicsInput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeEventTopicsInput) SetDirectoryId(v string) *DescribeEventTopicsInput { + s.DirectoryId = &v + return s +} + +// SetTopicNames sets the TopicNames field's value. +func (s *DescribeEventTopicsInput) SetTopicNames(v []*string) *DescribeEventTopicsInput { + s.TopicNames = v + return s +} + // The result of a DescribeEventTopic request. type DescribeEventTopicsOutput struct { _ struct{} `type:"structure"` @@ -4062,6 +4839,12 @@ func (s DescribeEventTopicsOutput) GoString() string { return s.String() } +// SetEventTopics sets the EventTopics field's value. +func (s *DescribeEventTopicsOutput) SetEventTopics(v []*EventTopic) *DescribeEventTopicsOutput { + s.EventTopics = v + return s +} + // Contains the inputs for the DescribeSnapshots operation. type DescribeSnapshotsInput struct { _ struct{} `type:"structure"` @@ -4092,6 +4875,30 @@ func (s DescribeSnapshotsInput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeSnapshotsInput) SetDirectoryId(v string) *DescribeSnapshotsInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeSnapshotsInput) SetLimit(v int64) *DescribeSnapshotsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput { + s.NextToken = &v + return s +} + +// SetSnapshotIds sets the SnapshotIds field's value. +func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput { + s.SnapshotIds = v + return s +} + // Contains the results of the DescribeSnapshots operation. type DescribeSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -4119,6 +4926,18 @@ func (s DescribeSnapshotsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput { + s.NextToken = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput { + s.Snapshots = v + return s +} + // Describes the trust relationships for a particular Microsoft AD in the AWS // cloud. If no input parameters are are provided, such as directory ID or trust // ID, this request describes all the trust relationships. @@ -4154,6 +4973,30 @@ func (s DescribeTrustsInput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeTrustsInput) SetDirectoryId(v string) *DescribeTrustsInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeTrustsInput) SetLimit(v int64) *DescribeTrustsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTrustsInput) SetNextToken(v string) *DescribeTrustsInput { + s.NextToken = &v + return s +} + +// SetTrustIds sets the TrustIds field's value. +func (s *DescribeTrustsInput) SetTrustIds(v []*string) *DescribeTrustsInput { + s.TrustIds = v + return s +} + // The result of a DescribeTrust request. type DescribeTrustsOutput struct { _ struct{} `type:"structure"` @@ -4182,6 +5025,18 @@ func (s DescribeTrustsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeTrustsOutput) SetNextToken(v string) *DescribeTrustsOutput { + s.NextToken = &v + return s +} + +// SetTrusts sets the Trusts field's value. +func (s *DescribeTrustsOutput) SetTrusts(v []*Trust) *DescribeTrustsOutput { + s.Trusts = v + return s +} + // Contains information for the ConnectDirectory operation when an AD Connector // directory is being created. type DirectoryConnectSettings struct { @@ -4196,11 +5051,11 @@ type DirectoryConnectSettings struct { // The username of an account in the on-premises directory that is used to connect // to the directory. This account must have the following privileges: // - // Read users and groups + // * Read users and groups // - // Create computer objects + // * Create computer objects // - // Join computers to the domain + // * Join computers to the domain // // CustomerUserName is a required field CustomerUserName *string `min:"1" type:"string" required:"true"` @@ -4251,6 +5106,30 @@ func (s *DirectoryConnectSettings) Validate() error { return nil } +// SetCustomerDnsIps sets the CustomerDnsIps field's value. +func (s *DirectoryConnectSettings) SetCustomerDnsIps(v []*string) *DirectoryConnectSettings { + s.CustomerDnsIps = v + return s +} + +// SetCustomerUserName sets the CustomerUserName field's value. +func (s *DirectoryConnectSettings) SetCustomerUserName(v string) *DirectoryConnectSettings { + s.CustomerUserName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DirectoryConnectSettings) SetSubnetIds(v []*string) *DirectoryConnectSettings { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DirectoryConnectSettings) SetVpcId(v string) *DirectoryConnectSettings { + s.VpcId = &v + return s +} + // Contains information about an AD Connector directory. type DirectoryConnectSettingsDescription struct { _ struct{} `type:"structure"` @@ -4284,6 +5163,42 @@ func (s DirectoryConnectSettingsDescription) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DirectoryConnectSettingsDescription) SetAvailabilityZones(v []*string) *DirectoryConnectSettingsDescription { + s.AvailabilityZones = v + return s +} + +// SetConnectIps sets the ConnectIps field's value. +func (s *DirectoryConnectSettingsDescription) SetConnectIps(v []*string) *DirectoryConnectSettingsDescription { + s.ConnectIps = v + return s +} + +// SetCustomerUserName sets the CustomerUserName field's value. +func (s *DirectoryConnectSettingsDescription) SetCustomerUserName(v string) *DirectoryConnectSettingsDescription { + s.CustomerUserName = &v + return s +} + +// SetSecurityGroupId sets the SecurityGroupId field's value. +func (s *DirectoryConnectSettingsDescription) SetSecurityGroupId(v string) *DirectoryConnectSettingsDescription { + s.SecurityGroupId = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DirectoryConnectSettingsDescription) SetSubnetIds(v []*string) *DirectoryConnectSettingsDescription { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DirectoryConnectSettingsDescription) SetVpcId(v string) *DirectoryConnectSettingsDescription { + s.VpcId = &v + return s +} + // Contains information about an AWS Directory Service directory. type DirectoryDescription struct { _ struct{} `type:"structure"` @@ -4366,6 +5281,114 @@ func (s DirectoryDescription) GoString() string { return s.String() } +// SetAccessUrl sets the AccessUrl field's value. +func (s *DirectoryDescription) SetAccessUrl(v string) *DirectoryDescription { + s.AccessUrl = &v + return s +} + +// SetAlias sets the Alias field's value. +func (s *DirectoryDescription) SetAlias(v string) *DirectoryDescription { + s.Alias = &v + return s +} + +// SetConnectSettings sets the ConnectSettings field's value. +func (s *DirectoryDescription) SetConnectSettings(v *DirectoryConnectSettingsDescription) *DirectoryDescription { + s.ConnectSettings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DirectoryDescription) SetDescription(v string) *DirectoryDescription { + s.Description = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *DirectoryDescription) SetDirectoryId(v string) *DirectoryDescription { + s.DirectoryId = &v + return s +} + +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *DirectoryDescription) SetDnsIpAddrs(v []*string) *DirectoryDescription { + s.DnsIpAddrs = v + return s +} + +// SetLaunchTime sets the LaunchTime field's value. +func (s *DirectoryDescription) SetLaunchTime(v time.Time) *DirectoryDescription { + s.LaunchTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *DirectoryDescription) SetName(v string) *DirectoryDescription { + s.Name = &v + return s +} + +// SetRadiusSettings sets the RadiusSettings field's value. +func (s *DirectoryDescription) SetRadiusSettings(v *RadiusSettings) *DirectoryDescription { + s.RadiusSettings = v + return s +} + +// SetRadiusStatus sets the RadiusStatus field's value. +func (s *DirectoryDescription) SetRadiusStatus(v string) *DirectoryDescription { + s.RadiusStatus = &v + return s +} + +// SetShortName sets the ShortName field's value. +func (s *DirectoryDescription) SetShortName(v string) *DirectoryDescription { + s.ShortName = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DirectoryDescription) SetSize(v string) *DirectoryDescription { + s.Size = &v + return s +} + +// SetSsoEnabled sets the SsoEnabled field's value. +func (s *DirectoryDescription) SetSsoEnabled(v bool) *DirectoryDescription { + s.SsoEnabled = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *DirectoryDescription) SetStage(v string) *DirectoryDescription { + s.Stage = &v + return s +} + +// SetStageLastUpdatedDateTime sets the StageLastUpdatedDateTime field's value. +func (s *DirectoryDescription) SetStageLastUpdatedDateTime(v time.Time) *DirectoryDescription { + s.StageLastUpdatedDateTime = &v + return s +} + +// SetStageReason sets the StageReason field's value. +func (s *DirectoryDescription) SetStageReason(v string) *DirectoryDescription { + s.StageReason = &v + return s +} + +// SetType sets the Type field's value. +func (s *DirectoryDescription) SetType(v string) *DirectoryDescription { + s.Type = &v + return s +} + +// SetVpcSettings sets the VpcSettings field's value. +func (s *DirectoryDescription) SetVpcSettings(v *DirectoryVpcSettingsDescription) *DirectoryDescription { + s.VpcSettings = v + return s +} + // Contains directory limit information for a region. type DirectoryLimits struct { _ struct{} `type:"structure"` @@ -4408,6 +5431,60 @@ func (s DirectoryLimits) GoString() string { return s.String() } +// SetCloudOnlyDirectoriesCurrentCount sets the CloudOnlyDirectoriesCurrentCount field's value. +func (s *DirectoryLimits) SetCloudOnlyDirectoriesCurrentCount(v int64) *DirectoryLimits { + s.CloudOnlyDirectoriesCurrentCount = &v + return s +} + +// SetCloudOnlyDirectoriesLimit sets the CloudOnlyDirectoriesLimit field's value. +func (s *DirectoryLimits) SetCloudOnlyDirectoriesLimit(v int64) *DirectoryLimits { + s.CloudOnlyDirectoriesLimit = &v + return s +} + +// SetCloudOnlyDirectoriesLimitReached sets the CloudOnlyDirectoriesLimitReached field's value. +func (s *DirectoryLimits) SetCloudOnlyDirectoriesLimitReached(v bool) *DirectoryLimits { + s.CloudOnlyDirectoriesLimitReached = &v + return s +} + +// SetCloudOnlyMicrosoftADCurrentCount sets the CloudOnlyMicrosoftADCurrentCount field's value. +func (s *DirectoryLimits) SetCloudOnlyMicrosoftADCurrentCount(v int64) *DirectoryLimits { + s.CloudOnlyMicrosoftADCurrentCount = &v + return s +} + +// SetCloudOnlyMicrosoftADLimit sets the CloudOnlyMicrosoftADLimit field's value. +func (s *DirectoryLimits) SetCloudOnlyMicrosoftADLimit(v int64) *DirectoryLimits { + s.CloudOnlyMicrosoftADLimit = &v + return s +} + +// SetCloudOnlyMicrosoftADLimitReached sets the CloudOnlyMicrosoftADLimitReached field's value. +func (s *DirectoryLimits) SetCloudOnlyMicrosoftADLimitReached(v bool) *DirectoryLimits { + s.CloudOnlyMicrosoftADLimitReached = &v + return s +} + +// SetConnectedDirectoriesCurrentCount sets the ConnectedDirectoriesCurrentCount field's value. +func (s *DirectoryLimits) SetConnectedDirectoriesCurrentCount(v int64) *DirectoryLimits { + s.ConnectedDirectoriesCurrentCount = &v + return s +} + +// SetConnectedDirectoriesLimit sets the ConnectedDirectoriesLimit field's value. +func (s *DirectoryLimits) SetConnectedDirectoriesLimit(v int64) *DirectoryLimits { + s.ConnectedDirectoriesLimit = &v + return s +} + +// SetConnectedDirectoriesLimitReached sets the ConnectedDirectoriesLimitReached field's value. +func (s *DirectoryLimits) SetConnectedDirectoriesLimitReached(v bool) *DirectoryLimits { + s.ConnectedDirectoriesLimitReached = &v + return s +} + // Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation. type DirectoryVpcSettings struct { _ struct{} `type:"structure"` @@ -4451,6 +5528,18 @@ func (s *DirectoryVpcSettings) Validate() error { return nil } +// SetSubnetIds sets the SubnetIds field's value. +func (s *DirectoryVpcSettings) SetSubnetIds(v []*string) *DirectoryVpcSettings { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DirectoryVpcSettings) SetVpcId(v string) *DirectoryVpcSettings { + s.VpcId = &v + return s +} + // Contains information about the directory. type DirectoryVpcSettingsDescription struct { _ struct{} `type:"structure"` @@ -4481,6 +5570,30 @@ func (s DirectoryVpcSettingsDescription) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DirectoryVpcSettingsDescription) SetAvailabilityZones(v []*string) *DirectoryVpcSettingsDescription { + s.AvailabilityZones = v + return s +} + +// SetSecurityGroupId sets the SecurityGroupId field's value. +func (s *DirectoryVpcSettingsDescription) SetSecurityGroupId(v string) *DirectoryVpcSettingsDescription { + s.SecurityGroupId = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DirectoryVpcSettingsDescription) SetSubnetIds(v []*string) *DirectoryVpcSettingsDescription { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DirectoryVpcSettingsDescription) SetVpcId(v string) *DirectoryVpcSettingsDescription { + s.VpcId = &v + return s +} + // Contains the inputs for the DisableRadius operation. type DisableRadiusInput struct { _ struct{} `type:"structure"` @@ -4514,6 +5627,12 @@ func (s *DisableRadiusInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DisableRadiusInput) SetDirectoryId(v string) *DisableRadiusInput { + s.DirectoryId = &v + return s +} + // Contains the results of the DisableRadius operation. type DisableRadiusOutput struct { _ struct{} `type:"structure"` @@ -4584,6 +5703,24 @@ func (s *DisableSsoInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DisableSsoInput) SetDirectoryId(v string) *DisableSsoInput { + s.DirectoryId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *DisableSsoInput) SetPassword(v string) *DisableSsoInput { + s.Password = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DisableSsoInput) SetUserName(v string) *DisableSsoInput { + s.UserName = &v + return s +} + // Contains the results of the DisableSso operation. type DisableSsoOutput struct { _ struct{} `type:"structure"` @@ -4645,6 +5782,18 @@ func (s *EnableRadiusInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *EnableRadiusInput) SetDirectoryId(v string) *EnableRadiusInput { + s.DirectoryId = &v + return s +} + +// SetRadiusSettings sets the RadiusSettings field's value. +func (s *EnableRadiusInput) SetRadiusSettings(v *RadiusSettings) *EnableRadiusInput { + s.RadiusSettings = v + return s +} + // Contains the results of the EnableRadius operation. type EnableRadiusOutput struct { _ struct{} `type:"structure"` @@ -4715,6 +5864,24 @@ func (s *EnableSsoInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *EnableSsoInput) SetDirectoryId(v string) *EnableSsoInput { + s.DirectoryId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *EnableSsoInput) SetPassword(v string) *EnableSsoInput { + s.Password = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *EnableSsoInput) SetUserName(v string) *EnableSsoInput { + s.UserName = &v + return s +} + // Contains the results of the EnableSso operation. type EnableSsoOutput struct { _ struct{} `type:"structure"` @@ -4761,6 +5928,36 @@ func (s EventTopic) GoString() string { return s.String() } +// SetCreatedDateTime sets the CreatedDateTime field's value. +func (s *EventTopic) SetCreatedDateTime(v time.Time) *EventTopic { + s.CreatedDateTime = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *EventTopic) SetDirectoryId(v string) *EventTopic { + s.DirectoryId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EventTopic) SetStatus(v string) *EventTopic { + s.Status = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *EventTopic) SetTopicArn(v string) *EventTopic { + s.TopicArn = &v + return s +} + +// SetTopicName sets the TopicName field's value. +func (s *EventTopic) SetTopicName(v string) *EventTopic { + s.TopicName = &v + return s +} + // Contains the inputs for the GetDirectoryLimits operation. type GetDirectoryLimitsInput struct { _ struct{} `type:"structure"` @@ -4795,6 +5992,12 @@ func (s GetDirectoryLimitsOutput) GoString() string { return s.String() } +// SetDirectoryLimits sets the DirectoryLimits field's value. +func (s *GetDirectoryLimitsOutput) SetDirectoryLimits(v *DirectoryLimits) *GetDirectoryLimitsOutput { + s.DirectoryLimits = v + return s +} + // Contains the inputs for the GetSnapshotLimits operation. type GetSnapshotLimitsInput struct { _ struct{} `type:"structure"` @@ -4828,6 +6031,12 @@ func (s *GetSnapshotLimitsInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *GetSnapshotLimitsInput) SetDirectoryId(v string) *GetSnapshotLimitsInput { + s.DirectoryId = &v + return s +} + // Contains the results of the GetSnapshotLimits operation. type GetSnapshotLimitsOutput struct { _ struct{} `type:"structure"` @@ -4847,6 +6056,12 @@ func (s GetSnapshotLimitsOutput) GoString() string { return s.String() } +// SetSnapshotLimits sets the SnapshotLimits field's value. +func (s *GetSnapshotLimitsOutput) SetSnapshotLimits(v *SnapshotLimits) *GetSnapshotLimitsOutput { + s.SnapshotLimits = v + return s +} + // IP address block. This is often the address block of the DNS server used // for your on-premises domain. type IpRoute struct { @@ -4871,6 +6086,18 @@ func (s IpRoute) GoString() string { return s.String() } +// SetCidrIp sets the CidrIp field's value. +func (s *IpRoute) SetCidrIp(v string) *IpRoute { + s.CidrIp = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *IpRoute) SetDescription(v string) *IpRoute { + s.Description = &v + return s +} + // Information about one or more IP address blocks. type IpRouteInfo struct { _ struct{} `type:"structure"` @@ -4904,6 +6131,42 @@ func (s IpRouteInfo) GoString() string { return s.String() } +// SetAddedDateTime sets the AddedDateTime field's value. +func (s *IpRouteInfo) SetAddedDateTime(v time.Time) *IpRouteInfo { + s.AddedDateTime = &v + return s +} + +// SetCidrIp sets the CidrIp field's value. +func (s *IpRouteInfo) SetCidrIp(v string) *IpRouteInfo { + s.CidrIp = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *IpRouteInfo) SetDescription(v string) *IpRouteInfo { + s.Description = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *IpRouteInfo) SetDirectoryId(v string) *IpRouteInfo { + s.DirectoryId = &v + return s +} + +// SetIpRouteStatusMsg sets the IpRouteStatusMsg field's value. +func (s *IpRouteInfo) SetIpRouteStatusMsg(v string) *IpRouteInfo { + s.IpRouteStatusMsg = &v + return s +} + +// SetIpRouteStatusReason sets the IpRouteStatusReason field's value. +func (s *IpRouteInfo) SetIpRouteStatusReason(v string) *IpRouteInfo { + s.IpRouteStatusReason = &v + return s +} + type ListIpRoutesInput struct { _ struct{} `type:"structure"` @@ -4944,6 +6207,24 @@ func (s *ListIpRoutesInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *ListIpRoutesInput) SetDirectoryId(v string) *ListIpRoutesInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListIpRoutesInput) SetLimit(v int64) *ListIpRoutesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIpRoutesInput) SetNextToken(v string) *ListIpRoutesInput { + s.NextToken = &v + return s +} + type ListIpRoutesOutput struct { _ struct{} `type:"structure"` @@ -4966,6 +6247,110 @@ func (s ListIpRoutesOutput) GoString() string { return s.String() } +// SetIpRoutesInfo sets the IpRoutesInfo field's value. +func (s *ListIpRoutesOutput) SetIpRoutesInfo(v []*IpRouteInfo) *ListIpRoutesOutput { + s.IpRoutesInfo = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIpRoutesOutput) SetNextToken(v string) *ListIpRoutesOutput { + s.NextToken = &v + return s +} + +type ListSchemaExtensionsInput struct { + _ struct{} `type:"structure"` + + // The identifier of the directory from which to retrieve the schema extension + // information. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The maximum number of items to return. + Limit *int64 `type:"integer"` + + // The ListSchemaExtensions.NextToken value from a previous call to ListSchemaExtensions. + // Pass null if this is the first call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListSchemaExtensionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSchemaExtensionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSchemaExtensionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSchemaExtensionsInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *ListSchemaExtensionsInput) SetDirectoryId(v string) *ListSchemaExtensionsInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListSchemaExtensionsInput) SetLimit(v int64) *ListSchemaExtensionsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSchemaExtensionsInput) SetNextToken(v string) *ListSchemaExtensionsInput { + s.NextToken = &v + return s +} + +type ListSchemaExtensionsOutput struct { + _ struct{} `type:"structure"` + + // If not null, more results are available. Pass this value for the NextToken + // parameter in a subsequent call to ListSchemaExtensions to retrieve the next + // set of items. + NextToken *string `type:"string"` + + // Information about the schema extensions applied to the directory. + SchemaExtensionsInfo []*SchemaExtensionInfo `type:"list"` +} + +// String returns the string representation +func (s ListSchemaExtensionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSchemaExtensionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSchemaExtensionsOutput) SetNextToken(v string) *ListSchemaExtensionsOutput { + s.NextToken = &v + return s +} + +// SetSchemaExtensionsInfo sets the SchemaExtensionsInfo field's value. +func (s *ListSchemaExtensionsOutput) SetSchemaExtensionsInfo(v []*SchemaExtensionInfo) *ListSchemaExtensionsOutput { + s.SchemaExtensionsInfo = v + return s +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -5004,6 +6389,24 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListTagsForResourceInput) SetLimit(v int64) *ListTagsForResourceInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { + s.NextToken = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ListTagsForResourceInput) SetResourceId(v string) *ListTagsForResourceInput { + s.ResourceId = &v + return s +} + type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -5024,6 +6427,18 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // Contains information about a Remote Authentication Dial In User Service (RADIUS) // server. type RadiusSettings struct { @@ -5090,6 +6505,54 @@ func (s *RadiusSettings) Validate() error { return nil } +// SetAuthenticationProtocol sets the AuthenticationProtocol field's value. +func (s *RadiusSettings) SetAuthenticationProtocol(v string) *RadiusSettings { + s.AuthenticationProtocol = &v + return s +} + +// SetDisplayLabel sets the DisplayLabel field's value. +func (s *RadiusSettings) SetDisplayLabel(v string) *RadiusSettings { + s.DisplayLabel = &v + return s +} + +// SetRadiusPort sets the RadiusPort field's value. +func (s *RadiusSettings) SetRadiusPort(v int64) *RadiusSettings { + s.RadiusPort = &v + return s +} + +// SetRadiusRetries sets the RadiusRetries field's value. +func (s *RadiusSettings) SetRadiusRetries(v int64) *RadiusSettings { + s.RadiusRetries = &v + return s +} + +// SetRadiusServers sets the RadiusServers field's value. +func (s *RadiusSettings) SetRadiusServers(v []*string) *RadiusSettings { + s.RadiusServers = v + return s +} + +// SetRadiusTimeout sets the RadiusTimeout field's value. +func (s *RadiusSettings) SetRadiusTimeout(v int64) *RadiusSettings { + s.RadiusTimeout = &v + return s +} + +// SetSharedSecret sets the SharedSecret field's value. +func (s *RadiusSettings) SetSharedSecret(v string) *RadiusSettings { + s.SharedSecret = &v + return s +} + +// SetUseSameUsername sets the UseSameUsername field's value. +func (s *RadiusSettings) SetUseSameUsername(v bool) *RadiusSettings { + s.UseSameUsername = &v + return s +} + // Registers a new event topic. type RegisterEventTopicInput struct { _ struct{} `type:"structure"` @@ -5135,6 +6598,18 @@ func (s *RegisterEventTopicInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *RegisterEventTopicInput) SetDirectoryId(v string) *RegisterEventTopicInput { + s.DirectoryId = &v + return s +} + +// SetTopicName sets the TopicName field's value. +func (s *RegisterEventTopicInput) SetTopicName(v string) *RegisterEventTopicInput { + s.TopicName = &v + return s +} + // The result of a RegisterEventTopic request. type RegisterEventTopicOutput struct { _ struct{} `type:"structure"` @@ -5190,6 +6665,18 @@ func (s *RemoveIpRoutesInput) Validate() error { return nil } +// SetCidrIps sets the CidrIps field's value. +func (s *RemoveIpRoutesInput) SetCidrIps(v []*string) *RemoveIpRoutesInput { + s.CidrIps = v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *RemoveIpRoutesInput) SetDirectoryId(v string) *RemoveIpRoutesInput { + s.DirectoryId = &v + return s +} + type RemoveIpRoutesOutput struct { _ struct{} `type:"structure"` } @@ -5244,6 +6731,18 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsFromResourceInput) SetResourceId(v string) *RemoveTagsFromResourceInput { + s.ResourceId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + type RemoveTagsFromResourceOutput struct { _ struct{} `type:"structure"` } @@ -5291,6 +6790,12 @@ func (s *RestoreFromSnapshotInput) Validate() error { return nil } +// SetSnapshotId sets the SnapshotId field's value. +func (s *RestoreFromSnapshotInput) SetSnapshotId(v string) *RestoreFromSnapshotInput { + s.SnapshotId = &v + return s +} + // Contains the results of the RestoreFromSnapshot operation. type RestoreFromSnapshotOutput struct { _ struct{} `type:"structure"` @@ -5306,6 +6811,85 @@ func (s RestoreFromSnapshotOutput) GoString() string { return s.String() } +// Information about a schema extension. +type SchemaExtensionInfo struct { + _ struct{} `type:"structure"` + + // A description of the schema extension. + Description *string `type:"string"` + + // The identifier of the directory to which the schema extension is applied. + DirectoryId *string `type:"string"` + + // The date and time that the schema extension was completed. + EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The identifier of the schema extension. + SchemaExtensionId *string `type:"string"` + + // The current status of the schema extension. + SchemaExtensionStatus *string `type:"string" enum:"SchemaExtensionStatus"` + + // The reason for the SchemaExtensionStatus. + SchemaExtensionStatusReason *string `type:"string"` + + // The date and time that the schema extension started being applied to the + // directory. + StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s SchemaExtensionInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SchemaExtensionInfo) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *SchemaExtensionInfo) SetDescription(v string) *SchemaExtensionInfo { + s.Description = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *SchemaExtensionInfo) SetDirectoryId(v string) *SchemaExtensionInfo { + s.DirectoryId = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *SchemaExtensionInfo) SetEndDateTime(v time.Time) *SchemaExtensionInfo { + s.EndDateTime = &v + return s +} + +// SetSchemaExtensionId sets the SchemaExtensionId field's value. +func (s *SchemaExtensionInfo) SetSchemaExtensionId(v string) *SchemaExtensionInfo { + s.SchemaExtensionId = &v + return s +} + +// SetSchemaExtensionStatus sets the SchemaExtensionStatus field's value. +func (s *SchemaExtensionInfo) SetSchemaExtensionStatus(v string) *SchemaExtensionInfo { + s.SchemaExtensionStatus = &v + return s +} + +// SetSchemaExtensionStatusReason sets the SchemaExtensionStatusReason field's value. +func (s *SchemaExtensionInfo) SetSchemaExtensionStatusReason(v string) *SchemaExtensionInfo { + s.SchemaExtensionStatusReason = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *SchemaExtensionInfo) SetStartDateTime(v time.Time) *SchemaExtensionInfo { + s.StartDateTime = &v + return s +} + // Describes a directory snapshot. type Snapshot struct { _ struct{} `type:"structure"` @@ -5339,6 +6923,42 @@ func (s Snapshot) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *Snapshot) SetDirectoryId(v string) *Snapshot { + s.DirectoryId = &v + return s +} + +// SetName sets the Name field's value. +func (s *Snapshot) SetName(v string) *Snapshot { + s.Name = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *Snapshot) SetSnapshotId(v string) *Snapshot { + s.SnapshotId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Snapshot) SetStartTime(v time.Time) *Snapshot { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Snapshot) SetStatus(v string) *Snapshot { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *Snapshot) SetType(v string) *Snapshot { + s.Type = &v + return s +} + // Contains manual snapshot limit information for a directory. type SnapshotLimits struct { _ struct{} `type:"structure"` @@ -5363,6 +6983,132 @@ func (s SnapshotLimits) GoString() string { return s.String() } +// SetManualSnapshotsCurrentCount sets the ManualSnapshotsCurrentCount field's value. +func (s *SnapshotLimits) SetManualSnapshotsCurrentCount(v int64) *SnapshotLimits { + s.ManualSnapshotsCurrentCount = &v + return s +} + +// SetManualSnapshotsLimit sets the ManualSnapshotsLimit field's value. +func (s *SnapshotLimits) SetManualSnapshotsLimit(v int64) *SnapshotLimits { + s.ManualSnapshotsLimit = &v + return s +} + +// SetManualSnapshotsLimitReached sets the ManualSnapshotsLimitReached field's value. +func (s *SnapshotLimits) SetManualSnapshotsLimitReached(v bool) *SnapshotLimits { + s.ManualSnapshotsLimitReached = &v + return s +} + +type StartSchemaExtensionInput struct { + _ struct{} `type:"structure"` + + // If true, creates a snapshot of the directory before applying the schema extension. + // + // CreateSnapshotBeforeSchemaExtension is a required field + CreateSnapshotBeforeSchemaExtension *bool `type:"boolean" required:"true"` + + // A description of the schema extension. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The identifier of the directory for which the schema extension will be applied + // to. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The LDIF file represented as a string. The file size can be no larger than + // 1MB. + // + // LdifContent is a required field + LdifContent *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartSchemaExtensionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartSchemaExtensionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartSchemaExtensionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartSchemaExtensionInput"} + if s.CreateSnapshotBeforeSchemaExtension == nil { + invalidParams.Add(request.NewErrParamRequired("CreateSnapshotBeforeSchemaExtension")) + } + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + if s.LdifContent == nil { + invalidParams.Add(request.NewErrParamRequired("LdifContent")) + } + if s.LdifContent != nil && len(*s.LdifContent) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LdifContent", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreateSnapshotBeforeSchemaExtension sets the CreateSnapshotBeforeSchemaExtension field's value. +func (s *StartSchemaExtensionInput) SetCreateSnapshotBeforeSchemaExtension(v bool) *StartSchemaExtensionInput { + s.CreateSnapshotBeforeSchemaExtension = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *StartSchemaExtensionInput) SetDescription(v string) *StartSchemaExtensionInput { + s.Description = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *StartSchemaExtensionInput) SetDirectoryId(v string) *StartSchemaExtensionInput { + s.DirectoryId = &v + return s +} + +// SetLdifContent sets the LdifContent field's value. +func (s *StartSchemaExtensionInput) SetLdifContent(v string) *StartSchemaExtensionInput { + s.LdifContent = &v + return s +} + +type StartSchemaExtensionOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the schema extension that will be applied. + SchemaExtensionId *string `type:"string"` +} + +// String returns the string representation +func (s StartSchemaExtensionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartSchemaExtensionOutput) GoString() string { + return s.String() +} + +// SetSchemaExtensionId sets the SchemaExtensionId field's value. +func (s *StartSchemaExtensionOutput) SetSchemaExtensionId(v string) *StartSchemaExtensionOutput { + s.SchemaExtensionId = &v + return s +} + // Metadata assigned to an Amazon Directory Services directory consisting of // a key-value pair. type Tag struct { @@ -5412,6 +7158,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Describes a trust relationship between an Microsoft AD in the AWS cloud and // an external domain. type Trust struct { @@ -5459,6 +7217,66 @@ func (s Trust) GoString() string { return s.String() } +// SetCreatedDateTime sets the CreatedDateTime field's value. +func (s *Trust) SetCreatedDateTime(v time.Time) *Trust { + s.CreatedDateTime = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *Trust) SetDirectoryId(v string) *Trust { + s.DirectoryId = &v + return s +} + +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *Trust) SetLastUpdatedDateTime(v time.Time) *Trust { + s.LastUpdatedDateTime = &v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *Trust) SetRemoteDomainName(v string) *Trust { + s.RemoteDomainName = &v + return s +} + +// SetStateLastUpdatedDateTime sets the StateLastUpdatedDateTime field's value. +func (s *Trust) SetStateLastUpdatedDateTime(v time.Time) *Trust { + s.StateLastUpdatedDateTime = &v + return s +} + +// SetTrustDirection sets the TrustDirection field's value. +func (s *Trust) SetTrustDirection(v string) *Trust { + s.TrustDirection = &v + return s +} + +// SetTrustId sets the TrustId field's value. +func (s *Trust) SetTrustId(v string) *Trust { + s.TrustId = &v + return s +} + +// SetTrustState sets the TrustState field's value. +func (s *Trust) SetTrustState(v string) *Trust { + s.TrustState = &v + return s +} + +// SetTrustStateReason sets the TrustStateReason field's value. +func (s *Trust) SetTrustStateReason(v string) *Trust { + s.TrustStateReason = &v + return s +} + +// SetTrustType sets the TrustType field's value. +func (s *Trust) SetTrustType(v string) *Trust { + s.TrustType = &v + return s +} + // Updates a conditional forwarder. type UpdateConditionalForwarderInput struct { _ struct{} `type:"structure"` @@ -5511,6 +7329,24 @@ func (s *UpdateConditionalForwarderInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *UpdateConditionalForwarderInput) SetDirectoryId(v string) *UpdateConditionalForwarderInput { + s.DirectoryId = &v + return s +} + +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *UpdateConditionalForwarderInput) SetDnsIpAddrs(v []*string) *UpdateConditionalForwarderInput { + s.DnsIpAddrs = v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *UpdateConditionalForwarderInput) SetRemoteDomainName(v string) *UpdateConditionalForwarderInput { + s.RemoteDomainName = &v + return s +} + // The result of an UpdateConditionalForwarder request. type UpdateConditionalForwarderOutput struct { _ struct{} `type:"structure"` @@ -5572,6 +7408,18 @@ func (s *UpdateRadiusInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *UpdateRadiusInput) SetDirectoryId(v string) *UpdateRadiusInput { + s.DirectoryId = &v + return s +} + +// SetRadiusSettings sets the RadiusSettings field's value. +func (s *UpdateRadiusInput) SetRadiusSettings(v *RadiusSettings) *UpdateRadiusInput { + s.RadiusSettings = v + return s +} + // Contains the results of the UpdateRadius operation. type UpdateRadiusOutput struct { _ struct{} `type:"structure"` @@ -5621,6 +7469,12 @@ func (s *VerifyTrustInput) Validate() error { return nil } +// SetTrustId sets the TrustId field's value. +func (s *VerifyTrustInput) SetTrustId(v string) *VerifyTrustInput { + s.TrustId = &v + return s +} + // Result of a VerifyTrust request. type VerifyTrustOutput struct { _ struct{} `type:"structure"` @@ -5639,6 +7493,12 @@ func (s VerifyTrustOutput) GoString() string { return s.String() } +// SetTrustId sets the TrustId field's value. +func (s *VerifyTrustOutput) SetTrustId(v string) *VerifyTrustOutput { + s.TrustId = &v + return s +} + const ( // DirectorySizeSmall is a DirectorySize enum value DirectorySizeSmall = "Small" @@ -5743,6 +7603,35 @@ const ( ReplicationScopeDomain = "Domain" ) +const ( + // SchemaExtensionStatusInitializing is a SchemaExtensionStatus enum value + SchemaExtensionStatusInitializing = "Initializing" + + // SchemaExtensionStatusCreatingSnapshot is a SchemaExtensionStatus enum value + SchemaExtensionStatusCreatingSnapshot = "CreatingSnapshot" + + // SchemaExtensionStatusUpdatingSchema is a SchemaExtensionStatus enum value + SchemaExtensionStatusUpdatingSchema = "UpdatingSchema" + + // SchemaExtensionStatusReplicating is a SchemaExtensionStatus enum value + SchemaExtensionStatusReplicating = "Replicating" + + // SchemaExtensionStatusCancelInProgress is a SchemaExtensionStatus enum value + SchemaExtensionStatusCancelInProgress = "CancelInProgress" + + // SchemaExtensionStatusRollbackInProgress is a SchemaExtensionStatus enum value + SchemaExtensionStatusRollbackInProgress = "RollbackInProgress" + + // SchemaExtensionStatusCancelled is a SchemaExtensionStatus enum value + SchemaExtensionStatusCancelled = "Cancelled" + + // SchemaExtensionStatusFailed is a SchemaExtensionStatus enum value + SchemaExtensionStatusFailed = "Failed" + + // SchemaExtensionStatusCompleted is a SchemaExtensionStatus enum value + SchemaExtensionStatusCompleted = "Completed" +) + const ( // SnapshotStatusCreating is a SnapshotStatus enum value SnapshotStatusCreating = "Creating" diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go index 1412fe3db..a1ce9ceb3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go @@ -72,21 +72,21 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // operation returns a value for UnprocessedKeys. You can use this value to // retry the operation starting with the next item to get. // -// If you request more than 100 items BatchGetItem will return a ValidationException +// If you request more than 100 items BatchGetItem will return a ValidationException // with the message "Too many items requested for the BatchGetItem call". // -// For example, if you ask to retrieve 100 items, but each individual item -// is 300 KB in size, the system returns 52 items (so as not to exceed the 16 -// MB limit). It also returns an appropriate UnprocessedKeys value so you can -// get the next page of results. If desired, your application can include its -// own logic to assemble the pages of results into one data set. +// For example, if you ask to retrieve 100 items, but each individual item is +// 300 KB in size, the system returns 52 items (so as not to exceed the 16 MB +// limit). It also returns an appropriate UnprocessedKeys value so you can get +// the next page of results. If desired, your application can include its own +// logic to assemble the pages of results into one data set. // // If none of the items can be processed due to insufficient provisioned throughput // on all of the tables in the request, then BatchGetItem will return a ProvisionedThroughputExceededException. // If at least one of the items is successfully processed, then BatchGetItem // completes successfully, while returning the keys of the unread items in UnprocessedKeys. // -// If DynamoDB returns any unprocessed items, you should retry the batch operation +// If DynamoDB returns any unprocessed items, you should retry the batch operation // on those items. However, we strongly recommend that you use an exponential // backoff algorithm. If you retry the batch operation immediately, the underlying // read or write requests can still fail due to throttling on the individual @@ -96,9 +96,9 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // For more information, see Batch Operations and Error Handling (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#BatchOperations) // in the Amazon DynamoDB Developer Guide. // -// By default, BatchGetItem performs eventually consistent reads on every -// table in the request. If you want strongly consistent reads instead, you -// can set ConsistentRead to true for any or all tables. +// By default, BatchGetItem performs eventually consistent reads on every table +// in the request. If you want strongly consistent reads instead, you can set +// ConsistentRead to true for any or all tables. // // In order to minimize response latency, BatchGetItem retrieves items in parallel. // @@ -216,10 +216,9 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // can comprise as many as 25 put or delete requests. Individual items to be // written can be as large as 400 KB. // -// BatchWriteItem cannot update items. To update items, use the UpdateItem -// API. +// BatchWriteItem cannot update items. To update items, use the UpdateItem API. // -// The individual PutItem and DeleteItem operations specified in BatchWriteItem +// The individual PutItem and DeleteItem operations specified in BatchWriteItem // are atomic; however BatchWriteItem as a whole is not. If any requested operations // fail because the table's provisioned throughput is exceeded or an internal // processing failure occurs, the failed operations are returned in the UnprocessedItems @@ -232,7 +231,7 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // throughput on all of the tables in the request, then BatchWriteItem will // return a ProvisionedThroughputExceededException. // -// If DynamoDB returns any unprocessed items, you should retry the batch operation +// If DynamoDB returns any unprocessed items, you should retry the batch operation // on those items. However, we strongly recommend that you use an exponential // backoff algorithm. If you retry the batch operation immediately, the underlying // read or write requests can still fail due to throttling on the individual @@ -242,8 +241,8 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // For more information, see Batch Operations and Error Handling (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#BatchOperations) // in the Amazon DynamoDB Developer Guide. // -// With BatchWriteItem, you can efficiently write or delete large amounts -// of data, such as from Amazon Elastic MapReduce (EMR), or copy data from another +// With BatchWriteItem, you can efficiently write or delete large amounts of +// data, such as from Amazon Elastic MapReduce (EMR), or copy data from another // database into DynamoDB. In order to improve performance with these large-scale // operations, BatchWriteItem does not behave in the same way as individual // PutItem and DeleteItem calls would. For example, you cannot specify conditions @@ -266,20 +265,21 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // If one or more of the following is true, DynamoDB rejects the entire batch // write operation: // -// One or more tables specified in the BatchWriteItem request does not exist. +// * One or more tables specified in the BatchWriteItem request does not +// exist. // -// Primary key attributes specified on an item in the request do not match -// those in the corresponding table's primary key schema. +// * Primary key attributes specified on an item in the request do not match +// those in the corresponding table's primary key schema. // -// You try to perform multiple operations on the same item in the same BatchWriteItem -// request. For example, you cannot put and delete the same item in the same -// BatchWriteItem request. +// * You try to perform multiple operations on the same item in the same +// BatchWriteItem request. For example, you cannot put and delete the same +// item in the same BatchWriteItem request. // -// There are more than 25 requests in the batch. +// * There are more than 25 requests in the batch. // -// Any individual item in a batch exceeds 400 KB. +// * Any individual item in a batch exceeds 400 KB. // -// The total request size exceeds 16 MB. +// * The total request size exceeds 16 MB. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -363,10 +363,10 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // table names must be unique within each region. That is, you can have two // tables with same name if you create the tables in different regions. // -// CreateTable is an asynchronous operation. Upon receiving a CreateTable -// request, DynamoDB immediately returns a response with a TableStatus of CREATING. -// After the table is created, DynamoDB sets the TableStatus to ACTIVE. You -// can perform read and write operations only on an ACTIVE table. +// CreateTable is an asynchronous operation. Upon receiving a CreateTable request, +// DynamoDB immediately returns a response with a TableStatus of CREATING. After +// the table is created, DynamoDB sets the TableStatus to ACTIVE. You can perform +// read and write operations only on an ACTIVE table. // // You can optionally define secondary indexes on the new table, as part of // the CreateTable operation. If you want to create multiple tables with secondary @@ -555,11 +555,11 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // If the specified table does not exist, DynamoDB returns a ResourceNotFoundException. // If table is already in the DELETING state, no error is returned. // -// DynamoDB might continue to accept data read and write operations, such -// as GetItem and PutItem, on a table in the DELETING state until the table -// deletion is complete. +// DynamoDB might continue to accept data read and write operations, such as +// GetItem and PutItem, on a table in the DELETING state until the table deletion +// is complete. // -// When you delete a table, any indexes on that table are also deleted. +// When you delete a table, any indexes on that table are also deleted. // // If you have DynamoDB Streams enabled on the table, then the corresponding // stream on that table goes into the DISABLED state, and the stream is automatically @@ -667,45 +667,44 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque // // For example, you could use one of the AWS SDKs to do the following: // -// Call DescribeLimits for a particular region to obtain your current account +// Call DescribeLimits for a particular region to obtain your current account // limits on provisioned capacity there. // -// Create a variable to hold the aggregate read capacity units provisioned -// for all your tables in that region, and one to hold the aggregate write capacity +// Create a variable to hold the aggregate read capacity units provisioned for +// all your tables in that region, and one to hold the aggregate write capacity // units. Zero them both. // -// Call ListTables to obtain a list of all your DynamoDB tables. +// Call ListTables to obtain a list of all your DynamoDB tables. // -// For each table name listed by ListTables, do the following: +// For each table name listed by ListTables, do the following: // -// Call DescribeTable with the table name. +// Call DescribeTable with the table name. // -// Use the data returned by DescribeTable to add the read capacity units and +// Use the data returned by DescribeTable to add the read capacity units and // write capacity units provisioned for the table itself to your variables. // -// If the table has one or more global secondary indexes (GSIs), loop over -// these GSIs and add their provisioned capacity values to your variables as -// well. +// If the table has one or more global secondary indexes (GSIs), loop over these +// GSIs and add their provisioned capacity values to your variables as well. // -// Report the account limits for that region returned by DescribeLimits, -// along with the total current provisioned capacity levels you have calculated. +// Report the account limits for that region returned by DescribeLimits, along +// with the total current provisioned capacity levels you have calculated. // -// This will let you see whether you are getting close to your account-level +// This will let you see whether you are getting close to your account-level // limits. // -// The per-table limits apply only when you are creating a new table. They -// restrict the sum of the provisioned capacity of the new table itself and -// all its global secondary indexes. +// The per-table limits apply only when you are creating a new table. They restrict +// the sum of the provisioned capacity of the new table itself and all its global +// secondary indexes. // // For existing tables and their GSIs, DynamoDB will not let you increase provisioned // capacity extremely rapidly, but the only upper limit that applies is that // the aggregate provisioned capacity over all your tables and GSIs cannot exceed // either of the per-account limits. // -// DescribeLimits should only be called periodically. You can expect throttling +// DescribeLimits should only be called periodically. You can expect throttling // errors if you call it more than once in a minute. // -// The DescribeLimits Request element has no content. +// The DescribeLimits Request element has no content. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -773,7 +772,7 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request // table, when it was created, the primary key schema, and any indexes on the // table. // -// If you issue a DescribeTable request immediately after a CreateTable request, +// If you issue a DescribeTable request immediately after a CreateTable request, // DynamoDB might return a ResourceNotFoundException. This is because DescribeTable // uses an eventually consistent query, and the metadata for your table might // not be available at that moment. Wait for a few seconds, and then try the @@ -848,7 +847,7 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // The GetItem operation returns a set of attributes for the item with the given // primary key. If there is no matching item, GetItem does not return any data. // -// GetItem provides an eventually consistent read by default. If your application +// GetItem provides an eventually consistent read by default. If your application // requires a strongly consistent read, set ConsistentRead to true. Although // a strongly consistent read might take more time than an eventually consistent // read, it always returns the last updated value. @@ -1043,13 +1042,13 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // the update) or a copy of the updated item (after the update). For more information, // see the ReturnValues description below. // -// To prevent a new item from replacing an existing item, use a conditional +// To prevent a new item from replacing an existing item, use a conditional // expression that contains the attribute_not_exists function with the name // of the attribute being used as the partition key for the table. Since every // record must contain that attribute, the attribute_not_exists function will // only succeed if no matching item exists. // -// For more information about using this API, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) +// For more information about using this API, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) // in the Amazon DynamoDB Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1487,17 +1486,17 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // // You can only perform one of the following operations at once: // -// Modify the provisioned throughput settings of the table. +// * Modify the provisioned throughput settings of the table. // -// Enable or disable Streams on the table. +// * Enable or disable Streams on the table. // -// Remove a global secondary index from the table. +// * Remove a global secondary index from the table. // -// Create a new global secondary index on the table. Once the index begins -// backfilling, you can use UpdateTable to perform other operations. +// * Create a new global secondary index on the table. Once the index begins +// backfilling, you can use UpdateTable to perform other operations. // -// UpdateTable is an asynchronous operation; while it is executing, the -// table status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot +// UpdateTable is an asynchronous operation; while it is executing, the table +// status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot // issue another UpdateTable request. When the table returns to the ACTIVE state, // the UpdateTable operation is complete. // @@ -1548,11 +1547,11 @@ type AttributeDefinition struct { // The data type for the attribute, where: // - // S - the attribute is of type String + // * S - the attribute is of type String // - // N - the attribute is of type Number + // * N - the attribute is of type Number // - // B - the attribute is of type Binary + // * B - the attribute is of type Binary // // AttributeType is a required field AttributeType *string `type:"string" required:"true" enum:"ScalarAttributeType"` @@ -1587,6 +1586,18 @@ func (s *AttributeDefinition) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *AttributeDefinition) SetAttributeName(v string) *AttributeDefinition { + s.AttributeName = &v + return s +} + +// SetAttributeType sets the AttributeType field's value. +func (s *AttributeDefinition) SetAttributeType(v string) *AttributeDefinition { + s.AttributeType = &v + return s +} + // Represents the data for an attribute. You can set one, and only one, of the // elements. // @@ -1640,16 +1651,76 @@ func (s AttributeValue) GoString() string { return s.String() } +// SetB sets the B field's value. +func (s *AttributeValue) SetB(v []byte) *AttributeValue { + s.B = v + return s +} + +// SetBOOL sets the BOOL field's value. +func (s *AttributeValue) SetBOOL(v bool) *AttributeValue { + s.BOOL = &v + return s +} + +// SetBS sets the BS field's value. +func (s *AttributeValue) SetBS(v [][]byte) *AttributeValue { + s.BS = v + return s +} + +// SetL sets the L field's value. +func (s *AttributeValue) SetL(v []*AttributeValue) *AttributeValue { + s.L = v + return s +} + +// SetM sets the M field's value. +func (s *AttributeValue) SetM(v map[string]*AttributeValue) *AttributeValue { + s.M = v + return s +} + +// SetN sets the N field's value. +func (s *AttributeValue) SetN(v string) *AttributeValue { + s.N = &v + return s +} + +// SetNS sets the NS field's value. +func (s *AttributeValue) SetNS(v []*string) *AttributeValue { + s.NS = v + return s +} + +// SetNULL sets the NULL field's value. +func (s *AttributeValue) SetNULL(v bool) *AttributeValue { + s.NULL = &v + return s +} + +// SetS sets the S field's value. +func (s *AttributeValue) SetS(v string) *AttributeValue { + s.S = &v + return s +} + +// SetSS sets the SS field's value. +func (s *AttributeValue) SetSS(v []*string) *AttributeValue { + s.SS = v + return s +} + // For the UpdateItem operation, represents the attributes to be modified, the // action to perform on each, and the new value for each. // -// You cannot use UpdateItem to update any primary key attributes. Instead, +// You cannot use UpdateItem to update any primary key attributes. Instead, // you will need to delete the item, and then use PutItem to create a new item // with new attributes. // -// Attribute values cannot be null; string and binary type attributes must -// have lengths greater than zero; and set type attributes must not be empty. -// Requests with empty values will be rejected with a ValidationException exception. +// Attribute values cannot be null; string and binary type attributes must have +// lengths greater than zero; and set type attributes must not be empty. Requests +// with empty values will be rejected with a ValidationException exception. type AttributeValueUpdate struct { _ struct{} `type:"structure"` @@ -1657,64 +1728,65 @@ type AttributeValueUpdate struct { // and ADD. The behavior depends on whether the specified primary key already // exists in the table. // - // If an item with the specified Key is found in the table: + // If an item with the specified Key is found in the table: // - // PUT - Adds the specified attribute to the item. If the attribute already - // exists, it is replaced by the new value. + // * PUT - Adds the specified attribute to the item. If the attribute already + // exists, it is replaced by the new value. // - // DELETE - If no value is specified, the attribute and its value are removed - // from the item. The data type of the specified value must match the existing - // value's data type. + // * DELETE - If no value is specified, the attribute and its value are removed + // from the item. The data type of the specified value must match the existing + // value's data type. // // If a set of values is specified, then those values are subtracted from the - // old set. For example, if the attribute value was the set [a,b,c] and the - // DELETE action specified [a,c], then the final attribute value would be [b]. - // Specifying an empty set is an error. + // old set. For example, if the attribute value was the set [a,b,c] and the + // DELETE action specified [a,c], then the final attribute value would be + // [b]. Specifying an empty set is an error. // - // ADD - If the attribute does not already exist, then the attribute and - // its values are added to the item. If the attribute does exist, then the behavior - // of ADD depends on the data type of the attribute: + // * ADD - If the attribute does not already exist, then the attribute and + // its values are added to the item. If the attribute does exist, then the + // behavior of ADD depends on the data type of the attribute: // - // If the existing attribute is a number, and if Value is also a number, - // then the Value is mathematically added to the existing attribute. If Value - // is a negative number, then it is subtracted from the existing attribute. + // If the existing attribute is a number, and if Value is also a number, then + // the Value is mathematically added to the existing attribute. If Value + // is a negative number, then it is subtracted from the existing attribute. // - // If you use ADD to increment or decrement a number value for an item that - // doesn't exist before the update, DynamoDB uses 0 as the initial value. + // If you use ADD to increment or decrement a number value for an item that + // doesn't exist before the update, DynamoDB uses 0 as the initial value. // // In addition, if you use ADD to update an existing item, and intend to increment - // or decrement an attribute value which does not yet exist, DynamoDB uses 0 - // as the initial value. For example, suppose that the item you want to update - // does not yet have an attribute named itemcount, but you decide to ADD the - // number 3 to this attribute anyway, even though it currently does not exist. - // DynamoDB will create the itemcount attribute, set its initial value to 0, - // and finally add 3 to it. The result will be a new itemcount attribute in - // the item, with a value of 3. + // or decrement an attribute value which does not yet exist, DynamoDB uses + // 0 as the initial value. For example, suppose that the item you want to + // update does not yet have an attribute named itemcount, but you decide + // to ADD the number 3 to this attribute anyway, even though it currently + // does not exist. DynamoDB will create the itemcount attribute, set its + // initial value to 0, and finally add 3 to it. The result will be a new + // itemcount attribute in the item, with a value of 3. // - // If the existing data type is a set, and if the Value is also a set, then - // the Value is added to the existing set. (This is a set operation, not mathematical - // addition.) For example, if the attribute value was the set [1,2], and the - // ADD action specified [3], then the final attribute value would be [1,2,3]. - // An error occurs if an Add action is specified for a set attribute and the - // attribute type specified does not match the existing set type. + // If the existing data type is a set, and if the Value is also a set, then + // the Value is added to the existing set. (This is a set operation, not + // mathematical addition.) For example, if the attribute value was the set + // [1,2], and the ADD action specified [3], then the final attribute value + // would be [1,2,3]. An error occurs if an Add action is specified for a + // set attribute and the attribute type specified does not match the existing + // set type. // // Both sets must have the same primitive data type. For example, if the existing - // data type is a set of strings, the Value must also be a set of strings. The - // same holds true for number sets and binary sets. + // data type is a set of strings, the Value must also be a set of strings. + // The same holds true for number sets and binary sets. // - // This action is only valid for an existing attribute whose data type is - // number or is a set. Do not use ADD for any other data types. + // This action is only valid for an existing attribute whose data type is number + // or is a set. Do not use ADD for any other data types. // - // If no item with the specified Key is found: + // If no item with the specified Key is found: // - // PUT - DynamoDB creates a new item with the specified primary key, and - // then adds the attribute. + // * PUT - DynamoDB creates a new item with the specified primary key, and + // then adds the attribute. // - // DELETE - Nothing happens; there is no attribute to delete. + // * DELETE - Nothing happens; there is no attribute to delete. // - // ADD - DynamoDB creates an item with the supplied primary key and number - // (or set of numbers) for the attribute value. The only data types allowed - // are number and number set; no other data types can be specified. + // * ADD - DynamoDB creates an item with the supplied primary key and number + // (or set of numbers) for the attribute value. The only data types allowed + // are number and number set; no other data types can be specified. Action *string `type:"string" enum:"AttributeAction"` // Represents the data for an attribute. You can set one, and only one, of the @@ -1737,6 +1809,18 @@ func (s AttributeValueUpdate) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *AttributeValueUpdate) SetAction(v string) *AttributeValueUpdate { + s.Action = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AttributeValueUpdate) SetValue(v *AttributeValue) *AttributeValueUpdate { + s.Value = v + return s +} + // Represents the input of a BatchGetItem operation. type BatchGetItemInput struct { _ struct{} `type:"structure"` @@ -1747,80 +1831,80 @@ type BatchGetItemInput struct { // // Each element in the map of items to retrieve consists of the following: // - // ConsistentRead - If true, a strongly consistent read is used; if false - // (the default), an eventually consistent read is used. + // * ConsistentRead - If true, a strongly consistent read is used; if false + // (the default), an eventually consistent read is used. // - // ExpressionAttributeNames - One or more substitution tokens for attribute - // names in the ProjectionExpression parameter. The following are some use cases - // for using ExpressionAttributeNames: + // * ExpressionAttributeNames - One or more substitution tokens for attribute + // names in the ProjectionExpression parameter. The following are some use + // cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // To access an attribute whose name conflicts with a DynamoDB reserved word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // To create a placeholder for repeating occurrences of an attribute name in + // an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, - // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) - // in the Amazon DynamoDB Developer Guide). To work around this, you could specify - // the following for ExpressionAttributeNames: + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, + // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + // in the Amazon DynamoDB Developer Guide). To work around this, you could + // specify the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - // in the Amazon DynamoDB Developer Guide. + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // in the Amazon DynamoDB Developer Guide. // - // Keys - An array of primary key attribute values that define specific - // items in the table. For each primary key, you must provide all of the key - // attributes. For example, with a simple primary key, you only need to provide - // the partition key value. For a composite key, you must provide both the partition - // key value and the sort key value. + // * Keys - An array of primary key attribute values that define specific + // items in the table. For each primary key, you must provide all of the + // key attributes. For example, with a simple primary key, you only need + // to provide the partition key value. For a composite key, you must provide + // both the partition key value and the sort key value. // - // ProjectionExpression - A string that identifies one or more attributes - // to retrieve from the table. These attributes can include scalars, sets, or - // elements of a JSON document. The attributes in the expression must be separated - // by commas. + // * ProjectionExpression - A string that identifies one or more attributes + // to retrieve from the table. These attributes can include scalars, sets, + // or elements of a JSON document. The attributes in the expression must + // be separated by commas. // // If no attribute names are specified, then all attributes will be returned. - // If any of the requested attributes are not found, they will not appear in - // the result. + // If any of the requested attributes are not found, they will not appear + // in the result. // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - // in the Amazon DynamoDB Developer Guide. + // in the Amazon DynamoDB Developer Guide. // - // AttributesToGet - + // * AttributesToGet - // - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. + // This is a legacy parameter, for backward compatibility. New applications + // should use ProjectionExpression instead. Do not combine legacy parameters + // and expression parameters in a single API call; otherwise, DynamoDB will + // return a ValidationException exception. // // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. + // it cannot retrieve individual elements within a List or a Map. // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. + // The names of one or more attributes to retrieve. If no attribute names are + // provided, then all attributes will be returned. If any of the requested + // attributes are not found, they will not appear in the result. // // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on the - // amount of data that is returned to an application. + // DynamoDB determines capacity units consumed based on item size, not on + // the amount of data that is returned to an application. // // RequestItems is a required field RequestItems map[string]*KeysAndAttributes `min:"1" type:"map" required:"true"` @@ -1828,18 +1912,18 @@ type BatchGetItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` } @@ -1879,6 +1963,18 @@ func (s *BatchGetItemInput) Validate() error { return nil } +// SetRequestItems sets the RequestItems field's value. +func (s *BatchGetItemInput) SetRequestItems(v map[string]*KeysAndAttributes) *BatchGetItemInput { + s.RequestItems = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *BatchGetItemInput) SetReturnConsumedCapacity(v string) *BatchGetItemInput { + s.ReturnConsumedCapacity = &v + return s +} + // Represents the output of a BatchGetItem operation. type BatchGetItemOutput struct { _ struct{} `type:"structure"` @@ -1887,9 +1983,9 @@ type BatchGetItemOutput struct { // // Each element consists of: // - // TableName - The table that consumed the provisioned throughput. + // * TableName - The table that consumed the provisioned throughput. // - // CapacityUnits - The total number of capacity units consumed. + // * CapacityUnits - The total number of capacity units consumed. ConsumedCapacity []*ConsumedCapacity `type:"list"` // A map of table name to a list of items. Each object in Responses consists @@ -1904,18 +2000,18 @@ type BatchGetItemOutput struct { // // Each element consists of: // - // Keys - An array of primary key attribute values that define specific - // items in the table. + // * Keys - An array of primary key attribute values that define specific + // items in the table. // - // AttributesToGet - One or more attributes to be retrieved from the table - // or index. By default, all attributes are returned. If a requested attribute - // is not found, it does not appear in the result. + // * AttributesToGet - One or more attributes to be retrieved from the table + // or index. By default, all attributes are returned. If a requested attribute + // is not found, it does not appear in the result. // - // ConsistentRead - The consistency of a read operation. If set to true, - // then a strongly consistent read is used; otherwise, an eventually consistent - // read is used. + // * ConsistentRead - The consistency of a read operation. If set to true, + // then a strongly consistent read is used; otherwise, an eventually consistent + // read is used. // - // If there are no unprocessed keys remaining, the response contains an empty + // If there are no unprocessed keys remaining, the response contains an empty // UnprocessedKeys map. UnprocessedKeys map[string]*KeysAndAttributes `min:"1" type:"map"` } @@ -1930,6 +2026,24 @@ func (s BatchGetItemOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *BatchGetItemOutput) SetConsumedCapacity(v []*ConsumedCapacity) *BatchGetItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetResponses sets the Responses field's value. +func (s *BatchGetItemOutput) SetResponses(v map[string][]map[string]*AttributeValue) *BatchGetItemOutput { + s.Responses = v + return s +} + +// SetUnprocessedKeys sets the UnprocessedKeys field's value. +func (s *BatchGetItemOutput) SetUnprocessedKeys(v map[string]*KeysAndAttributes) *BatchGetItemOutput { + s.UnprocessedKeys = v + return s +} + // Represents the input of a BatchWriteItem operation. type BatchWriteItemInput struct { _ struct{} `type:"structure"` @@ -1938,28 +2052,28 @@ type BatchWriteItemInput struct { // to be performed (DeleteRequest or PutRequest). Each element in the map consists // of the following: // - // DeleteRequest - Perform a DeleteItem operation on the specified item. - // The item to be deleted is identified by a Key subelement: + // * DeleteRequest - Perform a DeleteItem operation on the specified item. + // The item to be deleted is identified by a Key subelement: // - // Key - A map of primary key attribute values that uniquely identify the - // ! item. Each entry in this map consists of an attribute name and an attribute - // value. For each primary key, you must provide all of the key attributes. - // For example, with a simple primary key, you only need to provide a value - // for the partition key. For a composite primary key, you must provide values - // for both the partition key and the sort key. + // Key - A map of primary key attribute values that uniquely identify the ! + // item. Each entry in this map consists of an attribute name and an attribute + // value. For each primary key, you must provide all of the key attributes. + // For example, with a simple primary key, you only need to provide a value + // for the partition key. For a composite primary key, you must provide values + // for both the partition key and the sort key. // - // PutRequest - Perform a PutItem operation on the specified item. The - // item to be put is identified by an Item subelement: + // * PutRequest - Perform a PutItem operation on the specified item. The + // item to be put is identified by an Item subelement: // - // Item - A map of attributes and their values. Each entry in this map consists - // of an attribute name and an attribute value. Attribute values must not be - // null; string and binary type attributes must have lengths greater than zero; - // and set type attributes must not be empty. Requests that contain empty values - // will be rejected with a ValidationException exception. + // Item - A map of attributes and their values. Each entry in this map consists + // of an attribute name and an attribute value. Attribute values must not + // be null; string and binary type attributes must have lengths greater than + // zero; and set type attributes must not be empty. Requests that contain + // empty values will be rejected with a ValidationException exception. // // If you specify any attributes that are part of an index key, then the data - // types for those attributes must match those of the schema in the table's - // attribute definition. + // types for those attributes must match those of the schema in the table's + // attribute definition. // // RequestItems is a required field RequestItems map[string][]*WriteRequest `min:"1" type:"map" required:"true"` @@ -1967,18 +2081,18 @@ type BatchWriteItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -2014,6 +2128,24 @@ func (s *BatchWriteItemInput) Validate() error { return nil } +// SetRequestItems sets the RequestItems field's value. +func (s *BatchWriteItemInput) SetRequestItems(v map[string][]*WriteRequest) *BatchWriteItemInput { + s.RequestItems = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *BatchWriteItemInput) SetReturnConsumedCapacity(v string) *BatchWriteItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *BatchWriteItemInput) SetReturnItemCollectionMetrics(v string) *BatchWriteItemInput { + s.ReturnItemCollectionMetrics = &v + return s +} + // Represents the output of a BatchWriteItem operation. type BatchWriteItemOutput struct { _ struct{} `type:"structure"` @@ -2022,9 +2154,9 @@ type BatchWriteItemOutput struct { // // Each element consists of: // - // TableName - The table that consumed the provisioned throughput. + // * TableName - The table that consumed the provisioned throughput. // - // CapacityUnits - The total number of capacity units consumed. + // * CapacityUnits - The total number of capacity units consumed. ConsumedCapacity []*ConsumedCapacity `type:"list"` // A list of tables that were processed by BatchWriteItem and, for each table, @@ -2033,18 +2165,18 @@ type BatchWriteItemOutput struct { // // Each entry consists of the following subelements: // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item. + // * ItemCollectionKey - The partition key value of the item collection. + // This is the same as the partition key value of the item. // - // SizeEstimateRange - An estimate of item collection size, expressed in - // GB. This is a two-element array containing a lower bound and an upper bound - // for the estimate. The estimate includes the size of all the items in the - // table, plus the size of all attributes projected into all of the local secondary - // indexes on the table. Use this estimate to measure whether a local secondary - // index is approaching its size limit. + // * SizeEstimateRange - An estimate of item collection size, expressed in + // GB. This is a two-element array containing a lower bound and an upper + // bound for the estimate. The estimate includes the size of all the items + // in the table, plus the size of all attributes projected into all of the + // local secondary indexes on the table. Use this estimate to measure whether + // a local secondary index is approaching its size limit. // // The estimate is subject to change over time; therefore, do not rely on the - // precision or accuracy of the estimate. + // precision or accuracy of the estimate. ItemCollectionMetrics map[string][]*ItemCollectionMetrics `type:"map"` // A map of tables and requests against those tables that were not processed. @@ -2055,28 +2187,28 @@ type BatchWriteItemOutput struct { // Each UnprocessedItems entry consists of a table name and, for that table, // a list of operations to perform (DeleteRequest or PutRequest). // - // DeleteRequest - Perform a DeleteItem operation on the specified item. - // The item to be deleted is identified by a Key subelement: + // * DeleteRequest - Perform a DeleteItem operation on the specified item. + // The item to be deleted is identified by a Key subelement: // - // Key - A map of primary key attribute values that uniquely identify the - // item. Each entry in this map consists of an attribute name and an attribute - // value. + // Key - A map of primary key attribute values that uniquely identify the item. + // Each entry in this map consists of an attribute name and an attribute + // value. // - // PutRequest - Perform a PutItem operation on the specified item. The - // item to be put is identified by an Item subelement: + // * PutRequest - Perform a PutItem operation on the specified item. The + // item to be put is identified by an Item subelement: // - // Item - A map of attributes and their values. Each entry in this map consists - // of an attribute name and an attribute value. Attribute values must not be - // null; string and binary type attributes must have lengths greater than zero; - // and set type attributes must not be empty. Requests that contain empty values - // will be rejected with a ValidationException exception. + // Item - A map of attributes and their values. Each entry in this map consists + // of an attribute name and an attribute value. Attribute values must not + // be null; string and binary type attributes must have lengths greater than + // zero; and set type attributes must not be empty. Requests that contain + // empty values will be rejected with a ValidationException exception. // // If you specify any attributes that are part of an index key, then the data - // types for those attributes must match those of the schema in the table's - // attribute definition. + // types for those attributes must match those of the schema in the table's + // attribute definition. // - // If there are no unprocessed items remaining, the response contains an - // empty UnprocessedItems map. + // If there are no unprocessed items remaining, the response contains an empty + // UnprocessedItems map. UnprocessedItems map[string][]*WriteRequest `min:"1" type:"map"` } @@ -2090,6 +2222,24 @@ func (s BatchWriteItemOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *BatchWriteItemOutput) SetConsumedCapacity(v []*ConsumedCapacity) *BatchWriteItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *BatchWriteItemOutput) SetItemCollectionMetrics(v map[string][]*ItemCollectionMetrics) *BatchWriteItemOutput { + s.ItemCollectionMetrics = v + return s +} + +// SetUnprocessedItems sets the UnprocessedItems field's value. +func (s *BatchWriteItemOutput) SetUnprocessedItems(v map[string][]*WriteRequest) *BatchWriteItemOutput { + s.UnprocessedItems = v + return s +} + // Represents the amount of provisioned throughput capacity consumed on a table // or an index. type Capacity struct { @@ -2109,19 +2259,25 @@ func (s Capacity) GoString() string { return s.String() } +// SetCapacityUnits sets the CapacityUnits field's value. +func (s *Capacity) SetCapacityUnits(v float64) *Capacity { + s.CapacityUnits = &v + return s +} + // Represents the selection criteria for a Query or Scan operation: // -// For a Query operation, Condition is used for specifying the KeyConditions -// to use when querying a table or an index. For KeyConditions, only the following -// comparison operators are supported: +// * For a Query operation, Condition is used for specifying the KeyConditions +// to use when querying a table or an index. For KeyConditions, only the +// following comparison operators are supported: // -// EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN +// EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN // -// Condition is also used in a QueryFilter, which evaluates the query results -// and returns only the desired values. +// Condition is also used in a QueryFilter, which evaluates the query results +// and returns only the desired values. // -// For a Scan operation, Condition is used in a ScanFilter, which evaluates -// the scan results and returns only the desired values. +// * For a Scan operation, Condition is used in a ScanFilter, which evaluates +// the scan results and returns only the desired values. type Condition struct { _ struct{} `type:"structure"` @@ -2144,132 +2300,41 @@ type Condition struct { // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // * EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in + // the request, the value does not match. For example, {"S":"6"} does not + // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // * NE : Not equal. NE is supported for all datatypes, including lists and + // maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // * AttributeValueList can contain only one AttributeValue of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue of a different type than the one provided in the request, + // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // * LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // LT : Less than. - // - // AttributeValueList can contain only one AttributeValue of type String, + // AttributeValueList can contain only one AttributeValue element of type String, // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // LT: Less than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see Legacy - // Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) - // in the Amazon DynamoDB Developer Guide. + // AttributeValueListcan contain only one AttributeValueof type String, Number, or Binary (not a set type). If an item contains an + // AttributeValueelement of a different type than the one provided in the request, the value + // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]} // // ComparisonOperator is a required field ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` @@ -2298,6 +2363,18 @@ func (s *Condition) Validate() error { return nil } +// SetAttributeValueList sets the AttributeValueList field's value. +func (s *Condition) SetAttributeValueList(v []*AttributeValue) *Condition { + s.AttributeValueList = v + return s +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *Condition) SetComparisonOperator(v string) *Condition { + s.ComparisonOperator = &v + return s +} + // The capacity units consumed by an operation. The data returned includes the // total provisioned throughput consumed, along with statistics for the table // and any indexes involved in the operation. ConsumedCapacity is only returned @@ -2333,6 +2410,36 @@ func (s ConsumedCapacity) GoString() string { return s.String() } +// SetCapacityUnits sets the CapacityUnits field's value. +func (s *ConsumedCapacity) SetCapacityUnits(v float64) *ConsumedCapacity { + s.CapacityUnits = &v + return s +} + +// SetGlobalSecondaryIndexes sets the GlobalSecondaryIndexes field's value. +func (s *ConsumedCapacity) SetGlobalSecondaryIndexes(v map[string]*Capacity) *ConsumedCapacity { + s.GlobalSecondaryIndexes = v + return s +} + +// SetLocalSecondaryIndexes sets the LocalSecondaryIndexes field's value. +func (s *ConsumedCapacity) SetLocalSecondaryIndexes(v map[string]*Capacity) *ConsumedCapacity { + s.LocalSecondaryIndexes = v + return s +} + +// SetTable sets the Table field's value. +func (s *ConsumedCapacity) SetTable(v *Capacity) *ConsumedCapacity { + s.Table = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ConsumedCapacity) SetTableName(v string) *ConsumedCapacity { + s.TableName = &v + return s +} + // Represents a new global secondary index to be added to an existing table. type CreateGlobalSecondaryIndexAction struct { _ struct{} `type:"structure"` @@ -2423,6 +2530,30 @@ func (s *CreateGlobalSecondaryIndexAction) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *CreateGlobalSecondaryIndexAction) SetIndexName(v string) *CreateGlobalSecondaryIndexAction { + s.IndexName = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *CreateGlobalSecondaryIndexAction) SetKeySchema(v []*KeySchemaElement) *CreateGlobalSecondaryIndexAction { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *CreateGlobalSecondaryIndexAction) SetProjection(v *Projection) *CreateGlobalSecondaryIndexAction { + s.Projection = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *CreateGlobalSecondaryIndexAction) SetProvisionedThroughput(v *ProvisionedThroughput) *CreateGlobalSecondaryIndexAction { + s.ProvisionedThroughput = v + return s +} + // Represents the input of a CreateTable operation. type CreateTableInput struct { _ struct{} `type:"structure"` @@ -2435,33 +2566,33 @@ type CreateTableInput struct { // One or more global secondary indexes (the maximum is five) to be created // on the table. Each global secondary index in the array includes the following: // - // IndexName - The name of the global secondary index. Must be unique only - // for this table. + // * IndexName - The name of the global secondary index. Must be unique only + // for this table. // - // KeySchema - Specifies the key schema for the global secondary index. + // * KeySchema - Specifies the key schema for the global secondary index. // - // Projection - Specifies attributes that are copied (projected) from the - // table into the index. These are in addition to the primary key attributes - // and index key attributes, which are automatically projected. Each attribute - // specification is composed of: + // * Projection - Specifies attributes that are copied (projected) from the + // table into the index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Each attribute + // specification is composed of: // - // ProjectionType - One of the following: + // * ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that - // are projected into the secondary index. The total count of attributes provided - // in NonKeyAttributes, summed across all of the secondary indexes, must not - // exceed 20. If you project the same attribute into two different indexes, - // this counts as two distinct attributes when determining the total. + // NonKeyAttributes - A list of one or more non-key attribute names that are + // projected into the secondary index. The total count of attributes provided + // in NonKeyAttributes, summed across all of the secondary indexes, must + // not exceed 20. If you project the same attribute into two different indexes, + // this counts as two distinct attributes when determining the total. // - // ProvisionedThroughput - The provisioned throughput settings for the - // global secondary index, consisting of read and write capacity units. + // * ProvisionedThroughput - The provisioned throughput settings for the + // global secondary index, consisting of read and write capacity units. GlobalSecondaryIndexes []*GlobalSecondaryIndex `type:"list"` // Specifies the attributes that make up the primary key for a table or an index. @@ -2471,16 +2602,16 @@ type CreateTableInput struct { // // Each KeySchemaElement in the array is composed of: // - // AttributeName - The name of this key attribute. + // * AttributeName - The name of this key attribute. // - // KeyType - The role that the key attribute will assume: + // * KeyType - The role that the key attribute will assume: // - // HASH - partition key + // HASH - partition key // - // RANGE - sort key + // RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -2488,8 +2619,8 @@ type CreateTableInput struct { // attribute" derives from the way DynamoDB stores items with the same partition // key physically close together, in sorted order by the sort key value. // - // For a simple primary key (partition key), you must provide exactly one - // element with a KeyType of HASH. + // For a simple primary key (partition key), you must provide exactly one element + // with a KeyType of HASH. // // For a composite primary key (partition key and sort key), you must provide // exactly two elements, in this order: The first element must have a KeyType @@ -2508,31 +2639,31 @@ type CreateTableInput struct { // // Each local secondary index in the array includes the following: // - // IndexName - The name of the local secondary index. Must be unique only - // for this table. + // * IndexName - The name of the local secondary index. Must be unique only + // for this table. // - // KeySchema - Specifies the key schema for the local secondary index. - // The key schema must begin with the same partition key as the table. + // * KeySchema - Specifies the key schema for the local secondary index. + // The key schema must begin with the same partition key as the table. // - // Projection - Specifies attributes that are copied (projected) from the - // table into the index. These are in addition to the primary key attributes - // and index key attributes, which are automatically projected. Each attribute - // specification is composed of: + // * Projection - Specifies attributes that are copied (projected) from the + // table into the index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Each attribute + // specification is composed of: // - // ProjectionType - One of the following: + // * ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that - // are projected into the secondary index. The total count of attributes provided - // in NonKeyAttributes, summed across all of the secondary indexes, must not - // exceed 20. If you project the same attribute into two different indexes, - // this counts as two distinct attributes when determining the total. + // NonKeyAttributes - A list of one or more non-key attribute names that are + // projected into the secondary index. The total count of attributes provided + // in NonKeyAttributes, summed across all of the secondary indexes, must + // not exceed 20. If you project the same attribute into two different indexes, + // this counts as two distinct attributes when determining the total. LocalSecondaryIndexes []*LocalSecondaryIndex `type:"list"` // Represents the provisioned throughput settings for a specified table or index. @@ -2547,24 +2678,24 @@ type CreateTableInput struct { // The settings for DynamoDB Streams on the table. These settings consist of: // - // StreamEnabled - Indicates whether Streams is to be enabled (true) or - // disabled (false). + // * StreamEnabled - Indicates whether Streams is to be enabled (true) or + // disabled (false). // - // StreamViewType - When an item in the table is modified, StreamViewType - // determines what information is written to the table's stream. Valid values - // for StreamViewType are: + // * StreamViewType - When an item in the table is modified, StreamViewType + // determines what information is written to the table's stream. Valid values + // for StreamViewType are: // - // KEYS_ONLY - Only the key attributes of the modified item are written - // to the stream. + // KEYS_ONLY - Only the key attributes of the modified item are written to the + // stream. // - // NEW_IMAGE - The entire item, as it appears after it was modified, is - // written to the stream. + // NEW_IMAGE - The entire item, as it appears after it was modified, is written + // to the stream. // - // OLD_IMAGE - The entire item, as it appeared before it was modified, is - // written to the stream. + // OLD_IMAGE - The entire item, as it appeared before it was modified, is written + // to the stream. // - // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item - // are written to the stream. + // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are + // written to the stream. StreamSpecification *StreamSpecification `type:"structure"` // The name of the table to create. @@ -2656,6 +2787,48 @@ func (s *CreateTableInput) Validate() error { return nil } +// SetAttributeDefinitions sets the AttributeDefinitions field's value. +func (s *CreateTableInput) SetAttributeDefinitions(v []*AttributeDefinition) *CreateTableInput { + s.AttributeDefinitions = v + return s +} + +// SetGlobalSecondaryIndexes sets the GlobalSecondaryIndexes field's value. +func (s *CreateTableInput) SetGlobalSecondaryIndexes(v []*GlobalSecondaryIndex) *CreateTableInput { + s.GlobalSecondaryIndexes = v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *CreateTableInput) SetKeySchema(v []*KeySchemaElement) *CreateTableInput { + s.KeySchema = v + return s +} + +// SetLocalSecondaryIndexes sets the LocalSecondaryIndexes field's value. +func (s *CreateTableInput) SetLocalSecondaryIndexes(v []*LocalSecondaryIndex) *CreateTableInput { + s.LocalSecondaryIndexes = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *CreateTableInput) SetProvisionedThroughput(v *ProvisionedThroughput) *CreateTableInput { + s.ProvisionedThroughput = v + return s +} + +// SetStreamSpecification sets the StreamSpecification field's value. +func (s *CreateTableInput) SetStreamSpecification(v *StreamSpecification) *CreateTableInput { + s.StreamSpecification = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *CreateTableInput) SetTableName(v string) *CreateTableInput { + s.TableName = &v + return s +} + // Represents the output of a CreateTable operation. type CreateTableOutput struct { _ struct{} `type:"structure"` @@ -2674,6 +2847,12 @@ func (s CreateTableOutput) GoString() string { return s.String() } +// SetTableDescription sets the TableDescription field's value. +func (s *CreateTableOutput) SetTableDescription(v *TableDescription) *CreateTableOutput { + s.TableDescription = v + return s +} + // Represents a global secondary index to be deleted from an existing table. type DeleteGlobalSecondaryIndexAction struct { _ struct{} `type:"structure"` @@ -2710,6 +2889,12 @@ func (s *DeleteGlobalSecondaryIndexAction) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *DeleteGlobalSecondaryIndexAction) SetIndexName(v string) *DeleteGlobalSecondaryIndexAction { + s.IndexName = &v + return s +} + // Represents the input of a DeleteItem operation. type DeleteItemInput struct { _ struct{} `type:"structure"` @@ -2719,21 +2904,21 @@ type DeleteItemInput struct { // // An expression can contain any of the following: // - // Functions: attribute_exists | attribute_not_exists | attribute_type | - // contains | begins_with | size + // * Functions: attribute_exists | attribute_not_exists | attribute_type + // | contains | begins_with | size // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= + // | >= | BETWEEN | IN // - // Logical operators: AND | OR | NOT + // * Logical operators: AND | OR | NOT // - // For more information on condition expressions, see Specifying Conditions + // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. // - // ConditionExpression replaces the legacy ConditionalOperator and Expected + // ConditionExpression replaces the legacy ConditionalOperator and Expected // parameters. ConditionExpression *string `type:"string"` @@ -2742,19 +2927,19 @@ type DeleteItemInput struct { // and expression parameters in a single API call; otherwise, DynamoDB will // return a ValidationException exception. // - // A logical operator to apply to the conditions in the Expected map: + // A logical operator to apply to the conditions in the Expected map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // * AND - If all of the conditions evaluate to true, then the entire map + // evaluates to true. // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. + // * OR - If at least one of the conditions evaluate to true, then the entire + // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // This is a legacy parameter, for backward compatibility. New applications @@ -2762,7 +2947,7 @@ type DeleteItemInput struct { // and expression parameters in a single API call; otherwise, DynamoDB will // return a ValidationException exception. // - // A map of attribute/condition pairs. Expected provides a conditional block + // A map of attribute/condition pairs. Expected provides a conditional block // for the DeleteItem operation. // // Each element of Expected consists of an attribute name, a comparison operator, @@ -2779,213 +2964,127 @@ type DeleteItemInput struct { // If the Expected map evaluates to true, then the conditional operation succeeds; // otherwise, it fails. // - // Expected contains the following: + // Expected contains the following: // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. + // * AttributeValueList - One or more values to evaluate against the supplied + // attribute. The number of values in the list depends on the ComparisonOperator + // being used. // // For type Number, value comparisons are numeric. // // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // on ASCII character code values. For example, a is greater than A, and + // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters + // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). // // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. + // when it compares binary values. // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. + // * ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. + // When performing the comparison, DynamoDB uses strongly consistent reads. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in + // the request, the value does not match. For example, {"S":"6"} does not + // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // NE : Not equal. NE is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // Binary, String Set, Number Set, or Binary Set. If an item contains an + // AttributeValue of a different type than the one provided in the request, + // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // * LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue + // element of a different type than the one provided in the request, the + // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // * LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, + // * AttributeValueList can contain only one AttributeValue of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue + // element of a different type than the one provided in the request, the + // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. + // + // * GE : Greater than or equal. + // + // AttributeValueList can contain only one AttributeValue element of type String, // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GT: Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // AttributeValueListcan contain only one AttributeValueelement of type String, Number, or Binary (not a set type). If an item contains + // an AttributeValueelement of a different type than the one provided in the request, the value + // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // NOT_NULL + // : The attribute exists. NOT_NULL + // is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // This operator tests for the existence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute "a" exists; its data type is not relevant to the NOT_NULLcomparison operator. // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. + // NULL + // : The attribute does not exist. NULL + // is supported for all datatypes, including lists and maps. // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see - // Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) - // in the Amazon DynamoDB Developer Guide. - // - // For backward compatibility with previous DynamoDB releases, the following - // parameters can be used instead of AttributeValueList and ComparisonOperator: - // - // Value - A value for DynamoDB to compare with an attribute. - // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before - // attempting the conditional operation: - // - // If Exists is true, DynamoDB will check to see if that attribute value - // already exists in the table. If it is found, then the condition evaluates - // to true; otherwise the condition evaluate to false. - // - // If Exists is false, DynamoDB assumes that the attribute value does not - // exist in the table. If in fact the value does not exist, then the assumption - // is valid and the condition evaluates to true. If the value is found, despite - // the assumption that it does not exist, the condition evaluates to false. - // - // Note that the default value for Exists is true. - // - // The Value and Exists parameters are incompatible with AttributeValueList - // and ComparisonOperator. Note that if you use both sets of parameters at once, - // DynamoDB will return a ValidationException exception. - // - // This parameter does not support attributes of type List or Map. + // This operator tests for the nonexistence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute "a" exists; its data type is not relevant to the NULL Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -2995,16 +3094,16 @@ type DeleteItemInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -3025,18 +3124,18 @@ type DeleteItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -3048,12 +3147,12 @@ type DeleteItemInput struct { // Use ReturnValues if you want to get the item attributes as they appeared // before they were deleted. For DeleteItem, the valid values are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then - // nothing is returned. (This setting is the default for ReturnValues.) + // * NONE - If ReturnValues is not specified, or if its value is NONE, then + // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - The content of the old item is returned. + // * ALL_OLD - The content of the old item is returned. // - // The ReturnValues parameter is used by several DynamoDB operations; however, + // The ReturnValues parameter is used by several DynamoDB operations; however, // DeleteItem does not recognize any values other than NONE or ALL_OLD. ReturnValues *string `type:"string" enum:"ReturnValue"` @@ -3092,6 +3191,66 @@ func (s *DeleteItemInput) Validate() error { return nil } +// SetConditionExpression sets the ConditionExpression field's value. +func (s *DeleteItemInput) SetConditionExpression(v string) *DeleteItemInput { + s.ConditionExpression = &v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *DeleteItemInput) SetConditionalOperator(v string) *DeleteItemInput { + s.ConditionalOperator = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *DeleteItemInput) SetExpected(v map[string]*ExpectedAttributeValue) *DeleteItemInput { + s.Expected = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *DeleteItemInput) SetExpressionAttributeNames(v map[string]*string) *DeleteItemInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *DeleteItemInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *DeleteItemInput { + s.ExpressionAttributeValues = v + return s +} + +// SetKey sets the Key field's value. +func (s *DeleteItemInput) SetKey(v map[string]*AttributeValue) *DeleteItemInput { + s.Key = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *DeleteItemInput) SetReturnConsumedCapacity(v string) *DeleteItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *DeleteItemInput) SetReturnItemCollectionMetrics(v string) *DeleteItemInput { + s.ReturnItemCollectionMetrics = &v + return s +} + +// SetReturnValues sets the ReturnValues field's value. +func (s *DeleteItemInput) SetReturnValues(v string) *DeleteItemInput { + s.ReturnValues = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *DeleteItemInput) SetTableName(v string) *DeleteItemInput { + s.TableName = &v + return s +} + // Represents the output of a DeleteItem operation. type DeleteItemOutput struct { _ struct{} `type:"structure"` @@ -3116,18 +3275,18 @@ type DeleteItemOutput struct { // // Each ItemCollectionMetrics element consists of: // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item itself. + // * ItemCollectionKey - The partition key value of the item collection. + // This is the same as the partition key value of the item itself. // - // SizeEstimateRange - An estimate of item collection size, in gigabytes. - // This value is a two-element array containing a lower bound and an upper bound - // for the estimate. The estimate includes the size of all the items in the - // table, plus the size of all attributes projected into all of the local secondary - // indexes on that table. Use this estimate to measure whether a local secondary - // index is approaching its size limit. + // * SizeEstimateRange - An estimate of item collection size, in gigabytes. + // This value is a two-element array containing a lower bound and an upper + // bound for the estimate. The estimate includes the size of all the items + // in the table, plus the size of all attributes projected into all of the + // local secondary indexes on that table. Use this estimate to measure whether + // a local secondary index is approaching its size limit. // // The estimate is subject to change over time; therefore, do not rely on the - // precision or accuracy of the estimate. + // precision or accuracy of the estimate. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` } @@ -3141,6 +3300,24 @@ func (s DeleteItemOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *DeleteItemOutput) SetAttributes(v map[string]*AttributeValue) *DeleteItemOutput { + s.Attributes = v + return s +} + +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *DeleteItemOutput) SetConsumedCapacity(v *ConsumedCapacity) *DeleteItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *DeleteItemOutput) SetItemCollectionMetrics(v *ItemCollectionMetrics) *DeleteItemOutput { + s.ItemCollectionMetrics = v + return s +} + // Represents a request to perform a DeleteItem operation on an item. type DeleteRequest struct { _ struct{} `type:"structure"` @@ -3163,6 +3340,12 @@ func (s DeleteRequest) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *DeleteRequest) SetKey(v map[string]*AttributeValue) *DeleteRequest { + s.Key = v + return s +} + // Represents the input of a DeleteTable operation. type DeleteTableInput struct { _ struct{} `type:"structure"` @@ -3199,6 +3382,12 @@ func (s *DeleteTableInput) Validate() error { return nil } +// SetTableName sets the TableName field's value. +func (s *DeleteTableInput) SetTableName(v string) *DeleteTableInput { + s.TableName = &v + return s +} + // Represents the output of a DeleteTable operation. type DeleteTableOutput struct { _ struct{} `type:"structure"` @@ -3217,6 +3406,12 @@ func (s DeleteTableOutput) GoString() string { return s.String() } +// SetTableDescription sets the TableDescription field's value. +func (s *DeleteTableOutput) SetTableDescription(v *TableDescription) *DeleteTableOutput { + s.TableDescription = v + return s +} + // Represents the input of a DescribeLimits operation. Has no content. type DescribeLimitsInput struct { _ struct{} `type:"structure"` @@ -3265,6 +3460,30 @@ func (s DescribeLimitsOutput) GoString() string { return s.String() } +// SetAccountMaxReadCapacityUnits sets the AccountMaxReadCapacityUnits field's value. +func (s *DescribeLimitsOutput) SetAccountMaxReadCapacityUnits(v int64) *DescribeLimitsOutput { + s.AccountMaxReadCapacityUnits = &v + return s +} + +// SetAccountMaxWriteCapacityUnits sets the AccountMaxWriteCapacityUnits field's value. +func (s *DescribeLimitsOutput) SetAccountMaxWriteCapacityUnits(v int64) *DescribeLimitsOutput { + s.AccountMaxWriteCapacityUnits = &v + return s +} + +// SetTableMaxReadCapacityUnits sets the TableMaxReadCapacityUnits field's value. +func (s *DescribeLimitsOutput) SetTableMaxReadCapacityUnits(v int64) *DescribeLimitsOutput { + s.TableMaxReadCapacityUnits = &v + return s +} + +// SetTableMaxWriteCapacityUnits sets the TableMaxWriteCapacityUnits field's value. +func (s *DescribeLimitsOutput) SetTableMaxWriteCapacityUnits(v int64) *DescribeLimitsOutput { + s.TableMaxWriteCapacityUnits = &v + return s +} + // Represents the input of a DescribeTable operation. type DescribeTableInput struct { _ struct{} `type:"structure"` @@ -3301,6 +3520,12 @@ func (s *DescribeTableInput) Validate() error { return nil } +// SetTableName sets the TableName field's value. +func (s *DescribeTableInput) SetTableName(v string) *DescribeTableInput { + s.TableName = &v + return s +} + // Represents the output of a DescribeTable operation. type DescribeTableOutput struct { _ struct{} `type:"structure"` @@ -3319,24 +3544,30 @@ func (s DescribeTableOutput) GoString() string { return s.String() } +// SetTable sets the Table field's value. +func (s *DescribeTableOutput) SetTable(v *TableDescription) *DescribeTableOutput { + s.Table = v + return s +} + // Represents a condition to be compared with an attribute value. This condition // can be used with DeleteItem, PutItem or UpdateItem operations; if the comparison // evaluates to true, the operation succeeds; if not, the operation fails. You // can use ExpectedAttributeValue in one of two different ways: // -// Use AttributeValueList to specify one or more values to compare against -// an attribute. Use ComparisonOperator to specify how you want to perform the -// comparison. If the comparison evaluates to true, then the conditional operation -// succeeds. +// * Use AttributeValueList to specify one or more values to compare against +// an attribute. Use ComparisonOperator to specify how you want to perform +// the comparison. If the comparison evaluates to true, then the conditional +// operation succeeds. // -// Use Value to specify a value that DynamoDB will compare against an attribute. -// If the values match, then ExpectedAttributeValue evaluates to true and the -// conditional operation succeeds. Optionally, you can also set Exists to false, -// indicating that you do not expect to find the attribute value in the table. -// In this case, the conditional operation succeeds only if the comparison evaluates -// to false. +// * Use Value to specify a value that DynamoDB will compare against an attribute. +// If the values match, then ExpectedAttributeValue evaluates to true and +// the conditional operation succeeds. Optionally, you can also set Exists +// to false, indicating that you do not expect to find the attribute value +// in the table. In this case, the conditional operation succeeds only if +// the comparison evaluates to false. // -// Value and Exists are incompatible with AttributeValueList and ComparisonOperator. +// Value and Exists are incompatible with AttributeValueList and ComparisonOperator. // Note that if you use both sets of parameters at once, DynamoDB will return // a ValidationException exception. type ExpectedAttributeValue struct { @@ -3364,152 +3595,65 @@ type ExpectedAttributeValue struct { // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // * EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in + // the request, the value does not match. For example, {"S":"6"} does not + // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // * NE : Not equal. NE is supported for all datatypes, including lists and + // maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // * AttributeValueList can contain only one AttributeValue of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue of a different type than the one provided in the request, + // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // * LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // LT : Less than. - // - // AttributeValueList can contain only one AttributeValue of type String, + // AttributeValueList can contain only one AttributeValue element of type String, // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // LT: Less than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} + // AttributeValueListcan contain only one AttributeValueof type String, Number, or Binary (not a set type). If an item contains an + // AttributeValueelement of a different type than the one provided in the request, the value + // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]} ComparisonOperator *string `type:"string" enum:"ComparisonOperator"` // Causes DynamoDB to evaluate the value before attempting a conditional operation: // - // If Exists is true, DynamoDB will check to see if that attribute value - // already exists in the table. If it is found, then the operation succeeds. - // If it is not found, the operation fails with a ConditionalCheckFailedException. + // * If Exists is true, DynamoDB will check to see if that attribute value + // already exists in the table. If it is found, then the operation succeeds. + // If it is not found, the operation fails with a ConditionalCheckFailedException. // - // If Exists is false, DynamoDB assumes that the attribute value does not - // exist in the table. If in fact the value does not exist, then the assumption - // is valid and the operation succeeds. If the value is found, despite the assumption - // that it does not exist, the operation fails with a ConditionalCheckFailedException. + // * If Exists is false, DynamoDB assumes that the attribute value does not + // exist in the table. If in fact the value does not exist, then the assumption + // is valid and the operation succeeds. If the value is found, despite the + // assumption that it does not exist, the operation fails with a ConditionalCheckFailedException. // - // The default setting for Exists is true. If you supply a Value all by itself, + // The default setting for Exists is true. If you supply a Value all by itself, // DynamoDB assumes the attribute exists: You don't have to set Exists to true, // because it is implied. // // DynamoDB returns a ValidationException if: // - // Exists is true but there is no Value to check. (You expect a value to - // exist, but don't specify what that value is.) + // * Exists is true but there is no Value to check. (You expect a value to + // exist, but don't specify what that value is.) // - // Exists is false but you also provide a Value. (You cannot expect an attribute - // to have a value, while also expecting it not to exist.) + // * Exists is false but you also provide a Value. (You cannot expect an + // attribute to have a value, while also expecting it not to exist.) Exists *bool `type:"boolean"` // Represents the data for an attribute. You can set one, and only one, of the @@ -3532,6 +3676,30 @@ func (s ExpectedAttributeValue) GoString() string { return s.String() } +// SetAttributeValueList sets the AttributeValueList field's value. +func (s *ExpectedAttributeValue) SetAttributeValueList(v []*AttributeValue) *ExpectedAttributeValue { + s.AttributeValueList = v + return s +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *ExpectedAttributeValue) SetComparisonOperator(v string) *ExpectedAttributeValue { + s.ComparisonOperator = &v + return s +} + +// SetExists sets the Exists field's value. +func (s *ExpectedAttributeValue) SetExists(v bool) *ExpectedAttributeValue { + s.Exists = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ExpectedAttributeValue) SetValue(v *AttributeValue) *ExpectedAttributeValue { + s.Value = v + return s +} + // Represents the input of a GetItem operation. type GetItemInput struct { _ struct{} `type:"structure"` @@ -3544,9 +3712,9 @@ type GetItemInput struct { // This parameter allows you to retrieve attributes of type List or Map; however, // it cannot retrieve individual elements within a List or a Map. // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. + // The names of one or more attributes to retrieve. If no attribute names are + // provided, then all attributes will be returned. If any of the requested attributes + // are not found, they will not appear in the result. // // Note that AttributesToGet has no effect on provisioned throughput consumption. // DynamoDB determines capacity units consumed based on item size, not on the @@ -3561,36 +3729,37 @@ type GetItemInput struct { // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -3616,24 +3785,24 @@ type GetItemInput struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // ProjectionExpression replaces the legacy AttributesToGet parameter. + // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // The name of the table containing the requested item. @@ -3674,6 +3843,48 @@ func (s *GetItemInput) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *GetItemInput) SetAttributesToGet(v []*string) *GetItemInput { + s.AttributesToGet = v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *GetItemInput) SetConsistentRead(v bool) *GetItemInput { + s.ConsistentRead = &v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *GetItemInput) SetExpressionAttributeNames(v map[string]*string) *GetItemInput { + s.ExpressionAttributeNames = v + return s +} + +// SetKey sets the Key field's value. +func (s *GetItemInput) SetKey(v map[string]*AttributeValue) *GetItemInput { + s.Key = v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *GetItemInput) SetProjectionExpression(v string) *GetItemInput { + s.ProjectionExpression = &v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *GetItemInput) SetReturnConsumedCapacity(v string) *GetItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *GetItemInput) SetTableName(v string) *GetItemInput { + s.TableName = &v + return s +} + // Represents the output of a GetItem operation. type GetItemOutput struct { _ struct{} `type:"structure"` @@ -3700,6 +3911,18 @@ func (s GetItemOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *GetItemOutput) SetConsumedCapacity(v *ConsumedCapacity) *GetItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItem sets the Item field's value. +func (s *GetItemOutput) SetItem(v map[string]*AttributeValue) *GetItemOutput { + s.Item = v + return s +} + // Represents the properties of a global secondary index. type GlobalSecondaryIndex struct { _ struct{} `type:"structure"` @@ -3713,12 +3936,12 @@ type GlobalSecondaryIndex struct { // The complete key schema for a global secondary index, which consists of one // or more pairs of attribute names and key types: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -3805,6 +4028,30 @@ func (s *GlobalSecondaryIndex) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *GlobalSecondaryIndex) SetIndexName(v string) *GlobalSecondaryIndex { + s.IndexName = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *GlobalSecondaryIndex) SetKeySchema(v []*KeySchemaElement) *GlobalSecondaryIndex { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *GlobalSecondaryIndex) SetProjection(v *Projection) *GlobalSecondaryIndex { + s.Projection = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *GlobalSecondaryIndex) SetProvisionedThroughput(v *ProvisionedThroughput) *GlobalSecondaryIndex { + s.ProvisionedThroughput = v + return s +} + // Represents the properties of a global secondary index. type GlobalSecondaryIndexDescription struct { _ struct{} `type:"structure"` @@ -3816,7 +4063,7 @@ type GlobalSecondaryIndexDescription struct { // DynamoDB will do so. After all items have been processed, the backfilling // operation is complete and Backfilling is false. // - // For indexes that were created during a CreateTable operation, the Backfilling + // For indexes that were created during a CreateTable operation, the Backfilling // attribute does not appear in the DescribeTable output. Backfilling *bool `type:"boolean"` @@ -3833,13 +4080,13 @@ type GlobalSecondaryIndexDescription struct { // The current state of the global secondary index: // - // CREATING - The index is being created. + // * CREATING - The index is being created. // - // UPDATING - The index is being updated. + // * UPDATING - The index is being updated. // - // DELETING - The index is being deleted. + // * DELETING - The index is being deleted. // - // ACTIVE - The index is ready for use. + // * ACTIVE - The index is ready for use. IndexStatus *string `type:"string" enum:"IndexStatus"` // The number of items in the specified index. DynamoDB updates this value approximately @@ -3849,12 +4096,12 @@ type GlobalSecondaryIndexDescription struct { // The complete key schema for a global secondary index, which consists of one // or more pairs of attribute names and key types: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -3883,29 +4130,83 @@ func (s GlobalSecondaryIndexDescription) GoString() string { return s.String() } +// SetBackfilling sets the Backfilling field's value. +func (s *GlobalSecondaryIndexDescription) SetBackfilling(v bool) *GlobalSecondaryIndexDescription { + s.Backfilling = &v + return s +} + +// SetIndexArn sets the IndexArn field's value. +func (s *GlobalSecondaryIndexDescription) SetIndexArn(v string) *GlobalSecondaryIndexDescription { + s.IndexArn = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *GlobalSecondaryIndexDescription) SetIndexName(v string) *GlobalSecondaryIndexDescription { + s.IndexName = &v + return s +} + +// SetIndexSizeBytes sets the IndexSizeBytes field's value. +func (s *GlobalSecondaryIndexDescription) SetIndexSizeBytes(v int64) *GlobalSecondaryIndexDescription { + s.IndexSizeBytes = &v + return s +} + +// SetIndexStatus sets the IndexStatus field's value. +func (s *GlobalSecondaryIndexDescription) SetIndexStatus(v string) *GlobalSecondaryIndexDescription { + s.IndexStatus = &v + return s +} + +// SetItemCount sets the ItemCount field's value. +func (s *GlobalSecondaryIndexDescription) SetItemCount(v int64) *GlobalSecondaryIndexDescription { + s.ItemCount = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *GlobalSecondaryIndexDescription) SetKeySchema(v []*KeySchemaElement) *GlobalSecondaryIndexDescription { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *GlobalSecondaryIndexDescription) SetProjection(v *Projection) *GlobalSecondaryIndexDescription { + s.Projection = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *GlobalSecondaryIndexDescription) SetProvisionedThroughput(v *ProvisionedThroughputDescription) *GlobalSecondaryIndexDescription { + s.ProvisionedThroughput = v + return s +} + // Represents one of the following: // -// A new global secondary index to be added to an existing table. +// * A new global secondary index to be added to an existing table. // -// New provisioned throughput parameters for an existing global secondary -// index. +// * New provisioned throughput parameters for an existing global secondary +// index. // -// An existing global secondary index to be removed from an existing table. +// * An existing global secondary index to be removed from an existing table. type GlobalSecondaryIndexUpdate struct { _ struct{} `type:"structure"` // The parameters required for creating a global secondary index on an existing // table: // - // IndexName + // * IndexName // - // KeySchema + // * KeySchema // - // AttributeDefinitions + // * AttributeDefinitions // - // Projection + // * Projection // - // ProvisionedThroughput + // * ProvisionedThroughput Create *CreateGlobalSecondaryIndexAction `type:"structure"` // The name of an existing global secondary index to be removed. @@ -3951,6 +4252,24 @@ func (s *GlobalSecondaryIndexUpdate) Validate() error { return nil } +// SetCreate sets the Create field's value. +func (s *GlobalSecondaryIndexUpdate) SetCreate(v *CreateGlobalSecondaryIndexAction) *GlobalSecondaryIndexUpdate { + s.Create = v + return s +} + +// SetDelete sets the Delete field's value. +func (s *GlobalSecondaryIndexUpdate) SetDelete(v *DeleteGlobalSecondaryIndexAction) *GlobalSecondaryIndexUpdate { + s.Delete = v + return s +} + +// SetUpdate sets the Update field's value. +func (s *GlobalSecondaryIndexUpdate) SetUpdate(v *UpdateGlobalSecondaryIndexAction) *GlobalSecondaryIndexUpdate { + s.Update = v + return s +} + // Information about item collections, if any, that were affected by the operation. // ItemCollectionMetrics is only returned if the request asked for it. If the // table does not have any local secondary indexes, this information is not @@ -3984,11 +4303,23 @@ func (s ItemCollectionMetrics) GoString() string { return s.String() } +// SetItemCollectionKey sets the ItemCollectionKey field's value. +func (s *ItemCollectionMetrics) SetItemCollectionKey(v map[string]*AttributeValue) *ItemCollectionMetrics { + s.ItemCollectionKey = v + return s +} + +// SetSizeEstimateRangeGB sets the SizeEstimateRangeGB field's value. +func (s *ItemCollectionMetrics) SetSizeEstimateRangeGB(v []*float64) *ItemCollectionMetrics { + s.SizeEstimateRangeGB = v + return s +} + // Represents a single element of a key schema. A key schema specifies the attributes // that make up the primary key of a table, or the key attributes of an index. // -// A KeySchemaElement represents exactly one attribute of the primary key. -// For example, a simple primary key would be represented by one KeySchemaElement +// A KeySchemaElement represents exactly one attribute of the primary key. For +// example, a simple primary key would be represented by one KeySchemaElement // (for the partition key). A composite primary key would require one KeySchemaElement // for the partition key, and another KeySchemaElement for the sort key. // @@ -4005,12 +4336,12 @@ type KeySchemaElement struct { // The role that this key attribute will assume: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -4051,6 +4382,18 @@ func (s *KeySchemaElement) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *KeySchemaElement) SetAttributeName(v string) *KeySchemaElement { + s.AttributeName = &v + return s +} + +// SetKeyType sets the KeyType field's value. +func (s *KeySchemaElement) SetKeyType(v string) *KeySchemaElement { + s.KeyType = &v + return s +} + // Represents a set of primary keys and, for each key, the attributes to retrieve // from the table. // @@ -4073,36 +4416,37 @@ type KeysAndAttributes struct { // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -4123,7 +4467,7 @@ type KeysAndAttributes struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // ProjectionExpression replaces the legacy AttributesToGet parameter. + // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` } @@ -4156,6 +4500,36 @@ func (s *KeysAndAttributes) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *KeysAndAttributes) SetAttributesToGet(v []*string) *KeysAndAttributes { + s.AttributesToGet = v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *KeysAndAttributes) SetConsistentRead(v bool) *KeysAndAttributes { + s.ConsistentRead = &v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *KeysAndAttributes) SetExpressionAttributeNames(v map[string]*string) *KeysAndAttributes { + s.ExpressionAttributeNames = v + return s +} + +// SetKeys sets the Keys field's value. +func (s *KeysAndAttributes) SetKeys(v []map[string]*AttributeValue) *KeysAndAttributes { + s.Keys = v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *KeysAndAttributes) SetProjectionExpression(v string) *KeysAndAttributes { + s.ProjectionExpression = &v + return s +} + // Represents the input of a ListTables operation. type ListTablesInput struct { _ struct{} `type:"structure"` @@ -4196,6 +4570,18 @@ func (s *ListTablesInput) Validate() error { return nil } +// SetExclusiveStartTableName sets the ExclusiveStartTableName field's value. +func (s *ListTablesInput) SetExclusiveStartTableName(v string) *ListTablesInput { + s.ExclusiveStartTableName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListTablesInput) SetLimit(v int64) *ListTablesInput { + s.Limit = &v + return s +} + // Represents the output of a ListTables operation. type ListTablesOutput struct { _ struct{} `type:"structure"` @@ -4227,6 +4613,18 @@ func (s ListTablesOutput) GoString() string { return s.String() } +// SetLastEvaluatedTableName sets the LastEvaluatedTableName field's value. +func (s *ListTablesOutput) SetLastEvaluatedTableName(v string) *ListTablesOutput { + s.LastEvaluatedTableName = &v + return s +} + +// SetTableNames sets the TableNames field's value. +func (s *ListTablesOutput) SetTableNames(v []*string) *ListTablesOutput { + s.TableNames = v + return s +} + // Represents the properties of a local secondary index. type LocalSecondaryIndex struct { _ struct{} `type:"structure"` @@ -4240,12 +4638,12 @@ type LocalSecondaryIndex struct { // The complete key schema for the local secondary index, consisting of one // or more pairs of attribute names and key types: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -4314,6 +4712,24 @@ func (s *LocalSecondaryIndex) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *LocalSecondaryIndex) SetIndexName(v string) *LocalSecondaryIndex { + s.IndexName = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *LocalSecondaryIndex) SetKeySchema(v []*KeySchemaElement) *LocalSecondaryIndex { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *LocalSecondaryIndex) SetProjection(v *Projection) *LocalSecondaryIndex { + s.Projection = v + return s +} + // Represents the properties of a local secondary index. type LocalSecondaryIndexDescription struct { _ struct{} `type:"structure"` @@ -4336,12 +4752,12 @@ type LocalSecondaryIndexDescription struct { // The complete key schema for the local secondary index, consisting of one // or more pairs of attribute names and key types: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -4366,6 +4782,42 @@ func (s LocalSecondaryIndexDescription) GoString() string { return s.String() } +// SetIndexArn sets the IndexArn field's value. +func (s *LocalSecondaryIndexDescription) SetIndexArn(v string) *LocalSecondaryIndexDescription { + s.IndexArn = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *LocalSecondaryIndexDescription) SetIndexName(v string) *LocalSecondaryIndexDescription { + s.IndexName = &v + return s +} + +// SetIndexSizeBytes sets the IndexSizeBytes field's value. +func (s *LocalSecondaryIndexDescription) SetIndexSizeBytes(v int64) *LocalSecondaryIndexDescription { + s.IndexSizeBytes = &v + return s +} + +// SetItemCount sets the ItemCount field's value. +func (s *LocalSecondaryIndexDescription) SetItemCount(v int64) *LocalSecondaryIndexDescription { + s.ItemCount = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *LocalSecondaryIndexDescription) SetKeySchema(v []*KeySchemaElement) *LocalSecondaryIndexDescription { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *LocalSecondaryIndexDescription) SetProjection(v *Projection) *LocalSecondaryIndexDescription { + s.Projection = v + return s +} + // Represents attributes that are copied (projected) from the table into an // index. These are in addition to the primary key attributes and index key // attributes, which are automatically projected. @@ -4374,20 +4826,20 @@ type Projection struct { // Represents the non-key attribute names which will be projected into the index. // - // For local secondary indexes, the total count of NonKeyAttributes summed - // across all of the local secondary indexes, must not exceed 20. If you project - // the same attribute into two different indexes, this counts as two distinct - // attributes when determining the total. + // For local secondary indexes, the total count of NonKeyAttributes summed across + // all of the local secondary indexes, must not exceed 20. If you project the + // same attribute into two different indexes, this counts as two distinct attributes + // when determining the total. NonKeyAttributes []*string `min:"1" type:"list"` // The set of attributes that are projected into the index: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // * KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // * INCLUDE - Only the specified table attributes are projected into the + // index. The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // * ALL - All of the table attributes are projected into the index. ProjectionType *string `type:"string" enum:"ProjectionType"` } @@ -4414,6 +4866,18 @@ func (s *Projection) Validate() error { return nil } +// SetNonKeyAttributes sets the NonKeyAttributes field's value. +func (s *Projection) SetNonKeyAttributes(v []*string) *Projection { + s.NonKeyAttributes = v + return s +} + +// SetProjectionType sets the ProjectionType field's value. +func (s *Projection) SetProjectionType(v string) *Projection { + s.ProjectionType = &v + return s +} + // Represents the provisioned throughput settings for a specified table or index. // The settings can be modified using the UpdateTable operation. // @@ -4472,6 +4936,18 @@ func (s *ProvisionedThroughput) Validate() error { return nil } +// SetReadCapacityUnits sets the ReadCapacityUnits field's value. +func (s *ProvisionedThroughput) SetReadCapacityUnits(v int64) *ProvisionedThroughput { + s.ReadCapacityUnits = &v + return s +} + +// SetWriteCapacityUnits sets the WriteCapacityUnits field's value. +func (s *ProvisionedThroughput) SetWriteCapacityUnits(v int64) *ProvisionedThroughput { + s.WriteCapacityUnits = &v + return s +} + // Represents the provisioned throughput settings for the table, consisting // of read and write capacity units, along with data about increases and decreases. type ProvisionedThroughputDescription struct { @@ -4510,6 +4986,36 @@ func (s ProvisionedThroughputDescription) GoString() string { return s.String() } +// SetLastDecreaseDateTime sets the LastDecreaseDateTime field's value. +func (s *ProvisionedThroughputDescription) SetLastDecreaseDateTime(v time.Time) *ProvisionedThroughputDescription { + s.LastDecreaseDateTime = &v + return s +} + +// SetLastIncreaseDateTime sets the LastIncreaseDateTime field's value. +func (s *ProvisionedThroughputDescription) SetLastIncreaseDateTime(v time.Time) *ProvisionedThroughputDescription { + s.LastIncreaseDateTime = &v + return s +} + +// SetNumberOfDecreasesToday sets the NumberOfDecreasesToday field's value. +func (s *ProvisionedThroughputDescription) SetNumberOfDecreasesToday(v int64) *ProvisionedThroughputDescription { + s.NumberOfDecreasesToday = &v + return s +} + +// SetReadCapacityUnits sets the ReadCapacityUnits field's value. +func (s *ProvisionedThroughputDescription) SetReadCapacityUnits(v int64) *ProvisionedThroughputDescription { + s.ReadCapacityUnits = &v + return s +} + +// SetWriteCapacityUnits sets the WriteCapacityUnits field's value. +func (s *ProvisionedThroughputDescription) SetWriteCapacityUnits(v int64) *ProvisionedThroughputDescription { + s.WriteCapacityUnits = &v + return s +} + // Represents the input of a PutItem operation. type PutItemInput struct { _ struct{} `type:"structure"` @@ -4519,21 +5025,21 @@ type PutItemInput struct { // // An expression can contain any of the following: // - // Functions: attribute_exists | attribute_not_exists | attribute_type | - // contains | begins_with | size + // * Functions: attribute_exists | attribute_not_exists | attribute_type + // | contains | begins_with | size // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= + // | >= | BETWEEN | IN // - // Logical operators: AND | OR | NOT + // * Logical operators: AND | OR | NOT // - // For more information on condition expressions, see Specifying Conditions + // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. // - // ConditionExpression replaces the legacy ConditionalOperator and Expected + // ConditionExpression replaces the legacy ConditionalOperator and Expected // parameters. ConditionExpression *string `type:"string"` @@ -4542,19 +5048,19 @@ type PutItemInput struct { // and expression parameters in a single API call; otherwise, DynamoDB will // return a ValidationException exception. // - // A logical operator to apply to the conditions in the Expected map: + // A logical operator to apply to the conditions in the Expected map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // * AND - If all of the conditions evaluate to true, then the entire map + // evaluates to true. // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. + // * OR - If at least one of the conditions evaluate to true, then the entire + // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // This is a legacy parameter, for backward compatibility. New applications @@ -4562,12 +5068,12 @@ type PutItemInput struct { // and expression parameters in a single API call; otherwise, DynamoDB will // return a ValidationException exception. // - // A map of attribute/condition pairs. Expected provides a conditional block + // A map of attribute/condition pairs. Expected provides a conditional block // for the PutItem operation. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. // - // Each element of Expected consists of an attribute name, a comparison operator, + // Each element of Expected consists of an attribute name, a comparison operator, // and one or more values. DynamoDB compares the attribute with the value(s) // you supplied, using the comparison operator. For each Expected element, the // result of the evaluation is either true or false. @@ -4581,211 +5087,127 @@ type PutItemInput struct { // If the Expected map evaluates to true, then the conditional operation succeeds; // otherwise, it fails. // - // Expected contains the following: + // Expected contains the following: // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. + // * AttributeValueList - One or more values to evaluate against the supplied + // attribute. The number of values in the list depends on the ComparisonOperator + // being used. // // For type Number, value comparisons are numeric. // // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // on ASCII character code values. For example, a is greater than A, and + // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters + // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). // // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. + // when it compares binary values. // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. + // * ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. + // When performing the comparison, DynamoDB uses strongly consistent reads. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in + // the request, the value does not match. For example, {"S":"6"} does not + // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // NE : Not equal. NE is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // Binary, String Set, Number Set, or Binary Set. If an item contains an + // AttributeValue of a different type than the one provided in the request, + // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // * LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue + // element of a different type than the one provided in the request, the + // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // * LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, + // * AttributeValueList can contain only one AttributeValue of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue + // element of a different type than the one provided in the request, the + // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. + // + // * GE : Greater than or equal. + // + // AttributeValueList can contain only one AttributeValue element of type String, // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GT: Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // AttributeValueListcan contain only one AttributeValueelement of type String, Number, or Binary (not a set type). If an item contains + // an AttributeValueelement of a different type than the one provided in the request, the value + // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // NOT_NULL + // : The attribute exists. NOT_NULL + // is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // This operator tests for the existence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute "a" exists; its data type is not relevant to the NOT_NULLcomparison operator. // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. + // NULL + // : The attribute does not exist. NULL + // is supported for all datatypes, including lists and maps. // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see - // Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) - // in the Amazon DynamoDB Developer Guide. - // - // For backward compatibility with previous DynamoDB releases, the following - // parameters can be used instead of AttributeValueList and ComparisonOperator: - // - // Value - A value for DynamoDB to compare with an attribute. - // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before - // attempting the conditional operation: - // - // If Exists is true, DynamoDB will check to see if that attribute value - // already exists in the table. If it is found, then the condition evaluates - // to true; otherwise the condition evaluate to false. - // - // If Exists is false, DynamoDB assumes that the attribute value does not - // exist in the table. If in fact the value does not exist, then the assumption - // is valid and the condition evaluates to true. If the value is found, despite - // the assumption that it does not exist, the condition evaluates to false. - // - // Note that the default value for Exists is true. - // - // The Value and Exists parameters are incompatible with AttributeValueList - // and ComparisonOperator. Note that if you use both sets of parameters at once, - // DynamoDB will return a ValidationException exception. + // This operator tests for the nonexistence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute "a" exists; its data type is not relevant to the NULL Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -4795,16 +5217,16 @@ type PutItemInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -4835,18 +5257,18 @@ type PutItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -4859,13 +5281,13 @@ type PutItemInput struct { // before they were updated with the PutItem request. For PutItem, the valid // values are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then - // nothing is returned. (This setting is the default for ReturnValues.) + // * NONE - If ReturnValues is not specified, or if its value is NONE, then + // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - If PutItem overwrote an attribute name-value pair, then the - // content of the old item is returned. + // * ALL_OLD - If PutItem overwrote an attribute name-value pair, then the + // content of the old item is returned. // - // The ReturnValues parameter is used by several DynamoDB operations; however, + // The ReturnValues parameter is used by several DynamoDB operations; however, // PutItem does not recognize any values other than NONE or ALL_OLD. ReturnValues *string `type:"string" enum:"ReturnValue"` @@ -4904,6 +5326,66 @@ func (s *PutItemInput) Validate() error { return nil } +// SetConditionExpression sets the ConditionExpression field's value. +func (s *PutItemInput) SetConditionExpression(v string) *PutItemInput { + s.ConditionExpression = &v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *PutItemInput) SetConditionalOperator(v string) *PutItemInput { + s.ConditionalOperator = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *PutItemInput) SetExpected(v map[string]*ExpectedAttributeValue) *PutItemInput { + s.Expected = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *PutItemInput) SetExpressionAttributeNames(v map[string]*string) *PutItemInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *PutItemInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *PutItemInput { + s.ExpressionAttributeValues = v + return s +} + +// SetItem sets the Item field's value. +func (s *PutItemInput) SetItem(v map[string]*AttributeValue) *PutItemInput { + s.Item = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *PutItemInput) SetReturnConsumedCapacity(v string) *PutItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *PutItemInput) SetReturnItemCollectionMetrics(v string) *PutItemInput { + s.ReturnItemCollectionMetrics = &v + return s +} + +// SetReturnValues sets the ReturnValues field's value. +func (s *PutItemInput) SetReturnValues(v string) *PutItemInput { + s.ReturnValues = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *PutItemInput) SetTableName(v string) *PutItemInput { + s.TableName = &v + return s +} + // Represents the output of a PutItem operation. type PutItemOutput struct { _ struct{} `type:"structure"` @@ -4928,18 +5410,18 @@ type PutItemOutput struct { // // Each ItemCollectionMetrics element consists of: // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item itself. + // * ItemCollectionKey - The partition key value of the item collection. + // This is the same as the partition key value of the item itself. // - // SizeEstimateRange - An estimate of item collection size, in gigabytes. - // This value is a two-element array containing a lower bound and an upper bound - // for the estimate. The estimate includes the size of all the items in the - // table, plus the size of all attributes projected into all of the local secondary - // indexes on that table. Use this estimate to measure whether a local secondary - // index is approaching its size limit. + // * SizeEstimateRange - An estimate of item collection size, in gigabytes. + // This value is a two-element array containing a lower bound and an upper + // bound for the estimate. The estimate includes the size of all the items + // in the table, plus the size of all attributes projected into all of the + // local secondary indexes on that table. Use this estimate to measure whether + // a local secondary index is approaching its size limit. // // The estimate is subject to change over time; therefore, do not rely on the - // precision or accuracy of the estimate. + // precision or accuracy of the estimate. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` } @@ -4953,6 +5435,24 @@ func (s PutItemOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *PutItemOutput) SetAttributes(v map[string]*AttributeValue) *PutItemOutput { + s.Attributes = v + return s +} + +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *PutItemOutput) SetConsumedCapacity(v *ConsumedCapacity) *PutItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *PutItemOutput) SetItemCollectionMetrics(v *ItemCollectionMetrics) *PutItemOutput { + s.ItemCollectionMetrics = v + return s +} + // Represents a request to perform a PutItem operation on an item. type PutRequest struct { _ struct{} `type:"structure"` @@ -4977,6 +5477,12 @@ func (s PutRequest) GoString() string { return s.String() } +// SetItem sets the Item field's value. +func (s *PutRequest) SetItem(v map[string]*AttributeValue) *PutRequest { + s.Item = v + return s +} + // Represents the input of a Query operation. type QueryInput struct { _ struct{} `type:"structure"` @@ -4989,9 +5495,9 @@ type QueryInput struct { // This parameter allows you to retrieve attributes of type List or Map; however, // it cannot retrieve individual elements within a List or a Map. // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. + // The names of one or more attributes to retrieve. If no attribute names are + // provided, then all attributes will be returned. If any of the requested attributes + // are not found, they will not appear in the result. // // Note that AttributesToGet has no effect on provisioned throughput consumption. // DynamoDB determines capacity units consumed based on item size, not on the @@ -5018,19 +5524,19 @@ type QueryInput struct { // expression parameters in a single API call; otherwise, DynamoDB will return // a ValidationException exception. // - // A logical operator to apply to the conditions in a QueryFilter map: + // A logical operator to apply to the conditions in a QueryFilter map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // * AND - If all of the conditions evaluate to true, then the entire map + // evaluates to true. // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. + // * OR - If at least one of the conditions evaluate to true, then the entire + // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // Determines the read consistency model: If set to true, then the operation @@ -5052,36 +5558,37 @@ type QueryInput struct { // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -5091,16 +5598,16 @@ type QueryInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -5111,13 +5618,13 @@ type QueryInput struct { // but before the data is returned to you. Items that do not satisfy the FilterExpression // criteria are not returned. // - // A FilterExpression is applied after the items have already been read; the + // A FilterExpression is applied after the items have already been read; the // process of filtering does not consume any additional read capacity units. // - // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) + // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) // in the Amazon DynamoDB Developer Guide. // - // FilterExpression replaces the legacy QueryFilter and ConditionalOperator + // FilterExpression replaces the legacy QueryFilter and ConditionalOperator // parameters. FilterExpression *string `type:"string"` @@ -5138,39 +5645,40 @@ type QueryInput struct { // The partition key equality test is required, and must be specified in the // following format: // - // partitionKeyName = :partitionkeyval + // partitionKeyName=:partitionkeyval // // If you also want to provide a condition for the sort key, it must be combined // using AND with the condition for the sort key. Following is an example, using // the = comparison operator for the sort key: // - // partitionKeyName = :partitionkeyval AND sortKeyName = :sortkeyval + // partitionKeyName=:partitionkeyvalANDsortKeyName=:sortkeyval // // Valid comparisons for the sort key condition are as follows: // - // sortKeyName = :sortkeyval - true if the sort key value is equal to :sortkeyval. + // * sortKeyName=:sortkeyval - true if the sort key value is equal to :sortkeyval. // - // sortKeyName < :sortkeyval - true if the sort key value is less than :sortkeyval. + // * sortKeyName<:sortkeyval - true if the sort key value is less than :sortkeyval. // - // sortKeyName <= :sortkeyval - true if the sort key value is less than - // or equal to :sortkeyval. + // * sortKeyName<=:sortkeyval - true if the sort key value is less than or + // equal to :sortkeyval. // - // sortKeyName > :sortkeyval - true if the sort key value is greater than - // :sortkeyval. + // * sortKeyName>:sortkeyval - true if the sort key value is greater than + // :sortkeyval. // - // sortKeyName >= :sortkeyval - true if the sort key value is greater than - // or equal to :sortkeyval. + // * sortKeyName>= :sortkeyval - true if the sort key value is greater than + // or equal to :sortkeyval. // - // sortKeyName BETWEEN :sortkeyval1 AND :sortkeyval2 - true if the sort - // key value is greater than or equal to :sortkeyval1, and less than or equal - // to :sortkeyval2. + // * sortKeyNameBETWEEN:sortkeyval1AND:sortkeyval2 - true if the sort key + // value is greater than or equal to :sortkeyval1, and less than or equal + // to :sortkeyval2. // - // begins_with ( sortKeyName, :sortkeyval ) - true if the sort key value - // begins with a particular operand. (You cannot use this function with a sort - // key that is of type Number.) Note that the function name begins_with is case-sensitive. + // * begins_with (sortKeyName, :sortkeyval) - true if the sort key value + // begins with a particular operand. (You cannot use this function with a + // sort key that is of type Number.) Note that the function name begins_with + // is case-sensitive. // - // Use the ExpressionAttributeValues parameter to replace tokens such as - // :partitionval and :sortval with actual values at runtime. + // Use the ExpressionAttributeValues parameter to replace tokens such as :partitionval + // and :sortval with actual values at runtime. // // You can optionally use the ExpressionAttributeNames parameter to replace // the names of the partition key and sort key with placeholder tokens. This @@ -5178,21 +5686,21 @@ type QueryInput struct { // reserved word. For example, the following KeyConditionExpression parameter // causes an error because Size is a reserved word: // - // Size = :myval + // * Size = :myval // - // To work around this, define a placeholder (such a #S) to represent the - // attribute name Size. KeyConditionExpression then is as follows: + // To work around this, define a placeholder (such a #S) to represent the attribute + // name Size. KeyConditionExpression then is as follows: // - // #S = :myval + // * #S = :myval // - // For a list of reserved words, see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + // For a list of reserved words, see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide. // // For more information on ExpressionAttributeNames and ExpressionAttributeValues, // see Using Placeholders for Attribute Names and Values (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html) // in the Amazon DynamoDB Developer Guide. // - // KeyConditionExpression replaces the legacy KeyConditions parameter. + // KeyConditionExpression replaces the legacy KeyConditions parameter. KeyConditionExpression *string `type:"string"` // This is a legacy parameter, for backward compatibility. New applications @@ -5200,106 +5708,89 @@ type QueryInput struct { // and expression parameters in a single API call; otherwise, DynamoDB will // return a ValidationException exception. // - // The selection criteria for the query. For a query on a table, you can have + // The selection criteria for the query. For a query on a table, you can have // conditions only on the table primary key attributes. You must provide the // partition key name and value as an EQ condition. You can optionally provide // a second condition, referring to the sort key. // - // If you don't provide a sort key condition, all of the items that match - // the partition key will be retrieved. If a FilterExpression or QueryFilter - // is present, it will be applied after the items are retrieved. + // If you don't provide a sort key condition, all of the items that match the + // partition key will be retrieved. If a FilterExpression or QueryFilter is + // present, it will be applied after the items are retrieved. // - // For a query on an index, you can have conditions only on the index key - // attributes. You must provide the index partition key name and value as an - // EQ condition. You can optionally provide a second condition, referring to - // the index sort key. + // For a query on an index, you can have conditions only on the index key attributes. + // You must provide the index partition key name and value as an EQ condition. + // You can optionally provide a second condition, referring to the index sort + // key. // // Each KeyConditions element consists of an attribute name to compare, along // with the following: // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. + // * AttributeValueList - One or more values to evaluate against the supplied + // attribute. The number of values in the list depends on the ComparisonOperator + // being used. // // For type Number, value comparisons are numeric. // // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // on ASCII character code values. For example, a is greater than A, and + // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters + // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). // // For Binary, DynamoDB treats each byte of the binary data as unsigned when - // it compares binary values. + // it compares binary values. // - // ComparisonOperator - A comparator for evaluating attributes, for example, - // equals, greater than, less than, and so on. + // * ComparisonOperator - A comparator for evaluating attributes, for example, + // equals, greater than, less than, and so on. // // For KeyConditions, only the following comparison operators are supported: // - // EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN + // EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN // // The following are descriptions of these comparison operators. // - // EQ : Equal. + // EQ : Equal. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one specified in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one specified in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue + // element of a different type than the one provided in the request, the + // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // * LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // does not compare to {"NS":["6", "2", "1"]}. + // + // * GE : Greater than or equal. + // + // * AttributeValueList can contain only one AttributeValue element of type + // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // element of a different type than the one provided in the request, the + // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. + // + // * GT : Greater than. + // + // AttributeValueList can contain only one AttributeValue element of type String, // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // BEGINS_WITH: Checks for a prefix. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see - // Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) - // in the Amazon DynamoDB Developer Guide. + // AttributeValueListcan contain only one AttributeValue KeyConditions map[string]*Condition `type:"map"` // The maximum number of items to evaluate (not necessarily the number of matching @@ -5325,7 +5816,7 @@ type QueryInput struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // ProjectionExpression replaces the legacy AttributesToGet parameter. + // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // This is a legacy parameter, for backward compatibility. New applications @@ -5333,18 +5824,18 @@ type QueryInput struct { // expression parameters in a single API call; otherwise, DynamoDB will return // a ValidationException exception. // - // A condition that evaluates the query results after the items are read and + // A condition that evaluates the query results after the items are read and // returns only the desired values. // // This parameter does not support attributes of type List or Map. // - // A QueryFilter is applied after the items have already been read; the process + // A QueryFilter is applied after the items have already been read; the process // of filtering does not consume any additional read capacity units. // - // If you provide more than one condition in the QueryFilter map, then by - // default all of the conditions must evaluate to true. In other words, the - // conditions are ANDed together. (You can use the ConditionalOperator parameter - // to OR the conditions instead. If you do this, then at least one of the conditions + // If you provide more than one condition in the QueryFilter map, then by default + // all of the conditions must evaluate to true. In other words, the conditions + // are ANDed together. (You can use the ConditionalOperator parameter to OR + // the conditions instead. If you do this, then at least one of the conditions // must evaluate to true, rather than all of them.) // // Note that QueryFilter does not allow key attributes. You cannot define a @@ -5353,51 +5844,51 @@ type QueryInput struct { // Each QueryFilter element consists of an attribute name to compare, along // with the following: // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the operator specified - // in ComparisonOperator. + // * AttributeValueList - One or more values to evaluate against the supplied + // attribute. The number of values in the list depends on the operator specified + // in ComparisonOperator. // // For type Number, value comparisons are numeric. // // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // on ASCII character code values. For example, a is greater than A, and + // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters + // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). // // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. + // when it compares binary values. // // For information on specifying data types in JSON, see JSON Data Format (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) - // in the Amazon DynamoDB Developer Guide. + // in the Amazon DynamoDB Developer Guide. // - // ComparisonOperator - A comparator for evaluating attributes. For example, - // equals, greater than, less than, etc. + // * ComparisonOperator - A comparator for evaluating attributes. For example, + // equals, greater than, less than, etc. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // For complete descriptions of all comparison operators, see the Condition - // (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html) - // data type. + // (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html) + // data type. QueryFilter map[string]*Condition `type:"map"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Specifies the order for index traversal: If true (default), the traversal @@ -5420,43 +5911,44 @@ type QueryInput struct { // specific item attributes, the count of matching items, or in the case of // an index, some or all of the attributes projected into the index. // - // ALL_ATTRIBUTES - Returns all of the item attributes from the specified - // table or index. If you query a local secondary index, then for each matching - // item in the index DynamoDB will fetch the entire item from the parent table. - // If the index is configured to project all item attributes, then all of the - // data can be obtained from the local secondary index, and no fetching is required. + // * ALL_ATTRIBUTES - Returns all of the item attributes from the specified + // table or index. If you query a local secondary index, then for each matching + // item in the index DynamoDB will fetch the entire item from the parent + // table. If the index is configured to project all item attributes, then + // all of the data can be obtained from the local secondary index, and no + // fetching is required. // - // ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves - // all attributes that have been projected into the index. If the index is configured - // to project all attributes, this return value is equivalent to specifying - // ALL_ATTRIBUTES. + // * ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves + // all attributes that have been projected into the index. If the index is + // configured to project all attributes, this return value is equivalent + // to specifying ALL_ATTRIBUTES. // - // COUNT - Returns the number of matching items, rather than the matching - // items themselves. + // * COUNT - Returns the number of matching items, rather than the matching + // items themselves. // - // SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. - // This return value is equivalent to specifying AttributesToGet without specifying - // any value for Select. + // * SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. + // This return value is equivalent to specifying AttributesToGet without + // specifying any value for Select. // // If you query a local secondary index and request only attributes that are - // projected into that index, the operation will read only the index and not - // the table. If any of the requested attributes are not projected into the - // local secondary index, DynamoDB will fetch each of these attributes from - // the parent table. This extra fetching incurs additional throughput cost and - // latency. + // projected into that index, the operation will read only the index and + // not the table. If any of the requested attributes are not projected into + // the local secondary index, DynamoDB will fetch each of these attributes + // from the parent table. This extra fetching incurs additional throughput + // cost and latency. // // If you query a global secondary index, you can only request attributes that - // are projected into the index. Global secondary index queries cannot fetch - // attributes from the parent table. + // are projected into the index. Global secondary index queries cannot fetch + // attributes from the parent table. // - // If neither Select nor AttributesToGet are specified, DynamoDB defaults - // to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when + // If neither Select nor AttributesToGet are specified, DynamoDB defaults to + // ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when // accessing an index. You cannot use both Select and AttributesToGet together // in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. // (This usage is equivalent to specifying AttributesToGet without any value // for Select.) // - // If you use the ProjectionExpression parameter, then the value for Select + // If you use the ProjectionExpression parameter, then the value for Select // can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an // error. Select *string `type:"string" enum:"Select"` @@ -5522,6 +6014,108 @@ func (s *QueryInput) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *QueryInput) SetAttributesToGet(v []*string) *QueryInput { + s.AttributesToGet = v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *QueryInput) SetConditionalOperator(v string) *QueryInput { + s.ConditionalOperator = &v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *QueryInput) SetConsistentRead(v bool) *QueryInput { + s.ConsistentRead = &v + return s +} + +// SetExclusiveStartKey sets the ExclusiveStartKey field's value. +func (s *QueryInput) SetExclusiveStartKey(v map[string]*AttributeValue) *QueryInput { + s.ExclusiveStartKey = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *QueryInput) SetExpressionAttributeNames(v map[string]*string) *QueryInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *QueryInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *QueryInput { + s.ExpressionAttributeValues = v + return s +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *QueryInput) SetFilterExpression(v string) *QueryInput { + s.FilterExpression = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *QueryInput) SetIndexName(v string) *QueryInput { + s.IndexName = &v + return s +} + +// SetKeyConditionExpression sets the KeyConditionExpression field's value. +func (s *QueryInput) SetKeyConditionExpression(v string) *QueryInput { + s.KeyConditionExpression = &v + return s +} + +// SetKeyConditions sets the KeyConditions field's value. +func (s *QueryInput) SetKeyConditions(v map[string]*Condition) *QueryInput { + s.KeyConditions = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *QueryInput) SetLimit(v int64) *QueryInput { + s.Limit = &v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *QueryInput) SetProjectionExpression(v string) *QueryInput { + s.ProjectionExpression = &v + return s +} + +// SetQueryFilter sets the QueryFilter field's value. +func (s *QueryInput) SetQueryFilter(v map[string]*Condition) *QueryInput { + s.QueryFilter = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *QueryInput) SetReturnConsumedCapacity(v string) *QueryInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetScanIndexForward sets the ScanIndexForward field's value. +func (s *QueryInput) SetScanIndexForward(v bool) *QueryInput { + s.ScanIndexForward = &v + return s +} + +// SetSelect sets the Select field's value. +func (s *QueryInput) SetSelect(v string) *QueryInput { + s.Select = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *QueryInput) SetTableName(v string) *QueryInput { + s.TableName = &v + return s +} + // Represents the output of a Query operation. type QueryOutput struct { _ struct{} `type:"structure"` @@ -5540,8 +6134,8 @@ type QueryOutput struct { // returned after the filter was applied, and ScannedCount is the number of // matching items before the filter was applied. // - // If you did not use a filter in the request, then Count and ScannedCount - // are the same. + // If you did not use a filter in the request, then Count and ScannedCount are + // the same. Count *int64 `type:"integer"` // An array of item attributes that match the query criteria. Each element in @@ -5580,6 +6174,36 @@ func (s QueryOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *QueryOutput) SetConsumedCapacity(v *ConsumedCapacity) *QueryOutput { + s.ConsumedCapacity = v + return s +} + +// SetCount sets the Count field's value. +func (s *QueryOutput) SetCount(v int64) *QueryOutput { + s.Count = &v + return s +} + +// SetItems sets the Items field's value. +func (s *QueryOutput) SetItems(v []map[string]*AttributeValue) *QueryOutput { + s.Items = v + return s +} + +// SetLastEvaluatedKey sets the LastEvaluatedKey field's value. +func (s *QueryOutput) SetLastEvaluatedKey(v map[string]*AttributeValue) *QueryOutput { + s.LastEvaluatedKey = v + return s +} + +// SetScannedCount sets the ScannedCount field's value. +func (s *QueryOutput) SetScannedCount(v int64) *QueryOutput { + s.ScannedCount = &v + return s +} + // Represents the input of a Scan operation. type ScanInput struct { _ struct{} `type:"structure"` @@ -5592,9 +6216,9 @@ type ScanInput struct { // This parameter allows you to retrieve attributes of type List or Map; however, // it cannot retrieve individual elements within a List or a Map. // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. + // The names of one or more attributes to retrieve. If no attribute names are + // provided, then all attributes will be returned. If any of the requested attributes + // are not found, they will not appear in the result. // // Note that AttributesToGet has no effect on provisioned throughput consumption. // DynamoDB determines capacity units consumed based on item size, not on the @@ -5606,31 +6230,31 @@ type ScanInput struct { // expression parameters in a single API call; otherwise, DynamoDB will return // a ValidationException exception. // - // A logical operator to apply to the conditions in a ScanFilter map: + // A logical operator to apply to the conditions in a ScanFilter map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // * AND - If all of the conditions evaluate to true, then the entire map + // evaluates to true. // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. + // * OR - If at least one of the conditions evaluate to true, then the entire + // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // A Boolean value that determines the read consistency model during the scan: // - // If ConsistentRead is false, then the data returned from Scan might not - // contain the results from other recently completed write operations (PutItem, - // UpdateItem or DeleteItem). + // * If ConsistentRead is false, then the data returned from Scan might not + // contain the results from other recently completed write operations (PutItem, + // UpdateItem or DeleteItem). // - // If ConsistentRead is true, then all of the write operations that completed - // before the Scan began are guaranteed to be contained in the Scan response. + // * If ConsistentRead is true, then all of the write operations that completed + // before the Scan began are guaranteed to be contained in the Scan response. // - // The default setting for ConsistentRead is false. + // The default setting for ConsistentRead is false. // // The ConsistentRead parameter is not supported on global secondary indexes. // If you scan a global secondary index with ConsistentRead set to true, you @@ -5643,44 +6267,45 @@ type ScanInput struct { // The data type for ExclusiveStartKey must be String, Number or Binary. No // set data types are allowed. // - // In a parallel scan, a Scan request that includes ExclusiveStartKey must - // specify the same segment whose previous Scan returned the corresponding value - // of LastEvaluatedKey. + // In a parallel scan, a Scan request that includes ExclusiveStartKey must specify + // the same segment whose previous Scan returned the corresponding value of + // LastEvaluatedKey. ExclusiveStartKey map[string]*AttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -5690,16 +6315,16 @@ type ScanInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -5710,14 +6335,13 @@ type ScanInput struct { // but before the data is returned to you. Items that do not satisfy the FilterExpression // criteria are not returned. // - // A FilterExpression is applied after the items have already been read; the + // A FilterExpression is applied after the items have already been read; the // process of filtering does not consume any additional read capacity units. // - // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) + // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) // in the Amazon DynamoDB Developer Guide. // - // FilterExpression replaces the legacy ScanFilter and ConditionalOperator - // parameters. + // FilterExpression replaces the legacy ScanFilter and ConditionalOperator parameters. FilterExpression *string `type:"string"` // The name of a secondary index to scan. This index can be any local secondary @@ -5748,24 +6372,24 @@ type ScanInput struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // ProjectionExpression replaces the legacy AttributesToGet parameter. + // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // This is a legacy parameter, for backward compatibility. New applications @@ -5773,44 +6397,44 @@ type ScanInput struct { // expression parameters in a single API call; otherwise, DynamoDB will return // a ValidationException exception. // - // A condition that evaluates the scan results and returns only the desired + // A condition that evaluates the scan results and returns only the desired // values. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. // - // If you specify more than one condition in the ScanFilter map, then by default + // If you specify more than one condition in the ScanFilter map, then by default // all of the conditions must evaluate to true. In other words, the conditions // are ANDed together. (You can use the ConditionalOperator parameter to OR // the conditions instead. If you do this, then at least one of the conditions // must evaluate to true, rather than all of them.) // - // Each ScanFilter element consists of an attribute name to compare, along - // with the following: + // Each ScanFilter element consists of an attribute name to compare, along with + // the following: // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the operator specified - // in ComparisonOperator . + // * AttributeValueList - One or more values to evaluate against the supplied + // attribute. The number of values in the list depends on the operator specified + // in ComparisonOperator . // // For type Number, value comparisons are numeric. // // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // on ASCII character code values. For example, a is greater than A, and + // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters + // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). // // For Binary, DynamoDB treats each byte of the binary data as unsigned when - // it compares binary values. + // it compares binary values. // // For information on specifying data types in JSON, see JSON Data Format (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) - // in the Amazon DynamoDB Developer Guide. + // in the Amazon DynamoDB Developer Guide. // - // ComparisonOperator - A comparator for evaluating attributes. For example, - // equals, greater than, less than, etc. + // * ComparisonOperator - A comparator for evaluating attributes. For example, + // equals, greater than, less than, etc. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // For complete descriptions of all comparison operators, see Condition (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html). ScanFilter map[string]*Condition `type:"map"` @@ -5827,8 +6451,8 @@ type ScanInput struct { // be used as ExclusiveStartKey with the same segment ID in a subsequent Scan // operation. // - // The value for Segment must be greater than or equal to 0, and less than - // the value provided for TotalSegments. + // The value for Segment must be greater than or equal to 0, and less than the + // value provided for TotalSegments. // // If you provide Segment, you must also provide TotalSegments. Segment *int64 `type:"integer"` @@ -5836,25 +6460,24 @@ type ScanInput struct { // The attributes to be returned in the result. You can retrieve all item attributes, // specific item attributes, or the count of matching items. // - // ALL_ATTRIBUTES - Returns all of the item attributes. + // * ALL_ATTRIBUTES - Returns all of the item attributes. // - // ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves - // all attributes that have been projected into the index. If the index is configured - // to project all attributes, this return value is equivalent to specifying - // ALL_ATTRIBUTES. + // * ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves + // all attributes that have been projected into the index. If the index is + // configured to project all attributes, this return value is equivalent + // to specifying ALL_ATTRIBUTES. // - // COUNT - Returns the number of matching items, rather than the matching - // items themselves. + // * COUNT - Returns the number of matching items, rather than the matching + // items themselves. // - // SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. - // This return value is equivalent to specifying AttributesToGet without specifying - // any value for Select. + // * SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. + // This return value is equivalent to specifying AttributesToGet without + // specifying any value for Select. // - // If neither Select nor AttributesToGet are specified, DynamoDB defaults - // to ALL_ATTRIBUTES. You cannot use both AttributesToGet and Select together - // in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. - // (This usage is equivalent to specifying AttributesToGet without any value - // for Select.) + // If neither Select nor AttributesToGet are specified, DynamoDB defaults to + // ALL_ATTRIBUTES. You cannot use both AttributesToGet and Select together in + // a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This + // usage is equivalent to specifying AttributesToGet without any value for Select.) Select *string `type:"string" enum:"Select"` // The name of the table containing the requested items; or, if you provide @@ -5925,6 +6548,102 @@ func (s *ScanInput) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *ScanInput) SetAttributesToGet(v []*string) *ScanInput { + s.AttributesToGet = v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *ScanInput) SetConditionalOperator(v string) *ScanInput { + s.ConditionalOperator = &v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *ScanInput) SetConsistentRead(v bool) *ScanInput { + s.ConsistentRead = &v + return s +} + +// SetExclusiveStartKey sets the ExclusiveStartKey field's value. +func (s *ScanInput) SetExclusiveStartKey(v map[string]*AttributeValue) *ScanInput { + s.ExclusiveStartKey = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *ScanInput) SetExpressionAttributeNames(v map[string]*string) *ScanInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *ScanInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *ScanInput { + s.ExpressionAttributeValues = v + return s +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *ScanInput) SetFilterExpression(v string) *ScanInput { + s.FilterExpression = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ScanInput) SetIndexName(v string) *ScanInput { + s.IndexName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ScanInput) SetLimit(v int64) *ScanInput { + s.Limit = &v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *ScanInput) SetProjectionExpression(v string) *ScanInput { + s.ProjectionExpression = &v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *ScanInput) SetReturnConsumedCapacity(v string) *ScanInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetScanFilter sets the ScanFilter field's value. +func (s *ScanInput) SetScanFilter(v map[string]*Condition) *ScanInput { + s.ScanFilter = v + return s +} + +// SetSegment sets the Segment field's value. +func (s *ScanInput) SetSegment(v int64) *ScanInput { + s.Segment = &v + return s +} + +// SetSelect sets the Select field's value. +func (s *ScanInput) SetSelect(v string) *ScanInput { + s.Select = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ScanInput) SetTableName(v string) *ScanInput { + s.TableName = &v + return s +} + +// SetTotalSegments sets the TotalSegments field's value. +func (s *ScanInput) SetTotalSegments(v int64) *ScanInput { + s.TotalSegments = &v + return s +} + // Represents the output of a Scan operation. type ScanOutput struct { _ struct{} `type:"structure"` @@ -5939,9 +6658,9 @@ type ScanOutput struct { // The number of items in the response. // - // If you set ScanFilter in the request, then Count is the number of items - // returned after the filter was applied, and ScannedCount is the number of - // matching items before the filter was applied. + // If you set ScanFilter in the request, then Count is the number of items returned + // after the filter was applied, and ScannedCount is the number of matching + // items before the filter was applied. // // If you did not use a filter in the request, then Count is the same as ScannedCount. Count *int64 `type:"integer"` @@ -5982,6 +6701,36 @@ func (s ScanOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *ScanOutput) SetConsumedCapacity(v *ConsumedCapacity) *ScanOutput { + s.ConsumedCapacity = v + return s +} + +// SetCount sets the Count field's value. +func (s *ScanOutput) SetCount(v int64) *ScanOutput { + s.Count = &v + return s +} + +// SetItems sets the Items field's value. +func (s *ScanOutput) SetItems(v []map[string]*AttributeValue) *ScanOutput { + s.Items = v + return s +} + +// SetLastEvaluatedKey sets the LastEvaluatedKey field's value. +func (s *ScanOutput) SetLastEvaluatedKey(v map[string]*AttributeValue) *ScanOutput { + s.LastEvaluatedKey = v + return s +} + +// SetScannedCount sets the ScannedCount field's value. +func (s *ScanOutput) SetScannedCount(v int64) *ScanOutput { + s.ScannedCount = &v + return s +} + // Represents the DynamoDB Streams configuration for a table in DynamoDB. type StreamSpecification struct { _ struct{} `type:"structure"` @@ -5992,24 +6741,24 @@ type StreamSpecification struct { // The DynamoDB Streams settings for the table. These settings consist of: // - // StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) - // or disabled (false) on the table. + // * StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) + // or disabled (false) on the table. // - // StreamViewType - When an item in the table is modified, StreamViewType - // determines what information is written to the stream for this table. Valid - // values for StreamViewType are: + // * StreamViewType - When an item in the table is modified, StreamViewType + // determines what information is written to the stream for this table. Valid + // values for StreamViewType are: // - // KEYS_ONLY - Only the key attributes of the modified item are written - // to the stream. + // KEYS_ONLY - Only the key attributes of the modified item are written to the + // stream. // - // NEW_IMAGE - The entire item, as it appears after it was modified, is - // written to the stream. + // NEW_IMAGE - The entire item, as it appears after it was modified, is written + // to the stream. // - // OLD_IMAGE - The entire item, as it appeared before it was modified, is - // written to the stream. + // OLD_IMAGE - The entire item, as it appeared before it was modified, is written + // to the stream. // - // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item - // are written to the stream. + // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are + // written to the stream. StreamViewType *string `type:"string" enum:"StreamViewType"` } @@ -6023,6 +6772,18 @@ func (s StreamSpecification) GoString() string { return s.String() } +// SetStreamEnabled sets the StreamEnabled field's value. +func (s *StreamSpecification) SetStreamEnabled(v bool) *StreamSpecification { + s.StreamEnabled = &v + return s +} + +// SetStreamViewType sets the StreamViewType field's value. +func (s *StreamSpecification) SetStreamViewType(v string) *StreamSpecification { + s.StreamViewType = &v + return s +} + // Represents the properties of a table. type TableDescription struct { _ struct{} `type:"structure"` @@ -6032,9 +6793,9 @@ type TableDescription struct { // // Each AttributeDefinition object in this array is composed of: // - // AttributeName - The name of the attribute. + // * AttributeName - The name of the attribute. // - // AttributeType - The data type for the attribute. + // * AttributeType - The data type for the attribute. AttributeDefinitions []*AttributeDefinition `type:"list"` // The date and time when the table was created, in UNIX epoch time (http://www.epochconverter.com/) @@ -6044,61 +6805,61 @@ type TableDescription struct { // The global secondary indexes, if any, on the table. Each index is scoped // to a given partition key value. Each element is composed of: // - // Backfilling - If true, then the index is currently in the backfilling - // phase. Backfilling occurs only when a new global secondary index is added - // to the table; it is the process by which DynamoDB populates the new index - // with data from the table. (This attribute does not appear for indexes that - // were created during a CreateTable operation.) + // * Backfilling - If true, then the index is currently in the backfilling + // phase. Backfilling occurs only when a new global secondary index is added + // to the table; it is the process by which DynamoDB populates the new index + // with data from the table. (This attribute does not appear for indexes + // that were created during a CreateTable operation.) // - // IndexName - The name of the global secondary index. + // * IndexName - The name of the global secondary index. // - // IndexSizeBytes - The total size of the global secondary index, in bytes. - // DynamoDB updates this value approximately every six hours. Recent changes - // might not be reflected in this value. + // * IndexSizeBytes - The total size of the global secondary index, in bytes. + // DynamoDB updates this value approximately every six hours. Recent changes + // might not be reflected in this value. // - // IndexStatus - The current status of the global secondary index: + // * IndexStatus - The current status of the global secondary index: // - // CREATING - The index is being created. + // CREATING - The index is being created. // - // UPDATING - The index is being updated. + // UPDATING - The index is being updated. // - // DELETING - The index is being deleted. + // DELETING - The index is being deleted. // - // ACTIVE - The index is ready for use. + // ACTIVE - The index is ready for use. // - // ItemCount - The number of items in the global secondary index. DynamoDB - // updates this value approximately every six hours. Recent changes might not - // be reflected in this value. + // * ItemCount - The number of items in the global secondary index. DynamoDB + // updates this value approximately every six hours. Recent changes might + // not be reflected in this value. // - // KeySchema - Specifies the complete index key schema. The attribute names - // in the key schema must be between 1 and 255 characters (inclusive). The key - // schema must begin with the same partition key as the table. + // * KeySchema - Specifies the complete index key schema. The attribute names + // in the key schema must be between 1 and 255 characters (inclusive). The + // key schema must begin with the same partition key as the table. // - // Projection - Specifies attributes that are copied (projected) from the - // table into the index. These are in addition to the primary key attributes - // and index key attributes, which are automatically projected. Each attribute - // specification is composed of: + // * Projection - Specifies attributes that are copied (projected) from the + // table into the index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Each attribute + // specification is composed of: // - // ProjectionType - One of the following: + // ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that - // are projected into the secondary index. The total count of attributes provided - // in NonKeyAttributes, summed across all of the secondary indexes, must not - // exceed 20. If you project the same attribute into two different indexes, - // this counts as two distinct attributes when determining the total. + // NonKeyAttributes - A list of one or more non-key attribute names that are + // projected into the secondary index. The total count of attributes provided + // in NonKeyAttributes, summed across all of the secondary indexes, must + // not exceed 20. If you project the same attribute into two different indexes, + // this counts as two distinct attributes when determining the total. // - // ProvisionedThroughput - The provisioned throughput settings for the - // global secondary index, consisting of read and write capacity units, along - // with data about increases and decreases. + // * ProvisionedThroughput - The provisioned throughput settings for the + // global secondary index, consisting of read and write capacity units, along + // with data about increases and decreases. // - // If the table is in the DELETING state, no information about indexes will + // If the table is in the DELETING state, no information about indexes will // be returned. GlobalSecondaryIndexes []*GlobalSecondaryIndexDescription `type:"list"` @@ -6108,24 +6869,24 @@ type TableDescription struct { // The primary key structure for the table. Each KeySchemaElement consists of: // - // AttributeName - The name of the attribute. + // * AttributeName - The name of the attribute. // - // KeyType - The role of the attribute: + // * KeyType - The role of the attribute: // - // HASH - partition key + // HASH - partition key // - // RANGE - sort key + // RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function - // to evenly distribute data items across partitions, based on their partition - // key values. + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function + // to evenly distribute data items across partitions, based on their partition + // key values. // // The sort key of an item is also known as its range attribute. The term "range - // attribute" derives from the way DynamoDB stores items with the same partition - // key physically close together, in sorted order by the sort key value. + // attribute" derives from the way DynamoDB stores items with the same partition + // key physically close together, in sorted order by the sort key value. // - // For more information about primary keys, see Primary Key (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey) + // For more information about primary keys, see Primary Key (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey) // in the Amazon DynamoDB Developer Guide. KeySchema []*KeySchemaElement `min:"1" type:"list"` @@ -6140,11 +6901,11 @@ type TableDescription struct { // However, the combination of the following three elements is guaranteed to // be unique: // - // the AWS customer ID. + // * the AWS customer ID. // - // the table name. + // * the table name. // - // the StreamLabel. + // * the StreamLabel. LatestStreamLabel *string `type:"string"` // Represents one or more local secondary indexes on the table. Each index is @@ -6153,41 +6914,41 @@ type TableDescription struct { // data within a given item collection cannot exceed 10 GB. Each element is // composed of: // - // IndexName - The name of the local secondary index. + // * IndexName - The name of the local secondary index. // - // KeySchema - Specifies the complete index key schema. The attribute names - // in the key schema must be between 1 and 255 characters (inclusive). The key - // schema must begin with the same partition key as the table. + // * KeySchema - Specifies the complete index key schema. The attribute names + // in the key schema must be between 1 and 255 characters (inclusive). The + // key schema must begin with the same partition key as the table. // - // Projection - Specifies attributes that are copied (projected) from the - // table into the index. These are in addition to the primary key attributes - // and index key attributes, which are automatically projected. Each attribute - // specification is composed of: + // * Projection - Specifies attributes that are copied (projected) from the + // table into the index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Each attribute + // specification is composed of: // - // ProjectionType - One of the following: + // ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that - // are projected into the secondary index. The total count of attributes provided - // in NonKeyAttributes, summed across all of the secondary indexes, must not - // exceed 20. If you project the same attribute into two different indexes, - // this counts as two distinct attributes when determining the total. + // NonKeyAttributes - A list of one or more non-key attribute names that are + // projected into the secondary index. The total count of attributes provided + // in NonKeyAttributes, summed across all of the secondary indexes, must + // not exceed 20. If you project the same attribute into two different indexes, + // this counts as two distinct attributes when determining the total. // - // IndexSizeBytes - Represents the total size of the index, in bytes. - // DynamoDB updates this value approximately every six hours. Recent changes - // might not be reflected in this value. + // * IndexSizeBytes - Represents the total size of the index, in bytes. DynamoDB + // updates this value approximately every six hours. Recent changes might + // not be reflected in this value. // - // ItemCount - Represents the number of items in the index. DynamoDB updates - // this value approximately every six hours. Recent changes might not be reflected - // in this value. + // * ItemCount - Represents the number of items in the index. DynamoDB updates + // this value approximately every six hours. Recent changes might not be + // reflected in this value. // - // If the table is in the DELETING state, no information about indexes will + // If the table is in the DELETING state, no information about indexes will // be returned. LocalSecondaryIndexes []*LocalSecondaryIndexDescription `type:"list"` @@ -6211,13 +6972,13 @@ type TableDescription struct { // The current state of the table: // - // CREATING - The table is being created. + // * CREATING - The table is being created. // - // UPDATING - The table is being updated. + // * UPDATING - The table is being updated. // - // DELETING - The table is being deleted. + // * DELETING - The table is being deleted. // - // ACTIVE - The table is ready for use. + // * ACTIVE - The table is ready for use. TableStatus *string `type:"string" enum:"TableStatus"` } @@ -6231,6 +6992,90 @@ func (s TableDescription) GoString() string { return s.String() } +// SetAttributeDefinitions sets the AttributeDefinitions field's value. +func (s *TableDescription) SetAttributeDefinitions(v []*AttributeDefinition) *TableDescription { + s.AttributeDefinitions = v + return s +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *TableDescription) SetCreationDateTime(v time.Time) *TableDescription { + s.CreationDateTime = &v + return s +} + +// SetGlobalSecondaryIndexes sets the GlobalSecondaryIndexes field's value. +func (s *TableDescription) SetGlobalSecondaryIndexes(v []*GlobalSecondaryIndexDescription) *TableDescription { + s.GlobalSecondaryIndexes = v + return s +} + +// SetItemCount sets the ItemCount field's value. +func (s *TableDescription) SetItemCount(v int64) *TableDescription { + s.ItemCount = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *TableDescription) SetKeySchema(v []*KeySchemaElement) *TableDescription { + s.KeySchema = v + return s +} + +// SetLatestStreamArn sets the LatestStreamArn field's value. +func (s *TableDescription) SetLatestStreamArn(v string) *TableDescription { + s.LatestStreamArn = &v + return s +} + +// SetLatestStreamLabel sets the LatestStreamLabel field's value. +func (s *TableDescription) SetLatestStreamLabel(v string) *TableDescription { + s.LatestStreamLabel = &v + return s +} + +// SetLocalSecondaryIndexes sets the LocalSecondaryIndexes field's value. +func (s *TableDescription) SetLocalSecondaryIndexes(v []*LocalSecondaryIndexDescription) *TableDescription { + s.LocalSecondaryIndexes = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *TableDescription) SetProvisionedThroughput(v *ProvisionedThroughputDescription) *TableDescription { + s.ProvisionedThroughput = v + return s +} + +// SetStreamSpecification sets the StreamSpecification field's value. +func (s *TableDescription) SetStreamSpecification(v *StreamSpecification) *TableDescription { + s.StreamSpecification = v + return s +} + +// SetTableArn sets the TableArn field's value. +func (s *TableDescription) SetTableArn(v string) *TableDescription { + s.TableArn = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *TableDescription) SetTableName(v string) *TableDescription { + s.TableName = &v + return s +} + +// SetTableSizeBytes sets the TableSizeBytes field's value. +func (s *TableDescription) SetTableSizeBytes(v int64) *TableDescription { + s.TableSizeBytes = &v + return s +} + +// SetTableStatus sets the TableStatus field's value. +func (s *TableDescription) SetTableStatus(v string) *TableDescription { + s.TableStatus = &v + return s +} + // Represents the new provisioned throughput settings to be applied to a global // secondary index. type UpdateGlobalSecondaryIndexAction struct { @@ -6286,6 +7131,18 @@ func (s *UpdateGlobalSecondaryIndexAction) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *UpdateGlobalSecondaryIndexAction) SetIndexName(v string) *UpdateGlobalSecondaryIndexAction { + s.IndexName = &v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *UpdateGlobalSecondaryIndexAction) SetProvisionedThroughput(v *ProvisionedThroughput) *UpdateGlobalSecondaryIndexAction { + s.ProvisionedThroughput = v + return s +} + // Represents the input of an UpdateItem operation. type UpdateItemInput struct { _ struct{} `type:"structure"` @@ -6295,88 +7152,87 @@ type UpdateItemInput struct { // expression parameters in a single API call; otherwise, DynamoDB will return // a ValidationException exception. // - // This parameter can be used for modifying top-level attributes; however, - // it does not support individual list or map elements. + // This parameter can be used for modifying top-level attributes; however, it + // does not support individual list or map elements. // - // The names of attributes to be modified, the action to perform on each, - // and the new value for each. If you are updating an attribute that is an index + // The names of attributes to be modified, the action to perform on each, and + // the new value for each. If you are updating an attribute that is an index // key attribute for any indexes on that table, the attribute type must match // the index key type defined in the AttributesDefinition of the table description. // You can use UpdateItem to update any non-key attributes. // - // Attribute values cannot be null. String and Binary type attributes must - // have lengths greater than zero. Set type attributes must not be empty. Requests + // Attribute values cannot be null. String and Binary type attributes must have + // lengths greater than zero. Set type attributes must not be empty. Requests // with empty values will be rejected with a ValidationException exception. // // Each AttributeUpdates element consists of an attribute name to modify, along // with the following: // - // Value - The new value, if applicable, for this attribute. + // * Value - The new value, if applicable, for this attribute. // - // Action - A value that specifies how to perform the update. This action - // is only valid for an existing attribute whose data type is Number or is a - // set; do not use ADD for other data types. + // * Action - A value that specifies how to perform the update. This action + // is only valid for an existing attribute whose data type is Number or is + // a set; do not use ADD for other data types. // // If an item with the specified primary key is found in the table, the following - // values perform the following actions: + // values perform the following actions: // - // PUT - Adds the specified attribute to the item. If the attribute already - // exists, it is replaced by the new value. + // PUT - Adds the specified attribute to the item. If the attribute already + // exists, it is replaced by the new value. // - // DELETE - Removes the attribute and its value, if no value is specified - // for DELETE. The data type of the specified value must match the existing - // value's data type. + // DELETE - Removes the attribute and its value, if no value is specified for + // DELETE. The data type of the specified value must match the existing value's + // data type. // // If a set of values is specified, then those values are subtracted from the - // old set. For example, if the attribute value was the set [a,b,c] and the - // DELETE action specifies [a,c], then the final attribute value is [b]. Specifying - // an empty set is an error. + // old set. For example, if the attribute value was the set [a,b,c] and the + // DELETE action specifies [a,c], then the final attribute value is [b]. + // Specifying an empty set is an error. // - // ADD - Adds the specified value to the item, if the attribute does not - // already exist. If the attribute does exist, then the behavior of ADD depends - // on the data type of the attribute: + // ADD - Adds the specified value to the item, if the attribute does not already + // exist. If the attribute does exist, then the behavior of ADD depends on + // the data type of the attribute: // - // If the existing attribute is a number, and if Value is also a number, - // then Value is mathematically added to the existing attribute. If Value is - // a negative number, then it is subtracted from the existing attribute. + // If the existing attribute is a number, and if Value is also a number, then + // Value is mathematically added to the existing attribute. If Value is a + // negative number, then it is subtracted from the existing attribute. // - // If you use ADD to increment or decrement a number value for an item that - // doesn't exist before the update, DynamoDB uses 0 as the initial value. + // If you use ADD to increment or decrement a number value for an item that + // doesn't exist before the update, DynamoDB uses 0 as the initial value. // // Similarly, if you use ADD for an existing item to increment or decrement - // an attribute value that doesn't exist before the update, DynamoDB uses 0 - // as the initial value. For example, suppose that the item you want to update - // doesn't have an attribute named itemcount, but you decide to ADD the number - // 3 to this attribute anyway. DynamoDB will create the itemcount attribute, - // set its initial value to 0, and finally add 3 to it. The result will be a - // new itemcount attribute, with a value of 3. + // an attribute value that doesn't exist before the update, DynamoDB uses + // 0 as the initial value. For example, suppose that the item you want to + // update doesn't have an attribute named itemcount, but you decide to ADD + // the number 3 to this attribute anyway. DynamoDB will create the itemcount + // attribute, set its initial value to 0, and finally add 3 to it. The result + // will be a new itemcount attribute, with a value of 3. // - // If the existing data type is a set, and if Value is also a set, then - // Value is appended to the existing set. For example, if the attribute value - // is the set [1,2], and the ADD action specified [3], then the final attribute - // value is [1,2,3]. An error occurs if an ADD action is specified for a set - // attribute and the attribute type specified does not match the existing set - // type. + // If the existing data type is a set, and if Value is also a set, then Value + // is appended to the existing set. For example, if the attribute value is + // the set [1,2], and the ADD action specified [3], then the final attribute + // value is [1,2,3]. An error occurs if an ADD action is specified for a + // set attribute and the attribute type specified does not match the existing + // set type. // // Both sets must have the same primitive data type. For example, if the existing - // data type is a set of strings, Value must also be a set of strings. + // data type is a set of strings, Value must also be a set of strings. // - // If no item with the specified key is found in the table, the following - // values perform the following actions: + // If no item with the specified key is found in the table, the following values + // perform the following actions: // - // PUT - Causes DynamoDB to create a new item with the specified primary - // key, and then adds the attribute. + // PUT - Causes DynamoDB to create a new item with the specified primary key, + // and then adds the attribute. // - // DELETE - Nothing happens, because attributes cannot be deleted from a - // nonexistent item. The operation succeeds, but DynamoDB does not create a - // new item. + // DELETE - Nothing happens, because attributes cannot be deleted from a nonexistent + // item. The operation succeeds, but DynamoDB does not create a new item. // - // ADD - Causes DynamoDB to create an item with the supplied primary key - // and number (or set of numbers) for the attribute value. The only data types - // allowed are Number and Number Set. + // ADD - Causes DynamoDB to create an item with the supplied primary key and + // number (or set of numbers) for the attribute value. The only data types + // allowed are Number and Number Set. // - // If you provide any attributes that are part of an index key, then the - // data types for those attributes must match those of the schema in the table's + // If you provide any attributes that are part of an index key, then the data + // types for those attributes must match those of the schema in the table's // attribute definition. AttributeUpdates map[string]*AttributeValueUpdate `type:"map"` @@ -6384,21 +7240,21 @@ type UpdateItemInput struct { // // An expression can contain any of the following: // - // Functions: attribute_exists | attribute_not_exists | attribute_type | - // contains | begins_with | size + // * Functions: attribute_exists | attribute_not_exists | attribute_type + // | contains | begins_with | size // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= + // | >= | BETWEEN | IN // - // Logical operators: AND | OR | NOT + // * Logical operators: AND | OR | NOT // - // For more information on condition expressions, see Specifying Conditions + // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. // - // ConditionExpression replaces the legacy ConditionalOperator and Expected + // ConditionExpression replaces the legacy ConditionalOperator and Expected // parameters. ConditionExpression *string `type:"string"` @@ -6407,19 +7263,19 @@ type UpdateItemInput struct { // and expression parameters in a single API call; otherwise, DynamoDB will // return a ValidationException exception. // - // A logical operator to apply to the conditions in the Expected map: + // A logical operator to apply to the conditions in the Expected map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // * AND - If all of the conditions evaluate to true, then the entire map + // evaluates to true. // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. + // * OR - If at least one of the conditions evaluate to true, then the entire + // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // This is a legacy parameter, for backward compatibility. New applications @@ -6427,7 +7283,7 @@ type UpdateItemInput struct { // and expression parameters in a single API call; otherwise, DynamoDB will // return a ValidationException exception. // - // A map of attribute/condition pairs. Expected provides a conditional block + // A map of attribute/condition pairs. Expected provides a conditional block // for the UpdateItem operation. // // Each element of Expected consists of an attribute name, a comparison operator, @@ -6444,213 +7300,127 @@ type UpdateItemInput struct { // If the Expected map evaluates to true, then the conditional operation succeeds; // otherwise, it fails. // - // Expected contains the following: + // Expected contains the following: // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. + // * AttributeValueList - One or more values to evaluate against the supplied + // attribute. The number of values in the list depends on the ComparisonOperator + // being used. // // For type Number, value comparisons are numeric. // // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // on ASCII character code values. For example, a is greater than A, and + // a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters + // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). // // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. + // when it compares binary values. // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. + // * ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. + // When performing the comparison, DynamoDB uses strongly consistent reads. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in + // the request, the value does not match. For example, {"S":"6"} does not + // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // NE : Not equal. NE is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // Binary, String Set, Number Set, or Binary Set. If an item contains an + // AttributeValue of a different type than the one provided in the request, + // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // * LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue + // element of a different type than the one provided in the request, the + // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // * LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, + // * AttributeValueList can contain only one AttributeValue of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue + // element of a different type than the one provided in the request, the + // value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. + // + // * GE : Greater than or equal. + // + // AttributeValueList can contain only one AttributeValue element of type String, // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GT: Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // AttributeValueListcan contain only one AttributeValueelement of type String, Number, or Binary (not a set type). If an item contains + // an AttributeValueelement of a different type than the one provided in the request, the value + // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // NOT_NULL + // : The attribute exists. NOT_NULL + // is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // This operator tests for the existence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute "a" exists; its data type is not relevant to the NOT_NULLcomparison operator. // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. + // NULL + // : The attribute does not exist. NULL + // is supported for all datatypes, including lists and maps. // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see - // Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) - // in the Amazon DynamoDB Developer Guide. - // - // For backward compatibility with previous DynamoDB releases, the following - // parameters can be used instead of AttributeValueList and ComparisonOperator: - // - // Value - A value for DynamoDB to compare with an attribute. - // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before - // attempting the conditional operation: - // - // If Exists is true, DynamoDB will check to see if that attribute value - // already exists in the table. If it is found, then the condition evaluates - // to true; otherwise the condition evaluate to false. - // - // If Exists is false, DynamoDB assumes that the attribute value does not - // exist in the table. If in fact the value does not exist, then the assumption - // is valid and the condition evaluates to true. If the value is found, despite - // the assumption that it does not exist, the condition evaluates to false. - // - // Note that the default value for Exists is true. - // - // The Value and Exists parameters are incompatible with AttributeValueList - // and ComparisonOperator. Note that if you use both sets of parameters at once, - // DynamoDB will return a ValidationException exception. - // - // This parameter does not support attributes of type List or Map. + // This operator tests for the nonexistence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute "a" exists; its data type is not relevant to the NULL Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -6660,16 +7430,16 @@ type UpdateItemInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -6690,18 +7460,18 @@ type UpdateItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -6714,21 +7484,21 @@ type UpdateItemInput struct { // either before or after they were updated. For UpdateItem, the valid values // are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then - // nothing is returned. (This setting is the default for ReturnValues.) + // * NONE - If ReturnValues is not specified, or if its value is NONE, then + // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then - // the content of the old item is returned. + // * ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then + // the content of the old item is returned. // - // UPDATED_OLD - The old versions of only the updated attributes are returned. + // * UPDATED_OLD - The old versions of only the updated attributes are returned. // - // ALL_NEW - All of the attributes of the new version of the item are returned. + // * ALL_NEW - All of the attributes of the new version of the item are returned. // - // UPDATED_NEW - The new versions of only the updated attributes are returned. + // * UPDATED_NEW - The new versions of only the updated attributes are returned. // - // There is no additional cost associated with requesting a return value - // aside from the small network and processing overhead of receiving a larger - // response. No Read Capacity Units are consumed. + // There is no additional cost associated with requesting a return value aside + // from the small network and processing overhead of receiving a larger response. + // No Read Capacity Units are consumed. // // Values returned are strongly consistent ReturnValues *string `type:"string" enum:"ReturnValue"` @@ -6743,75 +7513,76 @@ type UpdateItemInput struct { // // The following action values are available for UpdateExpression. // - // SET - Adds one or more attributes and values to an item. If any of these - // attribute already exist, they are replaced by the new values. You can also - // use SET to add or subtract from an attribute that is of type Number. For - // example: SET myNum = myNum + :val + // * SET - Adds one or more attributes and values to an item. If any of these + // attribute already exist, they are replaced by the new values. You can + // also use SET to add or subtract from an attribute that is of type Number. + // For example: SET myNum = myNum + :val // - // SET supports the following functions: + // SET supports the following functions: // - // if_not_exists (path, operand) - if the item does not contain an attribute - // at the specified path, then if_not_exists evaluates to operand; otherwise, - // it evaluates to path. You can use this function to avoid overwriting an attribute - // that may already be present in the item. + // if_not_exists (path, operand) - if the item does not contain an attribute + // at the specified path, then if_not_exists evaluates to operand; otherwise, + // it evaluates to path. You can use this function to avoid overwriting an + // attribute that may already be present in the item. // - // list_append (operand, operand) - evaluates to a list with a new element - // added to it. You can append the new element to the start or the end of the - // list by reversing the order of the operands. + // list_append (operand, operand) - evaluates to a list with a new element added + // to it. You can append the new element to the start or the end of the list + // by reversing the order of the operands. // - // These function names are case-sensitive. + // These function names are case-sensitive. // - // REMOVE - Removes one or more attributes from an item. + // * REMOVE - Removes one or more attributes from an item. // - // ADD - Adds the specified value to the item, if the attribute does not - // already exist. If the attribute does exist, then the behavior of ADD depends - // on the data type of the attribute: + // * ADD - Adds the specified value to the item, if the attribute does not + // already exist. If the attribute does exist, then the behavior of ADD depends + // on the data type of the attribute: // - // If the existing attribute is a number, and if Value is also a number, - // then Value is mathematically added to the existing attribute. If Value is - // a negative number, then it is subtracted from the existing attribute. + // If the existing attribute is a number, and if Value is also a number, then + // Value is mathematically added to the existing attribute. If Value is a + // negative number, then it is subtracted from the existing attribute. // - // If you use ADD to increment or decrement a number value for an item that - // doesn't exist before the update, DynamoDB uses 0 as the initial value. + // If you use ADD to increment or decrement a number value for an item that + // doesn't exist before the update, DynamoDB uses 0 as the initial value. // // Similarly, if you use ADD for an existing item to increment or decrement - // an attribute value that doesn't exist before the update, DynamoDB uses 0 - // as the initial value. For example, suppose that the item you want to update - // doesn't have an attribute named itemcount, but you decide to ADD the number - // 3 to this attribute anyway. DynamoDB will create the itemcount attribute, - // set its initial value to 0, and finally add 3 to it. The result will be a - // new itemcount attribute in the item, with a value of 3. + // an attribute value that doesn't exist before the update, DynamoDB uses + // 0 as the initial value. For example, suppose that the item you want to + // update doesn't have an attribute named itemcount, but you decide to ADD + // the number 3 to this attribute anyway. DynamoDB will create the itemcount + // attribute, set its initial value to 0, and finally add 3 to it. The result + // will be a new itemcount attribute in the item, with a value of 3. // - // If the existing data type is a set and if Value is also a set, then Value - // is added to the existing set. For example, if the attribute value is the - // set [1,2], and the ADD action specified [3], then the final attribute value - // is [1,2,3]. An error occurs if an ADD action is specified for a set attribute - // and the attribute type specified does not match the existing set type. + // If the existing data type is a set and if Value is also a set, then Value + // is added to the existing set. For example, if the attribute value is the + // set [1,2], and the ADD action specified [3], then the final attribute + // value is [1,2,3]. An error occurs if an ADD action is specified for a + // set attribute and the attribute type specified does not match the existing + // set type. // // Both sets must have the same primitive data type. For example, if the existing - // data type is a set of strings, the Value must also be a set of strings. + // data type is a set of strings, the Value must also be a set of strings. // - // The ADD action only supports Number and set data types. In addition, - // ADD can only be used on top-level attributes, not nested attributes. + // The ADD action only supports Number and set data types. In addition, ADD + // can only be used on top-level attributes, not nested attributes. // - // DELETE - Deletes an element from a set. + // * DELETE - Deletes an element from a set. // // If a set of values is specified, then those values are subtracted from the - // old set. For example, if the attribute value was the set [a,b,c] and the - // DELETE action specifies [a,c], then the final attribute value is [b]. Specifying - // an empty set is an error. + // old set. For example, if the attribute value was the set [a,b,c] and the + // DELETE action specifies [a,c], then the final attribute value is [b]. + // Specifying an empty set is an error. // - // The DELETE action only supports set data types. In addition, DELETE can - // only be used on top-level attributes, not nested attributes. + // The DELETE action only supports set data types. In addition, DELETE can only + // be used on top-level attributes, not nested attributes. // - // You can have many actions in a single expression, such as the following: + // You can have many actions in a single expression, such as the following: // SET a=:value1, b=:value2 DELETE :value3, :value4, :value5 // // For more information on update expressions, see Modifying Items and Attributes // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Modifying.html) // in the Amazon DynamoDB Developer Guide. // - // UpdateExpression replaces the legacy AttributeUpdates parameter. + // UpdateExpression replaces the legacy AttributeUpdates parameter. UpdateExpression *string `type:"string"` } @@ -6844,6 +7615,78 @@ func (s *UpdateItemInput) Validate() error { return nil } +// SetAttributeUpdates sets the AttributeUpdates field's value. +func (s *UpdateItemInput) SetAttributeUpdates(v map[string]*AttributeValueUpdate) *UpdateItemInput { + s.AttributeUpdates = v + return s +} + +// SetConditionExpression sets the ConditionExpression field's value. +func (s *UpdateItemInput) SetConditionExpression(v string) *UpdateItemInput { + s.ConditionExpression = &v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *UpdateItemInput) SetConditionalOperator(v string) *UpdateItemInput { + s.ConditionalOperator = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *UpdateItemInput) SetExpected(v map[string]*ExpectedAttributeValue) *UpdateItemInput { + s.Expected = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *UpdateItemInput) SetExpressionAttributeNames(v map[string]*string) *UpdateItemInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *UpdateItemInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *UpdateItemInput { + s.ExpressionAttributeValues = v + return s +} + +// SetKey sets the Key field's value. +func (s *UpdateItemInput) SetKey(v map[string]*AttributeValue) *UpdateItemInput { + s.Key = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *UpdateItemInput) SetReturnConsumedCapacity(v string) *UpdateItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *UpdateItemInput) SetReturnItemCollectionMetrics(v string) *UpdateItemInput { + s.ReturnItemCollectionMetrics = &v + return s +} + +// SetReturnValues sets the ReturnValues field's value. +func (s *UpdateItemInput) SetReturnValues(v string) *UpdateItemInput { + s.ReturnValues = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *UpdateItemInput) SetTableName(v string) *UpdateItemInput { + s.TableName = &v + return s +} + +// SetUpdateExpression sets the UpdateExpression field's value. +func (s *UpdateItemInput) SetUpdateExpression(v string) *UpdateItemInput { + s.UpdateExpression = &v + return s +} + // Represents the output of an UpdateItem operation. type UpdateItemOutput struct { _ struct{} `type:"structure"` @@ -6878,6 +7721,24 @@ func (s UpdateItemOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *UpdateItemOutput) SetAttributes(v map[string]*AttributeValue) *UpdateItemOutput { + s.Attributes = v + return s +} + +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *UpdateItemOutput) SetConsumedCapacity(v *ConsumedCapacity) *UpdateItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *UpdateItemOutput) SetItemCollectionMetrics(v *ItemCollectionMetrics) *UpdateItemOutput { + s.ItemCollectionMetrics = v + return s +} + // Represents the input of an UpdateTable operation. type UpdateTableInput struct { _ struct{} `type:"structure"` @@ -6890,14 +7751,14 @@ type UpdateTableInput struct { // An array of one or more global secondary indexes for the table. For each // index in the array, you can request one action: // - // Create - add a new global secondary index to the table. + // * Create - add a new global secondary index to the table. // - // Update - modify the provisioned throughput settings of an existing global - // secondary index. + // * Update - modify the provisioned throughput settings of an existing global + // secondary index. // - // Delete - remove a global secondary index from the table. + // * Delete - remove a global secondary index from the table. // - // For more information, see Managing Global Secondary Indexes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) + // For more information, see Managing Global Secondary Indexes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) // in the Amazon DynamoDB Developer Guide. GlobalSecondaryIndexUpdates []*GlobalSecondaryIndexUpdate `type:"list"` @@ -6911,7 +7772,7 @@ type UpdateTableInput struct { // Represents the DynamoDB Streams configuration for the table. // - // You will receive a ResourceInUseException if you attempt to enable a stream + // You will receive a ResourceInUseException if you attempt to enable a stream // on a table that already has a stream, or if you attempt to disable a stream // on a table which does not have a stream. StreamSpecification *StreamSpecification `type:"structure"` @@ -6973,6 +7834,36 @@ func (s *UpdateTableInput) Validate() error { return nil } +// SetAttributeDefinitions sets the AttributeDefinitions field's value. +func (s *UpdateTableInput) SetAttributeDefinitions(v []*AttributeDefinition) *UpdateTableInput { + s.AttributeDefinitions = v + return s +} + +// SetGlobalSecondaryIndexUpdates sets the GlobalSecondaryIndexUpdates field's value. +func (s *UpdateTableInput) SetGlobalSecondaryIndexUpdates(v []*GlobalSecondaryIndexUpdate) *UpdateTableInput { + s.GlobalSecondaryIndexUpdates = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *UpdateTableInput) SetProvisionedThroughput(v *ProvisionedThroughput) *UpdateTableInput { + s.ProvisionedThroughput = v + return s +} + +// SetStreamSpecification sets the StreamSpecification field's value. +func (s *UpdateTableInput) SetStreamSpecification(v *StreamSpecification) *UpdateTableInput { + s.StreamSpecification = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *UpdateTableInput) SetTableName(v string) *UpdateTableInput { + s.TableName = &v + return s +} + // Represents the output of an UpdateTable operation. type UpdateTableOutput struct { _ struct{} `type:"structure"` @@ -6991,6 +7882,12 @@ func (s UpdateTableOutput) GoString() string { return s.String() } +// SetTableDescription sets the TableDescription field's value. +func (s *UpdateTableOutput) SetTableDescription(v *TableDescription) *UpdateTableOutput { + s.TableDescription = v + return s +} + // Represents an operation to perform - either DeleteItem or PutItem. You can // only request one of these operations, not both, in a single WriteRequest. // If you do need to perform both of these operations, you will need to provide @@ -7015,6 +7912,18 @@ func (s WriteRequest) GoString() string { return s.String() } +// SetDeleteRequest sets the DeleteRequest field's value. +func (s *WriteRequest) SetDeleteRequest(v *DeleteRequest) *WriteRequest { + s.DeleteRequest = v + return s +} + +// SetPutRequest sets the PutRequest field's value. +func (s *WriteRequest) SetPutRequest(v *PutRequest) *WriteRequest { + s.PutRequest = v + return s +} + const ( // AttributeActionAdd is a AttributeAction enum value AttributeActionAdd = "ADD" @@ -7111,18 +8020,18 @@ const ( // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // -// INDEXES - The response includes the aggregate ConsumedCapacity for the -// operation, together with ConsumedCapacity for each table and secondary index -// that was accessed. +// * INDEXES - The response includes the aggregate ConsumedCapacity for the +// operation, together with ConsumedCapacity for each table and secondary +// index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access -// any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity -// information for table(s). +// any indexes at all. In these cases, specifying INDEXES will only return +// ConsumedCapacity information for table(s). // -// TOTAL - The response includes only the aggregate ConsumedCapacity for -// the operation. +// * TOTAL - The response includes only the aggregate ConsumedCapacity for +// the operation. // -// NONE - No ConsumedCapacity details are included in the response. +// * NONE - No ConsumedCapacity details are included in the response. const ( // ReturnConsumedCapacityIndexes is a ReturnConsumedCapacity enum value ReturnConsumedCapacityIndexes = "INDEXES" diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go index 2af4076f8..f4d9d3e9e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go @@ -16,22 +16,22 @@ import ( // // This guide is intended for use with the following DynamoDB documentation: // -// Amazon DynamoDB Getting Started Guide (http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/) -// - provides hands-on exercises that help you learn the basics of working with -// DynamoDB. If you are new to DynamoDB, we recommend that you begin with the -// Getting Started Guide. +// * Amazon DynamoDB Getting Started Guide (http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/) +// - provides hands-on exercises that help you learn the basics of working +// with DynamoDB. If you are new to DynamoDB, we recommend that you begin +// with the Getting Started Guide. // -// Amazon DynamoDB Developer Guide (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/) -// - contains detailed information about DynamoDB concepts, usage, and best -// practices. +// * Amazon DynamoDB Developer Guide (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/) +// - contains detailed information about DynamoDB concepts, usage, and best +// practices. // -// Amazon DynamoDB Streams API Reference (http://docs.aws.amazon.com/dynamodbstreams/latest/APIReference/) -// - provides descriptions and samples of the DynamoDB Streams API. (For more -// information, see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) -// in the Amazon DynamoDB Developer Guide.) +// * Amazon DynamoDB Streams API Reference (http://docs.aws.amazon.com/dynamodbstreams/latest/APIReference/) +// - provides descriptions and samples of the DynamoDB Streams API. (For +// more information, see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) +// in the Amazon DynamoDB Developer Guide.) // -// Instead of making the requests to the low-level DynamoDB API directly -// from your application, we recommend that you use the AWS Software Development +// Instead of making the requests to the low-level DynamoDB API directly from +// your application, we recommend that you use the AWS Software Development // Kits (SDKs). The easy-to-use libraries in the AWS SDKs make it unnecessary // to call the low-level DynamoDB API directly from your application. The libraries // take care of request authentication, serialization, and connection management. @@ -46,84 +46,82 @@ import ( // The following are short descriptions of each low-level API action, organized // by function. // -// Managing Tables +// Managing Tables // -// CreateTable - Creates a table with user-specified provisioned throughput -// settings. You must define a primary key for the table - either a simple primary -// key (partition key), or a composite primary key (partition key and sort key). -// Optionally, you can create one or more secondary indexes, which provide fast -// data access using non-key attributes. +// * CreateTable - Creates a table with user-specified provisioned throughput +// settings. You must define a primary key for the table - either a simple +// primary key (partition key), or a composite primary key (partition key +// and sort key). Optionally, you can create one or more secondary indexes, +// which provide fast data access using non-key attributes. // -// DescribeTable - Returns metadata for a table, such as table size, status, -// and index information. +// * DescribeTable - Returns metadata for a table, such as table size, status, +// and index information. // -// UpdateTable - Modifies the provisioned throughput settings for a table. -// Optionally, you can modify the provisioned throughput settings for global -// secondary indexes on the table. +// * UpdateTable - Modifies the provisioned throughput settings for a table. +// Optionally, you can modify the provisioned throughput settings for global +// secondary indexes on the table. // -// ListTables - Returns a list of all tables associated with the current -// AWS account and endpoint. +// * ListTables - Returns a list of all tables associated with the current +// AWS account and endpoint. // -// DeleteTable - Deletes a table and all of its indexes. +// * DeleteTable - Deletes a table and all of its indexes. // -// For conceptual information about managing tables, see Working with Tables +// For conceptual information about managing tables, see Working with Tables // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html) // in the Amazon DynamoDB Developer Guide. // -// Reading Data +// Reading Data // -// GetItem - Returns a set of attributes for the item that has a given primary -// key. By default, GetItem performs an eventually consistent read; however, -// applications can request a strongly consistent read instead. +// * GetItem - Returns a set of attributes for the item that has a given +// primary key. By default, GetItem performs an eventually consistent read; +// however, applications can request a strongly consistent read instead. // -// BatchGetItem - Performs multiple GetItem requests for data items using -// their primary keys, from one table or multiple tables. The response from -// BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items. -// Both eventually consistent and strongly consistent reads can be used. +// * BatchGetItem - Performs multiple GetItem requests for data items using +// their primary keys, from one table or multiple tables. The response from +// BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items. +// Both eventually consistent and strongly consistent reads can be used. // -// Query - Returns one or more items from a table or a secondary index. -// You must provide a specific value for the partition key. You can narrow the -// scope of the query using comparison operators against a sort key value, or -// on the index key. Query supports either eventual or strong consistency. A -// single response has a size limit of 1 MB. +// * Query - Returns one or more items from a table or a secondary index. +// You must provide a specific value for the partition key. You can narrow +// the scope of the query using comparison operators against a sort key value, +// or on the index key. Query supports either eventual or strong consistency. +// A single response has a size limit of 1 MB. // -// Scan - Reads every item in a table; the result set is eventually consistent. -// You can limit the number of items returned by filtering the data attributes, -// using conditional expressions. Scan can be used to enable ad-hoc querying -// of a table against non-key attributes; however, since this is a full table -// scan without using an index, Scan should not be used for any application -// query use case that requires predictable performance. +// * Scan - Reads every item in a table; the result set is eventually consistent. +// You can limit the number of items returned by filtering the data attributes, +// using conditional expressions. Scan can be used to enable ad-hoc querying +// of a table against non-key attributes; however, since this is a full table +// scan without using an index, Scan should not be used for any application +// query use case that requires predictable performance. // -// For conceptual information about reading data, see Working with Items -// (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) +// For conceptual information about reading data, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) // and Query and Scan Operations (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) // in the Amazon DynamoDB Developer Guide. // -// Modifying Data +// Modifying Data // -// PutItem - Creates a new item, or replaces an existing item with a new -// item (including all the attributes). By default, if an item in the table -// already exists with the same primary key, the new item completely replaces -// the existing item. You can use conditional operators to replace an item only -// if its attribute values match certain conditions, or to insert a new item -// only if that item doesn't already exist. +// * PutItem - Creates a new item, or replaces an existing item with a new +// item (including all the attributes). By default, if an item in the table +// already exists with the same primary key, the new item completely replaces +// the existing item. You can use conditional operators to replace an item +// only if its attribute values match certain conditions, or to insert a +// new item only if that item doesn't already exist. // -// UpdateItem - Modifies the attributes of an existing item. You can also -// use conditional operators to perform an update only if the item's attribute -// values match certain conditions. +// * UpdateItem - Modifies the attributes of an existing item. You can also +// use conditional operators to perform an update only if the item's attribute +// values match certain conditions. // -// DeleteItem - Deletes an item in a table by primary key. You can use conditional -// operators to perform a delete an item only if the item's attribute values -// match certain conditions. +// * DeleteItem - Deletes an item in a table by primary key. You can use +// conditional operators to perform a delete an item only if the item's attribute +// values match certain conditions. // -// BatchWriteItem - Performs multiple PutItem and DeleteItem requests across -// multiple tables in a single request. A failure of any request(s) in the batch -// will not cause the entire BatchWriteItem operation to fail. Supports batches -// of up to 25 items to put or delete, with a maximum total request size of -// 16 MB. +// * BatchWriteItem - Performs multiple PutItem and DeleteItem requests across +// multiple tables in a single request. A failure of any request(s) in the +// batch will not cause the entire BatchWriteItem operation to fail. Supports +// batches of up to 25 items to put or delete, with a maximum total request +// size of 16 MB. // -// For conceptual information about modifying data, see Working with Items -// (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) +// For conceptual information about modifying data, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) // and Query and Scan Operations (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) // in the Amazon DynamoDB Developer Guide. //The service client's operations are safe to be used concurrently. diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go index d9aa717bd..ac3653d2e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go @@ -381,18 +381,18 @@ func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *reques // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. // -// [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address -// is already associated with a different instance, it is disassociated from -// that instance and associated with the specified instance. +// [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is +// already associated with a different instance, it is disassociated from that +// instance and associated with the specified instance. // // [VPC in an EC2-Classic account] If you don't specify a private IP address, // the Elastic IP address is associated with the primary IP address. If the // Elastic IP address is already associated with a different instance or a network // interface, you get an error unless you allow reassociation. // -// This is an idempotent operation. If you perform the operation more than -// once, Amazon EC2 doesn't return an error, and you may be charged for each -// time the Elastic IP address is remapped to the same instance. For more information, +// This is an idempotent operation. If you perform the operation more than once, +// Amazon EC2 doesn't return an error, and you may be charged for each time +// the Elastic IP address is remapped to the same instance. For more information, // see the Elastic IP Addresses section of Amazon EC2 Pricing (http://aws.amazon.com/ec2/pricing/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -789,26 +789,25 @@ func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Reques // EBS encryption. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) // in the Amazon Elastic Compute Cloud User Guide. // -// For a list of supported device names, see Attaching an EBS Volume to an -// Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html). +// For a list of supported device names, see Attaching an EBS Volume to an Instance +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html). // Any device names that aren't reserved for instance store volumes can be used // for EBS volumes. For more information, see Amazon EC2 Instance Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) // in the Amazon Elastic Compute Cloud User Guide. // // If a volume has an AWS Marketplace product code: // -// The volume can be attached only to a stopped instance. +// * The volume can be attached only to a stopped instance. // -// AWS Marketplace product codes are copied from the volume to the instance. +// * AWS Marketplace product codes are copied from the volume to the instance. // -// You must be subscribed to the product. +// * You must be subscribed to the product. // -// The instance type and operating system of the instance must support the -// product. For example, you can't detach a volume from a Windows instance and -// attach it to a Linux instance. +// * The instance type and operating system of the instance must support +// the product. For example, you can't detach a volume from a Windows instance +// and attach it to a Linux instance. // -// For an overview of the AWS Marketplace, see Introducing AWS Marketplace -// (https://aws.amazon.com/marketplace/help/200900000). +// For an overview of the AWS Marketplace, see Introducing AWS Marketplace (https://aws.amazon.com/marketplace/help/200900000). // // For more information about EBS volumes, see Attaching Amazon EBS Volumes // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html) @@ -942,10 +941,10 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) // in the Amazon Virtual Private Cloud User Guide. // -// You can have up to 50 rules per security group (covering both ingress and +// You can have up to 50 rules per security group (covering both ingress and // egress rules). // -// Each rule consists of the protocol (for example, TCP), plus either a CIDR +// Each rule consists of the protocol (for example, TCP), plus either a CIDR // range or a source group. For the TCP and UDP protocols, you must also specify // the destination port or port range. For the ICMP protocol, you must also // specify the ICMP type and code. You can use -1 for the type or code to mean @@ -1015,12 +1014,12 @@ func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroup // // Adds one or more ingress rules to a security group. // -// EC2-Classic: You can have up to 100 rules per group. +// EC2-Classic: You can have up to 100 rules per group. // // EC2-VPC: You can have up to 50 rules per group (covering both ingress and // egress rules). // -// Rule changes are propagated to instances within the security group as quickly +// Rule changes are propagated to instances within the security group as quickly // as possible. However, a small delay might occur. // // [EC2-Classic] This action gives one or more CIDR IP address ranges permission @@ -1095,11 +1094,10 @@ func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Re // During bundling, only the root device volume (C:\) is bundled. Data on other // instance store volumes is not preserved. // -// This action is not applicable for Linux/Unix instances or Windows instances +// This action is not applicable for Linux/Unix instances or Windows instances // that are backed by Amazon EBS. // -// For more information, see Creating an Instance Store-Backed Windows AMI -// (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html). +// For more information, see Creating an Instance Store-Backed Windows AMI (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1544,7 +1542,7 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) // in the Amazon Elastic Compute Cloud User Guide. // -// Canceling a Spot instance request does not terminate running Spot instances +// Canceling a Spot instance request does not terminate running Spot instances // associated with the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1742,13 +1740,13 @@ func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Reques // default AWS Key Management Service (AWS KMS) customer master key (CMK); however, // you can specify a non-default CMK with the KmsKeyId parameter. // -// To copy an encrypted snapshot that has been shared from another account, +// To copy an encrypted snapshot that has been shared from another account, // you must have permissions for the CMK used to encrypt the snapshot. // -// Snapshots created by the CopySnapshot action have an arbitrary volume -// ID that should not be used for any purpose. +// Snapshots created by the CopySnapshot action have an arbitrary volume ID +// that should not be used for any purpose. // -// For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) +// For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1820,15 +1818,15 @@ func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (r // ASN assigned to your network. If you don't have an ASN already, you can use // a private ASN (in the 64512 - 65534 range). // -// Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with +// Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with // the exception of 7224, which is reserved in the us-east-1 region, and 9059, // which is reserved in the eu-west-1 region. // -// For more information about VPN customer gateways, see Adding a Hardware -// Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) +// For more information about VPN customer gateways, see Adding a Hardware Virtual +// Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. // -// You cannot create more than one customer gateway with the same VPN type, +// You cannot create more than one customer gateway with the same VPN type, // IP address, and BGP ASN parameter values. If you run an identical request // more than one time, the first request creates the customer gateway, and subsequent // requests return information about the existing customer gateway. The subsequent @@ -1897,34 +1895,34 @@ func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *requ // individual DHCP options you can specify. For more information about the options, // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). // -// domain-name-servers - The IP addresses of up to four domain name servers, -// or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. -// If specifying more than one domain name server, specify the IP addresses -// in a single parameter, separated by commas. If you want your instance to -// receive a custom DNS hostname as specified in domain-name, you must set domain-name-servers -// to a custom DNS server. +// * domain-name-servers - The IP addresses of up to four domain name servers, +// or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. +// If specifying more than one domain name server, specify the IP addresses +// in a single parameter, separated by commas. If you want your instance +// to receive a custom DNS hostname as specified in domain-name, you must +// set domain-name-servers to a custom DNS server. // -// domain-name - If you're using AmazonProvidedDNS in "us-east-1", specify -// "ec2.internal". If you're using AmazonProvidedDNS in another region, specify -// "region.compute.internal" (for example, "ap-northeast-1.compute.internal"). -// Otherwise, specify a domain name (for example, "MyCompany.com"). This value -// is used to complete unqualified DNS hostnames. Important: Some Linux operating -// systems accept multiple domain names separated by spaces. However, Windows -// and other Linux operating systems treat the value as a single domain, which -// results in unexpected behavior. If your DHCP options set is associated with -// a VPC that has instances with multiple operating systems, specify only one -// domain name. +// * domain-name - If you're using AmazonProvidedDNS in "us-east-1", specify +// "ec2.internal". If you're using AmazonProvidedDNS in another region, specify +// "region.compute.internal" (for example, "ap-northeast-1.compute.internal"). +// Otherwise, specify a domain name (for example, "MyCompany.com"). This +// value is used to complete unqualified DNS hostnames. Important: Some Linux +// operating systems accept multiple domain names separated by spaces. However, +// Windows and other Linux operating systems treat the value as a single +// domain, which results in unexpected behavior. If your DHCP options set +// is associated with a VPC that has instances with multiple operating systems, +// specify only one domain name. // -// ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) -// servers. +// * ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) +// servers. // -// netbios-name-servers - The IP addresses of up to four NetBIOS name servers. +// * netbios-name-servers - The IP addresses of up to four NetBIOS name servers. // -// netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend -// that you specify 2 (broadcast and multicast are not currently supported). -// For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). +// * netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend +// that you specify 2 (broadcast and multicast are not currently supported). +// For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). // -// Your VPC automatically starts out with a set of DHCP options that includes +// Your VPC automatically starts out with a set of DHCP options that includes // only a DNS server that we provide (AmazonProvidedDNS). If you create a set // of options, and if your VPC has an Internet gateway, make sure to set the // domain-name-servers option either to AmazonProvidedDNS or to a domain name @@ -2458,8 +2456,8 @@ func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (r // the ACL according to the rule numbers, in ascending order. Each network ACL // has a set of ingress rules and a separate set of egress rules. // -// We recommend that you leave room between the rule numbers (for example, -// 100, 110, 120, ...), and not number them one right after the other (for example, +// We recommend that you leave room between the rule numbers (for example, 100, +// 110, 120, ...), and not number them one right after the other (for example, // 101, 102, 103, ...). This makes it easier to add a rule between existing // ones without having to renumber the rules. // @@ -2743,12 +2741,12 @@ func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, // match. For example, let's say the traffic is destined for 192.0.2.3, and // the route table includes the following two routes: // -// 192.0.2.0/24 (goes to some target A) +// * 192.0.2.0/24 (goes to some target A) // -// 192.0.2.0/28 (goes to some target B) +// * 192.0.2.0/28 (goes to some target B) // -// Both routes apply to the traffic destined for 192.0.2.3. However, the -// second route in the list covers a smaller number of IP addresses and is therefore +// Both routes apply to the traffic destined for 192.0.2.3. However, the second +// route in the list covers a smaller number of IP addresses and is therefore // more specific, so we use that route to determine where to target the traffic. // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) @@ -2883,11 +2881,11 @@ func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req * // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) // in the Amazon Virtual Private Cloud User Guide. // -// EC2-Classic: You can have up to 500 security groups. +// EC2-Classic: You can have up to 500 security groups. // // EC2-VPC: You can create up to 500 security groups per VPC. // -// When you create a security group, you specify a friendly name of your choice. +// When you create a security group, you specify a friendly name of your choice. // You can have a security group for use in EC2-Classic with the same name as // a security group for use in a VPC. However, you can't have two security groups // for use in EC2-Classic with the same name or two security groups for use @@ -3118,10 +3116,10 @@ func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Reques // netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP // addresses). // -// AWS reserves both the first four and the last IP address in each subnet's +// AWS reserves both the first four and the last IP address in each subnet's // CIDR block. They're not available for use. // -// If you add more than one subnet to a VPC, they're set up in a star topology +// If you add more than one subnet to a VPC, they're set up in a star topology // with a logical router in the middle. // // If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP @@ -3481,8 +3479,8 @@ func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectio // peering connection. The VPC peering connection request expires after 7 days, // after which it cannot be accepted or rejected. // -// A CreateVpcPeeringConnection request between VPCs with overlapping CIDR -// blocks results in the VPC peering connection having a status of failed. +// A CreateVpcPeeringConnection request between VPCs with overlapping CIDR blocks +// results in the VPC peering connection having a status of 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 @@ -3544,19 +3542,19 @@ func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req * // Creates a VPN connection between an existing virtual private gateway and // a VPN customer gateway. The only supported connection type is ipsec.1. // -// The response includes information that you need to give to your network -// administrator to configure your customer gateway. +// The response includes information that you need to give to your network administrator +// to configure your customer gateway. // -// We strongly recommend that you use HTTPS when calling this operation because +// We strongly recommend that you use HTTPS when calling this operation because // the response contains sensitive cryptographic information for configuring // your customer gateway. // -// If you decide to shut down your VPN connection for any reason and later -// create a new VPN connection, you must reconfigure your customer gateway with -// the new information returned from this call. +// If you decide to shut down your VPN connection for any reason and later create +// a new VPN connection, you must reconfigure your customer gateway with the +// new information returned from this call. // -// This is an idempotent operation. If you perform the operation more than -// once, Amazon EC2 doesn't return an error. +// This is an idempotent operation. If you perform the operation more than once, +// Amazon EC2 doesn't return an error. // // For more information about VPN connections, see Adding a Hardware Virtual // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) @@ -4828,9 +4826,9 @@ func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Reques // Deletes the specified EBS volume. The volume must be in the available state // (not attached to an instance). // -// The volume may remain in the deleting state for several minutes. +// The volume may remain in the deleting state for several minutes. // -// For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) +// For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -5343,22 +5341,22 @@ func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI // Describes attributes of your AWS account. The following are the supported // account attributes: // -// supported-platforms: Indicates whether your account can launch instances -// into EC2-Classic and EC2-VPC, or only into EC2-VPC. +// * supported-platforms: Indicates whether your account can launch instances +// into EC2-Classic and EC2-VPC, or only into EC2-VPC. // -// default-vpc: The ID of the default VPC for your account, or none. +// * default-vpc: The ID of the default VPC for your account, or none. // -// max-instances: The maximum number of On-Demand instances that you can -// run. +// * max-instances: The maximum number of On-Demand instances that you can +// run. // -// vpc-max-security-groups-per-interface: The maximum number of security -// groups that you can assign to a network interface. +// * vpc-max-security-groups-per-interface: The maximum number of security +// groups that you can assign to a network interface. // -// max-elastic-ips: The maximum number of Elastic IP addresses that you -// can allocate for use with EC2-Classic. +// * max-elastic-ips: The maximum number of Elastic IP addresses that you +// can allocate for use with EC2-Classic. // -// vpc-max-elastic-ips: The maximum number of Elastic IP addresses that -// you can allocate for use with EC2-VPC. +// * vpc-max-elastic-ips: The maximum number of Elastic IP addresses that +// you can allocate for use with EC2-VPC. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5547,7 +5545,7 @@ func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req * // // Describes one or more of your bundling tasks. // -// Completed bundle tasks are listed for only a limited time. If your bundle +// Completed bundle tasks are listed for only a limited time. If your bundle // task is no longer in the list, you can still register an AMI from it. Just // use RegisterImage with the Amazon S3 bucket name and image manifest name // you provided to the bundle task. @@ -5736,8 +5734,8 @@ func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInp // // Describes one or more of your VPN customer gateways. // -// For more information about VPN customer gateways, see Adding a Hardware -// Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) +// For more information about VPN customer gateways, see Adding a Hardware Virtual +// Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -6174,16 +6172,15 @@ func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *reques // request only returns information about resource types whose ID formats can // be modified; it does not return information about other resource types. // -// The following resource types support longer IDs: instance | reservation -// | snapshot | volume. +// The following resource types support longer IDs: instance | reservation | +// snapshot | volume. // -// These settings apply to the IAM user who makes the request; they do not -// apply to the entire AWS account. By default, an IAM user defaults to the -// same settings as the root user, unless they explicitly override the settings -// by running the ModifyIdFormat command. Resources created with longer IDs -// are visible to all IAM users, regardless of these settings and provided that -// they have permission to use the relevant Describe command for the resource -// type. +// These settings apply to the IAM user who makes the request; they do not apply +// to the entire AWS account. By default, an IAM user defaults to the same settings +// as the root user, unless they explicitly override the settings by running +// the ModifyIdFormat command. Resources created with longer IDs are visible +// to all IAM users, regardless of these settings and provided that they have +// permission to use the relevant Describe command for the resource type. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6249,11 +6246,11 @@ func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInp // other resource types. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) // in the Amazon Elastic Compute Cloud User Guide. // -// The following resource types support longer IDs: instance | reservation -// | snapshot | volume. +// The following resource types support longer IDs: instance | reservation | +// snapshot | volume. // -// These settings apply to the principal specified in the request. They do -// not apply to the principal that makes the request. +// These settings apply to the principal specified in the request. They do not +// apply to the principal that makes the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6377,7 +6374,7 @@ func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // and private images owned by other AWS accounts but for which you have explicit // launch permissions. // -// Deregistered images are included in the returned results for an unspecified +// Deregistered images are included in the returned results for an unspecified // interval after deregistration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -6630,22 +6627,22 @@ func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) // // Instance status includes the following components: // -// Status checks - Amazon EC2 performs status checks on running EC2 instances -// to identify hardware and software issues. For more information, see Status -// Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html) -// and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// * Status checks - Amazon EC2 performs status checks on running EC2 instances +// to identify hardware and software issues. For more information, see Status +// Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html) +// and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html) +// in the Amazon Elastic Compute Cloud User Guide. // -// Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, -// or terminate) for your instances related to hardware issues, software updates, -// or system maintenance. For more information, see Scheduled Events for Your -// Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html) -// in the Amazon Elastic Compute Cloud User Guide. +// * Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, +// or terminate) for your instances related to hardware issues, software +// updates, or system maintenance. For more information, see Scheduled Events +// for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html) +// in the Amazon Elastic Compute Cloud User Guide. // -// Instance state - You can manage your instances from the moment you launch -// them through their termination. For more information, see Instance Lifecycle -// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) -// in the Amazon Elastic Compute Cloud User Guide. +// * Instance state - You can manage your instances from the moment you launch +// them through their termination. For more information, see Instance Lifecycle +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) +// in the Amazon Elastic Compute Cloud 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 @@ -6737,11 +6734,11 @@ func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *requ // // Describes one or more of your instances. // -// If you specify one or more instance IDs, Amazon EC2 returns information -// for those instances. If you do not specify instance IDs, Amazon EC2 returns -// information for all relevant instances. If you specify an instance ID that -// is not valid, an error is returned. If you specify an instance that you do -// not own, it is not included in the returned results. +// If you specify one or more instance IDs, Amazon EC2 returns information for +// those instances. If you do not specify instance IDs, Amazon EC2 returns information +// for all relevant instances. If you specify an instance ID that is not valid, +// an error is returned. If you specify an instance that you do not own, it +// is not included in the returned results. // // Recently terminated instances might appear in the returned results. This // interval is usually less than one hour. @@ -7512,8 +7509,8 @@ func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedIn // additional capacity. Reserved Instances bought and sold through the Reserved // Instance Marketplace work like any other Reserved Instances. // -// As a seller, you choose to list some or all of your Reserved Instances, -// and you specify the upfront price to receive for them. Your Reserved Instances +// As a seller, you choose to list some or all of your Reserved Instances, and +// you specify the upfront price to receive for them. Your Reserved Instances // are then listed in the Reserved Instance Marketplace and are available for // purchase. // @@ -7692,9 +7689,9 @@ func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedI // errors, and you pay a lower usage rate than the rate charged for On-Demand // instances for the actual time used. // -// If you have listed your own Reserved Instances for sale in the Reserved -// Instance Marketplace, they will be excluded from these results. This is to -// ensure that you do not purchase your own Reserved Instances. +// If you have listed your own Reserved Instances for sale in the Reserved Instance +// Marketplace, they will be excluded from these results. This is to ensure +// that you do not purchase your own Reserved Instances. // // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -8176,20 +8173,20 @@ func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *requ // // The create volume permissions fall into the following categories: // -// public: The owner of the snapshot granted create volume permissions for -// the snapshot to the all group. All AWS accounts have create volume permissions -// for these snapshots. +// * public: The owner of the snapshot granted create volume permissions +// for the snapshot to the all group. All AWS accounts have create volume +// permissions for these snapshots. // -// explicit: The owner of the snapshot granted create volume permissions -// to a specific AWS account. +// * explicit: The owner of the snapshot granted create volume permissions +// to a specific AWS account. // -// implicit: An AWS account has implicit create volume permissions for all -// snapshots it owns. +// * implicit: An AWS account has implicit create volume permissions for +// all snapshots it owns. // -// The list of snapshots returned can be modified by specifying snapshot -// IDs, snapshot owners, or AWS accounts with create volume permissions. If -// no options are specified, Amazon EC2 returns all snapshots for which you -// have create volume permissions. +// The list of snapshots returned can be modified by specifying snapshot IDs, +// snapshot owners, or AWS accounts with create volume permissions. If no options +// are specified, Amazon EC2 returns all snapshots for which you have create +// volume permissions. // // If you specify one or more snapshot IDs, only snapshots that have the specified // IDs are returned. If you specify an invalid snapshot ID, an error is returned. @@ -9044,27 +9041,27 @@ func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req // The DescribeVolumeStatus operation provides the following information about // the specified volumes: // -// Status: Reflects the current status of the volume. The possible values -// are ok, impaired , warning, or insufficient-data. If all checks pass, the -// overall status of the volume is ok. If the check fails, the overall status -// is impaired. If the status is insufficient-data, then the checks may still -// be taking place on your volume at the time. We recommend that you retry the -// request. For more information on volume status, see Monitoring the Status -// of Your Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html). +// Status: Reflects the current status of the volume. The possible values are +// ok, impaired , warning, or insufficient-data. If all checks pass, the overall +// status of the volume is ok. If the check fails, the overall status is impaired. +// If the status is insufficient-data, then the checks may still be taking place +// on your volume at the time. We recommend that you retry the request. For +// more information on volume status, see Monitoring the Status of Your Volumes +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html). // -// Events: Reflect the cause of a volume status and may require you to take +// Events: Reflect the cause of a volume status and may require you to take // action. For example, if your volume returns an impaired status, then the // volume event might be potential-data-inconsistency. This means that your // volume has been affected by an issue with the underlying host, has all I/O // operations disabled, and may have inconsistent data. // -// Actions: Reflect the actions you may have to take in response to an event. +// Actions: Reflect the actions you may have to take in response to an event. // For example, if the status of the volume is impaired and the volume event // shows potential-data-inconsistency, then the action shows enable-volume-io. // This means that you may want to enable the I/O operations for the volume // by calling the EnableVolumeIO action and then check the volume for data consistency. // -// Volume status is based on the volume status checks, and does not reflect +// Volume status is based on the volume status checks, and does not reflect // the volume state. Therefore, volume status does not indicate volumes in the // error state (for example, when a volume is incapable of accepting I/O.) // @@ -10316,8 +10313,8 @@ func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req * // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. // -// This is an idempotent operation. If you perform the operation more than -// once, Amazon EC2 doesn't return an error. +// This is an idempotent operation. If you perform the operation more than once, +// Amazon EC2 doesn't return an error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -10712,8 +10709,8 @@ func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *reques // a computer. This output is buffered because the instance produces it and // then posts it to a store where the instance's owner can retrieve it. // -// For Windows instances, the instance console output includes output from -// the EC2Config service. +// For Windows instances, the instance console output includes output from the +// EC2Config service. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -11417,12 +11414,11 @@ func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Re // when they are created. The following resource types support longer IDs: instance // | reservation | snapshot | volume. // -// This setting applies to the IAM user who makes the request; it does not -// apply to the entire AWS account. By default, an IAM user defaults to the -// same settings as the root user. If you're using this action as the root user, -// then these settings apply to the entire account, unless an IAM user explicitly -// overrides these settings for themselves. For more information, see Resource -// IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) +// This setting applies to the IAM user who makes the request; it does not apply +// to the entire AWS account. By default, an IAM user defaults to the same settings +// as the root user. If you're using this action as the root user, then these +// settings apply to the entire account, unless an IAM user explicitly overrides +// these settings for themselves. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) // in the Amazon Elastic Compute Cloud User Guide. // // Resources created with longer IDs are visible to all IAM roles and users, @@ -11493,12 +11489,12 @@ func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) // user for an account. You can specify that resources should receive longer // IDs (17-character IDs) when they are created. // -// The following resource types support longer IDs: instance | reservation -// | snapshot | volume. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) +// The following resource types support longer IDs: instance | reservation | +// snapshot | volume. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) // in the Amazon Elastic Compute Cloud User Guide. // -// This setting applies to the principal specified in the request; it does -// not apply to the principal that makes the request. +// This setting applies to the principal specified in the request; it does not +// apply to the principal that makes the request. // // Resources created with longer IDs are visible to all IAM roles and users, // regardless of these settings and provided that they have permission to use @@ -11566,10 +11562,10 @@ func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req // Modifies the specified attribute of the specified AMI. You can specify only // one attribute at a time. // -// AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace +// AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace // product code cannot be made public. // -// The SriovNetSupport enhanced networking attribute cannot be changed using +// The SriovNetSupport enhanced networking attribute cannot be changed using // this command. Instead, enable SriovNetSupport on an instance and create an // AMI from the instance. This will result in an image with SriovNetSupport // enabled. @@ -11709,13 +11705,13 @@ func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput // instance has a new host ID association, the instance will target that host // when restarted. // -// You can modify the tenancy of a stopped instance with a tenancy of host -// or dedicated. +// You can modify the tenancy of a stopped instance with a tenancy of host or +// dedicated. // -// Affinity, hostID, and tenancy are not required parameters, but at least -// one of them must be specified in the request. Affinity and tenancy can be -// modified in the same request, but tenancy can only be modified on instances -// that are stopped. +// Affinity, hostID, and tenancy are not required parameters, but at least one +// of them must be specified in the request. Affinity and tenancy can be modified +// in the same request, but tenancy can only be modified on instances that are +// stopped. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -11909,11 +11905,11 @@ func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput // both add and remove account IDs for a snapshot, you must use multiple API // calls. // -// Encrypted snapshots and snapshots with AWS Marketplace product codes cannot +// Encrypted snapshots and snapshots with AWS Marketplace product codes cannot // be made public. Snapshots encrypted with your default CMK cannot be shared // with other accounts. // -// For more information on modifying snapshot permissions, see Sharing Snapshots +// For more information on modifying snapshot permissions, see Sharing Snapshots // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) // in the Amazon Elastic Compute Cloud User Guide. // @@ -11985,10 +11981,10 @@ func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) // If the allocation strategy is diversified, the Spot fleet distributes the // instances across the Spot pools. // -// To scale down your Spot fleet, decrease its target capacity. First, the -// Spot fleet cancels any open bids that exceed the new target capacity. You -// can request that the Spot fleet terminate Spot instances until the size of -// the fleet no longer exceeds the new target capacity. If the allocation strategy +// To scale down your Spot fleet, decrease its target capacity. First, the Spot +// fleet cancels any open bids that exceed the new target capacity. You can +// request that the Spot fleet terminate Spot instances until the size of the +// fleet no longer exceeds the new target capacity. If the allocation strategy // is lowestPrice, the Spot fleet terminates the instances with the highest // price per unit. If the allocation strategy is diversified, the Spot fleet // terminates instances across the Spot pools. Alternatively, you can request @@ -12308,21 +12304,21 @@ func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringCo // Modifies the VPC peering connection options on one side of a VPC peering // connection. You can do the following: // -// Enable/disable communication over the peering connection between an EC2-Classic -// instance that's linked to your VPC (using ClassicLink) and instances in the -// peer VPC. +// * Enable/disable communication over the peering connection between an +// EC2-Classic instance that's linked to your VPC (using ClassicLink) and +// instances in the peer VPC. // -// Enable/disable communication over the peering connection between instances -// in your VPC and an EC2-Classic instance that's linked to the peer VPC. +// * Enable/disable communication over the peering connection between instances +// in your VPC and an EC2-Classic instance that's linked to the peer VPC. // -// Enable/disable a local VPC to resolve public DNS hostnames to private -// IP addresses when queried from instances in the peer VPC. +// * Enable/disable a local VPC to resolve public DNS hostnames to private +// IP addresses when queried from instances in the peer VPC. // -// If the peered VPCs are in different accounts, each owner must initiate -// a separate request to modify the peering connection options, depending on -// whether their VPC was the requester or accepter for the VPC peering connection. -// If the peered VPCs are in the same account, you can modify the requester -// and accepter options in the same request. To confirm which VPC is the accepter +// If the peered VPCs are in different accounts, each owner must initiate a +// separate request to modify the peering connection options, depending on whether +// their VPC was the requester or accepter for the VPC peering connection. If +// the peered VPCs are in the same account, you can modify the requester and +// accepter options in the same request. To confirm which VPC is the accepter // and requester for a VPC peering connection, use the DescribeVpcPeeringConnections // command. // @@ -12783,15 +12779,15 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html) // in the Amazon Elastic Compute Cloud User Guide. // -// For Amazon EBS-backed instances, CreateImage creates and registers the -// AMI in a single request, so you don't have to register the AMI yourself. +// For Amazon EBS-backed instances, CreateImage creates and registers the AMI +// in a single request, so you don't have to register the AMI yourself. // -// You can also use RegisterImage to create an Amazon EBS-backed Linux AMI -// from a snapshot of a root device volume. For more information, see Launching -// an Instance from a Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html) +// You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from +// a snapshot of a root device volume. For more information, see Launching an +// Instance from a Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html) // in the Amazon Elastic Compute Cloud User Guide. // -// Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE +// Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE // Linux Enterprise Server (SLES), use the EC2 billingProduct code associated // with an AMI to verify subscription status for package updates. Creating an // AMI from an EBS snapshot does not maintain this billing code, and subsequent @@ -12804,12 +12800,12 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ // To create Windows AMIs or to create AMIs for Linux operating systems that // must retain AMI billing codes to work properly, see CreateImage. // -// If needed, you can deregister an AMI at any time. Any modifications you -// make to an AMI backed by an instance store volume invalidates its registration. +// If needed, you can deregister an AMI at any time. Any modifications you make +// to an AMI backed by an instance store volume invalidates its registration. // If you make changes to an image, deregister the previous image and register // the new image. // -// You can't register an image where a secondary (non-root) snapshot has AWS +// You can't register an image where a secondary (non-root) snapshot has AWS // Marketplace product codes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -12936,11 +12932,11 @@ func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Re // // Releases the specified Elastic IP address. // -// After releasing an Elastic IP address, it is released to the IP address -// pool and might be unavailable to you. Be sure to update your DNS records -// and any servers or devices that communicate with the address. If you attempt -// to release an Elastic IP address that you already released, you'll get an -// AuthFailure error if the address is already allocated to another AWS account. +// After releasing an Elastic IP address, it is released to the IP address pool +// and might be unavailable to you. Be sure to update your DNS records and any +// servers or devices that communicate with the address. If you attempt to release +// an Elastic IP address that you already released, you'll get an AuthFailure +// error if the address is already allocated to another AWS account. // // [EC2-Classic, default VPC] Releasing an Elastic IP address automatically // disassociates it from any instance that it's associated with. To disassociate @@ -13545,7 +13541,7 @@ func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req * // // Resets an attribute of an AMI to its default value. // -// The productCodes attribute can't be reset. +// The productCodes attribute can't be reset. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -14037,15 +14033,15 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques // information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon Elastic Compute Cloud User Guide. // -// You can provide optional user data when launching an instance. For more -// information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html) +// You can provide optional user data when launching an instance. For more information, +// see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html) // in the Amazon Elastic Compute Cloud User Guide. // // If any of the AMIs have a product code attached for which the user has not // subscribed, RunInstances fails. // -// Some instance types can only be launched into a VPC. If you do not have -// a default VPC, or if you do not specify a subnet ID in the request, RunInstances +// Some instance types can only be launched into a VPC. If you do not have a +// default VPC, or if you do not specify a subnet ID in the request, RunInstances // fails. For more information, see Instance Types Available Only in a VPC (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html#vpc-only-instance-types). // // For more information about troubleshooting, see What To Do If An Instance @@ -14193,8 +14189,8 @@ func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Re // Before stopping an instance, make sure it is in a state from which it can // be restarted. Stopping an instance does not preserve data stored in RAM. // -// Performing this operation on an instance that uses an instance store as -// its root device returns an error. +// Performing this operation on an instance that uses an instance store as its +// root device returns an error. // // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -14558,6 +14554,24 @@ func (s *AcceptReservedInstancesExchangeQuoteInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AcceptReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *AcceptReservedInstancesExchangeQuoteInput { + s.DryRun = &v + return s +} + +// SetReservedInstanceIds sets the ReservedInstanceIds field's value. +func (s *AcceptReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *AcceptReservedInstancesExchangeQuoteInput { + s.ReservedInstanceIds = v + return s +} + +// SetTargetConfigurations sets the TargetConfigurations field's value. +func (s *AcceptReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *AcceptReservedInstancesExchangeQuoteInput { + s.TargetConfigurations = v + return s +} + // The result of the exchange and whether it was successful. type AcceptReservedInstancesExchangeQuoteOutput struct { _ struct{} `type:"structure"` @@ -14576,6 +14590,12 @@ func (s AcceptReservedInstancesExchangeQuoteOutput) GoString() string { return s.String() } +// SetExchangeId sets the ExchangeId field's value. +func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *AcceptReservedInstancesExchangeQuoteOutput { + s.ExchangeId = &v + return s +} + // Contains the parameters for AcceptVpcPeeringConnection. type AcceptVpcPeeringConnectionInput struct { _ struct{} `type:"structure"` @@ -14600,6 +14620,18 @@ func (s AcceptVpcPeeringConnectionInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *AcceptVpcPeeringConnectionInput) SetDryRun(v bool) *AcceptVpcPeeringConnectionInput { + s.DryRun = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *AcceptVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *AcceptVpcPeeringConnectionInput { + s.VpcPeeringConnectionId = &v + return s +} + // Contains the output of AcceptVpcPeeringConnection. type AcceptVpcPeeringConnectionOutput struct { _ struct{} `type:"structure"` @@ -14618,6 +14650,12 @@ func (s AcceptVpcPeeringConnectionOutput) GoString() string { return s.String() } +// SetVpcPeeringConnection sets the VpcPeeringConnection field's value. +func (s *AcceptVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *AcceptVpcPeeringConnectionOutput { + s.VpcPeeringConnection = v + return s +} + // Describes an account attribute. type AccountAttribute struct { _ struct{} `type:"structure"` @@ -14639,6 +14677,18 @@ func (s AccountAttribute) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *AccountAttribute) SetAttributeName(v string) *AccountAttribute { + s.AttributeName = &v + return s +} + +// SetAttributeValues sets the AttributeValues field's value. +func (s *AccountAttribute) SetAttributeValues(v []*AccountAttributeValue) *AccountAttribute { + s.AttributeValues = v + return s +} + // Describes a value of an account attribute. type AccountAttributeValue struct { _ struct{} `type:"structure"` @@ -14657,6 +14707,12 @@ func (s AccountAttributeValue) GoString() string { return s.String() } +// SetAttributeValue sets the AttributeValue field's value. +func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeValue { + s.AttributeValue = &v + return s +} + // Describes a running instance in a Spot fleet. type ActiveInstance struct { _ struct{} `type:"structure"` @@ -14681,6 +14737,24 @@ func (s ActiveInstance) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ActiveInstance) SetInstanceType(v string) *ActiveInstance { + s.InstanceType = &v + return s +} + +// SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value. +func (s *ActiveInstance) SetSpotInstanceRequestId(v string) *ActiveInstance { + s.SpotInstanceRequestId = &v + return s +} + // Describes an Elastic IP address. type Address struct { _ struct{} `type:"structure"` @@ -14722,6 +14796,54 @@ func (s Address) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *Address) SetAllocationId(v string) *Address { + s.AllocationId = &v + return s +} + +// SetAssociationId sets the AssociationId field's value. +func (s *Address) SetAssociationId(v string) *Address { + s.AssociationId = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *Address) SetDomain(v string) *Address { + s.Domain = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Address) SetInstanceId(v string) *Address { + s.InstanceId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *Address) SetNetworkInterfaceId(v string) *Address { + s.NetworkInterfaceId = &v + return s +} + +// SetNetworkInterfaceOwnerId sets the NetworkInterfaceOwnerId field's value. +func (s *Address) SetNetworkInterfaceOwnerId(v string) *Address { + s.NetworkInterfaceOwnerId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *Address) SetPrivateIpAddress(v string) *Address { + s.PrivateIpAddress = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *Address) SetPublicIp(v string) *Address { + s.PublicIp = &v + return s +} + // Contains the parameters for AllocateAddress. type AllocateAddressInput struct { _ struct{} `type:"structure"` @@ -14748,6 +14870,18 @@ func (s AllocateAddressInput) GoString() string { return s.String() } +// SetDomain sets the Domain field's value. +func (s *AllocateAddressInput) SetDomain(v string) *AllocateAddressInput { + s.Domain = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput { + s.DryRun = &v + return s +} + // Contains the output of AllocateAddress. type AllocateAddressOutput struct { _ struct{} `type:"structure"` @@ -14774,6 +14908,24 @@ func (s AllocateAddressOutput) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *AllocateAddressOutput) SetAllocationId(v string) *AllocateAddressOutput { + s.AllocationId = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *AllocateAddressOutput) SetDomain(v string) *AllocateAddressOutput { + s.Domain = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput { + s.PublicIp = &v + return s +} + // Contains the parameters for AllocateHosts. type AllocateHostsInput struct { _ struct{} `type:"structure"` @@ -14838,6 +14990,36 @@ func (s *AllocateHostsInput) Validate() error { return nil } +// SetAutoPlacement sets the AutoPlacement field's value. +func (s *AllocateHostsInput) SetAutoPlacement(v string) *AllocateHostsInput { + s.AutoPlacement = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *AllocateHostsInput) SetAvailabilityZone(v string) *AllocateHostsInput { + s.AvailabilityZone = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *AllocateHostsInput) SetClientToken(v string) *AllocateHostsInput { + s.ClientToken = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *AllocateHostsInput) SetInstanceType(v string) *AllocateHostsInput { + s.InstanceType = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput { + s.Quantity = &v + return s +} + // Contains the output of AllocateHosts. type AllocateHostsOutput struct { _ struct{} `type:"structure"` @@ -14857,6 +15039,12 @@ func (s AllocateHostsOutput) GoString() string { return s.String() } +// SetHostIds sets the HostIds field's value. +func (s *AllocateHostsOutput) SetHostIds(v []*string) *AllocateHostsOutput { + s.HostIds = v + return s +} + // Contains the parameters for AssignPrivateIpAddresses. type AssignPrivateIpAddressesInput struct { _ struct{} `type:"structure"` @@ -14874,8 +15062,8 @@ type AssignPrivateIpAddressesInput struct { // to the network interface. You can't specify this parameter when also specifying // a number of secondary IP addresses. // - // If you don't specify an IP address, Amazon EC2 automatically selects an - // IP address within the subnet range. + // If you don't specify an IP address, Amazon EC2 automatically selects an IP + // address within the subnet range. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"` // The number of secondary IP addresses to assign to the network interface. @@ -14906,6 +15094,30 @@ func (s *AssignPrivateIpAddressesInput) Validate() error { return nil } +// SetAllowReassignment sets the AllowReassignment field's value. +func (s *AssignPrivateIpAddressesInput) SetAllowReassignment(v bool) *AssignPrivateIpAddressesInput { + s.AllowReassignment = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *AssignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesInput { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *AssignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *AssignPrivateIpAddressesInput { + s.PrivateIpAddresses = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *AssignPrivateIpAddressesInput) SetSecondaryPrivateIpAddressCount(v int64) *AssignPrivateIpAddressesInput { + s.SecondaryPrivateIpAddressCount = &v + return s +} + type AssignPrivateIpAddressesOutput struct { _ struct{} `type:"structure"` } @@ -14970,6 +15182,48 @@ func (s AssociateAddressInput) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *AssociateAddressInput) SetAllocationId(v string) *AssociateAddressInput { + s.AllocationId = &v + return s +} + +// SetAllowReassociation sets the AllowReassociation field's value. +func (s *AssociateAddressInput) SetAllowReassociation(v bool) *AssociateAddressInput { + s.AllowReassociation = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AssociateAddressInput) SetDryRun(v bool) *AssociateAddressInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateAddressInput) SetInstanceId(v string) *AssociateAddressInput { + s.InstanceId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *AssociateAddressInput) SetNetworkInterfaceId(v string) *AssociateAddressInput { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *AssociateAddressInput) SetPrivateIpAddress(v string) *AssociateAddressInput { + s.PrivateIpAddress = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *AssociateAddressInput) SetPublicIp(v string) *AssociateAddressInput { + s.PublicIp = &v + return s +} + // Contains the output of AssociateAddress. type AssociateAddressOutput struct { _ struct{} `type:"structure"` @@ -14989,6 +15243,12 @@ func (s AssociateAddressOutput) GoString() string { return s.String() } +// SetAssociationId sets the AssociationId field's value. +func (s *AssociateAddressOutput) SetAssociationId(v string) *AssociateAddressOutput { + s.AssociationId = &v + return s +} + // Contains the parameters for AssociateDhcpOptions. type AssociateDhcpOptionsInput struct { _ struct{} `type:"structure"` @@ -15037,6 +15297,24 @@ func (s *AssociateDhcpOptionsInput) Validate() error { return nil } +// SetDhcpOptionsId sets the DhcpOptionsId field's value. +func (s *AssociateDhcpOptionsInput) SetDhcpOptionsId(v string) *AssociateDhcpOptionsInput { + s.DhcpOptionsId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AssociateDhcpOptionsInput) SetDryRun(v bool) *AssociateDhcpOptionsInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AssociateDhcpOptionsInput) SetVpcId(v string) *AssociateDhcpOptionsInput { + s.VpcId = &v + return s +} + type AssociateDhcpOptionsOutput struct { _ struct{} `type:"structure"` } @@ -15098,6 +15376,24 @@ func (s *AssociateRouteTableInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AssociateRouteTableInput) SetDryRun(v bool) *AssociateRouteTableInput { + s.DryRun = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *AssociateRouteTableInput) SetRouteTableId(v string) *AssociateRouteTableInput { + s.RouteTableId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *AssociateRouteTableInput) SetSubnetId(v string) *AssociateRouteTableInput { + s.SubnetId = &v + return s +} + // Contains the output of AssociateRouteTable. type AssociateRouteTableOutput struct { _ struct{} `type:"structure"` @@ -15116,6 +15412,12 @@ func (s AssociateRouteTableOutput) GoString() string { return s.String() } +// SetAssociationId sets the AssociationId field's value. +func (s *AssociateRouteTableOutput) SetAssociationId(v string) *AssociateRouteTableOutput { + s.AssociationId = &v + return s +} + // Contains the parameters for AttachClassicLinkVpc. type AttachClassicLinkVpcInput struct { _ struct{} `type:"structure"` @@ -15172,6 +15474,30 @@ func (s *AttachClassicLinkVpcInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AttachClassicLinkVpcInput) SetDryRun(v bool) *AttachClassicLinkVpcInput { + s.DryRun = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *AttachClassicLinkVpcInput) SetGroups(v []*string) *AttachClassicLinkVpcInput { + s.Groups = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AttachClassicLinkVpcInput) SetInstanceId(v string) *AttachClassicLinkVpcInput { + s.InstanceId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AttachClassicLinkVpcInput) SetVpcId(v string) *AttachClassicLinkVpcInput { + s.VpcId = &v + return s +} + // Contains the output of AttachClassicLinkVpc. type AttachClassicLinkVpcOutput struct { _ struct{} `type:"structure"` @@ -15190,6 +15516,12 @@ func (s AttachClassicLinkVpcOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *AttachClassicLinkVpcOutput) SetReturn(v bool) *AttachClassicLinkVpcOutput { + s.Return = &v + return s +} + // Contains the parameters for AttachInternetGateway. type AttachInternetGatewayInput struct { _ struct{} `type:"structure"` @@ -15237,6 +15569,24 @@ func (s *AttachInternetGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AttachInternetGatewayInput) SetDryRun(v bool) *AttachInternetGatewayInput { + s.DryRun = &v + return s +} + +// SetInternetGatewayId sets the InternetGatewayId field's value. +func (s *AttachInternetGatewayInput) SetInternetGatewayId(v string) *AttachInternetGatewayInput { + s.InternetGatewayId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AttachInternetGatewayInput) SetVpcId(v string) *AttachInternetGatewayInput { + s.VpcId = &v + return s +} + type AttachInternetGatewayOutput struct { _ struct{} `type:"structure"` } @@ -15306,6 +15656,30 @@ func (s *AttachNetworkInterfaceInput) Validate() error { return nil } +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *AttachNetworkInterfaceInput) SetDeviceIndex(v int64) *AttachNetworkInterfaceInput { + s.DeviceIndex = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AttachNetworkInterfaceInput) SetDryRun(v bool) *AttachNetworkInterfaceInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AttachNetworkInterfaceInput) SetInstanceId(v string) *AttachNetworkInterfaceInput { + s.InstanceId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *AttachNetworkInterfaceInput) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceInput { + s.NetworkInterfaceId = &v + return s +} + // Contains the output of AttachNetworkInterface. type AttachNetworkInterfaceOutput struct { _ struct{} `type:"structure"` @@ -15324,6 +15698,12 @@ func (s AttachNetworkInterfaceOutput) GoString() string { return s.String() } +// SetAttachmentId sets the AttachmentId field's value. +func (s *AttachNetworkInterfaceOutput) SetAttachmentId(v string) *AttachNetworkInterfaceOutput { + s.AttachmentId = &v + return s +} + // Contains the parameters for AttachVolume. type AttachVolumeInput struct { _ struct{} `type:"structure"` @@ -15380,6 +15760,30 @@ func (s *AttachVolumeInput) Validate() error { return nil } +// SetDevice sets the Device field's value. +func (s *AttachVolumeInput) SetDevice(v string) *AttachVolumeInput { + s.Device = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AttachVolumeInput) SetDryRun(v bool) *AttachVolumeInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AttachVolumeInput) SetInstanceId(v string) *AttachVolumeInput { + s.InstanceId = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *AttachVolumeInput) SetVolumeId(v string) *AttachVolumeInput { + s.VolumeId = &v + return s +} + // Contains the parameters for AttachVpnGateway. type AttachVpnGatewayInput struct { _ struct{} `type:"structure"` @@ -15427,6 +15831,24 @@ func (s *AttachVpnGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AttachVpnGatewayInput) SetDryRun(v bool) *AttachVpnGatewayInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AttachVpnGatewayInput) SetVpcId(v string) *AttachVpnGatewayInput { + s.VpcId = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *AttachVpnGatewayInput) SetVpnGatewayId(v string) *AttachVpnGatewayInput { + s.VpnGatewayId = &v + return s +} + // Contains the output of AttachVpnGateway. type AttachVpnGatewayOutput struct { _ struct{} `type:"structure"` @@ -15445,6 +15867,12 @@ func (s AttachVpnGatewayOutput) GoString() string { return s.String() } +// SetVpcAttachment sets the VpcAttachment field's value. +func (s *AttachVpnGatewayOutput) SetVpcAttachment(v *VpcAttachment) *AttachVpnGatewayOutput { + s.VpcAttachment = v + return s +} + // Describes a value for a resource attribute that is a Boolean value. type AttributeBooleanValue struct { _ struct{} `type:"structure"` @@ -15463,6 +15891,12 @@ func (s AttributeBooleanValue) GoString() string { return s.String() } +// SetValue sets the Value field's value. +func (s *AttributeBooleanValue) SetValue(v bool) *AttributeBooleanValue { + s.Value = &v + return s +} + // Describes a value for a resource attribute that is a String. type AttributeValue struct { _ struct{} `type:"structure"` @@ -15481,6 +15915,12 @@ func (s AttributeValue) GoString() string { return s.String() } +// SetValue sets the Value field's value. +func (s *AttributeValue) SetValue(v string) *AttributeValue { + s.Value = &v + return s +} + // Contains the parameters for AuthorizeSecurityGroupEgress. type AuthorizeSecurityGroupEgressInput struct { _ struct{} `type:"structure"` @@ -15550,6 +15990,60 @@ func (s *AuthorizeSecurityGroupEgressInput) Validate() error { return nil } +// SetCidrIp sets the CidrIp field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetCidrIp(v string) *AuthorizeSecurityGroupEgressInput { + s.CidrIp = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetDryRun(v bool) *AuthorizeSecurityGroupEgressInput { + s.DryRun = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetFromPort(v int64) *AuthorizeSecurityGroupEgressInput { + s.FromPort = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetGroupId(v string) *AuthorizeSecurityGroupEgressInput { + s.GroupId = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupEgressInput { + s.IpPermissions = v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressInput { + s.IpProtocol = &v + return s +} + +// SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupEgressInput { + s.SourceSecurityGroupName = &v + return s +} + +// SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupEgressInput { + s.SourceSecurityGroupOwnerId = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetToPort(v int64) *AuthorizeSecurityGroupEgressInput { + s.ToPort = &v + return s +} + type AuthorizeSecurityGroupEgressOutput struct { _ struct{} `type:"structure"` } @@ -15629,6 +16123,66 @@ func (s AuthorizeSecurityGroupIngressInput) GoString() string { return s.String() } +// SetCidrIp sets the CidrIp field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetCidrIp(v string) *AuthorizeSecurityGroupIngressInput { + s.CidrIp = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetDryRun(v bool) *AuthorizeSecurityGroupIngressInput { + s.DryRun = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetFromPort(v int64) *AuthorizeSecurityGroupIngressInput { + s.FromPort = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetGroupId(v string) *AuthorizeSecurityGroupIngressInput { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetGroupName(v string) *AuthorizeSecurityGroupIngressInput { + s.GroupName = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupIngressInput { + s.IpPermissions = v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupIngressInput { + s.IpProtocol = &v + return s +} + +// SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupIngressInput { + s.SourceSecurityGroupName = &v + return s +} + +// SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupIngressInput { + s.SourceSecurityGroupOwnerId = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetToPort(v int64) *AuthorizeSecurityGroupIngressInput { + s.ToPort = &v + return s +} + type AuthorizeSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` } @@ -15670,6 +16224,30 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetMessages sets the Messages field's value. +func (s *AvailabilityZone) SetMessages(v []*AvailabilityZoneMessage) *AvailabilityZone { + s.Messages = v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *AvailabilityZone) SetRegionName(v string) *AvailabilityZone { + s.RegionName = &v + return s +} + +// SetState sets the State field's value. +func (s *AvailabilityZone) SetState(v string) *AvailabilityZone { + s.State = &v + return s +} + +// SetZoneName sets the ZoneName field's value. +func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone { + s.ZoneName = &v + return s +} + // Describes a message about an Availability Zone. type AvailabilityZoneMessage struct { _ struct{} `type:"structure"` @@ -15688,6 +16266,12 @@ func (s AvailabilityZoneMessage) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *AvailabilityZoneMessage) SetMessage(v string) *AvailabilityZoneMessage { + s.Message = &v + return s +} + // The capacity information for instances launched onto the Dedicated Host. type AvailableCapacity struct { _ struct{} `type:"structure"` @@ -15709,6 +16293,18 @@ func (s AvailableCapacity) GoString() string { return s.String() } +// SetAvailableInstanceCapacity sets the AvailableInstanceCapacity field's value. +func (s *AvailableCapacity) SetAvailableInstanceCapacity(v []*InstanceCapacity) *AvailableCapacity { + s.AvailableInstanceCapacity = v + return s +} + +// SetAvailableVCpus sets the AvailableVCpus field's value. +func (s *AvailableCapacity) SetAvailableVCpus(v int64) *AvailableCapacity { + s.AvailableVCpus = &v + return s +} + type BlobAttributeValue struct { _ struct{} `type:"structure"` @@ -15726,6 +16322,12 @@ func (s BlobAttributeValue) GoString() string { return s.String() } +// SetValue sets the Value field's value. +func (s *BlobAttributeValue) SetValue(v []byte) *BlobAttributeValue { + s.Value = v + return s +} + // Describes a block device mapping. type BlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -15764,6 +16366,30 @@ func (s BlockDeviceMapping) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping { + s.VirtualName = &v + return s +} + // Contains the parameters for BundleInstance. type BundleInstanceInput struct { _ struct{} `type:"structure"` @@ -15819,6 +16445,24 @@ func (s *BundleInstanceInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *BundleInstanceInput) SetDryRun(v bool) *BundleInstanceInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *BundleInstanceInput) SetInstanceId(v string) *BundleInstanceInput { + s.InstanceId = &v + return s +} + +// SetStorage sets the Storage field's value. +func (s *BundleInstanceInput) SetStorage(v *Storage) *BundleInstanceInput { + s.Storage = v + return s +} + // Contains the output of BundleInstance. type BundleInstanceOutput struct { _ struct{} `type:"structure"` @@ -15837,6 +16481,12 @@ func (s BundleInstanceOutput) GoString() string { return s.String() } +// SetBundleTask sets the BundleTask field's value. +func (s *BundleInstanceOutput) SetBundleTask(v *BundleTask) *BundleInstanceOutput { + s.BundleTask = v + return s +} + // Describes a bundle task. type BundleTask struct { _ struct{} `type:"structure"` @@ -15876,6 +16526,54 @@ func (s BundleTask) GoString() string { return s.String() } +// SetBundleId sets the BundleId field's value. +func (s *BundleTask) SetBundleId(v string) *BundleTask { + s.BundleId = &v + return s +} + +// SetBundleTaskError sets the BundleTaskError field's value. +func (s *BundleTask) SetBundleTaskError(v *BundleTaskError) *BundleTask { + s.BundleTaskError = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *BundleTask) SetInstanceId(v string) *BundleTask { + s.InstanceId = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *BundleTask) SetProgress(v string) *BundleTask { + s.Progress = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *BundleTask) SetStartTime(v time.Time) *BundleTask { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *BundleTask) SetState(v string) *BundleTask { + s.State = &v + return s +} + +// SetStorage sets the Storage field's value. +func (s *BundleTask) SetStorage(v *Storage) *BundleTask { + s.Storage = v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *BundleTask) SetUpdateTime(v time.Time) *BundleTask { + s.UpdateTime = &v + return s +} + // Describes an error for BundleInstance. type BundleTaskError struct { _ struct{} `type:"structure"` @@ -15897,6 +16595,18 @@ func (s BundleTaskError) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *BundleTaskError) SetCode(v string) *BundleTaskError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *BundleTaskError) SetMessage(v string) *BundleTaskError { + s.Message = &v + return s +} + // Contains the parameters for CancelBundleTask. type CancelBundleTaskInput struct { _ struct{} `type:"structure"` @@ -15936,6 +16646,18 @@ func (s *CancelBundleTaskInput) Validate() error { return nil } +// SetBundleId sets the BundleId field's value. +func (s *CancelBundleTaskInput) SetBundleId(v string) *CancelBundleTaskInput { + s.BundleId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CancelBundleTaskInput) SetDryRun(v bool) *CancelBundleTaskInput { + s.DryRun = &v + return s +} + // Contains the output of CancelBundleTask. type CancelBundleTaskOutput struct { _ struct{} `type:"structure"` @@ -15954,6 +16676,12 @@ func (s CancelBundleTaskOutput) GoString() string { return s.String() } +// SetBundleTask sets the BundleTask field's value. +func (s *CancelBundleTaskOutput) SetBundleTask(v *BundleTask) *CancelBundleTaskOutput { + s.BundleTask = v + return s +} + // Contains the parameters for CancelConversionTask. type CancelConversionTaskInput struct { _ struct{} `type:"structure"` @@ -15996,6 +16724,24 @@ func (s *CancelConversionTaskInput) Validate() error { return nil } +// SetConversionTaskId sets the ConversionTaskId field's value. +func (s *CancelConversionTaskInput) SetConversionTaskId(v string) *CancelConversionTaskInput { + s.ConversionTaskId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CancelConversionTaskInput) SetDryRun(v bool) *CancelConversionTaskInput { + s.DryRun = &v + return s +} + +// SetReasonMessage sets the ReasonMessage field's value. +func (s *CancelConversionTaskInput) SetReasonMessage(v string) *CancelConversionTaskInput { + s.ReasonMessage = &v + return s +} + type CancelConversionTaskOutput struct { _ struct{} `type:"structure"` } @@ -16043,6 +16789,12 @@ func (s *CancelExportTaskInput) Validate() error { return nil } +// SetExportTaskId sets the ExportTaskId field's value. +func (s *CancelExportTaskInput) SetExportTaskId(v string) *CancelExportTaskInput { + s.ExportTaskId = &v + return s +} + type CancelExportTaskOutput struct { _ struct{} `type:"structure"` } @@ -16084,6 +16836,24 @@ func (s CancelImportTaskInput) GoString() string { return s.String() } +// SetCancelReason sets the CancelReason field's value. +func (s *CancelImportTaskInput) SetCancelReason(v string) *CancelImportTaskInput { + s.CancelReason = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CancelImportTaskInput) SetDryRun(v bool) *CancelImportTaskInput { + s.DryRun = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *CancelImportTaskInput) SetImportTaskId(v string) *CancelImportTaskInput { + s.ImportTaskId = &v + return s +} + // Contains the output for CancelImportTask. type CancelImportTaskOutput struct { _ struct{} `type:"structure"` @@ -16108,6 +16878,24 @@ func (s CancelImportTaskOutput) GoString() string { return s.String() } +// SetImportTaskId sets the ImportTaskId field's value. +func (s *CancelImportTaskOutput) SetImportTaskId(v string) *CancelImportTaskOutput { + s.ImportTaskId = &v + return s +} + +// SetPreviousState sets the PreviousState field's value. +func (s *CancelImportTaskOutput) SetPreviousState(v string) *CancelImportTaskOutput { + s.PreviousState = &v + return s +} + +// SetState sets the State field's value. +func (s *CancelImportTaskOutput) SetState(v string) *CancelImportTaskOutput { + s.State = &v + return s +} + // Contains the parameters for CancelReservedInstancesListing. type CancelReservedInstancesListingInput struct { _ struct{} `type:"structure"` @@ -16141,6 +16929,12 @@ func (s *CancelReservedInstancesListingInput) Validate() error { return nil } +// SetReservedInstancesListingId sets the ReservedInstancesListingId field's value. +func (s *CancelReservedInstancesListingInput) SetReservedInstancesListingId(v string) *CancelReservedInstancesListingInput { + s.ReservedInstancesListingId = &v + return s +} + // Contains the output of CancelReservedInstancesListing. type CancelReservedInstancesListingOutput struct { _ struct{} `type:"structure"` @@ -16159,6 +16953,12 @@ func (s CancelReservedInstancesListingOutput) GoString() string { return s.String() } +// SetReservedInstancesListings sets the ReservedInstancesListings field's value. +func (s *CancelReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CancelReservedInstancesListingOutput { + s.ReservedInstancesListings = v + return s +} + // Describes a Spot fleet error. type CancelSpotFleetRequestsError struct { _ struct{} `type:"structure"` @@ -16184,6 +16984,18 @@ func (s CancelSpotFleetRequestsError) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *CancelSpotFleetRequestsError) SetCode(v string) *CancelSpotFleetRequestsError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *CancelSpotFleetRequestsError) SetMessage(v string) *CancelSpotFleetRequestsError { + s.Message = &v + return s +} + // Describes a Spot fleet request that was not successfully canceled. type CancelSpotFleetRequestsErrorItem struct { _ struct{} `type:"structure"` @@ -16209,6 +17021,18 @@ func (s CancelSpotFleetRequestsErrorItem) GoString() string { return s.String() } +// SetError sets the Error field's value. +func (s *CancelSpotFleetRequestsErrorItem) SetError(v *CancelSpotFleetRequestsError) *CancelSpotFleetRequestsErrorItem { + s.Error = v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *CancelSpotFleetRequestsErrorItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsErrorItem { + s.SpotFleetRequestId = &v + return s +} + // Contains the parameters for CancelSpotFleetRequests. type CancelSpotFleetRequestsInput struct { _ struct{} `type:"structure"` @@ -16257,6 +17081,24 @@ func (s *CancelSpotFleetRequestsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CancelSpotFleetRequestsInput) SetDryRun(v bool) *CancelSpotFleetRequestsInput { + s.DryRun = &v + return s +} + +// SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value. +func (s *CancelSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *CancelSpotFleetRequestsInput { + s.SpotFleetRequestIds = v + return s +} + +// SetTerminateInstances sets the TerminateInstances field's value. +func (s *CancelSpotFleetRequestsInput) SetTerminateInstances(v bool) *CancelSpotFleetRequestsInput { + s.TerminateInstances = &v + return s +} + // Contains the output of CancelSpotFleetRequests. type CancelSpotFleetRequestsOutput struct { _ struct{} `type:"structure"` @@ -16278,6 +17120,18 @@ func (s CancelSpotFleetRequestsOutput) GoString() string { return s.String() } +// SetSuccessfulFleetRequests sets the SuccessfulFleetRequests field's value. +func (s *CancelSpotFleetRequestsOutput) SetSuccessfulFleetRequests(v []*CancelSpotFleetRequestsSuccessItem) *CancelSpotFleetRequestsOutput { + s.SuccessfulFleetRequests = v + return s +} + +// SetUnsuccessfulFleetRequests sets the UnsuccessfulFleetRequests field's value. +func (s *CancelSpotFleetRequestsOutput) SetUnsuccessfulFleetRequests(v []*CancelSpotFleetRequestsErrorItem) *CancelSpotFleetRequestsOutput { + s.UnsuccessfulFleetRequests = v + return s +} + // Describes a Spot fleet request that was successfully canceled. type CancelSpotFleetRequestsSuccessItem struct { _ struct{} `type:"structure"` @@ -16308,6 +17162,24 @@ func (s CancelSpotFleetRequestsSuccessItem) GoString() string { return s.String() } +// SetCurrentSpotFleetRequestState sets the CurrentSpotFleetRequestState field's value. +func (s *CancelSpotFleetRequestsSuccessItem) SetCurrentSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem { + s.CurrentSpotFleetRequestState = &v + return s +} + +// SetPreviousSpotFleetRequestState sets the PreviousSpotFleetRequestState field's value. +func (s *CancelSpotFleetRequestsSuccessItem) SetPreviousSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem { + s.PreviousSpotFleetRequestState = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *CancelSpotFleetRequestsSuccessItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsSuccessItem { + s.SpotFleetRequestId = &v + return s +} + // Contains the parameters for CancelSpotInstanceRequests. type CancelSpotInstanceRequestsInput struct { _ struct{} `type:"structure"` @@ -16347,6 +17219,18 @@ func (s *CancelSpotInstanceRequestsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CancelSpotInstanceRequestsInput) SetDryRun(v bool) *CancelSpotInstanceRequestsInput { + s.DryRun = &v + return s +} + +// SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value. +func (s *CancelSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *CancelSpotInstanceRequestsInput { + s.SpotInstanceRequestIds = v + return s +} + // Contains the output of CancelSpotInstanceRequests. type CancelSpotInstanceRequestsOutput struct { _ struct{} `type:"structure"` @@ -16365,6 +17249,12 @@ func (s CancelSpotInstanceRequestsOutput) GoString() string { return s.String() } +// SetCancelledSpotInstanceRequests sets the CancelledSpotInstanceRequests field's value. +func (s *CancelSpotInstanceRequestsOutput) SetCancelledSpotInstanceRequests(v []*CancelledSpotInstanceRequest) *CancelSpotInstanceRequestsOutput { + s.CancelledSpotInstanceRequests = v + return s +} + // Describes a request to cancel a Spot instance. type CancelledSpotInstanceRequest struct { _ struct{} `type:"structure"` @@ -16386,6 +17276,18 @@ func (s CancelledSpotInstanceRequest) GoString() string { return s.String() } +// SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value. +func (s *CancelledSpotInstanceRequest) SetSpotInstanceRequestId(v string) *CancelledSpotInstanceRequest { + s.SpotInstanceRequestId = &v + return s +} + +// SetState sets the State field's value. +func (s *CancelledSpotInstanceRequest) SetState(v string) *CancelledSpotInstanceRequest { + s.State = &v + return s +} + // Describes the ClassicLink DNS support status of a VPC. type ClassicLinkDnsSupport struct { _ struct{} `type:"structure"` @@ -16407,6 +17309,18 @@ func (s ClassicLinkDnsSupport) GoString() string { return s.String() } +// SetClassicLinkDnsSupported sets the ClassicLinkDnsSupported field's value. +func (s *ClassicLinkDnsSupport) SetClassicLinkDnsSupported(v bool) *ClassicLinkDnsSupport { + s.ClassicLinkDnsSupported = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ClassicLinkDnsSupport) SetVpcId(v string) *ClassicLinkDnsSupport { + s.VpcId = &v + return s +} + // Describes a linked EC2-Classic instance. type ClassicLinkInstance struct { _ struct{} `type:"structure"` @@ -16434,6 +17348,30 @@ func (s ClassicLinkInstance) GoString() string { return s.String() } +// SetGroups sets the Groups field's value. +func (s *ClassicLinkInstance) SetGroups(v []*GroupIdentifier) *ClassicLinkInstance { + s.Groups = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ClassicLinkInstance) SetInstanceId(v string) *ClassicLinkInstance { + s.InstanceId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClassicLinkInstance) SetTags(v []*Tag) *ClassicLinkInstance { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ClassicLinkInstance) SetVpcId(v string) *ClassicLinkInstance { + s.VpcId = &v + return s +} + // Describes the client-specific data. type ClientData struct { _ struct{} `type:"structure"` @@ -16461,6 +17399,30 @@ func (s ClientData) GoString() string { return s.String() } +// SetComment sets the Comment field's value. +func (s *ClientData) SetComment(v string) *ClientData { + s.Comment = &v + return s +} + +// SetUploadEnd sets the UploadEnd field's value. +func (s *ClientData) SetUploadEnd(v time.Time) *ClientData { + s.UploadEnd = &v + return s +} + +// SetUploadSize sets the UploadSize field's value. +func (s *ClientData) SetUploadSize(v float64) *ClientData { + s.UploadSize = &v + return s +} + +// SetUploadStart sets the UploadStart field's value. +func (s *ClientData) SetUploadStart(v time.Time) *ClientData { + s.UploadStart = &v + return s +} + // Contains the parameters for ConfirmProductInstance. type ConfirmProductInstanceInput struct { _ struct{} `type:"structure"` @@ -16508,6 +17470,24 @@ func (s *ConfirmProductInstanceInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *ConfirmProductInstanceInput) SetDryRun(v bool) *ConfirmProductInstanceInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ConfirmProductInstanceInput) SetInstanceId(v string) *ConfirmProductInstanceInput { + s.InstanceId = &v + return s +} + +// SetProductCode sets the ProductCode field's value. +func (s *ConfirmProductInstanceInput) SetProductCode(v string) *ConfirmProductInstanceInput { + s.ProductCode = &v + return s +} + // Contains the output of ConfirmProductInstance. type ConfirmProductInstanceOutput struct { _ struct{} `type:"structure"` @@ -16531,6 +17511,18 @@ func (s ConfirmProductInstanceOutput) GoString() string { return s.String() } +// SetOwnerId sets the OwnerId field's value. +func (s *ConfirmProductInstanceOutput) SetOwnerId(v string) *ConfirmProductInstanceOutput { + s.OwnerId = &v + return s +} + +// SetReturn sets the Return field's value. +func (s *ConfirmProductInstanceOutput) SetReturn(v bool) *ConfirmProductInstanceOutput { + s.Return = &v + return s +} + // Describes a conversion task. type ConversionTask struct { _ struct{} `type:"structure"` @@ -16574,6 +17566,48 @@ func (s ConversionTask) GoString() string { return s.String() } +// SetConversionTaskId sets the ConversionTaskId field's value. +func (s *ConversionTask) SetConversionTaskId(v string) *ConversionTask { + s.ConversionTaskId = &v + return s +} + +// SetExpirationTime sets the ExpirationTime field's value. +func (s *ConversionTask) SetExpirationTime(v string) *ConversionTask { + s.ExpirationTime = &v + return s +} + +// SetImportInstance sets the ImportInstance field's value. +func (s *ConversionTask) SetImportInstance(v *ImportInstanceTaskDetails) *ConversionTask { + s.ImportInstance = v + return s +} + +// SetImportVolume sets the ImportVolume field's value. +func (s *ConversionTask) SetImportVolume(v *ImportVolumeTaskDetails) *ConversionTask { + s.ImportVolume = v + return s +} + +// SetState sets the State field's value. +func (s *ConversionTask) SetState(v string) *ConversionTask { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ConversionTask) SetStatusMessage(v string) *ConversionTask { + s.StatusMessage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ConversionTask) SetTags(v []*Tag) *ConversionTask { + s.Tags = v + return s +} + // Contains the parameters for CopyImage. type CopyImageInput struct { _ struct{} `type:"structure"` @@ -16654,6 +17688,54 @@ func (s *CopyImageInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CopyImageInput) SetClientToken(v string) *CopyImageInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CopyImageInput) SetDescription(v string) *CopyImageInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CopyImageInput) SetDryRun(v bool) *CopyImageInput { + s.DryRun = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CopyImageInput) SetEncrypted(v bool) *CopyImageInput { + s.Encrypted = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CopyImageInput) SetKmsKeyId(v string) *CopyImageInput { + s.KmsKeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CopyImageInput) SetName(v string) *CopyImageInput { + s.Name = &v + return s +} + +// SetSourceImageId sets the SourceImageId field's value. +func (s *CopyImageInput) SetSourceImageId(v string) *CopyImageInput { + s.SourceImageId = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CopyImageInput) SetSourceRegion(v string) *CopyImageInput { + s.SourceRegion = &v + return s +} + // Contains the output of CopyImage. type CopyImageOutput struct { _ struct{} `type:"structure"` @@ -16672,6 +17754,12 @@ func (s CopyImageOutput) GoString() string { return s.String() } +// SetImageId sets the ImageId field's value. +func (s *CopyImageOutput) SetImageId(v string) *CopyImageOutput { + s.ImageId = &v + return s +} + // Contains the parameters for CopySnapshot. type CopySnapshotInput struct { _ struct{} `type:"structure"` @@ -16683,10 +17771,10 @@ type CopySnapshotInput struct { // copy operation. This parameter is only valid for specifying the destination // region in a PresignedUrl parameter, where it is required. // - // CopySnapshot sends the snapshot copy to the regional endpoint that you - // send the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS - // CLI, this is specified with the --region parameter or the default region - // in your AWS configuration file). + // CopySnapshot sends the snapshot copy to the regional endpoint that you send + // the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS CLI, + // this is specified with the --region parameter or the default region in your + // AWS configuration file). DestinationRegion *string `locationName:"destinationRegion" type:"string"` // Checks whether you have the required permissions for the action, without @@ -16765,6 +17853,54 @@ func (s *CopySnapshotInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CopySnapshotInput) SetDescription(v string) *CopySnapshotInput { + s.Description = &v + return s +} + +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *CopySnapshotInput) SetDestinationRegion(v string) *CopySnapshotInput { + s.DestinationRegion = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CopySnapshotInput) SetDryRun(v bool) *CopySnapshotInput { + s.DryRun = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CopySnapshotInput) SetEncrypted(v bool) *CopySnapshotInput { + s.Encrypted = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetPresignedUrl sets the PresignedUrl field's value. +func (s *CopySnapshotInput) SetPresignedUrl(v string) *CopySnapshotInput { + s.PresignedUrl = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput { + s.SourceRegion = &v + return s +} + +// SetSourceSnapshotId sets the SourceSnapshotId field's value. +func (s *CopySnapshotInput) SetSourceSnapshotId(v string) *CopySnapshotInput { + s.SourceSnapshotId = &v + return s +} + // Contains the output of CopySnapshot. type CopySnapshotOutput struct { _ struct{} `type:"structure"` @@ -16783,6 +17919,12 @@ func (s CopySnapshotOutput) GoString() string { return s.String() } +// SetSnapshotId sets the SnapshotId field's value. +func (s *CopySnapshotOutput) SetSnapshotId(v string) *CopySnapshotOutput { + s.SnapshotId = &v + return s +} + // Contains the parameters for CreateCustomerGateway. type CreateCustomerGatewayInput struct { _ struct{} `type:"structure"` @@ -16841,6 +17983,30 @@ func (s *CreateCustomerGatewayInput) Validate() error { return nil } +// SetBgpAsn sets the BgpAsn field's value. +func (s *CreateCustomerGatewayInput) SetBgpAsn(v int64) *CreateCustomerGatewayInput { + s.BgpAsn = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateCustomerGatewayInput) SetDryRun(v bool) *CreateCustomerGatewayInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *CreateCustomerGatewayInput) SetPublicIp(v string) *CreateCustomerGatewayInput { + s.PublicIp = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateCustomerGatewayInput) SetType(v string) *CreateCustomerGatewayInput { + s.Type = &v + return s +} + // Contains the output of CreateCustomerGateway. type CreateCustomerGatewayOutput struct { _ struct{} `type:"structure"` @@ -16859,6 +18025,12 @@ func (s CreateCustomerGatewayOutput) GoString() string { return s.String() } +// SetCustomerGateway sets the CustomerGateway field's value. +func (s *CreateCustomerGatewayOutput) SetCustomerGateway(v *CustomerGateway) *CreateCustomerGatewayOutput { + s.CustomerGateway = v + return s +} + // Contains the parameters for CreateDhcpOptions. type CreateDhcpOptionsInput struct { _ struct{} `type:"structure"` @@ -16898,6 +18070,18 @@ func (s *CreateDhcpOptionsInput) Validate() error { return nil } +// SetDhcpConfigurations sets the DhcpConfigurations field's value. +func (s *CreateDhcpOptionsInput) SetDhcpConfigurations(v []*NewDhcpConfiguration) *CreateDhcpOptionsInput { + s.DhcpConfigurations = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateDhcpOptionsInput) SetDryRun(v bool) *CreateDhcpOptionsInput { + s.DryRun = &v + return s +} + // Contains the output of CreateDhcpOptions. type CreateDhcpOptionsOutput struct { _ struct{} `type:"structure"` @@ -16916,6 +18100,12 @@ func (s CreateDhcpOptionsOutput) GoString() string { return s.String() } +// SetDhcpOptions sets the DhcpOptions field's value. +func (s *CreateDhcpOptionsOutput) SetDhcpOptions(v *DhcpOptions) *CreateDhcpOptionsOutput { + s.DhcpOptions = v + return s +} + // Contains the parameters for CreateFlowLogs. type CreateFlowLogsInput struct { _ struct{} `type:"structure"` @@ -16988,6 +18178,42 @@ func (s *CreateFlowLogsInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateFlowLogsInput) SetClientToken(v string) *CreateFlowLogsInput { + s.ClientToken = &v + return s +} + +// SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value. +func (s *CreateFlowLogsInput) SetDeliverLogsPermissionArn(v string) *CreateFlowLogsInput { + s.DeliverLogsPermissionArn = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateFlowLogsInput) SetLogGroupName(v string) *CreateFlowLogsInput { + s.LogGroupName = &v + return s +} + +// SetResourceIds sets the ResourceIds field's value. +func (s *CreateFlowLogsInput) SetResourceIds(v []*string) *CreateFlowLogsInput { + s.ResourceIds = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *CreateFlowLogsInput) SetResourceType(v string) *CreateFlowLogsInput { + s.ResourceType = &v + return s +} + +// SetTrafficType sets the TrafficType field's value. +func (s *CreateFlowLogsInput) SetTrafficType(v string) *CreateFlowLogsInput { + s.TrafficType = &v + return s +} + // Contains the output of CreateFlowLogs. type CreateFlowLogsOutput struct { _ struct{} `type:"structure"` @@ -17013,6 +18239,24 @@ func (s CreateFlowLogsOutput) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *CreateFlowLogsOutput) SetClientToken(v string) *CreateFlowLogsOutput { + s.ClientToken = &v + return s +} + +// SetFlowLogIds sets the FlowLogIds field's value. +func (s *CreateFlowLogsOutput) SetFlowLogIds(v []*string) *CreateFlowLogsOutput { + s.FlowLogIds = v + return s +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *CreateFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *CreateFlowLogsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for CreateImage. type CreateImageInput struct { _ struct{} `type:"structure"` @@ -17076,6 +18320,42 @@ func (s *CreateImageInput) Validate() error { return nil } +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *CreateImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateImageInput { + s.BlockDeviceMappings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateImageInput) SetDescription(v string) *CreateImageInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateImageInput) SetDryRun(v bool) *CreateImageInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateImageInput) SetInstanceId(v string) *CreateImageInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateImageInput) SetName(v string) *CreateImageInput { + s.Name = &v + return s +} + +// SetNoReboot sets the NoReboot field's value. +func (s *CreateImageInput) SetNoReboot(v bool) *CreateImageInput { + s.NoReboot = &v + return s +} + // Contains the output of CreateImage. type CreateImageOutput struct { _ struct{} `type:"structure"` @@ -17094,6 +18374,12 @@ func (s CreateImageOutput) GoString() string { return s.String() } +// SetImageId sets the ImageId field's value. +func (s *CreateImageOutput) SetImageId(v string) *CreateImageOutput { + s.ImageId = &v + return s +} + // Contains the parameters for CreateInstanceExportTask. type CreateInstanceExportTaskInput struct { _ struct{} `type:"structure"` @@ -17137,6 +18423,30 @@ func (s *CreateInstanceExportTaskInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateInstanceExportTaskInput) SetDescription(v string) *CreateInstanceExportTaskInput { + s.Description = &v + return s +} + +// SetExportToS3Task sets the ExportToS3Task field's value. +func (s *CreateInstanceExportTaskInput) SetExportToS3Task(v *ExportToS3TaskSpecification) *CreateInstanceExportTaskInput { + s.ExportToS3Task = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateInstanceExportTaskInput) SetInstanceId(v string) *CreateInstanceExportTaskInput { + s.InstanceId = &v + return s +} + +// SetTargetEnvironment sets the TargetEnvironment field's value. +func (s *CreateInstanceExportTaskInput) SetTargetEnvironment(v string) *CreateInstanceExportTaskInput { + s.TargetEnvironment = &v + return s +} + // Contains the output for CreateInstanceExportTask. type CreateInstanceExportTaskOutput struct { _ struct{} `type:"structure"` @@ -17155,6 +18465,12 @@ func (s CreateInstanceExportTaskOutput) GoString() string { return s.String() } +// SetExportTask sets the ExportTask field's value. +func (s *CreateInstanceExportTaskOutput) SetExportTask(v *ExportTask) *CreateInstanceExportTaskOutput { + s.ExportTask = v + return s +} + // Contains the parameters for CreateInternetGateway. type CreateInternetGatewayInput struct { _ struct{} `type:"structure"` @@ -17176,6 +18492,12 @@ func (s CreateInternetGatewayInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *CreateInternetGatewayInput) SetDryRun(v bool) *CreateInternetGatewayInput { + s.DryRun = &v + return s +} + // Contains the output of CreateInternetGateway. type CreateInternetGatewayOutput struct { _ struct{} `type:"structure"` @@ -17194,6 +18516,12 @@ func (s CreateInternetGatewayOutput) GoString() string { return s.String() } +// SetInternetGateway sets the InternetGateway field's value. +func (s *CreateInternetGatewayOutput) SetInternetGateway(v *InternetGateway) *CreateInternetGatewayOutput { + s.InternetGateway = v + return s +} + // Contains the parameters for CreateKeyPair. type CreateKeyPairInput struct { _ struct{} `type:"structure"` @@ -17235,6 +18563,18 @@ func (s *CreateKeyPairInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreateKeyPairInput) SetDryRun(v bool) *CreateKeyPairInput { + s.DryRun = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *CreateKeyPairInput) SetKeyName(v string) *CreateKeyPairInput { + s.KeyName = &v + return s +} + // Describes a key pair. type CreateKeyPairOutput struct { _ struct{} `type:"structure"` @@ -17259,6 +18599,24 @@ func (s CreateKeyPairOutput) GoString() string { return s.String() } +// SetKeyFingerprint sets the KeyFingerprint field's value. +func (s *CreateKeyPairOutput) SetKeyFingerprint(v string) *CreateKeyPairOutput { + s.KeyFingerprint = &v + return s +} + +// SetKeyMaterial sets the KeyMaterial field's value. +func (s *CreateKeyPairOutput) SetKeyMaterial(v string) *CreateKeyPairOutput { + s.KeyMaterial = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *CreateKeyPairOutput) SetKeyName(v string) *CreateKeyPairOutput { + s.KeyName = &v + return s +} + // Contains the parameters for CreateNatGateway. type CreateNatGatewayInput struct { _ struct{} `type:"structure"` @@ -17308,6 +18666,24 @@ func (s *CreateNatGatewayInput) Validate() error { return nil } +// SetAllocationId sets the AllocationId field's value. +func (s *CreateNatGatewayInput) SetAllocationId(v string) *CreateNatGatewayInput { + s.AllocationId = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateNatGatewayInput) SetClientToken(v string) *CreateNatGatewayInput { + s.ClientToken = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput { + s.SubnetId = &v + return s +} + // Contains the output of CreateNatGateway. type CreateNatGatewayOutput struct { _ struct{} `type:"structure"` @@ -17330,6 +18706,18 @@ func (s CreateNatGatewayOutput) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *CreateNatGatewayOutput) SetClientToken(v string) *CreateNatGatewayOutput { + s.ClientToken = &v + return s +} + +// SetNatGateway sets the NatGateway field's value. +func (s *CreateNatGatewayOutput) SetNatGateway(v *NatGateway) *CreateNatGatewayOutput { + s.NatGateway = v + return s +} + // Contains the parameters for CreateNetworkAclEntry. type CreateNetworkAclEntryInput struct { _ struct{} `type:"structure"` @@ -17376,8 +18764,8 @@ type CreateNetworkAclEntryInput struct { // The rule number for the entry (for example, 100). ACL entries are processed // in ascending order by rule number. // - // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 - // is reserved for internal use. + // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is + // reserved for internal use. // // RuleNumber is a required field RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"` @@ -17421,6 +18809,60 @@ func (s *CreateNetworkAclEntryInput) Validate() error { return nil } +// SetCidrBlock sets the CidrBlock field's value. +func (s *CreateNetworkAclEntryInput) SetCidrBlock(v string) *CreateNetworkAclEntryInput { + s.CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateNetworkAclEntryInput) SetDryRun(v bool) *CreateNetworkAclEntryInput { + s.DryRun = &v + return s +} + +// SetEgress sets the Egress field's value. +func (s *CreateNetworkAclEntryInput) SetEgress(v bool) *CreateNetworkAclEntryInput { + s.Egress = &v + return s +} + +// SetIcmpTypeCode sets the IcmpTypeCode field's value. +func (s *CreateNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *CreateNetworkAclEntryInput { + s.IcmpTypeCode = v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *CreateNetworkAclEntryInput) SetNetworkAclId(v string) *CreateNetworkAclEntryInput { + s.NetworkAclId = &v + return s +} + +// SetPortRange sets the PortRange field's value. +func (s *CreateNetworkAclEntryInput) SetPortRange(v *PortRange) *CreateNetworkAclEntryInput { + s.PortRange = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *CreateNetworkAclEntryInput) SetProtocol(v string) *CreateNetworkAclEntryInput { + s.Protocol = &v + return s +} + +// SetRuleAction sets the RuleAction field's value. +func (s *CreateNetworkAclEntryInput) SetRuleAction(v string) *CreateNetworkAclEntryInput { + s.RuleAction = &v + return s +} + +// SetRuleNumber sets the RuleNumber field's value. +func (s *CreateNetworkAclEntryInput) SetRuleNumber(v int64) *CreateNetworkAclEntryInput { + s.RuleNumber = &v + return s +} + type CreateNetworkAclEntryOutput struct { _ struct{} `type:"structure"` } @@ -17474,6 +18916,18 @@ func (s *CreateNetworkAclInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreateNetworkAclInput) SetDryRun(v bool) *CreateNetworkAclInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateNetworkAclInput) SetVpcId(v string) *CreateNetworkAclInput { + s.VpcId = &v + return s +} + // Contains the output of CreateNetworkAcl. type CreateNetworkAclOutput struct { _ struct{} `type:"structure"` @@ -17492,6 +18946,12 @@ func (s CreateNetworkAclOutput) GoString() string { return s.String() } +// SetNetworkAcl sets the NetworkAcl field's value. +func (s *CreateNetworkAclOutput) SetNetworkAcl(v *NetworkAcl) *CreateNetworkAclOutput { + s.NetworkAcl = v + return s +} + // Contains the parameters for CreateNetworkInterface. type CreateNetworkInterfaceInput struct { _ struct{} `type:"structure"` @@ -17522,9 +18982,9 @@ type CreateNetworkInterfaceInput struct { // IP addresses within the subnet range. You can't specify this option and specify // more than one private IP address using privateIpAddresses. // - // The number of IP addresses you can assign to a network interface varies - // by instance type. For more information, see Private IP Addresses Per ENI - // Per Instance Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) + // The number of IP addresses you can assign to a network interface varies by + // instance type. For more information, see Private IP Addresses Per ENI Per + // Instance Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) // in the Amazon Elastic Compute Cloud User Guide. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"` @@ -17567,6 +19027,48 @@ func (s *CreateNetworkInterfaceInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateNetworkInterfaceInput) SetDescription(v string) *CreateNetworkInterfaceInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateNetworkInterfaceInput) SetDryRun(v bool) *CreateNetworkInterfaceInput { + s.DryRun = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *CreateNetworkInterfaceInput) SetGroups(v []*string) *CreateNetworkInterfaceInput { + s.Groups = v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *CreateNetworkInterfaceInput) SetPrivateIpAddress(v string) *CreateNetworkInterfaceInput { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *CreateNetworkInterfaceInput) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *CreateNetworkInterfaceInput { + s.PrivateIpAddresses = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *CreateNetworkInterfaceInput) SetSecondaryPrivateIpAddressCount(v int64) *CreateNetworkInterfaceInput { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateNetworkInterfaceInput) SetSubnetId(v string) *CreateNetworkInterfaceInput { + s.SubnetId = &v + return s +} + // Contains the output of CreateNetworkInterface. type CreateNetworkInterfaceOutput struct { _ struct{} `type:"structure"` @@ -17585,6 +19087,12 @@ func (s CreateNetworkInterfaceOutput) GoString() string { return s.String() } +// SetNetworkInterface sets the NetworkInterface field's value. +func (s *CreateNetworkInterfaceOutput) SetNetworkInterface(v *NetworkInterface) *CreateNetworkInterfaceOutput { + s.NetworkInterface = v + return s +} + // Contains the parameters for CreatePlacementGroup. type CreatePlacementGroupInput struct { _ struct{} `type:"structure"` @@ -17634,6 +19142,24 @@ func (s *CreatePlacementGroupInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreatePlacementGroupInput) SetDryRun(v bool) *CreatePlacementGroupInput { + s.DryRun = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreatePlacementGroupInput) SetGroupName(v string) *CreatePlacementGroupInput { + s.GroupName = &v + return s +} + +// SetStrategy sets the Strategy field's value. +func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupInput { + s.Strategy = &v + return s +} + type CreatePlacementGroupOutput struct { _ struct{} `type:"structure"` } @@ -17711,6 +19237,30 @@ func (s *CreateReservedInstancesListingInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateReservedInstancesListingInput) SetClientToken(v string) *CreateReservedInstancesListingInput { + s.ClientToken = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *CreateReservedInstancesListingInput) SetInstanceCount(v int64) *CreateReservedInstancesListingInput { + s.InstanceCount = &v + return s +} + +// SetPriceSchedules sets the PriceSchedules field's value. +func (s *CreateReservedInstancesListingInput) SetPriceSchedules(v []*PriceScheduleSpecification) *CreateReservedInstancesListingInput { + s.PriceSchedules = v + return s +} + +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *CreateReservedInstancesListingInput) SetReservedInstancesId(v string) *CreateReservedInstancesListingInput { + s.ReservedInstancesId = &v + return s +} + // Contains the output of CreateReservedInstancesListing. type CreateReservedInstancesListingOutput struct { _ struct{} `type:"structure"` @@ -17729,6 +19279,12 @@ func (s CreateReservedInstancesListingOutput) GoString() string { return s.String() } +// SetReservedInstancesListings sets the ReservedInstancesListings field's value. +func (s *CreateReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CreateReservedInstancesListingOutput { + s.ReservedInstancesListings = v + return s +} + // Contains the parameters for CreateRoute. type CreateRouteInput struct { _ struct{} `type:"structure"` @@ -17794,6 +19350,54 @@ func (s *CreateRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *CreateRouteInput) SetDestinationCidrBlock(v string) *CreateRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateRouteInput) SetDryRun(v bool) *CreateRouteInput { + s.DryRun = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *CreateRouteInput) SetGatewayId(v string) *CreateRouteInput { + s.GatewayId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateRouteInput) SetInstanceId(v string) *CreateRouteInput { + s.InstanceId = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *CreateRouteInput) SetNatGatewayId(v string) *CreateRouteInput { + s.NatGatewayId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *CreateRouteInput) SetNetworkInterfaceId(v string) *CreateRouteInput { + s.NetworkInterfaceId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput { + s.RouteTableId = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput { + s.VpcPeeringConnectionId = &v + return s +} + // Contains the output of CreateRoute. type CreateRouteOutput struct { _ struct{} `type:"structure"` @@ -17812,6 +19416,12 @@ func (s CreateRouteOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *CreateRouteOutput) SetReturn(v bool) *CreateRouteOutput { + s.Return = &v + return s +} + // Contains the parameters for CreateRouteTable. type CreateRouteTableInput struct { _ struct{} `type:"structure"` @@ -17851,6 +19461,18 @@ func (s *CreateRouteTableInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreateRouteTableInput) SetDryRun(v bool) *CreateRouteTableInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateRouteTableInput) SetVpcId(v string) *CreateRouteTableInput { + s.VpcId = &v + return s +} + // Contains the output of CreateRouteTable. type CreateRouteTableOutput struct { _ struct{} `type:"structure"` @@ -17869,6 +19491,12 @@ func (s CreateRouteTableOutput) GoString() string { return s.String() } +// SetRouteTable sets the RouteTable field's value. +func (s *CreateRouteTableOutput) SetRouteTable(v *RouteTable) *CreateRouteTableOutput { + s.RouteTable = v + return s +} + // Contains the parameters for CreateSecurityGroup. type CreateSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -17931,6 +19559,30 @@ func (s *CreateSecurityGroupInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateSecurityGroupInput) SetDescription(v string) *CreateSecurityGroupInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSecurityGroupInput) SetDryRun(v bool) *CreateSecurityGroupInput { + s.DryRun = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreateSecurityGroupInput) SetGroupName(v string) *CreateSecurityGroupInput { + s.GroupName = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateSecurityGroupInput) SetVpcId(v string) *CreateSecurityGroupInput { + s.VpcId = &v + return s +} + // Contains the output of CreateSecurityGroup. type CreateSecurityGroupOutput struct { _ struct{} `type:"structure"` @@ -17949,6 +19601,12 @@ func (s CreateSecurityGroupOutput) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *CreateSecurityGroupOutput) SetGroupId(v string) *CreateSecurityGroupOutput { + s.GroupId = &v + return s +} + // Contains the parameters for CreateSnapshot. type CreateSnapshotInput struct { _ struct{} `type:"structure"` @@ -17991,6 +19649,24 @@ func (s *CreateSnapshotInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateSnapshotInput) SetDescription(v string) *CreateSnapshotInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSnapshotInput) SetDryRun(v bool) *CreateSnapshotInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *CreateSnapshotInput) SetVolumeId(v string) *CreateSnapshotInput { + s.VolumeId = &v + return s +} + // Contains the parameters for CreateSpotDatafeedSubscription. type CreateSpotDatafeedSubscriptionInput struct { _ struct{} `type:"structure"` @@ -18033,6 +19709,24 @@ func (s *CreateSpotDatafeedSubscriptionInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *CreateSpotDatafeedSubscriptionInput) SetBucket(v string) *CreateSpotDatafeedSubscriptionInput { + s.Bucket = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSpotDatafeedSubscriptionInput) SetDryRun(v bool) *CreateSpotDatafeedSubscriptionInput { + s.DryRun = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *CreateSpotDatafeedSubscriptionInput) SetPrefix(v string) *CreateSpotDatafeedSubscriptionInput { + s.Prefix = &v + return s +} + // Contains the output of CreateSpotDatafeedSubscription. type CreateSpotDatafeedSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -18051,14 +19745,20 @@ func (s CreateSpotDatafeedSubscriptionOutput) GoString() string { return s.String() } +// SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value. +func (s *CreateSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *CreateSpotDatafeedSubscriptionOutput { + s.SpotDatafeedSubscription = v + return s +} + // Contains the parameters for CreateSubnet. type CreateSubnetInput struct { _ struct{} `type:"structure"` // The Availability Zone for the subnet. // - // Default: AWS selects one for you. If you create more than one subnet in - // your VPC, we may not necessarily select a different zone for each subnet. + // Default: AWS selects one for you. If you create more than one subnet in your + // VPC, we may not necessarily select a different zone for each subnet. AvailabilityZone *string `type:"string"` // The network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. @@ -18104,6 +19804,30 @@ func (s *CreateSubnetInput) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateSubnetInput) SetAvailabilityZone(v string) *CreateSubnetInput { + s.AvailabilityZone = &v + return s +} + +// SetCidrBlock sets the CidrBlock field's value. +func (s *CreateSubnetInput) SetCidrBlock(v string) *CreateSubnetInput { + s.CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSubnetInput) SetDryRun(v bool) *CreateSubnetInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateSubnetInput) SetVpcId(v string) *CreateSubnetInput { + s.VpcId = &v + return s +} + // Contains the output of CreateSubnet. type CreateSubnetOutput struct { _ struct{} `type:"structure"` @@ -18122,6 +19846,12 @@ func (s CreateSubnetOutput) GoString() string { return s.String() } +// SetSubnet sets the Subnet field's value. +func (s *CreateSubnetOutput) SetSubnet(v *Subnet) *CreateSubnetOutput { + s.Subnet = v + return s +} + // Contains the parameters for CreateTags. type CreateTagsInput struct { _ struct{} `type:"structure"` @@ -18171,6 +19901,24 @@ func (s *CreateTagsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreateTagsInput) SetDryRun(v bool) *CreateTagsInput { + s.DryRun = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *CreateTagsInput) SetResources(v []*string) *CreateTagsInput { + s.Resources = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { + s.Tags = v + return s +} + type CreateTagsOutput struct { _ struct{} `type:"structure"` } @@ -18270,6 +20018,54 @@ func (s *CreateVolumeInput) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateVolumeInput) SetAvailabilityZone(v string) *CreateVolumeInput { + s.AvailabilityZone = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVolumeInput) SetDryRun(v bool) *CreateVolumeInput { + s.DryRun = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CreateVolumeInput) SetEncrypted(v bool) *CreateVolumeInput { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *CreateVolumeInput) SetIops(v int64) *CreateVolumeInput { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateVolumeInput) SetKmsKeyId(v string) *CreateVolumeInput { + s.KmsKeyId = &v + return s +} + +// SetSize sets the Size field's value. +func (s *CreateVolumeInput) SetSize(v int64) *CreateVolumeInput { + s.Size = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *CreateVolumeInput) SetSnapshotId(v string) *CreateVolumeInput { + s.SnapshotId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *CreateVolumeInput) SetVolumeType(v string) *CreateVolumeInput { + s.VolumeType = &v + return s +} + // Describes the user or group to be added or removed from the permissions for // a volume. type CreateVolumePermission struct { @@ -18294,6 +20090,18 @@ func (s CreateVolumePermission) GoString() string { return s.String() } +// SetGroup sets the Group field's value. +func (s *CreateVolumePermission) SetGroup(v string) *CreateVolumePermission { + s.Group = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *CreateVolumePermission) SetUserId(v string) *CreateVolumePermission { + s.UserId = &v + return s +} + // Describes modifications to the permissions for a volume. type CreateVolumePermissionModifications struct { _ struct{} `type:"structure"` @@ -18317,6 +20125,18 @@ func (s CreateVolumePermissionModifications) GoString() string { return s.String() } +// SetAdd sets the Add field's value. +func (s *CreateVolumePermissionModifications) SetAdd(v []*CreateVolumePermission) *CreateVolumePermissionModifications { + s.Add = v + return s +} + +// SetRemove sets the Remove field's value. +func (s *CreateVolumePermissionModifications) SetRemove(v []*CreateVolumePermission) *CreateVolumePermissionModifications { + s.Remove = v + return s +} + // Contains the parameters for CreateVpcEndpoint. type CreateVpcEndpointInput struct { _ struct{} `type:"structure"` @@ -18339,7 +20159,7 @@ type CreateVpcEndpointInput struct { // One or more route table IDs. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"` - // The AWS service name, in the form com.amazonaws.region.service . To get a + // The AWS service name, in the form com.amazonaws.region.service. To get a // list of available services, use the DescribeVpcEndpointServices request. // // ServiceName is a required field @@ -18377,6 +20197,42 @@ func (s *CreateVpcEndpointInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointInput) SetClientToken(v string) *CreateVpcEndpointInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcEndpointInput) SetDryRun(v bool) *CreateVpcEndpointInput { + s.DryRun = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreateVpcEndpointInput) SetPolicyDocument(v string) *CreateVpcEndpointInput { + s.PolicyDocument = &v + return s +} + +// SetRouteTableIds sets the RouteTableIds field's value. +func (s *CreateVpcEndpointInput) SetRouteTableIds(v []*string) *CreateVpcEndpointInput { + s.RouteTableIds = v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *CreateVpcEndpointInput) SetServiceName(v string) *CreateVpcEndpointInput { + s.ServiceName = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateVpcEndpointInput) SetVpcId(v string) *CreateVpcEndpointInput { + s.VpcId = &v + return s +} + // Contains the output of CreateVpcEndpoint. type CreateVpcEndpointOutput struct { _ struct{} `type:"structure"` @@ -18399,6 +20255,18 @@ func (s CreateVpcEndpointOutput) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointOutput) SetClientToken(v string) *CreateVpcEndpointOutput { + s.ClientToken = &v + return s +} + +// SetVpcEndpoint sets the VpcEndpoint field's value. +func (s *CreateVpcEndpointOutput) SetVpcEndpoint(v *VpcEndpoint) *CreateVpcEndpointOutput { + s.VpcEndpoint = v + return s +} + // Contains the parameters for CreateVpc. type CreateVpcInput struct { _ struct{} `type:"structure"` @@ -18420,7 +20288,7 @@ type CreateVpcInput struct { // as dedicated tenancy instances by default. You can only launch instances // with a tenancy of dedicated or host into a dedicated tenancy VPC. // - // Important: The host value cannot be used with this parameter. Use the default + // Important: The host value cannot be used with this parameter. Use the default // or dedicated values only. // // Default: default @@ -18450,6 +20318,24 @@ func (s *CreateVpcInput) Validate() error { return nil } +// SetCidrBlock sets the CidrBlock field's value. +func (s *CreateVpcInput) SetCidrBlock(v string) *CreateVpcInput { + s.CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcInput) SetDryRun(v bool) *CreateVpcInput { + s.DryRun = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput { + s.InstanceTenancy = &v + return s +} + // Contains the output of CreateVpc. type CreateVpcOutput struct { _ struct{} `type:"structure"` @@ -18468,6 +20354,12 @@ func (s CreateVpcOutput) GoString() string { return s.String() } +// SetVpc sets the Vpc field's value. +func (s *CreateVpcOutput) SetVpc(v *Vpc) *CreateVpcOutput { + s.Vpc = v + return s +} + // Contains the parameters for CreateVpcPeeringConnection. type CreateVpcPeeringConnectionInput struct { _ struct{} `type:"structure"` @@ -18500,6 +20392,30 @@ func (s CreateVpcPeeringConnectionInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcPeeringConnectionInput) SetDryRun(v bool) *CreateVpcPeeringConnectionInput { + s.DryRun = &v + return s +} + +// SetPeerOwnerId sets the PeerOwnerId field's value. +func (s *CreateVpcPeeringConnectionInput) SetPeerOwnerId(v string) *CreateVpcPeeringConnectionInput { + s.PeerOwnerId = &v + return s +} + +// SetPeerVpcId sets the PeerVpcId field's value. +func (s *CreateVpcPeeringConnectionInput) SetPeerVpcId(v string) *CreateVpcPeeringConnectionInput { + s.PeerVpcId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringConnectionInput { + s.VpcId = &v + return s +} + // Contains the output of CreateVpcPeeringConnection. type CreateVpcPeeringConnectionOutput struct { _ struct{} `type:"structure"` @@ -18518,6 +20434,12 @@ func (s CreateVpcPeeringConnectionOutput) GoString() string { return s.String() } +// SetVpcPeeringConnection sets the VpcPeeringConnection field's value. +func (s *CreateVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *CreateVpcPeeringConnectionOutput { + s.VpcPeeringConnection = v + return s +} + // Contains the parameters for CreateVpnConnection. type CreateVpnConnectionInput struct { _ struct{} `type:"structure"` @@ -18580,6 +20502,36 @@ func (s *CreateVpnConnectionInput) Validate() error { return nil } +// SetCustomerGatewayId sets the CustomerGatewayId field's value. +func (s *CreateVpnConnectionInput) SetCustomerGatewayId(v string) *CreateVpnConnectionInput { + s.CustomerGatewayId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpnConnectionInput) SetDryRun(v bool) *CreateVpnConnectionInput { + s.DryRun = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *CreateVpnConnectionInput) SetOptions(v *VpnConnectionOptionsSpecification) *CreateVpnConnectionInput { + s.Options = v + return s +} + +// SetType sets the Type field's value. +func (s *CreateVpnConnectionInput) SetType(v string) *CreateVpnConnectionInput { + s.Type = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *CreateVpnConnectionInput) SetVpnGatewayId(v string) *CreateVpnConnectionInput { + s.VpnGatewayId = &v + return s +} + // Contains the output of CreateVpnConnection. type CreateVpnConnectionOutput struct { _ struct{} `type:"structure"` @@ -18598,6 +20550,12 @@ func (s CreateVpnConnectionOutput) GoString() string { return s.String() } +// SetVpnConnection sets the VpnConnection field's value. +func (s *CreateVpnConnectionOutput) SetVpnConnection(v *VpnConnection) *CreateVpnConnectionOutput { + s.VpnConnection = v + return s +} + // Contains the parameters for CreateVpnConnectionRoute. type CreateVpnConnectionRouteInput struct { _ struct{} `type:"structure"` @@ -18639,6 +20597,18 @@ func (s *CreateVpnConnectionRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *CreateVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *CreateVpnConnectionRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetVpnConnectionId sets the VpnConnectionId field's value. +func (s *CreateVpnConnectionRouteInput) SetVpnConnectionId(v string) *CreateVpnConnectionRouteInput { + s.VpnConnectionId = &v + return s +} + type CreateVpnConnectionRouteOutput struct { _ struct{} `type:"structure"` } @@ -18695,6 +20665,24 @@ func (s *CreateVpnGatewayInput) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateVpnGatewayInput) SetAvailabilityZone(v string) *CreateVpnGatewayInput { + s.AvailabilityZone = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpnGatewayInput) SetDryRun(v bool) *CreateVpnGatewayInput { + s.DryRun = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateVpnGatewayInput) SetType(v string) *CreateVpnGatewayInput { + s.Type = &v + return s +} + // Contains the output of CreateVpnGateway. type CreateVpnGatewayOutput struct { _ struct{} `type:"structure"` @@ -18713,6 +20701,12 @@ func (s CreateVpnGatewayOutput) GoString() string { return s.String() } +// SetVpnGateway sets the VpnGateway field's value. +func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayOutput { + s.VpnGateway = v + return s +} + // Describes a customer gateway. type CustomerGateway struct { _ struct{} `type:"structure"` @@ -18748,6 +20742,42 @@ func (s CustomerGateway) GoString() string { return s.String() } +// SetBgpAsn sets the BgpAsn field's value. +func (s *CustomerGateway) SetBgpAsn(v string) *CustomerGateway { + s.BgpAsn = &v + return s +} + +// SetCustomerGatewayId sets the CustomerGatewayId field's value. +func (s *CustomerGateway) SetCustomerGatewayId(v string) *CustomerGateway { + s.CustomerGatewayId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *CustomerGateway) SetIpAddress(v string) *CustomerGateway { + s.IpAddress = &v + return s +} + +// SetState sets the State field's value. +func (s *CustomerGateway) SetState(v string) *CustomerGateway { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CustomerGateway) SetTags(v []*Tag) *CustomerGateway { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *CustomerGateway) SetType(v string) *CustomerGateway { + s.Type = &v + return s +} + // Contains the parameters for DeleteCustomerGateway. type DeleteCustomerGatewayInput struct { _ struct{} `type:"structure"` @@ -18787,6 +20817,18 @@ func (s *DeleteCustomerGatewayInput) Validate() error { return nil } +// SetCustomerGatewayId sets the CustomerGatewayId field's value. +func (s *DeleteCustomerGatewayInput) SetCustomerGatewayId(v string) *DeleteCustomerGatewayInput { + s.CustomerGatewayId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteCustomerGatewayInput) SetDryRun(v bool) *DeleteCustomerGatewayInput { + s.DryRun = &v + return s +} + type DeleteCustomerGatewayOutput struct { _ struct{} `type:"structure"` } @@ -18840,6 +20882,18 @@ func (s *DeleteDhcpOptionsInput) Validate() error { return nil } +// SetDhcpOptionsId sets the DhcpOptionsId field's value. +func (s *DeleteDhcpOptionsInput) SetDhcpOptionsId(v string) *DeleteDhcpOptionsInput { + s.DhcpOptionsId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteDhcpOptionsInput) SetDryRun(v bool) *DeleteDhcpOptionsInput { + s.DryRun = &v + return s +} + type DeleteDhcpOptionsOutput struct { _ struct{} `type:"structure"` } @@ -18887,6 +20941,12 @@ func (s *DeleteFlowLogsInput) Validate() error { return nil } +// SetFlowLogIds sets the FlowLogIds field's value. +func (s *DeleteFlowLogsInput) SetFlowLogIds(v []*string) *DeleteFlowLogsInput { + s.FlowLogIds = v + return s +} + // Contains the output of DeleteFlowLogs. type DeleteFlowLogsOutput struct { _ struct{} `type:"structure"` @@ -18905,6 +20965,12 @@ func (s DeleteFlowLogsOutput) GoString() string { return s.String() } +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *DeleteFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteFlowLogsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for DeleteInternetGateway. type DeleteInternetGatewayInput struct { _ struct{} `type:"structure"` @@ -18944,6 +21010,18 @@ func (s *DeleteInternetGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteInternetGatewayInput) SetDryRun(v bool) *DeleteInternetGatewayInput { + s.DryRun = &v + return s +} + +// SetInternetGatewayId sets the InternetGatewayId field's value. +func (s *DeleteInternetGatewayInput) SetInternetGatewayId(v string) *DeleteInternetGatewayInput { + s.InternetGatewayId = &v + return s +} + type DeleteInternetGatewayOutput struct { _ struct{} `type:"structure"` } @@ -18997,6 +21075,18 @@ func (s *DeleteKeyPairInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteKeyPairInput) SetDryRun(v bool) *DeleteKeyPairInput { + s.DryRun = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *DeleteKeyPairInput) SetKeyName(v string) *DeleteKeyPairInput { + s.KeyName = &v + return s +} + type DeleteKeyPairOutput struct { _ struct{} `type:"structure"` } @@ -19044,6 +21134,12 @@ func (s *DeleteNatGatewayInput) Validate() error { return nil } +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *DeleteNatGatewayInput) SetNatGatewayId(v string) *DeleteNatGatewayInput { + s.NatGatewayId = &v + return s +} + // Contains the output of DeleteNatGateway. type DeleteNatGatewayOutput struct { _ struct{} `type:"structure"` @@ -19062,6 +21158,12 @@ func (s DeleteNatGatewayOutput) GoString() string { return s.String() } +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *DeleteNatGatewayOutput) SetNatGatewayId(v string) *DeleteNatGatewayOutput { + s.NatGatewayId = &v + return s +} + // Contains the parameters for DeleteNetworkAclEntry. type DeleteNetworkAclEntryInput struct { _ struct{} `type:"structure"` @@ -19117,6 +21219,30 @@ func (s *DeleteNetworkAclEntryInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteNetworkAclEntryInput) SetDryRun(v bool) *DeleteNetworkAclEntryInput { + s.DryRun = &v + return s +} + +// SetEgress sets the Egress field's value. +func (s *DeleteNetworkAclEntryInput) SetEgress(v bool) *DeleteNetworkAclEntryInput { + s.Egress = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *DeleteNetworkAclEntryInput) SetNetworkAclId(v string) *DeleteNetworkAclEntryInput { + s.NetworkAclId = &v + return s +} + +// SetRuleNumber sets the RuleNumber field's value. +func (s *DeleteNetworkAclEntryInput) SetRuleNumber(v int64) *DeleteNetworkAclEntryInput { + s.RuleNumber = &v + return s +} + type DeleteNetworkAclEntryOutput struct { _ struct{} `type:"structure"` } @@ -19170,6 +21296,18 @@ func (s *DeleteNetworkAclInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteNetworkAclInput) SetDryRun(v bool) *DeleteNetworkAclInput { + s.DryRun = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *DeleteNetworkAclInput) SetNetworkAclId(v string) *DeleteNetworkAclInput { + s.NetworkAclId = &v + return s +} + type DeleteNetworkAclOutput struct { _ struct{} `type:"structure"` } @@ -19223,6 +21361,18 @@ func (s *DeleteNetworkInterfaceInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteNetworkInterfaceInput) SetDryRun(v bool) *DeleteNetworkInterfaceInput { + s.DryRun = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *DeleteNetworkInterfaceInput) SetNetworkInterfaceId(v string) *DeleteNetworkInterfaceInput { + s.NetworkInterfaceId = &v + return s +} + type DeleteNetworkInterfaceOutput struct { _ struct{} `type:"structure"` } @@ -19276,6 +21426,18 @@ func (s *DeletePlacementGroupInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeletePlacementGroupInput) SetDryRun(v bool) *DeletePlacementGroupInput { + s.DryRun = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *DeletePlacementGroupInput) SetGroupName(v string) *DeletePlacementGroupInput { + s.GroupName = &v + return s +} + type DeletePlacementGroupOutput struct { _ struct{} `type:"structure"` } @@ -19338,6 +21500,24 @@ func (s *DeleteRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *DeleteRouteInput) SetDestinationCidrBlock(v string) *DeleteRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteRouteInput) SetDryRun(v bool) *DeleteRouteInput { + s.DryRun = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *DeleteRouteInput) SetRouteTableId(v string) *DeleteRouteInput { + s.RouteTableId = &v + return s +} + type DeleteRouteOutput struct { _ struct{} `type:"structure"` } @@ -19391,6 +21571,18 @@ func (s *DeleteRouteTableInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteRouteTableInput) SetDryRun(v bool) *DeleteRouteTableInput { + s.DryRun = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *DeleteRouteTableInput) SetRouteTableId(v string) *DeleteRouteTableInput { + s.RouteTableId = &v + return s +} + type DeleteRouteTableOutput struct { _ struct{} `type:"structure"` } @@ -19433,6 +21625,24 @@ func (s DeleteSecurityGroupInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DeleteSecurityGroupInput) SetDryRun(v bool) *DeleteSecurityGroupInput { + s.DryRun = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *DeleteSecurityGroupInput) SetGroupId(v string) *DeleteSecurityGroupInput { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *DeleteSecurityGroupInput) SetGroupName(v string) *DeleteSecurityGroupInput { + s.GroupName = &v + return s +} + type DeleteSecurityGroupOutput struct { _ struct{} `type:"structure"` } @@ -19486,6 +21696,18 @@ func (s *DeleteSnapshotInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteSnapshotInput) SetDryRun(v bool) *DeleteSnapshotInput { + s.DryRun = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput { + s.SnapshotId = &v + return s +} + type DeleteSnapshotOutput struct { _ struct{} `type:"structure"` } @@ -19521,6 +21743,12 @@ func (s DeleteSpotDatafeedSubscriptionInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DeleteSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DeleteSpotDatafeedSubscriptionInput { + s.DryRun = &v + return s +} + type DeleteSpotDatafeedSubscriptionOutput struct { _ struct{} `type:"structure"` } @@ -19574,6 +21802,18 @@ func (s *DeleteSubnetInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteSubnetInput) SetDryRun(v bool) *DeleteSubnetInput { + s.DryRun = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *DeleteSubnetInput) SetSubnetId(v string) *DeleteSubnetInput { + s.SubnetId = &v + return s +} + type DeleteSubnetOutput struct { _ struct{} `type:"structure"` } @@ -19633,6 +21873,24 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteTagsInput) SetDryRun(v bool) *DeleteTagsInput { + s.DryRun = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *DeleteTagsInput) SetResources(v []*string) *DeleteTagsInput { + s.Resources = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput { + s.Tags = v + return s +} + type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -19686,6 +21944,18 @@ func (s *DeleteVolumeInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVolumeInput) SetDryRun(v bool) *DeleteVolumeInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *DeleteVolumeInput) SetVolumeId(v string) *DeleteVolumeInput { + s.VolumeId = &v + return s +} + type DeleteVolumeOutput struct { _ struct{} `type:"structure"` } @@ -19739,6 +22009,18 @@ func (s *DeleteVpcEndpointsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpcEndpointsInput) SetDryRun(v bool) *DeleteVpcEndpointsInput { + s.DryRun = &v + return s +} + +// SetVpcEndpointIds sets the VpcEndpointIds field's value. +func (s *DeleteVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DeleteVpcEndpointsInput { + s.VpcEndpointIds = v + return s +} + // Contains the output of DeleteVpcEndpoints. type DeleteVpcEndpointsOutput struct { _ struct{} `type:"structure"` @@ -19757,6 +22039,12 @@ func (s DeleteVpcEndpointsOutput) GoString() string { return s.String() } +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *DeleteVpcEndpointsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for DeleteVpc. type DeleteVpcInput struct { _ struct{} `type:"structure"` @@ -19796,6 +22084,18 @@ func (s *DeleteVpcInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpcInput) SetDryRun(v bool) *DeleteVpcInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DeleteVpcInput) SetVpcId(v string) *DeleteVpcInput { + s.VpcId = &v + return s +} + type DeleteVpcOutput struct { _ struct{} `type:"structure"` } @@ -19849,6 +22149,18 @@ func (s *DeleteVpcPeeringConnectionInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpcPeeringConnectionInput) SetDryRun(v bool) *DeleteVpcPeeringConnectionInput { + s.DryRun = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *DeleteVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *DeleteVpcPeeringConnectionInput { + s.VpcPeeringConnectionId = &v + return s +} + // Contains the output of DeleteVpcPeeringConnection. type DeleteVpcPeeringConnectionOutput struct { _ struct{} `type:"structure"` @@ -19867,6 +22179,12 @@ func (s DeleteVpcPeeringConnectionOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *DeleteVpcPeeringConnectionOutput) SetReturn(v bool) *DeleteVpcPeeringConnectionOutput { + s.Return = &v + return s +} + // Contains the parameters for DeleteVpnConnection. type DeleteVpnConnectionInput struct { _ struct{} `type:"structure"` @@ -19906,6 +22224,18 @@ func (s *DeleteVpnConnectionInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpnConnectionInput) SetDryRun(v bool) *DeleteVpnConnectionInput { + s.DryRun = &v + return s +} + +// SetVpnConnectionId sets the VpnConnectionId field's value. +func (s *DeleteVpnConnectionInput) SetVpnConnectionId(v string) *DeleteVpnConnectionInput { + s.VpnConnectionId = &v + return s +} + type DeleteVpnConnectionOutput struct { _ struct{} `type:"structure"` } @@ -19961,6 +22291,18 @@ func (s *DeleteVpnConnectionRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *DeleteVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *DeleteVpnConnectionRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetVpnConnectionId sets the VpnConnectionId field's value. +func (s *DeleteVpnConnectionRouteInput) SetVpnConnectionId(v string) *DeleteVpnConnectionRouteInput { + s.VpnConnectionId = &v + return s +} + type DeleteVpnConnectionRouteOutput struct { _ struct{} `type:"structure"` } @@ -20014,6 +22356,18 @@ func (s *DeleteVpnGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpnGatewayInput) SetDryRun(v bool) *DeleteVpnGatewayInput { + s.DryRun = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *DeleteVpnGatewayInput) SetVpnGatewayId(v string) *DeleteVpnGatewayInput { + s.VpnGatewayId = &v + return s +} + type DeleteVpnGatewayOutput struct { _ struct{} `type:"structure"` } @@ -20067,6 +22421,18 @@ func (s *DeregisterImageInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeregisterImageInput) SetDryRun(v bool) *DeregisterImageInput { + s.DryRun = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *DeregisterImageInput) SetImageId(v string) *DeregisterImageInput { + s.ImageId = &v + return s +} + type DeregisterImageOutput struct { _ struct{} `type:"structure"` } @@ -20105,6 +22471,18 @@ func (s DescribeAccountAttributesInput) GoString() string { return s.String() } +// SetAttributeNames sets the AttributeNames field's value. +func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput { + s.AttributeNames = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeAccountAttributesInput) SetDryRun(v bool) *DescribeAccountAttributesInput { + s.DryRun = &v + return s +} + // Contains the output of DescribeAccountAttributes. type DescribeAccountAttributesOutput struct { _ struct{} `type:"structure"` @@ -20123,6 +22501,12 @@ func (s DescribeAccountAttributesOutput) GoString() string { return s.String() } +// SetAccountAttributes sets the AccountAttributes field's value. +func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput { + s.AccountAttributes = v + return s +} + // Contains the parameters for DescribeAddresses. type DescribeAddressesInput struct { _ struct{} `type:"structure"` @@ -20140,25 +22524,25 @@ type DescribeAddressesInput struct { // One or more filters. Filter names and values are case-sensitive. // - // allocation-id - [EC2-VPC] The allocation ID for the address. + // * allocation-id - [EC2-VPC] The allocation ID for the address. // - // association-id - [EC2-VPC] The association ID for the address. + // * association-id - [EC2-VPC] The association ID for the address. // - // domain - Indicates whether the address is for use in EC2-Classic (standard) - // or in a VPC (vpc). + // * domain - Indicates whether the address is for use in EC2-Classic (standard) + // or in a VPC (vpc). // - // instance-id - The ID of the instance the address is associated with, - // if any. + // * instance-id - The ID of the instance the address is associated with, + // if any. // - // network-interface-id - [EC2-VPC] The ID of the network interface that - // the address is associated with, if any. + // * network-interface-id - [EC2-VPC] The ID of the network interface that + // the address is associated with, if any. // - // network-interface-owner-id - The AWS account ID of the owner. + // * network-interface-owner-id - The AWS account ID of the owner. // - // private-ip-address - [EC2-VPC] The private IP address associated with - // the Elastic IP address. + // * private-ip-address - [EC2-VPC] The private IP address associated with + // the Elastic IP address. // - // public-ip - The Elastic IP address. + // * public-ip - The Elastic IP address. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // [EC2-Classic] One or more Elastic IP addresses. @@ -20177,6 +22561,30 @@ func (s DescribeAddressesInput) GoString() string { return s.String() } +// SetAllocationIds sets the AllocationIds field's value. +func (s *DescribeAddressesInput) SetAllocationIds(v []*string) *DescribeAddressesInput { + s.AllocationIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeAddressesInput) SetDryRun(v bool) *DescribeAddressesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeAddressesInput) SetFilters(v []*Filter) *DescribeAddressesInput { + s.Filters = v + return s +} + +// SetPublicIps sets the PublicIps field's value. +func (s *DescribeAddressesInput) SetPublicIps(v []*string) *DescribeAddressesInput { + s.PublicIps = v + return s +} + // Contains the output of DescribeAddresses. type DescribeAddressesOutput struct { _ struct{} `type:"structure"` @@ -20195,6 +22603,12 @@ func (s DescribeAddressesOutput) GoString() string { return s.String() } +// SetAddresses sets the Addresses field's value. +func (s *DescribeAddressesOutput) SetAddresses(v []*Address) *DescribeAddressesOutput { + s.Addresses = v + return s +} + // Contains the parameters for DescribeAvailabilityZones. type DescribeAvailabilityZonesInput struct { _ struct{} `type:"structure"` @@ -20207,15 +22621,15 @@ type DescribeAvailabilityZonesInput struct { // One or more filters. // - // message - Information about the Availability Zone. + // * message - Information about the Availability Zone. // - // region-name - The name of the region for the Availability Zone (for example, - // us-east-1). + // * region-name - The name of the region for the Availability Zone (for + // example, us-east-1). // - // state - The state of the Availability Zone (available | information | - // impaired | unavailable). + // * state - The state of the Availability Zone (available | information + // | impaired | unavailable). // - // zone-name - The name of the Availability Zone (for example, us-east-1a). + // * zone-name - The name of the Availability Zone (for example, us-east-1a). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The names of one or more Availability Zones. @@ -20232,6 +22646,24 @@ func (s DescribeAvailabilityZonesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeAvailabilityZonesInput) SetDryRun(v bool) *DescribeAvailabilityZonesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeAvailabilityZonesInput) SetFilters(v []*Filter) *DescribeAvailabilityZonesInput { + s.Filters = v + return s +} + +// SetZoneNames sets the ZoneNames field's value. +func (s *DescribeAvailabilityZonesInput) SetZoneNames(v []*string) *DescribeAvailabilityZonesInput { + s.ZoneNames = v + return s +} + // Contains the output of DescribeAvailabiltyZones. type DescribeAvailabilityZonesOutput struct { _ struct{} `type:"structure"` @@ -20250,6 +22682,12 @@ func (s DescribeAvailabilityZonesOutput) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DescribeAvailabilityZonesOutput) SetAvailabilityZones(v []*AvailabilityZone) *DescribeAvailabilityZonesOutput { + s.AvailabilityZones = v + return s +} + // Contains the parameters for DescribeBundleTasks. type DescribeBundleTasksInput struct { _ struct{} `type:"structure"` @@ -20267,27 +22705,27 @@ type DescribeBundleTasksInput struct { // One or more filters. // - // bundle-id - The ID of the bundle task. + // * bundle-id - The ID of the bundle task. // - // error-code - If the task failed, the error code returned. + // * error-code - If the task failed, the error code returned. // - // error-message - If the task failed, the error message returned. + // * error-message - If the task failed, the error message returned. // - // instance-id - The ID of the instance. + // * instance-id - The ID of the instance. // - // progress - The level of task completion, as a percentage (for example, - // 20%). + // * progress - The level of task completion, as a percentage (for example, + // 20%). // - // s3-bucket - The Amazon S3 bucket to store the AMI. + // * s3-bucket - The Amazon S3 bucket to store the AMI. // - // s3-prefix - The beginning of the AMI name. + // * s3-prefix - The beginning of the AMI name. // - // start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z). + // * start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z). // - // state - The state of the task (pending | waiting-for-shutdown | bundling - // | storing | cancelling | complete | failed). + // * state - The state of the task (pending | waiting-for-shutdown | bundling + // | storing | cancelling | complete | failed). // - // update-time - The time of the most recent update for the task. + // * update-time - The time of the most recent update for the task. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` } @@ -20301,6 +22739,24 @@ func (s DescribeBundleTasksInput) GoString() string { return s.String() } +// SetBundleIds sets the BundleIds field's value. +func (s *DescribeBundleTasksInput) SetBundleIds(v []*string) *DescribeBundleTasksInput { + s.BundleIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeBundleTasksInput) SetDryRun(v bool) *DescribeBundleTasksInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeBundleTasksInput) SetFilters(v []*Filter) *DescribeBundleTasksInput { + s.Filters = v + return s +} + // Contains the output of DescribeBundleTasks. type DescribeBundleTasksOutput struct { _ struct{} `type:"structure"` @@ -20319,6 +22775,12 @@ func (s DescribeBundleTasksOutput) GoString() string { return s.String() } +// SetBundleTasks sets the BundleTasks field's value. +func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBundleTasksOutput { + s.BundleTasks = v + return s +} + // Contains the parameters for DescribeClassicLinkInstances. type DescribeClassicLinkInstancesInput struct { _ struct{} `type:"structure"` @@ -20331,24 +22793,25 @@ type DescribeClassicLinkInstancesInput struct { // One or more filters. // - // group-id - The ID of a VPC security group that's associated with the - // instance. + // * group-id - The ID of a VPC security group that's associated with the + // instance. // - // instance-id - The ID of the instance. + // * instance-id - The ID of the instance. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-id - The ID of the VPC that the instance is linked to. + // * vpc-id - The ID of the VPC that the instance is linked to. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more instance IDs. Must be instances linked to a VPC through ClassicLink. @@ -20378,6 +22841,36 @@ func (s DescribeClassicLinkInstancesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeClassicLinkInstancesInput) SetDryRun(v bool) *DescribeClassicLinkInstancesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeClassicLinkInstancesInput) SetFilters(v []*Filter) *DescribeClassicLinkInstancesInput { + s.Filters = v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeClassicLinkInstancesInput) SetInstanceIds(v []*string) *DescribeClassicLinkInstancesInput { + s.InstanceIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeClassicLinkInstancesInput) SetMaxResults(v int64) *DescribeClassicLinkInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeClassicLinkInstancesInput) SetNextToken(v string) *DescribeClassicLinkInstancesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeClassicLinkInstances. type DescribeClassicLinkInstancesOutput struct { _ struct{} `type:"structure"` @@ -20400,6 +22893,18 @@ func (s DescribeClassicLinkInstancesOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *DescribeClassicLinkInstancesOutput) SetInstances(v []*ClassicLinkInstance) *DescribeClassicLinkInstancesOutput { + s.Instances = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeClassicLinkInstancesOutput) SetNextToken(v string) *DescribeClassicLinkInstancesOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeConversionTasks. type DescribeConversionTasksInput struct { _ struct{} `type:"structure"` @@ -20424,6 +22929,18 @@ func (s DescribeConversionTasksInput) GoString() string { return s.String() } +// SetConversionTaskIds sets the ConversionTaskIds field's value. +func (s *DescribeConversionTasksInput) SetConversionTaskIds(v []*string) *DescribeConversionTasksInput { + s.ConversionTaskIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeConversionTasksInput) SetDryRun(v bool) *DescribeConversionTasksInput { + s.DryRun = &v + return s +} + // Contains the output for DescribeConversionTasks. type DescribeConversionTasksOutput struct { _ struct{} `type:"structure"` @@ -20442,6 +22959,12 @@ func (s DescribeConversionTasksOutput) GoString() string { return s.String() } +// SetConversionTasks sets the ConversionTasks field's value. +func (s *DescribeConversionTasksOutput) SetConversionTasks(v []*ConversionTask) *DescribeConversionTasksOutput { + s.ConversionTasks = v + return s +} + // Contains the parameters for DescribeCustomerGateways. type DescribeCustomerGatewaysInput struct { _ struct{} `type:"structure"` @@ -20459,31 +22982,32 @@ type DescribeCustomerGatewaysInput struct { // One or more filters. // - // bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous - // System Number (ASN). + // * bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous + // System Number (ASN). // - // customer-gateway-id - The ID of the customer gateway. + // * customer-gateway-id - The ID of the customer gateway. // - // ip-address - The IP address of the customer gateway's Internet-routable - // external interface. + // * ip-address - The IP address of the customer gateway's Internet-routable + // external interface. // - // state - The state of the customer gateway (pending | available | deleting - // | deleted). + // * state - The state of the customer gateway (pending | available | deleting + // | deleted). // - // type - The type of customer gateway. Currently, the only supported type - // is ipsec.1. + // * type - The type of customer gateway. Currently, the only supported type + // is ipsec.1. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` } @@ -20497,6 +23021,24 @@ func (s DescribeCustomerGatewaysInput) GoString() string { return s.String() } +// SetCustomerGatewayIds sets the CustomerGatewayIds field's value. +func (s *DescribeCustomerGatewaysInput) SetCustomerGatewayIds(v []*string) *DescribeCustomerGatewaysInput { + s.CustomerGatewayIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeCustomerGatewaysInput) SetDryRun(v bool) *DescribeCustomerGatewaysInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeCustomerGatewaysInput) SetFilters(v []*Filter) *DescribeCustomerGatewaysInput { + s.Filters = v + return s +} + // Contains the output of DescribeCustomerGateways. type DescribeCustomerGatewaysOutput struct { _ struct{} `type:"structure"` @@ -20515,6 +23057,12 @@ func (s DescribeCustomerGatewaysOutput) GoString() string { return s.String() } +// SetCustomerGateways sets the CustomerGateways field's value. +func (s *DescribeCustomerGatewaysOutput) SetCustomerGateways(v []*CustomerGateway) *DescribeCustomerGatewaysOutput { + s.CustomerGateways = v + return s +} + // Contains the parameters for DescribeDhcpOptions. type DescribeDhcpOptionsInput struct { _ struct{} `type:"structure"` @@ -20532,23 +23080,24 @@ type DescribeDhcpOptionsInput struct { // One or more filters. // - // dhcp-options-id - The ID of a set of DHCP options. + // * dhcp-options-id - The ID of a set of DHCP options. // - // key - The key for one of the options (for example, domain-name). + // * key - The key for one of the options (for example, domain-name). // - // value - The value for one of the options. + // * value - The value for one of the options. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` } @@ -20562,6 +23111,24 @@ func (s DescribeDhcpOptionsInput) GoString() string { return s.String() } +// SetDhcpOptionsIds sets the DhcpOptionsIds field's value. +func (s *DescribeDhcpOptionsInput) SetDhcpOptionsIds(v []*string) *DescribeDhcpOptionsInput { + s.DhcpOptionsIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeDhcpOptionsInput) SetDryRun(v bool) *DescribeDhcpOptionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsInput { + s.Filters = v + return s +} + // Contains the output of DescribeDhcpOptions. type DescribeDhcpOptionsOutput struct { _ struct{} `type:"structure"` @@ -20580,6 +23147,12 @@ func (s DescribeDhcpOptionsOutput) GoString() string { return s.String() } +// SetDhcpOptions sets the DhcpOptions field's value. +func (s *DescribeDhcpOptionsOutput) SetDhcpOptions(v []*DhcpOptions) *DescribeDhcpOptionsOutput { + s.DhcpOptions = v + return s +} + // Contains the parameters for DescribeExportTasks. type DescribeExportTasksInput struct { _ struct{} `type:"structure"` @@ -20598,6 +23171,12 @@ func (s DescribeExportTasksInput) GoString() string { return s.String() } +// SetExportTaskIds sets the ExportTaskIds field's value. +func (s *DescribeExportTasksInput) SetExportTaskIds(v []*string) *DescribeExportTasksInput { + s.ExportTaskIds = v + return s +} + // Contains the output for DescribeExportTasks. type DescribeExportTasksOutput struct { _ struct{} `type:"structure"` @@ -20616,21 +23195,27 @@ func (s DescribeExportTasksOutput) GoString() string { return s.String() } +// SetExportTasks sets the ExportTasks field's value. +func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput { + s.ExportTasks = v + return s +} + // Contains the parameters for DescribeFlowLogs. type DescribeFlowLogsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // deliver-log-status - The status of the logs delivery (SUCCESS | FAILED). + // * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED). // - // flow-log-id - The ID of the flow log. + // * flow-log-id - The ID of the flow log. // - // log-group-name - The name of the log group. + // * log-group-name - The name of the log group. // - // resource-id - The ID of the VPC, subnet, or network interface. + // * resource-id - The ID of the VPC, subnet, or network interface. // - // traffic-type - The type of traffic (ACCEPT | REJECT | ALL) + // * traffic-type - The type of traffic (ACCEPT | REJECT | ALL) Filter []*Filter `locationNameList:"Filter" type:"list"` // One or more flow log IDs. @@ -20657,6 +23242,30 @@ func (s DescribeFlowLogsInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeFlowLogsInput) SetFilter(v []*Filter) *DescribeFlowLogsInput { + s.Filter = v + return s +} + +// SetFlowLogIds sets the FlowLogIds field's value. +func (s *DescribeFlowLogsInput) SetFlowLogIds(v []*string) *DescribeFlowLogsInput { + s.FlowLogIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeFlowLogsInput) SetMaxResults(v int64) *DescribeFlowLogsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFlowLogsInput) SetNextToken(v string) *DescribeFlowLogsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeFlowLogs. type DescribeFlowLogsOutput struct { _ struct{} `type:"structure"` @@ -20679,15 +23288,27 @@ func (s DescribeFlowLogsOutput) GoString() string { return s.String() } +// SetFlowLogs sets the FlowLogs field's value. +func (s *DescribeFlowLogsOutput) SetFlowLogs(v []*FlowLog) *DescribeFlowLogsOutput { + s.FlowLogs = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFlowLogsOutput) SetNextToken(v string) *DescribeFlowLogsOutput { + s.NextToken = &v + return s +} + type DescribeHostReservationOfferingsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // instance-family - The instance family of the offering (e.g., m4). + // * instance-family - The instance family of the offering (e.g., m4). // - // payment-option - The payment option (No Upfront | Partial Upfront | All - // Upfront). + // * payment-option - The payment option (No Upfront | Partial Upfront | + // All Upfront). Filter []*Filter `locationNameList:"Filter" type:"list"` // This is the maximum duration of the reservation you'd like to purchase, specified @@ -20727,6 +23348,42 @@ func (s DescribeHostReservationOfferingsInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeHostReservationOfferingsInput) SetFilter(v []*Filter) *DescribeHostReservationOfferingsInput { + s.Filter = v + return s +} + +// SetMaxDuration sets the MaxDuration field's value. +func (s *DescribeHostReservationOfferingsInput) SetMaxDuration(v int64) *DescribeHostReservationOfferingsInput { + s.MaxDuration = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeHostReservationOfferingsInput) SetMaxResults(v int64) *DescribeHostReservationOfferingsInput { + s.MaxResults = &v + return s +} + +// SetMinDuration sets the MinDuration field's value. +func (s *DescribeHostReservationOfferingsInput) SetMinDuration(v int64) *DescribeHostReservationOfferingsInput { + s.MinDuration = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostReservationOfferingsInput) SetNextToken(v string) *DescribeHostReservationOfferingsInput { + s.NextToken = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *DescribeHostReservationOfferingsInput) SetOfferingId(v string) *DescribeHostReservationOfferingsInput { + s.OfferingId = &v + return s +} + type DescribeHostReservationOfferingsOutput struct { _ struct{} `type:"structure"` @@ -20748,18 +23405,30 @@ func (s DescribeHostReservationOfferingsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostReservationOfferingsOutput) SetNextToken(v string) *DescribeHostReservationOfferingsOutput { + s.NextToken = &v + return s +} + +// SetOfferingSet sets the OfferingSet field's value. +func (s *DescribeHostReservationOfferingsOutput) SetOfferingSet(v []*HostOffering) *DescribeHostReservationOfferingsOutput { + s.OfferingSet = v + return s +} + type DescribeHostReservationsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // instance-family - The instance family (e.g., m4). + // * instance-family - The instance family (e.g., m4). // - // payment-option - The payment option (No Upfront | Partial Upfront | All - // Upfront). + // * payment-option - The payment option (No Upfront | Partial Upfront | + // All Upfront). // - // state - The state of the reservation (payment-pending | payment-failed - // | active | retired). + // * state - The state of the reservation (payment-pending | payment-failed + // | active | retired). Filter []*Filter `locationNameList:"Filter" type:"list"` // One or more host reservation IDs. @@ -20785,6 +23454,30 @@ func (s DescribeHostReservationsInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeHostReservationsInput) SetFilter(v []*Filter) *DescribeHostReservationsInput { + s.Filter = v + return s +} + +// SetHostReservationIdSet sets the HostReservationIdSet field's value. +func (s *DescribeHostReservationsInput) SetHostReservationIdSet(v []*string) *DescribeHostReservationsInput { + s.HostReservationIdSet = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeHostReservationsInput) SetMaxResults(v int64) *DescribeHostReservationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostReservationsInput) SetNextToken(v string) *DescribeHostReservationsInput { + s.NextToken = &v + return s +} + type DescribeHostReservationsOutput struct { _ struct{} `type:"structure"` @@ -20806,27 +23499,39 @@ func (s DescribeHostReservationsOutput) GoString() string { return s.String() } +// SetHostReservationSet sets the HostReservationSet field's value. +func (s *DescribeHostReservationsOutput) SetHostReservationSet(v []*HostReservation) *DescribeHostReservationsOutput { + s.HostReservationSet = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostReservationsOutput) SetNextToken(v string) *DescribeHostReservationsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeHosts. type DescribeHostsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // instance-type - The instance type size that the Dedicated Host is configured - // to support. + // * instance-type - The instance type size that the Dedicated Host is configured + // to support. // - // auto-placement - Whether auto-placement is enabled or disabled (on | - // off). + // * auto-placement - Whether auto-placement is enabled or disabled (on | + // off). // - // host-reservation-id - The ID of the reservation assigned to this host. + // * host-reservation-id - The ID of the reservation assigned to this host. // - // client-token - The idempotency token you provided when you launched the - // instance + // * client-token - The idempotency token you provided when you launched + // the instance // - // state- The allocation state of the Dedicated Host (available | under-assessment - // | permanent-failure | released | released-permanent-failure). + // * state- The allocation state of the Dedicated Host (available | under-assessment + // | permanent-failure | released | released-permanent-failure). // - // availability-zone - The Availability Zone of the host. + // * availability-zone - The Availability Zone of the host. Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"` // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches. @@ -20853,6 +23558,30 @@ func (s DescribeHostsInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeHostsInput) SetFilter(v []*Filter) *DescribeHostsInput { + s.Filter = v + return s +} + +// SetHostIds sets the HostIds field's value. +func (s *DescribeHostsInput) SetHostIds(v []*string) *DescribeHostsInput { + s.HostIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeHostsInput) SetMaxResults(v int64) *DescribeHostsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostsInput) SetNextToken(v string) *DescribeHostsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeHosts. type DescribeHostsOutput struct { _ struct{} `type:"structure"` @@ -20875,6 +23604,18 @@ func (s DescribeHostsOutput) GoString() string { return s.String() } +// SetHosts sets the Hosts field's value. +func (s *DescribeHostsOutput) SetHosts(v []*Host) *DescribeHostsOutput { + s.Hosts = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostsOutput) SetNextToken(v string) *DescribeHostsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeIdFormat. type DescribeIdFormatInput struct { _ struct{} `type:"structure"` @@ -20893,6 +23634,12 @@ func (s DescribeIdFormatInput) GoString() string { return s.String() } +// SetResource sets the Resource field's value. +func (s *DescribeIdFormatInput) SetResource(v string) *DescribeIdFormatInput { + s.Resource = &v + return s +} + // Contains the output of DescribeIdFormat. type DescribeIdFormatOutput struct { _ struct{} `type:"structure"` @@ -20911,6 +23658,12 @@ func (s DescribeIdFormatOutput) GoString() string { return s.String() } +// SetStatuses sets the Statuses field's value. +func (s *DescribeIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdFormatOutput { + s.Statuses = v + return s +} + // Contains the parameters for DescribeIdentityIdFormat. type DescribeIdentityIdFormatInput struct { _ struct{} `type:"structure"` @@ -20948,6 +23701,18 @@ func (s *DescribeIdentityIdFormatInput) Validate() error { return nil } +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *DescribeIdentityIdFormatInput) SetPrincipalArn(v string) *DescribeIdentityIdFormatInput { + s.PrincipalArn = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *DescribeIdentityIdFormatInput) SetResource(v string) *DescribeIdentityIdFormatInput { + s.Resource = &v + return s +} + // Contains the output of DescribeIdentityIdFormat. type DescribeIdentityIdFormatOutput struct { _ struct{} `type:"structure"` @@ -20966,13 +23731,19 @@ func (s DescribeIdentityIdFormatOutput) GoString() string { return s.String() } +// SetStatuses sets the Statuses field's value. +func (s *DescribeIdentityIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdentityIdFormatOutput { + s.Statuses = v + return s +} + // Contains the parameters for DescribeImageAttribute. type DescribeImageAttributeInput struct { _ struct{} `type:"structure"` // The AMI attribute. // - // Note: Depending on your account privileges, the blockDeviceMapping attribute + // Note: Depending on your account privileges, the blockDeviceMapping attribute // may return a Client.AuthFailure error. If this happens, use DescribeImages // to get information about the block device mapping for the AMI. // @@ -21017,6 +23788,24 @@ func (s *DescribeImageAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeImageAttributeInput) SetAttribute(v string) *DescribeImageAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeImageAttributeInput) SetDryRun(v bool) *DescribeImageAttributeInput { + s.DryRun = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *DescribeImageAttributeInput) SetImageId(v string) *DescribeImageAttributeInput { + s.ImageId = &v + return s +} + // Describes an image attribute. type DescribeImageAttributeOutput struct { _ struct{} `type:"structure"` @@ -21057,6 +23846,54 @@ func (s DescribeImageAttributeOutput) GoString() string { return s.String() } +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *DescribeImageAttributeOutput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *DescribeImageAttributeOutput { + s.BlockDeviceMappings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeImageAttributeOutput) SetDescription(v *AttributeValue) *DescribeImageAttributeOutput { + s.Description = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *DescribeImageAttributeOutput) SetImageId(v string) *DescribeImageAttributeOutput { + s.ImageId = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *DescribeImageAttributeOutput) SetKernelId(v *AttributeValue) *DescribeImageAttributeOutput { + s.KernelId = v + return s +} + +// SetLaunchPermissions sets the LaunchPermissions field's value. +func (s *DescribeImageAttributeOutput) SetLaunchPermissions(v []*LaunchPermission) *DescribeImageAttributeOutput { + s.LaunchPermissions = v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *DescribeImageAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeImageAttributeOutput { + s.ProductCodes = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *DescribeImageAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeImageAttributeOutput { + s.RamdiskId = v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *DescribeImageAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeImageAttributeOutput { + s.SriovNetSupport = v + return s +} + // Contains the parameters for DescribeImages. type DescribeImagesInput struct { _ struct{} `type:"structure"` @@ -21073,76 +23910,78 @@ type DescribeImagesInput struct { // One or more filters. // - // architecture - The image architecture (i386 | x86_64). + // * architecture - The image architecture (i386 | x86_64). // - // block-device-mapping.delete-on-termination - A Boolean value that indicates - // whether the Amazon EBS volume is deleted on instance termination. + // * block-device-mapping.delete-on-termination - A Boolean value that indicates + // whether the Amazon EBS volume is deleted on instance termination. // - // block-device-mapping.device-name - The device name for the EBS volume - // (for example, /dev/sdh). + // * block-device-mapping.device-name - The device name for the EBS volume + // (for example, /dev/sdh). // - // block-device-mapping.snapshot-id - The ID of the snapshot used for the - // EBS volume. + // * block-device-mapping.snapshot-id - The ID of the snapshot used for the + // EBS volume. // - // block-device-mapping.volume-size - The volume size of the EBS volume, - // in GiB. + // * block-device-mapping.volume-size - The volume size of the EBS volume, + // in GiB. // - // block-device-mapping.volume-type - The volume type of the EBS volume - // (gp2 | io1 | st1 | sc1 | standard). + // * block-device-mapping.volume-type - The volume type of the EBS volume + // (gp2 | io1 | st1 | sc1 | standard). // - // description - The description of the image (provided during image creation). + // * description - The description of the image (provided during image creation). // - // hypervisor - The hypervisor type (ovm | xen). + // * hypervisor - The hypervisor type (ovm | xen). // - // image-id - The ID of the image. + // * image-id - The ID of the image. // - // image-type - The image type (machine | kernel | ramdisk). + // * image-type - The image type (machine | kernel | ramdisk). // - // is-public - A Boolean that indicates whether the image is public. + // * is-public - A Boolean that indicates whether the image is public. // - // kernel-id - The kernel ID. + // * kernel-id - The kernel ID. // - // manifest-location - The location of the image manifest. + // * manifest-location - The location of the image manifest. // - // name - The name of the AMI (provided during image creation). + // * name - The name of the AMI (provided during image creation). // - // owner-alias - String value from an Amazon-maintained list (amazon | aws-marketplace - // | microsoft) of snapshot owners. Not to be confused with the user-configured - // AWS account alias, which is set from the IAM console. + // * owner-alias - String value from an Amazon-maintained list (amazon | + // aws-marketplace | microsoft) of snapshot owners. Not to be confused with + // the user-configured AWS account alias, which is set from the IAM console. // - // owner-id - The AWS account ID of the image owner. + // * owner-id - The AWS account ID of the image owner. // - // platform - The platform. To only list Windows-based AMIs, use windows. + // * platform - The platform. To only list Windows-based AMIs, use windows. // - // product-code - The product code. + // * product-code - The product code. // - // product-code.type - The type of the product code (devpay | marketplace). + // * product-code.type - The type of the product code (devpay | marketplace). // - // ramdisk-id - The RAM disk ID. + // * ramdisk-id - The RAM disk ID. // - // root-device-name - The name of the root device volume (for example, /dev/sda1). + // * root-device-name - The name of the root device volume (for example, + // /dev/sda1). // - // root-device-type - The type of the root device volume (ebs | instance-store). + // * root-device-type - The type of the root device volume (ebs | instance-store). // - // state - The state of the image (available | pending | failed). + // * state - The state of the image (available | pending | failed). // - // state-reason-code - The reason code for the state change. + // * state-reason-code - The reason code for the state change. // - // state-reason-message - The message for the state change. + // * state-reason-message - The message for the state change. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // virtualization-type - The virtualization type (paravirtual | hvm). + // * virtualization-type - The virtualization type (paravirtual | hvm). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more image IDs. @@ -21167,6 +24006,36 @@ func (s DescribeImagesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeImagesInput) SetDryRun(v bool) *DescribeImagesInput { + s.DryRun = &v + return s +} + +// SetExecutableUsers sets the ExecutableUsers field's value. +func (s *DescribeImagesInput) SetExecutableUsers(v []*string) *DescribeImagesInput { + s.ExecutableUsers = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput { + s.Filters = v + return s +} + +// SetImageIds sets the ImageIds field's value. +func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput { + s.ImageIds = v + return s +} + +// SetOwners sets the Owners field's value. +func (s *DescribeImagesInput) SetOwners(v []*string) *DescribeImagesInput { + s.Owners = v + return s +} + // Contains the output of DescribeImages. type DescribeImagesOutput struct { _ struct{} `type:"structure"` @@ -21185,6 +24054,12 @@ func (s DescribeImagesOutput) GoString() string { return s.String() } +// SetImages sets the Images field's value. +func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput { + s.Images = v + return s +} + // Contains the parameters for DescribeImportImageTasks. type DescribeImportImageTasksInput struct { _ struct{} `type:"structure"` @@ -21220,6 +24095,36 @@ func (s DescribeImportImageTasksInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeImportImageTasksInput) SetDryRun(v bool) *DescribeImportImageTasksInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeImportImageTasksInput) SetFilters(v []*Filter) *DescribeImportImageTasksInput { + s.Filters = v + return s +} + +// SetImportTaskIds sets the ImportTaskIds field's value. +func (s *DescribeImportImageTasksInput) SetImportTaskIds(v []*string) *DescribeImportImageTasksInput { + s.ImportTaskIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeImportImageTasksInput) SetMaxResults(v int64) *DescribeImportImageTasksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImportImageTasksInput) SetNextToken(v string) *DescribeImportImageTasksInput { + s.NextToken = &v + return s +} + // Contains the output for DescribeImportImageTasks. type DescribeImportImageTasksOutput struct { _ struct{} `type:"structure"` @@ -21243,6 +24148,18 @@ func (s DescribeImportImageTasksOutput) GoString() string { return s.String() } +// SetImportImageTasks sets the ImportImageTasks field's value. +func (s *DescribeImportImageTasksOutput) SetImportImageTasks(v []*ImportImageTask) *DescribeImportImageTasksOutput { + s.ImportImageTasks = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImportImageTasksOutput) SetNextToken(v string) *DescribeImportImageTasksOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeImportSnapshotTasks. type DescribeImportSnapshotTasksInput struct { _ struct{} `type:"structure"` @@ -21277,6 +24194,36 @@ func (s DescribeImportSnapshotTasksInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeImportSnapshotTasksInput) SetDryRun(v bool) *DescribeImportSnapshotTasksInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeImportSnapshotTasksInput) SetFilters(v []*Filter) *DescribeImportSnapshotTasksInput { + s.Filters = v + return s +} + +// SetImportTaskIds sets the ImportTaskIds field's value. +func (s *DescribeImportSnapshotTasksInput) SetImportTaskIds(v []*string) *DescribeImportSnapshotTasksInput { + s.ImportTaskIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeImportSnapshotTasksInput) SetMaxResults(v int64) *DescribeImportSnapshotTasksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImportSnapshotTasksInput) SetNextToken(v string) *DescribeImportSnapshotTasksInput { + s.NextToken = &v + return s +} + // Contains the output for DescribeImportSnapshotTasks. type DescribeImportSnapshotTasksOutput struct { _ struct{} `type:"structure"` @@ -21300,6 +24247,18 @@ func (s DescribeImportSnapshotTasksOutput) GoString() string { return s.String() } +// SetImportSnapshotTasks sets the ImportSnapshotTasks field's value. +func (s *DescribeImportSnapshotTasksOutput) SetImportSnapshotTasks(v []*ImportSnapshotTask) *DescribeImportSnapshotTasksOutput { + s.ImportSnapshotTasks = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImportSnapshotTasksOutput) SetNextToken(v string) *DescribeImportSnapshotTasksOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeInstanceAttribute. type DescribeInstanceAttributeInput struct { _ struct{} `type:"structure"` @@ -21349,6 +24308,24 @@ func (s *DescribeInstanceAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeInstanceAttributeInput) SetAttribute(v string) *DescribeInstanceAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeInstanceAttributeInput) SetDryRun(v bool) *DescribeInstanceAttributeInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstanceAttributeInput) SetInstanceId(v string) *DescribeInstanceAttributeInput { + s.InstanceId = &v + return s +} + // Describes an instance attribute. type DescribeInstanceAttributeOutput struct { _ struct{} `type:"structure"` @@ -21414,6 +24391,96 @@ func (s DescribeInstanceAttributeOutput) GoString() string { return s.String() } +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *DescribeInstanceAttributeOutput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *DescribeInstanceAttributeOutput { + s.BlockDeviceMappings = v + return s +} + +// SetDisableApiTermination sets the DisableApiTermination field's value. +func (s *DescribeInstanceAttributeOutput) SetDisableApiTermination(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput { + s.DisableApiTermination = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *DescribeInstanceAttributeOutput) SetEbsOptimized(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput { + s.EbsOptimized = v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *DescribeInstanceAttributeOutput) SetEnaSupport(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput { + s.EnaSupport = v + return s +} + +// SetGroups sets the Groups field's value. +func (s *DescribeInstanceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeInstanceAttributeOutput { + s.Groups = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstanceAttributeOutput) SetInstanceId(v string) *DescribeInstanceAttributeOutput { + s.InstanceId = &v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *DescribeInstanceAttributeOutput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.InstanceInitiatedShutdownBehavior = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeInstanceAttributeOutput) SetInstanceType(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.InstanceType = v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *DescribeInstanceAttributeOutput) SetKernelId(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.KernelId = v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *DescribeInstanceAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeInstanceAttributeOutput { + s.ProductCodes = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *DescribeInstanceAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.RamdiskId = v + return s +} + +// SetRootDeviceName sets the RootDeviceName field's value. +func (s *DescribeInstanceAttributeOutput) SetRootDeviceName(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.RootDeviceName = v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *DescribeInstanceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput { + s.SourceDestCheck = v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *DescribeInstanceAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.SriovNetSupport = v + return s +} + +// SetUserData sets the UserData field's value. +func (s *DescribeInstanceAttributeOutput) SetUserData(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.UserData = v + return s +} + // Contains the parameters for DescribeInstanceStatus. type DescribeInstanceStatusInput struct { _ struct{} `type:"structure"` @@ -21426,39 +24493,39 @@ type DescribeInstanceStatusInput struct { // One or more filters. // - // availability-zone - The Availability Zone of the instance. + // * availability-zone - The Availability Zone of the instance. // - // event.code - The code for the scheduled event (instance-reboot | system-reboot - // | system-maintenance | instance-retirement | instance-stop). + // * event.code - The code for the scheduled event (instance-reboot | system-reboot + // | system-maintenance | instance-retirement | instance-stop). // - // event.description - A description of the event. + // * event.description - A description of the event. // - // event.not-after - The latest end time for the scheduled event (for example, - // 2014-09-15T17:15:20.000Z). + // * event.not-after - The latest end time for the scheduled event (for example, + // 2014-09-15T17:15:20.000Z). // - // event.not-before - The earliest start time for the scheduled event (for - // example, 2014-09-15T17:15:20.000Z). + // * event.not-before - The earliest start time for the scheduled event (for + // example, 2014-09-15T17:15:20.000Z). // - // instance-state-code - The code for the instance state, as a 16-bit unsigned - // integer. The high byte is an opaque internal value and should be ignored. - // The low byte is set based on the state represented. The valid values are - // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), - // and 80 (stopped). + // * instance-state-code - The code for the instance state, as a 16-bit unsigned + // integer. The high byte is an opaque internal value and should be ignored. + // The low byte is set based on the state represented. The valid values are + // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), + // and 80 (stopped). // - // instance-state-name - The state of the instance (pending | running | - // shutting-down | terminated | stopping | stopped). + // * instance-state-name - The state of the instance (pending | running | + // shutting-down | terminated | stopping | stopped). // - // instance-status.reachability - Filters on instance status where the name - // is reachability (passed | failed | initializing | insufficient-data). + // * instance-status.reachability - Filters on instance status where the + // name is reachability (passed | failed | initializing | insufficient-data). // - // instance-status.status - The status of the instance (ok | impaired | - // initializing | insufficient-data | not-applicable). + // * instance-status.status - The status of the instance (ok | impaired | + // initializing | insufficient-data | not-applicable). // - // system-status.reachability - Filters on system status where the name - // is reachability (passed | failed | initializing | insufficient-data). + // * system-status.reachability - Filters on system status where the name + // is reachability (passed | failed | initializing | insufficient-data). // - // system-status.status - The system status of the instance (ok | impaired - // | initializing | insufficient-data | not-applicable). + // * system-status.status - The system status of the instance (ok | impaired + // | initializing | insufficient-data | not-applicable). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // When true, includes the health status for all instances. When false, includes @@ -21494,6 +24561,42 @@ func (s DescribeInstanceStatusInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeInstanceStatusInput) SetDryRun(v bool) *DescribeInstanceStatusInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInstanceStatusInput) SetFilters(v []*Filter) *DescribeInstanceStatusInput { + s.Filters = v + return s +} + +// SetIncludeAllInstances sets the IncludeAllInstances field's value. +func (s *DescribeInstanceStatusInput) SetIncludeAllInstances(v bool) *DescribeInstanceStatusInput { + s.IncludeAllInstances = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeInstanceStatusInput) SetInstanceIds(v []*string) *DescribeInstanceStatusInput { + s.InstanceIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstanceStatusInput) SetMaxResults(v int64) *DescribeInstanceStatusInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceStatusInput) SetNextToken(v string) *DescribeInstanceStatusInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeInstanceStatus. type DescribeInstanceStatusOutput struct { _ struct{} `type:"structure"` @@ -21516,6 +24619,18 @@ func (s DescribeInstanceStatusOutput) GoString() string { return s.String() } +// SetInstanceStatuses sets the InstanceStatuses field's value. +func (s *DescribeInstanceStatusOutput) SetInstanceStatuses(v []*InstanceStatus) *DescribeInstanceStatusOutput { + s.InstanceStatuses = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceStatusOutput) SetNextToken(v string) *DescribeInstanceStatusOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeInstances. type DescribeInstancesInput struct { _ struct{} `type:"structure"` @@ -21528,235 +24643,239 @@ type DescribeInstancesInput struct { // One or more filters. // - // affinity - The affinity setting for an instance running on a Dedicated - // Host (default | host). + // * affinity - The affinity setting for an instance running on a Dedicated + // Host (default | host). // - // architecture - The instance architecture (i386 | x86_64). + // * architecture - The instance architecture (i386 | x86_64). // - // availability-zone - The Availability Zone of the instance. + // * availability-zone - The Availability Zone of the instance. // - // block-device-mapping.attach-time - The attach time for an EBS volume - // mapped to the instance, for example, 2010-09-15T17:15:20.000Z. + // * block-device-mapping.attach-time - The attach time for an EBS volume + // mapped to the instance, for example, 2010-09-15T17:15:20.000Z. // - // block-device-mapping.delete-on-termination - A Boolean that indicates - // whether the EBS volume is deleted on instance termination. + // * block-device-mapping.delete-on-termination - A Boolean that indicates + // whether the EBS volume is deleted on instance termination. // - // block-device-mapping.device-name - The device name for the EBS volume - // (for example, /dev/sdh or xvdh). + // * block-device-mapping.device-name - The device name for the EBS volume + // (for example, /dev/sdh or xvdh). // - // block-device-mapping.status - The status for the EBS volume (attaching - // | attached | detaching | detached). + // * block-device-mapping.status - The status for the EBS volume (attaching + // | attached | detaching | detached). // - // block-device-mapping.volume-id - The volume ID of the EBS volume. + // * block-device-mapping.volume-id - The volume ID of the EBS volume. // - // client-token - The idempotency token you provided when you launched the - // instance. + // * client-token - The idempotency token you provided when you launched + // the instance. // - // dns-name - The public DNS name of the instance. + // * dns-name - The public DNS name of the instance. // - // group-id - The ID of the security group for the instance. EC2-Classic - // only. + // * group-id - The ID of the security group for the instance. EC2-Classic + // only. // - // group-name - The name of the security group for the instance. EC2-Classic - // only. + // * group-name - The name of the security group for the instance. EC2-Classic + // only. // - // host-id - The ID of the Dedicated Host on which the instance is running, - // if applicable. + // * host-id - The ID of the Dedicated Host on which the instance is running, + // if applicable. // - // hypervisor - The hypervisor type of the instance (ovm | xen). + // * hypervisor - The hypervisor type of the instance (ovm | xen). // - // iam-instance-profile.arn - The instance profile associated with the instance. - // Specified as an ARN. + // * iam-instance-profile.arn - The instance profile associated with the + // instance. Specified as an ARN. // - // image-id - The ID of the image used to launch the instance. + // * image-id - The ID of the image used to launch the instance. // - // instance-id - The ID of the instance. + // * instance-id - The ID of the instance. // - // instance-lifecycle - Indicates whether this is a Spot Instance or a Scheduled - // Instance (spot | scheduled). + // * instance-lifecycle - Indicates whether this is a Spot Instance or a + // Scheduled Instance (spot | scheduled). // - // instance-state-code - The state of the instance, as a 16-bit unsigned - // integer. The high byte is an opaque internal value and should be ignored. - // The low byte is set based on the state represented. The valid values are: - // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), - // and 80 (stopped). + // * instance-state-code - The state of the instance, as a 16-bit unsigned + // integer. The high byte is an opaque internal value and should be ignored. + // The low byte is set based on the state represented. The valid values are: + // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), + // and 80 (stopped). // - // instance-state-name - The state of the instance (pending | running | - // shutting-down | terminated | stopping | stopped). + // * instance-state-name - The state of the instance (pending | running | + // shutting-down | terminated | stopping | stopped). // - // instance-type - The type of instance (for example, t2.micro). + // * instance-type - The type of instance (for example, t2.micro). // - // instance.group-id - The ID of the security group for the instance. + // * instance.group-id - The ID of the security group for the instance. // - // instance.group-name - The name of the security group for the instance. + // * instance.group-name - The name of the security group for the instance. // - // ip-address - The public IP address of the instance. // - // kernel-id - The kernel ID. + // * ip-address - The public IP address of the instance. // - // key-name - The name of the key pair used when the instance was launched. + // * kernel-id - The kernel ID. // - // launch-index - When launching multiple instances, this is the index for - // the instance in the launch group (for example, 0, 1, 2, and so on). + // * key-name - The name of the key pair used when the instance was launched. // - // launch-time - The time when the instance was launched. + // * launch-index - When launching multiple instances, this is the index + // for the instance in the launch group (for example, 0, 1, 2, and so on). // - // monitoring-state - Indicates whether monitoring is enabled for the instance - // (disabled | enabled). // - // owner-id - The AWS account ID of the instance owner. + // * launch-time - The time when the instance was launched. // - // placement-group-name - The name of the placement group for the instance. + // * monitoring-state - Indicates whether monitoring is enabled for the instance + // (disabled | enabled). // - // platform - The platform. Use windows if you have Windows instances; otherwise, - // leave blank. + // * owner-id - The AWS account ID of the instance owner. // - // private-dns-name - The private DNS name of the instance. + // * placement-group-name - The name of the placement group for the instance. // - // private-ip-address - The private IP address of the instance. + // * platform - The platform. Use windows if you have Windows instances; + // otherwise, leave blank. // - // product-code - The product code associated with the AMI used to launch - // the instance. + // * private-dns-name - The private DNS name of the instance. // - // product-code.type - The type of product code (devpay | marketplace). + // * private-ip-address - The private IP address of the instance. // - // ramdisk-id - The RAM disk ID. + // * product-code - The product code associated with the AMI used to launch + // the instance. // - // reason - The reason for the current state of the instance (for example, - // shows "User Initiated [date]" when you stop or terminate the instance). Similar - // to the state-reason-code filter. + // * product-code.type - The type of product code (devpay | marketplace). // - // requester-id - The ID of the entity that launched the instance on your - // behalf (for example, AWS Management Console, Auto Scaling, and so on). + // * ramdisk-id - The RAM disk ID. // - // reservation-id - The ID of the instance's reservation. A reservation - // ID is created any time you launch an instance. A reservation ID has a one-to-one - // relationship with an instance launch request, but can be associated with - // more than one instance if you launch multiple instances using the same launch - // request. For example, if you launch one instance, you'll get one reservation - // ID. If you launch ten instances using the same launch request, you'll also - // get one reservation ID. + // * reason - The reason for the current state of the instance (for example, + // shows "User Initiated [date]" when you stop or terminate the instance). + // Similar to the state-reason-code filter. // - // root-device-name - The name of the root device for the instance (for - // example, /dev/sda1 or /dev/xvda). + // * requester-id - The ID of the entity that launched the instance on your + // behalf (for example, AWS Management Console, Auto Scaling, and so on). // - // root-device-type - The type of root device that the instance uses (ebs - // | instance-store). + // * reservation-id - The ID of the instance's reservation. A reservation + // ID is created any time you launch an instance. A reservation ID has a + // one-to-one relationship with an instance launch request, but can be associated + // with more than one instance if you launch multiple instances using the + // same launch request. For example, if you launch one instance, you'll get + // one reservation ID. If you launch ten instances using the same launch + // request, you'll also get one reservation ID. // - // source-dest-check - Indicates whether the instance performs source/destination - // checking. A value of true means that checking is enabled, and false means - // checking is disabled. The value must be false for the instance to perform - // network address translation (NAT) in your VPC. + // * root-device-name - The name of the root device for the instance (for + // example, /dev/sda1 or /dev/xvda). // - // spot-instance-request-id - The ID of the Spot instance request. + // * root-device-type - The type of root device that the instance uses (ebs + // | instance-store). // - // state-reason-code - The reason code for the state change. + // * source-dest-check - Indicates whether the instance performs source/destination + // checking. A value of true means that checking is enabled, and false means + // checking is disabled. The value must be false for the instance to perform + // network address translation (NAT) in your VPC. // - // state-reason-message - A message that describes the state change. + // * spot-instance-request-id - The ID of the Spot instance request. // - // subnet-id - The ID of the subnet for the instance. + // * state-reason-code - The reason code for the state change. // - // tag:key=value - The key/value combination of a tag assigned to the resource, - // where tag:key is the tag's key. + // * state-reason-message - A message that describes the state change. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * subnet-id - The ID of the subnet for the instance. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag:key=value - The key/value combination of a tag assigned to the resource, + // where tag:key is the tag's key. // - // tenancy - The tenancy of an instance (dedicated | default | host). + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // virtualization-type - The virtualization type of the instance (paravirtual - // | hvm). + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-id - The ID of the VPC that the instance is running in. + // * tenancy - The tenancy of an instance (dedicated | default | host). // - // network-interface.description - The description of the network interface. + // * virtualization-type - The virtualization type of the instance (paravirtual + // | hvm). // - // network-interface.subnet-id - The ID of the subnet for the network interface. + // * vpc-id - The ID of the VPC that the instance is running in. // - // network-interface.vpc-id - The ID of the VPC for the network interface. + // * network-interface.description - The description of the network interface. // - // network-interface.network-interface-id - The ID of the network interface. + // * network-interface.subnet-id - The ID of the subnet for the network interface. // - // network-interface.owner-id - The ID of the owner of the network interface. + // * network-interface.vpc-id - The ID of the VPC for the network interface. // - // network-interface.availability-zone - The Availability Zone for the network - // interface. + // * network-interface.network-interface-id - The ID of the network interface. // - // network-interface.requester-id - The requester ID for the network interface. + // * network-interface.owner-id - The ID of the owner of the network interface. // - // network-interface.requester-managed - Indicates whether the network interface - // is being managed by AWS. + // * network-interface.availability-zone - The Availability Zone for the + // network interface. // - // network-interface.status - The status of the network interface (available) - // | in-use). + // * network-interface.requester-id - The requester ID for the network interface. // - // network-interface.mac-address - The MAC address of the network interface. + // * network-interface.requester-managed - Indicates whether the network + // interface is being managed by AWS. // - // network-interface.private-dns-name - The private DNS name of the network - // interface. + // * network-interface.status - The status of the network interface (available) + // | in-use). // - // network-interface.source-dest-check - Whether the network interface performs - // source/destination checking. A value of true means checking is enabled, and - // false means checking is disabled. The value must be false for the network - // interface to perform network address translation (NAT) in your VPC. + // * network-interface.mac-address - The MAC address of the network interface. // - // network-interface.group-id - The ID of a security group associated with - // the network interface. + // * network-interface.private-dns-name - The private DNS name of the network + // interface. // - // network-interface.group-name - The name of a security group associated - // with the network interface. + // * network-interface.source-dest-check - Whether the network interface + // performs source/destination checking. A value of true means checking is + // enabled, and false means checking is disabled. The value must be false + // for the network interface to perform network address translation (NAT) + // in your VPC. // - // network-interface.attachment.attachment-id - The ID of the interface - // attachment. + // * network-interface.group-id - The ID of a security group associated with + // the network interface. // - // network-interface.attachment.instance-id - The ID of the instance to - // which the network interface is attached. + // * network-interface.group-name - The name of a security group associated + // with the network interface. // - // network-interface.attachment.instance-owner-id - The owner ID of the - // instance to which the network interface is attached. + // * network-interface.attachment.attachment-id - The ID of the interface + // attachment. // - // network-interface.addresses.private-ip-address - The private IP address - // associated with the network interface. + // * network-interface.attachment.instance-id - The ID of the instance to + // which the network interface is attached. // - // network-interface.attachment.device-index - The device index to which - // the network interface is attached. + // * network-interface.attachment.instance-owner-id - The owner ID of the + // instance to which the network interface is attached. // - // network-interface.attachment.status - The status of the attachment (attaching - // | attached | detaching | detached). + // * network-interface.addresses.private-ip-address - The private IP address + // associated with the network interface. // - // network-interface.attachment.attach-time - The time that the network - // interface was attached to an instance. + // * network-interface.attachment.device-index - The device index to which + // the network interface is attached. // - // network-interface.attachment.delete-on-termination - Specifies whether - // the attachment is deleted when an instance is terminated. + // * network-interface.attachment.status - The status of the attachment (attaching + // | attached | detaching | detached). // - // network-interface.addresses.primary - Specifies whether the IP address - // of the network interface is the primary private IP address. + // * network-interface.attachment.attach-time - The time that the network + // interface was attached to an instance. // - // network-interface.addresses.association.public-ip - The ID of the association - // of an Elastic IP address with a network interface. + // * network-interface.attachment.delete-on-termination - Specifies whether + // the attachment is deleted when an instance is terminated. // - // network-interface.addresses.association.ip-owner-id - The owner ID of - // the private IP address associated with the network interface. + // * network-interface.addresses.primary - Specifies whether the IP address + // of the network interface is the primary private IP address. // - // association.public-ip - The address of the Elastic IP address bound to - // the network interface. + // * network-interface.addresses.association.public-ip - The ID of the association + // of an Elastic IP address with a network interface. // - // association.ip-owner-id - The owner of the Elastic IP address associated - // with the network interface. + // * network-interface.addresses.association.ip-owner-id - The owner ID of + // the private IP address associated with the network interface. // - // association.allocation-id - The allocation ID returned when you allocated - // the Elastic IP address for your network interface. + // * association.public-ip - The address of the Elastic IP address bound + // to the network interface. // - // association.association-id - The association ID returned when the network - // interface was associated with an IP address. + // * association.ip-owner-id - The owner of the Elastic IP address associated + // with the network interface. + // + // * association.allocation-id - The allocation ID returned when you allocated + // the Elastic IP address for your network interface. + // + // * association.association-id - The association ID returned when the network + // interface was associated with an IP address. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more instance IDs. @@ -21784,6 +24903,36 @@ func (s DescribeInstancesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeInstancesInput) SetDryRun(v bool) *DescribeInstancesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput { + s.Filters = v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput { + s.InstanceIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstancesInput) SetMaxResults(v int64) *DescribeInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeInstances. type DescribeInstancesOutput struct { _ struct{} `type:"structure"` @@ -21806,6 +24955,18 @@ func (s DescribeInstancesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutput { + s.NextToken = &v + return s +} + +// SetReservations sets the Reservations field's value. +func (s *DescribeInstancesOutput) SetReservations(v []*Reservation) *DescribeInstancesOutput { + s.Reservations = v + return s +} + // Contains the parameters for DescribeInternetGateways. type DescribeInternetGatewaysInput struct { _ struct{} `type:"structure"` @@ -21818,24 +24979,25 @@ type DescribeInternetGatewaysInput struct { // One or more filters. // - // attachment.state - The current state of the attachment between the gateway - // and the VPC (available). Present only if a VPC is attached. + // * attachment.state - The current state of the attachment between the gateway + // and the VPC (available). Present only if a VPC is attached. // - // attachment.vpc-id - The ID of an attached VPC. + // * attachment.vpc-id - The ID of an attached VPC. // - // internet-gateway-id - The ID of the Internet gateway. + // * internet-gateway-id - The ID of the Internet gateway. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more Internet gateway IDs. @@ -21854,6 +25016,24 @@ func (s DescribeInternetGatewaysInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeInternetGatewaysInput) SetDryRun(v bool) *DescribeInternetGatewaysInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInternetGatewaysInput) SetFilters(v []*Filter) *DescribeInternetGatewaysInput { + s.Filters = v + return s +} + +// SetInternetGatewayIds sets the InternetGatewayIds field's value. +func (s *DescribeInternetGatewaysInput) SetInternetGatewayIds(v []*string) *DescribeInternetGatewaysInput { + s.InternetGatewayIds = v + return s +} + // Contains the output of DescribeInternetGateways. type DescribeInternetGatewaysOutput struct { _ struct{} `type:"structure"` @@ -21872,6 +25052,12 @@ func (s DescribeInternetGatewaysOutput) GoString() string { return s.String() } +// SetInternetGateways sets the InternetGateways field's value. +func (s *DescribeInternetGatewaysOutput) SetInternetGateways(v []*InternetGateway) *DescribeInternetGatewaysOutput { + s.InternetGateways = v + return s +} + // Contains the parameters for DescribeKeyPairs. type DescribeKeyPairsInput struct { _ struct{} `type:"structure"` @@ -21884,9 +25070,9 @@ type DescribeKeyPairsInput struct { // One or more filters. // - // fingerprint - The fingerprint of the key pair. + // * fingerprint - The fingerprint of the key pair. // - // key-name - The name of the key pair. + // * key-name - The name of the key pair. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more key pair names. @@ -21905,6 +25091,24 @@ func (s DescribeKeyPairsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeKeyPairsInput) SetDryRun(v bool) *DescribeKeyPairsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeKeyPairsInput) SetFilters(v []*Filter) *DescribeKeyPairsInput { + s.Filters = v + return s +} + +// SetKeyNames sets the KeyNames field's value. +func (s *DescribeKeyPairsInput) SetKeyNames(v []*string) *DescribeKeyPairsInput { + s.KeyNames = v + return s +} + // Contains the output of DescribeKeyPairs. type DescribeKeyPairsOutput struct { _ struct{} `type:"structure"` @@ -21923,6 +25127,12 @@ func (s DescribeKeyPairsOutput) GoString() string { return s.String() } +// SetKeyPairs sets the KeyPairs field's value. +func (s *DescribeKeyPairsOutput) SetKeyPairs(v []*KeyPairInfo) *DescribeKeyPairsOutput { + s.KeyPairs = v + return s +} + // Contains the parameters for DescribeMovingAddresses. type DescribeMovingAddressesInput struct { _ struct{} `type:"structure"` @@ -21935,7 +25145,8 @@ type DescribeMovingAddressesInput struct { // One or more filters. // - // moving-status - The status of the Elastic IP address (MovingToVpc | RestoringToClassic). + // * moving-status - The status of the Elastic IP address (MovingToVpc | + // RestoringToClassic). Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"` // The maximum number of results to return for the request in a single page. @@ -21963,6 +25174,36 @@ func (s DescribeMovingAddressesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeMovingAddressesInput) SetDryRun(v bool) *DescribeMovingAddressesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMovingAddressesInput) SetFilters(v []*Filter) *DescribeMovingAddressesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMovingAddressesInput) SetMaxResults(v int64) *DescribeMovingAddressesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMovingAddressesInput) SetNextToken(v string) *DescribeMovingAddressesInput { + s.NextToken = &v + return s +} + +// SetPublicIps sets the PublicIps field's value. +func (s *DescribeMovingAddressesInput) SetPublicIps(v []*string) *DescribeMovingAddressesInput { + s.PublicIps = v + return s +} + // Contains the output of DescribeMovingAddresses. type DescribeMovingAddressesOutput struct { _ struct{} `type:"structure"` @@ -21985,28 +25226,40 @@ func (s DescribeMovingAddressesOutput) GoString() string { return s.String() } +// SetMovingAddressStatuses sets the MovingAddressStatuses field's value. +func (s *DescribeMovingAddressesOutput) SetMovingAddressStatuses(v []*MovingAddressStatus) *DescribeMovingAddressesOutput { + s.MovingAddressStatuses = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMovingAddressesOutput) SetNextToken(v string) *DescribeMovingAddressesOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeNatGateways. type DescribeNatGatewaysInput struct { _ struct{} `type:"structure"` // One or more filters. // - // nat-gateway-id - The ID of the NAT gateway. + // * nat-gateway-id - The ID of the NAT gateway. // - // state - The state of the NAT gateway (pending | failed | available | - // deleting | deleted). + // * state - The state of the NAT gateway (pending | failed | available | + // deleting | deleted). // - // subnet-id - The ID of the subnet in which the NAT gateway resides. + // * subnet-id - The ID of the subnet in which the NAT gateway resides. // - // vpc-id - The ID of the VPC in which the NAT gateway resides. + // * vpc-id - The ID of the VPC in which the NAT gateway resides. Filter []*Filter `locationNameList:"Filter" type:"list"` // The maximum number of items to return for this request. The request returns // a token that you can specify in a subsequent call to get the next set of // results. // - // Constraint: If the value specified is greater than 1000, we return only - // 1000 items. + // Constraint: If the value specified is greater than 1000, we return only 1000 + // items. MaxResults *int64 `type:"integer"` // One or more NAT gateway IDs. @@ -22026,6 +25279,30 @@ func (s DescribeNatGatewaysInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeNatGatewaysInput) SetFilter(v []*Filter) *DescribeNatGatewaysInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeNatGatewaysInput) SetMaxResults(v int64) *DescribeNatGatewaysInput { + s.MaxResults = &v + return s +} + +// SetNatGatewayIds sets the NatGatewayIds field's value. +func (s *DescribeNatGatewaysInput) SetNatGatewayIds(v []*string) *DescribeNatGatewaysInput { + s.NatGatewayIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeNatGatewaysInput) SetNextToken(v string) *DescribeNatGatewaysInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeNatGateways. type DescribeNatGatewaysOutput struct { _ struct{} `type:"structure"` @@ -22048,6 +25325,18 @@ func (s DescribeNatGatewaysOutput) GoString() string { return s.String() } +// SetNatGateways sets the NatGateways field's value. +func (s *DescribeNatGatewaysOutput) SetNatGateways(v []*NatGateway) *DescribeNatGatewaysOutput { + s.NatGateways = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeNatGatewaysOutput) SetNextToken(v string) *DescribeNatGatewaysOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeNetworkAcls. type DescribeNetworkAclsInput struct { _ struct{} `type:"structure"` @@ -22060,52 +25349,54 @@ type DescribeNetworkAclsInput struct { // One or more filters. // - // association.association-id - The ID of an association ID for the ACL. + // * association.association-id - The ID of an association ID for the ACL. // - // association.network-acl-id - The ID of the network ACL involved in the - // association. + // * association.network-acl-id - The ID of the network ACL involved in the + // association. // - // association.subnet-id - The ID of the subnet involved in the association. + // * association.subnet-id - The ID of the subnet involved in the association. // - // default - Indicates whether the ACL is the default network ACL for the - // VPC. + // * default - Indicates whether the ACL is the default network ACL for the + // VPC. // - // entry.cidr - The CIDR range specified in the entry. + // * entry.cidr - The CIDR range specified in the entry. // - // entry.egress - Indicates whether the entry applies to egress traffic. + // * entry.egress - Indicates whether the entry applies to egress traffic. // - // entry.icmp.code - The ICMP code specified in the entry, if any. + // * entry.icmp.code - The ICMP code specified in the entry, if any. // - // entry.icmp.type - The ICMP type specified in the entry, if any. + // * entry.icmp.type - The ICMP type specified in the entry, if any. // - // entry.port-range.from - The start of the port range specified in the - // entry. + // * entry.port-range.from - The start of the port range specified in the + // entry. // - // entry.port-range.to - The end of the port range specified in the entry. + // * entry.port-range.to - The end of the port range specified in the entry. // - // entry.protocol - The protocol specified in the entry (tcp | udp | icmp - // or a protocol number). // - // entry.rule-action - Allows or denies the matching traffic (allow | deny). + // * entry.protocol - The protocol specified in the entry (tcp | udp | icmp + // or a protocol number). // - // entry.rule-number - The number of an entry (in other words, rule) in - // the ACL's set of entries. + // * entry.rule-action - Allows or denies the matching traffic (allow | deny). // - // network-acl-id - The ID of the network ACL. + // * entry.rule-number - The number of an entry (in other words, rule) in + // the ACL's set of entries. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * network-acl-id - The ID of the network ACL. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // vpc-id - The ID of the VPC for the network ACL. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. + // + // * vpc-id - The ID of the VPC for the network ACL. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more network ACL IDs. @@ -22124,6 +25415,24 @@ func (s DescribeNetworkAclsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeNetworkAclsInput) SetDryRun(v bool) *DescribeNetworkAclsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeNetworkAclsInput) SetFilters(v []*Filter) *DescribeNetworkAclsInput { + s.Filters = v + return s +} + +// SetNetworkAclIds sets the NetworkAclIds field's value. +func (s *DescribeNetworkAclsInput) SetNetworkAclIds(v []*string) *DescribeNetworkAclsInput { + s.NetworkAclIds = v + return s +} + // Contains the output of DescribeNetworkAcls. type DescribeNetworkAclsOutput struct { _ struct{} `type:"structure"` @@ -22142,6 +25451,12 @@ func (s DescribeNetworkAclsOutput) GoString() string { return s.String() } +// SetNetworkAcls sets the NetworkAcls field's value. +func (s *DescribeNetworkAclsOutput) SetNetworkAcls(v []*NetworkAcl) *DescribeNetworkAclsOutput { + s.NetworkAcls = v + return s +} + // Contains the parameters for DescribeNetworkInterfaceAttribute. type DescribeNetworkInterfaceAttributeInput struct { _ struct{} `type:"structure"` @@ -22184,6 +25499,24 @@ func (s *DescribeNetworkInterfaceAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeNetworkInterfaceAttributeInput) SetAttribute(v string) *DescribeNetworkInterfaceAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeNetworkInterfaceAttributeInput) SetDryRun(v bool) *DescribeNetworkInterfaceAttributeInput { + s.DryRun = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *DescribeNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeInput { + s.NetworkInterfaceId = &v + return s +} + // Contains the output of DescribeNetworkInterfaceAttribute. type DescribeNetworkInterfaceAttributeOutput struct { _ struct{} `type:"structure"` @@ -22214,6 +25547,36 @@ func (s DescribeNetworkInterfaceAttributeOutput) GoString() string { return s.String() } +// SetAttachment sets the Attachment field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetAttachment(v *NetworkInterfaceAttachment) *DescribeNetworkInterfaceAttributeOutput { + s.Attachment = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetDescription(v *AttributeValue) *DescribeNetworkInterfaceAttributeOutput { + s.Description = v + return s +} + +// SetGroups sets the Groups field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeNetworkInterfaceAttributeOutput { + s.Groups = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeOutput { + s.NetworkInterfaceId = &v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeNetworkInterfaceAttributeOutput { + s.SourceDestCheck = v + return s +} + // Contains the parameters for DescribeNetworkInterfaces. type DescribeNetworkInterfacesInput struct { _ struct{} `type:"structure"` @@ -22226,106 +25589,108 @@ type DescribeNetworkInterfacesInput struct { // One or more filters. // - // addresses.private-ip-address - The private IP addresses associated with - // the network interface. + // * addresses.private-ip-address - The private IP addresses associated with + // the network interface. // - // addresses.primary - Whether the private IP address is the primary IP - // address associated with the network interface. + // * addresses.primary - Whether the private IP address is the primary IP + // address associated with the network interface. // - // addresses.association.public-ip - The association ID returned when the - // network interface was associated with the Elastic IP address. + // * addresses.association.public-ip - The association ID returned when the + // network interface was associated with the Elastic IP address. // - // addresses.association.owner-id - The owner ID of the addresses associated - // with the network interface. + // * addresses.association.owner-id - The owner ID of the addresses associated + // with the network interface. // - // association.association-id - The association ID returned when the network - // interface was associated with an IP address. + // * association.association-id - The association ID returned when the network + // interface was associated with an IP address. // - // association.allocation-id - The allocation ID returned when you allocated - // the Elastic IP address for your network interface. + // * association.allocation-id - The allocation ID returned when you allocated + // the Elastic IP address for your network interface. // - // association.ip-owner-id - The owner of the Elastic IP address associated - // with the network interface. + // * association.ip-owner-id - The owner of the Elastic IP address associated + // with the network interface. // - // association.public-ip - The address of the Elastic IP address bound to - // the network interface. + // * association.public-ip - The address of the Elastic IP address bound + // to the network interface. // - // association.public-dns-name - The public DNS name for the network interface. + // * association.public-dns-name - The public DNS name for the network interface. // - // attachment.attachment-id - The ID of the interface attachment. + // * attachment.attachment-id - The ID of the interface attachment. // - // attachment.attach.time - The time that the network interface was attached - // to an instance. + // * attachment.attach.time - The time that the network interface was attached + // to an instance. // - // attachment.delete-on-termination - Indicates whether the attachment is - // deleted when an instance is terminated. + // * attachment.delete-on-termination - Indicates whether the attachment + // is deleted when an instance is terminated. // - // attachment.device-index - The device index to which the network interface - // is attached. + // * attachment.device-index - The device index to which the network interface + // is attached. // - // attachment.instance-id - The ID of the instance to which the network - // interface is attached. + // * attachment.instance-id - The ID of the instance to which the network + // interface is attached. // - // attachment.instance-owner-id - The owner ID of the instance to which - // the network interface is attached. + // * attachment.instance-owner-id - The owner ID of the instance to which + // the network interface is attached. // - // attachment.nat-gateway-id - The ID of the NAT gateway to which the network - // interface is attached. + // * attachment.nat-gateway-id - The ID of the NAT gateway to which the network + // interface is attached. // - // attachment.status - The status of the attachment (attaching | attached - // | detaching | detached). + // * attachment.status - The status of the attachment (attaching | attached + // | detaching | detached). // - // availability-zone - The Availability Zone of the network interface. + // * availability-zone - The Availability Zone of the network interface. // - // description - The description of the network interface. + // * description - The description of the network interface. // - // group-id - The ID of a security group associated with the network interface. + // * group-id - The ID of a security group associated with the network interface. // - // group-name - The name of a security group associated with the network - // interface. + // * group-name - The name of a security group associated with the network + // interface. // - // mac-address - The MAC address of the network interface. + // * mac-address - The MAC address of the network interface. // - // network-interface-id - The ID of the network interface. + // * network-interface-id - The ID of the network interface. // - // owner-id - The AWS account ID of the network interface owner. + // * owner-id - The AWS account ID of the network interface owner. // - // private-ip-address - The private IP address or addresses of the network - // interface. + // * private-ip-address - The private IP address or addresses of the network + // interface. // - // private-dns-name - The private DNS name of the network interface. + // * private-dns-name - The private DNS name of the network interface. // - // requester-id - The ID of the entity that launched the instance on your - // behalf (for example, AWS Management Console, Auto Scaling, and so on). + // * requester-id - The ID of the entity that launched the instance on your + // behalf (for example, AWS Management Console, Auto Scaling, and so on). // - // requester-managed - Indicates whether the network interface is being - // managed by an AWS service (for example, AWS Management Console, Auto Scaling, - // and so on). + // * requester-managed - Indicates whether the network interface is being + // managed by an AWS service (for example, AWS Management Console, Auto Scaling, + // and so on). // - // source-desk-check - Indicates whether the network interface performs - // source/destination checking. A value of true means checking is enabled, and - // false means checking is disabled. The value must be false for the network - // interface to perform network address translation (NAT) in your VPC. + // * source-desk-check - Indicates whether the network interface performs + // source/destination checking. A value of true means checking is enabled, + // and false means checking is disabled. The value must be false for the + // network interface to perform network address translation (NAT) in your + // VPC. // - // status - The status of the network interface. If the network interface - // is not attached to an instance, the status is available; if a network interface - // is attached to an instance the status is in-use. + // * status - The status of the network interface. If the network interface + // is not attached to an instance, the status is available; if a network + // interface is attached to an instance the status is in-use. // - // subnet-id - The ID of the subnet for the network interface. + // * subnet-id - The ID of the subnet for the network interface. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-id - The ID of the VPC for the network interface. + // * vpc-id - The ID of the VPC for the network interface. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"` // One or more network interface IDs. @@ -22344,6 +25709,24 @@ func (s DescribeNetworkInterfacesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeNetworkInterfacesInput) SetDryRun(v bool) *DescribeNetworkInterfacesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeNetworkInterfacesInput) SetFilters(v []*Filter) *DescribeNetworkInterfacesInput { + s.Filters = v + return s +} + +// SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value. +func (s *DescribeNetworkInterfacesInput) SetNetworkInterfaceIds(v []*string) *DescribeNetworkInterfacesInput { + s.NetworkInterfaceIds = v + return s +} + // Contains the output of DescribeNetworkInterfaces. type DescribeNetworkInterfacesOutput struct { _ struct{} `type:"structure"` @@ -22362,6 +25745,12 @@ func (s DescribeNetworkInterfacesOutput) GoString() string { return s.String() } +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *DescribeNetworkInterfacesOutput) SetNetworkInterfaces(v []*NetworkInterface) *DescribeNetworkInterfacesOutput { + s.NetworkInterfaces = v + return s +} + // Contains the parameters for DescribePlacementGroups. type DescribePlacementGroupsInput struct { _ struct{} `type:"structure"` @@ -22374,12 +25763,12 @@ type DescribePlacementGroupsInput struct { // One or more filters. // - // group-name - The name of the placement group. + // * group-name - The name of the placement group. // - // state - The state of the placement group (pending | available | deleting - // | deleted). + // * state - The state of the placement group (pending | available | deleting + // | deleted). // - // strategy - The strategy of the placement group (cluster). + // * strategy - The strategy of the placement group (cluster). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more placement group names. @@ -22398,6 +25787,24 @@ func (s DescribePlacementGroupsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribePlacementGroupsInput) SetDryRun(v bool) *DescribePlacementGroupsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribePlacementGroupsInput) SetFilters(v []*Filter) *DescribePlacementGroupsInput { + s.Filters = v + return s +} + +// SetGroupNames sets the GroupNames field's value. +func (s *DescribePlacementGroupsInput) SetGroupNames(v []*string) *DescribePlacementGroupsInput { + s.GroupNames = v + return s +} + // Contains the output of DescribePlacementGroups. type DescribePlacementGroupsOutput struct { _ struct{} `type:"structure"` @@ -22416,6 +25823,12 @@ func (s DescribePlacementGroupsOutput) GoString() string { return s.String() } +// SetPlacementGroups sets the PlacementGroups field's value. +func (s *DescribePlacementGroupsOutput) SetPlacementGroups(v []*PlacementGroup) *DescribePlacementGroupsOutput { + s.PlacementGroups = v + return s +} + // Contains the parameters for DescribePrefixLists. type DescribePrefixListsInput struct { _ struct{} `type:"structure"` @@ -22428,17 +25841,17 @@ type DescribePrefixListsInput struct { // One or more filters. // - // prefix-list-id: The ID of a prefix list. + // * prefix-list-id: The ID of a prefix list. // - // prefix-list-name: The name of a prefix list. + // * prefix-list-name: The name of a prefix list. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of items to return for this request. The request returns // a token that you can specify in a subsequent call to get the next set of // results. // - // Constraint: If the value specified is greater than 1000, we return only - // 1000 items. + // Constraint: If the value specified is greater than 1000, we return only 1000 + // items. MaxResults *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from @@ -22459,6 +25872,36 @@ func (s DescribePrefixListsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribePrefixListsInput) SetDryRun(v bool) *DescribePrefixListsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribePrefixListsInput) SetFilters(v []*Filter) *DescribePrefixListsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribePrefixListsInput) SetMaxResults(v int64) *DescribePrefixListsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePrefixListsInput) SetNextToken(v string) *DescribePrefixListsInput { + s.NextToken = &v + return s +} + +// SetPrefixListIds sets the PrefixListIds field's value. +func (s *DescribePrefixListsInput) SetPrefixListIds(v []*string) *DescribePrefixListsInput { + s.PrefixListIds = v + return s +} + // Contains the output of DescribePrefixLists. type DescribePrefixListsOutput struct { _ struct{} `type:"structure"` @@ -22481,6 +25924,18 @@ func (s DescribePrefixListsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribePrefixListsOutput) SetNextToken(v string) *DescribePrefixListsOutput { + s.NextToken = &v + return s +} + +// SetPrefixLists sets the PrefixLists field's value. +func (s *DescribePrefixListsOutput) SetPrefixLists(v []*PrefixList) *DescribePrefixListsOutput { + s.PrefixLists = v + return s +} + // Contains the parameters for DescribeRegions. type DescribeRegionsInput struct { _ struct{} `type:"structure"` @@ -22493,9 +25948,9 @@ type DescribeRegionsInput struct { // One or more filters. // - // endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com). + // * endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com). // - // region-name - The name of the region (for example, us-east-1). + // * region-name - The name of the region (for example, us-east-1). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The names of one or more regions. @@ -22512,6 +25967,24 @@ func (s DescribeRegionsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeRegionsInput) SetDryRun(v bool) *DescribeRegionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeRegionsInput) SetFilters(v []*Filter) *DescribeRegionsInput { + s.Filters = v + return s +} + +// SetRegionNames sets the RegionNames field's value. +func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput { + s.RegionNames = v + return s +} + // Contains the output of DescribeRegions. type DescribeRegionsOutput struct { _ struct{} `type:"structure"` @@ -22530,6 +26003,12 @@ func (s DescribeRegionsOutput) GoString() string { return s.String() } +// SetRegions sets the Regions field's value. +func (s *DescribeRegionsOutput) SetRegions(v []*Region) *DescribeRegionsOutput { + s.Regions = v + return s +} + // Contains the parameters for DescribeReservedInstances. type DescribeReservedInstancesInput struct { _ struct{} `type:"structure"` @@ -22542,53 +26021,54 @@ type DescribeReservedInstancesInput struct { // One or more filters. // - // availability-zone - The Availability Zone where the Reserved Instance - // can be used. + // * availability-zone - The Availability Zone where the Reserved Instance + // can be used. // - // duration - The duration of the Reserved Instance (one year or three years), - // in seconds (31536000 | 94608000). + // * duration - The duration of the Reserved Instance (one year or three + // years), in seconds (31536000 | 94608000). // - // end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z). + // * end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z). // - // fixed-price - The purchase price of the Reserved Instance (for example, - // 9800.0). + // * fixed-price - The purchase price of the Reserved Instance (for example, + // 9800.0). // - // instance-type - The instance type that is covered by the reservation. + // * instance-type - The instance type that is covered by the reservation. // - // scope - The scope of the Reserved Instance (Region or Availability Zone). + // * scope - The scope of the Reserved Instance (Region or Availability Zone). // - // product-description - The Reserved Instance product platform description. - // Instances that include (Amazon VPC) in the product platform description will - // only be displayed to EC2-Classic account holders and are for use with Amazon - // VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon - // VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | - // Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows - // with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows - // with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows - // with SQL Server Enterprise (Amazon VPC)). + // * product-description - The Reserved Instance product platform description. + // Instances that include (Amazon VPC) in the product platform description + // will only be displayed to EC2-Classic account holders and are for use + // with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE + // Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux + // (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server + // Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with + // SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with + // SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)). // - // reserved-instances-id - The ID of the Reserved Instance. + // * reserved-instances-id - The ID of the Reserved Instance. // - // start - The time at which the Reserved Instance purchase request was - // placed (for example, 2014-08-07T11:54:42.000Z). + // * start - The time at which the Reserved Instance purchase request was + // placed (for example, 2014-08-07T11:54:42.000Z). // - // state - The state of the Reserved Instance (payment-pending | active - // | payment-failed | retired). + // * state - The state of the Reserved Instance (payment-pending | active + // | payment-failed | retired). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // usage-price - The usage price of the Reserved Instance, per hour (for - // example, 0.84). + // * usage-price - The usage price of the Reserved Instance, per hour (for + // example, 0.84). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // Describes whether the Reserved Instance is Standard or Convertible. @@ -22601,8 +26081,7 @@ type DescribeReservedInstancesInput struct { // One or more Reserved Instance IDs. // - // Default: Describes all your Reserved Instances, or only those otherwise - // specified. + // Default: Describes all your Reserved Instances, or only those otherwise specified. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"` } @@ -22616,20 +26095,50 @@ func (s DescribeReservedInstancesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeReservedInstancesInput) SetDryRun(v bool) *DescribeReservedInstancesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeReservedInstancesInput) SetFilters(v []*Filter) *DescribeReservedInstancesInput { + s.Filters = v + return s +} + +// SetOfferingClass sets the OfferingClass field's value. +func (s *DescribeReservedInstancesInput) SetOfferingClass(v string) *DescribeReservedInstancesInput { + s.OfferingClass = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedInstancesInput) SetOfferingType(v string) *DescribeReservedInstancesInput { + s.OfferingType = &v + return s +} + +// SetReservedInstancesIds sets the ReservedInstancesIds field's value. +func (s *DescribeReservedInstancesInput) SetReservedInstancesIds(v []*string) *DescribeReservedInstancesInput { + s.ReservedInstancesIds = v + return s +} + // Contains the parameters for DescribeReservedInstancesListings. type DescribeReservedInstancesListingsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // reserved-instances-id - The ID of the Reserved Instances. + // * reserved-instances-id - The ID of the Reserved Instances. // - // reserved-instances-listing-id - The ID of the Reserved Instances listing. + // * reserved-instances-listing-id - The ID of the Reserved Instances listing. // - // status - The status of the Reserved Instance listing (pending | active - // | cancelled | closed). + // * status - The status of the Reserved Instance listing (pending | active + // | cancelled | closed). // - // status-message - The reason for the status. + // * status-message - The reason for the status. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more Reserved Instance IDs. @@ -22649,6 +26158,24 @@ func (s DescribeReservedInstancesListingsInput) GoString() string { return s.String() } +// SetFilters sets the Filters field's value. +func (s *DescribeReservedInstancesListingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesListingsInput { + s.Filters = v + return s +} + +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesId(v string) *DescribeReservedInstancesListingsInput { + s.ReservedInstancesId = &v + return s +} + +// SetReservedInstancesListingId sets the ReservedInstancesListingId field's value. +func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesListingId(v string) *DescribeReservedInstancesListingsInput { + s.ReservedInstancesListingId = &v + return s +} + // Contains the output of DescribeReservedInstancesListings. type DescribeReservedInstancesListingsOutput struct { _ struct{} `type:"structure"` @@ -22667,44 +26194,50 @@ func (s DescribeReservedInstancesListingsOutput) GoString() string { return s.String() } +// SetReservedInstancesListings sets the ReservedInstancesListings field's value. +func (s *DescribeReservedInstancesListingsOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *DescribeReservedInstancesListingsOutput { + s.ReservedInstancesListings = v + return s +} + // Contains the parameters for DescribeReservedInstancesModifications. type DescribeReservedInstancesModificationsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // client-token - The idempotency token for the modification request. + // * client-token - The idempotency token for the modification request. // - // create-date - The time when the modification request was created. + // * create-date - The time when the modification request was created. // - // effective-date - The time when the modification becomes effective. + // * effective-date - The time when the modification becomes effective. // - // modification-result.reserved-instances-id - The ID for the Reserved Instances - // created as part of the modification request. This ID is only available when - // the status of the modification is fulfilled. + // * modification-result.reserved-instances-id - The ID for the Reserved + // Instances created as part of the modification request. This ID is only + // available when the status of the modification is fulfilled. // - // modification-result.target-configuration.availability-zone - The Availability - // Zone for the new Reserved Instances. + // * modification-result.target-configuration.availability-zone - The Availability + // Zone for the new Reserved Instances. // - // modification-result.target-configuration.instance-count - The number - // of new Reserved Instances. + // * modification-result.target-configuration.instance-count - The number + // of new Reserved Instances. // - // modification-result.target-configuration.instance-type - The instance - // type of the new Reserved Instances. + // * modification-result.target-configuration.instance-type - The instance + // type of the new Reserved Instances. // - // modification-result.target-configuration.platform - The network platform - // of the new Reserved Instances (EC2-Classic | EC2-VPC). + // * modification-result.target-configuration.platform - The network platform + // of the new Reserved Instances (EC2-Classic | EC2-VPC). // - // reserved-instances-id - The ID of the Reserved Instances modified. + // * reserved-instances-id - The ID of the Reserved Instances modified. // - // reserved-instances-modification-id - The ID of the modification request. + // * reserved-instances-modification-id - The ID of the modification request. // - // status - The status of the Reserved Instances modification request (processing - // | fulfilled | failed). + // * status - The status of the Reserved Instances modification request (processing + // | fulfilled | failed). // - // status-message - The reason for the status. + // * status-message - The reason for the status. // - // update-date - The time when the modification request was last updated. + // * update-date - The time when the modification request was last updated. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The token to retrieve the next page of results. @@ -22724,6 +26257,24 @@ func (s DescribeReservedInstancesModificationsInput) GoString() string { return s.String() } +// SetFilters sets the Filters field's value. +func (s *DescribeReservedInstancesModificationsInput) SetFilters(v []*Filter) *DescribeReservedInstancesModificationsInput { + s.Filters = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedInstancesModificationsInput) SetNextToken(v string) *DescribeReservedInstancesModificationsInput { + s.NextToken = &v + return s +} + +// SetReservedInstancesModificationIds sets the ReservedInstancesModificationIds field's value. +func (s *DescribeReservedInstancesModificationsInput) SetReservedInstancesModificationIds(v []*string) *DescribeReservedInstancesModificationsInput { + s.ReservedInstancesModificationIds = v + return s +} + // Contains the output of DescribeReservedInstancesModifications. type DescribeReservedInstancesModificationsOutput struct { _ struct{} `type:"structure"` @@ -22746,6 +26297,18 @@ func (s DescribeReservedInstancesModificationsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedInstancesModificationsOutput) SetNextToken(v string) *DescribeReservedInstancesModificationsOutput { + s.NextToken = &v + return s +} + +// SetReservedInstancesModifications sets the ReservedInstancesModifications field's value. +func (s *DescribeReservedInstancesModificationsOutput) SetReservedInstancesModifications(v []*ReservedInstancesModification) *DescribeReservedInstancesModificationsOutput { + s.ReservedInstancesModifications = v + return s +} + // Contains the parameters for DescribeReservedInstancesOfferings. type DescribeReservedInstancesOfferingsInput struct { _ struct{} `type:"structure"` @@ -22761,37 +26324,39 @@ type DescribeReservedInstancesOfferingsInput struct { // One or more filters. // - // availability-zone - The Availability Zone where the Reserved Instance - // can be used. + // * availability-zone - The Availability Zone where the Reserved Instance + // can be used. // - // duration - The duration of the Reserved Instance (for example, one year - // or three years), in seconds (31536000 | 94608000). + // * duration - The duration of the Reserved Instance (for example, one year + // or three years), in seconds (31536000 | 94608000). // - // fixed-price - The purchase price of the Reserved Instance (for example, - // 9800.0). + // * fixed-price - The purchase price of the Reserved Instance (for example, + // 9800.0). // - // instance-type - The instance type that is covered by the reservation. + // * instance-type - The instance type that is covered by the reservation. // - // marketplace - Set to true to show only Reserved Instance Marketplace - // offerings. When this filter is not used, which is the default behavior, all - // offerings from both AWS and the Reserved Instance Marketplace are listed. + // * marketplace - Set to true to show only Reserved Instance Marketplace + // offerings. When this filter is not used, which is the default behavior, + // all offerings from both AWS and the Reserved Instance Marketplace are + // listed. // - // product-description - The Reserved Instance product platform description. - // Instances that include (Amazon VPC) in the product platform description will - // only be displayed to EC2-Classic account holders and are for use with Amazon - // VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon - // VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | - // Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows - // with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows - // with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows - // with SQL Server Enterprise (Amazon VPC)) + // * product-description - The Reserved Instance product platform description. + // Instances that include (Amazon VPC) in the product platform description + // will only be displayed to EC2-Classic account holders and are for use + // with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | + // SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise + // Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL + // Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows + // with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows + // with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon + // VPC)) // - // reserved-instances-offering-id - The Reserved Instances offering ID. + // * reserved-instances-offering-id - The Reserved Instances offering ID. // - // scope - The scope of the Reserved Instance (Availability Zone or Region). + // * scope - The scope of the Reserved Instance (Availability Zone or Region). // - // usage-price - The usage price of the Reserved Instance, per hour (for - // example, 0.84). + // * usage-price - The usage price of the Reserved Instance, per hour (for + // example, 0.84). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // Include Reserved Instance Marketplace offerings in the response. @@ -22860,6 +26425,96 @@ func (s DescribeReservedInstancesOfferingsInput) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetAvailabilityZone(v string) *DescribeReservedInstancesOfferingsInput { + s.AvailabilityZone = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetDryRun(v bool) *DescribeReservedInstancesOfferingsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesOfferingsInput { + s.Filters = v + return s +} + +// SetIncludeMarketplace sets the IncludeMarketplace field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetIncludeMarketplace(v bool) *DescribeReservedInstancesOfferingsInput { + s.IncludeMarketplace = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetInstanceTenancy(v string) *DescribeReservedInstancesOfferingsInput { + s.InstanceTenancy = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetInstanceType(v string) *DescribeReservedInstancesOfferingsInput { + s.InstanceType = &v + return s +} + +// SetMaxDuration sets the MaxDuration field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetMaxDuration(v int64) *DescribeReservedInstancesOfferingsInput { + s.MaxDuration = &v + return s +} + +// SetMaxInstanceCount sets the MaxInstanceCount field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetMaxInstanceCount(v int64) *DescribeReservedInstancesOfferingsInput { + s.MaxInstanceCount = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetMaxResults(v int64) *DescribeReservedInstancesOfferingsInput { + s.MaxResults = &v + return s +} + +// SetMinDuration sets the MinDuration field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetMinDuration(v int64) *DescribeReservedInstancesOfferingsInput { + s.MinDuration = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetNextToken(v string) *DescribeReservedInstancesOfferingsInput { + s.NextToken = &v + return s +} + +// SetOfferingClass sets the OfferingClass field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetOfferingClass(v string) *DescribeReservedInstancesOfferingsInput { + s.OfferingClass = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedInstancesOfferingsInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedInstancesOfferingsInput { + s.ProductDescription = &v + return s +} + +// SetReservedInstancesOfferingIds sets the ReservedInstancesOfferingIds field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetReservedInstancesOfferingIds(v []*string) *DescribeReservedInstancesOfferingsInput { + s.ReservedInstancesOfferingIds = v + return s +} + // Contains the output of DescribeReservedInstancesOfferings. type DescribeReservedInstancesOfferingsOutput struct { _ struct{} `type:"structure"` @@ -22882,6 +26537,18 @@ func (s DescribeReservedInstancesOfferingsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedInstancesOfferingsOutput) SetNextToken(v string) *DescribeReservedInstancesOfferingsOutput { + s.NextToken = &v + return s +} + +// SetReservedInstancesOfferings sets the ReservedInstancesOfferings field's value. +func (s *DescribeReservedInstancesOfferingsOutput) SetReservedInstancesOfferings(v []*ReservedInstancesOffering) *DescribeReservedInstancesOfferingsOutput { + s.ReservedInstancesOfferings = v + return s +} + // Contains the output for DescribeReservedInstances. type DescribeReservedInstancesOutput struct { _ struct{} `type:"structure"` @@ -22900,6 +26567,12 @@ func (s DescribeReservedInstancesOutput) GoString() string { return s.String() } +// SetReservedInstances sets the ReservedInstances field's value. +func (s *DescribeReservedInstancesOutput) SetReservedInstances(v []*ReservedInstances) *DescribeReservedInstancesOutput { + s.ReservedInstances = v + return s +} + // Contains the parameters for DescribeRouteTables. type DescribeRouteTablesInput struct { _ struct{} `type:"structure"` @@ -22912,59 +26585,60 @@ type DescribeRouteTablesInput struct { // One or more filters. // - // association.route-table-association-id - The ID of an association ID - // for the route table. + // * association.route-table-association-id - The ID of an association ID + // for the route table. // - // association.route-table-id - The ID of the route table involved in the - // association. + // * association.route-table-id - The ID of the route table involved in the + // association. // - // association.subnet-id - The ID of the subnet involved in the association. + // * association.subnet-id - The ID of the subnet involved in the association. // - // association.main - Indicates whether the route table is the main route - // table for the VPC (true | false). + // * association.main - Indicates whether the route table is the main route + // table for the VPC (true | false). // - // route-table-id - The ID of the route table. + // * route-table-id - The ID of the route table. // - // route.destination-cidr-block - The CIDR range specified in a route in - // the table. + // * route.destination-cidr-block - The CIDR range specified in a route in + // the table. // - // route.destination-prefix-list-id - The ID (prefix) of the AWS service - // specified in a route in the table. + // * route.destination-prefix-list-id - The ID (prefix) of the AWS service + // specified in a route in the table. // - // route.gateway-id - The ID of a gateway specified in a route in the table. + // * route.gateway-id - The ID of a gateway specified in a route in the table. // - // route.instance-id - The ID of an instance specified in a route in the - // table. + // * route.instance-id - The ID of an instance specified in a route in the + // table. // - // route.nat-gateway-id - The ID of a NAT gateway. + // * route.nat-gateway-id - The ID of a NAT gateway. // - // route.origin - Describes how the route was created. CreateRouteTable - // indicates that the route was automatically created when the route table was - // created; CreateRoute indicates that the route was manually added to the route - // table; EnableVgwRoutePropagation indicates that the route was propagated - // by route propagation. + // * route.origin - Describes how the route was created. CreateRouteTable + // indicates that the route was automatically created when the route table + // was created; CreateRoute indicates that the route was manually added to + // the route table; EnableVgwRoutePropagation indicates that the route was + // propagated by route propagation. // - // route.state - The state of a route in the route table (active | blackhole). - // The blackhole state indicates that the route's target isn't available (for - // example, the specified gateway isn't attached to the VPC, the specified NAT - // instance has been terminated, and so on). + // * route.state - The state of a route in the route table (active | blackhole). + // The blackhole state indicates that the route's target isn't available + // (for example, the specified gateway isn't attached to the VPC, the specified + // NAT instance has been terminated, and so on). // - // route.vpc-peering-connection-id - The ID of a VPC peering connection - // specified in a route in the table. + // * route.vpc-peering-connection-id - The ID of a VPC peering connection + // specified in a route in the table. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-id - The ID of the VPC for the route table. + // * vpc-id - The ID of the VPC for the route table. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more route table IDs. @@ -22983,6 +26657,24 @@ func (s DescribeRouteTablesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeRouteTablesInput) SetDryRun(v bool) *DescribeRouteTablesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeRouteTablesInput) SetFilters(v []*Filter) *DescribeRouteTablesInput { + s.Filters = v + return s +} + +// SetRouteTableIds sets the RouteTableIds field's value. +func (s *DescribeRouteTablesInput) SetRouteTableIds(v []*string) *DescribeRouteTablesInput { + s.RouteTableIds = v + return s +} + // Contains the output of DescribeRouteTables. type DescribeRouteTablesOutput struct { _ struct{} `type:"structure"` @@ -23001,6 +26693,12 @@ func (s DescribeRouteTablesOutput) GoString() string { return s.String() } +// SetRouteTables sets the RouteTables field's value. +func (s *DescribeRouteTablesOutput) SetRouteTables(v []*RouteTable) *DescribeRouteTablesOutput { + s.RouteTables = v + return s +} + // Contains the parameters for DescribeScheduledInstanceAvailability. type DescribeScheduledInstanceAvailabilityInput struct { _ struct{} `type:"structure"` @@ -23013,13 +26711,13 @@ type DescribeScheduledInstanceAvailabilityInput struct { // One or more filters. // - // availability-zone - The Availability Zone (for example, us-west-2a). + // * availability-zone - The Availability Zone (for example, us-west-2a). // - // instance-type - The instance type (for example, c4.large). + // * instance-type - The instance type (for example, c4.large). // - // network-platform - The network platform (EC2-Classic or EC2-VPC). + // * network-platform - The network platform (EC2-Classic or EC2-VPC). // - // platform - The platform (Linux/UNIX or Windows). + // * platform - The platform (Linux/UNIX or Windows). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The time period for the first schedule to start. @@ -23082,6 +26780,54 @@ func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetDryRun(v bool) *DescribeScheduledInstanceAvailabilityInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetFilters(v []*Filter) *DescribeScheduledInstanceAvailabilityInput { + s.Filters = v + return s +} + +// SetFirstSlotStartTimeRange sets the FirstSlotStartTimeRange field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetFirstSlotStartTimeRange(v *SlotDateTimeRangeRequest) *DescribeScheduledInstanceAvailabilityInput { + s.FirstSlotStartTimeRange = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxResults(v int64) *DescribeScheduledInstanceAvailabilityInput { + s.MaxResults = &v + return s +} + +// SetMaxSlotDurationInHours sets the MaxSlotDurationInHours field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput { + s.MaxSlotDurationInHours = &v + return s +} + +// SetMinSlotDurationInHours sets the MinSlotDurationInHours field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetMinSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput { + s.MinSlotDurationInHours = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityInput { + s.NextToken = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetRecurrence(v *ScheduledInstanceRecurrenceRequest) *DescribeScheduledInstanceAvailabilityInput { + s.Recurrence = v + return s +} + // Contains the output of DescribeScheduledInstanceAvailability. type DescribeScheduledInstanceAvailabilityOutput struct { _ struct{} `type:"structure"` @@ -23104,6 +26850,18 @@ func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledInstanceAvailabilityOutput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityOutput { + s.NextToken = &v + return s +} + +// SetScheduledInstanceAvailabilitySet sets the ScheduledInstanceAvailabilitySet field's value. +func (s *DescribeScheduledInstanceAvailabilityOutput) SetScheduledInstanceAvailabilitySet(v []*ScheduledInstanceAvailability) *DescribeScheduledInstanceAvailabilityOutput { + s.ScheduledInstanceAvailabilitySet = v + return s +} + // Contains the parameters for DescribeScheduledInstances. type DescribeScheduledInstancesInput struct { _ struct{} `type:"structure"` @@ -23116,13 +26874,13 @@ type DescribeScheduledInstancesInput struct { // One or more filters. // - // availability-zone - The Availability Zone (for example, us-west-2a). + // * availability-zone - The Availability Zone (for example, us-west-2a). // - // instance-type - The instance type (for example, c4.large). + // * instance-type - The instance type (for example, c4.large). // - // network-platform - The network platform (EC2-Classic or EC2-VPC). + // * network-platform - The network platform (EC2-Classic or EC2-VPC). // - // platform - The platform (Linux/UNIX or Windows). + // * platform - The platform (Linux/UNIX or Windows). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of results to return in a single call. This value can @@ -23150,6 +26908,42 @@ func (s DescribeScheduledInstancesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeScheduledInstancesInput) SetDryRun(v bool) *DescribeScheduledInstancesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeScheduledInstancesInput) SetFilters(v []*Filter) *DescribeScheduledInstancesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScheduledInstancesInput) SetMaxResults(v int64) *DescribeScheduledInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledInstancesInput) SetNextToken(v string) *DescribeScheduledInstancesInput { + s.NextToken = &v + return s +} + +// SetScheduledInstanceIds sets the ScheduledInstanceIds field's value. +func (s *DescribeScheduledInstancesInput) SetScheduledInstanceIds(v []*string) *DescribeScheduledInstancesInput { + s.ScheduledInstanceIds = v + return s +} + +// SetSlotStartTimeRange sets the SlotStartTimeRange field's value. +func (s *DescribeScheduledInstancesInput) SetSlotStartTimeRange(v *SlotStartTimeRangeRequest) *DescribeScheduledInstancesInput { + s.SlotStartTimeRange = v + return s +} + // Contains the output of DescribeScheduledInstances. type DescribeScheduledInstancesOutput struct { _ struct{} `type:"structure"` @@ -23172,6 +26966,18 @@ func (s DescribeScheduledInstancesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledInstancesOutput) SetNextToken(v string) *DescribeScheduledInstancesOutput { + s.NextToken = &v + return s +} + +// SetScheduledInstanceSet sets the ScheduledInstanceSet field's value. +func (s *DescribeScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *DescribeScheduledInstancesOutput { + s.ScheduledInstanceSet = v + return s +} + type DescribeSecurityGroupReferencesInput struct { _ struct{} `type:"structure"` @@ -23210,6 +27016,18 @@ func (s *DescribeSecurityGroupReferencesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSecurityGroupReferencesInput) SetDryRun(v bool) *DescribeSecurityGroupReferencesInput { + s.DryRun = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *DescribeSecurityGroupReferencesInput) SetGroupId(v []*string) *DescribeSecurityGroupReferencesInput { + s.GroupId = v + return s +} + type DescribeSecurityGroupReferencesOutput struct { _ struct{} `type:"structure"` @@ -23227,6 +27045,12 @@ func (s DescribeSecurityGroupReferencesOutput) GoString() string { return s.String() } +// SetSecurityGroupReferenceSet sets the SecurityGroupReferenceSet field's value. +func (s *DescribeSecurityGroupReferencesOutput) SetSecurityGroupReferenceSet(v []*SecurityGroupReference) *DescribeSecurityGroupReferencesOutput { + s.SecurityGroupReferenceSet = v + return s +} + // Contains the parameters for DescribeSecurityGroups. type DescribeSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -23241,42 +27065,42 @@ type DescribeSecurityGroupsInput struct { // security groups for which any combination of rules - not necessarily a single // rule - match all filters. // - // description - The description of the security group. + // * description - The description of the security group. // - // egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service - // to which the security group allows access. + // * egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service + // to which the security group allows access. // - // group-id - The ID of the security group. + // * group-id - The ID of the security group. // - // group-name - The name of the security group. + // * group-name - The name of the security group. // - // ip-permission.cidr - A CIDR range that has been granted permission. + // * ip-permission.cidr - A CIDR range that has been granted permission. // - // ip-permission.from-port - The start of port range for the TCP and UDP - // protocols, or an ICMP type number. + // * ip-permission.from-port - The start of port range for the TCP and UDP + // protocols, or an ICMP type number. // - // ip-permission.group-id - The ID of a security group that has been granted - // permission. + // * ip-permission.group-id - The ID of a security group that has been granted + // permission. // - // ip-permission.group-name - The name of a security group that has been - // granted permission. + // * ip-permission.group-name - The name of a security group that has been + // granted permission. // - // ip-permission.protocol - The IP protocol for the permission (tcp | udp - // | icmp or a protocol number). + // * ip-permission.protocol - The IP protocol for the permission (tcp | udp + // | icmp or a protocol number). // - // ip-permission.to-port - The end of port range for the TCP and UDP protocols, - // or an ICMP code. + // * ip-permission.to-port - The end of port range for the TCP and UDP protocols, + // or an ICMP code. // - // ip-permission.user-id - The ID of an AWS account that has been granted - // permission. + // * ip-permission.user-id - The ID of an AWS account that has been granted + // permission. // - // owner-id - The AWS account ID of the owner of the security group. + // * owner-id - The AWS account ID of the owner of the security group. // - // tag-key - The key of a tag assigned to the security group. + // * tag-key - The key of a tag assigned to the security group. // - // tag-value - The value of a tag assigned to the security group. + // * tag-value - The value of a tag assigned to the security group. // - // vpc-id - The ID of the VPC specified when the security group was created. + // * vpc-id - The ID of the VPC specified when the security group was created. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more security group IDs. Required for security groups in a nondefault @@ -23304,6 +27128,30 @@ func (s DescribeSecurityGroupsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSecurityGroupsInput) SetDryRun(v bool) *DescribeSecurityGroupsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSecurityGroupsInput) SetFilters(v []*Filter) *DescribeSecurityGroupsInput { + s.Filters = v + return s +} + +// SetGroupIds sets the GroupIds field's value. +func (s *DescribeSecurityGroupsInput) SetGroupIds(v []*string) *DescribeSecurityGroupsInput { + s.GroupIds = v + return s +} + +// SetGroupNames sets the GroupNames field's value. +func (s *DescribeSecurityGroupsInput) SetGroupNames(v []*string) *DescribeSecurityGroupsInput { + s.GroupNames = v + return s +} + // Contains the output of DescribeSecurityGroups. type DescribeSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -23322,6 +27170,12 @@ func (s DescribeSecurityGroupsOutput) GoString() string { return s.String() } +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *DescribeSecurityGroupsOutput) SetSecurityGroups(v []*SecurityGroup) *DescribeSecurityGroupsOutput { + s.SecurityGroups = v + return s +} + // Contains the parameters for DescribeSnapshotAttribute. type DescribeSnapshotAttributeInput struct { _ struct{} `type:"structure"` @@ -23369,6 +27223,24 @@ func (s *DescribeSnapshotAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeSnapshotAttributeInput) SetAttribute(v string) *DescribeSnapshotAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeSnapshotAttributeInput) SetDryRun(v bool) *DescribeSnapshotAttributeInput { + s.DryRun = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *DescribeSnapshotAttributeInput) SetSnapshotId(v string) *DescribeSnapshotAttributeInput { + s.SnapshotId = &v + return s +} + // Contains the output of DescribeSnapshotAttribute. type DescribeSnapshotAttributeOutput struct { _ struct{} `type:"structure"` @@ -23393,6 +27265,24 @@ func (s DescribeSnapshotAttributeOutput) GoString() string { return s.String() } +// SetCreateVolumePermissions sets the CreateVolumePermissions field's value. +func (s *DescribeSnapshotAttributeOutput) SetCreateVolumePermissions(v []*CreateVolumePermission) *DescribeSnapshotAttributeOutput { + s.CreateVolumePermissions = v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *DescribeSnapshotAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeSnapshotAttributeOutput { + s.ProductCodes = v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *DescribeSnapshotAttributeOutput) SetSnapshotId(v string) *DescribeSnapshotAttributeOutput { + s.SnapshotId = &v + return s +} + // Contains the parameters for DescribeSnapshots. type DescribeSnapshotsInput struct { _ struct{} `type:"structure"` @@ -23405,38 +27295,39 @@ type DescribeSnapshotsInput struct { // One or more filters. // - // description - A description of the snapshot. + // * description - A description of the snapshot. // - // owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace - // | microsoft) of snapshot owners. Not to be confused with the user-configured - // AWS account alias, which is set from the IAM consolew. + // * owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace + // | microsoft) of snapshot owners. Not to be confused with the user-configured + // AWS account alias, which is set from the IAM consolew. // - // owner-id - The ID of the AWS account that owns the snapshot. + // * owner-id - The ID of the AWS account that owns the snapshot. // - // progress - The progress of the snapshot, as a percentage (for example, - // 80%). + // * progress - The progress of the snapshot, as a percentage (for example, + // 80%). // - // snapshot-id - The snapshot ID. + // * snapshot-id - The snapshot ID. // - // start-time - The time stamp when the snapshot was initiated. + // * start-time - The time stamp when the snapshot was initiated. // - // status - The status of the snapshot (pending | completed | error). + // * status - The status of the snapshot (pending | completed | error). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // volume-id - The ID of the volume the snapshot is for. + // * volume-id - The ID of the volume the snapshot is for. // - // volume-size - The size of the volume, in GiB. + // * volume-size - The size of the volume, in GiB. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of snapshot results returned by DescribeSnapshots in paginated @@ -23480,6 +27371,48 @@ func (s DescribeSnapshotsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSnapshotsInput) SetDryRun(v bool) *DescribeSnapshotsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSnapshotsInput) SetFilters(v []*Filter) *DescribeSnapshotsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSnapshotsInput) SetMaxResults(v int64) *DescribeSnapshotsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput { + s.NextToken = &v + return s +} + +// SetOwnerIds sets the OwnerIds field's value. +func (s *DescribeSnapshotsInput) SetOwnerIds(v []*string) *DescribeSnapshotsInput { + s.OwnerIds = v + return s +} + +// SetRestorableByUserIds sets the RestorableByUserIds field's value. +func (s *DescribeSnapshotsInput) SetRestorableByUserIds(v []*string) *DescribeSnapshotsInput { + s.RestorableByUserIds = v + return s +} + +// SetSnapshotIds sets the SnapshotIds field's value. +func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput { + s.SnapshotIds = v + return s +} + // Contains the output of DescribeSnapshots. type DescribeSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -23504,6 +27437,18 @@ func (s DescribeSnapshotsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput { + s.NextToken = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput { + s.Snapshots = v + return s +} + // Contains the parameters for DescribeSpotDatafeedSubscription. type DescribeSpotDatafeedSubscriptionInput struct { _ struct{} `type:"structure"` @@ -23525,6 +27470,12 @@ func (s DescribeSpotDatafeedSubscriptionInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DescribeSpotDatafeedSubscriptionInput { + s.DryRun = &v + return s +} + // Contains the output of DescribeSpotDatafeedSubscription. type DescribeSpotDatafeedSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -23543,6 +27494,12 @@ func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string { return s.String() } +// SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value. +func (s *DescribeSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *DescribeSpotDatafeedSubscriptionOutput { + s.SpotDatafeedSubscription = v + return s +} + // Contains the parameters for DescribeSpotFleetInstances. type DescribeSpotFleetInstancesInput struct { _ struct{} `type:"structure"` @@ -23590,6 +27547,30 @@ func (s *DescribeSpotFleetInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotFleetInstancesInput) SetDryRun(v bool) *DescribeSpotFleetInstancesInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSpotFleetInstancesInput) SetMaxResults(v int64) *DescribeSpotFleetInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetInstancesInput) SetNextToken(v string) *DescribeSpotFleetInstancesInput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *DescribeSpotFleetInstancesInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesInput { + s.SpotFleetRequestId = &v + return s +} + // Contains the output of DescribeSpotFleetInstances. type DescribeSpotFleetInstancesOutput struct { _ struct{} `type:"structure"` @@ -23620,6 +27601,24 @@ func (s DescribeSpotFleetInstancesOutput) GoString() string { return s.String() } +// SetActiveInstances sets the ActiveInstances field's value. +func (s *DescribeSpotFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeSpotFleetInstancesOutput { + s.ActiveInstances = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetInstancesOutput) SetNextToken(v string) *DescribeSpotFleetInstancesOutput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *DescribeSpotFleetInstancesOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesOutput { + s.SpotFleetRequestId = &v + return s +} + // Contains the parameters for DescribeSpotFleetRequestHistory. type DescribeSpotFleetRequestHistoryInput struct { _ struct{} `type:"structure"` @@ -23678,6 +27677,42 @@ func (s *DescribeSpotFleetRequestHistoryInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetDryRun(v bool) *DescribeSpotFleetRequestHistoryInput { + s.DryRun = &v + return s +} + +// SetEventType sets the EventType field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetEventType(v string) *DescribeSpotFleetRequestHistoryInput { + s.EventType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetMaxResults(v int64) *DescribeSpotFleetRequestHistoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryInput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryInput { + s.SpotFleetRequestId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryInput { + s.StartTime = &v + return s +} + // Contains the output of DescribeSpotFleetRequestHistory. type DescribeSpotFleetRequestHistoryOutput struct { _ struct{} `type:"structure"` @@ -23720,6 +27755,36 @@ func (s DescribeSpotFleetRequestHistoryOutput) GoString() string { return s.String() } +// SetHistoryRecords sets the HistoryRecords field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetHistoryRecords(v []*HistoryRecord) *DescribeSpotFleetRequestHistoryOutput { + s.HistoryRecords = v + return s +} + +// SetLastEvaluatedTime sets the LastEvaluatedTime field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput { + s.LastEvaluatedTime = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryOutput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryOutput { + s.SpotFleetRequestId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput { + s.StartTime = &v + return s +} + // Contains the parameters for DescribeSpotFleetRequests. type DescribeSpotFleetRequestsInput struct { _ struct{} `type:"structure"` @@ -23752,6 +27817,30 @@ func (s DescribeSpotFleetRequestsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotFleetRequestsInput) SetDryRun(v bool) *DescribeSpotFleetRequestsInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSpotFleetRequestsInput) SetMaxResults(v int64) *DescribeSpotFleetRequestsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetRequestsInput) SetNextToken(v string) *DescribeSpotFleetRequestsInput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value. +func (s *DescribeSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *DescribeSpotFleetRequestsInput { + s.SpotFleetRequestIds = v + return s +} + // Contains the output of DescribeSpotFleetRequests. type DescribeSpotFleetRequestsOutput struct { _ struct{} `type:"structure"` @@ -23776,6 +27865,18 @@ func (s DescribeSpotFleetRequestsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetRequestsOutput) SetNextToken(v string) *DescribeSpotFleetRequestsOutput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestConfigs sets the SpotFleetRequestConfigs field's value. +func (s *DescribeSpotFleetRequestsOutput) SetSpotFleetRequestConfigs(v []*SpotFleetRequestConfig) *DescribeSpotFleetRequestsOutput { + s.SpotFleetRequestConfigs = v + return s +} + // Contains the parameters for DescribeSpotInstanceRequests. type DescribeSpotInstanceRequestsInput struct { _ struct{} `type:"structure"` @@ -23788,113 +27889,114 @@ type DescribeSpotInstanceRequestsInput struct { // One or more filters. // - // availability-zone-group - The Availability Zone group. + // * availability-zone-group - The Availability Zone group. // - // create-time - The time stamp when the Spot instance request was created. + // * create-time - The time stamp when the Spot instance request was created. // - // fault-code - The fault code related to the request. + // * fault-code - The fault code related to the request. // - // fault-message - The fault message related to the request. + // * fault-message - The fault message related to the request. // - // instance-id - The ID of the instance that fulfilled the request. + // * instance-id - The ID of the instance that fulfilled the request. // - // launch-group - The Spot instance launch group. + // * launch-group - The Spot instance launch group. // - // launch.block-device-mapping.delete-on-termination - Indicates whether - // the Amazon EBS volume is deleted on instance termination. + // * launch.block-device-mapping.delete-on-termination - Indicates whether + // the Amazon EBS volume is deleted on instance termination. // - // launch.block-device-mapping.device-name - The device name for the Amazon - // EBS volume (for example, /dev/sdh). + // * launch.block-device-mapping.device-name - The device name for the Amazon + // EBS volume (for example, /dev/sdh). // - // launch.block-device-mapping.snapshot-id - The ID of the snapshot used - // for the Amazon EBS volume. + // * launch.block-device-mapping.snapshot-id - The ID of the snapshot used + // for the Amazon EBS volume. // - // launch.block-device-mapping.volume-size - The size of the Amazon EBS - // volume, in GiB. + // * launch.block-device-mapping.volume-size - The size of the Amazon EBS + // volume, in GiB. // - // launch.block-device-mapping.volume-type - The type of the Amazon EBS - // volume: gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for - // Throughput Optimized HDD, sc1for Cold HDD, or standard for Magnetic. + // * launch.block-device-mapping.volume-type - The type of the Amazon EBS + // volume: gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 + // for Throughput Optimized HDD, sc1for Cold HDD, or standard for Magnetic. // - // launch.group-id - The security group for the instance. + // * launch.group-id - The security group for the instance. // - // launch.image-id - The ID of the AMI. + // * launch.image-id - The ID of the AMI. // - // launch.instance-type - The type of instance (for example, m3.medium). + // * launch.instance-type - The type of instance (for example, m3.medium). // - // launch.kernel-id - The kernel ID. + // * launch.kernel-id - The kernel ID. // - // launch.key-name - The name of the key pair the instance launched with. + // * launch.key-name - The name of the key pair the instance launched with. // - // launch.monitoring-enabled - Whether monitoring is enabled for the Spot - // instance. + // * launch.monitoring-enabled - Whether monitoring is enabled for the Spot + // instance. // - // launch.ramdisk-id - The RAM disk ID. + // * launch.ramdisk-id - The RAM disk ID. // - // network-interface.network-interface-id - The ID of the network interface. + // * network-interface.network-interface-id - The ID of the network interface. // - // network-interface.device-index - The index of the device for the network - // interface attachment on the instance. + // * network-interface.device-index - The index of the device for the network + // interface attachment on the instance. // - // network-interface.subnet-id - The ID of the subnet for the instance. + // * network-interface.subnet-id - The ID of the subnet for the instance. // - // network-interface.description - A description of the network interface. + // * network-interface.description - A description of the network interface. // - // network-interface.private-ip-address - The primary private IP address - // of the network interface. + // * network-interface.private-ip-address - The primary private IP address + // of the network interface. // - // network-interface.delete-on-termination - Indicates whether the network - // interface is deleted when the instance is terminated. + // * network-interface.delete-on-termination - Indicates whether the network + // interface is deleted when the instance is terminated. // - // network-interface.group-id - The ID of the security group associated - // with the network interface. + // * network-interface.group-id - The ID of the security group associated + // with the network interface. // - // network-interface.group-name - The name of the security group associated - // with the network interface. + // * network-interface.group-name - The name of the security group associated + // with the network interface. // - // network-interface.addresses.primary - Indicates whether the IP address - // is the primary private IP address. + // * network-interface.addresses.primary - Indicates whether the IP address + // is the primary private IP address. // - // product-description - The product description associated with the instance - // (Linux/UNIX | Windows). + // * product-description - The product description associated with the instance + // (Linux/UNIX | Windows). // - // spot-instance-request-id - The Spot instance request ID. + // * spot-instance-request-id - The Spot instance request ID. // - // spot-price - The maximum hourly price for any Spot instance launched - // to fulfill the request. + // * spot-price - The maximum hourly price for any Spot instance launched + // to fulfill the request. // - // state - The state of the Spot instance request (open | active | closed - // | cancelled | failed). Spot bid status information can help you track your - // Amazon EC2 Spot instance requests. For more information, see Spot Bid Status - // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) - // in the Amazon Elastic Compute Cloud User Guide. + // * state - The state of the Spot instance request (open | active | closed + // | cancelled | failed). Spot bid status information can help you track + // your Amazon EC2 Spot instance requests. For more information, see Spot + // Bid Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) + // in the Amazon Elastic Compute Cloud User Guide. // - // status-code - The short code describing the most recent evaluation of - // your Spot instance request. + // * status-code - The short code describing the most recent evaluation of + // your Spot instance request. // - // status-message - The message explaining the status of the Spot instance - // request. + // * status-message - The message explaining the status of the Spot instance + // request. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // type - The type of Spot instance request (one-time | persistent). + // * type - The type of Spot instance request (one-time | persistent). // - // launched-availability-zone - The Availability Zone in which the bid is - // launched. + // * launched-availability-zone - The Availability Zone in which the bid + // is launched. // - // valid-from - The start date of the request. + // * valid-from - The start date of the request. // - // valid-until - The end date of the request. + // * valid-until - The end date of the request. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more Spot instance request IDs. @@ -23911,6 +28013,24 @@ func (s DescribeSpotInstanceRequestsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotInstanceRequestsInput) SetDryRun(v bool) *DescribeSpotInstanceRequestsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSpotInstanceRequestsInput) SetFilters(v []*Filter) *DescribeSpotInstanceRequestsInput { + s.Filters = v + return s +} + +// SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value. +func (s *DescribeSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *DescribeSpotInstanceRequestsInput { + s.SpotInstanceRequestIds = v + return s +} + // Contains the output of DescribeSpotInstanceRequests. type DescribeSpotInstanceRequestsOutput struct { _ struct{} `type:"structure"` @@ -23929,6 +28049,12 @@ func (s DescribeSpotInstanceRequestsOutput) GoString() string { return s.String() } +// SetSpotInstanceRequests sets the SpotInstanceRequests field's value. +func (s *DescribeSpotInstanceRequestsOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *DescribeSpotInstanceRequestsOutput { + s.SpotInstanceRequests = v + return s +} + // Contains the parameters for DescribeSpotPriceHistory. type DescribeSpotPriceHistoryInput struct { _ struct{} `type:"structure"` @@ -23948,21 +28074,21 @@ type DescribeSpotPriceHistoryInput struct { // One or more filters. // - // availability-zone - The Availability Zone for which prices should be - // returned. + // * availability-zone - The Availability Zone for which prices should be + // returned. // - // instance-type - The type of instance (for example, m3.medium). + // * instance-type - The type of instance (for example, m3.medium). // - // product-description - The product description for the Spot price (Linux/UNIX - // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) - // | Windows (Amazon VPC)). + // * product-description - The product description for the Spot price (Linux/UNIX + // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon + // VPC) | Windows (Amazon VPC)). // - // spot-price - The Spot price. The value must match exactly (or use wildcards; - // greater than or less than comparison is not supported). + // * spot-price - The Spot price. The value must match exactly (or use wildcards; + // greater than or less than comparison is not supported). // - // timestamp - The timestamp of the Spot price history, in UTC format (for - // example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater - // than or less than comparison is not supported. + // * timestamp - The timestamp of the Spot price history, in UTC format (for + // example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater + // than or less than comparison is not supported. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // Filters the results by the specified instance types. @@ -23994,6 +28120,60 @@ func (s DescribeSpotPriceHistoryInput) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DescribeSpotPriceHistoryInput) SetAvailabilityZone(v string) *DescribeSpotPriceHistoryInput { + s.AvailabilityZone = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotPriceHistoryInput) SetDryRun(v bool) *DescribeSpotPriceHistoryInput { + s.DryRun = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeSpotPriceHistoryInput) SetEndTime(v time.Time) *DescribeSpotPriceHistoryInput { + s.EndTime = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSpotPriceHistoryInput) SetFilters(v []*Filter) *DescribeSpotPriceHistoryInput { + s.Filters = v + return s +} + +// SetInstanceTypes sets the InstanceTypes field's value. +func (s *DescribeSpotPriceHistoryInput) SetInstanceTypes(v []*string) *DescribeSpotPriceHistoryInput { + s.InstanceTypes = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSpotPriceHistoryInput) SetMaxResults(v int64) *DescribeSpotPriceHistoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotPriceHistoryInput) SetNextToken(v string) *DescribeSpotPriceHistoryInput { + s.NextToken = &v + return s +} + +// SetProductDescriptions sets the ProductDescriptions field's value. +func (s *DescribeSpotPriceHistoryInput) SetProductDescriptions(v []*string) *DescribeSpotPriceHistoryInput { + s.ProductDescriptions = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeSpotPriceHistoryInput) SetStartTime(v time.Time) *DescribeSpotPriceHistoryInput { + s.StartTime = &v + return s +} + // Contains the output of DescribeSpotPriceHistory. type DescribeSpotPriceHistoryOutput struct { _ struct{} `type:"structure"` @@ -24016,6 +28196,18 @@ func (s DescribeSpotPriceHistoryOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotPriceHistoryOutput) SetNextToken(v string) *DescribeSpotPriceHistoryOutput { + s.NextToken = &v + return s +} + +// SetSpotPriceHistory sets the SpotPriceHistory field's value. +func (s *DescribeSpotPriceHistoryOutput) SetSpotPriceHistory(v []*SpotPrice) *DescribeSpotPriceHistoryOutput { + s.SpotPriceHistory = v + return s +} + type DescribeStaleSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -24069,6 +28261,30 @@ func (s *DescribeStaleSecurityGroupsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeStaleSecurityGroupsInput) SetDryRun(v bool) *DescribeStaleSecurityGroupsInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeStaleSecurityGroupsInput) SetMaxResults(v int64) *DescribeStaleSecurityGroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeStaleSecurityGroupsInput) SetNextToken(v string) *DescribeStaleSecurityGroupsInput { + s.NextToken = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DescribeStaleSecurityGroupsInput) SetVpcId(v string) *DescribeStaleSecurityGroupsInput { + s.VpcId = &v + return s +} + type DescribeStaleSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -24090,6 +28306,18 @@ func (s DescribeStaleSecurityGroupsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStaleSecurityGroupsOutput) SetNextToken(v string) *DescribeStaleSecurityGroupsOutput { + s.NextToken = &v + return s +} + +// SetStaleSecurityGroupSet sets the StaleSecurityGroupSet field's value. +func (s *DescribeStaleSecurityGroupsOutput) SetStaleSecurityGroupSet(v []*StaleSecurityGroup) *DescribeStaleSecurityGroupsOutput { + s.StaleSecurityGroupSet = v + return s +} + // Contains the parameters for DescribeSubnets. type DescribeSubnetsInput struct { _ struct{} `type:"structure"` @@ -24102,36 +28330,37 @@ type DescribeSubnetsInput struct { // One or more filters. // - // availabilityZone - The Availability Zone for the subnet. You can also - // use availability-zone as the filter name. + // * availabilityZone - The Availability Zone for the subnet. You can also + // use availability-zone as the filter name. // - // available-ip-address-count - The number of IP addresses in the subnet - // that are available. + // * available-ip-address-count - The number of IP addresses in the subnet + // that are available. // - // cidrBlock - The CIDR block of the subnet. The CIDR block you specify - // must exactly match the subnet's CIDR block for information to be returned - // for the subnet. You can also use cidr or cidr-block as the filter names. + // * cidrBlock - The CIDR block of the subnet. The CIDR block you specify + // must exactly match the subnet's CIDR block for information to be returned + // for the subnet. You can also use cidr or cidr-block as the filter names. // - // defaultForAz - Indicates whether this is the default subnet for the Availability - // Zone. You can also use default-for-az as the filter name. + // * defaultForAz - Indicates whether this is the default subnet for the + // Availability Zone. You can also use default-for-az as the filter name. // - // state - The state of the subnet (pending | available). + // * state - The state of the subnet (pending | available). // - // subnet-id - The ID of the subnet. + // * subnet-id - The ID of the subnet. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-id - The ID of the VPC for the subnet. + // * vpc-id - The ID of the VPC for the subnet. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more subnet IDs. @@ -24150,6 +28379,24 @@ func (s DescribeSubnetsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSubnetsInput) SetDryRun(v bool) *DescribeSubnetsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSubnetsInput) SetFilters(v []*Filter) *DescribeSubnetsInput { + s.Filters = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput { + s.SubnetIds = v + return s +} + // Contains the output of DescribeSubnets. type DescribeSubnetsOutput struct { _ struct{} `type:"structure"` @@ -24168,6 +28415,12 @@ func (s DescribeSubnetsOutput) GoString() string { return s.String() } +// SetSubnets sets the Subnets field's value. +func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput { + s.Subnets = v + return s +} + // Contains the parameters for DescribeTags. type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -24180,16 +28433,16 @@ type DescribeTagsInput struct { // One or more filters. // - // key - The tag key. + // * key - The tag key. // - // resource-id - The resource ID. + // * resource-id - The resource ID. // - // resource-type - The resource type (customer-gateway | dhcp-options | - // image | instance | internet-gateway | network-acl | network-interface | reserved-instances - // | route-table | security-group | snapshot | spot-instances-request | subnet - // | volume | vpc | vpn-connection | vpn-gateway). + // * resource-type - The resource type (customer-gateway | dhcp-options | + // image | instance | internet-gateway | network-acl | network-interface + // | reserved-instances | route-table | security-group | snapshot | spot-instances-request + // | subnet | volume | vpc | vpn-connection | vpn-gateway). // - // value - The tag value. + // * value - The tag value. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of results to return in a single call. This value can @@ -24211,6 +28464,30 @@ func (s DescribeTagsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeTagsInput) SetDryRun(v bool) *DescribeTagsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeTags. type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -24233,6 +28510,18 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput { + s.Tags = v + return s +} + // Contains the parameters for DescribeVolumeAttribute. type DescribeVolumeAttributeInput struct { _ struct{} `type:"structure"` @@ -24275,6 +28564,24 @@ func (s *DescribeVolumeAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeVolumeAttributeInput) SetAttribute(v string) *DescribeVolumeAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVolumeAttributeInput) SetDryRun(v bool) *DescribeVolumeAttributeInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *DescribeVolumeAttributeInput) SetVolumeId(v string) *DescribeVolumeAttributeInput { + s.VolumeId = &v + return s +} + // Contains the output of DescribeVolumeAttribute. type DescribeVolumeAttributeOutput struct { _ struct{} `type:"structure"` @@ -24299,6 +28606,24 @@ func (s DescribeVolumeAttributeOutput) GoString() string { return s.String() } +// SetAutoEnableIO sets the AutoEnableIO field's value. +func (s *DescribeVolumeAttributeOutput) SetAutoEnableIO(v *AttributeBooleanValue) *DescribeVolumeAttributeOutput { + s.AutoEnableIO = v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *DescribeVolumeAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeVolumeAttributeOutput { + s.ProductCodes = v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *DescribeVolumeAttributeOutput) SetVolumeId(v string) *DescribeVolumeAttributeOutput { + s.VolumeId = &v + return s +} + // Contains the parameters for DescribeVolumeStatus. type DescribeVolumeStatusInput struct { _ struct{} `type:"structure"` @@ -24311,35 +28636,35 @@ type DescribeVolumeStatusInput struct { // One or more filters. // - // action.code - The action code for the event (for example, enable-volume-io). + // * action.code - The action code for the event (for example, enable-volume-io). // - // action.description - A description of the action. + // * action.description - A description of the action. // - // action.event-id - The event ID associated with the action. + // * action.event-id - The event ID associated with the action. // - // availability-zone - The Availability Zone of the instance. + // * availability-zone - The Availability Zone of the instance. // - // event.description - A description of the event. + // * event.description - A description of the event. // - // event.event-id - The event ID. + // * event.event-id - The event ID. // - // event.event-type - The event type (for io-enabled: passed | failed; for - // io-performance: io-performance:degraded | io-performance:severely-degraded - // | io-performance:stalled). + // * event.event-type - The event type (for io-enabled: passed | failed; + // for io-performance: io-performance:degraded | io-performance:severely-degraded + // | io-performance:stalled). // - // event.not-after - The latest end time for the event. + // * event.not-after - The latest end time for the event. // - // event.not-before - The earliest start time for the event. + // * event.not-before - The earliest start time for the event. // - // volume-status.details-name - The cause for volume-status.status (io-enabled - // | io-performance). + // * volume-status.details-name - The cause for volume-status.status (io-enabled + // | io-performance). // - // volume-status.details-status - The status of volume-status.details-name - // (for io-enabled: passed | failed; for io-performance: normal | degraded | - // severely-degraded | stalled). + // * volume-status.details-status - The status of volume-status.details-name + // (for io-enabled: passed | failed; for io-performance: normal | degraded + // | severely-degraded | stalled). // - // volume-status.status - The status of the volume (ok | impaired | warning - // | insufficient-data). + // * volume-status.status - The status of the volume (ok | impaired | warning + // | insufficient-data). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of volume results returned by DescribeVolumeStatus in @@ -24374,6 +28699,36 @@ func (s DescribeVolumeStatusInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVolumeStatusInput) SetDryRun(v bool) *DescribeVolumeStatusInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVolumeStatusInput) SetFilters(v []*Filter) *DescribeVolumeStatusInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVolumeStatusInput) SetMaxResults(v int64) *DescribeVolumeStatusInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumeStatusInput) SetNextToken(v string) *DescribeVolumeStatusInput { + s.NextToken = &v + return s +} + +// SetVolumeIds sets the VolumeIds field's value. +func (s *DescribeVolumeStatusInput) SetVolumeIds(v []*string) *DescribeVolumeStatusInput { + s.VolumeIds = v + return s +} + // Contains the output of DescribeVolumeStatus. type DescribeVolumeStatusOutput struct { _ struct{} `type:"structure"` @@ -24396,6 +28751,18 @@ func (s DescribeVolumeStatusOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumeStatusOutput) SetNextToken(v string) *DescribeVolumeStatusOutput { + s.NextToken = &v + return s +} + +// SetVolumeStatuses sets the VolumeStatuses field's value. +func (s *DescribeVolumeStatusOutput) SetVolumeStatuses(v []*VolumeStatusItem) *DescribeVolumeStatusOutput { + s.VolumeStatuses = v + return s +} + // Contains the parameters for DescribeVolumes. type DescribeVolumesInput struct { _ struct{} `type:"structure"` @@ -24408,50 +28775,51 @@ type DescribeVolumesInput struct { // One or more filters. // - // attachment.attach-time - The time stamp when the attachment initiated. + // * attachment.attach-time - The time stamp when the attachment initiated. // - // attachment.delete-on-termination - Whether the volume is deleted on instance - // termination. + // * attachment.delete-on-termination - Whether the volume is deleted on + // instance termination. // - // attachment.device - The device name that is exposed to the instance (for - // example, /dev/sda1). + // * attachment.device - The device name that is exposed to the instance + // (for example, /dev/sda1). // - // attachment.instance-id - The ID of the instance the volume is attached - // to. + // * attachment.instance-id - The ID of the instance the volume is attached + // to. // - // attachment.status - The attachment state (attaching | attached | detaching - // | detached). + // * attachment.status - The attachment state (attaching | attached | detaching + // | detached). // - // availability-zone - The Availability Zone in which the volume was created. + // * availability-zone - The Availability Zone in which the volume was created. // - // create-time - The time stamp when the volume was created. + // * create-time - The time stamp when the volume was created. // - // encrypted - The encryption status of the volume. + // * encrypted - The encryption status of the volume. // - // size - The size of the volume, in GiB. + // * size - The size of the volume, in GiB. // - // snapshot-id - The snapshot from which the volume was created. + // * snapshot-id - The snapshot from which the volume was created. // - // status - The status of the volume (creating | available | in-use | deleting - // | deleted | error). + // * status - The status of the volume (creating | available | in-use | deleting + // | deleted | error). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // volume-id - The volume ID. + // * volume-id - The volume ID. // - // volume-type - The Amazon EBS volume type. This can be gp2 for General - // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, - // sc1 for Cold HDD, or standard for Magnetic volumes. + // * volume-type - The Amazon EBS volume type. This can be gp2 for General + // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized + // HDD, sc1 for Cold HDD, or standard for Magnetic volumes. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of volume results returned by DescribeVolumes in paginated @@ -24485,6 +28853,36 @@ func (s DescribeVolumesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVolumesInput) SetDryRun(v bool) *DescribeVolumesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVolumesInput) SetFilters(v []*Filter) *DescribeVolumesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVolumesInput) SetMaxResults(v int64) *DescribeVolumesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumesInput) SetNextToken(v string) *DescribeVolumesInput { + s.NextToken = &v + return s +} + +// SetVolumeIds sets the VolumeIds field's value. +func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput { + s.VolumeIds = v + return s +} + // Contains the output of DescribeVolumes. type DescribeVolumesOutput struct { _ struct{} `type:"structure"` @@ -24509,6 +28907,18 @@ func (s DescribeVolumesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumesOutput) SetNextToken(v string) *DescribeVolumesOutput { + s.NextToken = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput { + s.Volumes = v + return s +} + // Contains the parameters for DescribeVpcAttribute. type DescribeVpcAttributeInput struct { _ struct{} `type:"structure"` @@ -24556,6 +28966,24 @@ func (s *DescribeVpcAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeVpcAttributeInput) SetAttribute(v string) *DescribeVpcAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcAttributeInput) SetDryRun(v bool) *DescribeVpcAttributeInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DescribeVpcAttributeInput) SetVpcId(v string) *DescribeVpcAttributeInput { + s.VpcId = &v + return s +} + // Contains the output of DescribeVpcAttribute. type DescribeVpcAttributeOutput struct { _ struct{} `type:"structure"` @@ -24584,6 +29012,24 @@ func (s DescribeVpcAttributeOutput) GoString() string { return s.String() } +// SetEnableDnsHostnames sets the EnableDnsHostnames field's value. +func (s *DescribeVpcAttributeOutput) SetEnableDnsHostnames(v *AttributeBooleanValue) *DescribeVpcAttributeOutput { + s.EnableDnsHostnames = v + return s +} + +// SetEnableDnsSupport sets the EnableDnsSupport field's value. +func (s *DescribeVpcAttributeOutput) SetEnableDnsSupport(v *AttributeBooleanValue) *DescribeVpcAttributeOutput { + s.EnableDnsSupport = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DescribeVpcAttributeOutput) SetVpcId(v string) *DescribeVpcAttributeOutput { + s.VpcId = &v + return s +} + // Contains the parameters for DescribeVpcClassicLinkDnsSupport. type DescribeVpcClassicLinkDnsSupportInput struct { _ struct{} `type:"structure"` @@ -24627,6 +29073,24 @@ func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcClassicLinkDnsSupportInput) SetMaxResults(v int64) *DescribeVpcClassicLinkDnsSupportInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcClassicLinkDnsSupportInput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportInput { + s.NextToken = &v + return s +} + +// SetVpcIds sets the VpcIds field's value. +func (s *DescribeVpcClassicLinkDnsSupportInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkDnsSupportInput { + s.VpcIds = v + return s +} + // Contains the output of DescribeVpcClassicLinkDnsSupport. type DescribeVpcClassicLinkDnsSupportOutput struct { _ struct{} `type:"structure"` @@ -24648,6 +29112,18 @@ func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcClassicLinkDnsSupportOutput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportOutput { + s.NextToken = &v + return s +} + +// SetVpcs sets the Vpcs field's value. +func (s *DescribeVpcClassicLinkDnsSupportOutput) SetVpcs(v []*ClassicLinkDnsSupport) *DescribeVpcClassicLinkDnsSupportOutput { + s.Vpcs = v + return s +} + // Contains the parameters for DescribeVpcClassicLink. type DescribeVpcClassicLinkInput struct { _ struct{} `type:"structure"` @@ -24660,20 +29136,21 @@ type DescribeVpcClassicLinkInput struct { // One or more filters. // - // is-classic-link-enabled - Whether the VPC is enabled for ClassicLink - // (true | false). + // * is-classic-link-enabled - Whether the VPC is enabled for ClassicLink + // (true | false). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more VPCs for which you want to describe the ClassicLink status. @@ -24690,6 +29167,24 @@ func (s DescribeVpcClassicLinkInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcClassicLinkInput) SetDryRun(v bool) *DescribeVpcClassicLinkInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcClassicLinkInput) SetFilters(v []*Filter) *DescribeVpcClassicLinkInput { + s.Filters = v + return s +} + +// SetVpcIds sets the VpcIds field's value. +func (s *DescribeVpcClassicLinkInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkInput { + s.VpcIds = v + return s +} + // Contains the output of DescribeVpcClassicLink. type DescribeVpcClassicLinkOutput struct { _ struct{} `type:"structure"` @@ -24708,6 +29203,12 @@ func (s DescribeVpcClassicLinkOutput) GoString() string { return s.String() } +// SetVpcs sets the Vpcs field's value. +func (s *DescribeVpcClassicLinkOutput) SetVpcs(v []*VpcClassicLink) *DescribeVpcClassicLinkOutput { + s.Vpcs = v + return s +} + // Contains the parameters for DescribeVpcEndpointServices. type DescribeVpcEndpointServicesInput struct { _ struct{} `type:"structure"` @@ -24740,6 +29241,24 @@ func (s DescribeVpcEndpointServicesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcEndpointServicesInput) SetDryRun(v bool) *DescribeVpcEndpointServicesInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcEndpointServicesInput) SetMaxResults(v int64) *DescribeVpcEndpointServicesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointServicesInput) SetNextToken(v string) *DescribeVpcEndpointServicesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeVpcEndpointServices. type DescribeVpcEndpointServicesOutput struct { _ struct{} `type:"structure"` @@ -24762,6 +29281,18 @@ func (s DescribeVpcEndpointServicesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointServicesOutput) SetNextToken(v string) *DescribeVpcEndpointServicesOutput { + s.NextToken = &v + return s +} + +// SetServiceNames sets the ServiceNames field's value. +func (s *DescribeVpcEndpointServicesOutput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesOutput { + s.ServiceNames = v + return s +} + // Contains the parameters for DescribeVpcEndpoints. type DescribeVpcEndpointsInput struct { _ struct{} `type:"structure"` @@ -24774,14 +29305,14 @@ type DescribeVpcEndpointsInput struct { // One or more filters. // - // service-name: The name of the AWS service. + // * service-name: The name of the AWS service. // - // vpc-id: The ID of the VPC in which the endpoint resides. + // * vpc-id: The ID of the VPC in which the endpoint resides. // - // vpc-endpoint-id: The ID of the endpoint. + // * vpc-endpoint-id: The ID of the endpoint. // - // vpc-endpoint-state: The state of the endpoint. (pending | available | - // deleting | deleted) + // * vpc-endpoint-state: The state of the endpoint. (pending | available + // | deleting | deleted) Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of items to return for this request. The request returns @@ -24809,6 +29340,36 @@ func (s DescribeVpcEndpointsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcEndpointsInput) SetDryRun(v bool) *DescribeVpcEndpointsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcEndpointsInput) SetFilters(v []*Filter) *DescribeVpcEndpointsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcEndpointsInput) SetMaxResults(v int64) *DescribeVpcEndpointsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointsInput) SetNextToken(v string) *DescribeVpcEndpointsInput { + s.NextToken = &v + return s +} + +// SetVpcEndpointIds sets the VpcEndpointIds field's value. +func (s *DescribeVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DescribeVpcEndpointsInput { + s.VpcEndpointIds = v + return s +} + // Contains the output of DescribeVpcEndpoints. type DescribeVpcEndpointsOutput struct { _ struct{} `type:"structure"` @@ -24831,6 +29392,18 @@ func (s DescribeVpcEndpointsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointsOutput) SetNextToken(v string) *DescribeVpcEndpointsOutput { + s.NextToken = &v + return s +} + +// SetVpcEndpoints sets the VpcEndpoints field's value. +func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *DescribeVpcEndpointsOutput { + s.VpcEndpoints = v + return s +} + // Contains the parameters for DescribeVpcPeeringConnections. type DescribeVpcPeeringConnectionsInput struct { _ struct{} `type:"structure"` @@ -24843,41 +29416,42 @@ type DescribeVpcPeeringConnectionsInput struct { // One or more filters. // - // accepter-vpc-info.cidr-block - The CIDR block of the peer VPC. + // * accepter-vpc-info.cidr-block - The CIDR block of the peer VPC. // - // accepter-vpc-info.owner-id - The AWS account ID of the owner of the peer - // VPC. + // * accepter-vpc-info.owner-id - The AWS account ID of the owner of the + // peer VPC. // - // accepter-vpc-info.vpc-id - The ID of the peer VPC. + // * accepter-vpc-info.vpc-id - The ID of the peer VPC. // - // expiration-time - The expiration date and time for the VPC peering connection. + // * expiration-time - The expiration date and time for the VPC peering connection. // - // requester-vpc-info.cidr-block - The CIDR block of the requester's VPC. + // * requester-vpc-info.cidr-block - The CIDR block of the requester's VPC. // - // requester-vpc-info.owner-id - The AWS account ID of the owner of the - // requester VPC. + // * requester-vpc-info.owner-id - The AWS account ID of the owner of the + // requester VPC. // - // requester-vpc-info.vpc-id - The ID of the requester VPC. + // * requester-vpc-info.vpc-id - The ID of the requester VPC. // - // status-code - The status of the VPC peering connection (pending-acceptance - // | failed | expired | provisioning | active | deleted | rejected). + // * status-code - The status of the VPC peering connection (pending-acceptance + // | failed | expired | provisioning | active | deleted | rejected). // - // status-message - A message that provides more information about the status - // of the VPC peering connection, if applicable. + // * status-message - A message that provides more information about the + // status of the VPC peering connection, if applicable. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-peering-connection-id - The ID of the VPC peering connection. + // * vpc-peering-connection-id - The ID of the VPC peering connection. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more VPC peering connection IDs. @@ -24896,6 +29470,24 @@ func (s DescribeVpcPeeringConnectionsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcPeeringConnectionsInput) SetDryRun(v bool) *DescribeVpcPeeringConnectionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcPeeringConnectionsInput) SetFilters(v []*Filter) *DescribeVpcPeeringConnectionsInput { + s.Filters = v + return s +} + +// SetVpcPeeringConnectionIds sets the VpcPeeringConnectionIds field's value. +func (s *DescribeVpcPeeringConnectionsInput) SetVpcPeeringConnectionIds(v []*string) *DescribeVpcPeeringConnectionsInput { + s.VpcPeeringConnectionIds = v + return s +} + // Contains the output of DescribeVpcPeeringConnections. type DescribeVpcPeeringConnectionsOutput struct { _ struct{} `type:"structure"` @@ -24914,6 +29506,12 @@ func (s DescribeVpcPeeringConnectionsOutput) GoString() string { return s.String() } +// SetVpcPeeringConnections sets the VpcPeeringConnections field's value. +func (s *DescribeVpcPeeringConnectionsOutput) SetVpcPeeringConnections(v []*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput { + s.VpcPeeringConnections = v + return s +} + // Contains the parameters for DescribeVpcs. type DescribeVpcsInput struct { _ struct{} `type:"structure"` @@ -24926,29 +29524,30 @@ type DescribeVpcsInput struct { // One or more filters. // - // cidr - The CIDR block of the VPC. The CIDR block you specify must exactly - // match the VPC's CIDR block for information to be returned for the VPC. Must - // contain the slash followed by one or two digits (for example, /28). + // * cidr - The CIDR block of the VPC. The CIDR block you specify must exactly + // match the VPC's CIDR block for information to be returned for the VPC. + // Must contain the slash followed by one or two digits (for example, /28). // - // dhcp-options-id - The ID of a set of DHCP options. + // * dhcp-options-id - The ID of a set of DHCP options. // - // isDefault - Indicates whether the VPC is the default VPC. + // * isDefault - Indicates whether the VPC is the default VPC. // - // state - The state of the VPC (pending | available). + // * state - The state of the VPC (pending | available). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-id - The ID of the VPC. + // * vpc-id - The ID of the VPC. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more VPC IDs. @@ -24967,6 +29566,24 @@ func (s DescribeVpcsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcsInput) SetDryRun(v bool) *DescribeVpcsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcsInput) SetFilters(v []*Filter) *DescribeVpcsInput { + s.Filters = v + return s +} + +// SetVpcIds sets the VpcIds field's value. +func (s *DescribeVpcsInput) SetVpcIds(v []*string) *DescribeVpcsInput { + s.VpcIds = v + return s +} + // Contains the output of DescribeVpcs. type DescribeVpcsOutput struct { _ struct{} `type:"structure"` @@ -24985,6 +29602,12 @@ func (s DescribeVpcsOutput) GoString() string { return s.String() } +// SetVpcs sets the Vpcs field's value. +func (s *DescribeVpcsOutput) SetVpcs(v []*Vpc) *DescribeVpcsOutput { + s.Vpcs = v + return s +} + // Contains the parameters for DescribeVpnConnections. type DescribeVpnConnectionsInput struct { _ struct{} `type:"structure"` @@ -24997,44 +29620,45 @@ type DescribeVpnConnectionsInput struct { // One or more filters. // - // customer-gateway-configuration - The configuration information for the - // customer gateway. + // * customer-gateway-configuration - The configuration information for the + // customer gateway. // - // customer-gateway-id - The ID of a customer gateway associated with the - // VPN connection. + // * customer-gateway-id - The ID of a customer gateway associated with the + // VPN connection. // - // state - The state of the VPN connection (pending | available | deleting - // | deleted). + // * state - The state of the VPN connection (pending | available | deleting + // | deleted). // - // option.static-routes-only - Indicates whether the connection has static - // routes only. Used for devices that do not support Border Gateway Protocol - // (BGP). + // * option.static-routes-only - Indicates whether the connection has static + // routes only. Used for devices that do not support Border Gateway Protocol + // (BGP). // - // route.destination-cidr-block - The destination CIDR block. This corresponds - // to the subnet used in a customer data center. + // * route.destination-cidr-block - The destination CIDR block. This corresponds + // to the subnet used in a customer data center. // - // bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP - // device. + // * bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP + // device. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // type - The type of VPN connection. Currently the only supported type - // is ipsec.1. + // * type - The type of VPN connection. Currently the only supported type + // is ipsec.1. // - // vpn-connection-id - The ID of the VPN connection. + // * vpn-connection-id - The ID of the VPN connection. // - // vpn-gateway-id - The ID of a virtual private gateway associated with - // the VPN connection. + // * vpn-gateway-id - The ID of a virtual private gateway associated with + // the VPN connection. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more VPN connection IDs. @@ -25053,6 +29677,24 @@ func (s DescribeVpnConnectionsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpnConnectionsInput) SetDryRun(v bool) *DescribeVpnConnectionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpnConnectionsInput) SetFilters(v []*Filter) *DescribeVpnConnectionsInput { + s.Filters = v + return s +} + +// SetVpnConnectionIds sets the VpnConnectionIds field's value. +func (s *DescribeVpnConnectionsInput) SetVpnConnectionIds(v []*string) *DescribeVpnConnectionsInput { + s.VpnConnectionIds = v + return s +} + // Contains the output of DescribeVpnConnections. type DescribeVpnConnectionsOutput struct { _ struct{} `type:"structure"` @@ -25071,6 +29713,12 @@ func (s DescribeVpnConnectionsOutput) GoString() string { return s.String() } +// SetVpnConnections sets the VpnConnections field's value. +func (s *DescribeVpnConnectionsOutput) SetVpnConnections(v []*VpnConnection) *DescribeVpnConnectionsOutput { + s.VpnConnections = v + return s +} + // Contains the parameters for DescribeVpnGateways. type DescribeVpnGatewaysInput struct { _ struct{} `type:"structure"` @@ -25083,33 +29731,34 @@ type DescribeVpnGatewaysInput struct { // One or more filters. // - // attachment.state - The current state of the attachment between the gateway - // and the VPC (attaching | attached | detaching | detached). + // * attachment.state - The current state of the attachment between the gateway + // and the VPC (attaching | attached | detaching | detached). // - // attachment.vpc-id - The ID of an attached VPC. + // * attachment.vpc-id - The ID of an attached VPC. // - // availability-zone - The Availability Zone for the virtual private gateway - // (if applicable). + // * availability-zone - The Availability Zone for the virtual private gateway + // (if applicable). // - // state - The state of the virtual private gateway (pending | available - // | deleting | deleted). + // * state - The state of the virtual private gateway (pending | available + // | deleting | deleted). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // type - The type of virtual private gateway. Currently the only supported - // type is ipsec.1. + // * type - The type of virtual private gateway. Currently the only supported + // type is ipsec.1. // - // vpn-gateway-id - The ID of the virtual private gateway. + // * vpn-gateway-id - The ID of the virtual private gateway. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more virtual private gateway IDs. @@ -25128,6 +29777,24 @@ func (s DescribeVpnGatewaysInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpnGatewaysInput) SetDryRun(v bool) *DescribeVpnGatewaysInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpnGatewaysInput) SetFilters(v []*Filter) *DescribeVpnGatewaysInput { + s.Filters = v + return s +} + +// SetVpnGatewayIds sets the VpnGatewayIds field's value. +func (s *DescribeVpnGatewaysInput) SetVpnGatewayIds(v []*string) *DescribeVpnGatewaysInput { + s.VpnGatewayIds = v + return s +} + // Contains the output of DescribeVpnGateways. type DescribeVpnGatewaysOutput struct { _ struct{} `type:"structure"` @@ -25146,6 +29813,12 @@ func (s DescribeVpnGatewaysOutput) GoString() string { return s.String() } +// SetVpnGateways sets the VpnGateways field's value. +func (s *DescribeVpnGatewaysOutput) SetVpnGateways(v []*VpnGateway) *DescribeVpnGatewaysOutput { + s.VpnGateways = v + return s +} + // Contains the parameters for DetachClassicLinkVpc. type DetachClassicLinkVpcInput struct { _ struct{} `type:"structure"` @@ -25193,6 +29866,24 @@ func (s *DetachClassicLinkVpcInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DetachClassicLinkVpcInput) SetDryRun(v bool) *DetachClassicLinkVpcInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DetachClassicLinkVpcInput) SetInstanceId(v string) *DetachClassicLinkVpcInput { + s.InstanceId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DetachClassicLinkVpcInput) SetVpcId(v string) *DetachClassicLinkVpcInput { + s.VpcId = &v + return s +} + // Contains the output of DetachClassicLinkVpc. type DetachClassicLinkVpcOutput struct { _ struct{} `type:"structure"` @@ -25211,6 +29902,12 @@ func (s DetachClassicLinkVpcOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *DetachClassicLinkVpcOutput) SetReturn(v bool) *DetachClassicLinkVpcOutput { + s.Return = &v + return s +} + // Contains the parameters for DetachInternetGateway. type DetachInternetGatewayInput struct { _ struct{} `type:"structure"` @@ -25258,6 +29955,24 @@ func (s *DetachInternetGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DetachInternetGatewayInput) SetDryRun(v bool) *DetachInternetGatewayInput { + s.DryRun = &v + return s +} + +// SetInternetGatewayId sets the InternetGatewayId field's value. +func (s *DetachInternetGatewayInput) SetInternetGatewayId(v string) *DetachInternetGatewayInput { + s.InternetGatewayId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DetachInternetGatewayInput) SetVpcId(v string) *DetachInternetGatewayInput { + s.VpcId = &v + return s +} + type DetachInternetGatewayOutput struct { _ struct{} `type:"structure"` } @@ -25314,6 +30029,24 @@ func (s *DetachNetworkInterfaceInput) Validate() error { return nil } +// SetAttachmentId sets the AttachmentId field's value. +func (s *DetachNetworkInterfaceInput) SetAttachmentId(v string) *DetachNetworkInterfaceInput { + s.AttachmentId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DetachNetworkInterfaceInput) SetDryRun(v bool) *DetachNetworkInterfaceInput { + s.DryRun = &v + return s +} + +// SetForce sets the Force field's value. +func (s *DetachNetworkInterfaceInput) SetForce(v bool) *DetachNetworkInterfaceInput { + s.Force = &v + return s +} + type DetachNetworkInterfaceOutput struct { _ struct{} `type:"structure"` } @@ -25382,6 +30115,36 @@ func (s *DetachVolumeInput) Validate() error { return nil } +// SetDevice sets the Device field's value. +func (s *DetachVolumeInput) SetDevice(v string) *DetachVolumeInput { + s.Device = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DetachVolumeInput) SetDryRun(v bool) *DetachVolumeInput { + s.DryRun = &v + return s +} + +// SetForce sets the Force field's value. +func (s *DetachVolumeInput) SetForce(v bool) *DetachVolumeInput { + s.Force = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DetachVolumeInput) SetInstanceId(v string) *DetachVolumeInput { + s.InstanceId = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *DetachVolumeInput) SetVolumeId(v string) *DetachVolumeInput { + s.VolumeId = &v + return s +} + // Contains the parameters for DetachVpnGateway. type DetachVpnGatewayInput struct { _ struct{} `type:"structure"` @@ -25429,6 +30192,24 @@ func (s *DetachVpnGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DetachVpnGatewayInput) SetDryRun(v bool) *DetachVpnGatewayInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DetachVpnGatewayInput) SetVpcId(v string) *DetachVpnGatewayInput { + s.VpcId = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *DetachVpnGatewayInput) SetVpnGatewayId(v string) *DetachVpnGatewayInput { + s.VpnGatewayId = &v + return s +} + type DetachVpnGatewayOutput struct { _ struct{} `type:"structure"` } @@ -25464,6 +30245,18 @@ func (s DhcpConfiguration) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *DhcpConfiguration) SetKey(v string) *DhcpConfiguration { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *DhcpConfiguration) SetValues(v []*AttributeValue) *DhcpConfiguration { + s.Values = v + return s +} + // Describes a set of DHCP options. type DhcpOptions struct { _ struct{} `type:"structure"` @@ -25488,6 +30281,24 @@ func (s DhcpOptions) GoString() string { return s.String() } +// SetDhcpConfigurations sets the DhcpConfigurations field's value. +func (s *DhcpOptions) SetDhcpConfigurations(v []*DhcpConfiguration) *DhcpOptions { + s.DhcpConfigurations = v + return s +} + +// SetDhcpOptionsId sets the DhcpOptionsId field's value. +func (s *DhcpOptions) SetDhcpOptionsId(v string) *DhcpOptions { + s.DhcpOptionsId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DhcpOptions) SetTags(v []*Tag) *DhcpOptions { + s.Tags = v + return s +} + // Contains the parameters for DisableVgwRoutePropagation. type DisableVgwRoutePropagationInput struct { _ struct{} `type:"structure"` @@ -25529,6 +30340,18 @@ func (s *DisableVgwRoutePropagationInput) Validate() error { return nil } +// SetGatewayId sets the GatewayId field's value. +func (s *DisableVgwRoutePropagationInput) SetGatewayId(v string) *DisableVgwRoutePropagationInput { + s.GatewayId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *DisableVgwRoutePropagationInput) SetRouteTableId(v string) *DisableVgwRoutePropagationInput { + s.RouteTableId = &v + return s +} + type DisableVgwRoutePropagationOutput struct { _ struct{} `type:"structure"` } @@ -25561,6 +30384,12 @@ func (s DisableVpcClassicLinkDnsSupportInput) GoString() string { return s.String() } +// SetVpcId sets the VpcId field's value. +func (s *DisableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *DisableVpcClassicLinkDnsSupportInput { + s.VpcId = &v + return s +} + // Contains the output of DisableVpcClassicLinkDnsSupport. type DisableVpcClassicLinkDnsSupportOutput struct { _ struct{} `type:"structure"` @@ -25579,6 +30408,12 @@ func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *DisableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *DisableVpcClassicLinkDnsSupportOutput { + s.Return = &v + return s +} + // Contains the parameters for DisableVpcClassicLink. type DisableVpcClassicLinkInput struct { _ struct{} `type:"structure"` @@ -25618,6 +30453,18 @@ func (s *DisableVpcClassicLinkInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DisableVpcClassicLinkInput) SetDryRun(v bool) *DisableVpcClassicLinkInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DisableVpcClassicLinkInput) SetVpcId(v string) *DisableVpcClassicLinkInput { + s.VpcId = &v + return s +} + // Contains the output of DisableVpcClassicLink. type DisableVpcClassicLinkOutput struct { _ struct{} `type:"structure"` @@ -25636,6 +30483,12 @@ func (s DisableVpcClassicLinkOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *DisableVpcClassicLinkOutput) SetReturn(v bool) *DisableVpcClassicLinkOutput { + s.Return = &v + return s +} + // Contains the parameters for DisassociateAddress. type DisassociateAddressInput struct { _ struct{} `type:"structure"` @@ -25663,6 +30516,24 @@ func (s DisassociateAddressInput) GoString() string { return s.String() } +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateAddressInput) SetAssociationId(v string) *DisassociateAddressInput { + s.AssociationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DisassociateAddressInput) SetDryRun(v bool) *DisassociateAddressInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *DisassociateAddressInput) SetPublicIp(v string) *DisassociateAddressInput { + s.PublicIp = &v + return s +} + type DisassociateAddressOutput struct { _ struct{} `type:"structure"` } @@ -25717,6 +30588,18 @@ func (s *DisassociateRouteTableInput) Validate() error { return nil } +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateRouteTableInput) SetAssociationId(v string) *DisassociateRouteTableInput { + s.AssociationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DisassociateRouteTableInput) SetDryRun(v bool) *DisassociateRouteTableInput { + s.DryRun = &v + return s +} + type DisassociateRouteTableOutput struct { _ struct{} `type:"structure"` } @@ -25775,6 +30658,24 @@ func (s *DiskImage) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *DiskImage) SetDescription(v string) *DiskImage { + s.Description = &v + return s +} + +// SetImage sets the Image field's value. +func (s *DiskImage) SetImage(v *DiskImageDetail) *DiskImage { + s.Image = v + return s +} + +// SetVolume sets the Volume field's value. +func (s *DiskImage) SetVolume(v *VolumeDetail) *DiskImage { + s.Volume = v + return s +} + // Describes a disk image. type DiskImageDescription struct { _ struct{} `type:"structure"` @@ -25815,6 +30716,30 @@ func (s DiskImageDescription) GoString() string { return s.String() } +// SetChecksum sets the Checksum field's value. +func (s *DiskImageDescription) SetChecksum(v string) *DiskImageDescription { + s.Checksum = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *DiskImageDescription) SetFormat(v string) *DiskImageDescription { + s.Format = &v + return s +} + +// SetImportManifestUrl sets the ImportManifestUrl field's value. +func (s *DiskImageDescription) SetImportManifestUrl(v string) *DiskImageDescription { + s.ImportManifestUrl = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DiskImageDescription) SetSize(v int64) *DiskImageDescription { + s.Size = &v + return s +} + // Describes a disk image. type DiskImageDetail struct { _ struct{} `type:"structure"` @@ -25871,6 +30796,24 @@ func (s *DiskImageDetail) Validate() error { return nil } +// SetBytes sets the Bytes field's value. +func (s *DiskImageDetail) SetBytes(v int64) *DiskImageDetail { + s.Bytes = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *DiskImageDetail) SetFormat(v string) *DiskImageDetail { + s.Format = &v + return s +} + +// SetImportManifestUrl sets the ImportManifestUrl field's value. +func (s *DiskImageDetail) SetImportManifestUrl(v string) *DiskImageDetail { + s.ImportManifestUrl = &v + return s +} + // Describes a disk image volume. type DiskImageVolumeDescription struct { _ struct{} `type:"structure"` @@ -25894,6 +30837,18 @@ func (s DiskImageVolumeDescription) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *DiskImageVolumeDescription) SetId(v string) *DiskImageVolumeDescription { + s.Id = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DiskImageVolumeDescription) SetSize(v int64) *DiskImageVolumeDescription { + s.Size = &v + return s +} + // Describes a block device for an EBS volume. type EbsBlockDevice struct { _ struct{} `type:"structure"` @@ -25951,6 +30906,42 @@ func (s EbsBlockDevice) GoString() string { return s.String() } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice { + s.DeleteOnTermination = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *EbsBlockDevice) SetEncrypted(v bool) *EbsBlockDevice { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice { + s.Iops = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice { + s.VolumeType = &v + return s +} + // Describes a parameter used to set up an EBS volume in a block device mapping. type EbsInstanceBlockDevice struct { _ struct{} `type:"structure"` @@ -25978,6 +30969,30 @@ func (s EbsInstanceBlockDevice) GoString() string { return s.String() } +// SetAttachTime sets the AttachTime field's value. +func (s *EbsInstanceBlockDevice) SetAttachTime(v time.Time) *EbsInstanceBlockDevice { + s.AttachTime = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *EbsInstanceBlockDevice) SetDeleteOnTermination(v bool) *EbsInstanceBlockDevice { + s.DeleteOnTermination = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EbsInstanceBlockDevice) SetStatus(v string) *EbsInstanceBlockDevice { + s.Status = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *EbsInstanceBlockDevice) SetVolumeId(v string) *EbsInstanceBlockDevice { + s.VolumeId = &v + return s +} + // Describes information used to set up an EBS volume specified in a block device // mapping. type EbsInstanceBlockDeviceSpecification struct { @@ -26000,6 +31015,18 @@ func (s EbsInstanceBlockDeviceSpecification) GoString() string { return s.String() } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *EbsInstanceBlockDeviceSpecification) SetDeleteOnTermination(v bool) *EbsInstanceBlockDeviceSpecification { + s.DeleteOnTermination = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *EbsInstanceBlockDeviceSpecification) SetVolumeId(v string) *EbsInstanceBlockDeviceSpecification { + s.VolumeId = &v + return s +} + // Contains the parameters for EnableVgwRoutePropagation. type EnableVgwRoutePropagationInput struct { _ struct{} `type:"structure"` @@ -26041,6 +31068,18 @@ func (s *EnableVgwRoutePropagationInput) Validate() error { return nil } +// SetGatewayId sets the GatewayId field's value. +func (s *EnableVgwRoutePropagationInput) SetGatewayId(v string) *EnableVgwRoutePropagationInput { + s.GatewayId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *EnableVgwRoutePropagationInput) SetRouteTableId(v string) *EnableVgwRoutePropagationInput { + s.RouteTableId = &v + return s +} + type EnableVgwRoutePropagationOutput struct { _ struct{} `type:"structure"` } @@ -26094,6 +31133,18 @@ func (s *EnableVolumeIOInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *EnableVolumeIOInput) SetDryRun(v bool) *EnableVolumeIOInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *EnableVolumeIOInput) SetVolumeId(v string) *EnableVolumeIOInput { + s.VolumeId = &v + return s +} + type EnableVolumeIOOutput struct { _ struct{} `type:"structure"` } @@ -26126,6 +31177,12 @@ func (s EnableVpcClassicLinkDnsSupportInput) GoString() string { return s.String() } +// SetVpcId sets the VpcId field's value. +func (s *EnableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *EnableVpcClassicLinkDnsSupportInput { + s.VpcId = &v + return s +} + // Contains the output of EnableVpcClassicLinkDnsSupport. type EnableVpcClassicLinkDnsSupportOutput struct { _ struct{} `type:"structure"` @@ -26144,6 +31201,12 @@ func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *EnableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *EnableVpcClassicLinkDnsSupportOutput { + s.Return = &v + return s +} + // Contains the parameters for EnableVpcClassicLink. type EnableVpcClassicLinkInput struct { _ struct{} `type:"structure"` @@ -26183,6 +31246,18 @@ func (s *EnableVpcClassicLinkInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *EnableVpcClassicLinkInput) SetDryRun(v bool) *EnableVpcClassicLinkInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *EnableVpcClassicLinkInput) SetVpcId(v string) *EnableVpcClassicLinkInput { + s.VpcId = &v + return s +} + // Contains the output of EnableVpcClassicLink. type EnableVpcClassicLinkOutput struct { _ struct{} `type:"structure"` @@ -26201,6 +31276,12 @@ func (s EnableVpcClassicLinkOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *EnableVpcClassicLinkOutput) SetReturn(v bool) *EnableVpcClassicLinkOutput { + s.Return = &v + return s +} + // Describes a Spot fleet event. type EventInformation struct { _ struct{} `type:"structure"` @@ -26212,54 +31293,54 @@ type EventInformation struct { // // The following are the error events. // - // iamFleetRoleInvalid - The Spot fleet did not have the required permissions - // either to launch or terminate an instance. + // * iamFleetRoleInvalid - The Spot fleet did not have the required permissions + // either to launch or terminate an instance. // - // launchSpecTemporarilyBlacklisted - The configuration is not valid and - // several attempts to launch instances have failed. For more information, see - // the description of the event. + // * launchSpecTemporarilyBlacklisted - The configuration is not valid and + // several attempts to launch instances have failed. For more information, + // see the description of the event. // - // spotFleetRequestConfigurationInvalid - The configuration is not valid. - // For more information, see the description of the event. + // * spotFleetRequestConfigurationInvalid - The configuration is not valid. + // For more information, see the description of the event. // - // spotInstanceCountLimitExceeded - You've reached the limit on the number - // of Spot instances that you can launch. + // * spotInstanceCountLimitExceeded - You've reached the limit on the number + // of Spot instances that you can launch. // - // The following are the fleetRequestChange events. + // The following are the fleetRequestChange events. // - // active - The Spot fleet has been validated and Amazon EC2 is attempting - // to maintain the target number of running Spot instances. + // * active - The Spot fleet has been validated and Amazon EC2 is attempting + // to maintain the target number of running Spot instances. // - // cancelled - The Spot fleet is canceled and has no running Spot instances. - // The Spot fleet will be deleted two days after its instances were terminated. + // * cancelled - The Spot fleet is canceled and has no running Spot instances. + // The Spot fleet will be deleted two days after its instances were terminated. // - // cancelled_running - The Spot fleet is canceled and will not launch additional - // Spot instances, but its existing Spot instances continue to run until they - // are interrupted or terminated. + // * cancelled_running - The Spot fleet is canceled and will not launch additional + // Spot instances, but its existing Spot instances continue to run until + // they are interrupted or terminated. // - // cancelled_terminating - The Spot fleet is canceled and its Spot instances - // are terminating. + // * cancelled_terminating - The Spot fleet is canceled and its Spot instances + // are terminating. // - // expired - The Spot fleet request has expired. A subsequent event indicates - // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration - // set. + // * expired - The Spot fleet request has expired. A subsequent event indicates + // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration + // set. // - // modify_in_progress - A request to modify the Spot fleet request was accepted - // and is in progress. + // * modify_in_progress - A request to modify the Spot fleet request was + // accepted and is in progress. // - // modify_successful - The Spot fleet request was modified. + // * modify_successful - The Spot fleet request was modified. // - // price_update - The bid price for a launch configuration was adjusted - // because it was too high. This change is permanent. + // * price_update - The bid price for a launch configuration was adjusted + // because it was too high. This change is permanent. // - // submitted - The Spot fleet request is being evaluated and Amazon EC2 - // is preparing to launch the target number of Spot instances. + // * submitted - The Spot fleet request is being evaluated and Amazon EC2 + // is preparing to launch the target number of Spot instances. // - // The following are the instanceChange events. + // The following are the instanceChange events. // - // launched - A bid was fulfilled and a new instance was launched. + // * launched - A bid was fulfilled and a new instance was launched. // - // terminated - An instance was terminated by the user. + // * terminated - An instance was terminated by the user. EventSubType *string `locationName:"eventSubType" type:"string"` // The ID of the instance. This information is available only for instanceChange @@ -26277,6 +31358,24 @@ func (s EventInformation) GoString() string { return s.String() } +// SetEventDescription sets the EventDescription field's value. +func (s *EventInformation) SetEventDescription(v string) *EventInformation { + s.EventDescription = &v + return s +} + +// SetEventSubType sets the EventSubType field's value. +func (s *EventInformation) SetEventSubType(v string) *EventInformation { + s.EventSubType = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *EventInformation) SetInstanceId(v string) *EventInformation { + s.InstanceId = &v + return s +} + // Describes an instance export task. type ExportTask struct { _ struct{} `type:"structure"` @@ -26310,6 +31409,42 @@ func (s ExportTask) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ExportTask) SetDescription(v string) *ExportTask { + s.Description = &v + return s +} + +// SetExportTaskId sets the ExportTaskId field's value. +func (s *ExportTask) SetExportTaskId(v string) *ExportTask { + s.ExportTaskId = &v + return s +} + +// SetExportToS3Task sets the ExportToS3Task field's value. +func (s *ExportTask) SetExportToS3Task(v *ExportToS3Task) *ExportTask { + s.ExportToS3Task = v + return s +} + +// SetInstanceExportDetails sets the InstanceExportDetails field's value. +func (s *ExportTask) SetInstanceExportDetails(v *InstanceExportDetails) *ExportTask { + s.InstanceExportDetails = v + return s +} + +// SetState sets the State field's value. +func (s *ExportTask) SetState(v string) *ExportTask { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ExportTask) SetStatusMessage(v string) *ExportTask { + s.StatusMessage = &v + return s +} + // Describes the format and location for an instance export task. type ExportToS3Task struct { _ struct{} `type:"structure"` @@ -26339,6 +31474,30 @@ func (s ExportToS3Task) GoString() string { return s.String() } +// SetContainerFormat sets the ContainerFormat field's value. +func (s *ExportToS3Task) SetContainerFormat(v string) *ExportToS3Task { + s.ContainerFormat = &v + return s +} + +// SetDiskImageFormat sets the DiskImageFormat field's value. +func (s *ExportToS3Task) SetDiskImageFormat(v string) *ExportToS3Task { + s.DiskImageFormat = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *ExportToS3Task) SetS3Bucket(v string) *ExportToS3Task { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *ExportToS3Task) SetS3Key(v string) *ExportToS3Task { + s.S3Key = &v + return s +} + // Describes an instance export task. type ExportToS3TaskSpecification struct { _ struct{} `type:"structure"` @@ -26369,6 +31528,30 @@ func (s ExportToS3TaskSpecification) GoString() string { return s.String() } +// SetContainerFormat sets the ContainerFormat field's value. +func (s *ExportToS3TaskSpecification) SetContainerFormat(v string) *ExportToS3TaskSpecification { + s.ContainerFormat = &v + return s +} + +// SetDiskImageFormat sets the DiskImageFormat field's value. +func (s *ExportToS3TaskSpecification) SetDiskImageFormat(v string) *ExportToS3TaskSpecification { + s.DiskImageFormat = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *ExportToS3TaskSpecification) SetS3Bucket(v string) *ExportToS3TaskSpecification { + s.S3Bucket = &v + return s +} + +// SetS3Prefix sets the S3Prefix field's value. +func (s *ExportToS3TaskSpecification) SetS3Prefix(v string) *ExportToS3TaskSpecification { + s.S3Prefix = &v + return s +} + // A filter name and value pair that is used to return a more specific list // of results. Filters can be used to match a set of resources by various criteria, // such as tags, attributes, or IDs. @@ -26392,6 +31575,18 @@ func (s Filter) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v + return s +} + // Describes a flow log. type FlowLog struct { _ struct{} `type:"structure"` @@ -26439,6 +31634,60 @@ func (s FlowLog) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *FlowLog) SetCreationTime(v time.Time) *FlowLog { + s.CreationTime = &v + return s +} + +// SetDeliverLogsErrorMessage sets the DeliverLogsErrorMessage field's value. +func (s *FlowLog) SetDeliverLogsErrorMessage(v string) *FlowLog { + s.DeliverLogsErrorMessage = &v + return s +} + +// SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value. +func (s *FlowLog) SetDeliverLogsPermissionArn(v string) *FlowLog { + s.DeliverLogsPermissionArn = &v + return s +} + +// SetDeliverLogsStatus sets the DeliverLogsStatus field's value. +func (s *FlowLog) SetDeliverLogsStatus(v string) *FlowLog { + s.DeliverLogsStatus = &v + return s +} + +// SetFlowLogId sets the FlowLogId field's value. +func (s *FlowLog) SetFlowLogId(v string) *FlowLog { + s.FlowLogId = &v + return s +} + +// SetFlowLogStatus sets the FlowLogStatus field's value. +func (s *FlowLog) SetFlowLogStatus(v string) *FlowLog { + s.FlowLogStatus = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *FlowLog) SetLogGroupName(v string) *FlowLog { + s.LogGroupName = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *FlowLog) SetResourceId(v string) *FlowLog { + s.ResourceId = &v + return s +} + +// SetTrafficType sets the TrafficType field's value. +func (s *FlowLog) SetTrafficType(v string) *FlowLog { + s.TrafficType = &v + return s +} + // Contains the parameters for GetConsoleOutput. type GetConsoleOutputInput struct { _ struct{} `type:"structure"` @@ -26478,6 +31727,18 @@ func (s *GetConsoleOutputInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *GetConsoleOutputInput) SetDryRun(v bool) *GetConsoleOutputInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetConsoleOutputInput) SetInstanceId(v string) *GetConsoleOutputInput { + s.InstanceId = &v + return s +} + // Contains the output of GetConsoleOutput. type GetConsoleOutputOutput struct { _ struct{} `type:"structure"` @@ -26503,6 +31764,24 @@ func (s GetConsoleOutputOutput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *GetConsoleOutputOutput) SetInstanceId(v string) *GetConsoleOutputOutput { + s.InstanceId = &v + return s +} + +// SetOutput sets the Output field's value. +func (s *GetConsoleOutputOutput) SetOutput(v string) *GetConsoleOutputOutput { + s.Output = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *GetConsoleOutputOutput) SetTimestamp(v time.Time) *GetConsoleOutputOutput { + s.Timestamp = &v + return s +} + // Contains the parameters for the request. type GetConsoleScreenshotInput struct { _ struct{} `type:"structure"` @@ -26546,6 +31825,24 @@ func (s *GetConsoleScreenshotInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *GetConsoleScreenshotInput) SetDryRun(v bool) *GetConsoleScreenshotInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetConsoleScreenshotInput) SetInstanceId(v string) *GetConsoleScreenshotInput { + s.InstanceId = &v + return s +} + +// SetWakeUp sets the WakeUp field's value. +func (s *GetConsoleScreenshotInput) SetWakeUp(v bool) *GetConsoleScreenshotInput { + s.WakeUp = &v + return s +} + // Contains the output of the request. type GetConsoleScreenshotOutput struct { _ struct{} `type:"structure"` @@ -26567,6 +31864,18 @@ func (s GetConsoleScreenshotOutput) GoString() string { return s.String() } +// SetImageData sets the ImageData field's value. +func (s *GetConsoleScreenshotOutput) SetImageData(v string) *GetConsoleScreenshotOutput { + s.ImageData = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetConsoleScreenshotOutput) SetInstanceId(v string) *GetConsoleScreenshotOutput { + s.InstanceId = &v + return s +} + type GetHostReservationPurchasePreviewInput struct { _ struct{} `type:"structure"` @@ -26608,6 +31917,18 @@ func (s *GetHostReservationPurchasePreviewInput) Validate() error { return nil } +// SetHostIdSet sets the HostIdSet field's value. +func (s *GetHostReservationPurchasePreviewInput) SetHostIdSet(v []*string) *GetHostReservationPurchasePreviewInput { + s.HostIdSet = v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *GetHostReservationPurchasePreviewInput) SetOfferingId(v string) *GetHostReservationPurchasePreviewInput { + s.OfferingId = &v + return s +} + type GetHostReservationPurchasePreviewOutput struct { _ struct{} `type:"structure"` @@ -26636,6 +31957,30 @@ func (s GetHostReservationPurchasePreviewOutput) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *GetHostReservationPurchasePreviewOutput) SetCurrencyCode(v string) *GetHostReservationPurchasePreviewOutput { + s.CurrencyCode = &v + return s +} + +// SetPurchase sets the Purchase field's value. +func (s *GetHostReservationPurchasePreviewOutput) SetPurchase(v []*Purchase) *GetHostReservationPurchasePreviewOutput { + s.Purchase = v + return s +} + +// SetTotalHourlyPrice sets the TotalHourlyPrice field's value. +func (s *GetHostReservationPurchasePreviewOutput) SetTotalHourlyPrice(v string) *GetHostReservationPurchasePreviewOutput { + s.TotalHourlyPrice = &v + return s +} + +// SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value. +func (s *GetHostReservationPurchasePreviewOutput) SetTotalUpfrontPrice(v string) *GetHostReservationPurchasePreviewOutput { + s.TotalUpfrontPrice = &v + return s +} + // Contains the parameters for GetPasswordData. type GetPasswordDataInput struct { _ struct{} `type:"structure"` @@ -26675,6 +32020,18 @@ func (s *GetPasswordDataInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *GetPasswordDataInput) SetDryRun(v bool) *GetPasswordDataInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetPasswordDataInput) SetInstanceId(v string) *GetPasswordDataInput { + s.InstanceId = &v + return s +} + // Contains the output of GetPasswordData. type GetPasswordDataOutput struct { _ struct{} `type:"structure"` @@ -26699,6 +32056,24 @@ func (s GetPasswordDataOutput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *GetPasswordDataOutput) SetInstanceId(v string) *GetPasswordDataOutput { + s.InstanceId = &v + return s +} + +// SetPasswordData sets the PasswordData field's value. +func (s *GetPasswordDataOutput) SetPasswordData(v string) *GetPasswordDataOutput { + s.PasswordData = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *GetPasswordDataOutput) SetTimestamp(v time.Time) *GetPasswordDataOutput { + s.Timestamp = &v + return s +} + // Contains the parameters for GetReservedInstanceExchangeQuote. type GetReservedInstancesExchangeQuoteInput struct { _ struct{} `type:"structure"` @@ -26752,6 +32127,24 @@ func (s *GetReservedInstancesExchangeQuoteInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *GetReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *GetReservedInstancesExchangeQuoteInput { + s.DryRun = &v + return s +} + +// SetReservedInstanceIds sets the ReservedInstanceIds field's value. +func (s *GetReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *GetReservedInstancesExchangeQuoteInput { + s.ReservedInstanceIds = v + return s +} + +// SetTargetConfigurations sets the TargetConfigurations field's value. +func (s *GetReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *GetReservedInstancesExchangeQuoteInput { + s.TargetConfigurations = v + return s +} + // Contains the output of GetReservedInstancesExchangeQuote. type GetReservedInstancesExchangeQuoteOutput struct { _ struct{} `type:"structure"` @@ -26794,6 +32187,60 @@ func (s GetReservedInstancesExchangeQuoteOutput) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetCurrencyCode(v string) *GetReservedInstancesExchangeQuoteOutput { + s.CurrencyCode = &v + return s +} + +// SetIsValidExchange sets the IsValidExchange field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetIsValidExchange(v bool) *GetReservedInstancesExchangeQuoteOutput { + s.IsValidExchange = &v + return s +} + +// SetOutputReservedInstancesWillExpireAt sets the OutputReservedInstancesWillExpireAt field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetOutputReservedInstancesWillExpireAt(v time.Time) *GetReservedInstancesExchangeQuoteOutput { + s.OutputReservedInstancesWillExpireAt = &v + return s +} + +// SetPaymentDue sets the PaymentDue field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetPaymentDue(v string) *GetReservedInstancesExchangeQuoteOutput { + s.PaymentDue = &v + return s +} + +// SetReservedInstanceValueRollup sets the ReservedInstanceValueRollup field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput { + s.ReservedInstanceValueRollup = v + return s +} + +// SetReservedInstanceValueSet sets the ReservedInstanceValueSet field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueSet(v []*ReservedInstanceReservationValue) *GetReservedInstancesExchangeQuoteOutput { + s.ReservedInstanceValueSet = v + return s +} + +// SetTargetConfigurationValueRollup sets the TargetConfigurationValueRollup field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput { + s.TargetConfigurationValueRollup = v + return s +} + +// SetTargetConfigurationValueSet sets the TargetConfigurationValueSet field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueSet(v []*TargetReservationValue) *GetReservedInstancesExchangeQuoteOutput { + s.TargetConfigurationValueSet = v + return s +} + +// SetValidationFailureReason sets the ValidationFailureReason field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetValidationFailureReason(v string) *GetReservedInstancesExchangeQuoteOutput { + s.ValidationFailureReason = &v + return s +} + // Describes a security group. type GroupIdentifier struct { _ struct{} `type:"structure"` @@ -26815,6 +32262,18 @@ func (s GroupIdentifier) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *GroupIdentifier) SetGroupId(v string) *GroupIdentifier { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier { + s.GroupName = &v + return s +} + // Describes an event in the history of the Spot fleet request. type HistoryRecord struct { _ struct{} `type:"structure"` @@ -26826,12 +32285,12 @@ type HistoryRecord struct { // The event type. // - // error - Indicates an error with the Spot fleet request. + // * error - Indicates an error with the Spot fleet request. // - // fleetRequestChange - Indicates a change in the status or configuration - // of the Spot fleet request. + // * fleetRequestChange - Indicates a change in the status or configuration + // of the Spot fleet request. // - // instanceChange - Indicates that an instance was launched or terminated. + // * instanceChange - Indicates that an instance was launched or terminated. // // EventType is a required field EventType *string `locationName:"eventType" type:"string" required:"true" enum:"EventType"` @@ -26852,6 +32311,24 @@ func (s HistoryRecord) GoString() string { return s.String() } +// SetEventInformation sets the EventInformation field's value. +func (s *HistoryRecord) SetEventInformation(v *EventInformation) *HistoryRecord { + s.EventInformation = v + return s +} + +// SetEventType sets the EventType field's value. +func (s *HistoryRecord) SetEventType(v string) *HistoryRecord { + s.EventType = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *HistoryRecord) SetTimestamp(v time.Time) *HistoryRecord { + s.Timestamp = &v + return s +} + // Describes the properties of the Dedicated Host. type Host struct { _ struct{} `type:"structure"` @@ -26897,6 +32374,60 @@ func (s Host) GoString() string { return s.String() } +// SetAutoPlacement sets the AutoPlacement field's value. +func (s *Host) SetAutoPlacement(v string) *Host { + s.AutoPlacement = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Host) SetAvailabilityZone(v string) *Host { + s.AvailabilityZone = &v + return s +} + +// SetAvailableCapacity sets the AvailableCapacity field's value. +func (s *Host) SetAvailableCapacity(v *AvailableCapacity) *Host { + s.AvailableCapacity = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *Host) SetClientToken(v string) *Host { + s.ClientToken = &v + return s +} + +// SetHostId sets the HostId field's value. +func (s *Host) SetHostId(v string) *Host { + s.HostId = &v + return s +} + +// SetHostProperties sets the HostProperties field's value. +func (s *Host) SetHostProperties(v *HostProperties) *Host { + s.HostProperties = v + return s +} + +// SetHostReservationId sets the HostReservationId field's value. +func (s *Host) SetHostReservationId(v string) *Host { + s.HostReservationId = &v + return s +} + +// SetInstances sets the Instances field's value. +func (s *Host) SetInstances(v []*HostInstance) *Host { + s.Instances = v + return s +} + +// SetState sets the State field's value. +func (s *Host) SetState(v string) *Host { + s.State = &v + return s +} + // Describes an instance running on a Dedicated Host. type HostInstance struct { _ struct{} `type:"structure"` @@ -26918,6 +32449,18 @@ func (s HostInstance) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *HostInstance) SetInstanceId(v string) *HostInstance { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *HostInstance) SetInstanceType(v string) *HostInstance { + s.InstanceType = &v + return s +} + // Details about the Dedicated Host Reservation offering. type HostOffering struct { _ struct{} `type:"structure"` @@ -26954,6 +32497,48 @@ func (s HostOffering) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *HostOffering) SetCurrencyCode(v string) *HostOffering { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *HostOffering) SetDuration(v int64) *HostOffering { + s.Duration = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *HostOffering) SetHourlyPrice(v string) *HostOffering { + s.HourlyPrice = &v + return s +} + +// SetInstanceFamily sets the InstanceFamily field's value. +func (s *HostOffering) SetInstanceFamily(v string) *HostOffering { + s.InstanceFamily = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *HostOffering) SetOfferingId(v string) *HostOffering { + s.OfferingId = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *HostOffering) SetPaymentOption(v string) *HostOffering { + s.PaymentOption = &v + return s +} + +// SetUpfrontPrice sets the UpfrontPrice field's value. +func (s *HostOffering) SetUpfrontPrice(v string) *HostOffering { + s.UpfrontPrice = &v + return s +} + // Describes properties of a Dedicated Host. type HostProperties struct { _ struct{} `type:"structure"` @@ -26981,6 +32566,30 @@ func (s HostProperties) GoString() string { return s.String() } +// SetCores sets the Cores field's value. +func (s *HostProperties) SetCores(v int64) *HostProperties { + s.Cores = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *HostProperties) SetInstanceType(v string) *HostProperties { + s.InstanceType = &v + return s +} + +// SetSockets sets the Sockets field's value. +func (s *HostProperties) SetSockets(v int64) *HostProperties { + s.Sockets = &v + return s +} + +// SetTotalVCpus sets the TotalVCpus field's value. +func (s *HostProperties) SetTotalVCpus(v int64) *HostProperties { + s.TotalVCpus = &v + return s +} + // Details about the Dedicated Host Reservation and associated Dedicated Hosts. type HostReservation struct { _ struct{} `type:"structure"` @@ -27040,6 +32649,84 @@ func (s HostReservation) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *HostReservation) SetCount(v int64) *HostReservation { + s.Count = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *HostReservation) SetCurrencyCode(v string) *HostReservation { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *HostReservation) SetDuration(v int64) *HostReservation { + s.Duration = &v + return s +} + +// SetEnd sets the End field's value. +func (s *HostReservation) SetEnd(v time.Time) *HostReservation { + s.End = &v + return s +} + +// SetHostIdSet sets the HostIdSet field's value. +func (s *HostReservation) SetHostIdSet(v []*string) *HostReservation { + s.HostIdSet = v + return s +} + +// SetHostReservationId sets the HostReservationId field's value. +func (s *HostReservation) SetHostReservationId(v string) *HostReservation { + s.HostReservationId = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *HostReservation) SetHourlyPrice(v string) *HostReservation { + s.HourlyPrice = &v + return s +} + +// SetInstanceFamily sets the InstanceFamily field's value. +func (s *HostReservation) SetInstanceFamily(v string) *HostReservation { + s.InstanceFamily = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *HostReservation) SetOfferingId(v string) *HostReservation { + s.OfferingId = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *HostReservation) SetPaymentOption(v string) *HostReservation { + s.PaymentOption = &v + return s +} + +// SetStart sets the Start field's value. +func (s *HostReservation) SetStart(v time.Time) *HostReservation { + s.Start = &v + return s +} + +// SetState sets the State field's value. +func (s *HostReservation) SetState(v string) *HostReservation { + s.State = &v + return s +} + +// SetUpfrontPrice sets the UpfrontPrice field's value. +func (s *HostReservation) SetUpfrontPrice(v string) *HostReservation { + s.UpfrontPrice = &v + return s +} + // Describes an IAM instance profile. type IamInstanceProfile struct { _ struct{} `type:"structure"` @@ -27061,6 +32748,18 @@ func (s IamInstanceProfile) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *IamInstanceProfile) SetArn(v string) *IamInstanceProfile { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile { + s.Id = &v + return s +} + // Describes an IAM instance profile. type IamInstanceProfileSpecification struct { _ struct{} `type:"structure"` @@ -27082,6 +32781,18 @@ func (s IamInstanceProfileSpecification) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *IamInstanceProfileSpecification) SetArn(v string) *IamInstanceProfileSpecification { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *IamInstanceProfileSpecification) SetName(v string) *IamInstanceProfileSpecification { + s.Name = &v + return s +} + // Describes the ICMP type and code. type IcmpTypeCode struct { _ struct{} `type:"structure"` @@ -27103,6 +32814,18 @@ func (s IcmpTypeCode) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *IcmpTypeCode) SetCode(v int64) *IcmpTypeCode { + s.Code = &v + return s +} + +// SetType sets the Type field's value. +func (s *IcmpTypeCode) SetType(v int64) *IcmpTypeCode { + s.Type = &v + return s +} + // Describes the ID format for a resource. type IdFormat struct { _ struct{} `type:"structure"` @@ -27129,6 +32852,24 @@ func (s IdFormat) GoString() string { return s.String() } +// SetDeadline sets the Deadline field's value. +func (s *IdFormat) SetDeadline(v time.Time) *IdFormat { + s.Deadline = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *IdFormat) SetResource(v string) *IdFormat { + s.Resource = &v + return s +} + +// SetUseLongIds sets the UseLongIds field's value. +func (s *IdFormat) SetUseLongIds(v bool) *IdFormat { + s.UseLongIds = &v + return s +} + // Describes an image. type Image struct { _ struct{} `type:"structure"` @@ -27224,6 +32965,150 @@ func (s Image) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *Image) SetArchitecture(v string) *Image { + s.Architecture = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *Image) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Image { + s.BlockDeviceMappings = v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *Image) SetCreationDate(v string) *Image { + s.CreationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Image) SetDescription(v string) *Image { + s.Description = &v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *Image) SetEnaSupport(v bool) *Image { + s.EnaSupport = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *Image) SetHypervisor(v string) *Image { + s.Hypervisor = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *Image) SetImageId(v string) *Image { + s.ImageId = &v + return s +} + +// SetImageLocation sets the ImageLocation field's value. +func (s *Image) SetImageLocation(v string) *Image { + s.ImageLocation = &v + return s +} + +// SetImageOwnerAlias sets the ImageOwnerAlias field's value. +func (s *Image) SetImageOwnerAlias(v string) *Image { + s.ImageOwnerAlias = &v + return s +} + +// SetImageType sets the ImageType field's value. +func (s *Image) SetImageType(v string) *Image { + s.ImageType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *Image) SetKernelId(v string) *Image { + s.KernelId = &v + return s +} + +// SetName sets the Name field's value. +func (s *Image) SetName(v string) *Image { + s.Name = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *Image) SetOwnerId(v string) *Image { + s.OwnerId = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Image) SetPlatform(v string) *Image { + s.Platform = &v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *Image) SetProductCodes(v []*ProductCode) *Image { + s.ProductCodes = v + return s +} + +// SetPublic sets the Public field's value. +func (s *Image) SetPublic(v bool) *Image { + s.Public = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *Image) SetRamdiskId(v string) *Image { + s.RamdiskId = &v + return s +} + +// SetRootDeviceName sets the RootDeviceName field's value. +func (s *Image) SetRootDeviceName(v string) *Image { + s.RootDeviceName = &v + return s +} + +// SetRootDeviceType sets the RootDeviceType field's value. +func (s *Image) SetRootDeviceType(v string) *Image { + s.RootDeviceType = &v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *Image) SetSriovNetSupport(v string) *Image { + s.SriovNetSupport = &v + return s +} + +// SetState sets the State field's value. +func (s *Image) SetState(v string) *Image { + s.State = &v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *Image) SetStateReason(v *StateReason) *Image { + s.StateReason = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Image) SetTags(v []*Tag) *Image { + s.Tags = v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *Image) SetVirtualizationType(v string) *Image { + s.VirtualizationType = &v + return s +} + // Describes the disk container object for an import image task. type ImageDiskContainer struct { _ struct{} `type:"structure"` @@ -27260,6 +33145,42 @@ func (s ImageDiskContainer) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ImageDiskContainer) SetDescription(v string) *ImageDiskContainer { + s.Description = &v + return s +} + +// SetDeviceName sets the DeviceName field's value. +func (s *ImageDiskContainer) SetDeviceName(v string) *ImageDiskContainer { + s.DeviceName = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *ImageDiskContainer) SetFormat(v string) *ImageDiskContainer { + s.Format = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *ImageDiskContainer) SetSnapshotId(v string) *ImageDiskContainer { + s.SnapshotId = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *ImageDiskContainer) SetUrl(v string) *ImageDiskContainer { + s.Url = &v + return s +} + +// SetUserBucket sets the UserBucket field's value. +func (s *ImageDiskContainer) SetUserBucket(v *UserBucket) *ImageDiskContainer { + s.UserBucket = v + return s +} + // Contains the parameters for ImportImage. type ImportImageInput struct { _ struct{} `type:"structure"` @@ -27294,7 +33215,7 @@ type ImportImageInput struct { // The license type to be used for the Amazon Machine Image (AMI) after importing. // - // Note: You may only use BYOL if you have existing licenses with rights to + // Note: You may only use BYOL if you have existing licenses with rights to // use these licenses in a third party cloud like AWS. For more information, // see Prerequisites (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image) // in the VM Import/Export User Guide. @@ -27321,6 +33242,66 @@ func (s ImportImageInput) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *ImportImageInput) SetArchitecture(v string) *ImportImageInput { + s.Architecture = &v + return s +} + +// SetClientData sets the ClientData field's value. +func (s *ImportImageInput) SetClientData(v *ClientData) *ImportImageInput { + s.ClientData = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *ImportImageInput) SetClientToken(v string) *ImportImageInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportImageInput) SetDescription(v string) *ImportImageInput { + s.Description = &v + return s +} + +// SetDiskContainers sets the DiskContainers field's value. +func (s *ImportImageInput) SetDiskContainers(v []*ImageDiskContainer) *ImportImageInput { + s.DiskContainers = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ImportImageInput) SetDryRun(v bool) *ImportImageInput { + s.DryRun = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *ImportImageInput) SetHypervisor(v string) *ImportImageInput { + s.Hypervisor = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *ImportImageInput) SetLicenseType(v string) *ImportImageInput { + s.LicenseType = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportImageInput) SetPlatform(v string) *ImportImageInput { + s.Platform = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ImportImageInput) SetRoleName(v string) *ImportImageInput { + s.RoleName = &v + return s +} + // Contains the output for ImportImage. type ImportImageOutput struct { _ struct{} `type:"structure"` @@ -27369,6 +33350,72 @@ func (s ImportImageOutput) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *ImportImageOutput) SetArchitecture(v string) *ImportImageOutput { + s.Architecture = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportImageOutput) SetDescription(v string) *ImportImageOutput { + s.Description = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *ImportImageOutput) SetHypervisor(v string) *ImportImageOutput { + s.Hypervisor = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ImportImageOutput) SetImageId(v string) *ImportImageOutput { + s.ImageId = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *ImportImageOutput) SetImportTaskId(v string) *ImportImageOutput { + s.ImportTaskId = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *ImportImageOutput) SetLicenseType(v string) *ImportImageOutput { + s.LicenseType = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportImageOutput) SetPlatform(v string) *ImportImageOutput { + s.Platform = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *ImportImageOutput) SetProgress(v string) *ImportImageOutput { + s.Progress = &v + return s +} + +// SetSnapshotDetails sets the SnapshotDetails field's value. +func (s *ImportImageOutput) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageOutput { + s.SnapshotDetails = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ImportImageOutput) SetStatus(v string) *ImportImageOutput { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ImportImageOutput) SetStatusMessage(v string) *ImportImageOutput { + s.StatusMessage = &v + return s +} + // Describes an import image task. type ImportImageTask struct { _ struct{} `type:"structure"` @@ -27421,6 +33468,72 @@ func (s ImportImageTask) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *ImportImageTask) SetArchitecture(v string) *ImportImageTask { + s.Architecture = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportImageTask) SetDescription(v string) *ImportImageTask { + s.Description = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask { + s.Hypervisor = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ImportImageTask) SetImageId(v string) *ImportImageTask { + s.ImageId = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask { + s.ImportTaskId = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask { + s.LicenseType = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportImageTask) SetPlatform(v string) *ImportImageTask { + s.Platform = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *ImportImageTask) SetProgress(v string) *ImportImageTask { + s.Progress = &v + return s +} + +// SetSnapshotDetails sets the SnapshotDetails field's value. +func (s *ImportImageTask) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageTask { + s.SnapshotDetails = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ImportImageTask) SetStatus(v string) *ImportImageTask { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ImportImageTask) SetStatusMessage(v string) *ImportImageTask { + s.StatusMessage = &v + return s +} + // Contains the parameters for ImportInstance. type ImportInstanceInput struct { _ struct{} `type:"structure"` @@ -27479,6 +33592,36 @@ func (s *ImportInstanceInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *ImportInstanceInput) SetDescription(v string) *ImportInstanceInput { + s.Description = &v + return s +} + +// SetDiskImages sets the DiskImages field's value. +func (s *ImportInstanceInput) SetDiskImages(v []*DiskImage) *ImportInstanceInput { + s.DiskImages = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ImportInstanceInput) SetDryRun(v bool) *ImportInstanceInput { + s.DryRun = &v + return s +} + +// SetLaunchSpecification sets the LaunchSpecification field's value. +func (s *ImportInstanceInput) SetLaunchSpecification(v *ImportInstanceLaunchSpecification) *ImportInstanceInput { + s.LaunchSpecification = v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportInstanceInput) SetPlatform(v string) *ImportInstanceInput { + s.Platform = &v + return s +} + // Describes the launch specification for VM import. type ImportInstanceLaunchSpecification struct { _ struct{} `type:"structure"` @@ -27532,6 +33675,72 @@ func (s ImportInstanceLaunchSpecification) GoString() string { return s.String() } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *ImportInstanceLaunchSpecification) SetAdditionalInfo(v string) *ImportInstanceLaunchSpecification { + s.AdditionalInfo = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *ImportInstanceLaunchSpecification) SetArchitecture(v string) *ImportInstanceLaunchSpecification { + s.Architecture = &v + return s +} + +// SetGroupIds sets the GroupIds field's value. +func (s *ImportInstanceLaunchSpecification) SetGroupIds(v []*string) *ImportInstanceLaunchSpecification { + s.GroupIds = v + return s +} + +// SetGroupNames sets the GroupNames field's value. +func (s *ImportInstanceLaunchSpecification) SetGroupNames(v []*string) *ImportInstanceLaunchSpecification { + s.GroupNames = v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *ImportInstanceLaunchSpecification) SetInstanceInitiatedShutdownBehavior(v string) *ImportInstanceLaunchSpecification { + s.InstanceInitiatedShutdownBehavior = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ImportInstanceLaunchSpecification) SetInstanceType(v string) *ImportInstanceLaunchSpecification { + s.InstanceType = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *ImportInstanceLaunchSpecification) SetMonitoring(v bool) *ImportInstanceLaunchSpecification { + s.Monitoring = &v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *ImportInstanceLaunchSpecification) SetPlacement(v *Placement) *ImportInstanceLaunchSpecification { + s.Placement = v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *ImportInstanceLaunchSpecification) SetPrivateIpAddress(v string) *ImportInstanceLaunchSpecification { + s.PrivateIpAddress = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ImportInstanceLaunchSpecification) SetSubnetId(v string) *ImportInstanceLaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *ImportInstanceLaunchSpecification) SetUserData(v *UserData) *ImportInstanceLaunchSpecification { + s.UserData = v + return s +} + // Contains the output for ImportInstance. type ImportInstanceOutput struct { _ struct{} `type:"structure"` @@ -27550,6 +33759,12 @@ func (s ImportInstanceOutput) GoString() string { return s.String() } +// SetConversionTask sets the ConversionTask field's value. +func (s *ImportInstanceOutput) SetConversionTask(v *ConversionTask) *ImportInstanceOutput { + s.ConversionTask = v + return s +} + // Describes an import instance task. type ImportInstanceTaskDetails struct { _ struct{} `type:"structure"` @@ -27579,6 +33794,30 @@ func (s ImportInstanceTaskDetails) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ImportInstanceTaskDetails) SetDescription(v string) *ImportInstanceTaskDetails { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ImportInstanceTaskDetails) SetInstanceId(v string) *ImportInstanceTaskDetails { + s.InstanceId = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportInstanceTaskDetails) SetPlatform(v string) *ImportInstanceTaskDetails { + s.Platform = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *ImportInstanceTaskDetails) SetVolumes(v []*ImportInstanceVolumeDetailItem) *ImportInstanceTaskDetails { + s.Volumes = v + return s +} + // Describes an import volume task. type ImportInstanceVolumeDetailItem struct { _ struct{} `type:"structure"` @@ -27625,6 +33864,48 @@ func (s ImportInstanceVolumeDetailItem) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ImportInstanceVolumeDetailItem) SetAvailabilityZone(v string) *ImportInstanceVolumeDetailItem { + s.AvailabilityZone = &v + return s +} + +// SetBytesConverted sets the BytesConverted field's value. +func (s *ImportInstanceVolumeDetailItem) SetBytesConverted(v int64) *ImportInstanceVolumeDetailItem { + s.BytesConverted = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportInstanceVolumeDetailItem) SetDescription(v string) *ImportInstanceVolumeDetailItem { + s.Description = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ImportInstanceVolumeDetailItem) SetImage(v *DiskImageDescription) *ImportInstanceVolumeDetailItem { + s.Image = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ImportInstanceVolumeDetailItem) SetStatus(v string) *ImportInstanceVolumeDetailItem { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ImportInstanceVolumeDetailItem) SetStatusMessage(v string) *ImportInstanceVolumeDetailItem { + s.StatusMessage = &v + return s +} + +// SetVolume sets the Volume field's value. +func (s *ImportInstanceVolumeDetailItem) SetVolume(v *DiskImageVolumeDescription) *ImportInstanceVolumeDetailItem { + s.Volume = v + return s +} + // Contains the parameters for ImportKeyPair. type ImportKeyPairInput struct { _ struct{} `type:"structure"` @@ -27675,6 +33956,24 @@ func (s *ImportKeyPairInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *ImportKeyPairInput) SetDryRun(v bool) *ImportKeyPairInput { + s.DryRun = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ImportKeyPairInput) SetKeyName(v string) *ImportKeyPairInput { + s.KeyName = &v + return s +} + +// SetPublicKeyMaterial sets the PublicKeyMaterial field's value. +func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput { + s.PublicKeyMaterial = v + return s +} + // Contains the output of ImportKeyPair. type ImportKeyPairOutput struct { _ struct{} `type:"structure"` @@ -27696,6 +33995,18 @@ func (s ImportKeyPairOutput) GoString() string { return s.String() } +// SetKeyFingerprint sets the KeyFingerprint field's value. +func (s *ImportKeyPairOutput) SetKeyFingerprint(v string) *ImportKeyPairOutput { + s.KeyFingerprint = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ImportKeyPairOutput) SetKeyName(v string) *ImportKeyPairOutput { + s.KeyName = &v + return s +} + // Contains the parameters for ImportSnapshot. type ImportSnapshotInput struct { _ struct{} `type:"structure"` @@ -27732,6 +34043,42 @@ func (s ImportSnapshotInput) GoString() string { return s.String() } +// SetClientData sets the ClientData field's value. +func (s *ImportSnapshotInput) SetClientData(v *ClientData) *ImportSnapshotInput { + s.ClientData = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *ImportSnapshotInput) SetClientToken(v string) *ImportSnapshotInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportSnapshotInput) SetDescription(v string) *ImportSnapshotInput { + s.Description = &v + return s +} + +// SetDiskContainer sets the DiskContainer field's value. +func (s *ImportSnapshotInput) SetDiskContainer(v *SnapshotDiskContainer) *ImportSnapshotInput { + s.DiskContainer = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ImportSnapshotInput) SetDryRun(v bool) *ImportSnapshotInput { + s.DryRun = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ImportSnapshotInput) SetRoleName(v string) *ImportSnapshotInput { + s.RoleName = &v + return s +} + // Contains the output for ImportSnapshot. type ImportSnapshotOutput struct { _ struct{} `type:"structure"` @@ -27756,6 +34103,24 @@ func (s ImportSnapshotOutput) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ImportSnapshotOutput) SetDescription(v string) *ImportSnapshotOutput { + s.Description = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *ImportSnapshotOutput) SetImportTaskId(v string) *ImportSnapshotOutput { + s.ImportTaskId = &v + return s +} + +// SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value. +func (s *ImportSnapshotOutput) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotOutput { + s.SnapshotTaskDetail = v + return s +} + // Describes an import snapshot task. type ImportSnapshotTask struct { _ struct{} `type:"structure"` @@ -27780,6 +34145,24 @@ func (s ImportSnapshotTask) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ImportSnapshotTask) SetDescription(v string) *ImportSnapshotTask { + s.Description = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *ImportSnapshotTask) SetImportTaskId(v string) *ImportSnapshotTask { + s.ImportTaskId = &v + return s +} + +// SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value. +func (s *ImportSnapshotTask) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotTask { + s.SnapshotTaskDetail = v + return s +} + // Contains the parameters for ImportVolume. type ImportVolumeInput struct { _ struct{} `type:"structure"` @@ -27848,6 +34231,36 @@ func (s *ImportVolumeInput) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ImportVolumeInput) SetAvailabilityZone(v string) *ImportVolumeInput { + s.AvailabilityZone = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportVolumeInput) SetDescription(v string) *ImportVolumeInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ImportVolumeInput) SetDryRun(v bool) *ImportVolumeInput { + s.DryRun = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ImportVolumeInput) SetImage(v *DiskImageDetail) *ImportVolumeInput { + s.Image = v + return s +} + +// SetVolume sets the Volume field's value. +func (s *ImportVolumeInput) SetVolume(v *VolumeDetail) *ImportVolumeInput { + s.Volume = v + return s +} + // Contains the output for ImportVolume. type ImportVolumeOutput struct { _ struct{} `type:"structure"` @@ -27866,6 +34279,12 @@ func (s ImportVolumeOutput) GoString() string { return s.String() } +// SetConversionTask sets the ConversionTask field's value. +func (s *ImportVolumeOutput) SetConversionTask(v *ConversionTask) *ImportVolumeOutput { + s.ConversionTask = v + return s +} + // Describes an import volume task. type ImportVolumeTaskDetails struct { _ struct{} `type:"structure"` @@ -27904,6 +34323,36 @@ func (s ImportVolumeTaskDetails) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ImportVolumeTaskDetails) SetAvailabilityZone(v string) *ImportVolumeTaskDetails { + s.AvailabilityZone = &v + return s +} + +// SetBytesConverted sets the BytesConverted field's value. +func (s *ImportVolumeTaskDetails) SetBytesConverted(v int64) *ImportVolumeTaskDetails { + s.BytesConverted = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportVolumeTaskDetails) SetDescription(v string) *ImportVolumeTaskDetails { + s.Description = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ImportVolumeTaskDetails) SetImage(v *DiskImageDescription) *ImportVolumeTaskDetails { + s.Image = v + return s +} + +// SetVolume sets the Volume field's value. +func (s *ImportVolumeTaskDetails) SetVolume(v *DiskImageVolumeDescription) *ImportVolumeTaskDetails { + s.Volume = v + return s +} + // Describes an instance. type Instance struct { _ struct{} `type:"structure"` @@ -28051,6 +34500,234 @@ func (s Instance) GoString() string { return s.String() } +// SetAmiLaunchIndex sets the AmiLaunchIndex field's value. +func (s *Instance) SetAmiLaunchIndex(v int64) *Instance { + s.AmiLaunchIndex = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *Instance) SetArchitecture(v string) *Instance { + s.Architecture = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *Instance) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *Instance { + s.BlockDeviceMappings = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *Instance) SetClientToken(v string) *Instance { + s.ClientToken = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *Instance) SetEbsOptimized(v bool) *Instance { + s.EbsOptimized = &v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *Instance) SetEnaSupport(v bool) *Instance { + s.EnaSupport = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *Instance) SetHypervisor(v string) *Instance { + s.Hypervisor = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *Instance) SetIamInstanceProfile(v *IamInstanceProfile) *Instance { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *Instance) SetImageId(v string) *Instance { + s.ImageId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + +// SetInstanceLifecycle sets the InstanceLifecycle field's value. +func (s *Instance) SetInstanceLifecycle(v string) *Instance { + s.InstanceLifecycle = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *Instance) SetInstanceType(v string) *Instance { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *Instance) SetKernelId(v string) *Instance { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *Instance) SetKeyName(v string) *Instance { + s.KeyName = &v + return s +} + +// SetLaunchTime sets the LaunchTime field's value. +func (s *Instance) SetLaunchTime(v time.Time) *Instance { + s.LaunchTime = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *Instance) SetMonitoring(v *Monitoring) *Instance { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *Instance) SetNetworkInterfaces(v []*InstanceNetworkInterface) *Instance { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *Instance) SetPlacement(v *Placement) *Instance { + s.Placement = v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Instance) SetPlatform(v string) *Instance { + s.Platform = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *Instance) SetPrivateDnsName(v string) *Instance { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *Instance) SetPrivateIpAddress(v string) *Instance { + s.PrivateIpAddress = &v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *Instance) SetProductCodes(v []*ProductCode) *Instance { + s.ProductCodes = v + return s +} + +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *Instance) SetPublicDnsName(v string) *Instance { + s.PublicDnsName = &v + return s +} + +// SetPublicIpAddress sets the PublicIpAddress field's value. +func (s *Instance) SetPublicIpAddress(v string) *Instance { + s.PublicIpAddress = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *Instance) SetRamdiskId(v string) *Instance { + s.RamdiskId = &v + return s +} + +// SetRootDeviceName sets the RootDeviceName field's value. +func (s *Instance) SetRootDeviceName(v string) *Instance { + s.RootDeviceName = &v + return s +} + +// SetRootDeviceType sets the RootDeviceType field's value. +func (s *Instance) SetRootDeviceType(v string) *Instance { + s.RootDeviceType = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *Instance) SetSecurityGroups(v []*GroupIdentifier) *Instance { + s.SecurityGroups = v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *Instance) SetSourceDestCheck(v bool) *Instance { + s.SourceDestCheck = &v + return s +} + +// SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value. +func (s *Instance) SetSpotInstanceRequestId(v string) *Instance { + s.SpotInstanceRequestId = &v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *Instance) SetSriovNetSupport(v string) *Instance { + s.SriovNetSupport = &v + return s +} + +// SetState sets the State field's value. +func (s *Instance) SetState(v *InstanceState) *Instance { + s.State = v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *Instance) SetStateReason(v *StateReason) *Instance { + s.StateReason = v + return s +} + +// SetStateTransitionReason sets the StateTransitionReason field's value. +func (s *Instance) SetStateTransitionReason(v string) *Instance { + s.StateTransitionReason = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *Instance) SetSubnetId(v string) *Instance { + s.SubnetId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Instance) SetTags(v []*Tag) *Instance { + s.Tags = v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *Instance) SetVirtualizationType(v string) *Instance { + s.VirtualizationType = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Instance) SetVpcId(v string) *Instance { + s.VpcId = &v + return s +} + // Describes a block device mapping. type InstanceBlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -28073,6 +34750,18 @@ func (s InstanceBlockDeviceMapping) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *InstanceBlockDeviceMapping) SetDeviceName(v string) *InstanceBlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *InstanceBlockDeviceMapping) SetEbs(v *EbsInstanceBlockDevice) *InstanceBlockDeviceMapping { + s.Ebs = v + return s +} + // Describes a block device mapping entry. type InstanceBlockDeviceMappingSpecification struct { _ struct{} `type:"structure"` @@ -28101,6 +34790,30 @@ func (s InstanceBlockDeviceMappingSpecification) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *InstanceBlockDeviceMappingSpecification) SetDeviceName(v string) *InstanceBlockDeviceMappingSpecification { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *InstanceBlockDeviceMappingSpecification) SetEbs(v *EbsInstanceBlockDeviceSpecification) *InstanceBlockDeviceMappingSpecification { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *InstanceBlockDeviceMappingSpecification) SetNoDevice(v string) *InstanceBlockDeviceMappingSpecification { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *InstanceBlockDeviceMappingSpecification) SetVirtualName(v string) *InstanceBlockDeviceMappingSpecification { + s.VirtualName = &v + return s +} + // Information about the instance type that the Dedicated Host supports. type InstanceCapacity struct { _ struct{} `type:"structure"` @@ -28125,6 +34838,24 @@ func (s InstanceCapacity) GoString() string { return s.String() } +// SetAvailableCapacity sets the AvailableCapacity field's value. +func (s *InstanceCapacity) SetAvailableCapacity(v int64) *InstanceCapacity { + s.AvailableCapacity = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceCapacity) SetInstanceType(v string) *InstanceCapacity { + s.InstanceType = &v + return s +} + +// SetTotalCapacity sets the TotalCapacity field's value. +func (s *InstanceCapacity) SetTotalCapacity(v int64) *InstanceCapacity { + s.TotalCapacity = &v + return s +} + // Describes a Reserved Instance listing state. type InstanceCount struct { _ struct{} `type:"structure"` @@ -28146,6 +34877,18 @@ func (s InstanceCount) GoString() string { return s.String() } +// SetInstanceCount sets the InstanceCount field's value. +func (s *InstanceCount) SetInstanceCount(v int64) *InstanceCount { + s.InstanceCount = &v + return s +} + +// SetState sets the State field's value. +func (s *InstanceCount) SetState(v string) *InstanceCount { + s.State = &v + return s +} + // Describes an instance to export. type InstanceExportDetails struct { _ struct{} `type:"structure"` @@ -28167,6 +34910,18 @@ func (s InstanceExportDetails) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceExportDetails) SetInstanceId(v string) *InstanceExportDetails { + s.InstanceId = &v + return s +} + +// SetTargetEnvironment sets the TargetEnvironment field's value. +func (s *InstanceExportDetails) SetTargetEnvironment(v string) *InstanceExportDetails { + s.TargetEnvironment = &v + return s +} + // Describes the monitoring information of the instance. type InstanceMonitoring struct { _ struct{} `type:"structure"` @@ -28188,6 +34943,18 @@ func (s InstanceMonitoring) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceMonitoring) SetInstanceId(v string) *InstanceMonitoring { + s.InstanceId = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *InstanceMonitoring) SetMonitoring(v *Monitoring) *InstanceMonitoring { + s.Monitoring = v + return s +} + // Describes a network interface. type InstanceNetworkInterface struct { _ struct{} `type:"structure"` @@ -28246,6 +35013,90 @@ func (s InstanceNetworkInterface) GoString() string { return s.String() } +// SetAssociation sets the Association field's value. +func (s *InstanceNetworkInterface) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstanceNetworkInterface { + s.Association = v + return s +} + +// SetAttachment sets the Attachment field's value. +func (s *InstanceNetworkInterface) SetAttachment(v *InstanceNetworkInterfaceAttachment) *InstanceNetworkInterface { + s.Attachment = v + return s +} + +// SetDescription sets the Description field's value. +func (s *InstanceNetworkInterface) SetDescription(v string) *InstanceNetworkInterface { + s.Description = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *InstanceNetworkInterface) SetGroups(v []*GroupIdentifier) *InstanceNetworkInterface { + s.Groups = v + return s +} + +// SetMacAddress sets the MacAddress field's value. +func (s *InstanceNetworkInterface) SetMacAddress(v string) *InstanceNetworkInterface { + s.MacAddress = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *InstanceNetworkInterface) SetNetworkInterfaceId(v string) *InstanceNetworkInterface { + s.NetworkInterfaceId = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *InstanceNetworkInterface) SetOwnerId(v string) *InstanceNetworkInterface { + s.OwnerId = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *InstanceNetworkInterface) SetPrivateDnsName(v string) *InstanceNetworkInterface { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *InstanceNetworkInterface) SetPrivateIpAddress(v string) *InstanceNetworkInterface { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *InstanceNetworkInterface) SetPrivateIpAddresses(v []*InstancePrivateIpAddress) *InstanceNetworkInterface { + s.PrivateIpAddresses = v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *InstanceNetworkInterface) SetSourceDestCheck(v bool) *InstanceNetworkInterface { + s.SourceDestCheck = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceNetworkInterface) SetStatus(v string) *InstanceNetworkInterface { + s.Status = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *InstanceNetworkInterface) SetSubnetId(v string) *InstanceNetworkInterface { + s.SubnetId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *InstanceNetworkInterface) SetVpcId(v string) *InstanceNetworkInterface { + s.VpcId = &v + return s +} + // Describes association information for an Elastic IP address. type InstanceNetworkInterfaceAssociation struct { _ struct{} `type:"structure"` @@ -28270,6 +35121,24 @@ func (s InstanceNetworkInterfaceAssociation) GoString() string { return s.String() } +// SetIpOwnerId sets the IpOwnerId field's value. +func (s *InstanceNetworkInterfaceAssociation) SetIpOwnerId(v string) *InstanceNetworkInterfaceAssociation { + s.IpOwnerId = &v + return s +} + +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *InstanceNetworkInterfaceAssociation) SetPublicDnsName(v string) *InstanceNetworkInterfaceAssociation { + s.PublicDnsName = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *InstanceNetworkInterfaceAssociation) SetPublicIp(v string) *InstanceNetworkInterfaceAssociation { + s.PublicIp = &v + return s +} + // Describes a network interface attachment. type InstanceNetworkInterfaceAttachment struct { _ struct{} `type:"structure"` @@ -28300,6 +35169,36 @@ func (s InstanceNetworkInterfaceAttachment) GoString() string { return s.String() } +// SetAttachTime sets the AttachTime field's value. +func (s *InstanceNetworkInterfaceAttachment) SetAttachTime(v time.Time) *InstanceNetworkInterfaceAttachment { + s.AttachTime = &v + return s +} + +// SetAttachmentId sets the AttachmentId field's value. +func (s *InstanceNetworkInterfaceAttachment) SetAttachmentId(v string) *InstanceNetworkInterfaceAttachment { + s.AttachmentId = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *InstanceNetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceAttachment { + s.DeleteOnTermination = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *InstanceNetworkInterfaceAttachment) SetDeviceIndex(v int64) *InstanceNetworkInterfaceAttachment { + s.DeviceIndex = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceNetworkInterfaceAttachment) SetStatus(v string) *InstanceNetworkInterfaceAttachment { + s.Status = &v + return s +} + // Describes a network interface. type InstanceNetworkInterfaceSpecification struct { _ struct{} `type:"structure"` @@ -28383,6 +35282,66 @@ func (s *InstanceNetworkInterfaceSpecification) Validate() error { return nil } +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *InstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *InstanceNetworkInterfaceSpecification { + s.AssociatePublicIpAddress = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *InstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceSpecification { + s.DeleteOnTermination = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *InstanceNetworkInterfaceSpecification) SetDescription(v string) *InstanceNetworkInterfaceSpecification { + s.Description = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *InstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *InstanceNetworkInterfaceSpecification { + s.DeviceIndex = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *InstanceNetworkInterfaceSpecification) SetGroups(v []*string) *InstanceNetworkInterfaceSpecification { + s.Groups = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *InstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *InstanceNetworkInterfaceSpecification { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *InstanceNetworkInterfaceSpecification { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *InstanceNetworkInterfaceSpecification { + s.PrivateIpAddresses = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *InstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *InstanceNetworkInterfaceSpecification { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *InstanceNetworkInterfaceSpecification) SetSubnetId(v string) *InstanceNetworkInterfaceSpecification { + s.SubnetId = &v + return s +} + // Describes a private IP address. type InstancePrivateIpAddress struct { _ struct{} `type:"structure"` @@ -28411,6 +35370,30 @@ func (s InstancePrivateIpAddress) GoString() string { return s.String() } +// SetAssociation sets the Association field's value. +func (s *InstancePrivateIpAddress) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstancePrivateIpAddress { + s.Association = v + return s +} + +// SetPrimary sets the Primary field's value. +func (s *InstancePrivateIpAddress) SetPrimary(v bool) *InstancePrivateIpAddress { + s.Primary = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *InstancePrivateIpAddress) SetPrivateDnsName(v string) *InstancePrivateIpAddress { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivateIpAddress { + s.PrivateIpAddress = &v + return s +} + // Describes the current state of the instance. type InstanceState struct { _ struct{} `type:"structure"` @@ -28418,17 +35401,17 @@ type InstanceState struct { // The low byte represents the state. The high byte is an opaque internal value // and should be ignored. // - // 0 : pending + // * 0 : pending // - // 16 : running + // * 16 : running // - // 32 : shutting-down + // * 32 : shutting-down // - // 48 : terminated + // * 48 : terminated // - // 64 : stopping + // * 64 : stopping // - // 80 : stopped + // * 80 : stopped Code *int64 `locationName:"code" type:"integer"` // The current state of the instance. @@ -28445,6 +35428,18 @@ func (s InstanceState) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *InstanceState) SetCode(v int64) *InstanceState { + s.Code = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceState) SetName(v string) *InstanceState { + s.Name = &v + return s +} + // Describes an instance state change. type InstanceStateChange struct { _ struct{} `type:"structure"` @@ -28469,6 +35464,24 @@ func (s InstanceStateChange) GoString() string { return s.String() } +// SetCurrentState sets the CurrentState field's value. +func (s *InstanceStateChange) SetCurrentState(v *InstanceState) *InstanceStateChange { + s.CurrentState = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceStateChange) SetInstanceId(v string) *InstanceStateChange { + s.InstanceId = &v + return s +} + +// SetPreviousState sets the PreviousState field's value. +func (s *InstanceStateChange) SetPreviousState(v *InstanceState) *InstanceStateChange { + s.PreviousState = v + return s +} + // Describes the status of an instance. type InstanceStatus struct { _ struct{} `type:"structure"` @@ -28506,6 +35519,42 @@ func (s InstanceStatus) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *InstanceStatus) SetAvailabilityZone(v string) *InstanceStatus { + s.AvailabilityZone = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *InstanceStatus) SetEvents(v []*InstanceStatusEvent) *InstanceStatus { + s.Events = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceStatus) SetInstanceId(v string) *InstanceStatus { + s.InstanceId = &v + return s +} + +// SetInstanceState sets the InstanceState field's value. +func (s *InstanceStatus) SetInstanceState(v *InstanceState) *InstanceStatus { + s.InstanceState = v + return s +} + +// SetInstanceStatus sets the InstanceStatus field's value. +func (s *InstanceStatus) SetInstanceStatus(v *InstanceStatusSummary) *InstanceStatus { + s.InstanceStatus = v + return s +} + +// SetSystemStatus sets the SystemStatus field's value. +func (s *InstanceStatus) SetSystemStatus(v *InstanceStatusSummary) *InstanceStatus { + s.SystemStatus = v + return s +} + // Describes the instance status. type InstanceStatusDetails struct { _ struct{} `type:"structure"` @@ -28531,6 +35580,24 @@ func (s InstanceStatusDetails) GoString() string { return s.String() } +// SetImpairedSince sets the ImpairedSince field's value. +func (s *InstanceStatusDetails) SetImpairedSince(v time.Time) *InstanceStatusDetails { + s.ImpairedSince = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceStatusDetails) SetName(v string) *InstanceStatusDetails { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceStatusDetails) SetStatus(v string) *InstanceStatusDetails { + s.Status = &v + return s +} + // Describes a scheduled event for an instance. type InstanceStatusEvent struct { _ struct{} `type:"structure"` @@ -28562,6 +35629,30 @@ func (s InstanceStatusEvent) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *InstanceStatusEvent) SetCode(v string) *InstanceStatusEvent { + s.Code = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *InstanceStatusEvent) SetDescription(v string) *InstanceStatusEvent { + s.Description = &v + return s +} + +// SetNotAfter sets the NotAfter field's value. +func (s *InstanceStatusEvent) SetNotAfter(v time.Time) *InstanceStatusEvent { + s.NotAfter = &v + return s +} + +// SetNotBefore sets the NotBefore field's value. +func (s *InstanceStatusEvent) SetNotBefore(v time.Time) *InstanceStatusEvent { + s.NotBefore = &v + return s +} + // Describes the status of an instance. type InstanceStatusSummary struct { _ struct{} `type:"structure"` @@ -28583,6 +35674,18 @@ func (s InstanceStatusSummary) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *InstanceStatusSummary) SetDetails(v []*InstanceStatusDetails) *InstanceStatusSummary { + s.Details = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceStatusSummary) SetStatus(v string) *InstanceStatusSummary { + s.Status = &v + return s +} + // Describes an Internet gateway. type InternetGateway struct { _ struct{} `type:"structure"` @@ -28607,6 +35710,24 @@ func (s InternetGateway) GoString() string { return s.String() } +// SetAttachments sets the Attachments field's value. +func (s *InternetGateway) SetAttachments(v []*InternetGatewayAttachment) *InternetGateway { + s.Attachments = v + return s +} + +// SetInternetGatewayId sets the InternetGatewayId field's value. +func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway { + s.InternetGatewayId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway { + s.Tags = v + return s +} + // Describes the attachment of a VPC to an Internet gateway. type InternetGatewayAttachment struct { _ struct{} `type:"structure"` @@ -28628,6 +35749,18 @@ func (s InternetGatewayAttachment) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *InternetGatewayAttachment) SetState(v string) *InternetGatewayAttachment { + s.State = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *InternetGatewayAttachment) SetVpcId(v string) *InternetGatewayAttachment { + s.VpcId = &v + return s +} + // Describes a security group rule. type IpPermission struct { _ struct{} `type:"structure"` @@ -28670,6 +35803,42 @@ func (s IpPermission) GoString() string { return s.String() } +// SetFromPort sets the FromPort field's value. +func (s *IpPermission) SetFromPort(v int64) *IpPermission { + s.FromPort = &v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *IpPermission) SetIpProtocol(v string) *IpPermission { + s.IpProtocol = &v + return s +} + +// SetIpRanges sets the IpRanges field's value. +func (s *IpPermission) SetIpRanges(v []*IpRange) *IpPermission { + s.IpRanges = v + return s +} + +// SetPrefixListIds sets the PrefixListIds field's value. +func (s *IpPermission) SetPrefixListIds(v []*PrefixListId) *IpPermission { + s.PrefixListIds = v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *IpPermission) SetToPort(v int64) *IpPermission { + s.ToPort = &v + return s +} + +// SetUserIdGroupPairs sets the UserIdGroupPairs field's value. +func (s *IpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *IpPermission { + s.UserIdGroupPairs = v + return s +} + // Describes an IP range. type IpRange struct { _ struct{} `type:"structure"` @@ -28689,6 +35858,12 @@ func (s IpRange) GoString() string { return s.String() } +// SetCidrIp sets the CidrIp field's value. +func (s *IpRange) SetCidrIp(v string) *IpRange { + s.CidrIp = &v + return s +} + // Describes a key pair. type KeyPairInfo struct { _ struct{} `type:"structure"` @@ -28713,6 +35888,18 @@ func (s KeyPairInfo) GoString() string { return s.String() } +// SetKeyFingerprint sets the KeyFingerprint field's value. +func (s *KeyPairInfo) SetKeyFingerprint(v string) *KeyPairInfo { + s.KeyFingerprint = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *KeyPairInfo) SetKeyName(v string) *KeyPairInfo { + s.KeyName = &v + return s +} + // Describes a launch permission. type LaunchPermission struct { _ struct{} `type:"structure"` @@ -28734,6 +35921,18 @@ func (s LaunchPermission) GoString() string { return s.String() } +// SetGroup sets the Group field's value. +func (s *LaunchPermission) SetGroup(v string) *LaunchPermission { + s.Group = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *LaunchPermission) SetUserId(v string) *LaunchPermission { + s.UserId = &v + return s +} + // Describes a launch permission modification. type LaunchPermissionModifications struct { _ struct{} `type:"structure"` @@ -28756,6 +35955,18 @@ func (s LaunchPermissionModifications) GoString() string { return s.String() } +// SetAdd sets the Add field's value. +func (s *LaunchPermissionModifications) SetAdd(v []*LaunchPermission) *LaunchPermissionModifications { + s.Add = v + return s +} + +// SetRemove sets the Remove field's value. +func (s *LaunchPermissionModifications) SetRemove(v []*LaunchPermission) *LaunchPermissionModifications { + s.Remove = v + return s +} + // Describes the launch specification for an instance. type LaunchSpecification struct { _ struct{} `type:"structure"` @@ -28829,6 +36040,96 @@ func (s LaunchSpecification) GoString() string { return s.String() } +// SetAddressingType sets the AddressingType field's value. +func (s *LaunchSpecification) SetAddressingType(v string) *LaunchSpecification { + s.AddressingType = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *LaunchSpecification) SetEbsOptimized(v bool) *LaunchSpecification { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *LaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *LaunchSpecification { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *LaunchSpecification) SetImageId(v string) *LaunchSpecification { + s.ImageId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *LaunchSpecification) SetInstanceType(v string) *LaunchSpecification { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *LaunchSpecification) SetKernelId(v string) *LaunchSpecification { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *LaunchSpecification) SetKeyName(v string) *LaunchSpecification { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *LaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *LaunchSpecification { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *LaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *LaunchSpecification { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *LaunchSpecification) SetPlacement(v *SpotPlacement) *LaunchSpecification { + s.Placement = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *LaunchSpecification) SetRamdiskId(v string) *LaunchSpecification { + s.RamdiskId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *LaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *LaunchSpecification { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *LaunchSpecification) SetSubnetId(v string) *LaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *LaunchSpecification) SetUserData(v string) *LaunchSpecification { + s.UserData = &v + return s +} + // Contains the parameters for ModifyHosts. type ModifyHostsInput struct { _ struct{} `type:"structure"` @@ -28870,6 +36171,18 @@ func (s *ModifyHostsInput) Validate() error { return nil } +// SetAutoPlacement sets the AutoPlacement field's value. +func (s *ModifyHostsInput) SetAutoPlacement(v string) *ModifyHostsInput { + s.AutoPlacement = &v + return s +} + +// SetHostIds sets the HostIds field's value. +func (s *ModifyHostsInput) SetHostIds(v []*string) *ModifyHostsInput { + s.HostIds = v + return s +} + // Contains the output of ModifyHosts. type ModifyHostsOutput struct { _ struct{} `type:"structure"` @@ -28892,6 +36205,18 @@ func (s ModifyHostsOutput) GoString() string { return s.String() } +// SetSuccessful sets the Successful field's value. +func (s *ModifyHostsOutput) SetSuccessful(v []*string) *ModifyHostsOutput { + s.Successful = v + return s +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *ModifyHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ModifyHostsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters of ModifyIdFormat. type ModifyIdFormatInput struct { _ struct{} `type:"structure"` @@ -28933,6 +36258,18 @@ func (s *ModifyIdFormatInput) Validate() error { return nil } +// SetResource sets the Resource field's value. +func (s *ModifyIdFormatInput) SetResource(v string) *ModifyIdFormatInput { + s.Resource = &v + return s +} + +// SetUseLongIds sets the UseLongIds field's value. +func (s *ModifyIdFormatInput) SetUseLongIds(v bool) *ModifyIdFormatInput { + s.UseLongIds = &v + return s +} + type ModifyIdFormatOutput struct { _ struct{} `type:"structure"` } @@ -28998,6 +36335,24 @@ func (s *ModifyIdentityIdFormatInput) Validate() error { return nil } +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *ModifyIdentityIdFormatInput) SetPrincipalArn(v string) *ModifyIdentityIdFormatInput { + s.PrincipalArn = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *ModifyIdentityIdFormatInput) SetResource(v string) *ModifyIdentityIdFormatInput { + s.Resource = &v + return s +} + +// SetUseLongIds sets the UseLongIds field's value. +func (s *ModifyIdentityIdFormatInput) SetUseLongIds(v bool) *ModifyIdentityIdFormatInput { + s.UseLongIds = &v + return s +} + type ModifyIdentityIdFormatOutput struct { _ struct{} `type:"structure"` } @@ -29079,6 +36434,66 @@ func (s *ModifyImageAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ModifyImageAttributeInput) SetAttribute(v string) *ModifyImageAttributeInput { + s.Attribute = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ModifyImageAttributeInput) SetDescription(v *AttributeValue) *ModifyImageAttributeInput { + s.Description = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyImageAttributeInput) SetDryRun(v bool) *ModifyImageAttributeInput { + s.DryRun = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ModifyImageAttributeInput) SetImageId(v string) *ModifyImageAttributeInput { + s.ImageId = &v + return s +} + +// SetLaunchPermission sets the LaunchPermission field's value. +func (s *ModifyImageAttributeInput) SetLaunchPermission(v *LaunchPermissionModifications) *ModifyImageAttributeInput { + s.LaunchPermission = v + return s +} + +// SetOperationType sets the OperationType field's value. +func (s *ModifyImageAttributeInput) SetOperationType(v string) *ModifyImageAttributeInput { + s.OperationType = &v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *ModifyImageAttributeInput) SetProductCodes(v []*string) *ModifyImageAttributeInput { + s.ProductCodes = v + return s +} + +// SetUserGroups sets the UserGroups field's value. +func (s *ModifyImageAttributeInput) SetUserGroups(v []*string) *ModifyImageAttributeInput { + s.UserGroups = v + return s +} + +// SetUserIds sets the UserIds field's value. +func (s *ModifyImageAttributeInput) SetUserIds(v []*string) *ModifyImageAttributeInput { + s.UserIds = v + return s +} + +// SetValue sets the Value field's value. +func (s *ModifyImageAttributeInput) SetValue(v string) *ModifyImageAttributeInput { + s.Value = &v + return s +} + type ModifyImageAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29131,8 +36546,8 @@ type ModifyInstanceAttributeInput struct { // Set to true to enable enhanced networking with ENA for the instance. // - // This option is supported only for HVM instances. Specifying this option - // with a PV instance can make it unreachable. + // This option is supported only for HVM instances. Specifying this option with + // a PV instance can make it unreachable. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"` // [EC2-VPC] Changes the security groups of the instance. You must specify at @@ -29175,8 +36590,8 @@ type ModifyInstanceAttributeInput struct { // There is no way to disable enhanced networking with the Intel 82599 Virtual // Function interface at this time. // - // This option is supported only for HVM instances. Specifying this option - // with a PV instance can make it unreachable. + // This option is supported only for HVM instances. Specifying this option with + // a PV instance can make it unreachable. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"` // Changes the instance's user data to the specified value. If you are using @@ -29213,6 +36628,102 @@ func (s *ModifyInstanceAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ModifyInstanceAttributeInput) SetAttribute(v string) *ModifyInstanceAttributeInput { + s.Attribute = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *ModifyInstanceAttributeInput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMappingSpecification) *ModifyInstanceAttributeInput { + s.BlockDeviceMappings = v + return s +} + +// SetDisableApiTermination sets the DisableApiTermination field's value. +func (s *ModifyInstanceAttributeInput) SetDisableApiTermination(v *AttributeBooleanValue) *ModifyInstanceAttributeInput { + s.DisableApiTermination = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyInstanceAttributeInput) SetDryRun(v bool) *ModifyInstanceAttributeInput { + s.DryRun = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *ModifyInstanceAttributeInput) SetEbsOptimized(v *AttributeBooleanValue) *ModifyInstanceAttributeInput { + s.EbsOptimized = v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *ModifyInstanceAttributeInput) SetEnaSupport(v *AttributeBooleanValue) *ModifyInstanceAttributeInput { + s.EnaSupport = v + return s +} + +// SetGroups sets the Groups field's value. +func (s *ModifyInstanceAttributeInput) SetGroups(v []*string) *ModifyInstanceAttributeInput { + s.Groups = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ModifyInstanceAttributeInput) SetInstanceId(v string) *ModifyInstanceAttributeInput { + s.InstanceId = &v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *ModifyInstanceAttributeInput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *ModifyInstanceAttributeInput { + s.InstanceInitiatedShutdownBehavior = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ModifyInstanceAttributeInput) SetInstanceType(v *AttributeValue) *ModifyInstanceAttributeInput { + s.InstanceType = v + return s +} + +// SetKernel sets the Kernel field's value. +func (s *ModifyInstanceAttributeInput) SetKernel(v *AttributeValue) *ModifyInstanceAttributeInput { + s.Kernel = v + return s +} + +// SetRamdisk sets the Ramdisk field's value. +func (s *ModifyInstanceAttributeInput) SetRamdisk(v *AttributeValue) *ModifyInstanceAttributeInput { + s.Ramdisk = v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *ModifyInstanceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyInstanceAttributeInput { + s.SourceDestCheck = v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *ModifyInstanceAttributeInput) SetSriovNetSupport(v *AttributeValue) *ModifyInstanceAttributeInput { + s.SriovNetSupport = v + return s +} + +// SetUserData sets the UserData field's value. +func (s *ModifyInstanceAttributeInput) SetUserData(v *BlobAttributeValue) *ModifyInstanceAttributeInput { + s.UserData = v + return s +} + +// SetValue sets the Value field's value. +func (s *ModifyInstanceAttributeInput) SetValue(v string) *ModifyInstanceAttributeInput { + s.Value = &v + return s +} + type ModifyInstanceAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29269,6 +36780,30 @@ func (s *ModifyInstancePlacementInput) Validate() error { return nil } +// SetAffinity sets the Affinity field's value. +func (s *ModifyInstancePlacementInput) SetAffinity(v string) *ModifyInstancePlacementInput { + s.Affinity = &v + return s +} + +// SetHostId sets the HostId field's value. +func (s *ModifyInstancePlacementInput) SetHostId(v string) *ModifyInstancePlacementInput { + s.HostId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ModifyInstancePlacementInput) SetInstanceId(v string) *ModifyInstancePlacementInput { + s.InstanceId = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *ModifyInstancePlacementInput) SetTenancy(v string) *ModifyInstancePlacementInput { + s.Tenancy = &v + return s +} + // Contains the output of ModifyInstancePlacement. type ModifyInstancePlacementOutput struct { _ struct{} `type:"structure"` @@ -29287,6 +36822,12 @@ func (s ModifyInstancePlacementOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *ModifyInstancePlacementOutput) SetReturn(v bool) *ModifyInstancePlacementOutput { + s.Return = &v + return s +} + // Contains the parameters for ModifyNetworkInterfaceAttribute. type ModifyNetworkInterfaceAttributeInput struct { _ struct{} `type:"structure"` @@ -29346,6 +36887,42 @@ func (s *ModifyNetworkInterfaceAttributeInput) Validate() error { return nil } +// SetAttachment sets the Attachment field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetAttachment(v *NetworkInterfaceAttachmentChanges) *ModifyNetworkInterfaceAttributeInput { + s.Attachment = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetDescription(v *AttributeValue) *ModifyNetworkInterfaceAttributeInput { + s.Description = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetDryRun(v bool) *ModifyNetworkInterfaceAttributeInput { + s.DryRun = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetGroups(v []*string) *ModifyNetworkInterfaceAttributeInput { + s.Groups = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ModifyNetworkInterfaceAttributeInput { + s.NetworkInterfaceId = &v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyNetworkInterfaceAttributeInput { + s.SourceDestCheck = v + return s +} + type ModifyNetworkInterfaceAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29405,6 +36982,24 @@ func (s *ModifyReservedInstancesInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *ModifyReservedInstancesInput) SetClientToken(v string) *ModifyReservedInstancesInput { + s.ClientToken = &v + return s +} + +// SetReservedInstancesIds sets the ReservedInstancesIds field's value. +func (s *ModifyReservedInstancesInput) SetReservedInstancesIds(v []*string) *ModifyReservedInstancesInput { + s.ReservedInstancesIds = v + return s +} + +// SetTargetConfigurations sets the TargetConfigurations field's value. +func (s *ModifyReservedInstancesInput) SetTargetConfigurations(v []*ReservedInstancesConfiguration) *ModifyReservedInstancesInput { + s.TargetConfigurations = v + return s +} + // Contains the output of ModifyReservedInstances. type ModifyReservedInstancesOutput struct { _ struct{} `type:"structure"` @@ -29423,13 +37018,19 @@ func (s ModifyReservedInstancesOutput) GoString() string { return s.String() } +// SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value. +func (s *ModifyReservedInstancesOutput) SetReservedInstancesModificationId(v string) *ModifyReservedInstancesOutput { + s.ReservedInstancesModificationId = &v + return s +} + // Contains the parameters for ModifySnapshotAttribute. type ModifySnapshotAttributeInput struct { _ struct{} `type:"structure"` // The snapshot attribute to modify. // - // Only volume creation permissions may be modified at the customer level. + // Only volume creation permissions may be modified at the customer level. Attribute *string `type:"string" enum:"SnapshotAttributeName"` // A JSON representation of the snapshot attribute modification. @@ -29479,6 +37080,48 @@ func (s *ModifySnapshotAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ModifySnapshotAttributeInput) SetAttribute(v string) *ModifySnapshotAttributeInput { + s.Attribute = &v + return s +} + +// SetCreateVolumePermission sets the CreateVolumePermission field's value. +func (s *ModifySnapshotAttributeInput) SetCreateVolumePermission(v *CreateVolumePermissionModifications) *ModifySnapshotAttributeInput { + s.CreateVolumePermission = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifySnapshotAttributeInput) SetDryRun(v bool) *ModifySnapshotAttributeInput { + s.DryRun = &v + return s +} + +// SetGroupNames sets the GroupNames field's value. +func (s *ModifySnapshotAttributeInput) SetGroupNames(v []*string) *ModifySnapshotAttributeInput { + s.GroupNames = v + return s +} + +// SetOperationType sets the OperationType field's value. +func (s *ModifySnapshotAttributeInput) SetOperationType(v string) *ModifySnapshotAttributeInput { + s.OperationType = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *ModifySnapshotAttributeInput) SetSnapshotId(v string) *ModifySnapshotAttributeInput { + s.SnapshotId = &v + return s +} + +// SetUserIds sets the UserIds field's value. +func (s *ModifySnapshotAttributeInput) SetUserIds(v []*string) *ModifySnapshotAttributeInput { + s.UserIds = v + return s +} + type ModifySnapshotAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29534,6 +37177,24 @@ func (s *ModifySpotFleetRequestInput) Validate() error { return nil } +// SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value. +func (s *ModifySpotFleetRequestInput) SetExcessCapacityTerminationPolicy(v string) *ModifySpotFleetRequestInput { + s.ExcessCapacityTerminationPolicy = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *ModifySpotFleetRequestInput) SetSpotFleetRequestId(v string) *ModifySpotFleetRequestInput { + s.SpotFleetRequestId = &v + return s +} + +// SetTargetCapacity sets the TargetCapacity field's value. +func (s *ModifySpotFleetRequestInput) SetTargetCapacity(v int64) *ModifySpotFleetRequestInput { + s.TargetCapacity = &v + return s +} + // Contains the output of ModifySpotFleetRequest. type ModifySpotFleetRequestOutput struct { _ struct{} `type:"structure"` @@ -29552,6 +37213,12 @@ func (s ModifySpotFleetRequestOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *ModifySpotFleetRequestOutput) SetReturn(v bool) *ModifySpotFleetRequestOutput { + s.Return = &v + return s +} + // Contains the parameters for ModifySubnetAttribute. type ModifySubnetAttributeInput struct { _ struct{} `type:"structure"` @@ -29589,6 +37256,18 @@ func (s *ModifySubnetAttributeInput) Validate() error { return nil } +// SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value. +func (s *ModifySubnetAttributeInput) SetMapPublicIpOnLaunch(v *AttributeBooleanValue) *ModifySubnetAttributeInput { + s.MapPublicIpOnLaunch = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ModifySubnetAttributeInput) SetSubnetId(v string) *ModifySubnetAttributeInput { + s.SubnetId = &v + return s +} + type ModifySubnetAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29645,6 +37324,24 @@ func (s *ModifyVolumeAttributeInput) Validate() error { return nil } +// SetAutoEnableIO sets the AutoEnableIO field's value. +func (s *ModifyVolumeAttributeInput) SetAutoEnableIO(v *AttributeBooleanValue) *ModifyVolumeAttributeInput { + s.AutoEnableIO = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVolumeAttributeInput) SetDryRun(v bool) *ModifyVolumeAttributeInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *ModifyVolumeAttributeInput) SetVolumeId(v string) *ModifyVolumeAttributeInput { + s.VolumeId = &v + return s +} + type ModifyVolumeAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29710,6 +37407,24 @@ func (s *ModifyVpcAttributeInput) Validate() error { return nil } +// SetEnableDnsHostnames sets the EnableDnsHostnames field's value. +func (s *ModifyVpcAttributeInput) SetEnableDnsHostnames(v *AttributeBooleanValue) *ModifyVpcAttributeInput { + s.EnableDnsHostnames = v + return s +} + +// SetEnableDnsSupport sets the EnableDnsSupport field's value. +func (s *ModifyVpcAttributeInput) SetEnableDnsSupport(v *AttributeBooleanValue) *ModifyVpcAttributeInput { + s.EnableDnsSupport = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ModifyVpcAttributeInput) SetVpcId(v string) *ModifyVpcAttributeInput { + s.VpcId = &v + return s +} + type ModifyVpcAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29777,6 +37492,42 @@ func (s *ModifyVpcEndpointInput) Validate() error { return nil } +// SetAddRouteTableIds sets the AddRouteTableIds field's value. +func (s *ModifyVpcEndpointInput) SetAddRouteTableIds(v []*string) *ModifyVpcEndpointInput { + s.AddRouteTableIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVpcEndpointInput) SetDryRun(v bool) *ModifyVpcEndpointInput { + s.DryRun = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *ModifyVpcEndpointInput) SetPolicyDocument(v string) *ModifyVpcEndpointInput { + s.PolicyDocument = &v + return s +} + +// SetRemoveRouteTableIds sets the RemoveRouteTableIds field's value. +func (s *ModifyVpcEndpointInput) SetRemoveRouteTableIds(v []*string) *ModifyVpcEndpointInput { + s.RemoveRouteTableIds = v + return s +} + +// SetResetPolicy sets the ResetPolicy field's value. +func (s *ModifyVpcEndpointInput) SetResetPolicy(v bool) *ModifyVpcEndpointInput { + s.ResetPolicy = &v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *ModifyVpcEndpointInput) SetVpcEndpointId(v string) *ModifyVpcEndpointInput { + s.VpcEndpointId = &v + return s +} + // Contains the output of ModifyVpcEndpoint. type ModifyVpcEndpointOutput struct { _ struct{} `type:"structure"` @@ -29795,6 +37546,12 @@ func (s ModifyVpcEndpointOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *ModifyVpcEndpointOutput) SetReturn(v bool) *ModifyVpcEndpointOutput { + s.Return = &v + return s +} + type ModifyVpcPeeringConnectionOptionsInput struct { _ struct{} `type:"structure"` @@ -29839,6 +37596,30 @@ func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error { return nil } +// SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value. +func (s *ModifyVpcPeeringConnectionOptionsInput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput { + s.AccepterPeeringConnectionOptions = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVpcPeeringConnectionOptionsInput) SetDryRun(v bool) *ModifyVpcPeeringConnectionOptionsInput { + s.DryRun = &v + return s +} + +// SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value. +func (s *ModifyVpcPeeringConnectionOptionsInput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput { + s.RequesterPeeringConnectionOptions = v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *ModifyVpcPeeringConnectionOptionsInput) SetVpcPeeringConnectionId(v string) *ModifyVpcPeeringConnectionOptionsInput { + s.VpcPeeringConnectionId = &v + return s +} + type ModifyVpcPeeringConnectionOptionsOutput struct { _ struct{} `type:"structure"` @@ -29859,6 +37640,18 @@ func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string { return s.String() } +// SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value. +func (s *ModifyVpcPeeringConnectionOptionsOutput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput { + s.AccepterPeeringConnectionOptions = v + return s +} + +// SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value. +func (s *ModifyVpcPeeringConnectionOptionsOutput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput { + s.RequesterPeeringConnectionOptions = v + return s +} + // Contains the parameters for MonitorInstances. type MonitorInstancesInput struct { _ struct{} `type:"structure"` @@ -29898,6 +37691,18 @@ func (s *MonitorInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *MonitorInstancesInput) SetDryRun(v bool) *MonitorInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *MonitorInstancesInput) SetInstanceIds(v []*string) *MonitorInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of MonitorInstances. type MonitorInstancesOutput struct { _ struct{} `type:"structure"` @@ -29916,6 +37721,12 @@ func (s MonitorInstancesOutput) GoString() string { return s.String() } +// SetInstanceMonitorings sets the InstanceMonitorings field's value. +func (s *MonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *MonitorInstancesOutput { + s.InstanceMonitorings = v + return s +} + // Describes the monitoring for the instance. type Monitoring struct { _ struct{} `type:"structure"` @@ -29934,6 +37745,12 @@ func (s Monitoring) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *Monitoring) SetState(v string) *Monitoring { + s.State = &v + return s +} + // Contains the parameters for MoveAddressToVpc. type MoveAddressToVpcInput struct { _ struct{} `type:"structure"` @@ -29973,6 +37790,18 @@ func (s *MoveAddressToVpcInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *MoveAddressToVpcInput) SetDryRun(v bool) *MoveAddressToVpcInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *MoveAddressToVpcInput) SetPublicIp(v string) *MoveAddressToVpcInput { + s.PublicIp = &v + return s +} + // Contains the output of MoveAddressToVpc. type MoveAddressToVpcOutput struct { _ struct{} `type:"structure"` @@ -29994,6 +37823,18 @@ func (s MoveAddressToVpcOutput) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *MoveAddressToVpcOutput) SetAllocationId(v string) *MoveAddressToVpcOutput { + s.AllocationId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *MoveAddressToVpcOutput) SetStatus(v string) *MoveAddressToVpcOutput { + s.Status = &v + return s +} + // Describes the status of a moving Elastic IP address. type MovingAddressStatus struct { _ struct{} `type:"structure"` @@ -30016,6 +37857,18 @@ func (s MovingAddressStatus) GoString() string { return s.String() } +// SetMoveStatus sets the MoveStatus field's value. +func (s *MovingAddressStatus) SetMoveStatus(v string) *MovingAddressStatus { + s.MoveStatus = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *MovingAddressStatus) SetPublicIp(v string) *MovingAddressStatus { + s.PublicIp = &v + return s +} + // Describes a NAT gateway. type NatGateway struct { _ struct{} `type:"structure"` @@ -30034,23 +37887,23 @@ type NatGateway struct { // If the NAT gateway could not be created, specifies the error message for // the failure, that corresponds to the error code. // - // For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses - // to create this NAT gateway" + // * For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free + // addresses to create this NAT gateway" // - // For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway - // attached" + // * For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway + // attached" // - // For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx - // could not be associated with this NAT gateway" + // * For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx + // could not be associated with this NAT gateway" // - // For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx - // is already associated" + // * For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx + // is already associated" // - // For InternalError: "Network interface eni-xxxxxxxx, created and used internally - // by this NAT gateway is in an invalid state. Please try again." + // * For InternalError: "Network interface eni-xxxxxxxx, created and used + // internally by this NAT gateway is in an invalid state. Please try again." // - // For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does - // not exist or could not be found." + // * For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx + // does not exist or could not be found." FailureMessage *string `locationName:"failureMessage" type:"string"` // Information about the IP addresses and network interface associated with @@ -30067,21 +37920,21 @@ type NatGateway struct { // The state of the NAT gateway. // - // pending: The NAT gateway is being created and is not ready to process - // traffic. + // * pending: The NAT gateway is being created and is not ready to process + // traffic. // - // failed: The NAT gateway could not be created. Check the failureCode and - // failureMessage fields for the reason. + // * failed: The NAT gateway could not be created. Check the failureCode + // and failureMessage fields for the reason. // - // available: The NAT gateway is able to process traffic. This status remains - // until you delete the NAT gateway, and does not indicate the health of the - // NAT gateway. + // * available: The NAT gateway is able to process traffic. This status remains + // until you delete the NAT gateway, and does not indicate the health of + // the NAT gateway. // - // deleting: The NAT gateway is in the process of being terminated and may - // still be processing traffic. + // * deleting: The NAT gateway is in the process of being terminated and + // may still be processing traffic. // - // deleted: The NAT gateway has been terminated and is no longer processing - // traffic. + // * deleted: The NAT gateway has been terminated and is no longer processing + // traffic. State *string `locationName:"state" type:"string" enum:"NatGatewayState"` // The ID of the subnet in which the NAT gateway is located. @@ -30101,6 +37954,66 @@ func (s NatGateway) GoString() string { return s.String() } +// SetCreateTime sets the CreateTime field's value. +func (s *NatGateway) SetCreateTime(v time.Time) *NatGateway { + s.CreateTime = &v + return s +} + +// SetDeleteTime sets the DeleteTime field's value. +func (s *NatGateway) SetDeleteTime(v time.Time) *NatGateway { + s.DeleteTime = &v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *NatGateway) SetFailureCode(v string) *NatGateway { + s.FailureCode = &v + return s +} + +// SetFailureMessage sets the FailureMessage field's value. +func (s *NatGateway) SetFailureMessage(v string) *NatGateway { + s.FailureMessage = &v + return s +} + +// SetNatGatewayAddresses sets the NatGatewayAddresses field's value. +func (s *NatGateway) SetNatGatewayAddresses(v []*NatGatewayAddress) *NatGateway { + s.NatGatewayAddresses = v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *NatGateway) SetNatGatewayId(v string) *NatGateway { + s.NatGatewayId = &v + return s +} + +// SetProvisionedBandwidth sets the ProvisionedBandwidth field's value. +func (s *NatGateway) SetProvisionedBandwidth(v *ProvisionedBandwidth) *NatGateway { + s.ProvisionedBandwidth = v + return s +} + +// SetState sets the State field's value. +func (s *NatGateway) SetState(v string) *NatGateway { + s.State = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *NatGateway) SetSubnetId(v string) *NatGateway { + s.SubnetId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *NatGateway) SetVpcId(v string) *NatGateway { + s.VpcId = &v + return s +} + // Describes the IP addresses and network interface associated with a NAT gateway. type NatGatewayAddress struct { _ struct{} `type:"structure"` @@ -30129,6 +38042,30 @@ func (s NatGatewayAddress) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress { + s.AllocationId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIp sets the PrivateIp field's value. +func (s *NatGatewayAddress) SetPrivateIp(v string) *NatGatewayAddress { + s.PrivateIp = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress { + s.PublicIp = &v + return s +} + // Describes a network ACL. type NetworkAcl struct { _ struct{} `type:"structure"` @@ -30162,6 +38099,42 @@ func (s NetworkAcl) GoString() string { return s.String() } +// SetAssociations sets the Associations field's value. +func (s *NetworkAcl) SetAssociations(v []*NetworkAclAssociation) *NetworkAcl { + s.Associations = v + return s +} + +// SetEntries sets the Entries field's value. +func (s *NetworkAcl) SetEntries(v []*NetworkAclEntry) *NetworkAcl { + s.Entries = v + return s +} + +// SetIsDefault sets the IsDefault field's value. +func (s *NetworkAcl) SetIsDefault(v bool) *NetworkAcl { + s.IsDefault = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *NetworkAcl) SetNetworkAclId(v string) *NetworkAcl { + s.NetworkAclId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *NetworkAcl) SetTags(v []*Tag) *NetworkAcl { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *NetworkAcl) SetVpcId(v string) *NetworkAcl { + s.VpcId = &v + return s +} + // Describes an association between a network ACL and a subnet. type NetworkAclAssociation struct { _ struct{} `type:"structure"` @@ -30186,6 +38159,24 @@ func (s NetworkAclAssociation) GoString() string { return s.String() } +// SetNetworkAclAssociationId sets the NetworkAclAssociationId field's value. +func (s *NetworkAclAssociation) SetNetworkAclAssociationId(v string) *NetworkAclAssociation { + s.NetworkAclAssociationId = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *NetworkAclAssociation) SetNetworkAclId(v string) *NetworkAclAssociation { + s.NetworkAclId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *NetworkAclAssociation) SetSubnetId(v string) *NetworkAclAssociation { + s.SubnetId = &v + return s +} + // Describes an entry in a network ACL. type NetworkAclEntry struct { _ struct{} `type:"structure"` @@ -30224,6 +38215,48 @@ func (s NetworkAclEntry) GoString() string { return s.String() } +// SetCidrBlock sets the CidrBlock field's value. +func (s *NetworkAclEntry) SetCidrBlock(v string) *NetworkAclEntry { + s.CidrBlock = &v + return s +} + +// SetEgress sets the Egress field's value. +func (s *NetworkAclEntry) SetEgress(v bool) *NetworkAclEntry { + s.Egress = &v + return s +} + +// SetIcmpTypeCode sets the IcmpTypeCode field's value. +func (s *NetworkAclEntry) SetIcmpTypeCode(v *IcmpTypeCode) *NetworkAclEntry { + s.IcmpTypeCode = v + return s +} + +// SetPortRange sets the PortRange field's value. +func (s *NetworkAclEntry) SetPortRange(v *PortRange) *NetworkAclEntry { + s.PortRange = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *NetworkAclEntry) SetProtocol(v string) *NetworkAclEntry { + s.Protocol = &v + return s +} + +// SetRuleAction sets the RuleAction field's value. +func (s *NetworkAclEntry) SetRuleAction(v string) *NetworkAclEntry { + s.RuleAction = &v + return s +} + +// SetRuleNumber sets the RuleNumber field's value. +func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry { + s.RuleNumber = &v + return s +} + // Describes a network interface. type NetworkInterface struct { _ struct{} `type:"structure"` @@ -30298,6 +38331,120 @@ func (s NetworkInterface) GoString() string { return s.String() } +// SetAssociation sets the Association field's value. +func (s *NetworkInterface) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterface { + s.Association = v + return s +} + +// SetAttachment sets the Attachment field's value. +func (s *NetworkInterface) SetAttachment(v *NetworkInterfaceAttachment) *NetworkInterface { + s.Attachment = v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface { + s.AvailabilityZone = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *NetworkInterface) SetDescription(v string) *NetworkInterface { + s.Description = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *NetworkInterface) SetGroups(v []*GroupIdentifier) *NetworkInterface { + s.Groups = v + return s +} + +// SetInterfaceType sets the InterfaceType field's value. +func (s *NetworkInterface) SetInterfaceType(v string) *NetworkInterface { + s.InterfaceType = &v + return s +} + +// SetMacAddress sets the MacAddress field's value. +func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface { + s.MacAddress = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface { + s.NetworkInterfaceId = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *NetworkInterface) SetOwnerId(v string) *NetworkInterface { + s.OwnerId = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *NetworkInterface) SetPrivateDnsName(v string) *NetworkInterface { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *NetworkInterface) SetPrivateIpAddresses(v []*NetworkInterfacePrivateIpAddress) *NetworkInterface { + s.PrivateIpAddresses = v + return s +} + +// SetRequesterId sets the RequesterId field's value. +func (s *NetworkInterface) SetRequesterId(v string) *NetworkInterface { + s.RequesterId = &v + return s +} + +// SetRequesterManaged sets the RequesterManaged field's value. +func (s *NetworkInterface) SetRequesterManaged(v bool) *NetworkInterface { + s.RequesterManaged = &v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *NetworkInterface) SetSourceDestCheck(v bool) *NetworkInterface { + s.SourceDestCheck = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *NetworkInterface) SetStatus(v string) *NetworkInterface { + s.Status = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface { + s.SubnetId = &v + return s +} + +// SetTagSet sets the TagSet field's value. +func (s *NetworkInterface) SetTagSet(v []*Tag) *NetworkInterface { + s.TagSet = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface { + s.VpcId = &v + return s +} + // Describes association information for an Elastic IP address. type NetworkInterfaceAssociation struct { _ struct{} `type:"structure"` @@ -30328,6 +38475,36 @@ func (s NetworkInterfaceAssociation) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *NetworkInterfaceAssociation) SetAllocationId(v string) *NetworkInterfaceAssociation { + s.AllocationId = &v + return s +} + +// SetAssociationId sets the AssociationId field's value. +func (s *NetworkInterfaceAssociation) SetAssociationId(v string) *NetworkInterfaceAssociation { + s.AssociationId = &v + return s +} + +// SetIpOwnerId sets the IpOwnerId field's value. +func (s *NetworkInterfaceAssociation) SetIpOwnerId(v string) *NetworkInterfaceAssociation { + s.IpOwnerId = &v + return s +} + +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *NetworkInterfaceAssociation) SetPublicDnsName(v string) *NetworkInterfaceAssociation { + s.PublicDnsName = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *NetworkInterfaceAssociation) SetPublicIp(v string) *NetworkInterfaceAssociation { + s.PublicIp = &v + return s +} + // Describes a network interface attachment. type NetworkInterfaceAttachment struct { _ struct{} `type:"structure"` @@ -30364,6 +38541,48 @@ func (s NetworkInterfaceAttachment) GoString() string { return s.String() } +// SetAttachTime sets the AttachTime field's value. +func (s *NetworkInterfaceAttachment) SetAttachTime(v time.Time) *NetworkInterfaceAttachment { + s.AttachTime = &v + return s +} + +// SetAttachmentId sets the AttachmentId field's value. +func (s *NetworkInterfaceAttachment) SetAttachmentId(v string) *NetworkInterfaceAttachment { + s.AttachmentId = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *NetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachment { + s.DeleteOnTermination = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *NetworkInterfaceAttachment) SetDeviceIndex(v int64) *NetworkInterfaceAttachment { + s.DeviceIndex = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *NetworkInterfaceAttachment) SetInstanceId(v string) *NetworkInterfaceAttachment { + s.InstanceId = &v + return s +} + +// SetInstanceOwnerId sets the InstanceOwnerId field's value. +func (s *NetworkInterfaceAttachment) SetInstanceOwnerId(v string) *NetworkInterfaceAttachment { + s.InstanceOwnerId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *NetworkInterfaceAttachment) SetStatus(v string) *NetworkInterfaceAttachment { + s.Status = &v + return s +} + // Describes an attachment change. type NetworkInterfaceAttachmentChanges struct { _ struct{} `type:"structure"` @@ -30385,6 +38604,18 @@ func (s NetworkInterfaceAttachmentChanges) GoString() string { return s.String() } +// SetAttachmentId sets the AttachmentId field's value. +func (s *NetworkInterfaceAttachmentChanges) SetAttachmentId(v string) *NetworkInterfaceAttachmentChanges { + s.AttachmentId = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *NetworkInterfaceAttachmentChanges) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachmentChanges { + s.DeleteOnTermination = &v + return s +} + // Describes the private IP address of a network interface. type NetworkInterfacePrivateIpAddress struct { _ struct{} `type:"structure"` @@ -30414,6 +38645,30 @@ func (s NetworkInterfacePrivateIpAddress) GoString() string { return s.String() } +// SetAssociation sets the Association field's value. +func (s *NetworkInterfacePrivateIpAddress) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterfacePrivateIpAddress { + s.Association = v + return s +} + +// SetPrimary sets the Primary field's value. +func (s *NetworkInterfacePrivateIpAddress) SetPrimary(v bool) *NetworkInterfacePrivateIpAddress { + s.Primary = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *NetworkInterfacePrivateIpAddress) SetPrivateDnsName(v string) *NetworkInterfacePrivateIpAddress { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *NetworkInterfacePrivateIpAddress) SetPrivateIpAddress(v string) *NetworkInterfacePrivateIpAddress { + s.PrivateIpAddress = &v + return s +} + type NewDhcpConfiguration struct { _ struct{} `type:"structure"` @@ -30432,6 +38687,18 @@ func (s NewDhcpConfiguration) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *NewDhcpConfiguration) SetKey(v string) *NewDhcpConfiguration { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *NewDhcpConfiguration) SetValues(v []*string) *NewDhcpConfiguration { + s.Values = v + return s +} + // Describes the VPC peering connection options. type PeeringConnectionOptions struct { _ struct{} `type:"structure"` @@ -30459,6 +38726,24 @@ func (s PeeringConnectionOptions) GoString() string { return s.String() } +// SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value. +func (s *PeeringConnectionOptions) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptions { + s.AllowDnsResolutionFromRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value. +func (s *PeeringConnectionOptions) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptions { + s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value. +func (s *PeeringConnectionOptions) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptions { + s.AllowEgressFromLocalVpcToRemoteClassicLink = &v + return s +} + // The VPC peering connection options. type PeeringConnectionOptionsRequest struct { _ struct{} `type:"structure"` @@ -30486,6 +38771,24 @@ func (s PeeringConnectionOptionsRequest) GoString() string { return s.String() } +// SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value. +func (s *PeeringConnectionOptionsRequest) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptionsRequest { + s.AllowDnsResolutionFromRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value. +func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptionsRequest { + s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value. +func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptionsRequest { + s.AllowEgressFromLocalVpcToRemoteClassicLink = &v + return s +} + // Describes the placement for the instance. type Placement struct { _ struct{} `type:"structure"` @@ -30520,6 +38823,36 @@ func (s Placement) GoString() string { return s.String() } +// SetAffinity sets the Affinity field's value. +func (s *Placement) SetAffinity(v string) *Placement { + s.Affinity = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Placement) SetAvailabilityZone(v string) *Placement { + s.AvailabilityZone = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *Placement) SetGroupName(v string) *Placement { + s.GroupName = &v + return s +} + +// SetHostId sets the HostId field's value. +func (s *Placement) SetHostId(v string) *Placement { + s.HostId = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *Placement) SetTenancy(v string) *Placement { + s.Tenancy = &v + return s +} + // Describes a placement group. type PlacementGroup struct { _ struct{} `type:"structure"` @@ -30544,6 +38877,24 @@ func (s PlacementGroup) GoString() string { return s.String() } +// SetGroupName sets the GroupName field's value. +func (s *PlacementGroup) SetGroupName(v string) *PlacementGroup { + s.GroupName = &v + return s +} + +// SetState sets the State field's value. +func (s *PlacementGroup) SetState(v string) *PlacementGroup { + s.State = &v + return s +} + +// SetStrategy sets the Strategy field's value. +func (s *PlacementGroup) SetStrategy(v string) *PlacementGroup { + s.Strategy = &v + return s +} + // Describes a range of ports. type PortRange struct { _ struct{} `type:"structure"` @@ -30565,6 +38916,18 @@ func (s PortRange) GoString() string { return s.String() } +// SetFrom sets the From field's value. +func (s *PortRange) SetFrom(v int64) *PortRange { + s.From = &v + return s +} + +// SetTo sets the To field's value. +func (s *PortRange) SetTo(v int64) *PortRange { + s.To = &v + return s +} + // Describes prefixes for AWS services. type PrefixList struct { _ struct{} `type:"structure"` @@ -30589,6 +38952,24 @@ func (s PrefixList) GoString() string { return s.String() } +// SetCidrs sets the Cidrs field's value. +func (s *PrefixList) SetCidrs(v []*string) *PrefixList { + s.Cidrs = v + return s +} + +// SetPrefixListId sets the PrefixListId field's value. +func (s *PrefixList) SetPrefixListId(v string) *PrefixList { + s.PrefixListId = &v + return s +} + +// SetPrefixListName sets the PrefixListName field's value. +func (s *PrefixList) SetPrefixListName(v string) *PrefixList { + s.PrefixListName = &v + return s +} + // The ID of the prefix. type PrefixListId struct { _ struct{} `type:"structure"` @@ -30607,6 +38988,12 @@ func (s PrefixListId) GoString() string { return s.String() } +// SetPrefixListId sets the PrefixListId field's value. +func (s *PrefixListId) SetPrefixListId(v string) *PrefixListId { + s.PrefixListId = &v + return s +} + // Describes the price for a Reserved Instance. type PriceSchedule struct { _ struct{} `type:"structure"` @@ -30645,6 +39032,30 @@ func (s PriceSchedule) GoString() string { return s.String() } +// SetActive sets the Active field's value. +func (s *PriceSchedule) SetActive(v bool) *PriceSchedule { + s.Active = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *PriceSchedule) SetCurrencyCode(v string) *PriceSchedule { + s.CurrencyCode = &v + return s +} + +// SetPrice sets the Price field's value. +func (s *PriceSchedule) SetPrice(v float64) *PriceSchedule { + s.Price = &v + return s +} + +// SetTerm sets the Term field's value. +func (s *PriceSchedule) SetTerm(v int64) *PriceSchedule { + s.Term = &v + return s +} + // Describes the price for a Reserved Instance. type PriceScheduleSpecification struct { _ struct{} `type:"structure"` @@ -30671,6 +39082,24 @@ func (s PriceScheduleSpecification) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *PriceScheduleSpecification) SetCurrencyCode(v string) *PriceScheduleSpecification { + s.CurrencyCode = &v + return s +} + +// SetPrice sets the Price field's value. +func (s *PriceScheduleSpecification) SetPrice(v float64) *PriceScheduleSpecification { + s.Price = &v + return s +} + +// SetTerm sets the Term field's value. +func (s *PriceScheduleSpecification) SetTerm(v int64) *PriceScheduleSpecification { + s.Term = &v + return s +} + // Describes a Reserved Instance offering. type PricingDetail struct { _ struct{} `type:"structure"` @@ -30692,6 +39121,18 @@ func (s PricingDetail) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *PricingDetail) SetCount(v int64) *PricingDetail { + s.Count = &v + return s +} + +// SetPrice sets the Price field's value. +func (s *PricingDetail) SetPrice(v float64) *PricingDetail { + s.Price = &v + return s +} + // Describes a secondary private IP address for a network interface. type PrivateIpAddressSpecification struct { _ struct{} `type:"structure"` @@ -30729,6 +39170,18 @@ func (s *PrivateIpAddressSpecification) Validate() error { return nil } +// SetPrimary sets the Primary field's value. +func (s *PrivateIpAddressSpecification) SetPrimary(v bool) *PrivateIpAddressSpecification { + s.Primary = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *PrivateIpAddressSpecification) SetPrivateIpAddress(v string) *PrivateIpAddressSpecification { + s.PrivateIpAddress = &v + return s +} + // Describes a product code. type ProductCode struct { _ struct{} `type:"structure"` @@ -30750,6 +39203,18 @@ func (s ProductCode) GoString() string { return s.String() } +// SetProductCodeId sets the ProductCodeId field's value. +func (s *ProductCode) SetProductCodeId(v string) *ProductCode { + s.ProductCodeId = &v + return s +} + +// SetProductCodeType sets the ProductCodeType field's value. +func (s *ProductCode) SetProductCodeType(v string) *ProductCode { + s.ProductCodeType = &v + return s +} + // Describes a virtual private gateway propagating route. type PropagatingVgw struct { _ struct{} `type:"structure"` @@ -30768,6 +39233,12 @@ func (s PropagatingVgw) GoString() string { return s.String() } +// SetGatewayId sets the GatewayId field's value. +func (s *PropagatingVgw) SetGatewayId(v string) *PropagatingVgw { + s.GatewayId = &v + return s +} + // Reserved. If you need to sustain traffic greater than the documented limits // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), // contact us through the Support Center (https://console.aws.amazon.com/support/home?). @@ -30810,6 +39281,36 @@ func (s ProvisionedBandwidth) GoString() string { return s.String() } +// SetProvisionTime sets the ProvisionTime field's value. +func (s *ProvisionedBandwidth) SetProvisionTime(v time.Time) *ProvisionedBandwidth { + s.ProvisionTime = &v + return s +} + +// SetProvisioned sets the Provisioned field's value. +func (s *ProvisionedBandwidth) SetProvisioned(v string) *ProvisionedBandwidth { + s.Provisioned = &v + return s +} + +// SetRequestTime sets the RequestTime field's value. +func (s *ProvisionedBandwidth) SetRequestTime(v time.Time) *ProvisionedBandwidth { + s.RequestTime = &v + return s +} + +// SetRequested sets the Requested field's value. +func (s *ProvisionedBandwidth) SetRequested(v string) *ProvisionedBandwidth { + s.Requested = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ProvisionedBandwidth) SetStatus(v string) *ProvisionedBandwidth { + s.Status = &v + return s +} + // Describes the result of the purchase. type Purchase struct { _ struct{} `type:"structure"` @@ -30851,6 +39352,54 @@ func (s Purchase) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *Purchase) SetCurrencyCode(v string) *Purchase { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *Purchase) SetDuration(v int64) *Purchase { + s.Duration = &v + return s +} + +// SetHostIdSet sets the HostIdSet field's value. +func (s *Purchase) SetHostIdSet(v []*string) *Purchase { + s.HostIdSet = v + return s +} + +// SetHostReservationId sets the HostReservationId field's value. +func (s *Purchase) SetHostReservationId(v string) *Purchase { + s.HostReservationId = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *Purchase) SetHourlyPrice(v string) *Purchase { + s.HourlyPrice = &v + return s +} + +// SetInstanceFamily sets the InstanceFamily field's value. +func (s *Purchase) SetInstanceFamily(v string) *Purchase { + s.InstanceFamily = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *Purchase) SetPaymentOption(v string) *Purchase { + s.PaymentOption = &v + return s +} + +// SetUpfrontPrice sets the UpfrontPrice field's value. +func (s *Purchase) SetUpfrontPrice(v string) *Purchase { + s.UpfrontPrice = &v + return s +} + type PurchaseHostReservationInput struct { _ struct{} `type:"structure"` @@ -30910,6 +39459,36 @@ func (s *PurchaseHostReservationInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *PurchaseHostReservationInput) SetClientToken(v string) *PurchaseHostReservationInput { + s.ClientToken = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *PurchaseHostReservationInput) SetCurrencyCode(v string) *PurchaseHostReservationInput { + s.CurrencyCode = &v + return s +} + +// SetHostIdSet sets the HostIdSet field's value. +func (s *PurchaseHostReservationInput) SetHostIdSet(v []*string) *PurchaseHostReservationInput { + s.HostIdSet = v + return s +} + +// SetLimitPrice sets the LimitPrice field's value. +func (s *PurchaseHostReservationInput) SetLimitPrice(v string) *PurchaseHostReservationInput { + s.LimitPrice = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *PurchaseHostReservationInput) SetOfferingId(v string) *PurchaseHostReservationInput { + s.OfferingId = &v + return s +} + type PurchaseHostReservationOutput struct { _ struct{} `type:"structure"` @@ -30943,6 +39522,36 @@ func (s PurchaseHostReservationOutput) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *PurchaseHostReservationOutput) SetClientToken(v string) *PurchaseHostReservationOutput { + s.ClientToken = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *PurchaseHostReservationOutput) SetCurrencyCode(v string) *PurchaseHostReservationOutput { + s.CurrencyCode = &v + return s +} + +// SetPurchase sets the Purchase field's value. +func (s *PurchaseHostReservationOutput) SetPurchase(v []*Purchase) *PurchaseHostReservationOutput { + s.Purchase = v + return s +} + +// SetTotalHourlyPrice sets the TotalHourlyPrice field's value. +func (s *PurchaseHostReservationOutput) SetTotalHourlyPrice(v string) *PurchaseHostReservationOutput { + s.TotalHourlyPrice = &v + return s +} + +// SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value. +func (s *PurchaseHostReservationOutput) SetTotalUpfrontPrice(v string) *PurchaseHostReservationOutput { + s.TotalUpfrontPrice = &v + return s +} + // Describes a request to purchase Scheduled Instances. type PurchaseRequest struct { _ struct{} `type:"structure"` @@ -30984,6 +39593,18 @@ func (s *PurchaseRequest) Validate() error { return nil } +// SetInstanceCount sets the InstanceCount field's value. +func (s *PurchaseRequest) SetInstanceCount(v int64) *PurchaseRequest { + s.InstanceCount = &v + return s +} + +// SetPurchaseToken sets the PurchaseToken field's value. +func (s *PurchaseRequest) SetPurchaseToken(v string) *PurchaseRequest { + s.PurchaseToken = &v + return s +} + // Contains the parameters for PurchaseReservedInstancesOffering. type PurchaseReservedInstancesOfferingInput struct { _ struct{} `type:"structure"` @@ -31036,6 +39657,30 @@ func (s *PurchaseReservedInstancesOfferingInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *PurchaseReservedInstancesOfferingInput) SetDryRun(v bool) *PurchaseReservedInstancesOfferingInput { + s.DryRun = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *PurchaseReservedInstancesOfferingInput) SetInstanceCount(v int64) *PurchaseReservedInstancesOfferingInput { + s.InstanceCount = &v + return s +} + +// SetLimitPrice sets the LimitPrice field's value. +func (s *PurchaseReservedInstancesOfferingInput) SetLimitPrice(v *ReservedInstanceLimitPrice) *PurchaseReservedInstancesOfferingInput { + s.LimitPrice = v + return s +} + +// SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value. +func (s *PurchaseReservedInstancesOfferingInput) SetReservedInstancesOfferingId(v string) *PurchaseReservedInstancesOfferingInput { + s.ReservedInstancesOfferingId = &v + return s +} + // Contains the output of PurchaseReservedInstancesOffering. type PurchaseReservedInstancesOfferingOutput struct { _ struct{} `type:"structure"` @@ -31054,6 +39699,12 @@ func (s PurchaseReservedInstancesOfferingOutput) GoString() string { return s.String() } +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *PurchaseReservedInstancesOfferingOutput) SetReservedInstancesId(v string) *PurchaseReservedInstancesOfferingOutput { + s.ReservedInstancesId = &v + return s +} + // Contains the parameters for PurchaseScheduledInstances. type PurchaseScheduledInstancesInput struct { _ struct{} `type:"structure"` @@ -31110,6 +39761,24 @@ func (s *PurchaseScheduledInstancesInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *PurchaseScheduledInstancesInput) SetClientToken(v string) *PurchaseScheduledInstancesInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *PurchaseScheduledInstancesInput) SetDryRun(v bool) *PurchaseScheduledInstancesInput { + s.DryRun = &v + return s +} + +// SetPurchaseRequests sets the PurchaseRequests field's value. +func (s *PurchaseScheduledInstancesInput) SetPurchaseRequests(v []*PurchaseRequest) *PurchaseScheduledInstancesInput { + s.PurchaseRequests = v + return s +} + // Contains the output of PurchaseScheduledInstances. type PurchaseScheduledInstancesOutput struct { _ struct{} `type:"structure"` @@ -31128,6 +39797,12 @@ func (s PurchaseScheduledInstancesOutput) GoString() string { return s.String() } +// SetScheduledInstanceSet sets the ScheduledInstanceSet field's value. +func (s *PurchaseScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *PurchaseScheduledInstancesOutput { + s.ScheduledInstanceSet = v + return s +} + // Contains the parameters for RebootInstances. type RebootInstancesInput struct { _ struct{} `type:"structure"` @@ -31167,6 +39842,18 @@ func (s *RebootInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *RebootInstancesInput) SetDryRun(v bool) *RebootInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput { + s.InstanceIds = v + return s +} + type RebootInstancesOutput struct { _ struct{} `type:"structure"` } @@ -31202,6 +39889,18 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetAmount sets the Amount field's value. +func (s *RecurringCharge) SetAmount(v float64) *RecurringCharge { + s.Amount = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge { + s.Frequency = &v + return s +} + // Describes a region. type Region struct { _ struct{} `type:"structure"` @@ -31223,6 +39922,18 @@ func (s Region) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *Region) SetEndpoint(v string) *Region { + s.Endpoint = &v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *Region) SetRegionName(v string) *Region { + s.RegionName = &v + return s +} + // Contains the parameters for RegisterImage. type RegisterImageInput struct { _ struct{} `type:"structure"` @@ -31248,8 +39959,8 @@ type RegisterImageInput struct { // Set to true to enable enhanced networking with ENA for the AMI and any instances // that you launch from the AMI. // - // This option is supported only for HVM AMIs. Specifying this option with - // a PV AMI can make instances launched from the AMI unreachable. + // This option is supported only for HVM AMIs. Specifying this option with a + // PV AMI can make instances launched from the AMI unreachable. EnaSupport *bool `locationName:"enaSupport" type:"boolean"` // The full path to your AMI manifest in Amazon S3 storage. @@ -31279,8 +39990,8 @@ type RegisterImageInput struct { // // There is no way to disable sriovNetSupport at this time. // - // This option is supported only for HVM AMIs. Specifying this option with - // a PV AMI can make instances launched from the AMI unreachable. + // This option is supported only for HVM AMIs. Specifying this option with a + // PV AMI can make instances launched from the AMI unreachable. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"` // The type of virtualization. @@ -31312,6 +40023,78 @@ func (s *RegisterImageInput) Validate() error { return nil } +// SetArchitecture sets the Architecture field's value. +func (s *RegisterImageInput) SetArchitecture(v string) *RegisterImageInput { + s.Architecture = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *RegisterImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RegisterImageInput { + s.BlockDeviceMappings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *RegisterImageInput) SetDescription(v string) *RegisterImageInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RegisterImageInput) SetDryRun(v bool) *RegisterImageInput { + s.DryRun = &v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *RegisterImageInput) SetEnaSupport(v bool) *RegisterImageInput { + s.EnaSupport = &v + return s +} + +// SetImageLocation sets the ImageLocation field's value. +func (s *RegisterImageInput) SetImageLocation(v string) *RegisterImageInput { + s.ImageLocation = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *RegisterImageInput) SetKernelId(v string) *RegisterImageInput { + s.KernelId = &v + return s +} + +// SetName sets the Name field's value. +func (s *RegisterImageInput) SetName(v string) *RegisterImageInput { + s.Name = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *RegisterImageInput) SetRamdiskId(v string) *RegisterImageInput { + s.RamdiskId = &v + return s +} + +// SetRootDeviceName sets the RootDeviceName field's value. +func (s *RegisterImageInput) SetRootDeviceName(v string) *RegisterImageInput { + s.RootDeviceName = &v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *RegisterImageInput) SetSriovNetSupport(v string) *RegisterImageInput { + s.SriovNetSupport = &v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *RegisterImageInput) SetVirtualizationType(v string) *RegisterImageInput { + s.VirtualizationType = &v + return s +} + // Contains the output of RegisterImage. type RegisterImageOutput struct { _ struct{} `type:"structure"` @@ -31330,6 +40113,12 @@ func (s RegisterImageOutput) GoString() string { return s.String() } +// SetImageId sets the ImageId field's value. +func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput { + s.ImageId = &v + return s +} + // Contains the parameters for RejectVpcPeeringConnection. type RejectVpcPeeringConnectionInput struct { _ struct{} `type:"structure"` @@ -31369,6 +40158,18 @@ func (s *RejectVpcPeeringConnectionInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *RejectVpcPeeringConnectionInput) SetDryRun(v bool) *RejectVpcPeeringConnectionInput { + s.DryRun = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *RejectVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *RejectVpcPeeringConnectionInput { + s.VpcPeeringConnectionId = &v + return s +} + // Contains the output of RejectVpcPeeringConnection. type RejectVpcPeeringConnectionOutput struct { _ struct{} `type:"structure"` @@ -31387,6 +40188,12 @@ func (s RejectVpcPeeringConnectionOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *RejectVpcPeeringConnectionOutput) SetReturn(v bool) *RejectVpcPeeringConnectionOutput { + s.Return = &v + return s +} + // Contains the parameters for ReleaseAddress. type ReleaseAddressInput struct { _ struct{} `type:"structure"` @@ -31414,6 +40221,24 @@ func (s ReleaseAddressInput) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *ReleaseAddressInput) SetAllocationId(v string) *ReleaseAddressInput { + s.AllocationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReleaseAddressInput) SetDryRun(v bool) *ReleaseAddressInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *ReleaseAddressInput) SetPublicIp(v string) *ReleaseAddressInput { + s.PublicIp = &v + return s +} + type ReleaseAddressOutput struct { _ struct{} `type:"structure"` } @@ -31461,6 +40286,12 @@ func (s *ReleaseHostsInput) Validate() error { return nil } +// SetHostIds sets the HostIds field's value. +func (s *ReleaseHostsInput) SetHostIds(v []*string) *ReleaseHostsInput { + s.HostIds = v + return s +} + // Contains the output of ReleaseHosts. type ReleaseHostsOutput struct { _ struct{} `type:"structure"` @@ -31483,6 +40314,18 @@ func (s ReleaseHostsOutput) GoString() string { return s.String() } +// SetSuccessful sets the Successful field's value. +func (s *ReleaseHostsOutput) SetSuccessful(v []*string) *ReleaseHostsOutput { + s.Successful = v + return s +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *ReleaseHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ReleaseHostsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for ReplaceNetworkAclAssociation. type ReplaceNetworkAclAssociationInput struct { _ struct{} `type:"structure"` @@ -31531,6 +40374,24 @@ func (s *ReplaceNetworkAclAssociationInput) Validate() error { return nil } +// SetAssociationId sets the AssociationId field's value. +func (s *ReplaceNetworkAclAssociationInput) SetAssociationId(v string) *ReplaceNetworkAclAssociationInput { + s.AssociationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceNetworkAclAssociationInput) SetDryRun(v bool) *ReplaceNetworkAclAssociationInput { + s.DryRun = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *ReplaceNetworkAclAssociationInput) SetNetworkAclId(v string) *ReplaceNetworkAclAssociationInput { + s.NetworkAclId = &v + return s +} + // Contains the output of ReplaceNetworkAclAssociation. type ReplaceNetworkAclAssociationOutput struct { _ struct{} `type:"structure"` @@ -31549,6 +40410,12 @@ func (s ReplaceNetworkAclAssociationOutput) GoString() string { return s.String() } +// SetNewAssociationId sets the NewAssociationId field's value. +func (s *ReplaceNetworkAclAssociationOutput) SetNewAssociationId(v string) *ReplaceNetworkAclAssociationOutput { + s.NewAssociationId = &v + return s +} + // Contains the parameters for ReplaceNetworkAclEntry. type ReplaceNetworkAclEntryInput struct { _ struct{} `type:"structure"` @@ -31638,6 +40505,60 @@ func (s *ReplaceNetworkAclEntryInput) Validate() error { return nil } +// SetCidrBlock sets the CidrBlock field's value. +func (s *ReplaceNetworkAclEntryInput) SetCidrBlock(v string) *ReplaceNetworkAclEntryInput { + s.CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceNetworkAclEntryInput) SetDryRun(v bool) *ReplaceNetworkAclEntryInput { + s.DryRun = &v + return s +} + +// SetEgress sets the Egress field's value. +func (s *ReplaceNetworkAclEntryInput) SetEgress(v bool) *ReplaceNetworkAclEntryInput { + s.Egress = &v + return s +} + +// SetIcmpTypeCode sets the IcmpTypeCode field's value. +func (s *ReplaceNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *ReplaceNetworkAclEntryInput { + s.IcmpTypeCode = v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *ReplaceNetworkAclEntryInput) SetNetworkAclId(v string) *ReplaceNetworkAclEntryInput { + s.NetworkAclId = &v + return s +} + +// SetPortRange sets the PortRange field's value. +func (s *ReplaceNetworkAclEntryInput) SetPortRange(v *PortRange) *ReplaceNetworkAclEntryInput { + s.PortRange = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *ReplaceNetworkAclEntryInput) SetProtocol(v string) *ReplaceNetworkAclEntryInput { + s.Protocol = &v + return s +} + +// SetRuleAction sets the RuleAction field's value. +func (s *ReplaceNetworkAclEntryInput) SetRuleAction(v string) *ReplaceNetworkAclEntryInput { + s.RuleAction = &v + return s +} + +// SetRuleNumber sets the RuleNumber field's value. +func (s *ReplaceNetworkAclEntryInput) SetRuleNumber(v int64) *ReplaceNetworkAclEntryInput { + s.RuleNumber = &v + return s +} + type ReplaceNetworkAclEntryOutput struct { _ struct{} `type:"structure"` } @@ -31715,6 +40636,54 @@ func (s *ReplaceRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *ReplaceRouteInput) SetDestinationCidrBlock(v string) *ReplaceRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceRouteInput) SetDryRun(v bool) *ReplaceRouteInput { + s.DryRun = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *ReplaceRouteInput) SetGatewayId(v string) *ReplaceRouteInput { + s.GatewayId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ReplaceRouteInput) SetInstanceId(v string) *ReplaceRouteInput { + s.InstanceId = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *ReplaceRouteInput) SetNatGatewayId(v string) *ReplaceRouteInput { + s.NatGatewayId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *ReplaceRouteInput) SetNetworkInterfaceId(v string) *ReplaceRouteInput { + s.NetworkInterfaceId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *ReplaceRouteInput) SetRouteTableId(v string) *ReplaceRouteInput { + s.RouteTableId = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *ReplaceRouteInput) SetVpcPeeringConnectionId(v string) *ReplaceRouteInput { + s.VpcPeeringConnectionId = &v + return s +} + type ReplaceRouteOutput struct { _ struct{} `type:"structure"` } @@ -31776,6 +40745,24 @@ func (s *ReplaceRouteTableAssociationInput) Validate() error { return nil } +// SetAssociationId sets the AssociationId field's value. +func (s *ReplaceRouteTableAssociationInput) SetAssociationId(v string) *ReplaceRouteTableAssociationInput { + s.AssociationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceRouteTableAssociationInput) SetDryRun(v bool) *ReplaceRouteTableAssociationInput { + s.DryRun = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *ReplaceRouteTableAssociationInput) SetRouteTableId(v string) *ReplaceRouteTableAssociationInput { + s.RouteTableId = &v + return s +} + // Contains the output of ReplaceRouteTableAssociation. type ReplaceRouteTableAssociationOutput struct { _ struct{} `type:"structure"` @@ -31794,6 +40781,12 @@ func (s ReplaceRouteTableAssociationOutput) GoString() string { return s.String() } +// SetNewAssociationId sets the NewAssociationId field's value. +func (s *ReplaceRouteTableAssociationOutput) SetNewAssociationId(v string) *ReplaceRouteTableAssociationOutput { + s.NewAssociationId = &v + return s +} + // Contains the parameters for ReportInstanceStatus. type ReportInstanceStatusInput struct { _ struct{} `type:"structure"` @@ -31817,26 +40810,26 @@ type ReportInstanceStatusInput struct { // One or more reason codes that describes the health state of your instance. // - // instance-stuck-in-state: My instance is stuck in a state. + // * instance-stuck-in-state: My instance is stuck in a state. // - // unresponsive: My instance is unresponsive. + // * unresponsive: My instance is unresponsive. // - // not-accepting-credentials: My instance is not accepting my credentials. + // * not-accepting-credentials: My instance is not accepting my credentials. // - // password-not-available: A password is not available for my instance. + // * password-not-available: A password is not available for my instance. // - // performance-network: My instance is experiencing performance problems - // which I believe are network related. + // * performance-network: My instance is experiencing performance problems + // which I believe are network related. // - // performance-instance-store: My instance is experiencing performance problems - // which I believe are related to the instance stores. + // * performance-instance-store: My instance is experiencing performance + // problems which I believe are related to the instance stores. // - // performance-ebs-volume: My instance is experiencing performance problems - // which I believe are related to an EBS volume. + // * performance-ebs-volume: My instance is experiencing performance problems + // which I believe are related to an EBS volume. // - // performance-other: My instance is experiencing performance problems. + // * performance-other: My instance is experiencing performance problems. // - // other: [explain using the description parameter] + // * other: [explain using the description parameter] // // ReasonCodes is a required field ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"` @@ -31879,6 +40872,48 @@ func (s *ReportInstanceStatusInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *ReportInstanceStatusInput) SetDescription(v string) *ReportInstanceStatusInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReportInstanceStatusInput) SetDryRun(v bool) *ReportInstanceStatusInput { + s.DryRun = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *ReportInstanceStatusInput) SetEndTime(v time.Time) *ReportInstanceStatusInput { + s.EndTime = &v + return s +} + +// SetInstances sets the Instances field's value. +func (s *ReportInstanceStatusInput) SetInstances(v []*string) *ReportInstanceStatusInput { + s.Instances = v + return s +} + +// SetReasonCodes sets the ReasonCodes field's value. +func (s *ReportInstanceStatusInput) SetReasonCodes(v []*string) *ReportInstanceStatusInput { + s.ReasonCodes = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReportInstanceStatusInput) SetStartTime(v time.Time) *ReportInstanceStatusInput { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReportInstanceStatusInput) SetStatus(v string) *ReportInstanceStatusInput { + s.Status = &v + return s +} + type ReportInstanceStatusOutput struct { _ struct{} `type:"structure"` } @@ -31937,6 +40972,18 @@ func (s *RequestSpotFleetInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *RequestSpotFleetInput) SetDryRun(v bool) *RequestSpotFleetInput { + s.DryRun = &v + return s +} + +// SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value. +func (s *RequestSpotFleetInput) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *RequestSpotFleetInput { + s.SpotFleetRequestConfig = v + return s +} + // Contains the output of RequestSpotFleet. type RequestSpotFleetOutput struct { _ struct{} `type:"structure"` @@ -31957,14 +41004,20 @@ func (s RequestSpotFleetOutput) GoString() string { return s.String() } +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *RequestSpotFleetOutput) SetSpotFleetRequestId(v string) *RequestSpotFleetOutput { + s.SpotFleetRequestId = &v + return s +} + // Contains the parameters for RequestSpotInstances. type RequestSpotInstancesInput struct { _ struct{} `type:"structure"` // The user-specified name for a logical grouping of bids. // - // When you specify an Availability Zone group in a Spot Instance request, - // all Spot instances in the request are launched in the same Availability Zone. + // When you specify an Availability Zone group in a Spot Instance request, all + // Spot instances in the request are launched in the same Availability Zone. // Instance proximity is maintained with this parameter, but the choice of Availability // Zone is not. The group applies only to bids for Spot Instances of the same // instance type. Any additional Spot instance requests that are specified with @@ -32077,6 +41130,72 @@ func (s *RequestSpotInstancesInput) Validate() error { return nil } +// SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value. +func (s *RequestSpotInstancesInput) SetAvailabilityZoneGroup(v string) *RequestSpotInstancesInput { + s.AvailabilityZoneGroup = &v + return s +} + +// SetBlockDurationMinutes sets the BlockDurationMinutes field's value. +func (s *RequestSpotInstancesInput) SetBlockDurationMinutes(v int64) *RequestSpotInstancesInput { + s.BlockDurationMinutes = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *RequestSpotInstancesInput) SetClientToken(v string) *RequestSpotInstancesInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RequestSpotInstancesInput) SetDryRun(v bool) *RequestSpotInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *RequestSpotInstancesInput) SetInstanceCount(v int64) *RequestSpotInstancesInput { + s.InstanceCount = &v + return s +} + +// SetLaunchGroup sets the LaunchGroup field's value. +func (s *RequestSpotInstancesInput) SetLaunchGroup(v string) *RequestSpotInstancesInput { + s.LaunchGroup = &v + return s +} + +// SetLaunchSpecification sets the LaunchSpecification field's value. +func (s *RequestSpotInstancesInput) SetLaunchSpecification(v *RequestSpotLaunchSpecification) *RequestSpotInstancesInput { + s.LaunchSpecification = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *RequestSpotInstancesInput) SetSpotPrice(v string) *RequestSpotInstancesInput { + s.SpotPrice = &v + return s +} + +// SetType sets the Type field's value. +func (s *RequestSpotInstancesInput) SetType(v string) *RequestSpotInstancesInput { + s.Type = &v + return s +} + +// SetValidFrom sets the ValidFrom field's value. +func (s *RequestSpotInstancesInput) SetValidFrom(v time.Time) *RequestSpotInstancesInput { + s.ValidFrom = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *RequestSpotInstancesInput) SetValidUntil(v time.Time) *RequestSpotInstancesInput { + s.ValidUntil = &v + return s +} + // Contains the output of RequestSpotInstances. type RequestSpotInstancesOutput struct { _ struct{} `type:"structure"` @@ -32095,6 +41214,12 @@ func (s RequestSpotInstancesOutput) GoString() string { return s.String() } +// SetSpotInstanceRequests sets the SpotInstanceRequests field's value. +func (s *RequestSpotInstancesOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *RequestSpotInstancesOutput { + s.SpotInstanceRequests = v + return s +} + // Describes the launch specification for an instance. type RequestSpotLaunchSpecification struct { _ struct{} `type:"structure"` @@ -32192,6 +41317,102 @@ func (s *RequestSpotLaunchSpecification) Validate() error { return nil } +// SetAddressingType sets the AddressingType field's value. +func (s *RequestSpotLaunchSpecification) SetAddressingType(v string) *RequestSpotLaunchSpecification { + s.AddressingType = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *RequestSpotLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RequestSpotLaunchSpecification { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *RequestSpotLaunchSpecification) SetEbsOptimized(v bool) *RequestSpotLaunchSpecification { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *RequestSpotLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RequestSpotLaunchSpecification { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *RequestSpotLaunchSpecification) SetImageId(v string) *RequestSpotLaunchSpecification { + s.ImageId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *RequestSpotLaunchSpecification) SetInstanceType(v string) *RequestSpotLaunchSpecification { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *RequestSpotLaunchSpecification) SetKernelId(v string) *RequestSpotLaunchSpecification { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *RequestSpotLaunchSpecification) SetKeyName(v string) *RequestSpotLaunchSpecification { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *RequestSpotLaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *RequestSpotLaunchSpecification { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *RequestSpotLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RequestSpotLaunchSpecification { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *RequestSpotLaunchSpecification) SetPlacement(v *SpotPlacement) *RequestSpotLaunchSpecification { + s.Placement = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *RequestSpotLaunchSpecification) SetRamdiskId(v string) *RequestSpotLaunchSpecification { + s.RamdiskId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *RequestSpotLaunchSpecification) SetSecurityGroupIds(v []*string) *RequestSpotLaunchSpecification { + s.SecurityGroupIds = v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *RequestSpotLaunchSpecification) SetSecurityGroups(v []*string) *RequestSpotLaunchSpecification { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *RequestSpotLaunchSpecification) SetSubnetId(v string) *RequestSpotLaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *RequestSpotLaunchSpecification) SetUserData(v string) *RequestSpotLaunchSpecification { + s.UserData = &v + return s +} + // Describes a reservation. type Reservation struct { _ struct{} `type:"structure"` @@ -32223,6 +41444,36 @@ func (s Reservation) GoString() string { return s.String() } +// SetGroups sets the Groups field's value. +func (s *Reservation) SetGroups(v []*GroupIdentifier) *Reservation { + s.Groups = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *Reservation) SetInstances(v []*Instance) *Reservation { + s.Instances = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *Reservation) SetOwnerId(v string) *Reservation { + s.OwnerId = &v + return s +} + +// SetRequesterId sets the RequesterId field's value. +func (s *Reservation) SetRequesterId(v string) *Reservation { + s.RequesterId = &v + return s +} + +// SetReservationId sets the ReservationId field's value. +func (s *Reservation) SetReservationId(v string) *Reservation { + s.ReservationId = &v + return s +} + // The cost associated with the Reserved Instance. type ReservationValue struct { _ struct{} `type:"structure"` @@ -32248,6 +41499,24 @@ func (s ReservationValue) GoString() string { return s.String() } +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *ReservationValue) SetHourlyPrice(v string) *ReservationValue { + s.HourlyPrice = &v + return s +} + +// SetRemainingTotalValue sets the RemainingTotalValue field's value. +func (s *ReservationValue) SetRemainingTotalValue(v string) *ReservationValue { + s.RemainingTotalValue = &v + return s +} + +// SetRemainingUpfrontValue sets the RemainingUpfrontValue field's value. +func (s *ReservationValue) SetRemainingUpfrontValue(v string) *ReservationValue { + s.RemainingUpfrontValue = &v + return s +} + // Describes the limit price of a Reserved Instance offering. type ReservedInstanceLimitPrice struct { _ struct{} `type:"structure"` @@ -32271,6 +41540,18 @@ func (s ReservedInstanceLimitPrice) GoString() string { return s.String() } +// SetAmount sets the Amount field's value. +func (s *ReservedInstanceLimitPrice) SetAmount(v float64) *ReservedInstanceLimitPrice { + s.Amount = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedInstanceLimitPrice) SetCurrencyCode(v string) *ReservedInstanceLimitPrice { + s.CurrencyCode = &v + return s +} + // The total value of the Convertible Reserved Instance. type ReservedInstanceReservationValue struct { _ struct{} `type:"structure"` @@ -32292,6 +41573,18 @@ func (s ReservedInstanceReservationValue) GoString() string { return s.String() } +// SetReservationValue sets the ReservationValue field's value. +func (s *ReservedInstanceReservationValue) SetReservationValue(v *ReservationValue) *ReservedInstanceReservationValue { + s.ReservationValue = v + return s +} + +// SetReservedInstanceId sets the ReservedInstanceId field's value. +func (s *ReservedInstanceReservationValue) SetReservedInstanceId(v string) *ReservedInstanceReservationValue { + s.ReservedInstanceId = &v + return s +} + // Describes a Reserved Instance. type ReservedInstances struct { _ struct{} `type:"structure"` @@ -32362,6 +41655,114 @@ func (s ReservedInstances) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ReservedInstances) SetAvailabilityZone(v string) *ReservedInstances { + s.AvailabilityZone = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedInstances) SetCurrencyCode(v string) *ReservedInstances { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedInstances) SetDuration(v int64) *ReservedInstances { + s.Duration = &v + return s +} + +// SetEnd sets the End field's value. +func (s *ReservedInstances) SetEnd(v time.Time) *ReservedInstances { + s.End = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedInstances) SetFixedPrice(v float64) *ReservedInstances { + s.FixedPrice = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ReservedInstances) SetInstanceCount(v int64) *ReservedInstances { + s.InstanceCount = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *ReservedInstances) SetInstanceTenancy(v string) *ReservedInstances { + s.InstanceTenancy = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ReservedInstances) SetInstanceType(v string) *ReservedInstances { + s.InstanceType = &v + return s +} + +// SetOfferingClass sets the OfferingClass field's value. +func (s *ReservedInstances) SetOfferingClass(v string) *ReservedInstances { + s.OfferingClass = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedInstances) SetOfferingType(v string) *ReservedInstances { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedInstances) SetProductDescription(v string) *ReservedInstances { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedInstances) SetRecurringCharges(v []*RecurringCharge) *ReservedInstances { + s.RecurringCharges = v + return s +} + +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *ReservedInstances) SetReservedInstancesId(v string) *ReservedInstances { + s.ReservedInstancesId = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ReservedInstances) SetScope(v string) *ReservedInstances { + s.Scope = &v + return s +} + +// SetStart sets the Start field's value. +func (s *ReservedInstances) SetStart(v time.Time) *ReservedInstances { + s.Start = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedInstances) SetState(v string) *ReservedInstances { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ReservedInstances) SetTags(v []*Tag) *ReservedInstances { + s.Tags = v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedInstances) SetUsagePrice(v float64) *ReservedInstances { + s.UsagePrice = &v + return s +} + // Describes the configuration settings for the modified Reserved Instances. type ReservedInstancesConfiguration struct { _ struct{} `type:"structure"` @@ -32393,6 +41794,36 @@ func (s ReservedInstancesConfiguration) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ReservedInstancesConfiguration) SetAvailabilityZone(v string) *ReservedInstancesConfiguration { + s.AvailabilityZone = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ReservedInstancesConfiguration) SetInstanceCount(v int64) *ReservedInstancesConfiguration { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ReservedInstancesConfiguration) SetInstanceType(v string) *ReservedInstancesConfiguration { + s.InstanceType = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ReservedInstancesConfiguration) SetPlatform(v string) *ReservedInstancesConfiguration { + s.Platform = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ReservedInstancesConfiguration) SetScope(v string) *ReservedInstancesConfiguration { + s.Scope = &v + return s +} + // Describes the ID of a Reserved Instance. type ReservedInstancesId struct { _ struct{} `type:"structure"` @@ -32411,6 +41842,12 @@ func (s ReservedInstancesId) GoString() string { return s.String() } +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *ReservedInstancesId) SetReservedInstancesId(v string) *ReservedInstancesId { + s.ReservedInstancesId = &v + return s +} + // Describes a Reserved Instance listing. type ReservedInstancesListing struct { _ struct{} `type:"structure"` @@ -32458,6 +41895,66 @@ func (s ReservedInstancesListing) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *ReservedInstancesListing) SetClientToken(v string) *ReservedInstancesListing { + s.ClientToken = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ReservedInstancesListing) SetCreateDate(v time.Time) *ReservedInstancesListing { + s.CreateDate = &v + return s +} + +// SetInstanceCounts sets the InstanceCounts field's value. +func (s *ReservedInstancesListing) SetInstanceCounts(v []*InstanceCount) *ReservedInstancesListing { + s.InstanceCounts = v + return s +} + +// SetPriceSchedules sets the PriceSchedules field's value. +func (s *ReservedInstancesListing) SetPriceSchedules(v []*PriceSchedule) *ReservedInstancesListing { + s.PriceSchedules = v + return s +} + +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *ReservedInstancesListing) SetReservedInstancesId(v string) *ReservedInstancesListing { + s.ReservedInstancesId = &v + return s +} + +// SetReservedInstancesListingId sets the ReservedInstancesListingId field's value. +func (s *ReservedInstancesListing) SetReservedInstancesListingId(v string) *ReservedInstancesListing { + s.ReservedInstancesListingId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReservedInstancesListing) SetStatus(v string) *ReservedInstancesListing { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ReservedInstancesListing) SetStatusMessage(v string) *ReservedInstancesListing { + s.StatusMessage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ReservedInstancesListing) SetTags(v []*Tag) *ReservedInstancesListing { + s.Tags = v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *ReservedInstancesListing) SetUpdateDate(v time.Time) *ReservedInstancesListing { + s.UpdateDate = &v + return s +} + // Describes a Reserved Instance modification. type ReservedInstancesModification struct { _ struct{} `type:"structure"` @@ -32502,6 +41999,60 @@ func (s ReservedInstancesModification) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *ReservedInstancesModification) SetClientToken(v string) *ReservedInstancesModification { + s.ClientToken = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ReservedInstancesModification) SetCreateDate(v time.Time) *ReservedInstancesModification { + s.CreateDate = &v + return s +} + +// SetEffectiveDate sets the EffectiveDate field's value. +func (s *ReservedInstancesModification) SetEffectiveDate(v time.Time) *ReservedInstancesModification { + s.EffectiveDate = &v + return s +} + +// SetModificationResults sets the ModificationResults field's value. +func (s *ReservedInstancesModification) SetModificationResults(v []*ReservedInstancesModificationResult) *ReservedInstancesModification { + s.ModificationResults = v + return s +} + +// SetReservedInstancesIds sets the ReservedInstancesIds field's value. +func (s *ReservedInstancesModification) SetReservedInstancesIds(v []*ReservedInstancesId) *ReservedInstancesModification { + s.ReservedInstancesIds = v + return s +} + +// SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value. +func (s *ReservedInstancesModification) SetReservedInstancesModificationId(v string) *ReservedInstancesModification { + s.ReservedInstancesModificationId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReservedInstancesModification) SetStatus(v string) *ReservedInstancesModification { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ReservedInstancesModification) SetStatusMessage(v string) *ReservedInstancesModification { + s.StatusMessage = &v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *ReservedInstancesModification) SetUpdateDate(v time.Time) *ReservedInstancesModification { + s.UpdateDate = &v + return s +} + // Describes the modification request/s. type ReservedInstancesModificationResult struct { _ struct{} `type:"structure"` @@ -32525,6 +42076,18 @@ func (s ReservedInstancesModificationResult) GoString() string { return s.String() } +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *ReservedInstancesModificationResult) SetReservedInstancesId(v string) *ReservedInstancesModificationResult { + s.ReservedInstancesId = &v + return s +} + +// SetTargetConfiguration sets the TargetConfiguration field's value. +func (s *ReservedInstancesModificationResult) SetTargetConfiguration(v *ReservedInstancesConfiguration) *ReservedInstancesModificationResult { + s.TargetConfiguration = v + return s +} + // Describes a Reserved Instance offering. type ReservedInstancesOffering struct { _ struct{} `type:"structure"` @@ -32593,6 +42156,96 @@ func (s ReservedInstancesOffering) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ReservedInstancesOffering) SetAvailabilityZone(v string) *ReservedInstancesOffering { + s.AvailabilityZone = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedInstancesOffering) SetCurrencyCode(v string) *ReservedInstancesOffering { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedInstancesOffering) SetDuration(v int64) *ReservedInstancesOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedInstancesOffering) SetFixedPrice(v float64) *ReservedInstancesOffering { + s.FixedPrice = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *ReservedInstancesOffering) SetInstanceTenancy(v string) *ReservedInstancesOffering { + s.InstanceTenancy = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ReservedInstancesOffering) SetInstanceType(v string) *ReservedInstancesOffering { + s.InstanceType = &v + return s +} + +// SetMarketplace sets the Marketplace field's value. +func (s *ReservedInstancesOffering) SetMarketplace(v bool) *ReservedInstancesOffering { + s.Marketplace = &v + return s +} + +// SetOfferingClass sets the OfferingClass field's value. +func (s *ReservedInstancesOffering) SetOfferingClass(v string) *ReservedInstancesOffering { + s.OfferingClass = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedInstancesOffering) SetOfferingType(v string) *ReservedInstancesOffering { + s.OfferingType = &v + return s +} + +// SetPricingDetails sets the PricingDetails field's value. +func (s *ReservedInstancesOffering) SetPricingDetails(v []*PricingDetail) *ReservedInstancesOffering { + s.PricingDetails = v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedInstancesOffering) SetProductDescription(v string) *ReservedInstancesOffering { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedInstancesOffering { + s.RecurringCharges = v + return s +} + +// SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value. +func (s *ReservedInstancesOffering) SetReservedInstancesOfferingId(v string) *ReservedInstancesOffering { + s.ReservedInstancesOfferingId = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ReservedInstancesOffering) SetScope(v string) *ReservedInstancesOffering { + s.Scope = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedInstancesOffering) SetUsagePrice(v float64) *ReservedInstancesOffering { + s.UsagePrice = &v + return s +} + // Contains the parameters for ResetImageAttribute. type ResetImageAttributeInput struct { _ struct{} `type:"structure"` @@ -32641,6 +42294,24 @@ func (s *ResetImageAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ResetImageAttributeInput) SetAttribute(v string) *ResetImageAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ResetImageAttributeInput) SetDryRun(v bool) *ResetImageAttributeInput { + s.DryRun = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ResetImageAttributeInput) SetImageId(v string) *ResetImageAttributeInput { + s.ImageId = &v + return s +} + type ResetImageAttributeOutput struct { _ struct{} `type:"structure"` } @@ -32661,7 +42332,7 @@ type ResetInstanceAttributeInput struct { // The attribute to reset. // - // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. + // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. // To change an instance attribute, use ModifyInstanceAttribute. // // Attribute is a required field @@ -32705,6 +42376,24 @@ func (s *ResetInstanceAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ResetInstanceAttributeInput) SetAttribute(v string) *ResetInstanceAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ResetInstanceAttributeInput) SetDryRun(v bool) *ResetInstanceAttributeInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ResetInstanceAttributeInput) SetInstanceId(v string) *ResetInstanceAttributeInput { + s.InstanceId = &v + return s +} + type ResetInstanceAttributeOutput struct { _ struct{} `type:"structure"` } @@ -32761,6 +42450,24 @@ func (s *ResetNetworkInterfaceAttributeInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *ResetNetworkInterfaceAttributeInput) SetDryRun(v bool) *ResetNetworkInterfaceAttributeInput { + s.DryRun = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *ResetNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ResetNetworkInterfaceAttributeInput { + s.NetworkInterfaceId = &v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *ResetNetworkInterfaceAttributeInput) SetSourceDestCheck(v string) *ResetNetworkInterfaceAttributeInput { + s.SourceDestCheck = &v + return s +} + type ResetNetworkInterfaceAttributeOutput struct { _ struct{} `type:"structure"` } @@ -32823,6 +42530,24 @@ func (s *ResetSnapshotAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ResetSnapshotAttributeInput) SetAttribute(v string) *ResetSnapshotAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ResetSnapshotAttributeInput) SetDryRun(v bool) *ResetSnapshotAttributeInput { + s.DryRun = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *ResetSnapshotAttributeInput) SetSnapshotId(v string) *ResetSnapshotAttributeInput { + s.SnapshotId = &v + return s +} + type ResetSnapshotAttributeOutput struct { _ struct{} `type:"structure"` } @@ -32876,6 +42601,18 @@ func (s *RestoreAddressToClassicInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *RestoreAddressToClassicInput) SetDryRun(v bool) *RestoreAddressToClassicInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *RestoreAddressToClassicInput) SetPublicIp(v string) *RestoreAddressToClassicInput { + s.PublicIp = &v + return s +} + // Contains the output of RestoreAddressToClassic. type RestoreAddressToClassicOutput struct { _ struct{} `type:"structure"` @@ -32897,6 +42634,18 @@ func (s RestoreAddressToClassicOutput) GoString() string { return s.String() } +// SetPublicIp sets the PublicIp field's value. +func (s *RestoreAddressToClassicOutput) SetPublicIp(v string) *RestoreAddressToClassicOutput { + s.PublicIp = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RestoreAddressToClassicOutput) SetStatus(v string) *RestoreAddressToClassicOutput { + s.Status = &v + return s +} + // Contains the parameters for RevokeSecurityGroupEgress. type RevokeSecurityGroupEgressInput struct { _ struct{} `type:"structure"` @@ -32966,6 +42715,60 @@ func (s *RevokeSecurityGroupEgressInput) Validate() error { return nil } +// SetCidrIp sets the CidrIp field's value. +func (s *RevokeSecurityGroupEgressInput) SetCidrIp(v string) *RevokeSecurityGroupEgressInput { + s.CidrIp = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RevokeSecurityGroupEgressInput) SetDryRun(v bool) *RevokeSecurityGroupEgressInput { + s.DryRun = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *RevokeSecurityGroupEgressInput) SetFromPort(v int64) *RevokeSecurityGroupEgressInput { + s.FromPort = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *RevokeSecurityGroupEgressInput) SetGroupId(v string) *RevokeSecurityGroupEgressInput { + s.GroupId = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *RevokeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupEgressInput { + s.IpPermissions = v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *RevokeSecurityGroupEgressInput) SetIpProtocol(v string) *RevokeSecurityGroupEgressInput { + s.IpProtocol = &v + return s +} + +// SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value. +func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupEgressInput { + s.SourceSecurityGroupName = &v + return s +} + +// SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value. +func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupEgressInput { + s.SourceSecurityGroupOwnerId = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *RevokeSecurityGroupEgressInput) SetToPort(v int64) *RevokeSecurityGroupEgressInput { + s.ToPort = &v + return s +} + type RevokeSecurityGroupEgressOutput struct { _ struct{} `type:"structure"` } @@ -33044,6 +42847,66 @@ func (s RevokeSecurityGroupIngressInput) GoString() string { return s.String() } +// SetCidrIp sets the CidrIp field's value. +func (s *RevokeSecurityGroupIngressInput) SetCidrIp(v string) *RevokeSecurityGroupIngressInput { + s.CidrIp = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RevokeSecurityGroupIngressInput) SetDryRun(v bool) *RevokeSecurityGroupIngressInput { + s.DryRun = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *RevokeSecurityGroupIngressInput) SetFromPort(v int64) *RevokeSecurityGroupIngressInput { + s.FromPort = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *RevokeSecurityGroupIngressInput) SetGroupId(v string) *RevokeSecurityGroupIngressInput { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *RevokeSecurityGroupIngressInput) SetGroupName(v string) *RevokeSecurityGroupIngressInput { + s.GroupName = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *RevokeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupIngressInput { + s.IpPermissions = v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *RevokeSecurityGroupIngressInput) SetIpProtocol(v string) *RevokeSecurityGroupIngressInput { + s.IpProtocol = &v + return s +} + +// SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value. +func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupIngressInput { + s.SourceSecurityGroupName = &v + return s +} + +// SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value. +func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupIngressInput { + s.SourceSecurityGroupOwnerId = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *RevokeSecurityGroupIngressInput) SetToPort(v int64) *RevokeSecurityGroupIngressInput { + s.ToPort = &v + return s +} + type RevokeSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` } @@ -33085,12 +42948,12 @@ type Route struct { // Describes how the route was created. // - // CreateRouteTable - The route was automatically created when the route - // table was created. + // * CreateRouteTable - The route was automatically created when the route + // table was created. // - // CreateRoute - The route was manually added to the route table. + // * CreateRoute - The route was manually added to the route table. // - // EnableVgwRoutePropagation - The route was propagated by route propagation. + // * EnableVgwRoutePropagation - The route was propagated by route propagation. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"` // The state of the route. The blackhole state indicates that the route's target @@ -33112,6 +42975,66 @@ func (s Route) GoString() string { return s.String() } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *Route) SetDestinationCidrBlock(v string) *Route { + s.DestinationCidrBlock = &v + return s +} + +// SetDestinationPrefixListId sets the DestinationPrefixListId field's value. +func (s *Route) SetDestinationPrefixListId(v string) *Route { + s.DestinationPrefixListId = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *Route) SetGatewayId(v string) *Route { + s.GatewayId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Route) SetInstanceId(v string) *Route { + s.InstanceId = &v + return s +} + +// SetInstanceOwnerId sets the InstanceOwnerId field's value. +func (s *Route) SetInstanceOwnerId(v string) *Route { + s.InstanceOwnerId = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *Route) SetNatGatewayId(v string) *Route { + s.NatGatewayId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *Route) SetNetworkInterfaceId(v string) *Route { + s.NetworkInterfaceId = &v + return s +} + +// SetOrigin sets the Origin field's value. +func (s *Route) SetOrigin(v string) *Route { + s.Origin = &v + return s +} + +// SetState sets the State field's value. +func (s *Route) SetState(v string) *Route { + s.State = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *Route) SetVpcPeeringConnectionId(v string) *Route { + s.VpcPeeringConnectionId = &v + return s +} + // Describes a route table. type RouteTable struct { _ struct{} `type:"structure"` @@ -33145,6 +43068,42 @@ func (s RouteTable) GoString() string { return s.String() } +// SetAssociations sets the Associations field's value. +func (s *RouteTable) SetAssociations(v []*RouteTableAssociation) *RouteTable { + s.Associations = v + return s +} + +// SetPropagatingVgws sets the PropagatingVgws field's value. +func (s *RouteTable) SetPropagatingVgws(v []*PropagatingVgw) *RouteTable { + s.PropagatingVgws = v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *RouteTable) SetRouteTableId(v string) *RouteTable { + s.RouteTableId = &v + return s +} + +// SetRoutes sets the Routes field's value. +func (s *RouteTable) SetRoutes(v []*Route) *RouteTable { + s.Routes = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RouteTable) SetTags(v []*Tag) *RouteTable { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *RouteTable) SetVpcId(v string) *RouteTable { + s.VpcId = &v + return s +} + // Describes an association between a route table and a subnet. type RouteTableAssociation struct { _ struct{} `type:"structure"` @@ -33172,6 +43131,30 @@ func (s RouteTableAssociation) GoString() string { return s.String() } +// SetMain sets the Main field's value. +func (s *RouteTableAssociation) SetMain(v bool) *RouteTableAssociation { + s.Main = &v + return s +} + +// SetRouteTableAssociationId sets the RouteTableAssociationId field's value. +func (s *RouteTableAssociation) SetRouteTableAssociationId(v string) *RouteTableAssociation { + s.RouteTableAssociationId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *RouteTableAssociation) SetRouteTableId(v string) *RouteTableAssociation { + s.RouteTableId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *RouteTableAssociation) SetSubnetId(v string) *RouteTableAssociation { + s.SubnetId = &v + return s +} + // Contains the parameters for RunInstances. type RunInstancesInput struct { _ struct{} `type:"structure"` @@ -33181,7 +43164,7 @@ type RunInstancesInput struct { // The block device mapping. // - // Supplying both a snapshot ID and an encryption value as arguments for block-device + // Supplying both a snapshot ID and an encryption value as arguments for block-device // mapping results in an error. This is because only blank volumes can be encrypted // on start, and these are not created from a snapshot. If a snapshot is the // basis for the volume, it contains data by definition and its encryption status @@ -33242,15 +43225,15 @@ type RunInstancesInput struct { // The ID of the kernel. // - // We recommend that you use PV-GRUB instead of kernels and RAM disks. For - // more information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more + // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) // in the Amazon Elastic Compute Cloud User Guide. KernelId *string `type:"string"` // The name of the key pair. You can create a key pair using CreateKeyPair or // ImportKeyPair. // - // If you do not specify a key pair, you can't connect to the instance unless + // If you do not specify a key pair, you can't connect to the instance unless // you choose an AMI that is configured to allow users another way to log in. KeyName *string `type:"string"` @@ -33302,8 +43285,8 @@ type RunInstancesInput struct { // The ID of the RAM disk. // - // We recommend that you use PV-GRUB instead of kernels and RAM disks. For - // more information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more + // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) // in the Amazon Elastic Compute Cloud User Guide. RamdiskId *string `type:"string"` @@ -33374,6 +43357,144 @@ func (s *RunInstancesInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *RunInstancesInput) SetAdditionalInfo(v string) *RunInstancesInput { + s.AdditionalInfo = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *RunInstancesInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RunInstancesInput { + s.BlockDeviceMappings = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput { + s.ClientToken = &v + return s +} + +// SetDisableApiTermination sets the DisableApiTermination field's value. +func (s *RunInstancesInput) SetDisableApiTermination(v bool) *RunInstancesInput { + s.DisableApiTermination = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RunInstancesInput) SetDryRun(v bool) *RunInstancesInput { + s.DryRun = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *RunInstancesInput) SetEbsOptimized(v bool) *RunInstancesInput { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *RunInstancesInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RunInstancesInput { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput { + s.ImageId = &v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *RunInstancesInput) SetInstanceInitiatedShutdownBehavior(v string) *RunInstancesInput { + s.InstanceInitiatedShutdownBehavior = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *RunInstancesInput) SetKernelId(v string) *RunInstancesInput { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *RunInstancesInput) SetKeyName(v string) *RunInstancesInput { + s.KeyName = &v + return s +} + +// SetMaxCount sets the MaxCount field's value. +func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput { + s.MaxCount = &v + return s +} + +// SetMinCount sets the MinCount field's value. +func (s *RunInstancesInput) SetMinCount(v int64) *RunInstancesInput { + s.MinCount = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *RunInstancesInput) SetMonitoring(v *RunInstancesMonitoringEnabled) *RunInstancesInput { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *RunInstancesInput) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RunInstancesInput { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput { + s.Placement = v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *RunInstancesInput) SetPrivateIpAddress(v string) *RunInstancesInput { + s.PrivateIpAddress = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *RunInstancesInput) SetRamdiskId(v string) *RunInstancesInput { + s.RamdiskId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput { + s.SecurityGroupIds = v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *RunInstancesInput) SetSecurityGroups(v []*string) *RunInstancesInput { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *RunInstancesInput) SetSubnetId(v string) *RunInstancesInput { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput { + s.UserData = &v + return s +} + // Describes the monitoring for the instance. type RunInstancesMonitoringEnabled struct { _ struct{} `type:"structure"` @@ -33407,6 +43528,12 @@ func (s *RunInstancesMonitoringEnabled) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *RunInstancesMonitoringEnabled) SetEnabled(v bool) *RunInstancesMonitoringEnabled { + s.Enabled = &v + return s +} + // Contains the parameters for RunScheduledInstances. type RunScheduledInstancesInput struct { _ struct{} `type:"structure"` @@ -33469,6 +43596,36 @@ func (s *RunScheduledInstancesInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *RunScheduledInstancesInput) SetClientToken(v string) *RunScheduledInstancesInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RunScheduledInstancesInput) SetDryRun(v bool) *RunScheduledInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *RunScheduledInstancesInput) SetInstanceCount(v int64) *RunScheduledInstancesInput { + s.InstanceCount = &v + return s +} + +// SetLaunchSpecification sets the LaunchSpecification field's value. +func (s *RunScheduledInstancesInput) SetLaunchSpecification(v *ScheduledInstancesLaunchSpecification) *RunScheduledInstancesInput { + s.LaunchSpecification = v + return s +} + +// SetScheduledInstanceId sets the ScheduledInstanceId field's value. +func (s *RunScheduledInstancesInput) SetScheduledInstanceId(v string) *RunScheduledInstancesInput { + s.ScheduledInstanceId = &v + return s +} + // Contains the output of RunScheduledInstances. type RunScheduledInstancesOutput struct { _ struct{} `type:"structure"` @@ -33487,6 +43644,12 @@ func (s RunScheduledInstancesOutput) GoString() string { return s.String() } +// SetInstanceIdSet sets the InstanceIdSet field's value. +func (s *RunScheduledInstancesOutput) SetInstanceIdSet(v []*string) *RunScheduledInstancesOutput { + s.InstanceIdSet = v + return s +} + // Describes the storage parameters for S3 and S3 buckets for an instance store-backed // AMI. type S3Storage struct { @@ -33525,6 +43688,36 @@ func (s S3Storage) GoString() string { return s.String() } +// SetAWSAccessKeyId sets the AWSAccessKeyId field's value. +func (s *S3Storage) SetAWSAccessKeyId(v string) *S3Storage { + s.AWSAccessKeyId = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *S3Storage) SetBucket(v string) *S3Storage { + s.Bucket = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *S3Storage) SetPrefix(v string) *S3Storage { + s.Prefix = &v + return s +} + +// SetUploadPolicy sets the UploadPolicy field's value. +func (s *S3Storage) SetUploadPolicy(v []byte) *S3Storage { + s.UploadPolicy = v + return s +} + +// SetUploadPolicySignature sets the UploadPolicySignature field's value. +func (s *S3Storage) SetUploadPolicySignature(v string) *S3Storage { + s.UploadPolicySignature = &v + return s +} + // Describes a Scheduled Instance. type ScheduledInstance struct { _ struct{} `type:"structure"` @@ -33585,6 +43778,96 @@ func (s ScheduledInstance) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ScheduledInstance) SetAvailabilityZone(v string) *ScheduledInstance { + s.AvailabilityZone = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ScheduledInstance) SetCreateDate(v time.Time) *ScheduledInstance { + s.CreateDate = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *ScheduledInstance) SetHourlyPrice(v string) *ScheduledInstance { + s.HourlyPrice = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ScheduledInstance) SetInstanceCount(v int64) *ScheduledInstance { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ScheduledInstance) SetInstanceType(v string) *ScheduledInstance { + s.InstanceType = &v + return s +} + +// SetNetworkPlatform sets the NetworkPlatform field's value. +func (s *ScheduledInstance) SetNetworkPlatform(v string) *ScheduledInstance { + s.NetworkPlatform = &v + return s +} + +// SetNextSlotStartTime sets the NextSlotStartTime field's value. +func (s *ScheduledInstance) SetNextSlotStartTime(v time.Time) *ScheduledInstance { + s.NextSlotStartTime = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ScheduledInstance) SetPlatform(v string) *ScheduledInstance { + s.Platform = &v + return s +} + +// SetPreviousSlotEndTime sets the PreviousSlotEndTime field's value. +func (s *ScheduledInstance) SetPreviousSlotEndTime(v time.Time) *ScheduledInstance { + s.PreviousSlotEndTime = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *ScheduledInstance) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstance { + s.Recurrence = v + return s +} + +// SetScheduledInstanceId sets the ScheduledInstanceId field's value. +func (s *ScheduledInstance) SetScheduledInstanceId(v string) *ScheduledInstance { + s.ScheduledInstanceId = &v + return s +} + +// SetSlotDurationInHours sets the SlotDurationInHours field's value. +func (s *ScheduledInstance) SetSlotDurationInHours(v int64) *ScheduledInstance { + s.SlotDurationInHours = &v + return s +} + +// SetTermEndDate sets the TermEndDate field's value. +func (s *ScheduledInstance) SetTermEndDate(v time.Time) *ScheduledInstance { + s.TermEndDate = &v + return s +} + +// SetTermStartDate sets the TermStartDate field's value. +func (s *ScheduledInstance) SetTermStartDate(v time.Time) *ScheduledInstance { + s.TermStartDate = &v + return s +} + +// SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value. +func (s *ScheduledInstance) SetTotalScheduledInstanceHours(v int64) *ScheduledInstance { + s.TotalScheduledInstanceHours = &v + return s +} + // Describes a schedule that is available for your Scheduled Instances. type ScheduledInstanceAvailability struct { _ struct{} `type:"structure"` @@ -33640,6 +43923,84 @@ func (s ScheduledInstanceAvailability) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ScheduledInstanceAvailability) SetAvailabilityZone(v string) *ScheduledInstanceAvailability { + s.AvailabilityZone = &v + return s +} + +// SetAvailableInstanceCount sets the AvailableInstanceCount field's value. +func (s *ScheduledInstanceAvailability) SetAvailableInstanceCount(v int64) *ScheduledInstanceAvailability { + s.AvailableInstanceCount = &v + return s +} + +// SetFirstSlotStartTime sets the FirstSlotStartTime field's value. +func (s *ScheduledInstanceAvailability) SetFirstSlotStartTime(v time.Time) *ScheduledInstanceAvailability { + s.FirstSlotStartTime = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *ScheduledInstanceAvailability) SetHourlyPrice(v string) *ScheduledInstanceAvailability { + s.HourlyPrice = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ScheduledInstanceAvailability) SetInstanceType(v string) *ScheduledInstanceAvailability { + s.InstanceType = &v + return s +} + +// SetMaxTermDurationInDays sets the MaxTermDurationInDays field's value. +func (s *ScheduledInstanceAvailability) SetMaxTermDurationInDays(v int64) *ScheduledInstanceAvailability { + s.MaxTermDurationInDays = &v + return s +} + +// SetMinTermDurationInDays sets the MinTermDurationInDays field's value. +func (s *ScheduledInstanceAvailability) SetMinTermDurationInDays(v int64) *ScheduledInstanceAvailability { + s.MinTermDurationInDays = &v + return s +} + +// SetNetworkPlatform sets the NetworkPlatform field's value. +func (s *ScheduledInstanceAvailability) SetNetworkPlatform(v string) *ScheduledInstanceAvailability { + s.NetworkPlatform = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ScheduledInstanceAvailability) SetPlatform(v string) *ScheduledInstanceAvailability { + s.Platform = &v + return s +} + +// SetPurchaseToken sets the PurchaseToken field's value. +func (s *ScheduledInstanceAvailability) SetPurchaseToken(v string) *ScheduledInstanceAvailability { + s.PurchaseToken = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *ScheduledInstanceAvailability) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstanceAvailability { + s.Recurrence = v + return s +} + +// SetSlotDurationInHours sets the SlotDurationInHours field's value. +func (s *ScheduledInstanceAvailability) SetSlotDurationInHours(v int64) *ScheduledInstanceAvailability { + s.SlotDurationInHours = &v + return s +} + +// SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value. +func (s *ScheduledInstanceAvailability) SetTotalScheduledInstanceHours(v int64) *ScheduledInstanceAvailability { + s.TotalScheduledInstanceHours = &v + return s +} + // Describes the recurring schedule for a Scheduled Instance. type ScheduledInstanceRecurrence struct { _ struct{} `type:"structure"` @@ -33674,6 +44035,36 @@ func (s ScheduledInstanceRecurrence) GoString() string { return s.String() } +// SetFrequency sets the Frequency field's value. +func (s *ScheduledInstanceRecurrence) SetFrequency(v string) *ScheduledInstanceRecurrence { + s.Frequency = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *ScheduledInstanceRecurrence) SetInterval(v int64) *ScheduledInstanceRecurrence { + s.Interval = &v + return s +} + +// SetOccurrenceDaySet sets the OccurrenceDaySet field's value. +func (s *ScheduledInstanceRecurrence) SetOccurrenceDaySet(v []*int64) *ScheduledInstanceRecurrence { + s.OccurrenceDaySet = v + return s +} + +// SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value. +func (s *ScheduledInstanceRecurrence) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrence { + s.OccurrenceRelativeToEnd = &v + return s +} + +// SetOccurrenceUnit sets the OccurrenceUnit field's value. +func (s *ScheduledInstanceRecurrence) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrence { + s.OccurrenceUnit = &v + return s +} + // Describes the recurring schedule for a Scheduled Instance. type ScheduledInstanceRecurrenceRequest struct { _ struct{} `type:"structure"` @@ -33711,6 +44102,36 @@ func (s ScheduledInstanceRecurrenceRequest) GoString() string { return s.String() } +// SetFrequency sets the Frequency field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetFrequency(v string) *ScheduledInstanceRecurrenceRequest { + s.Frequency = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetInterval(v int64) *ScheduledInstanceRecurrenceRequest { + s.Interval = &v + return s +} + +// SetOccurrenceDays sets the OccurrenceDays field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceDays(v []*int64) *ScheduledInstanceRecurrenceRequest { + s.OccurrenceDays = v + return s +} + +// SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrenceRequest { + s.OccurrenceRelativeToEnd = &v + return s +} + +// SetOccurrenceUnit sets the OccurrenceUnit field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrenceRequest { + s.OccurrenceUnit = &v + return s +} + // Describes a block device mapping for a Scheduled Instance. type ScheduledInstancesBlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -33749,6 +44170,30 @@ func (s ScheduledInstancesBlockDeviceMapping) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *ScheduledInstancesBlockDeviceMapping) SetDeviceName(v string) *ScheduledInstancesBlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *ScheduledInstancesBlockDeviceMapping) SetEbs(v *ScheduledInstancesEbs) *ScheduledInstancesBlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *ScheduledInstancesBlockDeviceMapping) SetNoDevice(v string) *ScheduledInstancesBlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *ScheduledInstancesBlockDeviceMapping) SetVirtualName(v string) *ScheduledInstancesBlockDeviceMapping { + s.VirtualName = &v + return s +} + // Describes an EBS volume for a Scheduled Instance. type ScheduledInstancesEbs struct { _ struct{} `type:"structure"` @@ -33801,6 +44246,42 @@ func (s ScheduledInstancesEbs) GoString() string { return s.String() } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *ScheduledInstancesEbs) SetDeleteOnTermination(v bool) *ScheduledInstancesEbs { + s.DeleteOnTermination = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *ScheduledInstancesEbs) SetEncrypted(v bool) *ScheduledInstancesEbs { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *ScheduledInstancesEbs) SetIops(v int64) *ScheduledInstancesEbs { + s.Iops = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *ScheduledInstancesEbs) SetSnapshotId(v string) *ScheduledInstancesEbs { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *ScheduledInstancesEbs) SetVolumeSize(v int64) *ScheduledInstancesEbs { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *ScheduledInstancesEbs) SetVolumeType(v string) *ScheduledInstancesEbs { + s.VolumeType = &v + return s +} + // Describes an IAM instance profile for a Scheduled Instance. type ScheduledInstancesIamInstanceProfile struct { _ struct{} `type:"structure"` @@ -33822,6 +44303,18 @@ func (s ScheduledInstancesIamInstanceProfile) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *ScheduledInstancesIamInstanceProfile) SetArn(v string) *ScheduledInstancesIamInstanceProfile { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScheduledInstancesIamInstanceProfile) SetName(v string) *ScheduledInstancesIamInstanceProfile { + s.Name = &v + return s +} + // Describes the launch specification for a Scheduled Instance. // // If you are launching the Scheduled Instance in EC2-VPC, you must specify @@ -33904,6 +44397,90 @@ func (s *ScheduledInstancesLaunchSpecification) Validate() error { return nil } +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *ScheduledInstancesLaunchSpecification) SetBlockDeviceMappings(v []*ScheduledInstancesBlockDeviceMapping) *ScheduledInstancesLaunchSpecification { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *ScheduledInstancesLaunchSpecification) SetEbsOptimized(v bool) *ScheduledInstancesLaunchSpecification { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *ScheduledInstancesLaunchSpecification) SetIamInstanceProfile(v *ScheduledInstancesIamInstanceProfile) *ScheduledInstancesLaunchSpecification { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ScheduledInstancesLaunchSpecification) SetImageId(v string) *ScheduledInstancesLaunchSpecification { + s.ImageId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ScheduledInstancesLaunchSpecification) SetInstanceType(v string) *ScheduledInstancesLaunchSpecification { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *ScheduledInstancesLaunchSpecification) SetKernelId(v string) *ScheduledInstancesLaunchSpecification { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ScheduledInstancesLaunchSpecification) SetKeyName(v string) *ScheduledInstancesLaunchSpecification { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *ScheduledInstancesLaunchSpecification) SetMonitoring(v *ScheduledInstancesMonitoring) *ScheduledInstancesLaunchSpecification { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *ScheduledInstancesLaunchSpecification) SetNetworkInterfaces(v []*ScheduledInstancesNetworkInterface) *ScheduledInstancesLaunchSpecification { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *ScheduledInstancesLaunchSpecification) SetPlacement(v *ScheduledInstancesPlacement) *ScheduledInstancesLaunchSpecification { + s.Placement = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *ScheduledInstancesLaunchSpecification) SetRamdiskId(v string) *ScheduledInstancesLaunchSpecification { + s.RamdiskId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ScheduledInstancesLaunchSpecification) SetSecurityGroupIds(v []*string) *ScheduledInstancesLaunchSpecification { + s.SecurityGroupIds = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ScheduledInstancesLaunchSpecification) SetSubnetId(v string) *ScheduledInstancesLaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *ScheduledInstancesLaunchSpecification) SetUserData(v string) *ScheduledInstancesLaunchSpecification { + s.UserData = &v + return s +} + // Describes whether monitoring is enabled for a Scheduled Instance. type ScheduledInstancesMonitoring struct { _ struct{} `type:"structure"` @@ -33922,6 +44499,12 @@ func (s ScheduledInstancesMonitoring) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *ScheduledInstancesMonitoring) SetEnabled(v bool) *ScheduledInstancesMonitoring { + s.Enabled = &v + return s +} + // Describes a network interface for a Scheduled Instance. type ScheduledInstancesNetworkInterface struct { _ struct{} `type:"structure"` @@ -33971,6 +44554,66 @@ func (s ScheduledInstancesNetworkInterface) GoString() string { return s.String() } +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *ScheduledInstancesNetworkInterface) SetAssociatePublicIpAddress(v bool) *ScheduledInstancesNetworkInterface { + s.AssociatePublicIpAddress = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *ScheduledInstancesNetworkInterface) SetDeleteOnTermination(v bool) *ScheduledInstancesNetworkInterface { + s.DeleteOnTermination = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ScheduledInstancesNetworkInterface) SetDescription(v string) *ScheduledInstancesNetworkInterface { + s.Description = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *ScheduledInstancesNetworkInterface) SetDeviceIndex(v int64) *ScheduledInstancesNetworkInterface { + s.DeviceIndex = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *ScheduledInstancesNetworkInterface) SetGroups(v []*string) *ScheduledInstancesNetworkInterface { + s.Groups = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *ScheduledInstancesNetworkInterface) SetNetworkInterfaceId(v string) *ScheduledInstancesNetworkInterface { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddress(v string) *ScheduledInstancesNetworkInterface { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddressConfigs sets the PrivateIpAddressConfigs field's value. +func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddressConfigs(v []*ScheduledInstancesPrivateIpAddressConfig) *ScheduledInstancesNetworkInterface { + s.PrivateIpAddressConfigs = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *ScheduledInstancesNetworkInterface) SetSecondaryPrivateIpAddressCount(v int64) *ScheduledInstancesNetworkInterface { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ScheduledInstancesNetworkInterface) SetSubnetId(v string) *ScheduledInstancesNetworkInterface { + s.SubnetId = &v + return s +} + // Describes the placement for a Scheduled Instance. type ScheduledInstancesPlacement struct { _ struct{} `type:"structure"` @@ -33992,6 +44635,18 @@ func (s ScheduledInstancesPlacement) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ScheduledInstancesPlacement) SetAvailabilityZone(v string) *ScheduledInstancesPlacement { + s.AvailabilityZone = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *ScheduledInstancesPlacement) SetGroupName(v string) *ScheduledInstancesPlacement { + s.GroupName = &v + return s +} + // Describes a private IP address for a Scheduled Instance. type ScheduledInstancesPrivateIpAddressConfig struct { _ struct{} `type:"structure"` @@ -34014,6 +44669,18 @@ func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string { return s.String() } +// SetPrimary sets the Primary field's value. +func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrimary(v bool) *ScheduledInstancesPrivateIpAddressConfig { + s.Primary = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrivateIpAddress(v string) *ScheduledInstancesPrivateIpAddressConfig { + s.PrivateIpAddress = &v + return s +} + // Describes a security group type SecurityGroup struct { _ struct{} `type:"structure"` @@ -34053,6 +44720,54 @@ func (s SecurityGroup) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *SecurityGroup) SetDescription(v string) *SecurityGroup { + s.Description = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *SecurityGroup) SetGroupId(v string) *SecurityGroup { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *SecurityGroup) SetGroupName(v string) *SecurityGroup { + s.GroupName = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *SecurityGroup) SetIpPermissions(v []*IpPermission) *SecurityGroup { + s.IpPermissions = v + return s +} + +// SetIpPermissionsEgress sets the IpPermissionsEgress field's value. +func (s *SecurityGroup) SetIpPermissionsEgress(v []*IpPermission) *SecurityGroup { + s.IpPermissionsEgress = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *SecurityGroup) SetOwnerId(v string) *SecurityGroup { + s.OwnerId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SecurityGroup) SetTags(v []*Tag) *SecurityGroup { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *SecurityGroup) SetVpcId(v string) *SecurityGroup { + s.VpcId = &v + return s +} + // Describes a VPC with a security group that references your security group. type SecurityGroupReference struct { _ struct{} `type:"structure"` @@ -34081,6 +44796,24 @@ func (s SecurityGroupReference) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *SecurityGroupReference) SetGroupId(v string) *SecurityGroupReference { + s.GroupId = &v + return s +} + +// SetReferencingVpcId sets the ReferencingVpcId field's value. +func (s *SecurityGroupReference) SetReferencingVpcId(v string) *SecurityGroupReference { + s.ReferencingVpcId = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGroupReference { + s.VpcPeeringConnectionId = &v + return s +} + // Describes the time period for a Scheduled Instance to start its first schedule. // The time period must span less than one day. type SlotDateTimeRangeRequest struct { @@ -34125,6 +44858,18 @@ func (s *SlotDateTimeRangeRequest) Validate() error { return nil } +// SetEarliestTime sets the EarliestTime field's value. +func (s *SlotDateTimeRangeRequest) SetEarliestTime(v time.Time) *SlotDateTimeRangeRequest { + s.EarliestTime = &v + return s +} + +// SetLatestTime sets the LatestTime field's value. +func (s *SlotDateTimeRangeRequest) SetLatestTime(v time.Time) *SlotDateTimeRangeRequest { + s.LatestTime = &v + return s +} + // Describes the time period for a Scheduled Instance to start its first schedule. type SlotStartTimeRangeRequest struct { _ struct{} `type:"structure"` @@ -34146,6 +44891,18 @@ func (s SlotStartTimeRangeRequest) GoString() string { return s.String() } +// SetEarliestTime sets the EarliestTime field's value. +func (s *SlotStartTimeRangeRequest) SetEarliestTime(v time.Time) *SlotStartTimeRangeRequest { + s.EarliestTime = &v + return s +} + +// SetLatestTime sets the LatestTime field's value. +func (s *SlotStartTimeRangeRequest) SetLatestTime(v time.Time) *SlotStartTimeRangeRequest { + s.LatestTime = &v + return s +} + // Describes a snapshot. type Snapshot struct { _ struct{} `type:"structure"` @@ -34219,6 +44976,90 @@ func (s Snapshot) GoString() string { return s.String() } +// SetDataEncryptionKeyId sets the DataEncryptionKeyId field's value. +func (s *Snapshot) SetDataEncryptionKeyId(v string) *Snapshot { + s.DataEncryptionKeyId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Snapshot) SetDescription(v string) *Snapshot { + s.Description = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Snapshot) SetEncrypted(v bool) *Snapshot { + s.Encrypted = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Snapshot) SetKmsKeyId(v string) *Snapshot { + s.KmsKeyId = &v + return s +} + +// SetOwnerAlias sets the OwnerAlias field's value. +func (s *Snapshot) SetOwnerAlias(v string) *Snapshot { + s.OwnerAlias = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *Snapshot) SetOwnerId(v string) *Snapshot { + s.OwnerId = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *Snapshot) SetProgress(v string) *Snapshot { + s.Progress = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *Snapshot) SetSnapshotId(v string) *Snapshot { + s.SnapshotId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Snapshot) SetStartTime(v time.Time) *Snapshot { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *Snapshot) SetState(v string) *Snapshot { + s.State = &v + return s +} + +// SetStateMessage sets the StateMessage field's value. +func (s *Snapshot) SetStateMessage(v string) *Snapshot { + s.StateMessage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Snapshot) SetTags(v []*Tag) *Snapshot { + s.Tags = v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *Snapshot) SetVolumeId(v string) *Snapshot { + s.VolumeId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *Snapshot) SetVolumeSize(v int64) *Snapshot { + s.VolumeSize = &v + return s +} + // Describes the snapshot created from the imported disk. type SnapshotDetail struct { _ struct{} `type:"structure"` @@ -34264,6 +45105,66 @@ func (s SnapshotDetail) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *SnapshotDetail) SetDescription(v string) *SnapshotDetail { + s.Description = &v + return s +} + +// SetDeviceName sets the DeviceName field's value. +func (s *SnapshotDetail) SetDeviceName(v string) *SnapshotDetail { + s.DeviceName = &v + return s +} + +// SetDiskImageSize sets the DiskImageSize field's value. +func (s *SnapshotDetail) SetDiskImageSize(v float64) *SnapshotDetail { + s.DiskImageSize = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *SnapshotDetail) SetFormat(v string) *SnapshotDetail { + s.Format = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *SnapshotDetail) SetProgress(v string) *SnapshotDetail { + s.Progress = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *SnapshotDetail) SetSnapshotId(v string) *SnapshotDetail { + s.SnapshotId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SnapshotDetail) SetStatus(v string) *SnapshotDetail { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *SnapshotDetail) SetStatusMessage(v string) *SnapshotDetail { + s.StatusMessage = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *SnapshotDetail) SetUrl(v string) *SnapshotDetail { + s.Url = &v + return s +} + +// SetUserBucket sets the UserBucket field's value. +func (s *SnapshotDetail) SetUserBucket(v *UserBucketDetails) *SnapshotDetail { + s.UserBucket = v + return s +} + // The disk container object for the import snapshot request. type SnapshotDiskContainer struct { _ struct{} `type:"structure"` @@ -34294,6 +45195,30 @@ func (s SnapshotDiskContainer) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *SnapshotDiskContainer) SetDescription(v string) *SnapshotDiskContainer { + s.Description = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *SnapshotDiskContainer) SetFormat(v string) *SnapshotDiskContainer { + s.Format = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *SnapshotDiskContainer) SetUrl(v string) *SnapshotDiskContainer { + s.Url = &v + return s +} + +// SetUserBucket sets the UserBucket field's value. +func (s *SnapshotDiskContainer) SetUserBucket(v *UserBucket) *SnapshotDiskContainer { + s.UserBucket = v + return s +} + // Details about the import snapshot task. type SnapshotTaskDetail struct { _ struct{} `type:"structure"` @@ -34336,6 +45261,60 @@ func (s SnapshotTaskDetail) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *SnapshotTaskDetail) SetDescription(v string) *SnapshotTaskDetail { + s.Description = &v + return s +} + +// SetDiskImageSize sets the DiskImageSize field's value. +func (s *SnapshotTaskDetail) SetDiskImageSize(v float64) *SnapshotTaskDetail { + s.DiskImageSize = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *SnapshotTaskDetail) SetFormat(v string) *SnapshotTaskDetail { + s.Format = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *SnapshotTaskDetail) SetProgress(v string) *SnapshotTaskDetail { + s.Progress = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *SnapshotTaskDetail) SetSnapshotId(v string) *SnapshotTaskDetail { + s.SnapshotId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SnapshotTaskDetail) SetStatus(v string) *SnapshotTaskDetail { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *SnapshotTaskDetail) SetStatusMessage(v string) *SnapshotTaskDetail { + s.StatusMessage = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *SnapshotTaskDetail) SetUrl(v string) *SnapshotTaskDetail { + s.Url = &v + return s +} + +// SetUserBucket sets the UserBucket field's value. +func (s *SnapshotTaskDetail) SetUserBucket(v *UserBucketDetails) *SnapshotTaskDetail { + s.UserBucket = v + return s +} + // Describes the data feed for a Spot instance. type SpotDatafeedSubscription struct { _ struct{} `type:"structure"` @@ -34366,6 +45345,36 @@ func (s SpotDatafeedSubscription) GoString() string { return s.String() } +// SetBucket sets the Bucket field's value. +func (s *SpotDatafeedSubscription) SetBucket(v string) *SpotDatafeedSubscription { + s.Bucket = &v + return s +} + +// SetFault sets the Fault field's value. +func (s *SpotDatafeedSubscription) SetFault(v *SpotInstanceStateFault) *SpotDatafeedSubscription { + s.Fault = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *SpotDatafeedSubscription) SetOwnerId(v string) *SpotDatafeedSubscription { + s.OwnerId = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *SpotDatafeedSubscription) SetPrefix(v string) *SpotDatafeedSubscription { + s.Prefix = &v + return s +} + +// SetState sets the State field's value. +func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription { + s.State = &v + return s +} + // Describes the launch specification for one or more Spot instances. type SpotFleetLaunchSpecification struct { _ struct{} `type:"structure"` @@ -34472,6 +45481,108 @@ func (s *SpotFleetLaunchSpecification) Validate() error { return nil } +// SetAddressingType sets the AddressingType field's value. +func (s *SpotFleetLaunchSpecification) SetAddressingType(v string) *SpotFleetLaunchSpecification { + s.AddressingType = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *SpotFleetLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *SpotFleetLaunchSpecification { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *SpotFleetLaunchSpecification) SetEbsOptimized(v bool) *SpotFleetLaunchSpecification { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *SpotFleetLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *SpotFleetLaunchSpecification { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *SpotFleetLaunchSpecification) SetImageId(v string) *SpotFleetLaunchSpecification { + s.ImageId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *SpotFleetLaunchSpecification) SetInstanceType(v string) *SpotFleetLaunchSpecification { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *SpotFleetLaunchSpecification) SetKernelId(v string) *SpotFleetLaunchSpecification { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *SpotFleetLaunchSpecification) SetKeyName(v string) *SpotFleetLaunchSpecification { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *SpotFleetLaunchSpecification) SetMonitoring(v *SpotFleetMonitoring) *SpotFleetLaunchSpecification { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *SpotFleetLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *SpotFleetLaunchSpecification { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *SpotFleetLaunchSpecification) SetPlacement(v *SpotPlacement) *SpotFleetLaunchSpecification { + s.Placement = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *SpotFleetLaunchSpecification) SetRamdiskId(v string) *SpotFleetLaunchSpecification { + s.RamdiskId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *SpotFleetLaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *SpotFleetLaunchSpecification { + s.SecurityGroups = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *SpotFleetLaunchSpecification) SetSpotPrice(v string) *SpotFleetLaunchSpecification { + s.SpotPrice = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *SpotFleetLaunchSpecification) SetSubnetId(v string) *SpotFleetLaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *SpotFleetLaunchSpecification) SetUserData(v string) *SpotFleetLaunchSpecification { + s.UserData = &v + return s +} + +// SetWeightedCapacity sets the WeightedCapacity field's value. +func (s *SpotFleetLaunchSpecification) SetWeightedCapacity(v float64) *SpotFleetLaunchSpecification { + s.WeightedCapacity = &v + return s +} + // Describes whether monitoring is enabled. type SpotFleetMonitoring struct { _ struct{} `type:"structure"` @@ -34492,6 +45603,12 @@ func (s SpotFleetMonitoring) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *SpotFleetMonitoring) SetEnabled(v bool) *SpotFleetMonitoring { + s.Enabled = &v + return s +} + // Describes a Spot fleet request. type SpotFleetRequestConfig struct { _ struct{} `type:"structure"` @@ -34534,6 +45651,36 @@ func (s SpotFleetRequestConfig) GoString() string { return s.String() } +// SetActivityStatus sets the ActivityStatus field's value. +func (s *SpotFleetRequestConfig) SetActivityStatus(v string) *SpotFleetRequestConfig { + s.ActivityStatus = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *SpotFleetRequestConfig) SetCreateTime(v time.Time) *SpotFleetRequestConfig { + s.CreateTime = &v + return s +} + +// SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value. +func (s *SpotFleetRequestConfig) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *SpotFleetRequestConfig { + s.SpotFleetRequestConfig = v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *SpotFleetRequestConfig) SetSpotFleetRequestId(v string) *SpotFleetRequestConfig { + s.SpotFleetRequestId = &v + return s +} + +// SetSpotFleetRequestState sets the SpotFleetRequestState field's value. +func (s *SpotFleetRequestConfig) SetSpotFleetRequestState(v string) *SpotFleetRequestConfig { + s.SpotFleetRequestState = &v + return s +} + // Describes the configuration of a Spot fleet request. type SpotFleetRequestConfigData struct { _ struct{} `type:"structure"` @@ -34649,6 +45796,78 @@ func (s *SpotFleetRequestConfigData) Validate() error { return nil } +// SetAllocationStrategy sets the AllocationStrategy field's value. +func (s *SpotFleetRequestConfigData) SetAllocationStrategy(v string) *SpotFleetRequestConfigData { + s.AllocationStrategy = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *SpotFleetRequestConfigData) SetClientToken(v string) *SpotFleetRequestConfigData { + s.ClientToken = &v + return s +} + +// SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value. +func (s *SpotFleetRequestConfigData) SetExcessCapacityTerminationPolicy(v string) *SpotFleetRequestConfigData { + s.ExcessCapacityTerminationPolicy = &v + return s +} + +// SetFulfilledCapacity sets the FulfilledCapacity field's value. +func (s *SpotFleetRequestConfigData) SetFulfilledCapacity(v float64) *SpotFleetRequestConfigData { + s.FulfilledCapacity = &v + return s +} + +// SetIamFleetRole sets the IamFleetRole field's value. +func (s *SpotFleetRequestConfigData) SetIamFleetRole(v string) *SpotFleetRequestConfigData { + s.IamFleetRole = &v + return s +} + +// SetLaunchSpecifications sets the LaunchSpecifications field's value. +func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunchSpecification) *SpotFleetRequestConfigData { + s.LaunchSpecifications = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData { + s.SpotPrice = &v + return s +} + +// SetTargetCapacity sets the TargetCapacity field's value. +func (s *SpotFleetRequestConfigData) SetTargetCapacity(v int64) *SpotFleetRequestConfigData { + s.TargetCapacity = &v + return s +} + +// SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value. +func (s *SpotFleetRequestConfigData) SetTerminateInstancesWithExpiration(v bool) *SpotFleetRequestConfigData { + s.TerminateInstancesWithExpiration = &v + return s +} + +// SetType sets the Type field's value. +func (s *SpotFleetRequestConfigData) SetType(v string) *SpotFleetRequestConfigData { + s.Type = &v + return s +} + +// SetValidFrom sets the ValidFrom field's value. +func (s *SpotFleetRequestConfigData) SetValidFrom(v time.Time) *SpotFleetRequestConfigData { + s.ValidFrom = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *SpotFleetRequestConfigData) SetValidUntil(v time.Time) *SpotFleetRequestConfigData { + s.ValidUntil = &v + return s +} + // Describes a Spot instance request. type SpotInstanceRequest struct { _ struct{} `type:"structure"` @@ -34732,6 +45951,114 @@ func (s SpotInstanceRequest) GoString() string { return s.String() } +// SetActualBlockHourlyPrice sets the ActualBlockHourlyPrice field's value. +func (s *SpotInstanceRequest) SetActualBlockHourlyPrice(v string) *SpotInstanceRequest { + s.ActualBlockHourlyPrice = &v + return s +} + +// SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value. +func (s *SpotInstanceRequest) SetAvailabilityZoneGroup(v string) *SpotInstanceRequest { + s.AvailabilityZoneGroup = &v + return s +} + +// SetBlockDurationMinutes sets the BlockDurationMinutes field's value. +func (s *SpotInstanceRequest) SetBlockDurationMinutes(v int64) *SpotInstanceRequest { + s.BlockDurationMinutes = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *SpotInstanceRequest) SetCreateTime(v time.Time) *SpotInstanceRequest { + s.CreateTime = &v + return s +} + +// SetFault sets the Fault field's value. +func (s *SpotInstanceRequest) SetFault(v *SpotInstanceStateFault) *SpotInstanceRequest { + s.Fault = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SpotInstanceRequest) SetInstanceId(v string) *SpotInstanceRequest { + s.InstanceId = &v + return s +} + +// SetLaunchGroup sets the LaunchGroup field's value. +func (s *SpotInstanceRequest) SetLaunchGroup(v string) *SpotInstanceRequest { + s.LaunchGroup = &v + return s +} + +// SetLaunchSpecification sets the LaunchSpecification field's value. +func (s *SpotInstanceRequest) SetLaunchSpecification(v *LaunchSpecification) *SpotInstanceRequest { + s.LaunchSpecification = v + return s +} + +// SetLaunchedAvailabilityZone sets the LaunchedAvailabilityZone field's value. +func (s *SpotInstanceRequest) SetLaunchedAvailabilityZone(v string) *SpotInstanceRequest { + s.LaunchedAvailabilityZone = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *SpotInstanceRequest) SetProductDescription(v string) *SpotInstanceRequest { + s.ProductDescription = &v + return s +} + +// SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value. +func (s *SpotInstanceRequest) SetSpotInstanceRequestId(v string) *SpotInstanceRequest { + s.SpotInstanceRequestId = &v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *SpotInstanceRequest) SetSpotPrice(v string) *SpotInstanceRequest { + s.SpotPrice = &v + return s +} + +// SetState sets the State field's value. +func (s *SpotInstanceRequest) SetState(v string) *SpotInstanceRequest { + s.State = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SpotInstanceRequest) SetStatus(v *SpotInstanceStatus) *SpotInstanceRequest { + s.Status = v + return s +} + +// SetTags sets the Tags field's value. +func (s *SpotInstanceRequest) SetTags(v []*Tag) *SpotInstanceRequest { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *SpotInstanceRequest) SetType(v string) *SpotInstanceRequest { + s.Type = &v + return s +} + +// SetValidFrom sets the ValidFrom field's value. +func (s *SpotInstanceRequest) SetValidFrom(v time.Time) *SpotInstanceRequest { + s.ValidFrom = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *SpotInstanceRequest) SetValidUntil(v time.Time) *SpotInstanceRequest { + s.ValidUntil = &v + return s +} + // Describes a Spot instance state change. type SpotInstanceStateFault struct { _ struct{} `type:"structure"` @@ -34753,6 +46080,18 @@ func (s SpotInstanceStateFault) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *SpotInstanceStateFault) SetCode(v string) *SpotInstanceStateFault { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *SpotInstanceStateFault) SetMessage(v string) *SpotInstanceStateFault { + s.Message = &v + return s +} + // Describes the status of a Spot instance request. type SpotInstanceStatus struct { _ struct{} `type:"structure"` @@ -34779,14 +46118,32 @@ func (s SpotInstanceStatus) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *SpotInstanceStatus) SetCode(v string) *SpotInstanceStatus { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *SpotInstanceStatus) SetMessage(v string) *SpotInstanceStatus { + s.Message = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *SpotInstanceStatus) SetUpdateTime(v time.Time) *SpotInstanceStatus { + s.UpdateTime = &v + return s +} + // Describes Spot instance placement. type SpotPlacement struct { _ struct{} `type:"structure"` // The Availability Zone. // - // [Spot fleet only] To specify multiple Availability Zones, separate them - // using commas; for example, "us-west-2a, us-west-2b". + // [Spot fleet only] To specify multiple Availability Zones, separate them using + // commas; for example, "us-west-2a, us-west-2b". AvailabilityZone *string `locationName:"availabilityZone" type:"string"` // The name of the placement group (for cluster instances). @@ -34803,6 +46160,18 @@ func (s SpotPlacement) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *SpotPlacement) SetAvailabilityZone(v string) *SpotPlacement { + s.AvailabilityZone = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *SpotPlacement) SetGroupName(v string) *SpotPlacement { + s.GroupName = &v + return s +} + // Describes the maximum hourly price (bid) for any Spot instance launched to // fulfill the request. type SpotPrice struct { @@ -34834,6 +46203,36 @@ func (s SpotPrice) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *SpotPrice) SetAvailabilityZone(v string) *SpotPrice { + s.AvailabilityZone = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *SpotPrice) SetInstanceType(v string) *SpotPrice { + s.InstanceType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *SpotPrice) SetProductDescription(v string) *SpotPrice { + s.ProductDescription = &v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *SpotPrice) SetSpotPrice(v string) *SpotPrice { + s.SpotPrice = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *SpotPrice) SetTimestamp(v time.Time) *SpotPrice { + s.Timestamp = &v + return s +} + // Describes a stale rule in a security group. type StaleIpPermission struct { _ struct{} `type:"structure"` @@ -34872,6 +46271,42 @@ func (s StaleIpPermission) GoString() string { return s.String() } +// SetFromPort sets the FromPort field's value. +func (s *StaleIpPermission) SetFromPort(v int64) *StaleIpPermission { + s.FromPort = &v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *StaleIpPermission) SetIpProtocol(v string) *StaleIpPermission { + s.IpProtocol = &v + return s +} + +// SetIpRanges sets the IpRanges field's value. +func (s *StaleIpPermission) SetIpRanges(v []*string) *StaleIpPermission { + s.IpRanges = v + return s +} + +// SetPrefixListIds sets the PrefixListIds field's value. +func (s *StaleIpPermission) SetPrefixListIds(v []*string) *StaleIpPermission { + s.PrefixListIds = v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *StaleIpPermission) SetToPort(v int64) *StaleIpPermission { + s.ToPort = &v + return s +} + +// SetUserIdGroupPairs sets the UserIdGroupPairs field's value. +func (s *StaleIpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *StaleIpPermission { + s.UserIdGroupPairs = v + return s +} + // Describes a stale security group (a security group that contains stale rules). type StaleSecurityGroup struct { _ struct{} `type:"structure"` @@ -34907,6 +46342,42 @@ func (s StaleSecurityGroup) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *StaleSecurityGroup) SetDescription(v string) *StaleSecurityGroup { + s.Description = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *StaleSecurityGroup) SetGroupId(v string) *StaleSecurityGroup { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *StaleSecurityGroup) SetGroupName(v string) *StaleSecurityGroup { + s.GroupName = &v + return s +} + +// SetStaleIpPermissions sets the StaleIpPermissions field's value. +func (s *StaleSecurityGroup) SetStaleIpPermissions(v []*StaleIpPermission) *StaleSecurityGroup { + s.StaleIpPermissions = v + return s +} + +// SetStaleIpPermissionsEgress sets the StaleIpPermissionsEgress field's value. +func (s *StaleSecurityGroup) SetStaleIpPermissionsEgress(v []*StaleIpPermission) *StaleSecurityGroup { + s.StaleIpPermissionsEgress = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *StaleSecurityGroup) SetVpcId(v string) *StaleSecurityGroup { + s.VpcId = &v + return s +} + // Contains the parameters for StartInstances. type StartInstancesInput struct { _ struct{} `type:"structure"` @@ -34949,6 +46420,24 @@ func (s *StartInstancesInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *StartInstancesInput) SetAdditionalInfo(v string) *StartInstancesInput { + s.AdditionalInfo = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *StartInstancesInput) SetDryRun(v bool) *StartInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of StartInstances. type StartInstancesOutput struct { _ struct{} `type:"structure"` @@ -34967,6 +46456,12 @@ func (s StartInstancesOutput) GoString() string { return s.String() } +// SetStartingInstances sets the StartingInstances field's value. +func (s *StartInstancesOutput) SetStartingInstances(v []*InstanceStateChange) *StartInstancesOutput { + s.StartingInstances = v + return s +} + // Describes a state change. type StateReason struct { _ struct{} `type:"structure"` @@ -34976,29 +46471,29 @@ type StateReason struct { // The message for the state change. // - // Server.SpotInstanceTermination: A Spot instance was terminated due to - // an increase in the market price. + // * Server.SpotInstanceTermination: A Spot instance was terminated due to + // an increase in the market price. // - // Server.InternalError: An internal error occurred during instance launch, - // resulting in termination. + // * Server.InternalError: An internal error occurred during instance launch, + // resulting in termination. // - // Server.InsufficientInstanceCapacity: There was insufficient instance - // capacity to satisfy the launch request. + // * Server.InsufficientInstanceCapacity: There was insufficient instance + // capacity to satisfy the launch request. // - // Client.InternalError: A client error caused the instance to terminate - // on launch. + // * Client.InternalError: A client error caused the instance to terminate + // on launch. // - // Client.InstanceInitiatedShutdown: The instance was shut down using the - // shutdown -h command from the instance. + // * Client.InstanceInitiatedShutdown: The instance was shut down using the + // shutdown -h command from the instance. // - // Client.UserInitiatedShutdown: The instance was shut down using the Amazon - // EC2 API. + // * Client.UserInitiatedShutdown: The instance was shut down using the Amazon + // EC2 API. // - // Client.VolumeLimitExceeded: The limit on the number of EBS volumes or - // total storage was exceeded. Decrease usage or request an increase in your - // limits. + // * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or + // total storage was exceeded. Decrease usage or request an increase in your + // limits. // - // Client.InvalidSnapshot.NotFound: The specified snapshot was not found. + // * Client.InvalidSnapshot.NotFound: The specified snapshot was not found. Message *string `locationName:"message" type:"string"` } @@ -35012,6 +46507,18 @@ func (s StateReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *StateReason) SetCode(v string) *StateReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *StateReason) SetMessage(v string) *StateReason { + s.Message = &v + return s +} + // Contains the parameters for StopInstances. type StopInstancesInput struct { _ struct{} `type:"structure"` @@ -35059,6 +46566,24 @@ func (s *StopInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *StopInstancesInput) SetDryRun(v bool) *StopInstancesInput { + s.DryRun = &v + return s +} + +// SetForce sets the Force field's value. +func (s *StopInstancesInput) SetForce(v bool) *StopInstancesInput { + s.Force = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of StopInstances. type StopInstancesOutput struct { _ struct{} `type:"structure"` @@ -35077,6 +46602,12 @@ func (s StopInstancesOutput) GoString() string { return s.String() } +// SetStoppingInstances sets the StoppingInstances field's value. +func (s *StopInstancesOutput) SetStoppingInstances(v []*InstanceStateChange) *StopInstancesOutput { + s.StoppingInstances = v + return s +} + // Describes the storage location for an instance store-backed AMI. type Storage struct { _ struct{} `type:"structure"` @@ -35095,6 +46626,12 @@ func (s Storage) GoString() string { return s.String() } +// SetS3 sets the S3 field's value. +func (s *Storage) SetS3(v *S3Storage) *Storage { + s.S3 = v + return s +} + // Describes a subnet. type Subnet struct { _ struct{} `type:"structure"` @@ -35138,6 +46675,60 @@ func (s Subnet) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Subnet) SetAvailabilityZone(v string) *Subnet { + s.AvailabilityZone = &v + return s +} + +// SetAvailableIpAddressCount sets the AvailableIpAddressCount field's value. +func (s *Subnet) SetAvailableIpAddressCount(v int64) *Subnet { + s.AvailableIpAddressCount = &v + return s +} + +// SetCidrBlock sets the CidrBlock field's value. +func (s *Subnet) SetCidrBlock(v string) *Subnet { + s.CidrBlock = &v + return s +} + +// SetDefaultForAz sets the DefaultForAz field's value. +func (s *Subnet) SetDefaultForAz(v bool) *Subnet { + s.DefaultForAz = &v + return s +} + +// SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value. +func (s *Subnet) SetMapPublicIpOnLaunch(v bool) *Subnet { + s.MapPublicIpOnLaunch = &v + return s +} + +// SetState sets the State field's value. +func (s *Subnet) SetState(v string) *Subnet { + s.State = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *Subnet) SetSubnetId(v string) *Subnet { + s.SubnetId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Subnet) SetTags(v []*Tag) *Subnet { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Subnet) SetVpcId(v string) *Subnet { + s.VpcId = &v + return s +} + // Describes a tag. type Tag struct { _ struct{} `type:"structure"` @@ -35165,6 +46756,18 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Describes a tag. type TagDescription struct { _ struct{} `type:"structure"` @@ -35192,6 +46795,30 @@ func (s TagDescription) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *TagDescription) SetKey(v string) *TagDescription { + s.Key = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *TagDescription) SetResourceId(v string) *TagDescription { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TagDescription) SetResourceType(v string) *TagDescription { + s.ResourceType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TagDescription) SetValue(v string) *TagDescription { + s.Value = &v + return s +} + // Information about the Convertible Reserved Instance offering. type TargetConfiguration struct { _ struct{} `type:"structure"` @@ -35214,6 +46841,18 @@ func (s TargetConfiguration) GoString() string { return s.String() } +// SetInstanceCount sets the InstanceCount field's value. +func (s *TargetConfiguration) SetInstanceCount(v int64) *TargetConfiguration { + s.InstanceCount = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *TargetConfiguration) SetOfferingId(v string) *TargetConfiguration { + s.OfferingId = &v + return s +} + // Details about the target configuration. type TargetConfigurationRequest struct { _ struct{} `type:"structure"` @@ -35253,6 +46892,18 @@ func (s *TargetConfigurationRequest) Validate() error { return nil } +// SetInstanceCount sets the InstanceCount field's value. +func (s *TargetConfigurationRequest) SetInstanceCount(v int64) *TargetConfigurationRequest { + s.InstanceCount = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *TargetConfigurationRequest) SetOfferingId(v string) *TargetConfigurationRequest { + s.OfferingId = &v + return s +} + // The total value of the new Convertible Reserved Instances. type TargetReservationValue struct { _ struct{} `type:"structure"` @@ -35277,6 +46928,18 @@ func (s TargetReservationValue) GoString() string { return s.String() } +// SetReservationValue sets the ReservationValue field's value. +func (s *TargetReservationValue) SetReservationValue(v *ReservationValue) *TargetReservationValue { + s.ReservationValue = v + return s +} + +// SetTargetConfiguration sets the TargetConfiguration field's value. +func (s *TargetReservationValue) SetTargetConfiguration(v *TargetConfiguration) *TargetReservationValue { + s.TargetConfiguration = v + return s +} + // Contains the parameters for TerminateInstances. type TerminateInstancesInput struct { _ struct{} `type:"structure"` @@ -35319,6 +46982,18 @@ func (s *TerminateInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *TerminateInstancesInput) SetDryRun(v bool) *TerminateInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of TerminateInstances. type TerminateInstancesOutput struct { _ struct{} `type:"structure"` @@ -35337,6 +47012,12 @@ func (s TerminateInstancesOutput) GoString() string { return s.String() } +// SetTerminatingInstances sets the TerminatingInstances field's value. +func (s *TerminateInstancesOutput) SetTerminatingInstances(v []*InstanceStateChange) *TerminateInstancesOutput { + s.TerminatingInstances = v + return s +} + // Contains the parameters for UnassignPrivateIpAddresses. type UnassignPrivateIpAddressesInput struct { _ struct{} `type:"structure"` @@ -35379,6 +47060,18 @@ func (s *UnassignPrivateIpAddressesInput) Validate() error { return nil } +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *UnassignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *UnassignPrivateIpAddressesInput { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *UnassignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *UnassignPrivateIpAddressesInput { + s.PrivateIpAddresses = v + return s +} + type UnassignPrivateIpAddressesOutput struct { _ struct{} `type:"structure"` } @@ -35432,6 +47125,18 @@ func (s *UnmonitorInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *UnmonitorInstancesInput) SetDryRun(v bool) *UnmonitorInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *UnmonitorInstancesInput) SetInstanceIds(v []*string) *UnmonitorInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of UnmonitorInstances. type UnmonitorInstancesOutput struct { _ struct{} `type:"structure"` @@ -35450,6 +47155,12 @@ func (s UnmonitorInstancesOutput) GoString() string { return s.String() } +// SetInstanceMonitorings sets the InstanceMonitorings field's value. +func (s *UnmonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *UnmonitorInstancesOutput { + s.InstanceMonitorings = v + return s +} + // Information about items that were not successfully processed in a batch call. type UnsuccessfulItem struct { _ struct{} `type:"structure"` @@ -35473,6 +47184,18 @@ func (s UnsuccessfulItem) GoString() string { return s.String() } +// SetError sets the Error field's value. +func (s *UnsuccessfulItem) SetError(v *UnsuccessfulItemError) *UnsuccessfulItem { + s.Error = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UnsuccessfulItem) SetResourceId(v string) *UnsuccessfulItem { + s.ResourceId = &v + return s +} + // Information about the error that occurred. For more information about errors, // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html). type UnsuccessfulItemError struct { @@ -35499,6 +47222,18 @@ func (s UnsuccessfulItemError) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *UnsuccessfulItemError) SetCode(v string) *UnsuccessfulItemError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *UnsuccessfulItemError) SetMessage(v string) *UnsuccessfulItemError { + s.Message = &v + return s +} + // Describes the S3 bucket for the disk image. type UserBucket struct { _ struct{} `type:"structure"` @@ -35520,6 +47255,18 @@ func (s UserBucket) GoString() string { return s.String() } +// SetS3Bucket sets the S3Bucket field's value. +func (s *UserBucket) SetS3Bucket(v string) *UserBucket { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *UserBucket) SetS3Key(v string) *UserBucket { + s.S3Key = &v + return s +} + // Describes the S3 bucket for the disk image. type UserBucketDetails struct { _ struct{} `type:"structure"` @@ -35541,6 +47288,18 @@ func (s UserBucketDetails) GoString() string { return s.String() } +// SetS3Bucket sets the S3Bucket field's value. +func (s *UserBucketDetails) SetS3Bucket(v string) *UserBucketDetails { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *UserBucketDetails) SetS3Key(v string) *UserBucketDetails { + s.S3Key = &v + return s +} + // Describes the user data for an instance. type UserData struct { _ struct{} `type:"structure"` @@ -35561,6 +47320,12 @@ func (s UserData) GoString() string { return s.String() } +// SetData sets the Data field's value. +func (s *UserData) SetData(v string) *UserData { + s.Data = &v + return s +} + // Describes a security group and AWS account ID pair. type UserIdGroupPair struct { _ struct{} `type:"structure"` @@ -35600,6 +47365,42 @@ func (s UserIdGroupPair) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *UserIdGroupPair) SetGroupId(v string) *UserIdGroupPair { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *UserIdGroupPair) SetGroupName(v string) *UserIdGroupPair { + s.GroupName = &v + return s +} + +// SetPeeringStatus sets the PeeringStatus field's value. +func (s *UserIdGroupPair) SetPeeringStatus(v string) *UserIdGroupPair { + s.PeeringStatus = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *UserIdGroupPair) SetUserId(v string) *UserIdGroupPair { + s.UserId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *UserIdGroupPair) SetVpcId(v string) *UserIdGroupPair { + s.VpcId = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *UserIdGroupPair) SetVpcPeeringConnectionId(v string) *UserIdGroupPair { + s.VpcPeeringConnectionId = &v + return s +} + // Describes telemetry for a VPN tunnel. type VgwTelemetry struct { _ struct{} `type:"structure"` @@ -35631,6 +47432,36 @@ func (s VgwTelemetry) GoString() string { return s.String() } +// SetAcceptedRouteCount sets the AcceptedRouteCount field's value. +func (s *VgwTelemetry) SetAcceptedRouteCount(v int64) *VgwTelemetry { + s.AcceptedRouteCount = &v + return s +} + +// SetLastStatusChange sets the LastStatusChange field's value. +func (s *VgwTelemetry) SetLastStatusChange(v time.Time) *VgwTelemetry { + s.LastStatusChange = &v + return s +} + +// SetOutsideIpAddress sets the OutsideIpAddress field's value. +func (s *VgwTelemetry) SetOutsideIpAddress(v string) *VgwTelemetry { + s.OutsideIpAddress = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *VgwTelemetry) SetStatus(v string) *VgwTelemetry { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *VgwTelemetry) SetStatusMessage(v string) *VgwTelemetry { + s.StatusMessage = &v + return s +} + // Describes a volume. type Volume struct { _ struct{} `type:"structure"` @@ -35697,6 +47528,78 @@ func (s Volume) GoString() string { return s.String() } +// SetAttachments sets the Attachments field's value. +func (s *Volume) SetAttachments(v []*VolumeAttachment) *Volume { + s.Attachments = v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Volume) SetAvailabilityZone(v string) *Volume { + s.AvailabilityZone = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *Volume) SetCreateTime(v time.Time) *Volume { + s.CreateTime = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Volume) SetEncrypted(v bool) *Volume { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *Volume) SetIops(v int64) *Volume { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Volume) SetKmsKeyId(v string) *Volume { + s.KmsKeyId = &v + return s +} + +// SetSize sets the Size field's value. +func (s *Volume) SetSize(v int64) *Volume { + s.Size = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *Volume) SetSnapshotId(v string) *Volume { + s.SnapshotId = &v + return s +} + +// SetState sets the State field's value. +func (s *Volume) SetState(v string) *Volume { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Volume) SetTags(v []*Tag) *Volume { + s.Tags = v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *Volume) SetVolumeId(v string) *Volume { + s.VolumeId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *Volume) SetVolumeType(v string) *Volume { + s.VolumeType = &v + return s +} + // Describes volume attachment details. type VolumeAttachment struct { _ struct{} `type:"structure"` @@ -35730,6 +47633,42 @@ func (s VolumeAttachment) GoString() string { return s.String() } +// SetAttachTime sets the AttachTime field's value. +func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment { + s.AttachTime = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *VolumeAttachment) SetDeleteOnTermination(v bool) *VolumeAttachment { + s.DeleteOnTermination = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *VolumeAttachment) SetDevice(v string) *VolumeAttachment { + s.Device = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment { + s.InstanceId = &v + return s +} + +// SetState sets the State field's value. +func (s *VolumeAttachment) SetState(v string) *VolumeAttachment { + s.State = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *VolumeAttachment) SetVolumeId(v string) *VolumeAttachment { + s.VolumeId = &v + return s +} + // Describes an EBS volume. type VolumeDetail struct { _ struct{} `type:"structure"` @@ -35763,6 +47702,12 @@ func (s *VolumeDetail) Validate() error { return nil } +// SetSize sets the Size field's value. +func (s *VolumeDetail) SetSize(v int64) *VolumeDetail { + s.Size = &v + return s +} + // Describes a volume status operation code. type VolumeStatusAction struct { _ struct{} `type:"structure"` @@ -35790,6 +47735,30 @@ func (s VolumeStatusAction) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *VolumeStatusAction) SetCode(v string) *VolumeStatusAction { + s.Code = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *VolumeStatusAction) SetDescription(v string) *VolumeStatusAction { + s.Description = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *VolumeStatusAction) SetEventId(v string) *VolumeStatusAction { + s.EventId = &v + return s +} + +// SetEventType sets the EventType field's value. +func (s *VolumeStatusAction) SetEventType(v string) *VolumeStatusAction { + s.EventType = &v + return s +} + // Describes a volume status. type VolumeStatusDetails struct { _ struct{} `type:"structure"` @@ -35811,6 +47780,18 @@ func (s VolumeStatusDetails) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *VolumeStatusDetails) SetName(v string) *VolumeStatusDetails { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *VolumeStatusDetails) SetStatus(v string) *VolumeStatusDetails { + s.Status = &v + return s +} + // Describes a volume status event. type VolumeStatusEvent struct { _ struct{} `type:"structure"` @@ -35841,6 +47822,36 @@ func (s VolumeStatusEvent) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *VolumeStatusEvent) SetDescription(v string) *VolumeStatusEvent { + s.Description = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *VolumeStatusEvent) SetEventId(v string) *VolumeStatusEvent { + s.EventId = &v + return s +} + +// SetEventType sets the EventType field's value. +func (s *VolumeStatusEvent) SetEventType(v string) *VolumeStatusEvent { + s.EventType = &v + return s +} + +// SetNotAfter sets the NotAfter field's value. +func (s *VolumeStatusEvent) SetNotAfter(v time.Time) *VolumeStatusEvent { + s.NotAfter = &v + return s +} + +// SetNotBefore sets the NotBefore field's value. +func (s *VolumeStatusEvent) SetNotBefore(v time.Time) *VolumeStatusEvent { + s.NotBefore = &v + return s +} + // Describes the status of a volume. type VolumeStatusInfo struct { _ struct{} `type:"structure"` @@ -35862,6 +47873,18 @@ func (s VolumeStatusInfo) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *VolumeStatusInfo) SetDetails(v []*VolumeStatusDetails) *VolumeStatusInfo { + s.Details = v + return s +} + +// SetStatus sets the Status field's value. +func (s *VolumeStatusInfo) SetStatus(v string) *VolumeStatusInfo { + s.Status = &v + return s +} + // Describes the volume status. type VolumeStatusItem struct { _ struct{} `type:"structure"` @@ -35892,6 +47915,36 @@ func (s VolumeStatusItem) GoString() string { return s.String() } +// SetActions sets the Actions field's value. +func (s *VolumeStatusItem) SetActions(v []*VolumeStatusAction) *VolumeStatusItem { + s.Actions = v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *VolumeStatusItem) SetAvailabilityZone(v string) *VolumeStatusItem { + s.AvailabilityZone = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *VolumeStatusItem) SetEvents(v []*VolumeStatusEvent) *VolumeStatusItem { + s.Events = v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *VolumeStatusItem) SetVolumeId(v string) *VolumeStatusItem { + s.VolumeId = &v + return s +} + +// SetVolumeStatus sets the VolumeStatus field's value. +func (s *VolumeStatusItem) SetVolumeStatus(v *VolumeStatusInfo) *VolumeStatusItem { + s.VolumeStatus = v + return s +} + // Describes a VPC. type Vpc struct { _ struct{} `type:"structure"` @@ -35929,6 +47982,48 @@ func (s Vpc) GoString() string { return s.String() } +// SetCidrBlock sets the CidrBlock field's value. +func (s *Vpc) SetCidrBlock(v string) *Vpc { + s.CidrBlock = &v + return s +} + +// SetDhcpOptionsId sets the DhcpOptionsId field's value. +func (s *Vpc) SetDhcpOptionsId(v string) *Vpc { + s.DhcpOptionsId = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *Vpc) SetInstanceTenancy(v string) *Vpc { + s.InstanceTenancy = &v + return s +} + +// SetIsDefault sets the IsDefault field's value. +func (s *Vpc) SetIsDefault(v bool) *Vpc { + s.IsDefault = &v + return s +} + +// SetState sets the State field's value. +func (s *Vpc) SetState(v string) *Vpc { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Vpc) SetTags(v []*Tag) *Vpc { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Vpc) SetVpcId(v string) *Vpc { + s.VpcId = &v + return s +} + // Describes an attachment between a virtual private gateway and a VPC. type VpcAttachment struct { _ struct{} `type:"structure"` @@ -35950,6 +48045,18 @@ func (s VpcAttachment) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *VpcAttachment) SetState(v string) *VpcAttachment { + s.State = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcAttachment) SetVpcId(v string) *VpcAttachment { + s.VpcId = &v + return s +} + // Describes whether a VPC is enabled for ClassicLink. type VpcClassicLink struct { _ struct{} `type:"structure"` @@ -35974,6 +48081,24 @@ func (s VpcClassicLink) GoString() string { return s.String() } +// SetClassicLinkEnabled sets the ClassicLinkEnabled field's value. +func (s *VpcClassicLink) SetClassicLinkEnabled(v bool) *VpcClassicLink { + s.ClassicLinkEnabled = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *VpcClassicLink) SetTags(v []*Tag) *VpcClassicLink { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcClassicLink) SetVpcId(v string) *VpcClassicLink { + s.VpcId = &v + return s +} + // Describes a VPC endpoint. type VpcEndpoint struct { _ struct{} `type:"structure"` @@ -36010,6 +48135,48 @@ func (s VpcEndpoint) GoString() string { return s.String() } +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *VpcEndpoint) SetCreationTimestamp(v time.Time) *VpcEndpoint { + s.CreationTimestamp = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *VpcEndpoint) SetPolicyDocument(v string) *VpcEndpoint { + s.PolicyDocument = &v + return s +} + +// SetRouteTableIds sets the RouteTableIds field's value. +func (s *VpcEndpoint) SetRouteTableIds(v []*string) *VpcEndpoint { + s.RouteTableIds = v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *VpcEndpoint) SetServiceName(v string) *VpcEndpoint { + s.ServiceName = &v + return s +} + +// SetState sets the State field's value. +func (s *VpcEndpoint) SetState(v string) *VpcEndpoint { + s.State = &v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint { + s.VpcEndpointId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint { + s.VpcId = &v + return s +} + // Describes a VPC peering connection. type VpcPeeringConnection struct { _ struct{} `type:"structure"` @@ -36045,6 +48212,42 @@ func (s VpcPeeringConnection) GoString() string { return s.String() } +// SetAccepterVpcInfo sets the AccepterVpcInfo field's value. +func (s *VpcPeeringConnection) SetAccepterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection { + s.AccepterVpcInfo = v + return s +} + +// SetExpirationTime sets the ExpirationTime field's value. +func (s *VpcPeeringConnection) SetExpirationTime(v time.Time) *VpcPeeringConnection { + s.ExpirationTime = &v + return s +} + +// SetRequesterVpcInfo sets the RequesterVpcInfo field's value. +func (s *VpcPeeringConnection) SetRequesterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection { + s.RequesterVpcInfo = v + return s +} + +// SetStatus sets the Status field's value. +func (s *VpcPeeringConnection) SetStatus(v *VpcPeeringConnectionStateReason) *VpcPeeringConnection { + s.Status = v + return s +} + +// SetTags sets the Tags field's value. +func (s *VpcPeeringConnection) SetTags(v []*Tag) *VpcPeeringConnection { + s.Tags = v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *VpcPeeringConnection) SetVpcPeeringConnectionId(v string) *VpcPeeringConnection { + s.VpcPeeringConnectionId = &v + return s +} + // Describes the VPC peering connection options. type VpcPeeringConnectionOptionsDescription struct { _ struct{} `type:"structure"` @@ -36072,6 +48275,24 @@ func (s VpcPeeringConnectionOptionsDescription) GoString() string { return s.String() } +// SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value. +func (s *VpcPeeringConnectionOptionsDescription) SetAllowDnsResolutionFromRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription { + s.AllowDnsResolutionFromRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value. +func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription { + s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value. +func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *VpcPeeringConnectionOptionsDescription { + s.AllowEgressFromLocalVpcToRemoteClassicLink = &v + return s +} + // Describes the status of a VPC peering connection. type VpcPeeringConnectionStateReason struct { _ struct{} `type:"structure"` @@ -36093,6 +48314,18 @@ func (s VpcPeeringConnectionStateReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *VpcPeeringConnectionStateReason) SetCode(v string) *VpcPeeringConnectionStateReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *VpcPeeringConnectionStateReason) SetMessage(v string) *VpcPeeringConnectionStateReason { + s.Message = &v + return s +} + // Describes a VPC in a VPC peering connection. type VpcPeeringConnectionVpcInfo struct { _ struct{} `type:"structure"` @@ -36121,6 +48354,30 @@ func (s VpcPeeringConnectionVpcInfo) GoString() string { return s.String() } +// SetCidrBlock sets the CidrBlock field's value. +func (s *VpcPeeringConnectionVpcInfo) SetCidrBlock(v string) *VpcPeeringConnectionVpcInfo { + s.CidrBlock = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *VpcPeeringConnectionVpcInfo) SetOwnerId(v string) *VpcPeeringConnectionVpcInfo { + s.OwnerId = &v + return s +} + +// SetPeeringOptions sets the PeeringOptions field's value. +func (s *VpcPeeringConnectionVpcInfo) SetPeeringOptions(v *VpcPeeringConnectionOptionsDescription) *VpcPeeringConnectionVpcInfo { + s.PeeringOptions = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcPeeringConnectionVpcInfo) SetVpcId(v string) *VpcPeeringConnectionVpcInfo { + s.VpcId = &v + return s +} + // Describes a VPN connection. type VpnConnection struct { _ struct{} `type:"structure"` @@ -36169,6 +48426,66 @@ func (s VpnConnection) GoString() string { return s.String() } +// SetCustomerGatewayConfiguration sets the CustomerGatewayConfiguration field's value. +func (s *VpnConnection) SetCustomerGatewayConfiguration(v string) *VpnConnection { + s.CustomerGatewayConfiguration = &v + return s +} + +// SetCustomerGatewayId sets the CustomerGatewayId field's value. +func (s *VpnConnection) SetCustomerGatewayId(v string) *VpnConnection { + s.CustomerGatewayId = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *VpnConnection) SetOptions(v *VpnConnectionOptions) *VpnConnection { + s.Options = v + return s +} + +// SetRoutes sets the Routes field's value. +func (s *VpnConnection) SetRoutes(v []*VpnStaticRoute) *VpnConnection { + s.Routes = v + return s +} + +// SetState sets the State field's value. +func (s *VpnConnection) SetState(v string) *VpnConnection { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *VpnConnection) SetTags(v []*Tag) *VpnConnection { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *VpnConnection) SetType(v string) *VpnConnection { + s.Type = &v + return s +} + +// SetVgwTelemetry sets the VgwTelemetry field's value. +func (s *VpnConnection) SetVgwTelemetry(v []*VgwTelemetry) *VpnConnection { + s.VgwTelemetry = v + return s +} + +// SetVpnConnectionId sets the VpnConnectionId field's value. +func (s *VpnConnection) SetVpnConnectionId(v string) *VpnConnection { + s.VpnConnectionId = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *VpnConnection) SetVpnGatewayId(v string) *VpnConnection { + s.VpnGatewayId = &v + return s +} + // Describes VPN connection options. type VpnConnectionOptions struct { _ struct{} `type:"structure"` @@ -36188,6 +48505,12 @@ func (s VpnConnectionOptions) GoString() string { return s.String() } +// SetStaticRoutesOnly sets the StaticRoutesOnly field's value. +func (s *VpnConnectionOptions) SetStaticRoutesOnly(v bool) *VpnConnectionOptions { + s.StaticRoutesOnly = &v + return s +} + // Describes VPN connection options. type VpnConnectionOptionsSpecification struct { _ struct{} `type:"structure"` @@ -36207,6 +48530,12 @@ func (s VpnConnectionOptionsSpecification) GoString() string { return s.String() } +// SetStaticRoutesOnly sets the StaticRoutesOnly field's value. +func (s *VpnConnectionOptionsSpecification) SetStaticRoutesOnly(v bool) *VpnConnectionOptionsSpecification { + s.StaticRoutesOnly = &v + return s +} + // Describes a virtual private gateway. type VpnGateway struct { _ struct{} `type:"structure"` @@ -36241,6 +48570,42 @@ func (s VpnGateway) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *VpnGateway) SetAvailabilityZone(v string) *VpnGateway { + s.AvailabilityZone = &v + return s +} + +// SetState sets the State field's value. +func (s *VpnGateway) SetState(v string) *VpnGateway { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *VpnGateway) SetTags(v []*Tag) *VpnGateway { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *VpnGateway) SetType(v string) *VpnGateway { + s.Type = &v + return s +} + +// SetVpcAttachments sets the VpcAttachments field's value. +func (s *VpnGateway) SetVpcAttachments(v []*VpcAttachment) *VpnGateway { + s.VpcAttachments = v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *VpnGateway) SetVpnGatewayId(v string) *VpnGateway { + s.VpnGatewayId = &v + return s +} + // Describes a static route for a VPN connection. type VpnStaticRoute struct { _ struct{} `type:"structure"` @@ -36265,6 +48630,24 @@ func (s VpnStaticRoute) GoString() string { return s.String() } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *VpnStaticRoute) SetDestinationCidrBlock(v string) *VpnStaticRoute { + s.DestinationCidrBlock = &v + return s +} + +// SetSource sets the Source field's value. +func (s *VpnStaticRoute) SetSource(v string) *VpnStaticRoute { + s.Source = &v + return s +} + +// SetState sets the State field's value. +func (s *VpnStaticRoute) SetState(v string) *VpnStaticRoute { + s.State = &v + return s +} + const ( // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value AccountAttributeNameSupportedPlatforms = "supported-platforms" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go index 1ef1aa9ae..58ddb252d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go @@ -58,8 +58,8 @@ func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabil // Check the availability of multiple image layers in a specified registry and // repository. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers. Use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -281,8 +281,8 @@ func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req * // name, and upload ID, has completed. You can optionally provide a sha256 digest // of the image layer for data validation purposes. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers. Use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -587,6 +587,12 @@ func (c *ECR) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re Name: opDescribeImages, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { @@ -604,7 +610,7 @@ func (c *ECR) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // Returns metadata about the images in a repository, including image size and // creation date. // -// Beginning with Docker version 1.9, the Docker client compresses image layers +// Beginning with Docker version 1.9, the Docker client compresses image layers // before pushing them to a V2 Docker registry. The output of the docker images // command shows the uncompressed image size, so it may return a larger image // size than the image sizes returned by DescribeImages. @@ -637,6 +643,31 @@ func (c *ECR) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, return out, err } +// DescribeImagesPages iterates over the pages of a DescribeImages operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeImages method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeImages operation. +// pageNum := 0 +// err := client.DescribeImagesPages(params, +// func(page *DescribeImagesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ECR) DescribeImagesPages(input *DescribeImagesInput, fn func(p *DescribeImagesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeImagesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeImagesOutput), lastPage) + }) +} + const opDescribeRepositories = "DescribeRepositories" // DescribeRepositoriesRequest generates a "aws/request.Request" representing the @@ -668,6 +699,12 @@ func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req Name: opDescribeRepositories, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { @@ -709,6 +746,31 @@ func (c *ECR) DescribeRepositories(input *DescribeRepositoriesInput) (*DescribeR return out, err } +// DescribeRepositoriesPages iterates over the pages of a DescribeRepositories operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeRepositories method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeRepositories operation. +// pageNum := 0 +// err := client.DescribeRepositoriesPages(params, +// func(page *DescribeRepositoriesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ECR) DescribeRepositoriesPages(input *DescribeRepositoriesInput, fn func(p *DescribeRepositoriesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeRepositoriesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeRepositoriesOutput), lastPage) + }) +} + const opGetAuthorizationToken = "GetAuthorizationToken" // GetAuthorizationTokenRequest generates a "aws/request.Request" representing the @@ -758,10 +820,10 @@ func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (r // command allows you to use the docker CLI to push and pull images with Amazon // ECR. If you do not specify a registry, the default registry is assumed. // -// The authorizationToken returned for each registry specified is a base64 -// encoded string that can be decoded and used in a docker login command to -// authenticate to a registry. The AWS CLI offers an aws ecr get-login command -// that simplifies the login process. +// The authorizationToken returned for each registry specified is a base64 encoded +// string that can be decoded and used in a docker login command to authenticate +// to a registry. The AWS CLI offers an aws ecr get-login command that simplifies +// the login process. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -832,8 +894,8 @@ func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) // Retrieves the pre-signed Amazon S3 download URL corresponding to an image // layer. You can only get URLs for image layers that are referenced in an image. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers. Use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -991,8 +1053,8 @@ func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req * // // Notify Amazon ECR that you intend to upload an image layer. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers. Use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1050,6 +1112,12 @@ func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, o Name: opListImages, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { @@ -1097,6 +1165,31 @@ func (c *ECR) ListImages(input *ListImagesInput) (*ListImagesOutput, error) { return out, err } +// ListImagesPages iterates over the pages of a ListImages operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListImages method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListImages operation. +// pageNum := 0 +// err := client.ListImagesPages(params, +// func(page *ListImagesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ECR) ListImagesPages(input *ListImagesInput, fn func(p *ListImagesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListImagesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListImagesOutput), lastPage) + }) +} + const opPutImage = "PutImage" // PutImageRequest generates a "aws/request.Request" representing the @@ -1144,8 +1237,8 @@ func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, outpu // // Creates or updates the image manifest associated with an image. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers. Use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1305,8 +1398,8 @@ func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request. // // Uploads an image layer part to Amazon ECR. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers. Use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1376,6 +1469,24 @@ func (s AuthorizationData) GoString() string { return s.String() } +// SetAuthorizationToken sets the AuthorizationToken field's value. +func (s *AuthorizationData) SetAuthorizationToken(v string) *AuthorizationData { + s.AuthorizationToken = &v + return s +} + +// SetExpiresAt sets the ExpiresAt field's value. +func (s *AuthorizationData) SetExpiresAt(v time.Time) *AuthorizationData { + s.ExpiresAt = &v + return s +} + +// SetProxyEndpoint sets the ProxyEndpoint field's value. +func (s *AuthorizationData) SetProxyEndpoint(v string) *AuthorizationData { + s.ProxyEndpoint = &v + return s +} + type BatchCheckLayerAvailabilityInput struct { _ struct{} `type:"structure"` @@ -1426,6 +1537,24 @@ func (s *BatchCheckLayerAvailabilityInput) Validate() error { return nil } +// SetLayerDigests sets the LayerDigests field's value. +func (s *BatchCheckLayerAvailabilityInput) SetLayerDigests(v []*string) *BatchCheckLayerAvailabilityInput { + s.LayerDigests = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *BatchCheckLayerAvailabilityInput) SetRegistryId(v string) *BatchCheckLayerAvailabilityInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *BatchCheckLayerAvailabilityInput) SetRepositoryName(v string) *BatchCheckLayerAvailabilityInput { + s.RepositoryName = &v + return s +} + type BatchCheckLayerAvailabilityOutput struct { _ struct{} `type:"structure"` @@ -1447,6 +1576,18 @@ func (s BatchCheckLayerAvailabilityOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *BatchCheckLayerAvailabilityOutput) SetFailures(v []*LayerFailure) *BatchCheckLayerAvailabilityOutput { + s.Failures = v + return s +} + +// SetLayers sets the Layers field's value. +func (s *BatchCheckLayerAvailabilityOutput) SetLayers(v []*Layer) *BatchCheckLayerAvailabilityOutput { + s.Layers = v + return s +} + // Deletes specified images within a specified repository. Images are specified // with either the imageTag or imageDigest. type BatchDeleteImageInput struct { @@ -1500,6 +1641,24 @@ func (s *BatchDeleteImageInput) Validate() error { return nil } +// SetImageIds sets the ImageIds field's value. +func (s *BatchDeleteImageInput) SetImageIds(v []*ImageIdentifier) *BatchDeleteImageInput { + s.ImageIds = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *BatchDeleteImageInput) SetRegistryId(v string) *BatchDeleteImageInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *BatchDeleteImageInput) SetRepositoryName(v string) *BatchDeleteImageInput { + s.RepositoryName = &v + return s +} + type BatchDeleteImageOutput struct { _ struct{} `type:"structure"` @@ -1520,6 +1679,18 @@ func (s BatchDeleteImageOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *BatchDeleteImageOutput) SetFailures(v []*ImageFailure) *BatchDeleteImageOutput { + s.Failures = v + return s +} + +// SetImageIds sets the ImageIds field's value. +func (s *BatchDeleteImageOutput) SetImageIds(v []*ImageIdentifier) *BatchDeleteImageOutput { + s.ImageIds = v + return s +} + type BatchGetImageInput struct { _ struct{} `type:"structure"` @@ -1571,6 +1742,24 @@ func (s *BatchGetImageInput) Validate() error { return nil } +// SetImageIds sets the ImageIds field's value. +func (s *BatchGetImageInput) SetImageIds(v []*ImageIdentifier) *BatchGetImageInput { + s.ImageIds = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *BatchGetImageInput) SetRegistryId(v string) *BatchGetImageInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *BatchGetImageInput) SetRepositoryName(v string) *BatchGetImageInput { + s.RepositoryName = &v + return s +} + type BatchGetImageOutput struct { _ struct{} `type:"structure"` @@ -1591,6 +1780,18 @@ func (s BatchGetImageOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *BatchGetImageOutput) SetFailures(v []*ImageFailure) *BatchGetImageOutput { + s.Failures = v + return s +} + +// SetImages sets the Images field's value. +func (s *BatchGetImageOutput) SetImages(v []*Image) *BatchGetImageOutput { + s.Images = v + return s +} + type CompleteLayerUploadInput struct { _ struct{} `type:"structure"` @@ -1650,6 +1851,30 @@ func (s *CompleteLayerUploadInput) Validate() error { return nil } +// SetLayerDigests sets the LayerDigests field's value. +func (s *CompleteLayerUploadInput) SetLayerDigests(v []*string) *CompleteLayerUploadInput { + s.LayerDigests = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *CompleteLayerUploadInput) SetRegistryId(v string) *CompleteLayerUploadInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CompleteLayerUploadInput) SetRepositoryName(v string) *CompleteLayerUploadInput { + s.RepositoryName = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CompleteLayerUploadInput) SetUploadId(v string) *CompleteLayerUploadInput { + s.UploadId = &v + return s +} + type CompleteLayerUploadOutput struct { _ struct{} `type:"structure"` @@ -1676,6 +1901,30 @@ func (s CompleteLayerUploadOutput) GoString() string { return s.String() } +// SetLayerDigest sets the LayerDigest field's value. +func (s *CompleteLayerUploadOutput) SetLayerDigest(v string) *CompleteLayerUploadOutput { + s.LayerDigest = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *CompleteLayerUploadOutput) SetRegistryId(v string) *CompleteLayerUploadOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CompleteLayerUploadOutput) SetRepositoryName(v string) *CompleteLayerUploadOutput { + s.RepositoryName = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CompleteLayerUploadOutput) SetUploadId(v string) *CompleteLayerUploadOutput { + s.UploadId = &v + return s +} + type CreateRepositoryInput struct { _ struct{} `type:"structure"` @@ -1713,6 +1962,12 @@ func (s *CreateRepositoryInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput { + s.RepositoryName = &v + return s +} + type CreateRepositoryOutput struct { _ struct{} `type:"structure"` @@ -1730,6 +1985,12 @@ func (s CreateRepositoryOutput) GoString() string { return s.String() } +// SetRepository sets the Repository field's value. +func (s *CreateRepositoryOutput) SetRepository(v *Repository) *CreateRepositoryOutput { + s.Repository = v + return s +} + type DeleteRepositoryInput struct { _ struct{} `type:"structure"` @@ -1772,6 +2033,24 @@ func (s *DeleteRepositoryInput) Validate() error { return nil } +// SetForce sets the Force field's value. +func (s *DeleteRepositoryInput) SetForce(v bool) *DeleteRepositoryInput { + s.Force = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *DeleteRepositoryInput) SetRegistryId(v string) *DeleteRepositoryInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput { + s.RepositoryName = &v + return s +} + type DeleteRepositoryOutput struct { _ struct{} `type:"structure"` @@ -1789,6 +2068,12 @@ func (s DeleteRepositoryOutput) GoString() string { return s.String() } +// SetRepository sets the Repository field's value. +func (s *DeleteRepositoryOutput) SetRepository(v *Repository) *DeleteRepositoryOutput { + s.Repository = v + return s +} + type DeleteRepositoryPolicyInput struct { _ struct{} `type:"structure"` @@ -1830,6 +2115,18 @@ func (s *DeleteRepositoryPolicyInput) Validate() error { return nil } +// SetRegistryId sets the RegistryId field's value. +func (s *DeleteRepositoryPolicyInput) SetRegistryId(v string) *DeleteRepositoryPolicyInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryPolicyInput) SetRepositoryName(v string) *DeleteRepositoryPolicyInput { + s.RepositoryName = &v + return s +} + type DeleteRepositoryPolicyOutput struct { _ struct{} `type:"structure"` @@ -1853,6 +2150,24 @@ func (s DeleteRepositoryPolicyOutput) GoString() string { return s.String() } +// SetPolicyText sets the PolicyText field's value. +func (s *DeleteRepositoryPolicyOutput) SetPolicyText(v string) *DeleteRepositoryPolicyOutput { + s.PolicyText = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *DeleteRepositoryPolicyOutput) SetRegistryId(v string) *DeleteRepositoryPolicyOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryPolicyOutput) SetRepositoryName(v string) *DeleteRepositoryPolicyOutput { + s.RepositoryName = &v + return s +} + // An object representing a filter on a DescribeImages operation. type DescribeImagesFilter struct { _ struct{} `type:"structure"` @@ -1872,6 +2187,12 @@ func (s DescribeImagesFilter) GoString() string { return s.String() } +// SetTagStatus sets the TagStatus field's value. +func (s *DescribeImagesFilter) SetTagStatus(v string) *DescribeImagesFilter { + s.TagStatus = &v + return s +} + type DescribeImagesInput struct { _ struct{} `type:"structure"` @@ -1940,6 +2261,42 @@ func (s *DescribeImagesInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *DescribeImagesInput) SetFilter(v *DescribeImagesFilter) *DescribeImagesInput { + s.Filter = v + return s +} + +// SetImageIds sets the ImageIds field's value. +func (s *DescribeImagesInput) SetImageIds(v []*ImageIdentifier) *DescribeImagesInput { + s.ImageIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeImagesInput) SetMaxResults(v int64) *DescribeImagesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImagesInput) SetNextToken(v string) *DescribeImagesInput { + s.NextToken = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *DescribeImagesInput) SetRegistryId(v string) *DescribeImagesInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DescribeImagesInput) SetRepositoryName(v string) *DescribeImagesInput { + s.RepositoryName = &v + return s +} + type DescribeImagesOutput struct { _ struct{} `type:"structure"` @@ -1963,6 +2320,18 @@ func (s DescribeImagesOutput) GoString() string { return s.String() } +// SetImageDetails sets the ImageDetails field's value. +func (s *DescribeImagesOutput) SetImageDetails(v []*ImageDetail) *DescribeImagesOutput { + s.ImageDetails = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImagesOutput) SetNextToken(v string) *DescribeImagesOutput { + s.NextToken = &v + return s +} + type DescribeRepositoriesInput struct { _ struct{} `type:"structure"` @@ -1981,8 +2350,8 @@ type DescribeRepositoriesInput struct { // returned the nextToken value. This value is null when there are no more results // to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The AWS account ID associated with the registry that contains the repositories @@ -2021,6 +2390,30 @@ func (s *DescribeRepositoriesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeRepositoriesInput) SetMaxResults(v int64) *DescribeRepositoriesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeRepositoriesInput) SetNextToken(v string) *DescribeRepositoriesInput { + s.NextToken = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *DescribeRepositoriesInput) SetRegistryId(v string) *DescribeRepositoriesInput { + s.RegistryId = &v + return s +} + +// SetRepositoryNames sets the RepositoryNames field's value. +func (s *DescribeRepositoriesInput) SetRepositoryNames(v []*string) *DescribeRepositoriesInput { + s.RepositoryNames = v + return s +} + type DescribeRepositoriesOutput struct { _ struct{} `type:"structure"` @@ -2044,6 +2437,18 @@ func (s DescribeRepositoriesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeRepositoriesOutput) SetNextToken(v string) *DescribeRepositoriesOutput { + s.NextToken = &v + return s +} + +// SetRepositories sets the Repositories field's value. +func (s *DescribeRepositoriesOutput) SetRepositories(v []*Repository) *DescribeRepositoriesOutput { + s.Repositories = v + return s +} + type GetAuthorizationTokenInput struct { _ struct{} `type:"structure"` @@ -2076,6 +2481,12 @@ func (s *GetAuthorizationTokenInput) Validate() error { return nil } +// SetRegistryIds sets the RegistryIds field's value. +func (s *GetAuthorizationTokenInput) SetRegistryIds(v []*string) *GetAuthorizationTokenInput { + s.RegistryIds = v + return s +} + type GetAuthorizationTokenOutput struct { _ struct{} `type:"structure"` @@ -2094,6 +2505,12 @@ func (s GetAuthorizationTokenOutput) GoString() string { return s.String() } +// SetAuthorizationData sets the AuthorizationData field's value. +func (s *GetAuthorizationTokenOutput) SetAuthorizationData(v []*AuthorizationData) *GetAuthorizationTokenOutput { + s.AuthorizationData = v + return s +} + type GetDownloadUrlForLayerInput struct { _ struct{} `type:"structure"` @@ -2141,6 +2558,24 @@ func (s *GetDownloadUrlForLayerInput) Validate() error { return nil } +// SetLayerDigest sets the LayerDigest field's value. +func (s *GetDownloadUrlForLayerInput) SetLayerDigest(v string) *GetDownloadUrlForLayerInput { + s.LayerDigest = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *GetDownloadUrlForLayerInput) SetRegistryId(v string) *GetDownloadUrlForLayerInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetDownloadUrlForLayerInput) SetRepositoryName(v string) *GetDownloadUrlForLayerInput { + s.RepositoryName = &v + return s +} + type GetDownloadUrlForLayerOutput struct { _ struct{} `type:"structure"` @@ -2161,6 +2596,18 @@ func (s GetDownloadUrlForLayerOutput) GoString() string { return s.String() } +// SetDownloadUrl sets the DownloadUrl field's value. +func (s *GetDownloadUrlForLayerOutput) SetDownloadUrl(v string) *GetDownloadUrlForLayerOutput { + s.DownloadUrl = &v + return s +} + +// SetLayerDigest sets the LayerDigest field's value. +func (s *GetDownloadUrlForLayerOutput) SetLayerDigest(v string) *GetDownloadUrlForLayerOutput { + s.LayerDigest = &v + return s +} + type GetRepositoryPolicyInput struct { _ struct{} `type:"structure"` @@ -2200,6 +2647,18 @@ func (s *GetRepositoryPolicyInput) Validate() error { return nil } +// SetRegistryId sets the RegistryId field's value. +func (s *GetRepositoryPolicyInput) SetRegistryId(v string) *GetRepositoryPolicyInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryPolicyInput) SetRepositoryName(v string) *GetRepositoryPolicyInput { + s.RepositoryName = &v + return s +} + type GetRepositoryPolicyOutput struct { _ struct{} `type:"structure"` @@ -2223,6 +2682,24 @@ func (s GetRepositoryPolicyOutput) GoString() string { return s.String() } +// SetPolicyText sets the PolicyText field's value. +func (s *GetRepositoryPolicyOutput) SetPolicyText(v string) *GetRepositoryPolicyOutput { + s.PolicyText = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *GetRepositoryPolicyOutput) SetRegistryId(v string) *GetRepositoryPolicyOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryPolicyOutput) SetRepositoryName(v string) *GetRepositoryPolicyOutput { + s.RepositoryName = &v + return s +} + // An object representing an Amazon ECR image. type Image struct { _ struct{} `type:"structure"` @@ -2250,6 +2727,30 @@ func (s Image) GoString() string { return s.String() } +// SetImageId sets the ImageId field's value. +func (s *Image) SetImageId(v *ImageIdentifier) *Image { + s.ImageId = v + return s +} + +// SetImageManifest sets the ImageManifest field's value. +func (s *Image) SetImageManifest(v string) *Image { + s.ImageManifest = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *Image) SetRegistryId(v string) *Image { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *Image) SetRepositoryName(v string) *Image { + s.RepositoryName = &v + return s +} + // An object that describes an image returned by a DescribeImages operation. type ImageDetail struct { _ struct{} `type:"structure"` @@ -2263,7 +2764,7 @@ type ImageDetail struct { // The size, in bytes, of the image in the repository. // - // Beginning with Docker version 1.9, the Docker client compresses image layers + // Beginning with Docker version 1.9, the Docker client compresses image layers // before pushing them to a V2 Docker registry. The output of the docker images // command shows the uncompressed image size, so it may return a larger image // size than the image sizes returned by DescribeImages. @@ -2289,6 +2790,42 @@ func (s ImageDetail) GoString() string { return s.String() } +// SetImageDigest sets the ImageDigest field's value. +func (s *ImageDetail) SetImageDigest(v string) *ImageDetail { + s.ImageDigest = &v + return s +} + +// SetImagePushedAt sets the ImagePushedAt field's value. +func (s *ImageDetail) SetImagePushedAt(v time.Time) *ImageDetail { + s.ImagePushedAt = &v + return s +} + +// SetImageSizeInBytes sets the ImageSizeInBytes field's value. +func (s *ImageDetail) SetImageSizeInBytes(v int64) *ImageDetail { + s.ImageSizeInBytes = &v + return s +} + +// SetImageTags sets the ImageTags field's value. +func (s *ImageDetail) SetImageTags(v []*string) *ImageDetail { + s.ImageTags = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *ImageDetail) SetRegistryId(v string) *ImageDetail { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *ImageDetail) SetRepositoryName(v string) *ImageDetail { + s.RepositoryName = &v + return s +} + // An object representing an Amazon ECR image failure. type ImageFailure struct { _ struct{} `type:"structure"` @@ -2313,6 +2850,24 @@ func (s ImageFailure) GoString() string { return s.String() } +// SetFailureCode sets the FailureCode field's value. +func (s *ImageFailure) SetFailureCode(v string) *ImageFailure { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *ImageFailure) SetFailureReason(v string) *ImageFailure { + s.FailureReason = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ImageFailure) SetImageId(v *ImageIdentifier) *ImageFailure { + s.ImageId = v + return s +} + // An object with identifying information for an Amazon ECR image. type ImageIdentifier struct { _ struct{} `type:"structure"` @@ -2334,6 +2889,18 @@ func (s ImageIdentifier) GoString() string { return s.String() } +// SetImageDigest sets the ImageDigest field's value. +func (s *ImageIdentifier) SetImageDigest(v string) *ImageIdentifier { + s.ImageDigest = &v + return s +} + +// SetImageTag sets the ImageTag field's value. +func (s *ImageIdentifier) SetImageTag(v string) *ImageIdentifier { + s.ImageTag = &v + return s +} + type InitiateLayerUploadInput struct { _ struct{} `type:"structure"` @@ -2373,6 +2940,18 @@ func (s *InitiateLayerUploadInput) Validate() error { return nil } +// SetRegistryId sets the RegistryId field's value. +func (s *InitiateLayerUploadInput) SetRegistryId(v string) *InitiateLayerUploadInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *InitiateLayerUploadInput) SetRepositoryName(v string) *InitiateLayerUploadInput { + s.RepositoryName = &v + return s +} + type InitiateLayerUploadOutput struct { _ struct{} `type:"structure"` @@ -2395,6 +2974,18 @@ func (s InitiateLayerUploadOutput) GoString() string { return s.String() } +// SetPartSize sets the PartSize field's value. +func (s *InitiateLayerUploadOutput) SetPartSize(v int64) *InitiateLayerUploadOutput { + s.PartSize = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *InitiateLayerUploadOutput) SetUploadId(v string) *InitiateLayerUploadOutput { + s.UploadId = &v + return s +} + // An object representing an Amazon ECR image layer. type Layer struct { _ struct{} `type:"structure"` @@ -2420,6 +3011,24 @@ func (s Layer) GoString() string { return s.String() } +// SetLayerAvailability sets the LayerAvailability field's value. +func (s *Layer) SetLayerAvailability(v string) *Layer { + s.LayerAvailability = &v + return s +} + +// SetLayerDigest sets the LayerDigest field's value. +func (s *Layer) SetLayerDigest(v string) *Layer { + s.LayerDigest = &v + return s +} + +// SetLayerSize sets the LayerSize field's value. +func (s *Layer) SetLayerSize(v int64) *Layer { + s.LayerSize = &v + return s +} + // An object representing an Amazon ECR image layer failure. type LayerFailure struct { _ struct{} `type:"structure"` @@ -2444,6 +3053,24 @@ func (s LayerFailure) GoString() string { return s.String() } +// SetFailureCode sets the FailureCode field's value. +func (s *LayerFailure) SetFailureCode(v string) *LayerFailure { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *LayerFailure) SetFailureReason(v string) *LayerFailure { + s.FailureReason = &v + return s +} + +// SetLayerDigest sets the LayerDigest field's value. +func (s *LayerFailure) SetLayerDigest(v string) *LayerFailure { + s.LayerDigest = &v + return s +} + // An object representing a filter on a ListImages operation. type ListImagesFilter struct { _ struct{} `type:"structure"` @@ -2463,6 +3090,12 @@ func (s ListImagesFilter) GoString() string { return s.String() } +// SetTagStatus sets the TagStatus field's value. +func (s *ListImagesFilter) SetTagStatus(v string) *ListImagesFilter { + s.TagStatus = &v + return s +} + type ListImagesInput struct { _ struct{} `type:"structure"` @@ -2483,8 +3116,8 @@ type ListImagesInput struct { // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The AWS account ID associated with the registry that contains the repository @@ -2527,6 +3160,36 @@ func (s *ListImagesInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *ListImagesInput) SetFilter(v *ListImagesFilter) *ListImagesInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListImagesInput) SetMaxResults(v int64) *ListImagesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListImagesInput) SetNextToken(v string) *ListImagesInput { + s.NextToken = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *ListImagesInput) SetRegistryId(v string) *ListImagesInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *ListImagesInput) SetRepositoryName(v string) *ListImagesInput { + s.RepositoryName = &v + return s +} + type ListImagesOutput struct { _ struct{} `type:"structure"` @@ -2550,6 +3213,18 @@ func (s ListImagesOutput) GoString() string { return s.String() } +// SetImageIds sets the ImageIds field's value. +func (s *ListImagesOutput) SetImageIds(v []*ImageIdentifier) *ListImagesOutput { + s.ImageIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListImagesOutput) SetNextToken(v string) *ListImagesOutput { + s.NextToken = &v + return s +} + type PutImageInput struct { _ struct{} `type:"structure"` @@ -2598,6 +3273,24 @@ func (s *PutImageInput) Validate() error { return nil } +// SetImageManifest sets the ImageManifest field's value. +func (s *PutImageInput) SetImageManifest(v string) *PutImageInput { + s.ImageManifest = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *PutImageInput) SetRegistryId(v string) *PutImageInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *PutImageInput) SetRepositoryName(v string) *PutImageInput { + s.RepositoryName = &v + return s +} + type PutImageOutput struct { _ struct{} `type:"structure"` @@ -2615,6 +3308,12 @@ func (s PutImageOutput) GoString() string { return s.String() } +// SetImage sets the Image field's value. +func (s *PutImageOutput) SetImage(v *Image) *PutImageOutput { + s.Image = v + return s +} + // An object representing a repository. type Repository struct { _ struct{} `type:"structure"` @@ -2650,6 +3349,36 @@ func (s Repository) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *Repository) SetCreatedAt(v time.Time) *Repository { + s.CreatedAt = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *Repository) SetRegistryId(v string) *Repository { + s.RegistryId = &v + return s +} + +// SetRepositoryArn sets the RepositoryArn field's value. +func (s *Repository) SetRepositoryArn(v string) *Repository { + s.RepositoryArn = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *Repository) SetRepositoryName(v string) *Repository { + s.RepositoryName = &v + return s +} + +// SetRepositoryUri sets the RepositoryUri field's value. +func (s *Repository) SetRepositoryUri(v string) *Repository { + s.RepositoryUri = &v + return s +} + type SetRepositoryPolicyInput struct { _ struct{} `type:"structure"` @@ -2702,6 +3431,30 @@ func (s *SetRepositoryPolicyInput) Validate() error { return nil } +// SetForce sets the Force field's value. +func (s *SetRepositoryPolicyInput) SetForce(v bool) *SetRepositoryPolicyInput { + s.Force = &v + return s +} + +// SetPolicyText sets the PolicyText field's value. +func (s *SetRepositoryPolicyInput) SetPolicyText(v string) *SetRepositoryPolicyInput { + s.PolicyText = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *SetRepositoryPolicyInput) SetRegistryId(v string) *SetRepositoryPolicyInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *SetRepositoryPolicyInput) SetRepositoryName(v string) *SetRepositoryPolicyInput { + s.RepositoryName = &v + return s +} + type SetRepositoryPolicyOutput struct { _ struct{} `type:"structure"` @@ -2725,6 +3478,24 @@ func (s SetRepositoryPolicyOutput) GoString() string { return s.String() } +// SetPolicyText sets the PolicyText field's value. +func (s *SetRepositoryPolicyOutput) SetPolicyText(v string) *SetRepositoryPolicyOutput { + s.PolicyText = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *SetRepositoryPolicyOutput) SetRegistryId(v string) *SetRepositoryPolicyOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *SetRepositoryPolicyOutput) SetRepositoryName(v string) *SetRepositoryPolicyOutput { + s.RepositoryName = &v + return s +} + type UploadLayerPartInput struct { _ struct{} `type:"structure"` @@ -2799,6 +3570,42 @@ func (s *UploadLayerPartInput) Validate() error { return nil } +// SetLayerPartBlob sets the LayerPartBlob field's value. +func (s *UploadLayerPartInput) SetLayerPartBlob(v []byte) *UploadLayerPartInput { + s.LayerPartBlob = v + return s +} + +// SetPartFirstByte sets the PartFirstByte field's value. +func (s *UploadLayerPartInput) SetPartFirstByte(v int64) *UploadLayerPartInput { + s.PartFirstByte = &v + return s +} + +// SetPartLastByte sets the PartLastByte field's value. +func (s *UploadLayerPartInput) SetPartLastByte(v int64) *UploadLayerPartInput { + s.PartLastByte = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *UploadLayerPartInput) SetRegistryId(v string) *UploadLayerPartInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UploadLayerPartInput) SetRepositoryName(v string) *UploadLayerPartInput { + s.RepositoryName = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadLayerPartInput) SetUploadId(v string) *UploadLayerPartInput { + s.UploadId = &v + return s +} + type UploadLayerPartOutput struct { _ struct{} `type:"structure"` @@ -2825,6 +3632,30 @@ func (s UploadLayerPartOutput) GoString() string { return s.String() } +// SetLastByteReceived sets the LastByteReceived field's value. +func (s *UploadLayerPartOutput) SetLastByteReceived(v int64) *UploadLayerPartOutput { + s.LastByteReceived = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *UploadLayerPartOutput) SetRegistryId(v string) *UploadLayerPartOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UploadLayerPartOutput) SetRepositoryName(v string) *UploadLayerPartOutput { + s.RepositoryName = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadLayerPartOutput) SetUploadId(v string) *UploadLayerPartOutput { + s.UploadId = &v + return s +} + const ( // ImageFailureCodeInvalidImageDigest is a ImageFailureCode enum value ImageFailureCodeInvalidImageDigest = "InvalidImageDigest" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go index f05c92c72..f088cee54 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go @@ -133,8 +133,8 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // // Runs and maintains a desired number of tasks from a specified task definition. // If the number of tasks running in a service drops below desiredCount, Amazon -// ECS spawns another instantiation of the task in the specified cluster. To -// update an existing service, see UpdateService. +// ECS spawns another copy of the task in the specified cluster. To update an +// existing service, see UpdateService. // // In addition to maintaining the desired count of tasks in your service, you // can optionally run your service behind a load balancer. The load balancer @@ -142,46 +142,50 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // For more information, see Service Load Balancing (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html) // in the Amazon EC2 Container Service Developer Guide. // -// You can optionally specify a deployment configuration for your service. -// During a deployment (which is triggered by changing the task definition of -// a service with an UpdateService operation), the service scheduler uses the -// minimumHealthyPercent and maximumPercent parameters to determine the deployment -// strategy. +// You can optionally specify a deployment configuration for your service. During +// a deployment (which is triggered by changing the task definition or the desired +// count of a service with an UpdateService operation), the service scheduler +// uses the minimumHealthyPercent and maximumPercent parameters to determine +// the deployment strategy. // -// If the minimumHealthyPercent is below 100%, the scheduler can ignore the -// desiredCount temporarily during a deployment. For example, if your service -// has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the -// scheduler to stop two existing tasks before starting two new tasks. Tasks -// for services that do not use a load balancer are considered healthy if they -// are in the RUNNING state; tasks for services that do use a load balancer -// are considered healthy if they are in the RUNNING state and the container -// instance it is hosted on is reported as healthy by the load balancer. The -// default value for minimumHealthyPercent is 50% in the console and 100% for -// the AWS CLI, the AWS SDKs, and the APIs. +// The minimumHealthyPercent represents a lower limit on the number of your +// service's tasks that must remain in the RUNNING state during a deployment, +// as a percentage of the desiredCount (rounded up to the nearest integer). +// This parameter enables you to deploy without using additional cluster capacity. +// For example, if your service has a desiredCount of four tasks and a minimumHealthyPercent +// of 50%, the scheduler may stop two existing tasks to free up cluster capacity +// before starting two new tasks. Tasks for services that do not use a load +// balancer are considered healthy if they are in the RUNNING state; tasks for +// services that do use a load balancer are considered healthy if they are in +// the RUNNING state and the container instance it is hosted on is reported +// as healthy by the load balancer. The default value for minimumHealthyPercent +// is 50% in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs. // -// The maximumPercent parameter represents an upper limit on the number of -// running tasks during a deployment, which enables you to define the deployment -// batch size. For example, if your service has a desiredCount of four tasks, -// a maximumPercent value of 200% starts four new tasks before stopping the +// The maximumPercent parameter represents an upper limit on the number of your +// service's tasks that are allowed in the RUNNING or PENDING state during a +// deployment, as a percentage of the desiredCount (rounded down to the nearest +// integer). This parameter enables you to define the deployment batch size. +// For example, if your service has a desiredCount of four tasks and a maximumPercent +// value of 200%, the scheduler may start four new tasks before stopping the // four older tasks (provided that the cluster resources required to do this // are available). The default value for maximumPercent is 200%. // // When the service scheduler launches new tasks, it attempts to balance them // across the Availability Zones in your cluster with the following logic: // -// Determine which of the container instances in your cluster can support -// your service's task definition (for example, they have the required CPU, -// memory, ports, and container instance attributes). +// * Determine which of the container instances in your cluster can support +// your service's task definition (for example, they have the required CPU, +// memory, ports, and container instance attributes). // -// Sort the valid container instances by the fewest number of running tasks -// for this service in the same Availability Zone as the instance. For example, -// if zone A has one running service task and zones B and C each have zero, -// valid container instances in either zone B or C are considered optimal for -// placement. +// * Sort the valid container instances by the fewest number of running tasks +// for this service in the same Availability Zone as the instance. For example, +// if zone A has one running service task and zones B and C each have zero, +// valid container instances in either zone B or C are considered optimal +// for placement. // -// Place the new service task on a valid container instance in an optimal -// Availability Zone (based on the previous steps), favoring container instances -// with the fewest number of running tasks for this service. +// * Place the new service task on a valid container instance in an optimal +// Availability Zone (based on the previous steps), favoring container instances +// with the fewest number of running tasks for this service. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -353,7 +357,7 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ // update the service to a desired task count of zero. For more information, // see UpdateService. // -// When you delete a service, if there are still running tasks that require +// When you delete a service, if there are still running tasks that require // cleanup, the service status moves from ACTIVE to DRAINING, and the service // is no longer visible in the console or in ListServices API operations. After // the tasks have stopped, then the service status moves from DRAINING to INACTIVE. @@ -449,14 +453,13 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // instance before deregistration to avoid any orphaned tasks from consuming // resources. // -// Deregistering a container instance removes the instance from a cluster, -// but it does not terminate the EC2 instance; if you are finished using the -// instance, be sure to terminate it in the Amazon EC2 console to stop billing. +// Deregistering a container instance removes the instance from a cluster, but +// it does not terminate the EC2 instance; if you are finished using the instance, +// be sure to terminate it in the Amazon EC2 console to stop billing. // -// If you terminate a running container instance with a connected Amazon ECS -// container agent, the agent automatically deregisters the instance from your -// cluster (stopped container instances or instances with disconnected agents -// are not automatically deregistered when terminated). +// If you terminate a running container instance, Amazon ECS automatically deregisters +// the instance from your cluster (stopped container instances or instances +// with disconnected agents are not automatically deregistered when terminated). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -847,8 +850,8 @@ func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) // information about a specific task definition, or you can simply specify the // family to find the latest ACTIVE revision in that family. // -// You can only describe INACTIVE task definitions while an active task or -// service references them. +// You can only describe INACTIVE task definitions while an active task or service +// references them. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1001,8 +1004,8 @@ func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Returns an endpoint for the Amazon EC2 Container Service agent to poll -// for updates. +// Returns an endpoint for the Amazon EC2 Container Service agent to poll for +// updates. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1617,8 +1620,8 @@ func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, out // by family name, by a particular container instance, or by the desired status // of the task with the family, containerInstance, and desiredStatus parameters. // -// Recently-stopped tasks might appear in the returned results. Currently, -// stopped tasks appear in the returned results for at least one hour. +// Recently-stopped tasks might appear in the returned results. Currently, stopped +// tasks appear in the returned results for at least one hour. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1727,7 +1730,7 @@ func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceI // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Registers an EC2 instance into the specified cluster. This instance becomes +// Registers an EC2 instance into the specified cluster. This instance becomes // available to place containers on. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1890,7 +1893,7 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output // To use your own scheduler or place a task on a specific container instance, // use StartTask instead. // -// The count parameter is limited to 10 tasks per call. +// The count parameter is limited to 10 tasks per call. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1971,7 +1974,7 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out // instance or instances. To use the default Amazon ECS scheduler to place your // task, use RunTask instead. // -// The list of container instances to start tasks on is limited to 10. +// The list of container instances to start tasks on is limited to 10. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2134,7 +2137,7 @@ func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChang // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Sent to acknowledge that a container changed states. +// Sent to acknowledge that a container changed states. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2206,7 +2209,7 @@ func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (r // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Sent to acknowledge that a task changed states. +// Sent to acknowledge that a task changed states. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2281,7 +2284,7 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req // differs depending on whether your container instance was launched with the // Amazon ECS-optimized AMI or another operating system. // -// UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux +// UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux // with the ecs-init service installed and running. For help updating the Amazon // ECS container agent on other operating systems, see Manually Updating the // Amazon ECS Container Agent (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent) @@ -2404,12 +2407,11 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // are considered healthy if they are in the RUNNING state and the container // instance it is hosted on is reported as healthy by the load balancer. // -// The maximumPercent parameter represents an upper limit on the number of -// running tasks during a deployment, which enables you to define the deployment -// batch size. For example, if your service has a desiredCount of four tasks, -// a maximumPercent value of 200% starts four new tasks before stopping the -// four older tasks (provided that the cluster resources required to do this -// are available). +// The maximumPercent parameter represents an upper limit on the number of running +// tasks during a deployment, which enables you to define the deployment batch +// size. For example, if your service has a desiredCount of four tasks, a maximumPercent +// value of 200% starts four new tasks before stopping the four older tasks +// (provided that the cluster resources required to do this are available). // // When UpdateService stops a task during a deployment, the equivalent of docker // stop is issued to the containers running in the task. This results in a SIGTERM @@ -2420,19 +2422,19 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // When the service scheduler launches new tasks, it attempts to balance them // across the Availability Zones in your cluster with the following logic: // -// Determine which of the container instances in your cluster can support -// your service's task definition (for example, they have the required CPU, -// memory, ports, and container instance attributes). +// * Determine which of the container instances in your cluster can support +// your service's task definition (for example, they have the required CPU, +// memory, ports, and container instance attributes). // -// Sort the valid container instances by the fewest number of running tasks -// for this service in the same Availability Zone as the instance. For example, -// if zone A has one running service task and zones B and C each have zero, -// valid container instances in either zone B or C are considered optimal for -// placement. +// * Sort the valid container instances by the fewest number of running tasks +// for this service in the same Availability Zone as the instance. For example, +// if zone A has one running service task and zones B and C each have zero, +// valid container instances in either zone B or C are considered optimal +// for placement. // -// Place the new service task on a valid container instance in an optimal -// Availability Zone (based on the previous steps), favoring container instances -// with the fewest number of running tasks for this service. +// * Place the new service task on a valid container instance in an optimal +// Availability Zone (based on the previous steps), favoring container instances +// with the fewest number of running tasks for this service. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2510,6 +2512,18 @@ func (s *Attribute) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *Attribute) SetName(v string) *Attribute { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Attribute) SetValue(v string) *Attribute { + s.Value = &v + return s +} + // A regional grouping of one or more container instances on which you can run // task requests. Each account receives a default cluster the first time you // use the Amazon ECS service, but you may also create other clusters. Clusters @@ -2524,7 +2538,7 @@ type Cluster struct { // The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains // the arn:aws:ecs namespace, followed by the region of the cluster, the AWS // account ID of the cluster owner, the cluster namespace, and then the cluster - // name. For example, arn:aws:ecs:region:012345678910:cluster/test .. + // name. For example, arn:aws:ecs:region:012345678910:cluster/test.. ClusterArn *string `locationName:"clusterArn" type:"string"` // A user-generated string that you use to identify your cluster. @@ -2555,6 +2569,48 @@ func (s Cluster) GoString() string { return s.String() } +// SetActiveServicesCount sets the ActiveServicesCount field's value. +func (s *Cluster) SetActiveServicesCount(v int64) *Cluster { + s.ActiveServicesCount = &v + return s +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *Cluster) SetClusterArn(v string) *Cluster { + s.ClusterArn = &v + return s +} + +// SetClusterName sets the ClusterName field's value. +func (s *Cluster) SetClusterName(v string) *Cluster { + s.ClusterName = &v + return s +} + +// SetPendingTasksCount sets the PendingTasksCount field's value. +func (s *Cluster) SetPendingTasksCount(v int64) *Cluster { + s.PendingTasksCount = &v + return s +} + +// SetRegisteredContainerInstancesCount sets the RegisteredContainerInstancesCount field's value. +func (s *Cluster) SetRegisteredContainerInstancesCount(v int64) *Cluster { + s.RegisteredContainerInstancesCount = &v + return s +} + +// SetRunningTasksCount sets the RunningTasksCount field's value. +func (s *Cluster) SetRunningTasksCount(v int64) *Cluster { + s.RunningTasksCount = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Cluster) SetStatus(v string) *Cluster { + s.Status = &v + return s +} + // A Docker container that is part of a task. type Container struct { _ struct{} `type:"structure"` @@ -2592,17 +2648,59 @@ func (s Container) GoString() string { return s.String() } +// SetContainerArn sets the ContainerArn field's value. +func (s *Container) SetContainerArn(v string) *Container { + s.ContainerArn = &v + return s +} + +// SetExitCode sets the ExitCode field's value. +func (s *Container) SetExitCode(v int64) *Container { + s.ExitCode = &v + return s +} + +// SetLastStatus sets the LastStatus field's value. +func (s *Container) SetLastStatus(v string) *Container { + s.LastStatus = &v + return s +} + +// SetName sets the Name field's value. +func (s *Container) SetName(v string) *Container { + s.Name = &v + return s +} + +// SetNetworkBindings sets the NetworkBindings field's value. +func (s *Container) SetNetworkBindings(v []*NetworkBinding) *Container { + s.NetworkBindings = v + return s +} + +// SetReason sets the Reason field's value. +func (s *Container) SetReason(v string) *Container { + s.Reason = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *Container) SetTaskArn(v string) *Container { + s.TaskArn = &v + return s +} + // Container definitions are used in task definitions to describe the different // containers that are launched as part of a task. type ContainerDefinition struct { _ struct{} `type:"structure"` // The command that is passed to the container. This parameter maps to Cmd in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the COMMAND parameter to docker run (https://docs.docker.com/reference/commandline/run/). - // For more information, see https://docs.docker.com/reference/builder/#cmd - // (https://docs.docker.com/reference/builder/#cmd). + // the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the COMMAND parameter to docker run (https://docs.docker.com/engine/reference/run/). + // For more information, see https://docs.docker.com/engine/reference/builder/#cmd + // (https://docs.docker.com/engine/reference/builder/#cmd). Command []*string `locationName:"command" type:"list"` // The number of cpu units reserved for the container. A container instance @@ -2610,16 +2708,16 @@ type ContainerDefinition struct { // amount of CPU to reserve for a container, and containers share unallocated // CPU units with other containers on the instance with the same ratio as their // allocated amount. This parameter maps to CpuShares in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --cpu-shares option to docker run (https://docs.docker.com/reference/commandline/run/). + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). // - // You can determine the number of CPU units that are available per EC2 instance + // You can determine the number of CPU units that are available per EC2 instance // type by multiplying the vCPUs listed for that instance type on the Amazon // EC2 Instances (http://aws.amazon.com/ec2/instance-types/) detail page by // 1,024. // - // For example, if you run a single-container task on a single-core instance + // For example, if you run a single-container task on a single-core instance // type with 512 CPU units specified for that container, and that is the only // task running on the container instance, that container could use the full // 1,024 CPU unit share at any given time. However, if you launched another @@ -2630,43 +2728,43 @@ type ContainerDefinition struct { // // The Docker daemon on the container instance uses the CPU value to calculate // the relative CPU share ratios for running containers. For more information, - // see CPU share constraint (https://docs.docker.com/reference/run/#cpu-share-constraint) + // see CPU share constraint (https://docs.docker.com/engine/reference/run/#cpu-share-constraint) // in the Docker documentation. The minimum valid CPU share value that the Linux // kernel allows is 2; however, the CPU parameter is not required, and you can // use CPU values below 2 in your container definitions. For CPU values below // 2 (including null), the behavior varies based on your Amazon ECS container // agent version: // - // Agent versions less than or equal to 1.1.0: Null and zero CPU values - // are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. - // CPU values of 1 are passed to Docker as 1, which the Linux kernel converts - // to 2 CPU shares. + // * Agent versions less than or equal to 1.1.0: Null and zero CPU values + // are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. + // CPU values of 1 are passed to Docker as 1, which the Linux kernel converts + // to 2 CPU shares. // - // Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values - // of 1 are passed to Docker as 2. + // * Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values + // of 1 are passed to Docker as 2. Cpu *int64 `locationName:"cpu" type:"integer"` // When this parameter is true, networking is disabled within the container. - // This parameter maps to NetworkDisabled in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/). + // This parameter maps to NetworkDisabled in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/). DisableNetworking *bool `locationName:"disableNetworking" type:"boolean"` // A list of DNS search domains that are presented to the container. This parameter - // maps to DnsSearch in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --dns-search option to docker run (https://docs.docker.com/reference/commandline/run/). + // maps to DnsSearch in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --dns-search option to docker run (https://docs.docker.com/engine/reference/run/). DnsSearchDomains []*string `locationName:"dnsSearchDomains" type:"list"` // A list of DNS servers that are presented to the container. This parameter - // maps to Dns in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --dns option to docker run (https://docs.docker.com/reference/commandline/run/). + // maps to Dns in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --dns option to docker run (https://docs.docker.com/engine/reference/run/). DnsServers []*string `locationName:"dnsServers" type:"list"` // A key/value map of labels to add to the container. This parameter maps to - // Labels in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --label option to docker run (https://docs.docker.com/reference/commandline/run/). + // Labels in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --label option to docker run (https://docs.docker.com/engine/reference/run/). // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following @@ -2675,11 +2773,11 @@ type ContainerDefinition struct { // A list of strings to provide custom labels for SELinux and AppArmor multi-level // security systems. This parameter maps to SecurityOpt in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --security-opt option to docker run (https://docs.docker.com/reference/commandline/run/). + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --security-opt option to docker run (https://docs.docker.com/engine/reference/run/). // - // The Amazon ECS container agent running on a container instance must register + // The Amazon ECS container agent running on a container instance must register // with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment // variables before containers placed on that instance can use these security // options. For more information, see Amazon ECS Container Agent Configuration @@ -2691,20 +2789,20 @@ type ContainerDefinition struct { // parameters. If you have problems using entryPoint, update your container // agent or enter your commands and arguments as command array items instead. // - // The entry point that is passed to the container. This parameter maps to - // Entrypoint in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --entrypoint option to docker run (https://docs.docker.com/reference/commandline/run/). - // For more information, see https://docs.docker.com/reference/builder/#entrypoint - // (https://docs.docker.com/reference/builder/#entrypoint). + // The entry point that is passed to the container. This parameter maps to Entrypoint + // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --entrypoint option to docker run (https://docs.docker.com/engine/reference/run/). + // For more information, see https://docs.docker.com/engine/reference/builder/#entrypoint + // (https://docs.docker.com/engine/reference/builder/#entrypoint). EntryPoint []*string `locationName:"entryPoint" type:"list"` // The environment variables to pass to a container. This parameter maps to - // Env in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --env option to docker run (https://docs.docker.com/reference/commandline/run/). + // Env in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --env option to docker run (https://docs.docker.com/engine/reference/run/). // - // We do not recommend using plain text environment variables for sensitive + // We do not recommend using plain text environment variables for sensitive // information, such as credential data. Environment []*KeyValuePair `locationName:"environment" type:"list"` @@ -2724,34 +2822,34 @@ type ContainerDefinition struct { // A list of hostnames and IP address mappings to append to the /etc/hosts file // on the container. This parameter maps to ExtraHosts in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --add-host option to docker run (https://docs.docker.com/reference/commandline/run/). + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --add-host option to docker run (https://docs.docker.com/engine/reference/run/). ExtraHosts []*HostEntry `locationName:"extraHosts" type:"list"` // The hostname to use for your container. This parameter maps to Hostname in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --hostname option to docker run (https://docs.docker.com/reference/commandline/run/). + // the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --hostname option to docker run (https://docs.docker.com/engine/reference/run/). Hostname *string `locationName:"hostname" type:"string"` // The image used to start a container. This string is passed directly to the // Docker daemon. Images in the Docker Hub registry are available by default. - // Other repositories are specified with repository-url/image:tag . Up to 255 + // Other repositories are specified with repository-url/image:tag. Up to 255 // letters (uppercase and lowercase), numbers, hyphens, underscores, colons, // periods, forward slashes, and number signs are allowed. This parameter maps - // to Image in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the IMAGE parameter of docker run (https://docs.docker.com/reference/commandline/run/). + // to Image in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the IMAGE parameter of docker run (https://docs.docker.com/engine/reference/run/). // - // Images in official repositories on Docker Hub use a single name (for example, - // ubuntu or mongo). + // * Images in official repositories on Docker Hub use a single name (for + // example, ubuntu or mongo). // - // Images in other repositories on Docker Hub are qualified with an organization - // name (for example, amazon/amazon-ecs-agent). + // * Images in other repositories on Docker Hub are qualified with an organization + // name (for example, amazon/amazon-ecs-agent). // - // Images in other online repositories are qualified further by a domain - // name (for example, quay.io/assemblyline/ubuntu). + // * Images in other online repositories are qualified further by a domain + // name (for example, quay.io/assemblyline/ubuntu). Image *string `locationName:"image" type:"string"` // The link parameter allows containers to communicate with each other without @@ -2759,21 +2857,22 @@ type ContainerDefinition struct { // for the link. This construct is analogous to name:alias in Docker links. // Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores // are allowed for each name and alias. For more information on linking Docker - // containers, see https://docs.docker.com/userguide/dockerlinks/ (https://docs.docker.com/userguide/dockerlinks/). - // This parameter maps to Links in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --link option to docker run (https://docs.docker.com/reference/commandline/run/). + // containers, see https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/ + // (https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/). + // This parameter maps to Links in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --link option to docker run (https://docs.docker.com/engine/reference/run/). // - // Containers that are collocated on a single container instance may be able + // Containers that are collocated on a single container instance may be able // to communicate with each other without requiring links or host port mappings. // Network isolation is achieved on the container instance using security groups // and VPC settings. Links []*string `locationName:"links" type:"list"` // The log configuration specification for the container. This parameter maps - // to LogConfig in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --log-driver option to docker run (https://docs.docker.com/reference/commandline/run/). + // to LogConfig in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --log-driver option to docker run (https://docs.docker.com/engine/reference/run/). // By default, containers use the same logging driver that the Docker daemon // uses; however the container may use a different logging driver than the Docker // daemon by specifying a log driver with this parameter in the container definition. @@ -2783,17 +2882,17 @@ type ContainerDefinition struct { // supported log drivers, see Configure logging drivers (https://docs.docker.com/engine/admin/logging/overview/) // in the Docker documentation. // - // Amazon ECS currently supports a subset of the logging drivers available - // to the Docker daemon (shown in the LogConfiguration data type). Currently - // unsupported log drivers may be available in future releases of the Amazon - // ECS container agent. + // Amazon ECS currently supports a subset of the logging drivers available to + // the Docker daemon (shown in the LogConfiguration data type). Currently unsupported + // log drivers may be available in future releases of the Amazon ECS container + // agent. // - // This parameter requires version 1.18 of the Docker Remote API or greater + // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following // command: sudo docker version | grep "Server API version" // - // The Amazon ECS container agent running on a container instance must register + // The Amazon ECS container agent running on a container instance must register // the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS // environment variable before containers placed on that instance can use these // log configuration options. For more information, see Amazon ECS Container @@ -2803,9 +2902,9 @@ type ContainerDefinition struct { // The hard limit (in MiB) of memory to present to the container. If your container // attempts to exceed the memory specified here, the container is killed. This - // parameter maps to Memory in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --memory option to docker run (https://docs.docker.com/reference/commandline/run/). + // parameter maps to Memory in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --memory option to docker run (https://docs.docker.com/engine/reference/run/). // // You must specify a non-zero integer for one or both of memory or memoryReservation // in container definitions. If you specify both, memory must be greater than @@ -2823,9 +2922,9 @@ type ContainerDefinition struct { // it needs to, up to either the hard limit specified with the memory parameter // (if applicable), or all of the available memory on the container instance, // whichever comes first. This parameter maps to MemoryReservation in the Create - // a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --memory-reservation option to docker run (https://docs.docker.com/reference/commandline/run/). + // a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --memory-reservation option to docker run (https://docs.docker.com/engine/reference/run/). // // You must specify a non-zero integer for one or both of memory or memoryReservation // in container definitions. If you specify both, memory must be greater than @@ -2842,54 +2941,54 @@ type ContainerDefinition struct { MemoryReservation *int64 `locationName:"memoryReservation" type:"integer"` // The mount points for data volumes in your container. This parameter maps - // to Volumes in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --volume option to docker run (https://docs.docker.com/reference/commandline/run/). + // to Volumes in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --volume option to docker run (https://docs.docker.com/engine/reference/run/). MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` // The name of a container. If you are linking multiple containers together // in a task definition, the name of one container can be entered in the links // of another container to connect the containers. Up to 255 letters (uppercase // and lowercase), numbers, hyphens, and underscores are allowed. This parameter - // maps to name in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --name option to docker run (https://docs.docker.com/reference/commandline/run/). + // maps to name in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --name option to docker run (https://docs.docker.com/engine/reference/run/). Name *string `locationName:"name" type:"string"` // The list of port mappings for the container. Port mappings allow containers // to access ports on the host container instance to send or receive traffic. - // This parameter maps to PortBindings in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --publish option to docker run (https://docs.docker.com/reference/commandline/run/). + // This parameter maps to PortBindings in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --publish option to docker run (https://docs.docker.com/engine/reference/run/). // If the network mode of a task definition is set to none, then you cannot // specify port mappings. If the network mode of a task definition is set to // host, then host ports must either be undefined or they must match the container // port in the port mapping. // - // After a task reaches the RUNNING status, manual and automatic host and - // container port assignments are visible in the Network Bindings section of - // a container description of a selected task in the Amazon ECS console, or - // the networkBindings section DescribeTasks responses. + // After a task reaches the RUNNING status, manual and automatic host and container + // port assignments are visible in the Network Bindings section of a container + // description of a selected task in the Amazon ECS console, or the networkBindings + // section DescribeTasks responses. PortMappings []*PortMapping `locationName:"portMappings" type:"list"` // When this parameter is true, the container is given elevated privileges on // the host container instance (similar to the root user). This parameter maps - // to Privileged in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --privileged option to docker run (https://docs.docker.com/reference/commandline/run/). + // to Privileged in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --privileged option to docker run (https://docs.docker.com/engine/reference/run/). Privileged *bool `locationName:"privileged" type:"boolean"` // When this parameter is true, the container is given read-only access to its // root file system. This parameter maps to ReadonlyRootfs in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) // and the --read-only option to docker run. ReadonlyRootFilesystem *bool `locationName:"readonlyRootFilesystem" type:"boolean"` // A list of ulimits to set in the container. This parameter maps to Ulimits - // in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --ulimit option to docker run (https://docs.docker.com/reference/commandline/run/). + // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --ulimit option to docker run (https://docs.docker.com/engine/reference/run/). // Valid naming values are displayed in the Ulimit data type. This parameter // requires version 1.18 of the Docker Remote API or greater on your container // instance. To check the Docker Remote API version on your container instance, @@ -2898,21 +2997,21 @@ type ContainerDefinition struct { Ulimits []*Ulimit `locationName:"ulimits" type:"list"` // The user name to use inside the container. This parameter maps to User in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --user option to docker run (https://docs.docker.com/reference/commandline/run/). + // the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --user option to docker run (https://docs.docker.com/engine/reference/run/). User *string `locationName:"user" type:"string"` // Data volumes to mount from another container. This parameter maps to VolumesFrom - // in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --volumes-from option to docker run (https://docs.docker.com/reference/commandline/run/). + // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --volumes-from option to docker run (https://docs.docker.com/engine/reference/run/). VolumesFrom []*VolumeFrom `locationName:"volumesFrom" type:"list"` // The working directory in which to run commands inside the container. This - // parameter maps to WorkingDir in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --workdir option to docker run (https://docs.docker.com/reference/commandline/run/). + // parameter maps to WorkingDir in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --workdir option to docker run (https://docs.docker.com/engine/reference/run/). WorkingDirectory *string `locationName:"workingDirectory" type:"string"` } @@ -2961,6 +3060,162 @@ func (s *ContainerDefinition) Validate() error { return nil } +// SetCommand sets the Command field's value. +func (s *ContainerDefinition) SetCommand(v []*string) *ContainerDefinition { + s.Command = v + return s +} + +// SetCpu sets the Cpu field's value. +func (s *ContainerDefinition) SetCpu(v int64) *ContainerDefinition { + s.Cpu = &v + return s +} + +// SetDisableNetworking sets the DisableNetworking field's value. +func (s *ContainerDefinition) SetDisableNetworking(v bool) *ContainerDefinition { + s.DisableNetworking = &v + return s +} + +// SetDnsSearchDomains sets the DnsSearchDomains field's value. +func (s *ContainerDefinition) SetDnsSearchDomains(v []*string) *ContainerDefinition { + s.DnsSearchDomains = v + return s +} + +// SetDnsServers sets the DnsServers field's value. +func (s *ContainerDefinition) SetDnsServers(v []*string) *ContainerDefinition { + s.DnsServers = v + return s +} + +// SetDockerLabels sets the DockerLabels field's value. +func (s *ContainerDefinition) SetDockerLabels(v map[string]*string) *ContainerDefinition { + s.DockerLabels = v + return s +} + +// SetDockerSecurityOptions sets the DockerSecurityOptions field's value. +func (s *ContainerDefinition) SetDockerSecurityOptions(v []*string) *ContainerDefinition { + s.DockerSecurityOptions = v + return s +} + +// SetEntryPoint sets the EntryPoint field's value. +func (s *ContainerDefinition) SetEntryPoint(v []*string) *ContainerDefinition { + s.EntryPoint = v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *ContainerDefinition) SetEnvironment(v []*KeyValuePair) *ContainerDefinition { + s.Environment = v + return s +} + +// SetEssential sets the Essential field's value. +func (s *ContainerDefinition) SetEssential(v bool) *ContainerDefinition { + s.Essential = &v + return s +} + +// SetExtraHosts sets the ExtraHosts field's value. +func (s *ContainerDefinition) SetExtraHosts(v []*HostEntry) *ContainerDefinition { + s.ExtraHosts = v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *ContainerDefinition) SetHostname(v string) *ContainerDefinition { + s.Hostname = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition { + s.Image = &v + return s +} + +// SetLinks sets the Links field's value. +func (s *ContainerDefinition) SetLinks(v []*string) *ContainerDefinition { + s.Links = v + return s +} + +// SetLogConfiguration sets the LogConfiguration field's value. +func (s *ContainerDefinition) SetLogConfiguration(v *LogConfiguration) *ContainerDefinition { + s.LogConfiguration = v + return s +} + +// SetMemory sets the Memory field's value. +func (s *ContainerDefinition) SetMemory(v int64) *ContainerDefinition { + s.Memory = &v + return s +} + +// SetMemoryReservation sets the MemoryReservation field's value. +func (s *ContainerDefinition) SetMemoryReservation(v int64) *ContainerDefinition { + s.MemoryReservation = &v + return s +} + +// SetMountPoints sets the MountPoints field's value. +func (s *ContainerDefinition) SetMountPoints(v []*MountPoint) *ContainerDefinition { + s.MountPoints = v + return s +} + +// SetName sets the Name field's value. +func (s *ContainerDefinition) SetName(v string) *ContainerDefinition { + s.Name = &v + return s +} + +// SetPortMappings sets the PortMappings field's value. +func (s *ContainerDefinition) SetPortMappings(v []*PortMapping) *ContainerDefinition { + s.PortMappings = v + return s +} + +// SetPrivileged sets the Privileged field's value. +func (s *ContainerDefinition) SetPrivileged(v bool) *ContainerDefinition { + s.Privileged = &v + return s +} + +// SetReadonlyRootFilesystem sets the ReadonlyRootFilesystem field's value. +func (s *ContainerDefinition) SetReadonlyRootFilesystem(v bool) *ContainerDefinition { + s.ReadonlyRootFilesystem = &v + return s +} + +// SetUlimits sets the Ulimits field's value. +func (s *ContainerDefinition) SetUlimits(v []*Ulimit) *ContainerDefinition { + s.Ulimits = v + return s +} + +// SetUser sets the User field's value. +func (s *ContainerDefinition) SetUser(v string) *ContainerDefinition { + s.User = &v + return s +} + +// SetVolumesFrom sets the VolumesFrom field's value. +func (s *ContainerDefinition) SetVolumesFrom(v []*VolumeFrom) *ContainerDefinition { + s.VolumesFrom = v + return s +} + +// SetWorkingDirectory sets the WorkingDirectory field's value. +func (s *ContainerDefinition) SetWorkingDirectory(v string) *ContainerDefinition { + s.WorkingDirectory = &v + return s +} + // An EC2 instance that is running the Amazon ECS agent and has been registered // with a cluster. type ContainerInstance struct { @@ -2983,8 +3238,7 @@ type ContainerInstance struct { // The Amazon Resource Name (ARN) of the container instance. The ARN contains // the arn:aws:ecs namespace, followed by the region of the container instance, // the AWS account ID of the container instance owner, the container-instance - // namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` // The EC2 instance ID of the container instance. @@ -2993,12 +3247,18 @@ type ContainerInstance struct { // The number of tasks on the container instance that are in the PENDING status. PendingTasksCount *int64 `locationName:"pendingTasksCount" type:"integer"` - // The registered resources on the container instance that are in use by current - // tasks. + // For most resource types, this parameter describes the registered resources + // on the container instance that are in use by current tasks. For port resource + // types, this parameter describes the ports that were reserved by the Amazon + // ECS container agent when it registered the container instance with Amazon + // ECS. RegisteredResources []*Resource `locationName:"registeredResources" type:"list"` - // The remaining resources of the container instance that are available for - // new tasks. + // For most resource types, this parameter describes the remaining resources + // of the container instance that are available for new tasks. For port resource + // types, this parameter describes the ports that are reserved by the Amazon + // ECS container agent and any containers that have reserved port mappings; + // any port that is not specified here is available for new tasks. RemainingResources []*Resource `locationName:"remainingResources" type:"list"` // The number of tasks on the container instance that are in the RUNNING status. @@ -3023,6 +3283,72 @@ func (s ContainerInstance) GoString() string { return s.String() } +// SetAgentConnected sets the AgentConnected field's value. +func (s *ContainerInstance) SetAgentConnected(v bool) *ContainerInstance { + s.AgentConnected = &v + return s +} + +// SetAgentUpdateStatus sets the AgentUpdateStatus field's value. +func (s *ContainerInstance) SetAgentUpdateStatus(v string) *ContainerInstance { + s.AgentUpdateStatus = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *ContainerInstance) SetAttributes(v []*Attribute) *ContainerInstance { + s.Attributes = v + return s +} + +// SetContainerInstanceArn sets the ContainerInstanceArn field's value. +func (s *ContainerInstance) SetContainerInstanceArn(v string) *ContainerInstance { + s.ContainerInstanceArn = &v + return s +} + +// SetEc2InstanceId sets the Ec2InstanceId field's value. +func (s *ContainerInstance) SetEc2InstanceId(v string) *ContainerInstance { + s.Ec2InstanceId = &v + return s +} + +// SetPendingTasksCount sets the PendingTasksCount field's value. +func (s *ContainerInstance) SetPendingTasksCount(v int64) *ContainerInstance { + s.PendingTasksCount = &v + return s +} + +// SetRegisteredResources sets the RegisteredResources field's value. +func (s *ContainerInstance) SetRegisteredResources(v []*Resource) *ContainerInstance { + s.RegisteredResources = v + return s +} + +// SetRemainingResources sets the RemainingResources field's value. +func (s *ContainerInstance) SetRemainingResources(v []*Resource) *ContainerInstance { + s.RemainingResources = v + return s +} + +// SetRunningTasksCount sets the RunningTasksCount field's value. +func (s *ContainerInstance) SetRunningTasksCount(v int64) *ContainerInstance { + s.RunningTasksCount = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ContainerInstance) SetStatus(v string) *ContainerInstance { + s.Status = &v + return s +} + +// SetVersionInfo sets the VersionInfo field's value. +func (s *ContainerInstance) SetVersionInfo(v *VersionInfo) *ContainerInstance { + s.VersionInfo = v + return s +} + // The overrides that should be sent to a container. type ContainerOverride struct { _ struct{} `type:"structure"` @@ -3050,6 +3376,24 @@ func (s ContainerOverride) GoString() string { return s.String() } +// SetCommand sets the Command field's value. +func (s *ContainerOverride) SetCommand(v []*string) *ContainerOverride { + s.Command = v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *ContainerOverride) SetEnvironment(v []*KeyValuePair) *ContainerOverride { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *ContainerOverride) SetName(v string) *ContainerOverride { + s.Name = &v + return s +} + type CreateClusterInput struct { _ struct{} `type:"structure"` @@ -3069,6 +3413,12 @@ func (s CreateClusterInput) GoString() string { return s.String() } +// SetClusterName sets the ClusterName field's value. +func (s *CreateClusterInput) SetClusterName(v string) *CreateClusterInput { + s.ClusterName = &v + return s +} + type CreateClusterOutput struct { _ struct{} `type:"structure"` @@ -3086,6 +3436,12 @@ func (s CreateClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput { + s.Cluster = v + return s +} + type CreateServiceInput struct { _ struct{} `type:"structure"` @@ -3119,12 +3475,12 @@ type CreateServiceInput struct { // a task from this service is placed on a container instance, the container // instance is registered with the load balancer specified here. // - // For Elastic Load Balancing Application load balancers, this object must - // contain the load balancer target group ARN, the container name (as it appears - // in a container definition), and the container port to access from the load - // balancer. When a task from this service is placed on a container instance, - // the container instance and port combination is registered as a target in - // the target group specified here. + // For Elastic Load Balancing Application load balancers, this object must contain + // the load balancer target group ARN, the container name (as it appears in + // a container definition), and the container port to access from the load balancer. + // When a task from this service is placed on a container instance, the container + // instance and port combination is registered as a target in the target group + // specified here. LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"` // The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon @@ -3186,6 +3542,54 @@ func (s *CreateServiceInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateServiceInput) SetClientToken(v string) *CreateServiceInput { + s.ClientToken = &v + return s +} + +// SetCluster sets the Cluster field's value. +func (s *CreateServiceInput) SetCluster(v string) *CreateServiceInput { + s.Cluster = &v + return s +} + +// SetDeploymentConfiguration sets the DeploymentConfiguration field's value. +func (s *CreateServiceInput) SetDeploymentConfiguration(v *DeploymentConfiguration) *CreateServiceInput { + s.DeploymentConfiguration = v + return s +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *CreateServiceInput) SetDesiredCount(v int64) *CreateServiceInput { + s.DesiredCount = &v + return s +} + +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *CreateServiceInput) SetLoadBalancers(v []*LoadBalancer) *CreateServiceInput { + s.LoadBalancers = v + return s +} + +// SetRole sets the Role field's value. +func (s *CreateServiceInput) SetRole(v string) *CreateServiceInput { + s.Role = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *CreateServiceInput) SetServiceName(v string) *CreateServiceInput { + s.ServiceName = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *CreateServiceInput) SetTaskDefinition(v string) *CreateServiceInput { + s.TaskDefinition = &v + return s +} + type CreateServiceOutput struct { _ struct{} `type:"structure"` @@ -3203,6 +3607,12 @@ func (s CreateServiceOutput) GoString() string { return s.String() } +// SetService sets the Service field's value. +func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { + s.Service = v + return s +} + type DeleteClusterInput struct { _ struct{} `type:"structure"` @@ -3235,6 +3645,12 @@ func (s *DeleteClusterInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DeleteClusterInput) SetCluster(v string) *DeleteClusterInput { + s.Cluster = &v + return s +} + type DeleteClusterOutput struct { _ struct{} `type:"structure"` @@ -3252,6 +3668,12 @@ func (s DeleteClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DeleteClusterOutput) SetCluster(v *Cluster) *DeleteClusterOutput { + s.Cluster = v + return s +} + type DeleteServiceInput struct { _ struct{} `type:"structure"` @@ -3288,6 +3710,18 @@ func (s *DeleteServiceInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DeleteServiceInput) SetCluster(v string) *DeleteServiceInput { + s.Cluster = &v + return s +} + +// SetService sets the Service field's value. +func (s *DeleteServiceInput) SetService(v string) *DeleteServiceInput { + s.Service = &v + return s +} + type DeleteServiceOutput struct { _ struct{} `type:"structure"` @@ -3305,6 +3739,12 @@ func (s DeleteServiceOutput) GoString() string { return s.String() } +// SetService sets the Service field's value. +func (s *DeleteServiceOutput) SetService(v *Service) *DeleteServiceOutput { + s.Service = v + return s +} + // The details of an Amazon ECS service deployment. type Deployment struct { _ struct{} `type:"structure"` @@ -3348,19 +3788,68 @@ func (s Deployment) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *Deployment) SetCreatedAt(v time.Time) *Deployment { + s.CreatedAt = &v + return s +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *Deployment) SetDesiredCount(v int64) *Deployment { + s.DesiredCount = &v + return s +} + +// SetId sets the Id field's value. +func (s *Deployment) SetId(v string) *Deployment { + s.Id = &v + return s +} + +// SetPendingCount sets the PendingCount field's value. +func (s *Deployment) SetPendingCount(v int64) *Deployment { + s.PendingCount = &v + return s +} + +// SetRunningCount sets the RunningCount field's value. +func (s *Deployment) SetRunningCount(v int64) *Deployment { + s.RunningCount = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Deployment) SetStatus(v string) *Deployment { + s.Status = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *Deployment) SetTaskDefinition(v string) *Deployment { + s.TaskDefinition = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Deployment) SetUpdatedAt(v time.Time) *Deployment { + s.UpdatedAt = &v + return s +} + // Optional deployment parameters that control how many tasks run during the // deployment and the ordering of stopping and starting tasks. type DeploymentConfiguration struct { _ struct{} `type:"structure"` // The upper limit (as a percentage of the service's desiredCount) of the number - // of running tasks that can be running in a service during a deployment. The - // maximum number of tasks during a deployment is the desiredCount multiplied - // by the maximumPercent/100, rounded down to the nearest integer value. + // of tasks that are allowed in the RUNNING or PENDING state in a service during + // a deployment. The maximum number of tasks during a deployment is the desiredCount + // multiplied by the maximumPercent/100, rounded down to the nearest integer + // value. MaximumPercent *int64 `locationName:"maximumPercent" type:"integer"` // The lower limit (as a percentage of the service's desiredCount) of the number - // of running tasks that must remain running and healthy in a service during + // of running tasks that must remain in the RUNNING state in a service during // a deployment. The minimum healthy tasks during a deployment is the desiredCount // multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer // value. @@ -3377,6 +3866,18 @@ func (s DeploymentConfiguration) GoString() string { return s.String() } +// SetMaximumPercent sets the MaximumPercent field's value. +func (s *DeploymentConfiguration) SetMaximumPercent(v int64) *DeploymentConfiguration { + s.MaximumPercent = &v + return s +} + +// SetMinimumHealthyPercent sets the MinimumHealthyPercent field's value. +func (s *DeploymentConfiguration) SetMinimumHealthyPercent(v int64) *DeploymentConfiguration { + s.MinimumHealthyPercent = &v + return s +} + type DeregisterContainerInstanceInput struct { _ struct{} `type:"structure"` @@ -3389,20 +3890,23 @@ type DeregisterContainerInstanceInput struct { // instance to deregister. The ARN contains the arn:aws:ecs namespace, followed // by the region of the container instance, the AWS account ID of the container // instance owner, the container-instance namespace, and then the container - // instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. // // ContainerInstance is a required field ContainerInstance *string `locationName:"containerInstance" type:"string" required:"true"` // Forces the deregistration of the container instance. If you have tasks running // on the container instance when you deregister it with the force option, these - // tasks remain running and they continue to pass Elastic Load Balancing load - // balancer health checks until you terminate the instance or the tasks stop - // through some other means, but they are orphaned (no longer monitored or accounted + // tasks remain running until you terminate the instance or the tasks stop through + // some other means, but they are orphaned (no longer monitored or accounted // for by Amazon ECS). If an orphaned task on your container instance is part // of an Amazon ECS service, then the service scheduler starts another copy // of that task, on a different container instance if possible. + // + // Any containers in orphaned service tasks that are registered with a Classic + // load balancer or an Application load balancer target group are deregistered, + // and they will begin connection draining according to the settings on the + // load balancer or target group. Force *bool `locationName:"force" type:"boolean"` } @@ -3429,6 +3933,24 @@ func (s *DeregisterContainerInstanceInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DeregisterContainerInstanceInput) SetCluster(v string) *DeregisterContainerInstanceInput { + s.Cluster = &v + return s +} + +// SetContainerInstance sets the ContainerInstance field's value. +func (s *DeregisterContainerInstanceInput) SetContainerInstance(v string) *DeregisterContainerInstanceInput { + s.ContainerInstance = &v + return s +} + +// SetForce sets the Force field's value. +func (s *DeregisterContainerInstanceInput) SetForce(v bool) *DeregisterContainerInstanceInput { + s.Force = &v + return s +} + type DeregisterContainerInstanceOutput struct { _ struct{} `type:"structure"` @@ -3447,6 +3969,12 @@ func (s DeregisterContainerInstanceOutput) GoString() string { return s.String() } +// SetContainerInstance sets the ContainerInstance field's value. +func (s *DeregisterContainerInstanceOutput) SetContainerInstance(v *ContainerInstance) *DeregisterContainerInstanceOutput { + s.ContainerInstance = v + return s +} + type DeregisterTaskDefinitionInput struct { _ struct{} `type:"structure"` @@ -3480,6 +4008,12 @@ func (s *DeregisterTaskDefinitionInput) Validate() error { return nil } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *DeregisterTaskDefinitionInput) SetTaskDefinition(v string) *DeregisterTaskDefinitionInput { + s.TaskDefinition = &v + return s +} + type DeregisterTaskDefinitionOutput struct { _ struct{} `type:"structure"` @@ -3497,6 +4031,12 @@ func (s DeregisterTaskDefinitionOutput) GoString() string { return s.String() } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *DeregisterTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *DeregisterTaskDefinitionOutput { + s.TaskDefinition = v + return s +} + type DescribeClustersInput struct { _ struct{} `type:"structure"` @@ -3516,6 +4056,12 @@ func (s DescribeClustersInput) GoString() string { return s.String() } +// SetClusters sets the Clusters field's value. +func (s *DescribeClustersInput) SetClusters(v []*string) *DescribeClustersInput { + s.Clusters = v + return s +} + type DescribeClustersOutput struct { _ struct{} `type:"structure"` @@ -3536,6 +4082,18 @@ func (s DescribeClustersOutput) GoString() string { return s.String() } +// SetClusters sets the Clusters field's value. +func (s *DescribeClustersOutput) SetClusters(v []*Cluster) *DescribeClustersOutput { + s.Clusters = v + return s +} + +// SetFailures sets the Failures field's value. +func (s *DescribeClustersOutput) SetFailures(v []*Failure) *DescribeClustersOutput { + s.Failures = v + return s +} + type DescribeContainerInstancesInput struct { _ struct{} `type:"structure"` @@ -3574,6 +4132,18 @@ func (s *DescribeContainerInstancesInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DescribeContainerInstancesInput) SetCluster(v string) *DescribeContainerInstancesInput { + s.Cluster = &v + return s +} + +// SetContainerInstances sets the ContainerInstances field's value. +func (s *DescribeContainerInstancesInput) SetContainerInstances(v []*string) *DescribeContainerInstancesInput { + s.ContainerInstances = v + return s +} + type DescribeContainerInstancesOutput struct { _ struct{} `type:"structure"` @@ -3594,6 +4164,18 @@ func (s DescribeContainerInstancesOutput) GoString() string { return s.String() } +// SetContainerInstances sets the ContainerInstances field's value. +func (s *DescribeContainerInstancesOutput) SetContainerInstances(v []*ContainerInstance) *DescribeContainerInstancesOutput { + s.ContainerInstances = v + return s +} + +// SetFailures sets the Failures field's value. +func (s *DescribeContainerInstancesOutput) SetFailures(v []*Failure) *DescribeContainerInstancesOutput { + s.Failures = v + return s +} + type DescribeServicesInput struct { _ struct{} `type:"structure"` @@ -3601,7 +4183,8 @@ type DescribeServicesInput struct { // specify a cluster, the default cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` - // A list of services to describe. + // A list of services to describe. You may specify up to 10 services to describe + // in a single operation. // // Services is a required field Services []*string `locationName:"services" type:"list" required:"true"` @@ -3630,6 +4213,18 @@ func (s *DescribeServicesInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DescribeServicesInput) SetCluster(v string) *DescribeServicesInput { + s.Cluster = &v + return s +} + +// SetServices sets the Services field's value. +func (s *DescribeServicesInput) SetServices(v []*string) *DescribeServicesInput { + s.Services = v + return s +} + type DescribeServicesOutput struct { _ struct{} `type:"structure"` @@ -3650,6 +4245,18 @@ func (s DescribeServicesOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *DescribeServicesOutput) SetFailures(v []*Failure) *DescribeServicesOutput { + s.Failures = v + return s +} + +// SetServices sets the Services field's value. +func (s *DescribeServicesOutput) SetServices(v []*Service) *DescribeServicesOutput { + s.Services = v + return s +} + type DescribeTaskDefinitionInput struct { _ struct{} `type:"structure"` @@ -3684,6 +4291,12 @@ func (s *DescribeTaskDefinitionInput) Validate() error { return nil } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *DescribeTaskDefinitionInput) SetTaskDefinition(v string) *DescribeTaskDefinitionInput { + s.TaskDefinition = &v + return s +} + type DescribeTaskDefinitionOutput struct { _ struct{} `type:"structure"` @@ -3701,6 +4314,12 @@ func (s DescribeTaskDefinitionOutput) GoString() string { return s.String() } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *DescribeTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *DescribeTaskDefinitionOutput { + s.TaskDefinition = v + return s +} + type DescribeTasksInput struct { _ struct{} `type:"structure"` @@ -3738,6 +4357,18 @@ func (s *DescribeTasksInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DescribeTasksInput) SetCluster(v string) *DescribeTasksInput { + s.Cluster = &v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *DescribeTasksInput) SetTasks(v []*string) *DescribeTasksInput { + s.Tasks = v + return s +} + type DescribeTasksOutput struct { _ struct{} `type:"structure"` @@ -3758,6 +4389,18 @@ func (s DescribeTasksOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *DescribeTasksOutput) SetFailures(v []*Failure) *DescribeTasksOutput { + s.Failures = v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *DescribeTasksOutput) SetTasks(v []*Task) *DescribeTasksOutput { + s.Tasks = v + return s +} + type DiscoverPollEndpointInput struct { _ struct{} `type:"structure"` @@ -3768,8 +4411,7 @@ type DiscoverPollEndpointInput struct { // instance. The ARN contains the arn:aws:ecs namespace, followed by the region // of the container instance, the AWS account ID of the container instance owner, // the container-instance namespace, and then the container instance ID. For - // example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. ContainerInstance *string `locationName:"containerInstance" type:"string"` } @@ -3783,6 +4425,18 @@ func (s DiscoverPollEndpointInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DiscoverPollEndpointInput) SetCluster(v string) *DiscoverPollEndpointInput { + s.Cluster = &v + return s +} + +// SetContainerInstance sets the ContainerInstance field's value. +func (s *DiscoverPollEndpointInput) SetContainerInstance(v string) *DiscoverPollEndpointInput { + s.ContainerInstance = &v + return s +} + type DiscoverPollEndpointOutput struct { _ struct{} `type:"structure"` @@ -3803,6 +4457,18 @@ func (s DiscoverPollEndpointOutput) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *DiscoverPollEndpointOutput) SetEndpoint(v string) *DiscoverPollEndpointOutput { + s.Endpoint = &v + return s +} + +// SetTelemetryEndpoint sets the TelemetryEndpoint field's value. +func (s *DiscoverPollEndpointOutput) SetTelemetryEndpoint(v string) *DiscoverPollEndpointOutput { + s.TelemetryEndpoint = &v + return s +} + // A failed resource. type Failure struct { _ struct{} `type:"structure"` @@ -3824,6 +4490,18 @@ func (s Failure) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Failure) SetArn(v string) *Failure { + s.Arn = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *Failure) SetReason(v string) *Failure { + s.Reason = &v + return s +} + // Hostnames and IP address entries that are added to the /etc/hosts file of // a container via the extraHosts parameter of its ContainerDefinition. type HostEntry struct { @@ -3866,6 +4544,18 @@ func (s *HostEntry) Validate() error { return nil } +// SetHostname sets the Hostname field's value. +func (s *HostEntry) SetHostname(v string) *HostEntry { + s.Hostname = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *HostEntry) SetIpAddress(v string) *HostEntry { + s.IpAddress = &v + return s +} + // Details on a container instance host volume. type HostVolumeProperties struct { _ struct{} `type:"structure"` @@ -3890,6 +4580,12 @@ func (s HostVolumeProperties) GoString() string { return s.String() } +// SetSourcePath sets the SourcePath field's value. +func (s *HostVolumeProperties) SetSourcePath(v string) *HostVolumeProperties { + s.SourcePath = &v + return s +} + // A key and value pair object. type KeyValuePair struct { _ struct{} `type:"structure"` @@ -3913,6 +4609,18 @@ func (s KeyValuePair) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *KeyValuePair) SetName(v string) *KeyValuePair { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *KeyValuePair) SetValue(v string) *KeyValuePair { + s.Value = &v + return s +} + type ListClustersInput struct { _ struct{} `type:"structure"` @@ -3930,8 +4638,8 @@ type ListClustersInput struct { // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` } @@ -3945,6 +4653,18 @@ func (s ListClustersInput) GoString() string { return s.String() } +// SetMaxResults sets the MaxResults field's value. +func (s *ListClustersInput) SetMaxResults(v int64) *ListClustersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListClustersInput) SetNextToken(v string) *ListClustersInput { + s.NextToken = &v + return s +} + type ListClustersOutput struct { _ struct{} `type:"structure"` @@ -3969,12 +4689,24 @@ func (s ListClustersOutput) GoString() string { return s.String() } +// SetClusterArns sets the ClusterArns field's value. +func (s *ListClustersOutput) SetClusterArns(v []*string) *ListClustersOutput { + s.ClusterArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListClustersOutput) SetNextToken(v string) *ListClustersOutput { + s.NextToken = &v + return s +} + type ListContainerInstancesInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the container instances to list. If you do not specify a cluster, the default - // cluster is assumed.. + // cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` // The maximum number of container instance results returned by ListContainerInstances @@ -3993,8 +4725,8 @@ type ListContainerInstancesInput struct { // returned the nextToken value. This value is null when there are no more results // to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` } @@ -4008,6 +4740,24 @@ func (s ListContainerInstancesInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ListContainerInstancesInput) SetCluster(v string) *ListContainerInstancesInput { + s.Cluster = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListContainerInstancesInput) SetMaxResults(v int64) *ListContainerInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListContainerInstancesInput) SetNextToken(v string) *ListContainerInstancesInput { + s.NextToken = &v + return s +} + type ListContainerInstancesOutput struct { _ struct{} `type:"structure"` @@ -4032,12 +4782,24 @@ func (s ListContainerInstancesOutput) GoString() string { return s.String() } +// SetContainerInstanceArns sets the ContainerInstanceArns field's value. +func (s *ListContainerInstancesOutput) SetContainerInstanceArns(v []*string) *ListContainerInstancesOutput { + s.ContainerInstanceArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListContainerInstancesOutput) SetNextToken(v string) *ListContainerInstancesOutput { + s.NextToken = &v + return s +} + type ListServicesInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the services to list. If you do not specify a cluster, the default cluster - // is assumed.. + // is assumed. Cluster *string `locationName:"cluster" type:"string"` // The maximum number of container instance results returned by ListServices @@ -4054,8 +4816,8 @@ type ListServicesInput struct { // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` } @@ -4069,6 +4831,24 @@ func (s ListServicesInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ListServicesInput) SetCluster(v string) *ListServicesInput { + s.Cluster = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListServicesInput) SetMaxResults(v int64) *ListServicesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput { + s.NextToken = &v + return s +} + type ListServicesOutput struct { _ struct{} `type:"structure"` @@ -4093,6 +4873,18 @@ func (s ListServicesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListServicesOutput) SetNextToken(v string) *ListServicesOutput { + s.NextToken = &v + return s +} + +// SetServiceArns sets the ServiceArns field's value. +func (s *ListServicesOutput) SetServiceArns(v []*string) *ListServicesOutput { + s.ServiceArns = v + return s +} + type ListTaskDefinitionFamiliesInput struct { _ struct{} `type:"structure"` @@ -4117,8 +4909,8 @@ type ListTaskDefinitionFamiliesInput struct { // returned the nextToken value. This value is null when there are no more results // to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The task definition family status with which to filter the ListTaskDefinitionFamilies @@ -4141,6 +4933,30 @@ func (s ListTaskDefinitionFamiliesInput) GoString() string { return s.String() } +// SetFamilyPrefix sets the FamilyPrefix field's value. +func (s *ListTaskDefinitionFamiliesInput) SetFamilyPrefix(v string) *ListTaskDefinitionFamiliesInput { + s.FamilyPrefix = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTaskDefinitionFamiliesInput) SetMaxResults(v int64) *ListTaskDefinitionFamiliesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTaskDefinitionFamiliesInput) SetNextToken(v string) *ListTaskDefinitionFamiliesInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListTaskDefinitionFamiliesInput) SetStatus(v string) *ListTaskDefinitionFamiliesInput { + s.Status = &v + return s +} + type ListTaskDefinitionFamiliesOutput struct { _ struct{} `type:"structure"` @@ -4165,6 +4981,18 @@ func (s ListTaskDefinitionFamiliesOutput) GoString() string { return s.String() } +// SetFamilies sets the Families field's value. +func (s *ListTaskDefinitionFamiliesOutput) SetFamilies(v []*string) *ListTaskDefinitionFamiliesOutput { + s.Families = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTaskDefinitionFamiliesOutput) SetNextToken(v string) *ListTaskDefinitionFamiliesOutput { + s.NextToken = &v + return s +} + type ListTaskDefinitionsInput struct { _ struct{} `type:"structure"` @@ -4188,8 +5016,8 @@ type ListTaskDefinitionsInput struct { // returned the nextToken value. This value is null when there are no more results // to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The order in which to sort the results. Valid values are ASC and DESC. By @@ -4218,6 +5046,36 @@ func (s ListTaskDefinitionsInput) GoString() string { return s.String() } +// SetFamilyPrefix sets the FamilyPrefix field's value. +func (s *ListTaskDefinitionsInput) SetFamilyPrefix(v string) *ListTaskDefinitionsInput { + s.FamilyPrefix = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTaskDefinitionsInput) SetMaxResults(v int64) *ListTaskDefinitionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTaskDefinitionsInput) SetNextToken(v string) *ListTaskDefinitionsInput { + s.NextToken = &v + return s +} + +// SetSort sets the Sort field's value. +func (s *ListTaskDefinitionsInput) SetSort(v string) *ListTaskDefinitionsInput { + s.Sort = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListTaskDefinitionsInput) SetStatus(v string) *ListTaskDefinitionsInput { + s.Status = &v + return s +} + type ListTaskDefinitionsOutput struct { _ struct{} `type:"structure"` @@ -4242,12 +5100,24 @@ func (s ListTaskDefinitionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTaskDefinitionsOutput) SetNextToken(v string) *ListTaskDefinitionsOutput { + s.NextToken = &v + return s +} + +// SetTaskDefinitionArns sets the TaskDefinitionArns field's value. +func (s *ListTaskDefinitionsOutput) SetTaskDefinitionArns(v []*string) *ListTaskDefinitionsOutput { + s.TaskDefinitionArns = v + return s +} + type ListTasksInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the tasks to list. If you do not specify a cluster, the default cluster is - // assumed.. + // assumed. Cluster *string `locationName:"cluster" type:"string"` // The container instance ID or full Amazon Resource Name (ARN) of the container @@ -4261,7 +5131,7 @@ type ListTasksInput struct { // not starting properly or have died or finished. The default status filter // is RUNNING, which shows tasks that ECS has set the desired status to RUNNING. // - // Although you can filter results based on a desired status of PENDING, this + // Although you can filter results based on a desired status of PENDING, this // will not return any results because ECS never sets the desired status of // a task to that value (only a task's lastStatus may have a value of PENDING). DesiredStatus *string `locationName:"desiredStatus" type:"string" enum:"DesiredStatus"` @@ -4284,8 +5154,8 @@ type ListTasksInput struct { // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The name of the service with which to filter the ListTasks results. Specifying @@ -4307,6 +5177,54 @@ func (s ListTasksInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ListTasksInput) SetCluster(v string) *ListTasksInput { + s.Cluster = &v + return s +} + +// SetContainerInstance sets the ContainerInstance field's value. +func (s *ListTasksInput) SetContainerInstance(v string) *ListTasksInput { + s.ContainerInstance = &v + return s +} + +// SetDesiredStatus sets the DesiredStatus field's value. +func (s *ListTasksInput) SetDesiredStatus(v string) *ListTasksInput { + s.DesiredStatus = &v + return s +} + +// SetFamily sets the Family field's value. +func (s *ListTasksInput) SetFamily(v string) *ListTasksInput { + s.Family = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTasksInput) SetMaxResults(v int64) *ListTasksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTasksInput) SetNextToken(v string) *ListTasksInput { + s.NextToken = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ListTasksInput) SetServiceName(v string) *ListTasksInput { + s.ServiceName = &v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *ListTasksInput) SetStartedBy(v string) *ListTasksInput { + s.StartedBy = &v + return s +} + type ListTasksOutput struct { _ struct{} `type:"structure"` @@ -4330,6 +5248,18 @@ func (s ListTasksOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTasksOutput) SetNextToken(v string) *ListTasksOutput { + s.NextToken = &v + return s +} + +// SetTaskArns sets the TaskArns field's value. +func (s *ListTasksOutput) SetTaskArns(v []*string) *ListTasksOutput { + s.TaskArns = v + return s +} + // Details on a load balancer that is used with a service. type LoadBalancer struct { _ struct{} `type:"structure"` @@ -4362,6 +5292,30 @@ func (s LoadBalancer) GoString() string { return s.String() } +// SetContainerName sets the ContainerName field's value. +func (s *LoadBalancer) SetContainerName(v string) *LoadBalancer { + s.ContainerName = &v + return s +} + +// SetContainerPort sets the ContainerPort field's value. +func (s *LoadBalancer) SetContainerPort(v int64) *LoadBalancer { + s.ContainerPort = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancer) SetLoadBalancerName(v string) *LoadBalancer { + s.LoadBalancerName = &v + return s +} + +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *LoadBalancer) SetTargetGroupArn(v string) *LoadBalancer { + s.TargetGroupArn = &v + return s +} + // Log configuration options to send to a custom log driver for the container. type LogConfiguration struct { _ struct{} `type:"structure"` @@ -4370,7 +5324,7 @@ type LogConfiguration struct { // parameter are log drivers that the Amazon ECS container agent can communicate // with by default. // - // If you have a custom driver that is not listed above that you would like + // If you have a custom driver that is not listed above that you would like // to work with the Amazon ECS container agent, you can fork the Amazon ECS // container agent project that is available on GitHub (https://github.com/aws/amazon-ecs-agent) // and customize it to work with that driver. We encourage you to submit pull @@ -4378,7 +5332,7 @@ type LogConfiguration struct { // Web Services does not currently provide support for running modified copies // of this software. // - // This parameter requires version 1.18 of the Docker Remote API or greater + // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following // command: sudo docker version | grep "Server API version" @@ -4417,6 +5371,18 @@ func (s *LogConfiguration) Validate() error { return nil } +// SetLogDriver sets the LogDriver field's value. +func (s *LogConfiguration) SetLogDriver(v string) *LogConfiguration { + s.LogDriver = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *LogConfiguration) SetOptions(v map[string]*string) *LogConfiguration { + s.Options = v + return s +} + // Details on a volume mount point that is used in a container definition. type MountPoint struct { _ struct{} `type:"structure"` @@ -4443,6 +5409,24 @@ func (s MountPoint) GoString() string { return s.String() } +// SetContainerPath sets the ContainerPath field's value. +func (s *MountPoint) SetContainerPath(v string) *MountPoint { + s.ContainerPath = &v + return s +} + +// SetReadOnly sets the ReadOnly field's value. +func (s *MountPoint) SetReadOnly(v bool) *MountPoint { + s.ReadOnly = &v + return s +} + +// SetSourceVolume sets the SourceVolume field's value. +func (s *MountPoint) SetSourceVolume(v string) *MountPoint { + s.SourceVolume = &v + return s +} + // Details on the network bindings between a container and its host container // instance. After a task reaches the RUNNING status, manual and automatic host // and container port assignments are visible in the networkBindings section @@ -4473,6 +5457,30 @@ func (s NetworkBinding) GoString() string { return s.String() } +// SetBindIP sets the BindIP field's value. +func (s *NetworkBinding) SetBindIP(v string) *NetworkBinding { + s.BindIP = &v + return s +} + +// SetContainerPort sets the ContainerPort field's value. +func (s *NetworkBinding) SetContainerPort(v int64) *NetworkBinding { + s.ContainerPort = &v + return s +} + +// SetHostPort sets the HostPort field's value. +func (s *NetworkBinding) SetHostPort(v int64) *NetworkBinding { + s.HostPort = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *NetworkBinding) SetProtocol(v string) *NetworkBinding { + s.Protocol = &v + return s +} + // Port mappings allow containers to access ports on the host container instance // to send or receive traffic. Port mappings are specified as part of the container // definition. After a task reaches the RUNNING status, manual and automatic @@ -4504,13 +5512,13 @@ type PortMapping struct { // below 32768 are outside of the ephemeral port range. // // The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, - // and the Amazon ECS container agent port 51678. Any host port that was previously - // specified in a running task is also reserved while the task is running (after - // a task stops, the host port is released).The current reserved ports are displayed - // in the remainingResources of DescribeContainerInstances output, and a container - // instance may have up to 100 reserved ports at a time, including the default - // reserved ports (automatically assigned ports do not count toward the 100 - // reserved ports limit). + // and the Amazon ECS container agent ports 51678 and 51679. Any host port that + // was previously specified in a running task is also reserved while the task + // is running (after a task stops, the host port is released).The current reserved + // ports are displayed in the remainingResources of DescribeContainerInstances + // output, and a container instance may have up to 100 reserved ports at a time, + // including the default reserved ports (automatically assigned ports do not + // count toward the 100 reserved ports limit). HostPort *int64 `locationName:"hostPort" type:"integer"` // The protocol used for the port mapping. Valid values are tcp and udp. The @@ -4528,6 +5536,24 @@ func (s PortMapping) GoString() string { return s.String() } +// SetContainerPort sets the ContainerPort field's value. +func (s *PortMapping) SetContainerPort(v int64) *PortMapping { + s.ContainerPort = &v + return s +} + +// SetHostPort sets the HostPort field's value. +func (s *PortMapping) SetHostPort(v int64) *PortMapping { + s.HostPort = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *PortMapping) SetProtocol(v string) *PortMapping { + s.Protocol = &v + return s +} + type RegisterContainerInstanceInput struct { _ struct{} `type:"structure"` @@ -4536,7 +5562,7 @@ type RegisterContainerInstanceInput struct { // The short name or full Amazon Resource Name (ARN) of the cluster with which // to register your container instance. If you do not specify a cluster, the - // default cluster is assumed.. + // default cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` // The Amazon Resource Name (ARN) of the container instance (if it was previously @@ -4590,6 +5616,48 @@ func (s *RegisterContainerInstanceInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *RegisterContainerInstanceInput) SetAttributes(v []*Attribute) *RegisterContainerInstanceInput { + s.Attributes = v + return s +} + +// SetCluster sets the Cluster field's value. +func (s *RegisterContainerInstanceInput) SetCluster(v string) *RegisterContainerInstanceInput { + s.Cluster = &v + return s +} + +// SetContainerInstanceArn sets the ContainerInstanceArn field's value. +func (s *RegisterContainerInstanceInput) SetContainerInstanceArn(v string) *RegisterContainerInstanceInput { + s.ContainerInstanceArn = &v + return s +} + +// SetInstanceIdentityDocument sets the InstanceIdentityDocument field's value. +func (s *RegisterContainerInstanceInput) SetInstanceIdentityDocument(v string) *RegisterContainerInstanceInput { + s.InstanceIdentityDocument = &v + return s +} + +// SetInstanceIdentityDocumentSignature sets the InstanceIdentityDocumentSignature field's value. +func (s *RegisterContainerInstanceInput) SetInstanceIdentityDocumentSignature(v string) *RegisterContainerInstanceInput { + s.InstanceIdentityDocumentSignature = &v + return s +} + +// SetTotalResources sets the TotalResources field's value. +func (s *RegisterContainerInstanceInput) SetTotalResources(v []*Resource) *RegisterContainerInstanceInput { + s.TotalResources = v + return s +} + +// SetVersionInfo sets the VersionInfo field's value. +func (s *RegisterContainerInstanceInput) SetVersionInfo(v *VersionInfo) *RegisterContainerInstanceInput { + s.VersionInfo = v + return s +} + type RegisterContainerInstanceOutput struct { _ struct{} `type:"structure"` @@ -4608,6 +5676,12 @@ func (s RegisterContainerInstanceOutput) GoString() string { return s.String() } +// SetContainerInstance sets the ContainerInstance field's value. +func (s *RegisterContainerInstanceOutput) SetContainerInstance(v *ContainerInstance) *RegisterContainerInstanceOutput { + s.ContainerInstance = v + return s +} + type RegisterTaskDefinitionInput struct { _ struct{} `type:"structure"` @@ -4642,9 +5716,11 @@ type RegisterTaskDefinitionInput struct { // in the Docker run reference. NetworkMode *string `locationName:"networkMode" type:"string" enum:"NetworkMode"` - // The Amazon Resource Name (ARN) of the IAM role that containers in this task - // can assume. All containers in this task are granted the permissions that - // are specified in this role. + // The short name or full Amazon Resource Name (ARN) of the IAM role that containers + // in this task can assume. All containers in this task are granted the permissions + // that are specified in this role. For more information, see IAM Roles for + // Tasks (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) + // in the Amazon EC2 Container Service Developer Guide. TaskRoleArn *string `locationName:"taskRoleArn" type:"string"` // A list of volume definitions in JSON format that containers in your task @@ -4688,6 +5764,36 @@ func (s *RegisterTaskDefinitionInput) Validate() error { return nil } +// SetContainerDefinitions sets the ContainerDefinitions field's value. +func (s *RegisterTaskDefinitionInput) SetContainerDefinitions(v []*ContainerDefinition) *RegisterTaskDefinitionInput { + s.ContainerDefinitions = v + return s +} + +// SetFamily sets the Family field's value. +func (s *RegisterTaskDefinitionInput) SetFamily(v string) *RegisterTaskDefinitionInput { + s.Family = &v + return s +} + +// SetNetworkMode sets the NetworkMode field's value. +func (s *RegisterTaskDefinitionInput) SetNetworkMode(v string) *RegisterTaskDefinitionInput { + s.NetworkMode = &v + return s +} + +// SetTaskRoleArn sets the TaskRoleArn field's value. +func (s *RegisterTaskDefinitionInput) SetTaskRoleArn(v string) *RegisterTaskDefinitionInput { + s.TaskRoleArn = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *RegisterTaskDefinitionInput) SetVolumes(v []*Volume) *RegisterTaskDefinitionInput { + s.Volumes = v + return s +} + type RegisterTaskDefinitionOutput struct { _ struct{} `type:"structure"` @@ -4705,6 +5811,12 @@ func (s RegisterTaskDefinitionOutput) GoString() string { return s.String() } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *RegisterTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *RegisterTaskDefinitionOutput { + s.TaskDefinition = v + return s +} + // Describes the resources available for a container instance. type Resource struct { _ struct{} `type:"structure"` @@ -4741,17 +5853,53 @@ func (s Resource) GoString() string { return s.String() } +// SetDoubleValue sets the DoubleValue field's value. +func (s *Resource) SetDoubleValue(v float64) *Resource { + s.DoubleValue = &v + return s +} + +// SetIntegerValue sets the IntegerValue field's value. +func (s *Resource) SetIntegerValue(v int64) *Resource { + s.IntegerValue = &v + return s +} + +// SetLongValue sets the LongValue field's value. +func (s *Resource) SetLongValue(v int64) *Resource { + s.LongValue = &v + return s +} + +// SetName sets the Name field's value. +func (s *Resource) SetName(v string) *Resource { + s.Name = &v + return s +} + +// SetStringSetValue sets the StringSetValue field's value. +func (s *Resource) SetStringSetValue(v []*string) *Resource { + s.StringSetValue = v + return s +} + +// SetType sets the Type field's value. +func (s *Resource) SetType(v string) *Resource { + s.Type = &v + return s +} + type RunTaskInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster on which // to run your task. If you do not specify a cluster, the default cluster is - // assumed.. + // assumed. Cluster *string `locationName:"cluster" type:"string"` // The number of instantiations of the specified task to place on your cluster. // - // The count parameter is limited to 10 tasks per call. + // The count parameter is limited to 10 tasks per call. Count *int64 `locationName:"count" type:"integer"` // A list of container overrides in JSON format that specify the name of a container @@ -4762,7 +5910,7 @@ type RunTaskInput struct { // or Docker image) on a container or add new environment variables to it with // an environment override. // - // A total of 8192 characters are allowed for overrides. This limit includes + // A total of 8192 characters are allowed for overrides. This limit includes // the JSON formatting characters of the override structure. Overrides *TaskOverride `locationName:"overrides" type:"structure"` @@ -4808,6 +5956,36 @@ func (s *RunTaskInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *RunTaskInput) SetCluster(v string) *RunTaskInput { + s.Cluster = &v + return s +} + +// SetCount sets the Count field's value. +func (s *RunTaskInput) SetCount(v int64) *RunTaskInput { + s.Count = &v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *RunTaskInput) SetOverrides(v *TaskOverride) *RunTaskInput { + s.Overrides = v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *RunTaskInput) SetStartedBy(v string) *RunTaskInput { + s.StartedBy = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *RunTaskInput) SetTaskDefinition(v string) *RunTaskInput { + s.TaskDefinition = &v + return s +} + type RunTaskOutput struct { _ struct{} `type:"structure"` @@ -4829,6 +6007,18 @@ func (s RunTaskOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *RunTaskOutput) SetFailures(v []*Failure) *RunTaskOutput { + s.Failures = v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *RunTaskOutput) SetTasks(v []*Task) *RunTaskOutput { + s.Tasks = v + return s +} + // Details on a service within a cluster type Service struct { _ struct{} `type:"structure"` @@ -4874,7 +6064,7 @@ type Service struct { // The Amazon Resource Name (ARN) that identifies the service. The ARN contains // the arn:aws:ecs namespace, followed by the region of the service, the AWS // account ID of the service owner, the service namespace, and then the service - // name. For example, arn:aws:ecs:region:012345678910:service/my-service . + // name. For example, arn:aws:ecs:region:012345678910:service/my-service. ServiceArn *string `locationName:"serviceArn" type:"string"` // The name of your service. Up to 255 letters (uppercase and lowercase), numbers, @@ -4902,6 +6092,90 @@ func (s Service) GoString() string { return s.String() } +// SetClusterArn sets the ClusterArn field's value. +func (s *Service) SetClusterArn(v string) *Service { + s.ClusterArn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Service) SetCreatedAt(v time.Time) *Service { + s.CreatedAt = &v + return s +} + +// SetDeploymentConfiguration sets the DeploymentConfiguration field's value. +func (s *Service) SetDeploymentConfiguration(v *DeploymentConfiguration) *Service { + s.DeploymentConfiguration = v + return s +} + +// SetDeployments sets the Deployments field's value. +func (s *Service) SetDeployments(v []*Deployment) *Service { + s.Deployments = v + return s +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *Service) SetDesiredCount(v int64) *Service { + s.DesiredCount = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *Service) SetEvents(v []*ServiceEvent) *Service { + s.Events = v + return s +} + +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *Service) SetLoadBalancers(v []*LoadBalancer) *Service { + s.LoadBalancers = v + return s +} + +// SetPendingCount sets the PendingCount field's value. +func (s *Service) SetPendingCount(v int64) *Service { + s.PendingCount = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Service) SetRoleArn(v string) *Service { + s.RoleArn = &v + return s +} + +// SetRunningCount sets the RunningCount field's value. +func (s *Service) SetRunningCount(v int64) *Service { + s.RunningCount = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *Service) SetServiceArn(v string) *Service { + s.ServiceArn = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *Service) SetServiceName(v string) *Service { + s.ServiceName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Service) SetStatus(v string) *Service { + s.Status = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *Service) SetTaskDefinition(v string) *Service { + s.TaskDefinition = &v + return s +} + // Details on an event associated with a service. type ServiceEvent struct { _ struct{} `type:"structure"` @@ -4926,18 +6200,36 @@ func (s ServiceEvent) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *ServiceEvent) SetCreatedAt(v time.Time) *ServiceEvent { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *ServiceEvent) SetId(v string) *ServiceEvent { + s.Id = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ServiceEvent) SetMessage(v string) *ServiceEvent { + s.Message = &v + return s +} + type StartTaskInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster on which // to start your task. If you do not specify a cluster, the default cluster - // is assumed.. + // is assumed. Cluster *string `locationName:"cluster" type:"string"` // The container instance IDs or full Amazon Resource Name (ARN) entries for // the container instances on which you would like to place your task. // - // The list of container instances to start tasks on is limited to 10. + // The list of container instances to start tasks on is limited to 10. // // ContainerInstances is a required field ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"` @@ -4950,7 +6242,7 @@ type StartTaskInput struct { // or Docker image) on a container or add new environment variables to it with // an environment override. // - // A total of 8192 characters are allowed for overrides. This limit includes + // A total of 8192 characters are allowed for overrides. This limit includes // the JSON formatting characters of the override structure. Overrides *TaskOverride `locationName:"overrides" type:"structure"` @@ -4999,6 +6291,36 @@ func (s *StartTaskInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *StartTaskInput) SetCluster(v string) *StartTaskInput { + s.Cluster = &v + return s +} + +// SetContainerInstances sets the ContainerInstances field's value. +func (s *StartTaskInput) SetContainerInstances(v []*string) *StartTaskInput { + s.ContainerInstances = v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *StartTaskInput) SetOverrides(v *TaskOverride) *StartTaskInput { + s.Overrides = v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *StartTaskInput) SetStartedBy(v string) *StartTaskInput { + s.StartedBy = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *StartTaskInput) SetTaskDefinition(v string) *StartTaskInput { + s.TaskDefinition = &v + return s +} + type StartTaskOutput struct { _ struct{} `type:"structure"` @@ -5020,12 +6342,24 @@ func (s StartTaskOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *StartTaskOutput) SetFailures(v []*Failure) *StartTaskOutput { + s.Failures = v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *StartTaskOutput) SetTasks(v []*Task) *StartTaskOutput { + s.Tasks = v + return s +} + type StopTaskInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the task to stop. If you do not specify a cluster, the default cluster is - // assumed.. + // assumed. Cluster *string `locationName:"cluster" type:"string"` // An optional message specified when a task is stopped. For example, if you @@ -5063,6 +6397,24 @@ func (s *StopTaskInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *StopTaskInput) SetCluster(v string) *StopTaskInput { + s.Cluster = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *StopTaskInput) SetReason(v string) *StopTaskInput { + s.Reason = &v + return s +} + +// SetTask sets the Task field's value. +func (s *StopTaskInput) SetTask(v string) *StopTaskInput { + s.Task = &v + return s +} + type StopTaskOutput struct { _ struct{} `type:"structure"` @@ -5080,6 +6432,12 @@ func (s StopTaskOutput) GoString() string { return s.String() } +// SetTask sets the Task field's value. +func (s *StopTaskOutput) SetTask(v *Task) *StopTaskOutput { + s.Task = v + return s +} + type SubmitContainerStateChangeInput struct { _ struct{} `type:"structure"` @@ -5117,6 +6475,48 @@ func (s SubmitContainerStateChangeInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *SubmitContainerStateChangeInput) SetCluster(v string) *SubmitContainerStateChangeInput { + s.Cluster = &v + return s +} + +// SetContainerName sets the ContainerName field's value. +func (s *SubmitContainerStateChangeInput) SetContainerName(v string) *SubmitContainerStateChangeInput { + s.ContainerName = &v + return s +} + +// SetExitCode sets the ExitCode field's value. +func (s *SubmitContainerStateChangeInput) SetExitCode(v int64) *SubmitContainerStateChangeInput { + s.ExitCode = &v + return s +} + +// SetNetworkBindings sets the NetworkBindings field's value. +func (s *SubmitContainerStateChangeInput) SetNetworkBindings(v []*NetworkBinding) *SubmitContainerStateChangeInput { + s.NetworkBindings = v + return s +} + +// SetReason sets the Reason field's value. +func (s *SubmitContainerStateChangeInput) SetReason(v string) *SubmitContainerStateChangeInput { + s.Reason = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SubmitContainerStateChangeInput) SetStatus(v string) *SubmitContainerStateChangeInput { + s.Status = &v + return s +} + +// SetTask sets the Task field's value. +func (s *SubmitContainerStateChangeInput) SetTask(v string) *SubmitContainerStateChangeInput { + s.Task = &v + return s +} + type SubmitContainerStateChangeOutput struct { _ struct{} `type:"structure"` @@ -5134,6 +6534,12 @@ func (s SubmitContainerStateChangeOutput) GoString() string { return s.String() } +// SetAcknowledgment sets the Acknowledgment field's value. +func (s *SubmitContainerStateChangeOutput) SetAcknowledgment(v string) *SubmitContainerStateChangeOutput { + s.Acknowledgment = &v + return s +} + type SubmitTaskStateChangeInput struct { _ struct{} `type:"structure"` @@ -5162,6 +6568,30 @@ func (s SubmitTaskStateChangeInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *SubmitTaskStateChangeInput) SetCluster(v string) *SubmitTaskStateChangeInput { + s.Cluster = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *SubmitTaskStateChangeInput) SetReason(v string) *SubmitTaskStateChangeInput { + s.Reason = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SubmitTaskStateChangeInput) SetStatus(v string) *SubmitTaskStateChangeInput { + s.Status = &v + return s +} + +// SetTask sets the Task field's value. +func (s *SubmitTaskStateChangeInput) SetTask(v string) *SubmitTaskStateChangeInput { + s.Task = &v + return s +} + type SubmitTaskStateChangeOutput struct { _ struct{} `type:"structure"` @@ -5179,6 +6609,12 @@ func (s SubmitTaskStateChangeOutput) GoString() string { return s.String() } +// SetAcknowledgment sets the Acknowledgment field's value. +func (s *SubmitTaskStateChangeOutput) SetAcknowledgment(v string) *SubmitTaskStateChangeOutput { + s.Acknowledgment = &v + return s +} + // Details on a task in a cluster. type Task struct { _ struct{} `type:"structure"` @@ -5238,6 +6674,84 @@ func (s Task) GoString() string { return s.String() } +// SetClusterArn sets the ClusterArn field's value. +func (s *Task) SetClusterArn(v string) *Task { + s.ClusterArn = &v + return s +} + +// SetContainerInstanceArn sets the ContainerInstanceArn field's value. +func (s *Task) SetContainerInstanceArn(v string) *Task { + s.ContainerInstanceArn = &v + return s +} + +// SetContainers sets the Containers field's value. +func (s *Task) SetContainers(v []*Container) *Task { + s.Containers = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Task) SetCreatedAt(v time.Time) *Task { + s.CreatedAt = &v + return s +} + +// SetDesiredStatus sets the DesiredStatus field's value. +func (s *Task) SetDesiredStatus(v string) *Task { + s.DesiredStatus = &v + return s +} + +// SetLastStatus sets the LastStatus field's value. +func (s *Task) SetLastStatus(v string) *Task { + s.LastStatus = &v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *Task) SetOverrides(v *TaskOverride) *Task { + s.Overrides = v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *Task) SetStartedAt(v time.Time) *Task { + s.StartedAt = &v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *Task) SetStartedBy(v string) *Task { + s.StartedBy = &v + return s +} + +// SetStoppedAt sets the StoppedAt field's value. +func (s *Task) SetStoppedAt(v time.Time) *Task { + s.StoppedAt = &v + return s +} + +// SetStoppedReason sets the StoppedReason field's value. +func (s *Task) SetStoppedReason(v string) *Task { + s.StoppedReason = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *Task) SetTaskArn(v string) *Task { + s.TaskArn = &v + return s +} + +// SetTaskDefinitionArn sets the TaskDefinitionArn field's value. +func (s *Task) SetTaskDefinitionArn(v string) *Task { + s.TaskDefinitionArn = &v + return s +} + // Details of a task definition. type TaskDefinition struct { _ struct{} `type:"structure"` @@ -5300,6 +6814,60 @@ func (s TaskDefinition) GoString() string { return s.String() } +// SetContainerDefinitions sets the ContainerDefinitions field's value. +func (s *TaskDefinition) SetContainerDefinitions(v []*ContainerDefinition) *TaskDefinition { + s.ContainerDefinitions = v + return s +} + +// SetFamily sets the Family field's value. +func (s *TaskDefinition) SetFamily(v string) *TaskDefinition { + s.Family = &v + return s +} + +// SetNetworkMode sets the NetworkMode field's value. +func (s *TaskDefinition) SetNetworkMode(v string) *TaskDefinition { + s.NetworkMode = &v + return s +} + +// SetRequiresAttributes sets the RequiresAttributes field's value. +func (s *TaskDefinition) SetRequiresAttributes(v []*Attribute) *TaskDefinition { + s.RequiresAttributes = v + return s +} + +// SetRevision sets the Revision field's value. +func (s *TaskDefinition) SetRevision(v int64) *TaskDefinition { + s.Revision = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TaskDefinition) SetStatus(v string) *TaskDefinition { + s.Status = &v + return s +} + +// SetTaskDefinitionArn sets the TaskDefinitionArn field's value. +func (s *TaskDefinition) SetTaskDefinitionArn(v string) *TaskDefinition { + s.TaskDefinitionArn = &v + return s +} + +// SetTaskRoleArn sets the TaskRoleArn field's value. +func (s *TaskDefinition) SetTaskRoleArn(v string) *TaskDefinition { + s.TaskRoleArn = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *TaskDefinition) SetVolumes(v []*Volume) *TaskDefinition { + s.Volumes = v + return s +} + // The overrides associated with a task. type TaskOverride struct { _ struct{} `type:"structure"` @@ -5323,6 +6891,18 @@ func (s TaskOverride) GoString() string { return s.String() } +// SetContainerOverrides sets the ContainerOverrides field's value. +func (s *TaskOverride) SetContainerOverrides(v []*ContainerOverride) *TaskOverride { + s.ContainerOverrides = v + return s +} + +// SetTaskRoleArn sets the TaskRoleArn field's value. +func (s *TaskOverride) SetTaskRoleArn(v string) *TaskOverride { + s.TaskRoleArn = &v + return s +} + // The ulimit settings to pass to the container. type Ulimit struct { _ struct{} `type:"structure"` @@ -5372,6 +6952,24 @@ func (s *Ulimit) Validate() error { return nil } +// SetHardLimit sets the HardLimit field's value. +func (s *Ulimit) SetHardLimit(v int64) *Ulimit { + s.HardLimit = &v + return s +} + +// SetName sets the Name field's value. +func (s *Ulimit) SetName(v string) *Ulimit { + s.Name = &v + return s +} + +// SetSoftLimit sets the SoftLimit field's value. +func (s *Ulimit) SetSoftLimit(v int64) *Ulimit { + s.SoftLimit = &v + return s +} + type UpdateContainerAgentInput struct { _ struct{} `type:"structure"` @@ -5411,6 +7009,18 @@ func (s *UpdateContainerAgentInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *UpdateContainerAgentInput) SetCluster(v string) *UpdateContainerAgentInput { + s.Cluster = &v + return s +} + +// SetContainerInstance sets the ContainerInstance field's value. +func (s *UpdateContainerAgentInput) SetContainerInstance(v string) *UpdateContainerAgentInput { + s.ContainerInstance = &v + return s +} + type UpdateContainerAgentOutput struct { _ struct{} `type:"structure"` @@ -5429,6 +7039,12 @@ func (s UpdateContainerAgentOutput) GoString() string { return s.String() } +// SetContainerInstance sets the ContainerInstance field's value. +func (s *UpdateContainerAgentOutput) SetContainerInstance(v *ContainerInstance) *UpdateContainerAgentOutput { + s.ContainerInstance = v + return s +} + type UpdateServiceInput struct { _ struct{} `type:"structure"` @@ -5481,6 +7097,36 @@ func (s *UpdateServiceInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *UpdateServiceInput) SetCluster(v string) *UpdateServiceInput { + s.Cluster = &v + return s +} + +// SetDeploymentConfiguration sets the DeploymentConfiguration field's value. +func (s *UpdateServiceInput) SetDeploymentConfiguration(v *DeploymentConfiguration) *UpdateServiceInput { + s.DeploymentConfiguration = v + return s +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *UpdateServiceInput) SetDesiredCount(v int64) *UpdateServiceInput { + s.DesiredCount = &v + return s +} + +// SetService sets the Service field's value. +func (s *UpdateServiceInput) SetService(v string) *UpdateServiceInput { + s.Service = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *UpdateServiceInput) SetTaskDefinition(v string) *UpdateServiceInput { + s.TaskDefinition = &v + return s +} + type UpdateServiceOutput struct { _ struct{} `type:"structure"` @@ -5498,6 +7144,12 @@ func (s UpdateServiceOutput) GoString() string { return s.String() } +// SetService sets the Service field's value. +func (s *UpdateServiceOutput) SetService(v *Service) *UpdateServiceOutput { + s.Service = v + return s +} + // The Docker and Amazon ECS container agent version information about a container // instance. type VersionInfo struct { @@ -5524,6 +7176,24 @@ func (s VersionInfo) GoString() string { return s.String() } +// SetAgentHash sets the AgentHash field's value. +func (s *VersionInfo) SetAgentHash(v string) *VersionInfo { + s.AgentHash = &v + return s +} + +// SetAgentVersion sets the AgentVersion field's value. +func (s *VersionInfo) SetAgentVersion(v string) *VersionInfo { + s.AgentVersion = &v + return s +} + +// SetDockerVersion sets the DockerVersion field's value. +func (s *VersionInfo) SetDockerVersion(v string) *VersionInfo { + s.DockerVersion = &v + return s +} + // A data volume used in a task definition. type Volume struct { _ struct{} `type:"structure"` @@ -5551,6 +7221,18 @@ func (s Volume) GoString() string { return s.String() } +// SetHost sets the Host field's value. +func (s *Volume) SetHost(v *HostVolumeProperties) *Volume { + s.Host = v + return s +} + +// SetName sets the Name field's value. +func (s *Volume) SetName(v string) *Volume { + s.Name = &v + return s +} + // Details on a data volume from another container. type VolumeFrom struct { _ struct{} `type:"structure"` @@ -5574,6 +7256,18 @@ func (s VolumeFrom) GoString() string { return s.String() } +// SetReadOnly sets the ReadOnly field's value. +func (s *VolumeFrom) SetReadOnly(v bool) *VolumeFrom { + s.ReadOnly = &v + return s +} + +// SetSourceContainer sets the SourceContainer field's value. +func (s *VolumeFrom) SetSourceContainer(v string) *VolumeFrom { + s.SourceContainer = &v + return s +} + const ( // AgentUpdateStatusPending is a AgentUpdateStatus enum value AgentUpdateStatusPending = "PENDING" diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/api.go b/vendor/github.com/aws/aws-sdk-go/service/efs/api.go index f05c8fb2c..afc67071c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/api.go @@ -64,18 +64,18 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // not currently exist that is owned by the caller's AWS account with the specified // creation token, this operation does the following: // -// Creates a new, empty file system. The file system will have an Amazon -// EFS assigned ID, and an initial lifecycle state creating. +// * Creates a new, empty file system. The file system will have an Amazon +// EFS assigned ID, and an initial lifecycle state creating. // -// Returns with the description of the created file system. +// * Returns with the description of the created file system. // -// Otherwise, this operation returns a FileSystemAlreadyExists error with -// the ID of the existing file system. +// Otherwise, this operation returns a FileSystemAlreadyExists error with the +// ID of the existing file system. // -// For basic use cases, you can use a randomly generated UUID for the creation +// For basic use cases, you can use a randomly generated UUID for the creation // token. // -// The idempotent operation allows you to retry a CreateFileSystem call without +// The idempotent operation allows you to retry a CreateFileSystem call without // risk of creating an extra file system. This can happen when an initial call // fails in a way that leaves it uncertain whether or not a file system was // actually created. An example might be that a transport level timeout occurred @@ -83,12 +83,12 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // if the initial call had succeeded in creating a file system, the client can // learn of its existence from the FileSystemAlreadyExists error. // -// The CreateFileSystem call returns while the file system's lifecycle state +// The CreateFileSystem call returns while the file system's lifecycle state // is still creating. You can check the file system creation status by calling // the DescribeFileSystems operation, which among other things returns the file // system state. // -// This operation also takes an optional PerformanceMode parameter that you +// This operation also takes an optional PerformanceMode parameter that you // choose for your file system. We recommend generalPurpose performance mode // for most file systems. File systems using the maxIO performance mode can // scale to higher levels of aggregate throughput and operations per second @@ -102,7 +102,7 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // You mount your Amazon EFS file system on an EC2 instances in your VPC via // the mount target. For more information, see Amazon EFS: How it Works (http://docs.aws.amazon.com/efs/latest/ug/how-it-works.html). // -// This operation requires permissions for the elasticfilesystem:CreateFileSystem +// This operation requires permissions for the elasticfilesystem:CreateFileSystem // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -195,14 +195,14 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // // In the request, you also provide a subnet ID, which determines the following: // -// VPC in which Amazon EFS creates the mount target +// * VPC in which Amazon EFS creates the mount target // -// Availability Zone in which Amazon EFS creates the mount target +// * Availability Zone in which Amazon EFS creates the mount target // -// IP address range from which Amazon EFS selects the IP address of the mount -// target (if you don't specify an IP address in the request) +// * IP address range from which Amazon EFS selects the IP address of the +// mount target (if you don't specify an IP address in the request) // -// After creating the mount target, Amazon EFS returns a response that includes, +// After creating the mount target, Amazon EFS returns a response that includes, // a MountTargetId and an IpAddress. You use this IP address when mounting the // file system in an EC2 instance. You can also use the mount target's DNS name // when mounting the file system. The EC2 instance on which you mount the file @@ -216,44 +216,44 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // subnet specified in the request to add another mount target must meet the // following requirements: // -// Must belong to the same VPC as the subnets of the existing mount targets +// * Must belong to the same VPC as the subnets of the existing mount targets // -// Must not be in the same Availability Zone as any of the subnets of the -// existing mount targets +// * Must not be in the same Availability Zone as any of the subnets of the +// existing mount targets // -// If the request satisfies the requirements, Amazon EFS does the following: +// If the request satisfies the requirements, Amazon EFS does the following: // -// Creates a new mount target in the specified subnet. +// * Creates a new mount target in the specified subnet. // -// Also creates a new network interface in the subnet as follows: +// * Also creates a new network interface in the subnet as follows: // -// If the request provides an IpAddress, Amazon EFS assigns that IP address -// to the network interface. Otherwise, Amazon EFS assigns a free address in -// the subnet (in the same way that the Amazon EC2 CreateNetworkInterface call -// does when a request does not specify a primary private IP address). +// If the request provides an IpAddress, Amazon EFS assigns that IP address +// to the network interface. Otherwise, Amazon EFS assigns a free address +// in the subnet (in the same way that the Amazon EC2 CreateNetworkInterface +// call does when a request does not specify a primary private IP address). // -// If the request provides SecurityGroups, this network interface is associated -// with those security groups. Otherwise, it belongs to the default security -// group for the subnet's VPC. +// If the request provides SecurityGroups, this network interface is associated +// with those security groups. Otherwise, it belongs to the default security +// group for the subnet's VPC. // -// Assigns the description Mount target fsmt-id for file system fs-id where -// fsmt-id is the mount target ID, and fs-id is the FileSystemId. +// Assigns the description Mount target fsmt-id for file system fs-id where +// fsmt-id is the mount target ID, and fs-id is the FileSystemId. // -// Sets the requesterManaged property of the network interface to true, and -// the requesterId value to EFS. +// Sets the requesterManaged property of the network interface to true, and +// the requesterId value to EFS. // -// Each Amazon EFS mount target has one corresponding requestor-managed EC2 -// network interface. After the network interface is created, Amazon EFS sets -// the NetworkInterfaceId field in the mount target's description to the network -// interface ID, and the IpAddress field to its address. If network interface -// creation fails, the entire CreateMountTarget operation fails. +// Each Amazon EFS mount target has one corresponding requestor-managed EC2 +// network interface. After the network interface is created, Amazon EFS +// sets the NetworkInterfaceId field in the mount target's description to +// the network interface ID, and the IpAddress field to its address. If network +// interface creation fails, the entire CreateMountTarget operation fails. // -// The CreateMountTarget call returns only after creating the network interface, +// The CreateMountTarget call returns only after creating the network interface, // but while the mount target state is still creating. You can check the mount // target creation status by calling the DescribeFileSystems operation, which // among other things returns the mount target state. // -// We recommend you create a mount target in each of the Availability Zones. +// We recommend you create a mount target in each of the Availability Zones. // There are cost considerations for using a file system in an Availability // Zone through a mount target created in another Availability Zone. For more // information, see Amazon EFS (http://aws.amazon.com/efs/). In addition, by @@ -265,16 +265,15 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // This operation requires permissions for the following action on the file // system: // -// elasticfilesystem:CreateMountTarget +// * elasticfilesystem:CreateMountTarget // -// This operation also requires permissions for the following Amazon EC2 -// actions: +// This operation also requires permissions for the following Amazon EC2 actions: // -// ec2:DescribeSubnets +// * ec2:DescribeSubnets // -// ec2:DescribeNetworkInterfaces +// * ec2:DescribeNetworkInterfaces // -// ec2:CreateNetworkInterface +// * ec2:CreateNetworkInterface // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -390,8 +389,7 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // If you add the Name tag to your file system, Amazon EFS returns it in the // response to the DescribeFileSystems operation. // -// This operation requires permission for the elasticfilesystem:CreateTags -// action. +// This operation requires permission for the elasticfilesystem:CreateTags action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -469,17 +467,17 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques // return, the file system no longer exists and you can't access any contents // of the deleted file system. // -// You can't delete a file system that is in use. That is, if the file system +// You can't delete a file system that is in use. That is, if the file system // has any mount targets, you must first delete them. For more information, // see DescribeMountTargets and DeleteMountTarget. // -// The DeleteFileSystem call returns while the file system state is still -// deleting. You can check the file system deletion status by calling the DescribeFileSystems +// The DeleteFileSystem call returns while the file system state is still deleting. +// You can check the file system deletion status by calling the DescribeFileSystems // operation, which returns a list of file systems in your account. If you pass // file system ID or creation token for the deleted file system, the DescribeFileSystems // returns a 404 FileSystemNotFound error. // -// This operation requires permissions for the elasticfilesystem:DeleteFileSystem +// This operation requires permissions for the elasticfilesystem:DeleteFileSystem // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -571,17 +569,17 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ // This operation requires permissions for the following action on the file // system: // -// elasticfilesystem:DeleteMountTarget +// * elasticfilesystem:DeleteMountTarget // -// The DeleteMountTarget call returns while the mount target state is still +// The DeleteMountTarget call returns while the mount target state is still // deleting. You can check the mount target deletion by calling the DescribeMountTargets // operation, which returns a list of mount target descriptions for the given // file system. // -// The operation also requires permissions for the following Amazon EC2 action +// The operation also requires permissions for the following Amazon EC2 action // on the mount target's network interface: // -// ec2:DeleteNetworkInterface +// * ec2:DeleteNetworkInterface // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -743,7 +741,7 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // returns descriptions of all file systems owned by the caller's AWS account // in the AWS Region of the endpoint that you're calling. // -// When retrieving all file system descriptions, you can optionally specify +// When retrieving all file system descriptions, you can optionally specify // the MaxItems parameter to limit the number of descriptions in a response. // If more file system descriptions remain, Amazon EFS returns a NextMarker, // an opaque token, in the response. In this case, you should send a subsequent @@ -758,11 +756,11 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // The implementation may return fewer than MaxItems file system descriptions // while still including a NextMarker value. // -// The order of file systems returned in the response of one DescribeFileSystems +// The order of file systems returned in the response of one DescribeFileSystems // call and the order of file systems returned across the responses of a multi-call // iteration is unspecified. // -// This operation requires permissions for the elasticfilesystem:DescribeFileSystems +// This operation requires permissions for the elasticfilesystem:DescribeFileSystems // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -841,11 +839,11 @@ func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTarge // // This operation requires permissions for the following actions: // -// elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount -// target's file system. +// * elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount +// target's file system. // -// ec2:DescribeNetworkInterfaceAttribute action on the mount target's network -// interface. +// * ec2:DescribeNetworkInterfaceAttribute action on the mount target's network +// interface. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1006,7 +1004,7 @@ func (c *EFS) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques // in the response of one DescribeTags call and the order of tags returned across // the responses of a multi-call iteration (when using pagination) is unspecified. // -// This operation requires permissions for the elasticfilesystem:DescribeTags +// This operation requires permissions for the elasticfilesystem:DescribeTags // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1092,11 +1090,11 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec // // The operation requires permissions for the following actions: // -// elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount -// target's file system. +// * elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount +// target's file system. // -// ec2:ModifyNetworkInterfaceAttribute action on the mount target's network -// interface. +// * ec2:ModifyNetworkInterfaceAttribute action on the mount target's network +// interface. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1177,6 +1175,18 @@ func (s *CreateFileSystemInput) Validate() error { return nil } +// SetCreationToken sets the CreationToken field's value. +func (s *CreateFileSystemInput) SetCreationToken(v string) *CreateFileSystemInput { + s.CreationToken = &v + return s +} + +// SetPerformanceMode sets the PerformanceMode field's value. +func (s *CreateFileSystemInput) SetPerformanceMode(v string) *CreateFileSystemInput { + s.PerformanceMode = &v + return s +} + type CreateMountTargetInput struct { _ struct{} `type:"structure"` @@ -1224,6 +1234,30 @@ func (s *CreateMountTargetInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *CreateMountTargetInput) SetFileSystemId(v string) *CreateMountTargetInput { + s.FileSystemId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *CreateMountTargetInput) SetIpAddress(v string) *CreateMountTargetInput { + s.IpAddress = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateMountTargetInput) SetSecurityGroups(v []*string) *CreateMountTargetInput { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateMountTargetInput) SetSubnetId(v string) *CreateMountTargetInput { + s.SubnetId = &v + return s +} + type CreateTagsInput struct { _ struct{} `type:"structure"` @@ -1275,6 +1309,18 @@ func (s *CreateTagsInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *CreateTagsInput) SetFileSystemId(v string) *CreateTagsInput { + s.FileSystemId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { + s.Tags = v + return s +} + type CreateTagsOutput struct { _ struct{} `type:"structure"` } @@ -1321,6 +1367,12 @@ func (s *DeleteFileSystemInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *DeleteFileSystemInput) SetFileSystemId(v string) *DeleteFileSystemInput { + s.FileSystemId = &v + return s +} + type DeleteFileSystemOutput struct { _ struct{} `type:"structure"` } @@ -1367,6 +1419,12 @@ func (s *DeleteMountTargetInput) Validate() error { return nil } +// SetMountTargetId sets the MountTargetId field's value. +func (s *DeleteMountTargetInput) SetMountTargetId(v string) *DeleteMountTargetInput { + s.MountTargetId = &v + return s +} + type DeleteMountTargetOutput struct { _ struct{} `type:"structure"` } @@ -1421,6 +1479,18 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *DeleteTagsInput) SetFileSystemId(v string) *DeleteTagsInput { + s.FileSystemId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { + s.TagKeys = v + return s +} + type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -1485,6 +1555,30 @@ func (s *DescribeFileSystemsInput) Validate() error { return nil } +// SetCreationToken sets the CreationToken field's value. +func (s *DescribeFileSystemsInput) SetCreationToken(v string) *DescribeFileSystemsInput { + s.CreationToken = &v + return s +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *DescribeFileSystemsInput) SetFileSystemId(v string) *DescribeFileSystemsInput { + s.FileSystemId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeFileSystemsInput) SetMarker(v string) *DescribeFileSystemsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DescribeFileSystemsInput) SetMaxItems(v int64) *DescribeFileSystemsInput { + s.MaxItems = &v + return s +} + type DescribeFileSystemsOutput struct { _ struct{} `type:"structure"` @@ -1509,6 +1603,24 @@ func (s DescribeFileSystemsOutput) GoString() string { return s.String() } +// SetFileSystems sets the FileSystems field's value. +func (s *DescribeFileSystemsOutput) SetFileSystems(v []*FileSystemDescription) *DescribeFileSystemsOutput { + s.FileSystems = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeFileSystemsOutput) SetMarker(v string) *DescribeFileSystemsOutput { + s.Marker = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeFileSystemsOutput) SetNextMarker(v string) *DescribeFileSystemsOutput { + s.NextMarker = &v + return s +} + type DescribeMountTargetSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -1541,6 +1653,12 @@ func (s *DescribeMountTargetSecurityGroupsInput) Validate() error { return nil } +// SetMountTargetId sets the MountTargetId field's value. +func (s *DescribeMountTargetSecurityGroupsInput) SetMountTargetId(v string) *DescribeMountTargetSecurityGroupsInput { + s.MountTargetId = &v + return s +} + type DescribeMountTargetSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -1560,6 +1678,12 @@ func (s DescribeMountTargetSecurityGroupsOutput) GoString() string { return s.String() } +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *DescribeMountTargetSecurityGroupsOutput) SetSecurityGroups(v []*string) *DescribeMountTargetSecurityGroupsOutput { + s.SecurityGroups = v + return s +} + type DescribeMountTargetsInput struct { _ struct{} `type:"structure"` @@ -1604,6 +1728,30 @@ func (s *DescribeMountTargetsInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *DescribeMountTargetsInput) SetFileSystemId(v string) *DescribeMountTargetsInput { + s.FileSystemId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeMountTargetsInput) SetMarker(v string) *DescribeMountTargetsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DescribeMountTargetsInput) SetMaxItems(v int64) *DescribeMountTargetsInput { + s.MaxItems = &v + return s +} + +// SetMountTargetId sets the MountTargetId field's value. +func (s *DescribeMountTargetsInput) SetMountTargetId(v string) *DescribeMountTargetsInput { + s.MountTargetId = &v + return s +} + type DescribeMountTargetsOutput struct { _ struct{} `type:"structure"` @@ -1631,6 +1779,24 @@ func (s DescribeMountTargetsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeMountTargetsOutput) SetMarker(v string) *DescribeMountTargetsOutput { + s.Marker = &v + return s +} + +// SetMountTargets sets the MountTargets field's value. +func (s *DescribeMountTargetsOutput) SetMountTargets(v []*MountTargetDescription) *DescribeMountTargetsOutput { + s.MountTargets = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeMountTargetsOutput) SetNextMarker(v string) *DescribeMountTargetsOutput { + s.NextMarker = &v + return s +} + type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -1675,6 +1841,24 @@ func (s *DescribeTagsInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *DescribeTagsInput) SetFileSystemId(v string) *DescribeTagsInput { + s.FileSystemId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTagsInput) SetMarker(v string) *DescribeTagsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DescribeTagsInput) SetMaxItems(v int64) *DescribeTagsInput { + s.MaxItems = &v + return s +} + type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -1703,6 +1887,24 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTagsOutput) SetMarker(v string) *DescribeTagsOutput { + s.Marker = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeTagsOutput) SetNextMarker(v string) *DescribeTagsOutput { + s.NextMarker = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeTagsOutput) SetTags(v []*Tag) *DescribeTagsOutput { + s.Tags = v + return s +} + // Description of the file system. type FileSystemDescription struct { _ struct{} `type:"structure"` @@ -1773,6 +1975,60 @@ func (s FileSystemDescription) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *FileSystemDescription) SetCreationTime(v time.Time) *FileSystemDescription { + s.CreationTime = &v + return s +} + +// SetCreationToken sets the CreationToken field's value. +func (s *FileSystemDescription) SetCreationToken(v string) *FileSystemDescription { + s.CreationToken = &v + return s +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *FileSystemDescription) SetFileSystemId(v string) *FileSystemDescription { + s.FileSystemId = &v + return s +} + +// SetLifeCycleState sets the LifeCycleState field's value. +func (s *FileSystemDescription) SetLifeCycleState(v string) *FileSystemDescription { + s.LifeCycleState = &v + return s +} + +// SetName sets the Name field's value. +func (s *FileSystemDescription) SetName(v string) *FileSystemDescription { + s.Name = &v + return s +} + +// SetNumberOfMountTargets sets the NumberOfMountTargets field's value. +func (s *FileSystemDescription) SetNumberOfMountTargets(v int64) *FileSystemDescription { + s.NumberOfMountTargets = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *FileSystemDescription) SetOwnerId(v string) *FileSystemDescription { + s.OwnerId = &v + return s +} + +// SetPerformanceMode sets the PerformanceMode field's value. +func (s *FileSystemDescription) SetPerformanceMode(v string) *FileSystemDescription { + s.PerformanceMode = &v + return s +} + +// SetSizeInBytes sets the SizeInBytes field's value. +func (s *FileSystemDescription) SetSizeInBytes(v *FileSystemSize) *FileSystemDescription { + s.SizeInBytes = v + return s +} + // Latest known metered size (in bytes) of data stored in the file system, in // its Value field, and the time at which that size was determined in its Timestamp // field. Note that the value does not represent the size of a consistent snapshot @@ -1804,6 +2060,18 @@ func (s FileSystemSize) GoString() string { return s.String() } +// SetTimestamp sets the Timestamp field's value. +func (s *FileSystemSize) SetTimestamp(v time.Time) *FileSystemSize { + s.Timestamp = &v + return s +} + +// SetValue sets the Value field's value. +func (s *FileSystemSize) SetValue(v int64) *FileSystemSize { + s.Value = &v + return s +} + type ModifyMountTargetSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -1839,6 +2107,18 @@ func (s *ModifyMountTargetSecurityGroupsInput) Validate() error { return nil } +// SetMountTargetId sets the MountTargetId field's value. +func (s *ModifyMountTargetSecurityGroupsInput) SetMountTargetId(v string) *ModifyMountTargetSecurityGroupsInput { + s.MountTargetId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *ModifyMountTargetSecurityGroupsInput) SetSecurityGroups(v []*string) *ModifyMountTargetSecurityGroupsInput { + s.SecurityGroups = v + return s +} + type ModifyMountTargetSecurityGroupsOutput struct { _ struct{} `type:"structure"` } @@ -1898,6 +2178,48 @@ func (s MountTargetDescription) GoString() string { return s.String() } +// SetFileSystemId sets the FileSystemId field's value. +func (s *MountTargetDescription) SetFileSystemId(v string) *MountTargetDescription { + s.FileSystemId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *MountTargetDescription) SetIpAddress(v string) *MountTargetDescription { + s.IpAddress = &v + return s +} + +// SetLifeCycleState sets the LifeCycleState field's value. +func (s *MountTargetDescription) SetLifeCycleState(v string) *MountTargetDescription { + s.LifeCycleState = &v + return s +} + +// SetMountTargetId sets the MountTargetId field's value. +func (s *MountTargetDescription) SetMountTargetId(v string) *MountTargetDescription { + s.MountTargetId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *MountTargetDescription) SetNetworkInterfaceId(v string) *MountTargetDescription { + s.NetworkInterfaceId = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *MountTargetDescription) SetOwnerId(v string) *MountTargetDescription { + s.OwnerId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *MountTargetDescription) SetSubnetId(v string) *MountTargetDescription { + s.SubnetId = &v + return s +} + // A tag is a key-value pair. Allowed characters: letters, whitespace, and numbers, // representable in UTF-8, and the following characters: + - = . _ : / type Tag struct { @@ -1943,6 +2265,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + const ( // LifeCycleStateCreating is a LifeCycleState enum value LifeCycleStateCreating = "creating" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go index 3afba309c..1f9b9d290 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go @@ -61,12 +61,12 @@ func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (r // tag is a key-value pair where the key and value are case-sensitive. You can // use cost allocation tags to categorize and track your AWS costs. // -// When you apply tags to your ElastiCache resources, AWS generates a cost -// allocation report as a comma-separated value (CSV) file with your usage and -// costs aggregated by your tags. You can apply tags that represent business -// categories (such as cost centers, application names, or owners) to organize -// your costs across multiple services. For more information, see Using Cost -// Allocation Tags in Amazon ElastiCache (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Tagging.html) +// When you apply tags to your ElastiCache resources, AWS generates a cost allocation +// report as a comma-separated value (CSV) file with your usage and costs aggregated +// by your tags. You can apply tags that represent business categories (such +// as cost centers, application names, or owners) to organize your costs across +// multiple services. For more information, see Using Cost Allocation Tags in +// Amazon ElastiCache (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Tagging.html) // in the ElastiCache User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -146,7 +146,7 @@ func (c *ElastiCache) AuthorizeCacheSecurityGroupIngressRequest(input *Authorize // must be running on Amazon EC2, and Amazon EC2 security groups are used as // the authorization mechanism. // -// You cannot authorize ingress from an Amazon EC2 security group in one region +// You cannot authorize ingress from an Amazon EC2 security group in one region // to an ElastiCache cluster in another region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -227,66 +227,69 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques // // Makes a copy of an existing snapshot. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // -// Users or groups that have permissions to use the CopySnapshot operation -// can create their own Amazon S3 buckets and copy snapshots to it. To control -// access to your snapshots, use an IAM policy to control who has the ability -// to use the CopySnapshot operation. For more information about using IAM to -// control the use of ElastiCache operations, see Exporting Snapshots (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html) +// Users or groups that have permissions to use the CopySnapshot operation can +// create their own Amazon S3 buckets and copy snapshots to it. To control access +// to your snapshots, use an IAM policy to control who has the ability to use +// the CopySnapshot operation. For more information about using IAM to control +// the use of ElastiCache operations, see Exporting Snapshots (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html) // and Authentication & Access Control (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/IAM.html). // -// You could receive the following error messages. +// You could receive the following error messages. // -// Error Messages Error Message: The S3 bucket %s is outside of the region. +// Error Messages // -// Solution: Create an Amazon S3 bucket in the same region as your snapshot. -// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) -// in the ElastiCache User Guide. +// * Error Message: The S3 bucket %s is outside of the region. // -// Error Message: The S3 bucket %s does not exist. +// Solution: Create an Amazon S3 bucket in the same region as your snapshot. +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) +// in the ElastiCache User Guide. // -// Solution: Create an Amazon S3 bucket in the same region as your snapshot. -// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) -// in the ElastiCache User Guide. +// * Error Message: The S3 bucket %s does not exist. // -// Error Message: The S3 bucket %s is not owned by the authenticated user. +// Solution: Create an Amazon S3 bucket in the same region as your snapshot. +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) +// in the ElastiCache User Guide. // -// Solution: Create an Amazon S3 bucket in the same region as your snapshot. -// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) -// in the ElastiCache User Guide. +// * Error Message: The S3 bucket %s is not owned by the authenticated user. // -// Error Message: The authenticated user does not have sufficient permissions -// to perform the desired activity. +// Solution: Create an Amazon S3 bucket in the same region as your snapshot. +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) +// in the ElastiCache User Guide. // -// Solution: Contact your system administrator to get the needed permissions. +// * Error Message: The authenticated user does not have sufficient permissions +// to perform the desired activity. // -// Error Message: The S3 bucket %s already contains an object with key %s. +// Solution: Contact your system administrator to get the needed permissions. // -// Solution: Give the TargetSnapshotName a new and unique value. If exporting -// a snapshot, you could alternatively create a new Amazon S3 bucket and use -// this same value for TargetSnapshotName. +// * Error Message: The S3 bucket %s already contains an object with key +// %s. // -// Error Message: ElastiCache has not been granted READ permissions %s -// on the S3 Bucket. +// Solution: Give the TargetSnapshotName a new and unique value. If exporting +// a snapshot, you could alternatively create a new Amazon S3 bucket and +// use this same value for TargetSnapshotName. // -// Solution: Add List and Read permissions on the bucket. For more information, -// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) -// in the ElastiCache User Guide. +// * Error Message: ElastiCache has not been granted READ permissions %s +// on the S3 Bucket. // -// Error Message: ElastiCache has not been granted WRITE permissions %s -// on the S3 Bucket. +// Solution: Add List and Read permissions on the bucket. For more information, +// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) +// in the ElastiCache User Guide. // -// Solution: Add Upload/Delete permissions on the bucket. For more information, -// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) -// in the ElastiCache User Guide. +// * Error Message: ElastiCache has not been granted WRITE permissions %s +// on the S3 Bucket. // -// Error Message: ElastiCache has not been granted READ_ACP permissions -// %s on the S3 Bucket. +// Solution: Add Upload/Delete permissions on the bucket. For more information, +// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) +// in the ElastiCache User Guide. // -// Solution: Add View Permissions on the bucket. For more information, see -// Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) -// in the ElastiCache User Guide. +// * Error Message: ElastiCache has not been granted READ_ACP permissions +// %s on the S3 Bucket. +// +// Solution: Add View Permissions on the bucket. For more information, see Step +// 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) +// in the ElastiCache 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 @@ -370,7 +373,7 @@ func (c *ElastiCache) CreateCacheClusterRequest(input *CreateCacheClusterInput) // Creates a cache cluster. All nodes in the cache cluster run the same protocol-compliant // cache engine software, either Memcached or Redis. // -// Due to current limitations on Redis (cluster mode disabled), this operation +// Due to current limitations on Redis (cluster mode disabled), this operation // or parameter is not supported on Redis (cluster mode enabled) replication // groups. // @@ -739,9 +742,9 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou // When a Redis (cluster mode disabled) replication group has been successfully // created, you can add one or more read replicas to it, up to a total of 5 // read replicas. You cannot alter a Redis (cluster mode enabled) replication -// group once it has been created. +// group after it has been created. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -860,7 +863,7 @@ func (c *ElastiCache) CreateSnapshotRequest(input *CreateSnapshotInput) (req *re // Creates a copy of an entire cache cluster or replication group at a specific // moment in time. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -892,13 +895,13 @@ func (c *ElastiCache) CreateSnapshotRequest(input *CreateSnapshotInput) (req *re // * SnapshotFeatureNotSupportedFault // You attempted one of the following operations: // -// Creating a snapshot of a Redis cache cluster running on a cache.t1.micro -// cache node. +// * Creating a snapshot of a Redis cache cluster running on a cache.t1.micro +// cache node. // -// Creating a snapshot of a cache cluster that is running Memcached rather -// than Redis. +// * Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. // -// Neither of these are supported by ElastiCache. +// Neither of these are supported by ElastiCache. // // * InvalidParameterCombination // Two or more incompatible parameters were specified. @@ -968,7 +971,7 @@ func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) // mode enabled or a cache cluster from a Redis (cluster mode enabled) replication // group. // -// Due to current limitations on Redis (cluster mode disabled), this operation +// Due to current limitations on Redis (cluster mode disabled), this operation // or parameter is not supported on Redis (cluster mode enabled) replication // groups. // @@ -992,13 +995,13 @@ func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) // * SnapshotFeatureNotSupportedFault // You attempted one of the following operations: // -// Creating a snapshot of a Redis cache cluster running on a cache.t1.micro -// cache node. +// * Creating a snapshot of a Redis cache cluster running on a cache.t1.micro +// cache node. // -// Creating a snapshot of a cache cluster that is running Memcached rather -// than Redis. +// * Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. // -// Neither of these are supported by ElastiCache. +// Neither of these are supported by ElastiCache. // // * SnapshotQuotaExceededFault // The request cannot be processed because it would exceed the maximum number @@ -1143,7 +1146,7 @@ func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurity // // Deletes a cache security group. // -// You cannot delete a cache security group if it is associated with any cache +// You cannot delete a cache security group if it is associated with any cache // clusters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1222,7 +1225,7 @@ func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGrou // // Deletes a cache subnet group. // -// You cannot delete a cache subnet group if it is associated with any cache +// You cannot delete a cache subnet group if it is associated with any cache // clusters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1301,7 +1304,7 @@ func (c *ElastiCache) DeleteReplicationGroupRequest(input *DeleteReplicationGrou // immediately begins deleting the selected resources; you cannot cancel or // revert this operation. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1323,13 +1326,13 @@ func (c *ElastiCache) DeleteReplicationGroupRequest(input *DeleteReplicationGrou // * SnapshotFeatureNotSupportedFault // You attempted one of the following operations: // -// Creating a snapshot of a Redis cache cluster running on a cache.t1.micro -// cache node. +// * Creating a snapshot of a Redis cache cluster running on a cache.t1.micro +// cache node. // -// Creating a snapshot of a cache cluster that is running Memcached rather -// than Redis. +// * Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. // -// Neither of these are supported by ElastiCache. +// Neither of these are supported by ElastiCache. // // * SnapshotQuotaExceededFault // The request cannot be processed because it would exceed the maximum number @@ -1396,7 +1399,7 @@ func (c *ElastiCache) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *re // this operation, ElastiCache immediately begins deleting the snapshot; you // cannot cancel or revert this operation. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1485,11 +1488,11 @@ func (c *ElastiCache) DescribeCacheClustersRequest(input *DescribeCacheClustersI // about the cache nodes associated with the cache clusters. These details include // the DNS address and port for the cache node endpoint. // -// If the cluster is in the CREATING state, only cluster-level information -// is displayed until all of the nodes are successfully provisioned. +// If the cluster is in the CREATING state, only cluster-level information is +// displayed until all of the nodes are successfully provisioned. // -// If the cluster is in the DELETING state, only cluster-level information -// is displayed. +// If the cluster is in the DELETING state, only cluster-level information is +// displayed. // // If cache nodes are currently being added to the cache cluster, node endpoint // information and creation time for the additional nodes are not displayed @@ -2301,7 +2304,7 @@ func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicatio // is specified, DescribeReplicationGroups returns information about all replication // groups. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2610,7 +2613,7 @@ func (c *ElastiCache) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (r // describe a single snapshot, or just the snapshots associated with a particular // cache cluster. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3118,11 +3121,11 @@ func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGrou // // Modifies the settings for a replication group. // -// Due to current limitations on Redis (cluster mode disabled), this operation +// Due to current limitations on Redis (cluster mode disabled), this operation // or parameter is not supported on Redis (cluster mode enabled) replication // groups. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3612,6 +3615,18 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *AddTagsToResourceInput) SetResourceName(v string) *AddTagsToResourceInput { + s.ResourceName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + // Represents the input of an AuthorizeCacheSecurityGroupIngress operation. type AuthorizeCacheSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -3664,16 +3679,34 @@ func (s *AuthorizeCacheSecurityGroupIngressInput) Validate() error { return nil } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *AuthorizeCacheSecurityGroupIngressInput) SetCacheSecurityGroupName(v string) *AuthorizeCacheSecurityGroupIngressInput { + s.CacheSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *AuthorizeCacheSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeCacheSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *AuthorizeCacheSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeCacheSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + type AuthorizeCacheSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // AuthorizeCacheSecurityGroupIngress + // * AuthorizeCacheSecurityGroupIngress // - // CreateCacheSecurityGroup + // * CreateCacheSecurityGroup // - // RevokeCacheSecurityGroupIngress + // * RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` } @@ -3687,6 +3720,12 @@ func (s AuthorizeCacheSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetCacheSecurityGroup sets the CacheSecurityGroup field's value. +func (s *AuthorizeCacheSecurityGroupIngressOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *AuthorizeCacheSecurityGroupIngressOutput { + s.CacheSecurityGroup = v + return s +} + // Describes an Availability Zone in which the cache cluster is launched. type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -3705,6 +3744,12 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + // Contains all of the attributes of a specific cache cluster. type CacheCluster struct { _ struct{} `type:"structure"` @@ -3728,37 +3773,37 @@ type CacheCluster struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -3816,21 +3861,21 @@ type CacheCluster struct { // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // The replication group to which this cache cluster belongs. If this field @@ -3845,8 +3890,8 @@ type CacheCluster struct { // to 5, a snapshot that was taken today is retained for 5 days before being // deleted. // - // If the value of SnapshotRetentionLimit is set to zero (0), backups are - // turned off. + // If the value of SnapshotRetentionLimit is set to zero (0), backups are turned + // off. SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -3866,6 +3911,138 @@ func (s CacheCluster) GoString() string { return s.String() } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CacheCluster) SetAutoMinorVersionUpgrade(v bool) *CacheCluster { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetCacheClusterCreateTime sets the CacheClusterCreateTime field's value. +func (s *CacheCluster) SetCacheClusterCreateTime(v time.Time) *CacheCluster { + s.CacheClusterCreateTime = &v + return s +} + +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *CacheCluster) SetCacheClusterId(v string) *CacheCluster { + s.CacheClusterId = &v + return s +} + +// SetCacheClusterStatus sets the CacheClusterStatus field's value. +func (s *CacheCluster) SetCacheClusterStatus(v string) *CacheCluster { + s.CacheClusterStatus = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *CacheCluster) SetCacheNodeType(v string) *CacheCluster { + s.CacheNodeType = &v + return s +} + +// SetCacheNodes sets the CacheNodes field's value. +func (s *CacheCluster) SetCacheNodes(v []*CacheNode) *CacheCluster { + s.CacheNodes = v + return s +} + +// SetCacheParameterGroup sets the CacheParameterGroup field's value. +func (s *CacheCluster) SetCacheParameterGroup(v *CacheParameterGroupStatus) *CacheCluster { + s.CacheParameterGroup = v + return s +} + +// SetCacheSecurityGroups sets the CacheSecurityGroups field's value. +func (s *CacheCluster) SetCacheSecurityGroups(v []*CacheSecurityGroupMembership) *CacheCluster { + s.CacheSecurityGroups = v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CacheCluster) SetCacheSubnetGroupName(v string) *CacheCluster { + s.CacheSubnetGroupName = &v + return s +} + +// SetClientDownloadLandingPage sets the ClientDownloadLandingPage field's value. +func (s *CacheCluster) SetClientDownloadLandingPage(v string) *CacheCluster { + s.ClientDownloadLandingPage = &v + return s +} + +// SetConfigurationEndpoint sets the ConfigurationEndpoint field's value. +func (s *CacheCluster) SetConfigurationEndpoint(v *Endpoint) *CacheCluster { + s.ConfigurationEndpoint = v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CacheCluster) SetEngine(v string) *CacheCluster { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CacheCluster) SetEngineVersion(v string) *CacheCluster { + s.EngineVersion = &v + return s +} + +// SetNotificationConfiguration sets the NotificationConfiguration field's value. +func (s *CacheCluster) SetNotificationConfiguration(v *NotificationConfiguration) *CacheCluster { + s.NotificationConfiguration = v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *CacheCluster) SetNumCacheNodes(v int64) *CacheCluster { + s.NumCacheNodes = &v + return s +} + +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *CacheCluster) SetPendingModifiedValues(v *PendingModifiedValues) *CacheCluster { + s.PendingModifiedValues = v + return s +} + +// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value. +func (s *CacheCluster) SetPreferredAvailabilityZone(v string) *CacheCluster { + s.PreferredAvailabilityZone = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CacheCluster) SetPreferredMaintenanceWindow(v string) *CacheCluster { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *CacheCluster) SetReplicationGroupId(v string) *CacheCluster { + s.ReplicationGroupId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CacheCluster) SetSecurityGroups(v []*SecurityGroupMembership) *CacheCluster { + s.SecurityGroups = v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *CacheCluster) SetSnapshotRetentionLimit(v int64) *CacheCluster { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *CacheCluster) SetSnapshotWindow(v string) *CacheCluster { + s.SnapshotWindow = &v + return s +} + // Provides all of the details about a particular cache engine version. type CacheEngineVersion struct { _ struct{} `type:"structure"` @@ -3898,43 +4075,73 @@ func (s CacheEngineVersion) GoString() string { return s.String() } +// SetCacheEngineDescription sets the CacheEngineDescription field's value. +func (s *CacheEngineVersion) SetCacheEngineDescription(v string) *CacheEngineVersion { + s.CacheEngineDescription = &v + return s +} + +// SetCacheEngineVersionDescription sets the CacheEngineVersionDescription field's value. +func (s *CacheEngineVersion) SetCacheEngineVersionDescription(v string) *CacheEngineVersion { + s.CacheEngineVersionDescription = &v + return s +} + +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *CacheEngineVersion) SetCacheParameterGroupFamily(v string) *CacheEngineVersion { + s.CacheParameterGroupFamily = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CacheEngineVersion) SetEngine(v string) *CacheEngineVersion { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion { + s.EngineVersion = &v + return s +} + // Represents an individual cache node within a cache cluster. Each cache node // runs its own instance of the cluster's protocol-compliant caching software // - either Memcached or Redis. // // Valid node types are as follows: // -// General purpose: +// * General purpose: // -// Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, -// cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, -// cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge +// Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, +// cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, +// cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // -// Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, -// cache.m1.large, cache.m1.xlarge +// Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, +// cache.m1.xlarge // -// Compute optimized: cache.c1.xlarge +// * Compute optimized: cache.c1.xlarge // -// Memory optimized: +// * Memory optimized: // -// Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, -// cache.r3.4xlarge, cache.r3.8xlarge +// Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, +// cache.r3.8xlarge // -// Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge +// Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // -// Notes: +// Notes: // -// All T2 instances are created in an Amazon Virtual Private Cloud (Amazon -// VPC). +// * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon +// VPC). // -// Redis backup/restore is not supported for Redis (cluster mode disabled) -// T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) -// T2 instances. +// * Redis backup/restore is not supported for Redis (cluster mode disabled) +// T1 and T2 instances. Backup/restore is supported on Redis (cluster mode +// enabled) T2 instances. // -// Redis Append-only files (AOF) functionality is not supported for T1 or -// T2 instances. +// * Redis Append-only files (AOF) functionality is not supported for T1 +// or T2 instances. // -// For a complete listing of node types and specifications, see Amazon ElastiCache +// For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -3977,6 +4184,48 @@ func (s CacheNode) GoString() string { return s.String() } +// SetCacheNodeCreateTime sets the CacheNodeCreateTime field's value. +func (s *CacheNode) SetCacheNodeCreateTime(v time.Time) *CacheNode { + s.CacheNodeCreateTime = &v + return s +} + +// SetCacheNodeId sets the CacheNodeId field's value. +func (s *CacheNode) SetCacheNodeId(v string) *CacheNode { + s.CacheNodeId = &v + return s +} + +// SetCacheNodeStatus sets the CacheNodeStatus field's value. +func (s *CacheNode) SetCacheNodeStatus(v string) *CacheNode { + s.CacheNodeStatus = &v + return s +} + +// SetCustomerAvailabilityZone sets the CustomerAvailabilityZone field's value. +func (s *CacheNode) SetCustomerAvailabilityZone(v string) *CacheNode { + s.CustomerAvailabilityZone = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *CacheNode) SetEndpoint(v *Endpoint) *CacheNode { + s.Endpoint = v + return s +} + +// SetParameterGroupStatus sets the ParameterGroupStatus field's value. +func (s *CacheNode) SetParameterGroupStatus(v string) *CacheNode { + s.ParameterGroupStatus = &v + return s +} + +// SetSourceCacheNodeId sets the SourceCacheNodeId field's value. +func (s *CacheNode) SetSourceCacheNodeId(v string) *CacheNode { + s.SourceCacheNodeId = &v + return s +} + // A parameter that has a different value for each cache node type it is applied // to. For example, in a Redis cache cluster, a cache.m1.large cache node type // would have a larger maxmemory value than a cache.m1.small type. @@ -4026,6 +4275,60 @@ func (s CacheNodeTypeSpecificParameter) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *CacheNodeTypeSpecificParameter) SetAllowedValues(v string) *CacheNodeTypeSpecificParameter { + s.AllowedValues = &v + return s +} + +// SetCacheNodeTypeSpecificValues sets the CacheNodeTypeSpecificValues field's value. +func (s *CacheNodeTypeSpecificParameter) SetCacheNodeTypeSpecificValues(v []*CacheNodeTypeSpecificValue) *CacheNodeTypeSpecificParameter { + s.CacheNodeTypeSpecificValues = v + return s +} + +// SetChangeType sets the ChangeType field's value. +func (s *CacheNodeTypeSpecificParameter) SetChangeType(v string) *CacheNodeTypeSpecificParameter { + s.ChangeType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *CacheNodeTypeSpecificParameter) SetDataType(v string) *CacheNodeTypeSpecificParameter { + s.DataType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CacheNodeTypeSpecificParameter) SetDescription(v string) *CacheNodeTypeSpecificParameter { + s.Description = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *CacheNodeTypeSpecificParameter) SetIsModifiable(v bool) *CacheNodeTypeSpecificParameter { + s.IsModifiable = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *CacheNodeTypeSpecificParameter) SetMinimumEngineVersion(v string) *CacheNodeTypeSpecificParameter { + s.MinimumEngineVersion = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *CacheNodeTypeSpecificParameter) SetParameterName(v string) *CacheNodeTypeSpecificParameter { + s.ParameterName = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CacheNodeTypeSpecificParameter) SetSource(v string) *CacheNodeTypeSpecificParameter { + s.Source = &v + return s +} + // A value that applies only to a certain cache node type. type CacheNodeTypeSpecificValue struct { _ struct{} `type:"structure"` @@ -4047,6 +4350,18 @@ func (s CacheNodeTypeSpecificValue) GoString() string { return s.String() } +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *CacheNodeTypeSpecificValue) SetCacheNodeType(v string) *CacheNodeTypeSpecificValue { + s.CacheNodeType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *CacheNodeTypeSpecificValue) SetValue(v string) *CacheNodeTypeSpecificValue { + s.Value = &v + return s +} + // Represents the output of a CreateCacheParameterGroup operation. type CacheParameterGroup struct { _ struct{} `type:"structure"` @@ -4074,11 +4389,29 @@ func (s CacheParameterGroup) GoString() string { return s.String() } +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *CacheParameterGroup) SetCacheParameterGroupFamily(v string) *CacheParameterGroup { + s.CacheParameterGroupFamily = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CacheParameterGroup) SetCacheParameterGroupName(v string) *CacheParameterGroup { + s.CacheParameterGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CacheParameterGroup) SetDescription(v string) *CacheParameterGroup { + s.Description = &v + return s +} + // Represents the output of one of the following operations: // -// ModifyCacheParameterGroup +// * ModifyCacheParameterGroup // -// ResetCacheParameterGroup +// * ResetCacheParameterGroup type CacheParameterGroupNameMessage struct { _ struct{} `type:"structure"` @@ -4096,6 +4429,12 @@ func (s CacheParameterGroupNameMessage) GoString() string { return s.String() } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CacheParameterGroupNameMessage) SetCacheParameterGroupName(v string) *CacheParameterGroupNameMessage { + s.CacheParameterGroupName = &v + return s +} + // Status of the cache parameter group. type CacheParameterGroupStatus struct { _ struct{} `type:"structure"` @@ -4121,13 +4460,31 @@ func (s CacheParameterGroupStatus) GoString() string { return s.String() } +// SetCacheNodeIdsToReboot sets the CacheNodeIdsToReboot field's value. +func (s *CacheParameterGroupStatus) SetCacheNodeIdsToReboot(v []*string) *CacheParameterGroupStatus { + s.CacheNodeIdsToReboot = v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CacheParameterGroupStatus) SetCacheParameterGroupName(v string) *CacheParameterGroupStatus { + s.CacheParameterGroupName = &v + return s +} + +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *CacheParameterGroupStatus) SetParameterApplyStatus(v string) *CacheParameterGroupStatus { + s.ParameterApplyStatus = &v + return s +} + // Represents the output of one of the following operations: // -// AuthorizeCacheSecurityGroupIngress +// * AuthorizeCacheSecurityGroupIngress // -// CreateCacheSecurityGroup +// * CreateCacheSecurityGroup // -// RevokeCacheSecurityGroupIngress +// * RevokeCacheSecurityGroupIngress type CacheSecurityGroup struct { _ struct{} `type:"structure"` @@ -4155,6 +4512,30 @@ func (s CacheSecurityGroup) GoString() string { return s.String() } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *CacheSecurityGroup) SetCacheSecurityGroupName(v string) *CacheSecurityGroup { + s.CacheSecurityGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CacheSecurityGroup) SetDescription(v string) *CacheSecurityGroup { + s.Description = &v + return s +} + +// SetEC2SecurityGroups sets the EC2SecurityGroups field's value. +func (s *CacheSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *CacheSecurityGroup { + s.EC2SecurityGroups = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *CacheSecurityGroup) SetOwnerId(v string) *CacheSecurityGroup { + s.OwnerId = &v + return s +} + // Represents a cache cluster's status within a particular cache security group. type CacheSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -4178,11 +4559,23 @@ func (s CacheSecurityGroupMembership) GoString() string { return s.String() } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *CacheSecurityGroupMembership) SetCacheSecurityGroupName(v string) *CacheSecurityGroupMembership { + s.CacheSecurityGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CacheSecurityGroupMembership) SetStatus(v string) *CacheSecurityGroupMembership { + s.Status = &v + return s +} + // Represents the output of one of the following operations: // -// CreateCacheSubnetGroup +// * CreateCacheSubnetGroup // -// ModifyCacheSubnetGroup +// * ModifyCacheSubnetGroup type CacheSubnetGroup struct { _ struct{} `type:"structure"` @@ -4210,6 +4603,30 @@ func (s CacheSubnetGroup) GoString() string { return s.String() } +// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value. +func (s *CacheSubnetGroup) SetCacheSubnetGroupDescription(v string) *CacheSubnetGroup { + s.CacheSubnetGroupDescription = &v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CacheSubnetGroup) SetCacheSubnetGroupName(v string) *CacheSubnetGroup { + s.CacheSubnetGroupName = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *CacheSubnetGroup) SetSubnets(v []*Subnet) *CacheSubnetGroup { + s.Subnets = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CacheSubnetGroup) SetVpcId(v string) *CacheSubnetGroup { + s.VpcId = &v + return s +} + // Represents the input of a CopySnapshotMessage operation. type CopySnapshotInput struct { _ struct{} `type:"structure"` @@ -4265,6 +4682,24 @@ func (s *CopySnapshotInput) Validate() error { return nil } +// SetSourceSnapshotName sets the SourceSnapshotName field's value. +func (s *CopySnapshotInput) SetSourceSnapshotName(v string) *CopySnapshotInput { + s.SourceSnapshotName = &v + return s +} + +// SetTargetBucket sets the TargetBucket field's value. +func (s *CopySnapshotInput) SetTargetBucket(v string) *CopySnapshotInput { + s.TargetBucket = &v + return s +} + +// SetTargetSnapshotName sets the TargetSnapshotName field's value. +func (s *CopySnapshotInput) SetTargetSnapshotName(v string) *CopySnapshotInput { + s.TargetSnapshotName = &v + return s +} + type CopySnapshotOutput struct { _ struct{} `type:"structure"` @@ -4283,6 +4718,12 @@ func (s CopySnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *CopySnapshotOutput) SetSnapshot(v *Snapshot) *CopySnapshotOutput { + s.Snapshot = v + return s +} + // Represents the input of a CreateCacheCluster operation. type CreateCacheClusterInput struct { _ struct{} `type:"structure"` @@ -4297,19 +4738,33 @@ type CreateCacheClusterInput struct { // assumes single-az mode. AZMode *string `type:"string" enum:"AZMode"` + // The password used to access a password protected server. + // + // Password constraints: + // + // * Must be only printable ASCII characters. + // + // * Must be at least 16 characters and no more than 128 characters in length. + // + // * Cannot contain any of the following characters: '/', '"', or "@". + // + // For more information, see AUTH password (http://redis.io/commands/AUTH) at + // Redis. + AuthToken *string `type:"string"` + // This parameter is currently disabled. AutoMinorVersionUpgrade *bool `type:"boolean"` // The node group (shard) identifier. This parameter is stored as a lowercase // string. // - // Constraints: + // Constraints: // - // A name must contain from 1 to 20 alphanumeric characters or hyphens. + // * A name must contain from 1 to 20 alphanumeric characters or hyphens. // - // The first character must be a letter. + // * The first character must be a letter. // - // A name cannot end with a hyphen or contain two consecutive hyphens. + // * A name cannot end with a hyphen or contain two consecutive hyphens. // // CacheClusterId is a required field CacheClusterId *string `type:"string" required:"true"` @@ -4318,37 +4773,37 @@ type CreateCacheClusterInput struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -4371,7 +4826,7 @@ type CreateCacheClusterInput struct { // Use this parameter only when you are creating a cache cluster in an Amazon // Virtual Private Cloud (Amazon VPC). // - // If you're going to launch your cluster in an Amazon VPC, you need to create + // If you're going to launch your cluster in an Amazon VPC, you need to create // a subnet group before you start creating a cluster. For more information, // see Subnets and Subnet Groups (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SubnetGroups.html). CacheSubnetGroupName *string `type:"string"` @@ -4385,7 +4840,7 @@ type CreateCacheClusterInput struct { // To view the supported cache engine versions, use the DescribeCacheEngineVersions // operation. // - // Important: You can upgrade to a newer engine version (see Selecting a Cache + // Important: You can upgrade to a newer engine version (see Selecting a Cache // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), // but you cannot downgrade to an earlier engine version. If you want to use // an earlier engine version, you must delete the existing cache cluster or @@ -4395,7 +4850,7 @@ type CreateCacheClusterInput struct { // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic to which notifications are sent. // - // The Amazon SNS topic owner must be the same as the cache cluster owner. + // The Amazon SNS topic owner must be the same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The initial number of cache nodes that the cache cluster has. @@ -4425,13 +4880,13 @@ type CreateCacheClusterInput struct { // // This option is only supported on Memcached. // - // If you are creating your cache cluster in an Amazon VPC (recommended) you + // If you are creating your cache cluster in an Amazon VPC (recommended) you // can only locate nodes in Availability Zones that are associated with the // subnets in the selected subnet group. // // The number of Availability Zones listed must equal the value of NumCacheNodes. // - // If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone + // If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone // instead, or repeat the Availability Zone multiple times in the list. // // Default: System chosen Availability Zones. @@ -4442,34 +4897,34 @@ type CreateCacheClusterInput struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // Specifies the weekly time range during which maintenance on the cluster - // is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi + // Specifies the weekly time range during which maintenance on the cluster is + // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi // (24H Clock UTC). The minimum maintenance window is a 60 minute period. // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // Due to current limitations on Redis (cluster mode disabled), this operation // or parameter is not supported on Redis (cluster mode enabled) replication // groups. // - // The ID of the replication group to which this cache cluster should belong. + // The ID of the replication group to which this cache cluster should belong. // If this parameter is specified, the cache cluster is added to the specified // replication group as a read replica; otherwise, the cache cluster is a standalone // primary that is not part of any replication group. @@ -4478,7 +4933,7 @@ type CreateCacheClusterInput struct { // Zone is not specified, the cache cluster is created in Availability Zones // that provide the best spread of read replicas across Availability Zones. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. ReplicationGroupId *string `type:"string"` // One or more VPC security groups associated with the cache cluster. @@ -4492,25 +4947,25 @@ type CreateCacheClusterInput struct { // file is used to populate the node group (shard). The Amazon S3 object name // in the ARN cannot contain any commas. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. // - // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb + // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"` // The name of a Redis snapshot from which to restore data into the new node // group (shard). The snapshot status changes to restoring while the new node // group (shard) is being created. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. SnapshotName *string `type:"string"` // The number of days for which ElastiCache retains automatic snapshots before // deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot // taken today is retained for 5 days before being deleted. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. // - // Default: 0 (i.e., automatic backups are disabled for this cache cluster). + // Default: 0 (i.e., automatic backups are disabled for this cache cluster). SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -4518,10 +4973,10 @@ type CreateCacheClusterInput struct { // // Example: 05:00-09:00 // - // If you do not specify this parameter, ElastiCache automatically chooses - // an appropriate time range. + // If you do not specify this parameter, ElastiCache automatically chooses an + // appropriate time range. // - // Note: This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. SnapshotWindow *string `type:"string"` // A list of cost allocation tags to be added to this resource. A tag is a key-value @@ -4552,6 +5007,144 @@ func (s *CreateCacheClusterInput) Validate() error { return nil } +// SetAZMode sets the AZMode field's value. +func (s *CreateCacheClusterInput) SetAZMode(v string) *CreateCacheClusterInput { + s.AZMode = &v + return s +} + +// SetAuthToken sets the AuthToken field's value. +func (s *CreateCacheClusterInput) SetAuthToken(v string) *CreateCacheClusterInput { + s.AuthToken = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateCacheClusterInput) SetAutoMinorVersionUpgrade(v bool) *CreateCacheClusterInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *CreateCacheClusterInput) SetCacheClusterId(v string) *CreateCacheClusterInput { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *CreateCacheClusterInput) SetCacheNodeType(v string) *CreateCacheClusterInput { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CreateCacheClusterInput) SetCacheParameterGroupName(v string) *CreateCacheClusterInput { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value. +func (s *CreateCacheClusterInput) SetCacheSecurityGroupNames(v []*string) *CreateCacheClusterInput { + s.CacheSecurityGroupNames = v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CreateCacheClusterInput) SetCacheSubnetGroupName(v string) *CreateCacheClusterInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateCacheClusterInput) SetEngine(v string) *CreateCacheClusterInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateCacheClusterInput) SetEngineVersion(v string) *CreateCacheClusterInput { + s.EngineVersion = &v + return s +} + +// SetNotificationTopicArn sets the NotificationTopicArn field's value. +func (s *CreateCacheClusterInput) SetNotificationTopicArn(v string) *CreateCacheClusterInput { + s.NotificationTopicArn = &v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *CreateCacheClusterInput) SetNumCacheNodes(v int64) *CreateCacheClusterInput { + s.NumCacheNodes = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateCacheClusterInput) SetPort(v int64) *CreateCacheClusterInput { + s.Port = &v + return s +} + +// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value. +func (s *CreateCacheClusterInput) SetPreferredAvailabilityZone(v string) *CreateCacheClusterInput { + s.PreferredAvailabilityZone = &v + return s +} + +// SetPreferredAvailabilityZones sets the PreferredAvailabilityZones field's value. +func (s *CreateCacheClusterInput) SetPreferredAvailabilityZones(v []*string) *CreateCacheClusterInput { + s.PreferredAvailabilityZones = v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateCacheClusterInput) SetPreferredMaintenanceWindow(v string) *CreateCacheClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *CreateCacheClusterInput) SetReplicationGroupId(v string) *CreateCacheClusterInput { + s.ReplicationGroupId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateCacheClusterInput) SetSecurityGroupIds(v []*string) *CreateCacheClusterInput { + s.SecurityGroupIds = v + return s +} + +// SetSnapshotArns sets the SnapshotArns field's value. +func (s *CreateCacheClusterInput) SetSnapshotArns(v []*string) *CreateCacheClusterInput { + s.SnapshotArns = v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *CreateCacheClusterInput) SetSnapshotName(v string) *CreateCacheClusterInput { + s.SnapshotName = &v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *CreateCacheClusterInput) SetSnapshotRetentionLimit(v int64) *CreateCacheClusterInput { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *CreateCacheClusterInput) SetSnapshotWindow(v string) *CreateCacheClusterInput { + s.SnapshotWindow = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateCacheClusterInput) SetTags(v []*Tag) *CreateCacheClusterInput { + s.Tags = v + return s +} + type CreateCacheClusterOutput struct { _ struct{} `type:"structure"` @@ -4569,6 +5162,12 @@ func (s CreateCacheClusterOutput) GoString() string { return s.String() } +// SetCacheCluster sets the CacheCluster field's value. +func (s *CreateCacheClusterOutput) SetCacheCluster(v *CacheCluster) *CreateCacheClusterOutput { + s.CacheCluster = v + return s +} + // Represents the input of a CreateCacheParameterGroup operation. type CreateCacheParameterGroupInput struct { _ struct{} `type:"structure"` @@ -4621,6 +5220,24 @@ func (s *CreateCacheParameterGroupInput) Validate() error { return nil } +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *CreateCacheParameterGroupInput) SetCacheParameterGroupFamily(v string) *CreateCacheParameterGroupInput { + s.CacheParameterGroupFamily = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CreateCacheParameterGroupInput) SetCacheParameterGroupName(v string) *CreateCacheParameterGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateCacheParameterGroupInput) SetDescription(v string) *CreateCacheParameterGroupInput { + s.Description = &v + return s +} + type CreateCacheParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -4638,6 +5255,12 @@ func (s CreateCacheParameterGroupOutput) GoString() string { return s.String() } +// SetCacheParameterGroup sets the CacheParameterGroup field's value. +func (s *CreateCacheParameterGroupOutput) SetCacheParameterGroup(v *CacheParameterGroup) *CreateCacheParameterGroupOutput { + s.CacheParameterGroup = v + return s +} + // Represents the input of a CreateCacheSecurityGroup operation. type CreateCacheSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -4685,16 +5308,28 @@ func (s *CreateCacheSecurityGroupInput) Validate() error { return nil } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *CreateCacheSecurityGroupInput) SetCacheSecurityGroupName(v string) *CreateCacheSecurityGroupInput { + s.CacheSecurityGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateCacheSecurityGroupInput) SetDescription(v string) *CreateCacheSecurityGroupInput { + s.Description = &v + return s +} + type CreateCacheSecurityGroupOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // AuthorizeCacheSecurityGroupIngress + // * AuthorizeCacheSecurityGroupIngress // - // CreateCacheSecurityGroup + // * CreateCacheSecurityGroup // - // RevokeCacheSecurityGroupIngress + // * RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` } @@ -4708,6 +5343,12 @@ func (s CreateCacheSecurityGroupOutput) GoString() string { return s.String() } +// SetCacheSecurityGroup sets the CacheSecurityGroup field's value. +func (s *CreateCacheSecurityGroupOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *CreateCacheSecurityGroupOutput { + s.CacheSecurityGroup = v + return s +} + // Represents the input of a CreateCacheSubnetGroup operation. type CreateCacheSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -4761,14 +5402,32 @@ func (s *CreateCacheSubnetGroupInput) Validate() error { return nil } +// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value. +func (s *CreateCacheSubnetGroupInput) SetCacheSubnetGroupDescription(v string) *CreateCacheSubnetGroupInput { + s.CacheSubnetGroupDescription = &v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CreateCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *CreateCacheSubnetGroupInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateCacheSubnetGroupInput) SetSubnetIds(v []*string) *CreateCacheSubnetGroupInput { + s.SubnetIds = v + return s +} + type CreateCacheSubnetGroupOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // CreateCacheSubnetGroup + // * CreateCacheSubnetGroup // - // ModifyCacheSubnetGroup + // * ModifyCacheSubnetGroup CacheSubnetGroup *CacheSubnetGroup `type:"structure"` } @@ -4782,10 +5441,30 @@ func (s CreateCacheSubnetGroupOutput) GoString() string { return s.String() } +// SetCacheSubnetGroup sets the CacheSubnetGroup field's value. +func (s *CreateCacheSubnetGroupOutput) SetCacheSubnetGroup(v *CacheSubnetGroup) *CreateCacheSubnetGroupOutput { + s.CacheSubnetGroup = v + return s +} + // Represents the input of a CreateReplicationGroup operation. type CreateReplicationGroupInput struct { _ struct{} `type:"structure"` + // The password used to access a password protected server. + // + // Password constraints: + // + // * Must be only printable ASCII characters. + // + // * Must be at least 16 characters and no more than 128 characters in length. + // + // * Cannot contain any of the following characters: '/', '"', or "@". + // + // For more information, see AUTH password (http://redis.io/commands/AUTH) at + // Redis. + AuthToken *string `type:"string"` + // This parameter is currently disabled. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -4795,16 +5474,16 @@ type CreateReplicationGroupInput struct { // If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ // is disabled for this replication group. // - // AutomaticFailoverEnabled must be enabled for Redis (cluster mode enabled) + // AutomaticFailoverEnabled must be enabled for Redis (cluster mode enabled) // replication groups. // // Default: false // - // ElastiCache Multi-AZ replication groups is not supported on: + // ElastiCache Multi-AZ replication groups is not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled): T1 and T2 node types. + // Redis (cluster mode disabled): T1 and T2 node types. // // Redis (cluster mode enabled): T2 node types. AutomaticFailoverEnabled *bool `type:"boolean"` @@ -4813,37 +5492,37 @@ type CreateReplicationGroupInput struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -4857,9 +5536,9 @@ type CreateReplicationGroupInput struct { // and want to use a default parameter group, we recommend that you specify // the parameter group by name. // - // To create a Redis (cluster mode disabled) replication group, use CacheParameterGroupName=default.redis3.2. + // * To create a Redis (cluster mode disabled) replication group, use CacheParameterGroupName=default.redis3.2. // - // To create a Redis (cluster mode enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on. + // * To create a Redis (cluster mode enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on. CacheParameterGroupName *string `type:"string"` // A list of cache security group names to associate with this replication group. @@ -4867,7 +5546,7 @@ type CreateReplicationGroupInput struct { // The name of the cache subnet group to be used for the replication group. // - // If you're going to launch your cluster in an Amazon VPC, you need to create + // If you're going to launch your cluster in an Amazon VPC, you need to create // a subnet group before you start creating a cluster. For more information, // see Subnets and Subnet Groups (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SubnetGroups.html). CacheSubnetGroupName *string `type:"string"` @@ -4880,7 +5559,7 @@ type CreateReplicationGroupInput struct { // in this replication group. To view the supported cache engine versions, use // the DescribeCacheEngineVersions operation. // - // Important: You can upgrade to a newer engine version (see Selecting a Cache + // Important: You can upgrade to a newer engine version (see Selecting a Cache // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)) // in the ElastiCache User Guide, but you cannot downgrade to an earlier engine // version. If you want to use an earlier engine version, you must delete the @@ -4900,7 +5579,7 @@ type CreateReplicationGroupInput struct { // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic to which notifications are sent. // - // The Amazon SNS topic owner must be the same as the cache cluster owner. + // The Amazon SNS topic owner must be the same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The number of clusters this replication group initially has. @@ -4911,9 +5590,6 @@ type CreateReplicationGroupInput struct { // If Multi-AZ is enabled, the value of this parameter must be at least 2. // // The maximum permitted value for NumCacheClusters is 6 (primary plus 5 replicas). - // If you need to exceed this limit, fill out the ElastiCache Limit Increase - // Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/ - // (http://aws.amazon.com/contact-us/elasticache-node-limit-request/). NumCacheClusters *int64 `type:"integer"` // An optional parameter that specifies the number of node groups (shards) for @@ -4934,13 +5610,13 @@ type CreateReplicationGroupInput struct { // This parameter is not used if there is more than one node group (shard). // You should use NodeGroupConfiguration instead. // - // If you are creating your replication group in an Amazon VPC (recommended), + // If you are creating your replication group in an Amazon VPC (recommended), // you can only locate cache clusters in Availability Zones associated with // the subnets in the selected subnet group. // // The number of Availability Zones listed must equal the value of NumCacheClusters. // - // Default: system chosen Availability Zones. + // Default: system chosen Availability Zones. PreferredCacheClusterAZs []*string `locationNameList:"AvailabilityZone" type:"list"` // Specifies the weekly time range during which maintenance on the cache cluster @@ -4948,27 +5624,27 @@ type CreateReplicationGroupInput struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // Specifies the weekly time range during which maintenance on the cluster - // is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi + // Specifies the weekly time range during which maintenance on the cluster is + // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi // (24H Clock UTC). The minimum maintenance window is a 60 minute period. // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // The identifier of the cache cluster that serves as the primary for this replication @@ -4992,19 +5668,19 @@ type CreateReplicationGroupInput struct { // // Constraints: // - // A name must contain from 1 to 20 alphanumeric characters or hyphens. + // * A name must contain from 1 to 20 alphanumeric characters or hyphens. // - // The first character must be a letter. + // * The first character must be a letter. // - // A name cannot end with a hyphen or contain two consecutive hyphens. + // * A name cannot end with a hyphen or contain two consecutive hyphens. // // ReplicationGroupId is a required field ReplicationGroupId *string `type:"string" required:"true"` // One or more Amazon VPC security groups associated with this replication group. // - // Use this parameter only when you are creating a replication group in an - // Amazon Virtual Private Cloud (Amazon VPC). + // Use this parameter only when you are creating a replication group in an Amazon + // Virtual Private Cloud (Amazon VPC). SecurityGroupIds []*string `locationNameList:"SecurityGroupId" type:"list"` // A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB @@ -5013,25 +5689,25 @@ type CreateReplicationGroupInput struct { // any commas. The list must match the number of node groups (shards) in the // replication group, which means you cannot repartition. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. // - // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb + // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"` // The name of a snapshot from which to restore data into the new replication // group. The snapshot status changes to restoring while the new replication // group is being created. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. SnapshotName *string `type:"string"` // The number of days for which ElastiCache retains automatic snapshots before // deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot // that was taken today is retained for 5 days before being deleted. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. // - // Default: 0 (i.e., automatic backups are disabled for this cache cluster). + // Default: 0 (i.e., automatic backups are disabled for this cache cluster). SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -5039,10 +5715,10 @@ type CreateReplicationGroupInput struct { // // Example: 05:00-09:00 // - // If you do not specify this parameter, ElastiCache automatically chooses - // an appropriate time range. + // If you do not specify this parameter, ElastiCache automatically chooses an + // appropriate time range. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. SnapshotWindow *string `type:"string"` // A list of cost allocation tags to be added to this resource. A tag is a key-value @@ -5076,6 +5752,162 @@ func (s *CreateReplicationGroupInput) Validate() error { return nil } +// SetAuthToken sets the AuthToken field's value. +func (s *CreateReplicationGroupInput) SetAuthToken(v string) *CreateReplicationGroupInput { + s.AuthToken = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateReplicationGroupInput) SetAutoMinorVersionUpgrade(v bool) *CreateReplicationGroupInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAutomaticFailoverEnabled sets the AutomaticFailoverEnabled field's value. +func (s *CreateReplicationGroupInput) SetAutomaticFailoverEnabled(v bool) *CreateReplicationGroupInput { + s.AutomaticFailoverEnabled = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *CreateReplicationGroupInput) SetCacheNodeType(v string) *CreateReplicationGroupInput { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CreateReplicationGroupInput) SetCacheParameterGroupName(v string) *CreateReplicationGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value. +func (s *CreateReplicationGroupInput) SetCacheSecurityGroupNames(v []*string) *CreateReplicationGroupInput { + s.CacheSecurityGroupNames = v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CreateReplicationGroupInput) SetCacheSubnetGroupName(v string) *CreateReplicationGroupInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateReplicationGroupInput) SetEngine(v string) *CreateReplicationGroupInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateReplicationGroupInput) SetEngineVersion(v string) *CreateReplicationGroupInput { + s.EngineVersion = &v + return s +} + +// SetNodeGroupConfiguration sets the NodeGroupConfiguration field's value. +func (s *CreateReplicationGroupInput) SetNodeGroupConfiguration(v []*NodeGroupConfiguration) *CreateReplicationGroupInput { + s.NodeGroupConfiguration = v + return s +} + +// SetNotificationTopicArn sets the NotificationTopicArn field's value. +func (s *CreateReplicationGroupInput) SetNotificationTopicArn(v string) *CreateReplicationGroupInput { + s.NotificationTopicArn = &v + return s +} + +// SetNumCacheClusters sets the NumCacheClusters field's value. +func (s *CreateReplicationGroupInput) SetNumCacheClusters(v int64) *CreateReplicationGroupInput { + s.NumCacheClusters = &v + return s +} + +// SetNumNodeGroups sets the NumNodeGroups field's value. +func (s *CreateReplicationGroupInput) SetNumNodeGroups(v int64) *CreateReplicationGroupInput { + s.NumNodeGroups = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateReplicationGroupInput) SetPort(v int64) *CreateReplicationGroupInput { + s.Port = &v + return s +} + +// SetPreferredCacheClusterAZs sets the PreferredCacheClusterAZs field's value. +func (s *CreateReplicationGroupInput) SetPreferredCacheClusterAZs(v []*string) *CreateReplicationGroupInput { + s.PreferredCacheClusterAZs = v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateReplicationGroupInput) SetPreferredMaintenanceWindow(v string) *CreateReplicationGroupInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPrimaryClusterId sets the PrimaryClusterId field's value. +func (s *CreateReplicationGroupInput) SetPrimaryClusterId(v string) *CreateReplicationGroupInput { + s.PrimaryClusterId = &v + return s +} + +// SetReplicasPerNodeGroup sets the ReplicasPerNodeGroup field's value. +func (s *CreateReplicationGroupInput) SetReplicasPerNodeGroup(v int64) *CreateReplicationGroupInput { + s.ReplicasPerNodeGroup = &v + return s +} + +// SetReplicationGroupDescription sets the ReplicationGroupDescription field's value. +func (s *CreateReplicationGroupInput) SetReplicationGroupDescription(v string) *CreateReplicationGroupInput { + s.ReplicationGroupDescription = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *CreateReplicationGroupInput) SetReplicationGroupId(v string) *CreateReplicationGroupInput { + s.ReplicationGroupId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateReplicationGroupInput) SetSecurityGroupIds(v []*string) *CreateReplicationGroupInput { + s.SecurityGroupIds = v + return s +} + +// SetSnapshotArns sets the SnapshotArns field's value. +func (s *CreateReplicationGroupInput) SetSnapshotArns(v []*string) *CreateReplicationGroupInput { + s.SnapshotArns = v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *CreateReplicationGroupInput) SetSnapshotName(v string) *CreateReplicationGroupInput { + s.SnapshotName = &v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *CreateReplicationGroupInput) SetSnapshotRetentionLimit(v int64) *CreateReplicationGroupInput { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *CreateReplicationGroupInput) SetSnapshotWindow(v string) *CreateReplicationGroupInput { + s.SnapshotWindow = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateReplicationGroupInput) SetTags(v []*Tag) *CreateReplicationGroupInput { + s.Tags = v + return s +} + type CreateReplicationGroupOutput struct { _ struct{} `type:"structure"` @@ -5093,6 +5925,12 @@ func (s CreateReplicationGroupOutput) GoString() string { return s.String() } +// SetReplicationGroup sets the ReplicationGroup field's value. +func (s *CreateReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *CreateReplicationGroupOutput { + s.ReplicationGroup = v + return s +} + // Represents the input of a CreateSnapshot operation. type CreateSnapshotInput struct { _ struct{} `type:"structure"` @@ -5134,6 +5972,24 @@ func (s *CreateSnapshotInput) Validate() error { return nil } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *CreateSnapshotInput) SetCacheClusterId(v string) *CreateSnapshotInput { + s.CacheClusterId = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *CreateSnapshotInput) SetReplicationGroupId(v string) *CreateSnapshotInput { + s.ReplicationGroupId = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *CreateSnapshotInput) SetSnapshotName(v string) *CreateSnapshotInput { + s.SnapshotName = &v + return s +} + type CreateSnapshotOutput struct { _ struct{} `type:"structure"` @@ -5152,6 +6008,12 @@ func (s CreateSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *CreateSnapshotOutput) SetSnapshot(v *Snapshot) *CreateSnapshotOutput { + s.Snapshot = v + return s +} + // Represents the input of a DeleteCacheCluster operation. type DeleteCacheClusterInput struct { _ struct{} `type:"structure"` @@ -5191,6 +6053,18 @@ func (s *DeleteCacheClusterInput) Validate() error { return nil } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *DeleteCacheClusterInput) SetCacheClusterId(v string) *DeleteCacheClusterInput { + s.CacheClusterId = &v + return s +} + +// SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value. +func (s *DeleteCacheClusterInput) SetFinalSnapshotIdentifier(v string) *DeleteCacheClusterInput { + s.FinalSnapshotIdentifier = &v + return s +} + type DeleteCacheClusterOutput struct { _ struct{} `type:"structure"` @@ -5208,13 +6082,19 @@ func (s DeleteCacheClusterOutput) GoString() string { return s.String() } +// SetCacheCluster sets the CacheCluster field's value. +func (s *DeleteCacheClusterOutput) SetCacheCluster(v *CacheCluster) *DeleteCacheClusterOutput { + s.CacheCluster = v + return s +} + // Represents the input of a DeleteCacheParameterGroup operation. type DeleteCacheParameterGroupInput struct { _ struct{} `type:"structure"` // The name of the cache parameter group to delete. // - // The specified cache security group must not be associated with any cache + // The specified cache security group must not be associated with any cache // clusters. // // CacheParameterGroupName is a required field @@ -5244,6 +6124,12 @@ func (s *DeleteCacheParameterGroupInput) Validate() error { return nil } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *DeleteCacheParameterGroupInput) SetCacheParameterGroupName(v string) *DeleteCacheParameterGroupInput { + s.CacheParameterGroupName = &v + return s +} + type DeleteCacheParameterGroupOutput struct { _ struct{} `type:"structure"` } @@ -5264,7 +6150,7 @@ type DeleteCacheSecurityGroupInput struct { // The name of the cache security group to delete. // - // You cannot delete the default security group. + // You cannot delete the default security group. // // CacheSecurityGroupName is a required field CacheSecurityGroupName *string `type:"string" required:"true"` @@ -5293,6 +6179,12 @@ func (s *DeleteCacheSecurityGroupInput) Validate() error { return nil } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *DeleteCacheSecurityGroupInput) SetCacheSecurityGroupName(v string) *DeleteCacheSecurityGroupInput { + s.CacheSecurityGroupName = &v + return s +} + type DeleteCacheSecurityGroupOutput struct { _ struct{} `type:"structure"` } @@ -5342,6 +6234,12 @@ func (s *DeleteCacheSubnetGroupInput) Validate() error { return nil } +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *DeleteCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *DeleteCacheSubnetGroupInput { + s.CacheSubnetGroupName = &v + return s +} + type DeleteCacheSubnetGroupOutput struct { _ struct{} `type:"structure"` } @@ -5400,6 +6298,24 @@ func (s *DeleteReplicationGroupInput) Validate() error { return nil } +// SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value. +func (s *DeleteReplicationGroupInput) SetFinalSnapshotIdentifier(v string) *DeleteReplicationGroupInput { + s.FinalSnapshotIdentifier = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *DeleteReplicationGroupInput) SetReplicationGroupId(v string) *DeleteReplicationGroupInput { + s.ReplicationGroupId = &v + return s +} + +// SetRetainPrimaryCluster sets the RetainPrimaryCluster field's value. +func (s *DeleteReplicationGroupInput) SetRetainPrimaryCluster(v bool) *DeleteReplicationGroupInput { + s.RetainPrimaryCluster = &v + return s +} + type DeleteReplicationGroupOutput struct { _ struct{} `type:"structure"` @@ -5417,6 +6333,12 @@ func (s DeleteReplicationGroupOutput) GoString() string { return s.String() } +// SetReplicationGroup sets the ReplicationGroup field's value. +func (s *DeleteReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *DeleteReplicationGroupOutput { + s.ReplicationGroup = v + return s +} + // Represents the input of a DeleteSnapshot operation. type DeleteSnapshotInput struct { _ struct{} `type:"structure"` @@ -5450,6 +6372,12 @@ func (s *DeleteSnapshotInput) Validate() error { return nil } +// SetSnapshotName sets the SnapshotName field's value. +func (s *DeleteSnapshotInput) SetSnapshotName(v string) *DeleteSnapshotInput { + s.SnapshotName = &v + return s +} + type DeleteSnapshotOutput struct { _ struct{} `type:"structure"` @@ -5468,6 +6396,12 @@ func (s DeleteSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *DeleteSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteSnapshotOutput { + s.Snapshot = v + return s +} + // Represents the input of a DescribeCacheClusters operation. type DescribeCacheClustersInput struct { _ struct{} `type:"structure"` @@ -5506,6 +6440,30 @@ func (s DescribeCacheClustersInput) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *DescribeCacheClustersInput) SetCacheClusterId(v string) *DescribeCacheClustersInput { + s.CacheClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheClustersInput) SetMarker(v string) *DescribeCacheClustersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheClustersInput) SetMaxRecords(v int64) *DescribeCacheClustersInput { + s.MaxRecords = &v + return s +} + +// SetShowCacheNodeInfo sets the ShowCacheNodeInfo field's value. +func (s *DescribeCacheClustersInput) SetShowCacheNodeInfo(v bool) *DescribeCacheClustersInput { + s.ShowCacheNodeInfo = &v + return s +} + // Represents the output of a DescribeCacheClusters operation. type DescribeCacheClustersOutput struct { _ struct{} `type:"structure"` @@ -5528,6 +6486,18 @@ func (s DescribeCacheClustersOutput) GoString() string { return s.String() } +// SetCacheClusters sets the CacheClusters field's value. +func (s *DescribeCacheClustersOutput) SetCacheClusters(v []*CacheCluster) *DescribeCacheClustersOutput { + s.CacheClusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheClustersOutput) SetMarker(v string) *DescribeCacheClustersOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeCacheEngineVersions operation. type DescribeCacheEngineVersionsInput struct { _ struct{} `type:"structure"` @@ -5538,11 +6508,11 @@ type DescribeCacheEngineVersionsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens CacheParameterGroupFamily *string `type:"string"` // If true, specifies that only the default version of the specified engine @@ -5582,6 +6552,42 @@ func (s DescribeCacheEngineVersionsInput) GoString() string { return s.String() } +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *DescribeCacheEngineVersionsInput) SetCacheParameterGroupFamily(v string) *DescribeCacheEngineVersionsInput { + s.CacheParameterGroupFamily = &v + return s +} + +// SetDefaultOnly sets the DefaultOnly field's value. +func (s *DescribeCacheEngineVersionsInput) SetDefaultOnly(v bool) *DescribeCacheEngineVersionsInput { + s.DefaultOnly = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DescribeCacheEngineVersionsInput) SetEngine(v string) *DescribeCacheEngineVersionsInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DescribeCacheEngineVersionsInput) SetEngineVersion(v string) *DescribeCacheEngineVersionsInput { + s.EngineVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheEngineVersionsInput) SetMarker(v string) *DescribeCacheEngineVersionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheEngineVersionsInput) SetMaxRecords(v int64) *DescribeCacheEngineVersionsInput { + s.MaxRecords = &v + return s +} + // Represents the output of a DescribeCacheEngineVersions operation. type DescribeCacheEngineVersionsOutput struct { _ struct{} `type:"structure"` @@ -5604,6 +6610,18 @@ func (s DescribeCacheEngineVersionsOutput) GoString() string { return s.String() } +// SetCacheEngineVersions sets the CacheEngineVersions field's value. +func (s *DescribeCacheEngineVersionsOutput) SetCacheEngineVersions(v []*CacheEngineVersion) *DescribeCacheEngineVersionsOutput { + s.CacheEngineVersions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheEngineVersionsOutput) SetMarker(v string) *DescribeCacheEngineVersionsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeCacheParameterGroups operation. type DescribeCacheParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -5636,6 +6654,24 @@ func (s DescribeCacheParameterGroupsInput) GoString() string { return s.String() } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *DescribeCacheParameterGroupsInput) SetCacheParameterGroupName(v string) *DescribeCacheParameterGroupsInput { + s.CacheParameterGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheParameterGroupsInput) SetMarker(v string) *DescribeCacheParameterGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheParameterGroupsInput) SetMaxRecords(v int64) *DescribeCacheParameterGroupsInput { + s.MaxRecords = &v + return s +} + // Represents the output of a DescribeCacheParameterGroups operation. type DescribeCacheParameterGroupsOutput struct { _ struct{} `type:"structure"` @@ -5658,6 +6694,18 @@ func (s DescribeCacheParameterGroupsOutput) GoString() string { return s.String() } +// SetCacheParameterGroups sets the CacheParameterGroups field's value. +func (s *DescribeCacheParameterGroupsOutput) SetCacheParameterGroups(v []*CacheParameterGroup) *DescribeCacheParameterGroupsOutput { + s.CacheParameterGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheParameterGroupsOutput) SetMarker(v string) *DescribeCacheParameterGroupsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeCacheParameters operation. type DescribeCacheParametersInput struct { _ struct{} `type:"structure"` @@ -5710,6 +6758,30 @@ func (s *DescribeCacheParametersInput) Validate() error { return nil } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *DescribeCacheParametersInput) SetCacheParameterGroupName(v string) *DescribeCacheParametersInput { + s.CacheParameterGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheParametersInput) SetMarker(v string) *DescribeCacheParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheParametersInput) SetMaxRecords(v int64) *DescribeCacheParametersInput { + s.MaxRecords = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DescribeCacheParametersInput) SetSource(v string) *DescribeCacheParametersInput { + s.Source = &v + return s +} + // Represents the output of a DescribeCacheParameters operation. type DescribeCacheParametersOutput struct { _ struct{} `type:"structure"` @@ -5735,6 +6807,24 @@ func (s DescribeCacheParametersOutput) GoString() string { return s.String() } +// SetCacheNodeTypeSpecificParameters sets the CacheNodeTypeSpecificParameters field's value. +func (s *DescribeCacheParametersOutput) SetCacheNodeTypeSpecificParameters(v []*CacheNodeTypeSpecificParameter) *DescribeCacheParametersOutput { + s.CacheNodeTypeSpecificParameters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheParametersOutput) SetMarker(v string) *DescribeCacheParametersOutput { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeCacheParametersOutput) SetParameters(v []*Parameter) *DescribeCacheParametersOutput { + s.Parameters = v + return s +} + // Represents the input of a DescribeCacheSecurityGroups operation. type DescribeCacheSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -5767,6 +6857,24 @@ func (s DescribeCacheSecurityGroupsInput) GoString() string { return s.String() } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *DescribeCacheSecurityGroupsInput) SetCacheSecurityGroupName(v string) *DescribeCacheSecurityGroupsInput { + s.CacheSecurityGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheSecurityGroupsInput) SetMarker(v string) *DescribeCacheSecurityGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheSecurityGroupsInput) SetMaxRecords(v int64) *DescribeCacheSecurityGroupsInput { + s.MaxRecords = &v + return s +} + // Represents the output of a DescribeCacheSecurityGroups operation. type DescribeCacheSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -5789,6 +6897,18 @@ func (s DescribeCacheSecurityGroupsOutput) GoString() string { return s.String() } +// SetCacheSecurityGroups sets the CacheSecurityGroups field's value. +func (s *DescribeCacheSecurityGroupsOutput) SetCacheSecurityGroups(v []*CacheSecurityGroup) *DescribeCacheSecurityGroupsOutput { + s.CacheSecurityGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheSecurityGroupsOutput) SetMarker(v string) *DescribeCacheSecurityGroupsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeCacheSubnetGroups operation. type DescribeCacheSubnetGroupsInput struct { _ struct{} `type:"structure"` @@ -5821,6 +6941,24 @@ func (s DescribeCacheSubnetGroupsInput) GoString() string { return s.String() } +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *DescribeCacheSubnetGroupsInput) SetCacheSubnetGroupName(v string) *DescribeCacheSubnetGroupsInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheSubnetGroupsInput) SetMarker(v string) *DescribeCacheSubnetGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheSubnetGroupsInput) SetMaxRecords(v int64) *DescribeCacheSubnetGroupsInput { + s.MaxRecords = &v + return s +} + // Represents the output of a DescribeCacheSubnetGroups operation. type DescribeCacheSubnetGroupsOutput struct { _ struct{} `type:"structure"` @@ -5843,6 +6981,18 @@ func (s DescribeCacheSubnetGroupsOutput) GoString() string { return s.String() } +// SetCacheSubnetGroups sets the CacheSubnetGroups field's value. +func (s *DescribeCacheSubnetGroupsOutput) SetCacheSubnetGroups(v []*CacheSubnetGroup) *DescribeCacheSubnetGroupsOutput { + s.CacheSubnetGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheSubnetGroupsOutput) SetMarker(v string) *DescribeCacheSubnetGroupsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeEngineDefaultParameters operation. type DescribeEngineDefaultParametersInput struct { _ struct{} `type:"structure"` @@ -5892,6 +7042,24 @@ func (s *DescribeEngineDefaultParametersInput) Validate() error { return nil } +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *DescribeEngineDefaultParametersInput) SetCacheParameterGroupFamily(v string) *DescribeEngineDefaultParametersInput { + s.CacheParameterGroupFamily = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEngineDefaultParametersInput) SetMarker(v string) *DescribeEngineDefaultParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEngineDefaultParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultParametersInput { + s.MaxRecords = &v + return s +} + type DescribeEngineDefaultParametersOutput struct { _ struct{} `type:"structure"` @@ -5909,6 +7077,12 @@ func (s DescribeEngineDefaultParametersOutput) GoString() string { return s.String() } +// SetEngineDefaults sets the EngineDefaults field's value. +func (s *DescribeEngineDefaultParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultParametersOutput { + s.EngineDefaults = v + return s +} + // Represents the input of a DescribeEvents operation. type DescribeEventsInput struct { _ struct{} `type:"structure"` @@ -5957,6 +7131,48 @@ func (s DescribeEventsInput) GoString() string { return s.String() } +// SetDuration sets the Duration field's value. +func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput { + s.Duration = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { + s.MaxRecords = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput { + s.SourceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + // Represents the output of a DescribeEvents operation. type DescribeEventsOutput struct { _ struct{} `type:"structure"` @@ -5979,6 +7195,18 @@ func (s DescribeEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeReplicationGroups operation. type DescribeReplicationGroupsInput struct { _ struct{} `type:"structure"` @@ -6000,8 +7228,8 @@ type DescribeReplicationGroupsInput struct { // The identifier for the replication group to be described. This parameter // is not case sensitive. // - // If you do not specify this parameter, information about all replication - // groups is returned. + // If you do not specify this parameter, information about all replication groups + // is returned. ReplicationGroupId *string `type:"string"` } @@ -6015,6 +7243,24 @@ func (s DescribeReplicationGroupsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationGroupsInput) SetMarker(v string) *DescribeReplicationGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReplicationGroupsInput) SetMaxRecords(v int64) *DescribeReplicationGroupsInput { + s.MaxRecords = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *DescribeReplicationGroupsInput) SetReplicationGroupId(v string) *DescribeReplicationGroupsInput { + s.ReplicationGroupId = &v + return s +} + // Represents the output of a DescribeReplicationGroups operation. type DescribeReplicationGroupsOutput struct { _ struct{} `type:"structure"` @@ -6037,6 +7283,18 @@ func (s DescribeReplicationGroupsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationGroupsOutput) SetMarker(v string) *DescribeReplicationGroupsOutput { + s.Marker = &v + return s +} + +// SetReplicationGroups sets the ReplicationGroups field's value. +func (s *DescribeReplicationGroupsOutput) SetReplicationGroups(v []*ReplicationGroup) *DescribeReplicationGroupsOutput { + s.ReplicationGroups = v + return s +} + // Represents the input of a DescribeReservedCacheNodes operation. type DescribeReservedCacheNodesInput struct { _ struct{} `type:"structure"` @@ -6046,37 +7304,37 @@ type DescribeReservedCacheNodesInput struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -6131,6 +7389,54 @@ func (s DescribeReservedCacheNodesInput) GoString() string { return s.String() } +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *DescribeReservedCacheNodesInput) SetCacheNodeType(v string) *DescribeReservedCacheNodesInput { + s.CacheNodeType = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedCacheNodesInput) SetDuration(v string) *DescribeReservedCacheNodesInput { + s.Duration = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReservedCacheNodesInput) SetMarker(v string) *DescribeReservedCacheNodesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedCacheNodesInput) SetMaxRecords(v int64) *DescribeReservedCacheNodesInput { + s.MaxRecords = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedCacheNodesInput) SetOfferingType(v string) *DescribeReservedCacheNodesInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedCacheNodesInput) SetProductDescription(v string) *DescribeReservedCacheNodesInput { + s.ProductDescription = &v + return s +} + +// SetReservedCacheNodeId sets the ReservedCacheNodeId field's value. +func (s *DescribeReservedCacheNodesInput) SetReservedCacheNodeId(v string) *DescribeReservedCacheNodesInput { + s.ReservedCacheNodeId = &v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *DescribeReservedCacheNodesInput) SetReservedCacheNodesOfferingId(v string) *DescribeReservedCacheNodesInput { + s.ReservedCacheNodesOfferingId = &v + return s +} + // Represents the input of a DescribeReservedCacheNodesOfferings operation. type DescribeReservedCacheNodesOfferingsInput struct { _ struct{} `type:"structure"` @@ -6140,37 +7446,37 @@ type DescribeReservedCacheNodesOfferingsInput struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -6223,6 +7529,48 @@ func (s DescribeReservedCacheNodesOfferingsInput) GoString() string { return s.String() } +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetCacheNodeType(v string) *DescribeReservedCacheNodesOfferingsInput { + s.CacheNodeType = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetDuration(v string) *DescribeReservedCacheNodesOfferingsInput { + s.Duration = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetMarker(v string) *DescribeReservedCacheNodesOfferingsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetMaxRecords(v int64) *DescribeReservedCacheNodesOfferingsInput { + s.MaxRecords = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetOfferingType(v string) *DescribeReservedCacheNodesOfferingsInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetProductDescription(v string) *DescribeReservedCacheNodesOfferingsInput { + s.ProductDescription = &v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetReservedCacheNodesOfferingId(v string) *DescribeReservedCacheNodesOfferingsInput { + s.ReservedCacheNodesOfferingId = &v + return s +} + // Represents the output of a DescribeReservedCacheNodesOfferings operation. type DescribeReservedCacheNodesOfferingsOutput struct { _ struct{} `type:"structure"` @@ -6245,6 +7593,18 @@ func (s DescribeReservedCacheNodesOfferingsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedCacheNodesOfferingsOutput) SetMarker(v string) *DescribeReservedCacheNodesOfferingsOutput { + s.Marker = &v + return s +} + +// SetReservedCacheNodesOfferings sets the ReservedCacheNodesOfferings field's value. +func (s *DescribeReservedCacheNodesOfferingsOutput) SetReservedCacheNodesOfferings(v []*ReservedCacheNodesOffering) *DescribeReservedCacheNodesOfferingsOutput { + s.ReservedCacheNodesOfferings = v + return s +} + // Represents the output of a DescribeReservedCacheNodes operation. type DescribeReservedCacheNodesOutput struct { _ struct{} `type:"structure"` @@ -6267,6 +7627,18 @@ func (s DescribeReservedCacheNodesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedCacheNodesOutput) SetMarker(v string) *DescribeReservedCacheNodesOutput { + s.Marker = &v + return s +} + +// SetReservedCacheNodes sets the ReservedCacheNodes field's value. +func (s *DescribeReservedCacheNodesOutput) SetReservedCacheNodes(v []*ReservedCacheNode) *DescribeReservedCacheNodesOutput { + s.ReservedCacheNodes = v + return s +} + // Represents the input of a DescribeSnapshotsMessage operation. type DescribeSnapshotsInput struct { _ struct{} `type:"structure"` @@ -6293,7 +7665,7 @@ type DescribeSnapshotsInput struct { // only snapshots associated with that specific replication group are described. ReplicationGroupId *string `type:"string"` - // A boolean value which if true, the node group (shard) configuration is included + // A Boolean value which if true, the node group (shard) configuration is included // in the snapshot description. ShowNodeGroupConfig *bool `type:"boolean"` @@ -6318,6 +7690,48 @@ func (s DescribeSnapshotsInput) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *DescribeSnapshotsInput) SetCacheClusterId(v string) *DescribeSnapshotsInput { + s.CacheClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotsInput) SetMarker(v string) *DescribeSnapshotsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeSnapshotsInput) SetMaxRecords(v int64) *DescribeSnapshotsInput { + s.MaxRecords = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *DescribeSnapshotsInput) SetReplicationGroupId(v string) *DescribeSnapshotsInput { + s.ReplicationGroupId = &v + return s +} + +// SetShowNodeGroupConfig sets the ShowNodeGroupConfig field's value. +func (s *DescribeSnapshotsInput) SetShowNodeGroupConfig(v bool) *DescribeSnapshotsInput { + s.ShowNodeGroupConfig = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *DescribeSnapshotsInput) SetSnapshotName(v string) *DescribeSnapshotsInput { + s.SnapshotName = &v + return s +} + +// SetSnapshotSource sets the SnapshotSource field's value. +func (s *DescribeSnapshotsInput) SetSnapshotSource(v string) *DescribeSnapshotsInput { + s.SnapshotSource = &v + return s +} + // Represents the output of a DescribeSnapshots operation. type DescribeSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -6342,6 +7756,18 @@ func (s DescribeSnapshotsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotsOutput) SetMarker(v string) *DescribeSnapshotsOutput { + s.Marker = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput { + s.Snapshots = v + return s +} + // Provides ownership and status information for an Amazon EC2 security group. type EC2SecurityGroup struct { _ struct{} `type:"structure"` @@ -6366,6 +7792,24 @@ func (s EC2SecurityGroup) GoString() string { return s.String() } +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup { + s.Status = &v + return s +} + // Represents the information required for client programs to connect to a cache // node. type Endpoint struct { @@ -6388,6 +7832,18 @@ func (s Endpoint) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *Endpoint) SetAddress(v string) *Endpoint { + s.Address = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Endpoint) SetPort(v int64) *Endpoint { + s.Port = &v + return s +} + // Represents the output of a DescribeEngineDefaultParameters operation. type EngineDefaults struct { _ struct{} `type:"structure"` @@ -6419,6 +7875,30 @@ func (s EngineDefaults) GoString() string { return s.String() } +// SetCacheNodeTypeSpecificParameters sets the CacheNodeTypeSpecificParameters field's value. +func (s *EngineDefaults) SetCacheNodeTypeSpecificParameters(v []*CacheNodeTypeSpecificParameter) *EngineDefaults { + s.CacheNodeTypeSpecificParameters = v + return s +} + +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *EngineDefaults) SetCacheParameterGroupFamily(v string) *EngineDefaults { + s.CacheParameterGroupFamily = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *EngineDefaults) SetMarker(v string) *EngineDefaults { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *EngineDefaults) SetParameters(v []*Parameter) *EngineDefaults { + s.Parameters = v + return s +} + // Represents a single occurrence of something interesting within the system. // Some examples of events are creating a cache cluster, adding or removing // a cache node, or rebooting a node. @@ -6451,6 +7931,30 @@ func (s Event) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *Event) SetDate(v time.Time) *Event { + s.Date = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Event) SetMessage(v string) *Event { + s.Message = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *Event) SetSourceIdentifier(v string) *Event { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *Event) SetSourceType(v string) *Event { + s.SourceType = &v + return s +} + // The input parameters for the ListAllowedNodeTypeModifications operation. type ListAllowedNodeTypeModificationsInput struct { _ struct{} `type:"structure"` @@ -6460,7 +7964,7 @@ type ListAllowedNodeTypeModificationsInput struct { // this cluster and from that to create a list of node types you can scale up // to. // - // You must provide a value for either the CacheClusterId or the ReplicationGroupId. + // You must provide a value for either the CacheClusterId or the ReplicationGroupId. CacheClusterId *string `type:"string"` // The name of the replication group want to scale up to a larger node type. @@ -6468,7 +7972,7 @@ type ListAllowedNodeTypeModificationsInput struct { // being used by this replication group, and from that to create a list of node // types you can scale up to. // - // You must provide a value for either the CacheClusterId or the ReplicationGroupId. + // You must provide a value for either the CacheClusterId or the ReplicationGroupId. ReplicationGroupId *string `type:"string"` } @@ -6482,6 +7986,18 @@ func (s ListAllowedNodeTypeModificationsInput) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *ListAllowedNodeTypeModificationsInput) SetCacheClusterId(v string) *ListAllowedNodeTypeModificationsInput { + s.CacheClusterId = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *ListAllowedNodeTypeModificationsInput) SetReplicationGroupId(v string) *ListAllowedNodeTypeModificationsInput { + s.ReplicationGroupId = &v + return s +} + type ListAllowedNodeTypeModificationsOutput struct { _ struct{} `type:"structure"` @@ -6498,6 +8014,12 @@ func (s ListAllowedNodeTypeModificationsOutput) GoString() string { return s.String() } +// SetScaleUpModifications sets the ScaleUpModifications field's value. +func (s *ListAllowedNodeTypeModificationsOutput) SetScaleUpModifications(v []*string) *ListAllowedNodeTypeModificationsOutput { + s.ScaleUpModifications = v + return s +} + // The input parameters for the ListTagsForResource operation. type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -6536,6 +8058,12 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *ListTagsForResourceInput) SetResourceName(v string) *ListTagsForResourceInput { + s.ResourceName = &v + return s +} + // Represents the input of a ModifyCacheCluster operation. type ModifyCacheClusterInput struct { _ struct{} `type:"structure"` @@ -6547,8 +8075,8 @@ type ModifyCacheClusterInput struct { // // This option is only supported for Memcached cache clusters. // - // You cannot specify single-az if the Memcached cache cluster already has - // cache nodes in different Availability Zones. If cross-az is specified, existing + // You cannot specify single-az if the Memcached cache cluster already has cache + // nodes in different Availability Zones. If cross-az is specified, existing // Memcached nodes remain in their current Availability Zone. // // Only newly created nodes are located in different Availability Zones. For @@ -6564,10 +8092,10 @@ type ModifyCacheClusterInput struct { // If false, changes to the cache cluster are applied on the next maintenance // reboot, or the next failure reboot, whichever occurs first. // - // If you perform a ModifyCacheCluster before a pending modification is applied, + // If you perform a ModifyCacheCluster before a pending modification is applied, // the pending modification is replaced by the newer modification. // - // Valid values: true | false + // Valid values: true | false // // Default: false ApplyImmediately *bool `type:"boolean"` @@ -6612,7 +8140,7 @@ type ModifyCacheClusterInput struct { // The upgraded version of the cache engine to be run on the cache nodes. // - // Important: You can upgrade to a newer engine version (see Selecting a Cache + // Important: You can upgrade to a newer engine version (see Selecting a Cache // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), // but you cannot downgrade to an earlier engine version. If you want to use // an earlier engine version, you must delete the existing cache cluster and @@ -6630,18 +8158,19 @@ type ModifyCacheClusterInput struct { // // Scenarios: // - // Scenario 1: You have 3 active nodes and wish to add 2 nodes. Specify - // NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones for - // the two new nodes. + // * Scenario 1: You have 3 active nodes and wish to add 2 nodes. Specify + // NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones + // for the two new nodes. // - // Scenario 2: You have 3 active nodes and 2 nodes pending creation (from - // the scenario 1 call) and want to add 1 more node. Specify NumCacheNodes=6 - // ((3 + 2) + 1) and optionally specify an Availability Zone for the new node. + // * Scenario 2: You have 3 active nodes and 2 nodes pending creation (from + // the scenario 1 call) and want to add 1 more node. Specify NumCacheNodes=6 + // ((3 + 2) + 1) and optionally specify an Availability Zone for the new + // node. // - // Scenario 3: You want to cancel all pending operations. Specify NumCacheNodes=3 - // to cancel all pending operations. + // * Scenario 3: You want to cancel all pending operations. Specify NumCacheNodes=3 + // to cancel all pending operations. // - // The Availability Zone placement of nodes pending creation cannot be modified. + // The Availability Zone placement of nodes pending creation cannot be modified. // If you wish to cancel any nodes pending creation, add 0 nodes by setting // NumCacheNodes to the number of current nodes. // @@ -6651,49 +8180,49 @@ type ModifyCacheClusterInput struct { // Availability Zones, see the Availability Zone Considerations section of Cache // Node Considerations for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheNode.Memcached.html). // - // Impact of new add/remove requests upon pending requests + // Impact of new add/remove requests upon pending requests // - // Scenario-1 + // * Scenario-1 // - // Pending Action: Delete + // Pending Action: Delete // - // New Request: Delete + // New Request: Delete // - // Result: The new delete, pending or immediate, replaces the pending delete. + // Result: The new delete, pending or immediate, replaces the pending delete. // - // Scenario-2 + // * Scenario-2 // - // Pending Action: Delete + // Pending Action: Delete // - // New Request: Create + // New Request: Create // - // Result: The new create, pending or immediate, replaces the pending delete. + // Result: The new create, pending or immediate, replaces the pending delete. // - // Scenario-3 + // * Scenario-3 // - // Pending Action: Create + // Pending Action: Create // - // New Request: Delete + // New Request: Delete // - // Result: The new delete, pending or immediate, replaces the pending create. + // Result: The new delete, pending or immediate, replaces the pending create. // - // Scenario-4 + // * Scenario-4 // - // Pending Action: Create + // Pending Action: Create // - // New Request: Create + // New Request: Create // - // Result: The new create is added to the pending create. + // Result: The new create is added to the pending create. // - // Important: If the new create request is Apply Immediately - Yes, all creates - // are performed immediately. If the new create request is Apply Immediately - // - No, all creates are pending. + // Important: If the new create request is Apply Immediately - Yes, all creates + // are performed immediately. If the new create request is Apply Immediately + // - No, all creates are pending. NewAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"` // The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications // are sent. // - // The Amazon SNS topic owner must be same as the cache cluster owner. + // The Amazon SNS topic owner must be same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The status of the Amazon SNS notification topic. Notifications are sent only @@ -6715,8 +8244,8 @@ type ModifyCacheClusterInput struct { // For clusters running Redis, this value must be 1. For clusters running Memcached, // this value must be between 1 and 20. // - // Adding or removing Memcached cache nodes can be applied immediately or - // as a pending operation (see ApplyImmediately). + // Adding or removing Memcached cache nodes can be applied immediately or as + // a pending operation (see ApplyImmediately). // // A pending operation to modify the number of cache nodes in a cluster during // its maintenance window, whether by adding or removing nodes in accordance @@ -6741,21 +8270,21 @@ type ModifyCacheClusterInput struct { // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // Specifies the VPC Security Groups associated with the cache cluster. @@ -6769,8 +8298,8 @@ type ModifyCacheClusterInput struct { // to 5, a snapshot that was taken today is retained for 5 days before being // deleted. // - // If the value of SnapshotRetentionLimit is set to zero (0), backups are - // turned off. + // If the value of SnapshotRetentionLimit is set to zero (0), backups are turned + // off. SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -6801,6 +8330,108 @@ func (s *ModifyCacheClusterInput) Validate() error { return nil } +// SetAZMode sets the AZMode field's value. +func (s *ModifyCacheClusterInput) SetAZMode(v string) *ModifyCacheClusterInput { + s.AZMode = &v + return s +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyCacheClusterInput) SetApplyImmediately(v bool) *ModifyCacheClusterInput { + s.ApplyImmediately = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *ModifyCacheClusterInput) SetAutoMinorVersionUpgrade(v bool) *ModifyCacheClusterInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *ModifyCacheClusterInput) SetCacheClusterId(v string) *ModifyCacheClusterInput { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeIdsToRemove sets the CacheNodeIdsToRemove field's value. +func (s *ModifyCacheClusterInput) SetCacheNodeIdsToRemove(v []*string) *ModifyCacheClusterInput { + s.CacheNodeIdsToRemove = v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *ModifyCacheClusterInput) SetCacheNodeType(v string) *ModifyCacheClusterInput { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *ModifyCacheClusterInput) SetCacheParameterGroupName(v string) *ModifyCacheClusterInput { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value. +func (s *ModifyCacheClusterInput) SetCacheSecurityGroupNames(v []*string) *ModifyCacheClusterInput { + s.CacheSecurityGroupNames = v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyCacheClusterInput) SetEngineVersion(v string) *ModifyCacheClusterInput { + s.EngineVersion = &v + return s +} + +// SetNewAvailabilityZones sets the NewAvailabilityZones field's value. +func (s *ModifyCacheClusterInput) SetNewAvailabilityZones(v []*string) *ModifyCacheClusterInput { + s.NewAvailabilityZones = v + return s +} + +// SetNotificationTopicArn sets the NotificationTopicArn field's value. +func (s *ModifyCacheClusterInput) SetNotificationTopicArn(v string) *ModifyCacheClusterInput { + s.NotificationTopicArn = &v + return s +} + +// SetNotificationTopicStatus sets the NotificationTopicStatus field's value. +func (s *ModifyCacheClusterInput) SetNotificationTopicStatus(v string) *ModifyCacheClusterInput { + s.NotificationTopicStatus = &v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *ModifyCacheClusterInput) SetNumCacheNodes(v int64) *ModifyCacheClusterInput { + s.NumCacheNodes = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyCacheClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyCacheClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ModifyCacheClusterInput) SetSecurityGroupIds(v []*string) *ModifyCacheClusterInput { + s.SecurityGroupIds = v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *ModifyCacheClusterInput) SetSnapshotRetentionLimit(v int64) *ModifyCacheClusterInput { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *ModifyCacheClusterInput) SetSnapshotWindow(v string) *ModifyCacheClusterInput { + s.SnapshotWindow = &v + return s +} + type ModifyCacheClusterOutput struct { _ struct{} `type:"structure"` @@ -6818,6 +8449,12 @@ func (s ModifyCacheClusterOutput) GoString() string { return s.String() } +// SetCacheCluster sets the CacheCluster field's value. +func (s *ModifyCacheClusterOutput) SetCacheCluster(v *CacheCluster) *ModifyCacheClusterOutput { + s.CacheCluster = v + return s +} + // Represents the input of a ModifyCacheParameterGroup operation. type ModifyCacheParameterGroupInput struct { _ struct{} `type:"structure"` @@ -6861,6 +8498,18 @@ func (s *ModifyCacheParameterGroupInput) Validate() error { return nil } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *ModifyCacheParameterGroupInput) SetCacheParameterGroupName(v string) *ModifyCacheParameterGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetParameterNameValues sets the ParameterNameValues field's value. +func (s *ModifyCacheParameterGroupInput) SetParameterNameValues(v []*ParameterNameValue) *ModifyCacheParameterGroupInput { + s.ParameterNameValues = v + return s +} + // Represents the input of a ModifyCacheSubnetGroup operation. type ModifyCacheSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -6905,14 +8554,32 @@ func (s *ModifyCacheSubnetGroupInput) Validate() error { return nil } +// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value. +func (s *ModifyCacheSubnetGroupInput) SetCacheSubnetGroupDescription(v string) *ModifyCacheSubnetGroupInput { + s.CacheSubnetGroupDescription = &v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *ModifyCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *ModifyCacheSubnetGroupInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ModifyCacheSubnetGroupInput) SetSubnetIds(v []*string) *ModifyCacheSubnetGroupInput { + s.SubnetIds = v + return s +} + type ModifyCacheSubnetGroupOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // CreateCacheSubnetGroup + // * CreateCacheSubnetGroup // - // ModifyCacheSubnetGroup + // * ModifyCacheSubnetGroup CacheSubnetGroup *CacheSubnetGroup `type:"structure"` } @@ -6926,6 +8593,12 @@ func (s ModifyCacheSubnetGroupOutput) GoString() string { return s.String() } +// SetCacheSubnetGroup sets the CacheSubnetGroup field's value. +func (s *ModifyCacheSubnetGroupOutput) SetCacheSubnetGroup(v *CacheSubnetGroup) *ModifyCacheSubnetGroupOutput { + s.CacheSubnetGroup = v + return s +} + // Represents the input of a ModifyReplicationGroups operation. type ModifyReplicationGroupInput struct { _ struct{} `type:"structure"` @@ -6951,11 +8624,11 @@ type ModifyReplicationGroupInput struct { // // Valid values: true | false // - // ElastiCache Multi-AZ replication groups are not supported on: + // ElastiCache Multi-AZ replication groups are not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled):T1 and T2 cache node types. + // Redis (cluster mode disabled):T1 and T2 cache node types. // // Redis (cluster mode enabled): T1 node types. AutomaticFailoverEnabled *bool `type:"boolean"` @@ -6972,8 +8645,8 @@ type ModifyReplicationGroupInput struct { // A list of cache security group names to authorize for the clusters in this // replication group. This change is asynchronously applied as soon as possible. // - // This parameter can be used only with replication group containing cache - // clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC). + // This parameter can be used only with replication group containing cache clusters + // running outside of an Amazon Virtual Private Cloud (Amazon VPC). // // Constraints: Must contain no more than 255 alphanumeric characters. Must // not be Default. @@ -6982,7 +8655,7 @@ type ModifyReplicationGroupInput struct { // The upgraded version of the cache engine to be run on the cache clusters // in the replication group. // - // Important: You can upgrade to a newer engine version (see Selecting a Cache + // Important: You can upgrade to a newer engine version (see Selecting a Cache // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), // but you cannot downgrade to an earlier engine version. If you want to use // an earlier engine version, you must delete the existing replication group @@ -6992,7 +8665,7 @@ type ModifyReplicationGroupInput struct { // The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications // are sent. // - // The Amazon SNS topic owner must be same as the replication group owner. + // The Amazon SNS topic owner must be same as the replication group owner. NotificationTopicArn *string `type:"string"` // The status of the Amazon SNS notification topic for the replication group. @@ -7007,21 +8680,21 @@ type ModifyReplicationGroupInput struct { // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // For replication groups with a single primary, if this parameter is specified, @@ -7041,8 +8714,8 @@ type ModifyReplicationGroupInput struct { // Specifies the VPC Security Groups associated with the cache clusters in the // replication group. // - // This parameter can be used only with replication group containing cache - // clusters running in an Amazon Virtual Private Cloud (Amazon VPC). + // This parameter can be used only with replication group containing cache clusters + // running in an Amazon Virtual Private Cloud (Amazon VPC). SecurityGroupIds []*string `locationNameList:"SecurityGroupId" type:"list"` // The number of days for which ElastiCache retains automatic node group (shard) @@ -7050,7 +8723,7 @@ type ModifyReplicationGroupInput struct { // to 5, a snapshot that was taken today is retained for 5 days before being // deleted. // - // Important If the value of SnapshotRetentionLimit is set to zero (0), backups + // Important If the value of SnapshotRetentionLimit is set to zero (0), backups // are turned off. SnapshotRetentionLimit *int64 `type:"integer"` @@ -7059,8 +8732,8 @@ type ModifyReplicationGroupInput struct { // // Example: 05:00-09:00 // - // If you do not specify this parameter, ElastiCache automatically chooses - // an appropriate time range. + // If you do not specify this parameter, ElastiCache automatically chooses an + // appropriate time range. SnapshotWindow *string `type:"string"` // The cache cluster ID that is used as the daily snapshot source for the replication @@ -7092,6 +8765,108 @@ func (s *ModifyReplicationGroupInput) Validate() error { return nil } +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyReplicationGroupInput) SetApplyImmediately(v bool) *ModifyReplicationGroupInput { + s.ApplyImmediately = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *ModifyReplicationGroupInput) SetAutoMinorVersionUpgrade(v bool) *ModifyReplicationGroupInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAutomaticFailoverEnabled sets the AutomaticFailoverEnabled field's value. +func (s *ModifyReplicationGroupInput) SetAutomaticFailoverEnabled(v bool) *ModifyReplicationGroupInput { + s.AutomaticFailoverEnabled = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *ModifyReplicationGroupInput) SetCacheNodeType(v string) *ModifyReplicationGroupInput { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *ModifyReplicationGroupInput) SetCacheParameterGroupName(v string) *ModifyReplicationGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value. +func (s *ModifyReplicationGroupInput) SetCacheSecurityGroupNames(v []*string) *ModifyReplicationGroupInput { + s.CacheSecurityGroupNames = v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyReplicationGroupInput) SetEngineVersion(v string) *ModifyReplicationGroupInput { + s.EngineVersion = &v + return s +} + +// SetNotificationTopicArn sets the NotificationTopicArn field's value. +func (s *ModifyReplicationGroupInput) SetNotificationTopicArn(v string) *ModifyReplicationGroupInput { + s.NotificationTopicArn = &v + return s +} + +// SetNotificationTopicStatus sets the NotificationTopicStatus field's value. +func (s *ModifyReplicationGroupInput) SetNotificationTopicStatus(v string) *ModifyReplicationGroupInput { + s.NotificationTopicStatus = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyReplicationGroupInput) SetPreferredMaintenanceWindow(v string) *ModifyReplicationGroupInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPrimaryClusterId sets the PrimaryClusterId field's value. +func (s *ModifyReplicationGroupInput) SetPrimaryClusterId(v string) *ModifyReplicationGroupInput { + s.PrimaryClusterId = &v + return s +} + +// SetReplicationGroupDescription sets the ReplicationGroupDescription field's value. +func (s *ModifyReplicationGroupInput) SetReplicationGroupDescription(v string) *ModifyReplicationGroupInput { + s.ReplicationGroupDescription = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *ModifyReplicationGroupInput) SetReplicationGroupId(v string) *ModifyReplicationGroupInput { + s.ReplicationGroupId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ModifyReplicationGroupInput) SetSecurityGroupIds(v []*string) *ModifyReplicationGroupInput { + s.SecurityGroupIds = v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *ModifyReplicationGroupInput) SetSnapshotRetentionLimit(v int64) *ModifyReplicationGroupInput { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *ModifyReplicationGroupInput) SetSnapshotWindow(v string) *ModifyReplicationGroupInput { + s.SnapshotWindow = &v + return s +} + +// SetSnapshottingClusterId sets the SnapshottingClusterId field's value. +func (s *ModifyReplicationGroupInput) SetSnapshottingClusterId(v string) *ModifyReplicationGroupInput { + s.SnapshottingClusterId = &v + return s +} + type ModifyReplicationGroupOutput struct { _ struct{} `type:"structure"` @@ -7109,8 +8884,14 @@ func (s ModifyReplicationGroupOutput) GoString() string { return s.String() } +// SetReplicationGroup sets the ReplicationGroup field's value. +func (s *ModifyReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *ModifyReplicationGroupOutput { + s.ReplicationGroup = v + return s +} + // Represents a collection of cache nodes in a replication group. One node in -// the node group is the read/write Primary node. All the other nodes are read-only +// the node group is the read/write primary node. All the other nodes are read-only // Replica nodes. type NodeGroup struct { _ struct{} `type:"structure"` @@ -7145,6 +8926,36 @@ func (s NodeGroup) GoString() string { return s.String() } +// SetNodeGroupId sets the NodeGroupId field's value. +func (s *NodeGroup) SetNodeGroupId(v string) *NodeGroup { + s.NodeGroupId = &v + return s +} + +// SetNodeGroupMembers sets the NodeGroupMembers field's value. +func (s *NodeGroup) SetNodeGroupMembers(v []*NodeGroupMember) *NodeGroup { + s.NodeGroupMembers = v + return s +} + +// SetPrimaryEndpoint sets the PrimaryEndpoint field's value. +func (s *NodeGroup) SetPrimaryEndpoint(v *Endpoint) *NodeGroup { + s.PrimaryEndpoint = v + return s +} + +// SetSlots sets the Slots field's value. +func (s *NodeGroup) SetSlots(v string) *NodeGroup { + s.Slots = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *NodeGroup) SetStatus(v string) *NodeGroup { + s.Status = &v + return s +} + // node group (shard) configuration options. Each node group (shard) configuration // has the following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, // ReplicaCount. @@ -7180,6 +8991,30 @@ func (s NodeGroupConfiguration) GoString() string { return s.String() } +// SetPrimaryAvailabilityZone sets the PrimaryAvailabilityZone field's value. +func (s *NodeGroupConfiguration) SetPrimaryAvailabilityZone(v string) *NodeGroupConfiguration { + s.PrimaryAvailabilityZone = &v + return s +} + +// SetReplicaAvailabilityZones sets the ReplicaAvailabilityZones field's value. +func (s *NodeGroupConfiguration) SetReplicaAvailabilityZones(v []*string) *NodeGroupConfiguration { + s.ReplicaAvailabilityZones = v + return s +} + +// SetReplicaCount sets the ReplicaCount field's value. +func (s *NodeGroupConfiguration) SetReplicaCount(v int64) *NodeGroupConfiguration { + s.ReplicaCount = &v + return s +} + +// SetSlots sets the Slots field's value. +func (s *NodeGroupConfiguration) SetSlots(v string) *NodeGroupConfiguration { + s.Slots = &v + return s +} + // Represents a single node within a node group (shard). type NodeGroupMember struct { _ struct{} `type:"structure"` @@ -7212,6 +9047,36 @@ func (s NodeGroupMember) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *NodeGroupMember) SetCacheClusterId(v string) *NodeGroupMember { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeId sets the CacheNodeId field's value. +func (s *NodeGroupMember) SetCacheNodeId(v string) *NodeGroupMember { + s.CacheNodeId = &v + return s +} + +// SetCurrentRole sets the CurrentRole field's value. +func (s *NodeGroupMember) SetCurrentRole(v string) *NodeGroupMember { + s.CurrentRole = &v + return s +} + +// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value. +func (s *NodeGroupMember) SetPreferredAvailabilityZone(v string) *NodeGroupMember { + s.PreferredAvailabilityZone = &v + return s +} + +// SetReadEndpoint sets the ReadEndpoint field's value. +func (s *NodeGroupMember) SetReadEndpoint(v *Endpoint) *NodeGroupMember { + s.ReadEndpoint = v + return s +} + // Represents an individual cache node in a snapshot of a cache cluster. type NodeSnapshot struct { _ struct{} `type:"structure"` @@ -7249,6 +9114,48 @@ func (s NodeSnapshot) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *NodeSnapshot) SetCacheClusterId(v string) *NodeSnapshot { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeCreateTime sets the CacheNodeCreateTime field's value. +func (s *NodeSnapshot) SetCacheNodeCreateTime(v time.Time) *NodeSnapshot { + s.CacheNodeCreateTime = &v + return s +} + +// SetCacheNodeId sets the CacheNodeId field's value. +func (s *NodeSnapshot) SetCacheNodeId(v string) *NodeSnapshot { + s.CacheNodeId = &v + return s +} + +// SetCacheSize sets the CacheSize field's value. +func (s *NodeSnapshot) SetCacheSize(v string) *NodeSnapshot { + s.CacheSize = &v + return s +} + +// SetNodeGroupConfiguration sets the NodeGroupConfiguration field's value. +func (s *NodeSnapshot) SetNodeGroupConfiguration(v *NodeGroupConfiguration) *NodeSnapshot { + s.NodeGroupConfiguration = v + return s +} + +// SetNodeGroupId sets the NodeGroupId field's value. +func (s *NodeSnapshot) SetNodeGroupId(v string) *NodeSnapshot { + s.NodeGroupId = &v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *NodeSnapshot) SetSnapshotCreateTime(v time.Time) *NodeSnapshot { + s.SnapshotCreateTime = &v + return s +} + // Describes a notification topic and its status. Notification topics are used // for publishing ElastiCache events to subscribers using Amazon Simple Notification // Service (SNS). @@ -7272,6 +9179,18 @@ func (s NotificationConfiguration) GoString() string { return s.String() } +// SetTopicArn sets the TopicArn field's value. +func (s *NotificationConfiguration) SetTopicArn(v string) *NotificationConfiguration { + s.TopicArn = &v + return s +} + +// SetTopicStatus sets the TopicStatus field's value. +func (s *NotificationConfiguration) SetTopicStatus(v string) *NotificationConfiguration { + s.TopicStatus = &v + return s +} + // Describes an individual setting that controls some aspect of ElastiCache // behavior. type Parameter struct { @@ -7320,6 +9239,60 @@ func (s Parameter) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *Parameter) SetAllowedValues(v string) *Parameter { + s.AllowedValues = &v + return s +} + +// SetChangeType sets the ChangeType field's value. +func (s *Parameter) SetChangeType(v string) *Parameter { + s.ChangeType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *Parameter) SetDataType(v string) *Parameter { + s.DataType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Parameter) SetDescription(v string) *Parameter { + s.Description = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *Parameter) SetIsModifiable(v bool) *Parameter { + s.IsModifiable = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter { + s.MinimumEngineVersion = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *Parameter) SetParameterName(v string) *Parameter { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *Parameter) SetParameterValue(v string) *Parameter { + s.ParameterValue = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Parameter) SetSource(v string) *Parameter { + s.Source = &v + return s +} + // Describes a name-value pair that is used to update the value of a parameter. type ParameterNameValue struct { _ struct{} `type:"structure"` @@ -7341,6 +9314,18 @@ func (s ParameterNameValue) GoString() string { return s.String() } +// SetParameterName sets the ParameterName field's value. +func (s *ParameterNameValue) SetParameterName(v string) *ParameterNameValue { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *ParameterNameValue) SetParameterValue(v string) *ParameterNameValue { + s.ParameterValue = &v + return s +} + // A group of settings that are applied to the cache cluster in the future, // or that are currently being applied. type PendingModifiedValues struct { @@ -7374,6 +9359,30 @@ func (s PendingModifiedValues) GoString() string { return s.String() } +// SetCacheNodeIdsToRemove sets the CacheNodeIdsToRemove field's value. +func (s *PendingModifiedValues) SetCacheNodeIdsToRemove(v []*string) *PendingModifiedValues { + s.CacheNodeIdsToRemove = v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *PendingModifiedValues) SetCacheNodeType(v string) *PendingModifiedValues { + s.CacheNodeType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *PendingModifiedValues) SetEngineVersion(v string) *PendingModifiedValues { + s.EngineVersion = &v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *PendingModifiedValues) SetNumCacheNodes(v int64) *PendingModifiedValues { + s.NumCacheNodes = &v + return s +} + // Represents the input of a PurchaseReservedCacheNodesOffering operation. type PurchaseReservedCacheNodesOfferingInput struct { _ struct{} `type:"structure"` @@ -7385,11 +9394,11 @@ type PurchaseReservedCacheNodesOfferingInput struct { // A customer-specified identifier to track this reservation. // - // The Reserved Cache Node ID is an unique customer-specified identifier to + // The Reserved Cache Node ID is an unique customer-specified identifier to // track this reservation. If this parameter is not specified, ElastiCache automatically // generates an identifier for the reservation. // - // Example: myreservationID + // Example: myreservationID ReservedCacheNodeId *string `type:"string"` // The ID of the reserved cache node offering to purchase. @@ -7423,6 +9432,24 @@ func (s *PurchaseReservedCacheNodesOfferingInput) Validate() error { return nil } +// SetCacheNodeCount sets the CacheNodeCount field's value. +func (s *PurchaseReservedCacheNodesOfferingInput) SetCacheNodeCount(v int64) *PurchaseReservedCacheNodesOfferingInput { + s.CacheNodeCount = &v + return s +} + +// SetReservedCacheNodeId sets the ReservedCacheNodeId field's value. +func (s *PurchaseReservedCacheNodesOfferingInput) SetReservedCacheNodeId(v string) *PurchaseReservedCacheNodesOfferingInput { + s.ReservedCacheNodeId = &v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *PurchaseReservedCacheNodesOfferingInput) SetReservedCacheNodesOfferingId(v string) *PurchaseReservedCacheNodesOfferingInput { + s.ReservedCacheNodesOfferingId = &v + return s +} + type PurchaseReservedCacheNodesOfferingOutput struct { _ struct{} `type:"structure"` @@ -7440,6 +9467,12 @@ func (s PurchaseReservedCacheNodesOfferingOutput) GoString() string { return s.String() } +// SetReservedCacheNode sets the ReservedCacheNode field's value. +func (s *PurchaseReservedCacheNodesOfferingOutput) SetReservedCacheNode(v *ReservedCacheNode) *PurchaseReservedCacheNodesOfferingOutput { + s.ReservedCacheNode = v + return s +} + // Represents the input of a RebootCacheCluster operation. type RebootCacheClusterInput struct { _ struct{} `type:"structure"` @@ -7483,6 +9516,18 @@ func (s *RebootCacheClusterInput) Validate() error { return nil } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *RebootCacheClusterInput) SetCacheClusterId(v string) *RebootCacheClusterInput { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeIdsToReboot sets the CacheNodeIdsToReboot field's value. +func (s *RebootCacheClusterInput) SetCacheNodeIdsToReboot(v []*string) *RebootCacheClusterInput { + s.CacheNodeIdsToReboot = v + return s +} + type RebootCacheClusterOutput struct { _ struct{} `type:"structure"` @@ -7500,6 +9545,12 @@ func (s RebootCacheClusterOutput) GoString() string { return s.String() } +// SetCacheCluster sets the CacheCluster field's value. +func (s *RebootCacheClusterOutput) SetCacheCluster(v *CacheCluster) *RebootCacheClusterOutput { + s.CacheCluster = v + return s +} + // Contains the specific price and frequency of a recurring charges for a reserved // cache node, or for a reserved cache node offering. type RecurringCharge struct { @@ -7522,6 +9573,18 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetRecurringChargeAmount sets the RecurringChargeAmount field's value. +func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge { + s.RecurringChargeAmount = &v + return s +} + +// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. +func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { + s.RecurringChargeFrequency = &v + return s +} + // Represents the input of a RemoveTagsFromResource operation. type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -7568,17 +9631,29 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *RemoveTagsFromResourceInput) SetResourceName(v string) *RemoveTagsFromResourceInput { + s.ResourceName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + // Contains all of the attributes of a specific Redis replication group. type ReplicationGroup struct { _ struct{} `type:"structure"` // Indicates the status of Multi-AZ for this replication group. // - // ElastiCache Multi-AZ replication groups are not supported on: + // ElastiCache Multi-AZ replication groups are not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled):T1 and T2 cache node types. + // Redis (cluster mode disabled):T1 and T2 cache node types. // // Redis (cluster mode enabled): T1 node types. AutomaticFailover *string `type:"string" enum:"AutomaticFailoverStatus"` @@ -7609,8 +9684,8 @@ type ReplicationGroup struct { // to 5, a snapshot that was taken today is retained for 5 days before being // deleted. // - // If the value of SnapshotRetentionLimit is set to zero (0), backups are - // turned off. + // If the value of SnapshotRetentionLimit is set to zero (0), backups are turned + // off. SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -7618,17 +9693,18 @@ type ReplicationGroup struct { // // Example: 05:00-09:00 // - // If you do not specify this parameter, ElastiCache automatically chooses - // an appropriate time range. + // If you do not specify this parameter, ElastiCache automatically chooses an + // appropriate time range. // - // Note: This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. SnapshotWindow *string `type:"string"` // The cache cluster ID that is used as the daily snapshot source for the replication // group. SnapshottingClusterId *string `type:"string"` - // The current state of this replication group - creating, available, etc. + // The current state of this replication group - creating, available, modifying, + // deleting, create-failed, snapshotting. Status *string `type:"string"` } @@ -7642,6 +9718,72 @@ func (s ReplicationGroup) GoString() string { return s.String() } +// SetAutomaticFailover sets the AutomaticFailover field's value. +func (s *ReplicationGroup) SetAutomaticFailover(v string) *ReplicationGroup { + s.AutomaticFailover = &v + return s +} + +// SetConfigurationEndpoint sets the ConfigurationEndpoint field's value. +func (s *ReplicationGroup) SetConfigurationEndpoint(v *Endpoint) *ReplicationGroup { + s.ConfigurationEndpoint = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ReplicationGroup) SetDescription(v string) *ReplicationGroup { + s.Description = &v + return s +} + +// SetMemberClusters sets the MemberClusters field's value. +func (s *ReplicationGroup) SetMemberClusters(v []*string) *ReplicationGroup { + s.MemberClusters = v + return s +} + +// SetNodeGroups sets the NodeGroups field's value. +func (s *ReplicationGroup) SetNodeGroups(v []*NodeGroup) *ReplicationGroup { + s.NodeGroups = v + return s +} + +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *ReplicationGroup) SetPendingModifiedValues(v *ReplicationGroupPendingModifiedValues) *ReplicationGroup { + s.PendingModifiedValues = v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *ReplicationGroup) SetReplicationGroupId(v string) *ReplicationGroup { + s.ReplicationGroupId = &v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *ReplicationGroup) SetSnapshotRetentionLimit(v int64) *ReplicationGroup { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *ReplicationGroup) SetSnapshotWindow(v string) *ReplicationGroup { + s.SnapshotWindow = &v + return s +} + +// SetSnapshottingClusterId sets the SnapshottingClusterId field's value. +func (s *ReplicationGroup) SetSnapshottingClusterId(v string) *ReplicationGroup { + s.SnapshottingClusterId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReplicationGroup) SetStatus(v string) *ReplicationGroup { + s.Status = &v + return s +} + // The settings to be applied to the Redis replication group, either immediately // or during the next maintenance window. type ReplicationGroupPendingModifiedValues struct { @@ -7649,11 +9791,11 @@ type ReplicationGroupPendingModifiedValues struct { // Indicates the status of Multi-AZ for this Redis replication group. // - // ElastiCache Multi-AZ replication groups are not supported on: + // ElastiCache Multi-AZ replication groups are not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled):T1 and T2 cache node types. + // Redis (cluster mode disabled):T1 and T2 cache node types. // // Redis (cluster mode enabled): T1 node types. AutomaticFailoverStatus *string `type:"string" enum:"PendingAutomaticFailoverStatus"` @@ -7673,6 +9815,18 @@ func (s ReplicationGroupPendingModifiedValues) GoString() string { return s.String() } +// SetAutomaticFailoverStatus sets the AutomaticFailoverStatus field's value. +func (s *ReplicationGroupPendingModifiedValues) SetAutomaticFailoverStatus(v string) *ReplicationGroupPendingModifiedValues { + s.AutomaticFailoverStatus = &v + return s +} + +// SetPrimaryClusterId sets the PrimaryClusterId field's value. +func (s *ReplicationGroupPendingModifiedValues) SetPrimaryClusterId(v string) *ReplicationGroupPendingModifiedValues { + s.PrimaryClusterId = &v + return s +} + // Represents the output of a PurchaseReservedCacheNodesOffering operation. type ReservedCacheNode struct { _ struct{} `type:"structure"` @@ -7684,37 +9838,37 @@ type ReservedCacheNode struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -7761,6 +9915,78 @@ func (s ReservedCacheNode) GoString() string { return s.String() } +// SetCacheNodeCount sets the CacheNodeCount field's value. +func (s *ReservedCacheNode) SetCacheNodeCount(v int64) *ReservedCacheNode { + s.CacheNodeCount = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *ReservedCacheNode) SetCacheNodeType(v string) *ReservedCacheNode { + s.CacheNodeType = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedCacheNode) SetDuration(v int64) *ReservedCacheNode { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedCacheNode) SetFixedPrice(v float64) *ReservedCacheNode { + s.FixedPrice = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedCacheNode) SetOfferingType(v string) *ReservedCacheNode { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedCacheNode) SetProductDescription(v string) *ReservedCacheNode { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedCacheNode) SetRecurringCharges(v []*RecurringCharge) *ReservedCacheNode { + s.RecurringCharges = v + return s +} + +// SetReservedCacheNodeId sets the ReservedCacheNodeId field's value. +func (s *ReservedCacheNode) SetReservedCacheNodeId(v string) *ReservedCacheNode { + s.ReservedCacheNodeId = &v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *ReservedCacheNode) SetReservedCacheNodesOfferingId(v string) *ReservedCacheNode { + s.ReservedCacheNodesOfferingId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReservedCacheNode) SetStartTime(v time.Time) *ReservedCacheNode { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedCacheNode) SetState(v string) *ReservedCacheNode { + s.State = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedCacheNode) SetUsagePrice(v float64) *ReservedCacheNode { + s.UsagePrice = &v + return s +} + // Describes all of the attributes of a reserved cache node offering. type ReservedCacheNodesOffering struct { _ struct{} `type:"structure"` @@ -7769,37 +9995,37 @@ type ReservedCacheNodesOffering struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -7837,6 +10063,54 @@ func (s ReservedCacheNodesOffering) GoString() string { return s.String() } +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *ReservedCacheNodesOffering) SetCacheNodeType(v string) *ReservedCacheNodesOffering { + s.CacheNodeType = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedCacheNodesOffering) SetDuration(v int64) *ReservedCacheNodesOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedCacheNodesOffering) SetFixedPrice(v float64) *ReservedCacheNodesOffering { + s.FixedPrice = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedCacheNodesOffering) SetOfferingType(v string) *ReservedCacheNodesOffering { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedCacheNodesOffering) SetProductDescription(v string) *ReservedCacheNodesOffering { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedCacheNodesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedCacheNodesOffering { + s.RecurringCharges = v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *ReservedCacheNodesOffering) SetReservedCacheNodesOfferingId(v string) *ReservedCacheNodesOffering { + s.ReservedCacheNodesOfferingId = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedCacheNodesOffering) SetUsagePrice(v float64) *ReservedCacheNodesOffering { + s.UsagePrice = &v + return s +} + // Represents the input of a ResetCacheParameterGroup operation. type ResetCacheParameterGroupInput struct { _ struct{} `type:"structure"` @@ -7882,6 +10156,24 @@ func (s *ResetCacheParameterGroupInput) Validate() error { return nil } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *ResetCacheParameterGroupInput) SetCacheParameterGroupName(v string) *ResetCacheParameterGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetParameterNameValues sets the ParameterNameValues field's value. +func (s *ResetCacheParameterGroupInput) SetParameterNameValues(v []*ParameterNameValue) *ResetCacheParameterGroupInput { + s.ParameterNameValues = v + return s +} + +// SetResetAllParameters sets the ResetAllParameters field's value. +func (s *ResetCacheParameterGroupInput) SetResetAllParameters(v bool) *ResetCacheParameterGroupInput { + s.ResetAllParameters = &v + return s +} + // Represents the input of a RevokeCacheSecurityGroupIngress operation. type RevokeCacheSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -7933,16 +10225,34 @@ func (s *RevokeCacheSecurityGroupIngressInput) Validate() error { return nil } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *RevokeCacheSecurityGroupIngressInput) SetCacheSecurityGroupName(v string) *RevokeCacheSecurityGroupIngressInput { + s.CacheSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *RevokeCacheSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *RevokeCacheSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *RevokeCacheSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *RevokeCacheSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + type RevokeCacheSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // AuthorizeCacheSecurityGroupIngress + // * AuthorizeCacheSecurityGroupIngress // - // CreateCacheSecurityGroup + // * CreateCacheSecurityGroup // - // RevokeCacheSecurityGroupIngress + // * RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` } @@ -7956,6 +10266,12 @@ func (s RevokeCacheSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetCacheSecurityGroup sets the CacheSecurityGroup field's value. +func (s *RevokeCacheSecurityGroupIngressOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *RevokeCacheSecurityGroupIngressOutput { + s.CacheSecurityGroup = v + return s +} + // Represents a single cache security group and its status. type SecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -7979,6 +10295,18 @@ func (s SecurityGroupMembership) GoString() string { return s.String() } +// SetSecurityGroupId sets the SecurityGroupId field's value. +func (s *SecurityGroupMembership) SetSecurityGroupId(v string) *SecurityGroupMembership { + s.SecurityGroupId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SecurityGroupMembership) SetStatus(v string) *SecurityGroupMembership { + s.Status = &v + return s +} + // Represents a copy of an entire Redis cache cluster as of the time when the // snapshot was taken. type Snapshot struct { @@ -7989,11 +10317,11 @@ type Snapshot struct { // Indicates the status of Multi-AZ for the source replication group. // - // ElastiCache Multi-AZ replication groups are not supported on: + // ElastiCache Multi-AZ replication groups are not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled):T1 and T2 cache node types. + // Redis (cluster mode disabled):T1 and T2 cache node types. // // Redis (cluster mode enabled): T1 node types. AutomaticFailover *string `type:"string" enum:"AutomaticFailoverStatus"` @@ -8009,37 +10337,37 @@ type Snapshot struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -8085,21 +10413,21 @@ type Snapshot struct { // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // A description of the source replication group. @@ -8120,7 +10448,7 @@ type Snapshot struct { // ignored: Manual snapshots do not expire, and can only be deleted using the // DeleteSnapshot operation. // - // Important If the value of SnapshotRetentionLimit is set to zero (0), backups + // Important If the value of SnapshotRetentionLimit is set to zero (0), backups // are turned off. SnapshotRetentionLimit *int64 `type:"integer"` @@ -8155,6 +10483,150 @@ func (s Snapshot) GoString() string { return s.String() } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *Snapshot) SetAutoMinorVersionUpgrade(v bool) *Snapshot { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAutomaticFailover sets the AutomaticFailover field's value. +func (s *Snapshot) SetAutomaticFailover(v string) *Snapshot { + s.AutomaticFailover = &v + return s +} + +// SetCacheClusterCreateTime sets the CacheClusterCreateTime field's value. +func (s *Snapshot) SetCacheClusterCreateTime(v time.Time) *Snapshot { + s.CacheClusterCreateTime = &v + return s +} + +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *Snapshot) SetCacheClusterId(v string) *Snapshot { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *Snapshot) SetCacheNodeType(v string) *Snapshot { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *Snapshot) SetCacheParameterGroupName(v string) *Snapshot { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *Snapshot) SetCacheSubnetGroupName(v string) *Snapshot { + s.CacheSubnetGroupName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *Snapshot) SetEngine(v string) *Snapshot { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *Snapshot) SetEngineVersion(v string) *Snapshot { + s.EngineVersion = &v + return s +} + +// SetNodeSnapshots sets the NodeSnapshots field's value. +func (s *Snapshot) SetNodeSnapshots(v []*NodeSnapshot) *Snapshot { + s.NodeSnapshots = v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *Snapshot) SetNumCacheNodes(v int64) *Snapshot { + s.NumCacheNodes = &v + return s +} + +// SetNumNodeGroups sets the NumNodeGroups field's value. +func (s *Snapshot) SetNumNodeGroups(v int64) *Snapshot { + s.NumNodeGroups = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Snapshot) SetPort(v int64) *Snapshot { + s.Port = &v + return s +} + +// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value. +func (s *Snapshot) SetPreferredAvailabilityZone(v string) *Snapshot { + s.PreferredAvailabilityZone = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *Snapshot) SetPreferredMaintenanceWindow(v string) *Snapshot { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationGroupDescription sets the ReplicationGroupDescription field's value. +func (s *Snapshot) SetReplicationGroupDescription(v string) *Snapshot { + s.ReplicationGroupDescription = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *Snapshot) SetReplicationGroupId(v string) *Snapshot { + s.ReplicationGroupId = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *Snapshot) SetSnapshotName(v string) *Snapshot { + s.SnapshotName = &v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *Snapshot) SetSnapshotRetentionLimit(v int64) *Snapshot { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotSource sets the SnapshotSource field's value. +func (s *Snapshot) SetSnapshotSource(v string) *Snapshot { + s.SnapshotSource = &v + return s +} + +// SetSnapshotStatus sets the SnapshotStatus field's value. +func (s *Snapshot) SetSnapshotStatus(v string) *Snapshot { + s.SnapshotStatus = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *Snapshot) SetSnapshotWindow(v string) *Snapshot { + s.SnapshotWindow = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *Snapshot) SetTopicArn(v string) *Snapshot { + s.TopicArn = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Snapshot) SetVpcId(v string) *Snapshot { + s.VpcId = &v + return s +} + // Represents the subnet associated with a cache cluster. This parameter refers // to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used // with ElastiCache. @@ -8178,6 +10650,18 @@ func (s Subnet) GoString() string { return s.String() } +// SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value. +func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet { + s.SubnetAvailabilityZone = v + return s +} + +// SetSubnetIdentifier sets the SubnetIdentifier field's value. +func (s *Subnet) SetSubnetIdentifier(v string) *Subnet { + s.SubnetIdentifier = &v + return s +} + // A cost allocation Tag that can be added to an ElastiCache cluster or replication // group. Tags are composed of a Key/Value pair. A tag with a null Value is // permitted. @@ -8201,6 +10685,18 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Represents the output from the AddTagsToResource, ListTagsOnResource, and // RemoveTagsFromResource operations. type TagListMessage struct { @@ -8220,6 +10716,12 @@ func (s TagListMessage) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *TagListMessage) SetTagList(v []*Tag) *TagListMessage { + s.TagList = v + return s +} + const ( // AZModeSingleAz is a AZMode enum value AZModeSingleAz = "single-az" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go index b01fda8c4..c7da1bf7e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go @@ -395,7 +395,7 @@ func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicat // // Creates an application version for the specified application. // -// Once you create an application version with a specified Amazon S3 bucket +// Once you create an application version with a specified Amazon S3 bucket // and key location, you cannot change that Amazon S3 location. If you change // the Amazon S3 location, you receive an exception when you attempt to launch // an environment from the application version. @@ -479,11 +479,11 @@ func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfi // // Related Topics // -// DescribeConfigurationOptions +// * DescribeConfigurationOptions // -// DescribeConfigurationSettings +// * DescribeConfigurationSettings // -// ListAvailableSolutionStacks +// * ListAvailableSolutionStacks // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -702,7 +702,7 @@ func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInpu // configurations. The application versions will not be deleted from your Amazon // S3 bucket. // -// You cannot delete an application that has a running environment. +// You cannot delete an application that has a running environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -771,7 +771,7 @@ func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicat // // Deletes the specified version from the specified application. // -// You cannot delete an application version that is associated with a running +// You cannot delete an application version that is associated with a running // environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -853,7 +853,7 @@ func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfi // // Deletes the specified configuration template. // -// When you launch an environment using a configuration template, the environment +// When you launch an environment using a configuration template, the environment // gets a copy of the template. You can delete or modify the environment's copy // of the template without affecting the running environment. // @@ -924,8 +924,8 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEn // // Deletes the draft configuration associated with the running environment. // -// Updating a running environment with any configuration changes creates a -// draft configuration set. You can get the draft configuration using DescribeConfigurationSettings +// Updating a running environment with any configuration changes creates a draft +// configuration set. You can get the draft configuration using DescribeConfigurationSettings // while the update is in progress or if the update fails. The DeploymentStatus // for the draft configuration indicates whether the deployment is in process // or has failed. The draft configuration remains in existence until it is deleted @@ -1187,7 +1187,7 @@ func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeC // // Related Topics // -// DeleteEnvironmentConfiguration +// * DeleteEnvironmentConfiguration // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1581,7 +1581,7 @@ func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (re // // Returns list of event descriptions matching criteria up to the last 6 weeks. // -// This action returns the most recent 1,000 events from the specified NextToken. +// This action returns the most recent 1,000 events from the specified NextToken. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1867,18 +1867,18 @@ func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironme // Initiates a request to compile the specified type of information of the deployed // environment. // -// Setting the InfoType to tail compiles the last lines from the application +// Setting the InfoType to tail compiles the last lines from the application // server log files of every Amazon EC2 instance in your environment. // -// Setting the InfoType to bundle compresses the application server log files +// Setting the InfoType to bundle compresses the application server log files // for every Amazon EC2 instance into a .zip file. Legacy and .NET containers // do not support bundle logs. // -// Use RetrieveEnvironmentInfo to obtain the set of logs. +// Use RetrieveEnvironmentInfo to obtain the set of logs. // // Related Topics // -// RetrieveEnvironmentInfo +// * RetrieveEnvironmentInfo // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2003,7 +2003,7 @@ func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnviron // // Related Topics // -// RequestEnvironmentInfo +// * RequestEnvironmentInfo // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2190,7 +2190,7 @@ func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInpu // // Updates the specified application to have the specified properties. // -// If a property (for example, description) is not provided, the value remains +// If a property (for example, description) is not provided, the value remains // unchanged. To clear these properties, specify an empty string. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2252,7 +2252,7 @@ func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicat // // Updates the specified application version to have the specified properties. // -// If a property (for example, description) is not provided, the value remains +// If a property (for example, description) is not provided, the value remains // unchanged. To clear properties, specify an empty string. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2315,12 +2315,12 @@ func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfi // Updates the specified configuration template to have the specified properties // or configuration option values. // -// If a property (for example, ApplicationName) is not provided, its value -// remains unchanged. To clear such properties, specify an empty string. +// If a property (for example, ApplicationName) is not provided, its value remains +// unchanged. To clear such properties, specify an empty string. // -// Related Topics +// Related Topics // -// DescribeConfigurationOptions +// * DescribeConfigurationOptions // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2392,10 +2392,10 @@ func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInpu // the configuration settings to an entirely new configuration template, or // updates select configuration option values in the running environment. // -// Attempting to update both the release and configuration is not allowed -// and AWS Elastic Beanstalk returns an InvalidParameterCombination error. +// Attempting to update both the release and configuration is not allowed and +// AWS Elastic Beanstalk returns an InvalidParameterCombination error. // -// When updating the configuration settings to a new template or individual +// When updating the configuration settings to a new template or individual // settings, a draft configuration is created and DescribeConfigurationSettings // for this environment returns two setting descriptions with different DeploymentStatus // values. @@ -2528,6 +2528,18 @@ func (s *AbortEnvironmentUpdateInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *AbortEnvironmentUpdateInput) SetEnvironmentId(v string) *AbortEnvironmentUpdateInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *AbortEnvironmentUpdateInput) SetEnvironmentName(v string) *AbortEnvironmentUpdateInput { + s.EnvironmentName = &v + return s +} + type AbortEnvironmentUpdateOutput struct { _ struct{} `type:"structure"` } @@ -2575,6 +2587,42 @@ func (s ApplicationDescription) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *ApplicationDescription) SetApplicationName(v string) *ApplicationDescription { + s.ApplicationName = &v + return s +} + +// SetConfigurationTemplates sets the ConfigurationTemplates field's value. +func (s *ApplicationDescription) SetConfigurationTemplates(v []*string) *ApplicationDescription { + s.ConfigurationTemplates = v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *ApplicationDescription) SetDateCreated(v time.Time) *ApplicationDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *ApplicationDescription) SetDateUpdated(v time.Time) *ApplicationDescription { + s.DateUpdated = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ApplicationDescription) SetDescription(v string) *ApplicationDescription { + s.Description = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ApplicationDescription) SetVersions(v []*string) *ApplicationDescription { + s.Versions = v + return s +} + // Result message containing a single description of an application. type ApplicationDescriptionMessage struct { _ struct{} `type:"structure"` @@ -2593,6 +2641,12 @@ func (s ApplicationDescriptionMessage) GoString() string { return s.String() } +// SetApplication sets the Application field's value. +func (s *ApplicationDescriptionMessage) SetApplication(v *ApplicationDescription) *ApplicationDescriptionMessage { + s.Application = v + return s +} + // Represents the application metrics for a specified environment. type ApplicationMetrics struct { _ struct{} `type:"structure"` @@ -2625,6 +2679,30 @@ func (s ApplicationMetrics) GoString() string { return s.String() } +// SetDuration sets the Duration field's value. +func (s *ApplicationMetrics) SetDuration(v int64) *ApplicationMetrics { + s.Duration = &v + return s +} + +// SetLatency sets the Latency field's value. +func (s *ApplicationMetrics) SetLatency(v *Latency) *ApplicationMetrics { + s.Latency = v + return s +} + +// SetRequestCount sets the RequestCount field's value. +func (s *ApplicationMetrics) SetRequestCount(v int64) *ApplicationMetrics { + s.RequestCount = &v + return s +} + +// SetStatusCodes sets the StatusCodes field's value. +func (s *ApplicationMetrics) SetStatusCodes(v *StatusCodes) *ApplicationMetrics { + s.StatusCodes = v + return s +} + // Describes the properties of an application version. type ApplicationVersionDescription struct { _ struct{} `type:"structure"` @@ -2663,6 +2741,54 @@ func (s ApplicationVersionDescription) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *ApplicationVersionDescription) SetApplicationName(v string) *ApplicationVersionDescription { + s.ApplicationName = &v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *ApplicationVersionDescription) SetDateCreated(v time.Time) *ApplicationVersionDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *ApplicationVersionDescription) SetDateUpdated(v time.Time) *ApplicationVersionDescription { + s.DateUpdated = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ApplicationVersionDescription) SetDescription(v string) *ApplicationVersionDescription { + s.Description = &v + return s +} + +// SetSourceBuildInformation sets the SourceBuildInformation field's value. +func (s *ApplicationVersionDescription) SetSourceBuildInformation(v *SourceBuildInformation) *ApplicationVersionDescription { + s.SourceBuildInformation = v + return s +} + +// SetSourceBundle sets the SourceBundle field's value. +func (s *ApplicationVersionDescription) SetSourceBundle(v *S3Location) *ApplicationVersionDescription { + s.SourceBundle = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ApplicationVersionDescription) SetStatus(v string) *ApplicationVersionDescription { + s.Status = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *ApplicationVersionDescription) SetVersionLabel(v string) *ApplicationVersionDescription { + s.VersionLabel = &v + return s +} + // Result message wrapping a single description of an application version. type ApplicationVersionDescriptionMessage struct { _ struct{} `type:"structure"` @@ -2681,6 +2807,12 @@ func (s ApplicationVersionDescriptionMessage) GoString() string { return s.String() } +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *ApplicationVersionDescriptionMessage) SetApplicationVersion(v *ApplicationVersionDescription) *ApplicationVersionDescriptionMessage { + s.ApplicationVersion = v + return s +} + // Request to execute a scheduled managed action immediately. type ApplyEnvironmentManagedActionInput struct { _ struct{} `type:"structure"` @@ -2720,6 +2852,24 @@ func (s *ApplyEnvironmentManagedActionInput) Validate() error { return nil } +// SetActionId sets the ActionId field's value. +func (s *ApplyEnvironmentManagedActionInput) SetActionId(v string) *ApplyEnvironmentManagedActionInput { + s.ActionId = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *ApplyEnvironmentManagedActionInput) SetEnvironmentId(v string) *ApplyEnvironmentManagedActionInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ApplyEnvironmentManagedActionInput) SetEnvironmentName(v string) *ApplyEnvironmentManagedActionInput { + s.EnvironmentName = &v + return s +} + // The result message containing information about the managed action. type ApplyEnvironmentManagedActionOutput struct { _ struct{} `type:"structure"` @@ -2747,6 +2897,30 @@ func (s ApplyEnvironmentManagedActionOutput) GoString() string { return s.String() } +// SetActionDescription sets the ActionDescription field's value. +func (s *ApplyEnvironmentManagedActionOutput) SetActionDescription(v string) *ApplyEnvironmentManagedActionOutput { + s.ActionDescription = &v + return s +} + +// SetActionId sets the ActionId field's value. +func (s *ApplyEnvironmentManagedActionOutput) SetActionId(v string) *ApplyEnvironmentManagedActionOutput { + s.ActionId = &v + return s +} + +// SetActionType sets the ActionType field's value. +func (s *ApplyEnvironmentManagedActionOutput) SetActionType(v string) *ApplyEnvironmentManagedActionOutput { + s.ActionType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ApplyEnvironmentManagedActionOutput) SetStatus(v string) *ApplyEnvironmentManagedActionOutput { + s.Status = &v + return s +} + // Describes an Auto Scaling launch configuration. type AutoScalingGroup struct { _ struct{} `type:"structure"` @@ -2765,6 +2939,12 @@ func (s AutoScalingGroup) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AutoScalingGroup) SetName(v string) *AutoScalingGroup { + s.Name = &v + return s +} + // Represents CPU utilization information from the specified instance that belongs // to the AWS Elastic Beanstalk environment. Use the instanceId property to // specify the application instance for which you'd like to return data. @@ -2810,6 +2990,48 @@ func (s CPUUtilization) GoString() string { return s.String() } +// SetIOWait sets the IOWait field's value. +func (s *CPUUtilization) SetIOWait(v float64) *CPUUtilization { + s.IOWait = &v + return s +} + +// SetIRQ sets the IRQ field's value. +func (s *CPUUtilization) SetIRQ(v float64) *CPUUtilization { + s.IRQ = &v + return s +} + +// SetIdle sets the Idle field's value. +func (s *CPUUtilization) SetIdle(v float64) *CPUUtilization { + s.Idle = &v + return s +} + +// SetNice sets the Nice field's value. +func (s *CPUUtilization) SetNice(v float64) *CPUUtilization { + s.Nice = &v + return s +} + +// SetSoftIRQ sets the SoftIRQ field's value. +func (s *CPUUtilization) SetSoftIRQ(v float64) *CPUUtilization { + s.SoftIRQ = &v + return s +} + +// SetSystem sets the System field's value. +func (s *CPUUtilization) SetSystem(v float64) *CPUUtilization { + s.System = &v + return s +} + +// SetUser sets the User field's value. +func (s *CPUUtilization) SetUser(v float64) *CPUUtilization { + s.User = &v + return s +} + // Results message indicating whether a CNAME is available. type CheckDNSAvailabilityInput struct { _ struct{} `type:"structure"` @@ -2846,15 +3068,21 @@ func (s *CheckDNSAvailabilityInput) Validate() error { return nil } +// SetCNAMEPrefix sets the CNAMEPrefix field's value. +func (s *CheckDNSAvailabilityInput) SetCNAMEPrefix(v string) *CheckDNSAvailabilityInput { + s.CNAMEPrefix = &v + return s +} + // Indicates if the specified CNAME is available. type CheckDNSAvailabilityOutput struct { _ struct{} `type:"structure"` // Indicates if the specified CNAME is available: // - // true : The CNAME is available. + // * true : The CNAME is available. // - // false : The CNAME is not available. + // * false : The CNAME is not available. Available *bool `type:"boolean"` // The fully qualified CNAME to reserve when CreateEnvironment is called with @@ -2872,6 +3100,18 @@ func (s CheckDNSAvailabilityOutput) GoString() string { return s.String() } +// SetAvailable sets the Available field's value. +func (s *CheckDNSAvailabilityOutput) SetAvailable(v bool) *CheckDNSAvailabilityOutput { + s.Available = &v + return s +} + +// SetFullyQualifiedCNAME sets the FullyQualifiedCNAME field's value. +func (s *CheckDNSAvailabilityOutput) SetFullyQualifiedCNAME(v string) *CheckDNSAvailabilityOutput { + s.FullyQualifiedCNAME = &v + return s +} + // Request to create or update a group of environments. type ComposeEnvironmentsInput struct { _ struct{} `type:"structure"` @@ -2920,6 +3160,24 @@ func (s *ComposeEnvironmentsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ComposeEnvironmentsInput) SetApplicationName(v string) *ComposeEnvironmentsInput { + s.ApplicationName = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *ComposeEnvironmentsInput) SetGroupName(v string) *ComposeEnvironmentsInput { + s.GroupName = &v + return s +} + +// SetVersionLabels sets the VersionLabels field's value. +func (s *ComposeEnvironmentsInput) SetVersionLabels(v []*string) *ComposeEnvironmentsInput { + s.VersionLabels = v + return s +} + // Describes the possible values for a configuration option. type ConfigurationOptionDescription struct { _ struct{} `type:"structure"` @@ -2927,16 +3185,16 @@ type ConfigurationOptionDescription struct { // An indication of which action is required if the value for this configuration // option changes: // - // NoInterruption : There is no interruption to the environment or application - // availability. + // * NoInterruption : There is no interruption to the environment or application + // availability. // - // RestartEnvironment : The environment is entirely restarted, all AWS resources - // are deleted and recreated, and the environment is unavailable during the - // process. + // * RestartEnvironment : The environment is entirely restarted, all AWS + // resources are deleted and recreated, and the environment is unavailable + // during the process. // - // RestartApplicationServer : The environment is available the entire time. - // However, a short application outage occurs when the application servers on - // the running Amazon EC2 instances are restarted. + // * RestartApplicationServer : The environment is available the entire time. + // However, a short application outage occurs when the application servers + // on the running Amazon EC2 instances are restarted. ChangeSeverity *string `type:"string"` // The default value for this configuration option. @@ -2966,15 +3224,15 @@ type ConfigurationOptionDescription struct { // An indication of whether the user defined this configuration option: // - // true : This configuration option was defined by the user. It is a valid - // choice for specifying if this as an Option to Remove when updating configuration - // settings. + // * true : This configuration option was defined by the user. It is a valid + // choice for specifying if this as an Option to Remove when updating configuration + // settings. // - // false : This configuration was not defined by the user. + // * false : This configuration was not defined by the user. // - // Constraint: You can remove only UserDefined options from a configuration. + // Constraint: You can remove only UserDefined options from a configuration. // - // Valid Values: true | false + // Valid Values: true | false UserDefined *bool `type:"boolean"` // If specified, values for the configuration option are selected from this @@ -2984,16 +3242,16 @@ type ConfigurationOptionDescription struct { // An indication of which type of values this option has and whether it is allowable // to select one or more than one of the possible values: // - // Scalar : Values for this option are a single selection from the possible - // values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex - // constraints. + // * Scalar : Values for this option are a single selection from the possible + // values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex + // constraints. // - // List : Values for this option are multiple selections from the possible - // values. + // * List : Values for this option are multiple selections from the possible + // values. // - // Boolean : Values for this option are either true or false . + // * Boolean : Values for this option are either true or false . // - // Json : Values for this option are a JSON representation of a ConfigDocument. + // * Json : Values for this option are a JSON representation of a ConfigDocument. ValueType *string `type:"string" enum:"ConfigurationOptionValueType"` } @@ -3007,6 +3265,72 @@ func (s ConfigurationOptionDescription) GoString() string { return s.String() } +// SetChangeSeverity sets the ChangeSeverity field's value. +func (s *ConfigurationOptionDescription) SetChangeSeverity(v string) *ConfigurationOptionDescription { + s.ChangeSeverity = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *ConfigurationOptionDescription) SetDefaultValue(v string) *ConfigurationOptionDescription { + s.DefaultValue = &v + return s +} + +// SetMaxLength sets the MaxLength field's value. +func (s *ConfigurationOptionDescription) SetMaxLength(v int64) *ConfigurationOptionDescription { + s.MaxLength = &v + return s +} + +// SetMaxValue sets the MaxValue field's value. +func (s *ConfigurationOptionDescription) SetMaxValue(v int64) *ConfigurationOptionDescription { + s.MaxValue = &v + return s +} + +// SetMinValue sets the MinValue field's value. +func (s *ConfigurationOptionDescription) SetMinValue(v int64) *ConfigurationOptionDescription { + s.MinValue = &v + return s +} + +// SetName sets the Name field's value. +func (s *ConfigurationOptionDescription) SetName(v string) *ConfigurationOptionDescription { + s.Name = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ConfigurationOptionDescription) SetNamespace(v string) *ConfigurationOptionDescription { + s.Namespace = &v + return s +} + +// SetRegex sets the Regex field's value. +func (s *ConfigurationOptionDescription) SetRegex(v *OptionRestrictionRegex) *ConfigurationOptionDescription { + s.Regex = v + return s +} + +// SetUserDefined sets the UserDefined field's value. +func (s *ConfigurationOptionDescription) SetUserDefined(v bool) *ConfigurationOptionDescription { + s.UserDefined = &v + return s +} + +// SetValueOptions sets the ValueOptions field's value. +func (s *ConfigurationOptionDescription) SetValueOptions(v []*string) *ConfigurationOptionDescription { + s.ValueOptions = v + return s +} + +// SetValueType sets the ValueType field's value. +func (s *ConfigurationOptionDescription) SetValueType(v string) *ConfigurationOptionDescription { + s.ValueType = &v + return s +} + // A specification identifying an individual configuration option along with // its current value. For a list of possible option values, go to Option Values // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html) @@ -3050,6 +3374,30 @@ func (s *ConfigurationOptionSetting) Validate() error { return nil } +// SetNamespace sets the Namespace field's value. +func (s *ConfigurationOptionSetting) SetNamespace(v string) *ConfigurationOptionSetting { + s.Namespace = &v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *ConfigurationOptionSetting) SetOptionName(v string) *ConfigurationOptionSetting { + s.OptionName = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ConfigurationOptionSetting) SetResourceName(v string) *ConfigurationOptionSetting { + s.ResourceName = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ConfigurationOptionSetting) SetValue(v string) *ConfigurationOptionSetting { + s.Value = &v + return s +} + // Describes the settings for a configuration set. type ConfigurationSettingsDescription struct { _ struct{} `type:"structure"` @@ -3066,15 +3414,15 @@ type ConfigurationSettingsDescription struct { // If this configuration set is associated with an environment, the DeploymentStatus // parameter indicates the deployment status of this configuration set: // - // null: This configuration is not associated with a running environment. + // * null: This configuration is not associated with a running environment. // - // pending: This is a draft configuration that is not deployed to the associated - // environment but is in the process of deploying. + // * pending: This is a draft configuration that is not deployed to the associated + // environment but is in the process of deploying. // - // deployed: This is the configuration that is currently deployed to the - // associated running environment. + // * deployed: This is the configuration that is currently deployed to the + // associated running environment. // - // failed: This is a draft configuration that failed to successfully deploy. + // * failed: This is a draft configuration that failed to successfully deploy. DeploymentStatus *string `type:"string" enum:"ConfigurationDeploymentStatus"` // Describes this configuration set. @@ -3105,6 +3453,60 @@ func (s ConfigurationSettingsDescription) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *ConfigurationSettingsDescription) SetApplicationName(v string) *ConfigurationSettingsDescription { + s.ApplicationName = &v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *ConfigurationSettingsDescription) SetDateCreated(v time.Time) *ConfigurationSettingsDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *ConfigurationSettingsDescription) SetDateUpdated(v time.Time) *ConfigurationSettingsDescription { + s.DateUpdated = &v + return s +} + +// SetDeploymentStatus sets the DeploymentStatus field's value. +func (s *ConfigurationSettingsDescription) SetDeploymentStatus(v string) *ConfigurationSettingsDescription { + s.DeploymentStatus = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ConfigurationSettingsDescription) SetDescription(v string) *ConfigurationSettingsDescription { + s.Description = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ConfigurationSettingsDescription) SetEnvironmentName(v string) *ConfigurationSettingsDescription { + s.EnvironmentName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *ConfigurationSettingsDescription) SetOptionSettings(v []*ConfigurationOptionSetting) *ConfigurationSettingsDescription { + s.OptionSettings = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *ConfigurationSettingsDescription) SetSolutionStackName(v string) *ConfigurationSettingsDescription { + s.SolutionStackName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *ConfigurationSettingsDescription) SetTemplateName(v string) *ConfigurationSettingsDescription { + s.TemplateName = &v + return s +} + // Request to create an application. type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -3147,6 +3549,18 @@ func (s *CreateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateApplicationInput) SetApplicationName(v string) *CreateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput { + s.Description = &v + return s +} + type CreateApplicationVersionInput struct { _ struct{} `type:"structure"` @@ -3159,15 +3573,15 @@ type CreateApplicationVersionInput struct { // Determines how the system behaves if the specified application for this version // does not already exist: // - // true : Automatically creates the specified application for this release - // if it does not already exist. + // * true : Automatically creates the specified application for this release + // if it does not already exist. // - // false : Throws an InvalidParameterValue if the specified application - // for this release does not already exist. + // * false : Throws an InvalidParameterValue if the specified application + // for this release does not already exist. // - // Default: false + // Default: false // - // Valid Values: true | false + // Valid Values: true | false AutoCreateApplication *bool `type:"boolean"` // Describes this version. @@ -3183,7 +3597,7 @@ type CreateApplicationVersionInput struct { // The Amazon S3 bucket and key that identify the location of the source bundle // for this version. // - // If data found at the Amazon S3 location exceeds the maximum allowed source + // If data found at the Amazon S3 location exceeds the maximum allowed source // bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error. // The maximum size allowed is 512 MB. // @@ -3240,6 +3654,48 @@ func (s *CreateApplicationVersionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateApplicationVersionInput) SetApplicationName(v string) *CreateApplicationVersionInput { + s.ApplicationName = &v + return s +} + +// SetAutoCreateApplication sets the AutoCreateApplication field's value. +func (s *CreateApplicationVersionInput) SetAutoCreateApplication(v bool) *CreateApplicationVersionInput { + s.AutoCreateApplication = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateApplicationVersionInput) SetDescription(v string) *CreateApplicationVersionInput { + s.Description = &v + return s +} + +// SetProcess sets the Process field's value. +func (s *CreateApplicationVersionInput) SetProcess(v bool) *CreateApplicationVersionInput { + s.Process = &v + return s +} + +// SetSourceBuildInformation sets the SourceBuildInformation field's value. +func (s *CreateApplicationVersionInput) SetSourceBuildInformation(v *SourceBuildInformation) *CreateApplicationVersionInput { + s.SourceBuildInformation = v + return s +} + +// SetSourceBundle sets the SourceBundle field's value. +func (s *CreateApplicationVersionInput) SetSourceBundle(v *S3Location) *CreateApplicationVersionInput { + s.SourceBundle = v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *CreateApplicationVersionInput) SetVersionLabel(v string) *CreateApplicationVersionInput { + s.VersionLabel = &v + return s +} + // Request to create a configuration template. type CreateConfigurationTemplateInput struct { _ struct{} `type:"structure"` @@ -3267,10 +3723,9 @@ type CreateConfigurationTemplateInput struct { // a configuration template. It determines the set of configuration options // as well as the possible and default values. // - // Use ListAvailableSolutionStacks to obtain a list of available solution - // stacks. + // Use ListAvailableSolutionStacks to obtain a list of available solution stacks. // - // A solution stack name or a source configuration parameter must be specified, + // A solution stack name or a source configuration parameter must be specified, // otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error. // // If a solution stack name is not specified and the source configuration parameter @@ -3281,13 +3736,12 @@ type CreateConfigurationTemplateInput struct { // If specified, AWS Elastic Beanstalk uses the configuration values from the // specified configuration template to create a new configuration. // - // Values specified in the OptionSettings parameter of this call overrides - // any values obtained from the SourceConfiguration. + // Values specified in the OptionSettings parameter of this call overrides any + // values obtained from the SourceConfiguration. // - // If no configuration template is found, returns an InvalidParameterValue - // error. + // If no configuration template is found, returns an InvalidParameterValue error. // - // Constraint: If both the solution stack name parameter and the source configuration + // Constraint: If both the solution stack name parameter and the source configuration // parameters are specified, the solution stack of the source configuration // template must match the specified solution stack name or else AWS Elastic // Beanstalk returns an InvalidParameterCombination error. @@ -3297,8 +3751,8 @@ type CreateConfigurationTemplateInput struct { // // Constraint: This name must be unique per application. // - // Default: If a configuration template already exists with this name, AWS - // Elastic Beanstalk returns an InvalidParameterValue error. + // Default: If a configuration template already exists with this name, AWS Elastic + // Beanstalk returns an InvalidParameterValue error. // // TemplateName is a required field TemplateName *string `min:"1" type:"string" required:"true"` @@ -3351,13 +3805,55 @@ func (s *CreateConfigurationTemplateInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateConfigurationTemplateInput) SetApplicationName(v string) *CreateConfigurationTemplateInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateConfigurationTemplateInput) SetDescription(v string) *CreateConfigurationTemplateInput { + s.Description = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *CreateConfigurationTemplateInput) SetEnvironmentId(v string) *CreateConfigurationTemplateInput { + s.EnvironmentId = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *CreateConfigurationTemplateInput) SetOptionSettings(v []*ConfigurationOptionSetting) *CreateConfigurationTemplateInput { + s.OptionSettings = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *CreateConfigurationTemplateInput) SetSolutionStackName(v string) *CreateConfigurationTemplateInput { + s.SolutionStackName = &v + return s +} + +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *CreateConfigurationTemplateInput) SetSourceConfiguration(v *SourceConfiguration) *CreateConfigurationTemplateInput { + s.SourceConfiguration = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateConfigurationTemplateInput) SetTemplateName(v string) *CreateConfigurationTemplateInput { + s.TemplateName = &v + return s +} + type CreateEnvironmentInput struct { _ struct{} `type:"structure"` // The name of the application that contains the version to be deployed. // - // If no application is found with this name, CreateEnvironment returns an - // InvalidParameterValue error. + // If no application is found with this name, CreateEnvironment returns an InvalidParameterValue + // error. // // ApplicationName is a required field ApplicationName *string `min:"1" type:"string" required:"true"` @@ -3402,7 +3898,7 @@ type CreateEnvironmentInput struct { // Beanstalk sets the configuration values to the default values associated // with the specified solution stack. // - // Condition: You must specify either this or a TemplateName, but not both. + // Condition: You must specify either this or a TemplateName, but not both. // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter // error. @@ -3415,7 +3911,7 @@ type CreateEnvironmentInput struct { // template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue // error. // - // Condition: You must specify either this parameter or a SolutionStackName, + // Condition: You must specify either this parameter or a SolutionStackName, // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter // error. @@ -3426,11 +3922,11 @@ type CreateEnvironmentInput struct { // The name of the application version to deploy. // - // If the specified application has no associated application versions, AWS + // If the specified application has no associated application versions, AWS // Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error. // - // Default: If not specified, AWS Elastic Beanstalk attempts to launch the - // sample application in the container. + // Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample + // application in the container. VersionLabel *string `min:"1" type:"string"` } @@ -3505,6 +4001,78 @@ func (s *CreateEnvironmentInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateEnvironmentInput) SetApplicationName(v string) *CreateEnvironmentInput { + s.ApplicationName = &v + return s +} + +// SetCNAMEPrefix sets the CNAMEPrefix field's value. +func (s *CreateEnvironmentInput) SetCNAMEPrefix(v string) *CreateEnvironmentInput { + s.CNAMEPrefix = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateEnvironmentInput) SetDescription(v string) *CreateEnvironmentInput { + s.Description = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *CreateEnvironmentInput) SetEnvironmentName(v string) *CreateEnvironmentInput { + s.EnvironmentName = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreateEnvironmentInput) SetGroupName(v string) *CreateEnvironmentInput { + s.GroupName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *CreateEnvironmentInput) SetOptionSettings(v []*ConfigurationOptionSetting) *CreateEnvironmentInput { + s.OptionSettings = v + return s +} + +// SetOptionsToRemove sets the OptionsToRemove field's value. +func (s *CreateEnvironmentInput) SetOptionsToRemove(v []*OptionSpecification) *CreateEnvironmentInput { + s.OptionsToRemove = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *CreateEnvironmentInput) SetSolutionStackName(v string) *CreateEnvironmentInput { + s.SolutionStackName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEnvironmentInput) SetTags(v []*Tag) *CreateEnvironmentInput { + s.Tags = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateEnvironmentInput) SetTemplateName(v string) *CreateEnvironmentInput { + s.TemplateName = &v + return s +} + +// SetTier sets the Tier field's value. +func (s *CreateEnvironmentInput) SetTier(v *EnvironmentTier) *CreateEnvironmentInput { + s.Tier = v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *CreateEnvironmentInput) SetVersionLabel(v string) *CreateEnvironmentInput { + s.VersionLabel = &v + return s +} + type CreateStorageLocationInput struct { _ struct{} `type:"structure"` } @@ -3537,6 +4105,12 @@ func (s CreateStorageLocationOutput) GoString() string { return s.String() } +// SetS3Bucket sets the S3Bucket field's value. +func (s *CreateStorageLocationOutput) SetS3Bucket(v string) *CreateStorageLocationOutput { + s.S3Bucket = &v + return s +} + // Request to delete an application. type DeleteApplicationInput struct { _ struct{} `type:"structure"` @@ -3577,6 +4151,18 @@ func (s *DeleteApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationInput) SetApplicationName(v string) *DeleteApplicationInput { + s.ApplicationName = &v + return s +} + +// SetTerminateEnvByForce sets the TerminateEnvByForce field's value. +func (s *DeleteApplicationInput) SetTerminateEnvByForce(v bool) *DeleteApplicationInput { + s.TerminateEnvByForce = &v + return s +} + type DeleteApplicationOutput struct { _ struct{} `type:"structure"` } @@ -3602,13 +4188,13 @@ type DeleteApplicationVersionInput struct { // Indicates whether to delete the associated source bundle from Amazon S3: // - // true: An attempt is made to delete the associated Amazon S3 source bundle - // specified at time of creation. + // * true: An attempt is made to delete the associated Amazon S3 source bundle + // specified at time of creation. // - // false: No action is taken on the Amazon S3 source bundle specified at - // time of creation. + // * false: No action is taken on the Amazon S3 source bundle specified at + // time of creation. // - // Valid Values: true | false + // Valid Values: true | false DeleteSourceBundle *bool `type:"boolean"` // The label of the version to delete. @@ -3649,6 +4235,24 @@ func (s *DeleteApplicationVersionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationVersionInput) SetApplicationName(v string) *DeleteApplicationVersionInput { + s.ApplicationName = &v + return s +} + +// SetDeleteSourceBundle sets the DeleteSourceBundle field's value. +func (s *DeleteApplicationVersionInput) SetDeleteSourceBundle(v bool) *DeleteApplicationVersionInput { + s.DeleteSourceBundle = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *DeleteApplicationVersionInput) SetVersionLabel(v string) *DeleteApplicationVersionInput { + s.VersionLabel = &v + return s +} + type DeleteApplicationVersionOutput struct { _ struct{} `type:"structure"` } @@ -3710,6 +4314,18 @@ func (s *DeleteConfigurationTemplateInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteConfigurationTemplateInput) SetApplicationName(v string) *DeleteConfigurationTemplateInput { + s.ApplicationName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DeleteConfigurationTemplateInput) SetTemplateName(v string) *DeleteConfigurationTemplateInput { + s.TemplateName = &v + return s +} + type DeleteConfigurationTemplateOutput struct { _ struct{} `type:"structure"` } @@ -3771,6 +4387,18 @@ func (s *DeleteEnvironmentConfigurationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteEnvironmentConfigurationInput) SetApplicationName(v string) *DeleteEnvironmentConfigurationInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DeleteEnvironmentConfigurationInput) SetEnvironmentName(v string) *DeleteEnvironmentConfigurationInput { + s.EnvironmentName = &v + return s +} + type DeleteEnvironmentConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -3800,11 +4428,11 @@ type Deployment struct { // The status of the deployment: // - // In Progress : The deployment is in progress. + // * In Progress : The deployment is in progress. // - // Deployed : The deployment succeeded. + // * Deployed : The deployment succeeded. // - // Failed : The deployment failed. + // * Failed : The deployment failed. Status *string `type:"string"` // The version label of the application version in the deployment. @@ -3821,6 +4449,30 @@ func (s Deployment) GoString() string { return s.String() } +// SetDeploymentId sets the DeploymentId field's value. +func (s *Deployment) SetDeploymentId(v int64) *Deployment { + s.DeploymentId = &v + return s +} + +// SetDeploymentTime sets the DeploymentTime field's value. +func (s *Deployment) SetDeploymentTime(v time.Time) *Deployment { + s.DeploymentTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Deployment) SetStatus(v string) *Deployment { + s.Status = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *Deployment) SetVersionLabel(v string) *Deployment { + s.VersionLabel = &v + return s +} + // Result message containing a list of configuration descriptions. type DescribeApplicationVersionsInput struct { _ struct{} `type:"structure"` @@ -3866,6 +4518,30 @@ func (s *DescribeApplicationVersionsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeApplicationVersionsInput) SetApplicationName(v string) *DescribeApplicationVersionsInput { + s.ApplicationName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeApplicationVersionsInput) SetMaxRecords(v int64) *DescribeApplicationVersionsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeApplicationVersionsInput) SetNextToken(v string) *DescribeApplicationVersionsInput { + s.NextToken = &v + return s +} + +// SetVersionLabels sets the VersionLabels field's value. +func (s *DescribeApplicationVersionsInput) SetVersionLabels(v []*string) *DescribeApplicationVersionsInput { + s.VersionLabels = v + return s +} + // Result message wrapping a list of application version descriptions. type DescribeApplicationVersionsOutput struct { _ struct{} `type:"structure"` @@ -3888,6 +4564,18 @@ func (s DescribeApplicationVersionsOutput) GoString() string { return s.String() } +// SetApplicationVersions sets the ApplicationVersions field's value. +func (s *DescribeApplicationVersionsOutput) SetApplicationVersions(v []*ApplicationVersionDescription) *DescribeApplicationVersionsOutput { + s.ApplicationVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeApplicationVersionsOutput) SetNextToken(v string) *DescribeApplicationVersionsOutput { + s.NextToken = &v + return s +} + // Request to describe one or more applications. type DescribeApplicationsInput struct { _ struct{} `type:"structure"` @@ -3907,6 +4595,12 @@ func (s DescribeApplicationsInput) GoString() string { return s.String() } +// SetApplicationNames sets the ApplicationNames field's value. +func (s *DescribeApplicationsInput) SetApplicationNames(v []*string) *DescribeApplicationsInput { + s.ApplicationNames = v + return s +} + // Result message containing a list of application descriptions. type DescribeApplicationsOutput struct { _ struct{} `type:"structure"` @@ -3925,6 +4619,12 @@ func (s DescribeApplicationsOutput) GoString() string { return s.String() } +// SetApplications sets the Applications field's value. +func (s *DescribeApplicationsOutput) SetApplications(v []*ApplicationDescription) *DescribeApplicationsOutput { + s.Applications = v + return s +} + // Result message containig a list of application version descriptions. type DescribeConfigurationOptionsInput struct { _ struct{} `type:"structure"` @@ -3987,6 +4687,36 @@ func (s *DescribeConfigurationOptionsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeConfigurationOptionsInput) SetApplicationName(v string) *DescribeConfigurationOptionsInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeConfigurationOptionsInput) SetEnvironmentName(v string) *DescribeConfigurationOptionsInput { + s.EnvironmentName = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *DescribeConfigurationOptionsInput) SetOptions(v []*OptionSpecification) *DescribeConfigurationOptionsInput { + s.Options = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *DescribeConfigurationOptionsInput) SetSolutionStackName(v string) *DescribeConfigurationOptionsInput { + s.SolutionStackName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DescribeConfigurationOptionsInput) SetTemplateName(v string) *DescribeConfigurationOptionsInput { + s.TemplateName = &v + return s +} + // Describes the settings for a specified configuration set. type DescribeConfigurationOptionsOutput struct { _ struct{} `type:"structure"` @@ -4008,6 +4738,18 @@ func (s DescribeConfigurationOptionsOutput) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *DescribeConfigurationOptionsOutput) SetOptions(v []*ConfigurationOptionDescription) *DescribeConfigurationOptionsOutput { + s.Options = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *DescribeConfigurationOptionsOutput) SetSolutionStackName(v string) *DescribeConfigurationOptionsOutput { + s.SolutionStackName = &v + return s +} + // Result message containing all of the configuration settings for a specified // solution stack or configuration template. type DescribeConfigurationSettingsInput struct { @@ -4020,7 +4762,7 @@ type DescribeConfigurationSettingsInput struct { // The name of the environment to describe. // - // Condition: You must specify either this or a TemplateName, but not both. + // Condition: You must specify either this or a TemplateName, but not both. // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. @@ -4028,7 +4770,7 @@ type DescribeConfigurationSettingsInput struct { // The name of the configuration template to describe. // - // Conditional: You must specify either this parameter or an EnvironmentName, + // Conditional: You must specify either this parameter or an EnvironmentName, // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter // error. @@ -4067,6 +4809,24 @@ func (s *DescribeConfigurationSettingsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeConfigurationSettingsInput) SetApplicationName(v string) *DescribeConfigurationSettingsInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeConfigurationSettingsInput) SetEnvironmentName(v string) *DescribeConfigurationSettingsInput { + s.EnvironmentName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DescribeConfigurationSettingsInput) SetTemplateName(v string) *DescribeConfigurationSettingsInput { + s.TemplateName = &v + return s +} + // The results from a request to change the configuration settings of an environment. type DescribeConfigurationSettingsOutput struct { _ struct{} `type:"structure"` @@ -4085,6 +4845,12 @@ func (s DescribeConfigurationSettingsOutput) GoString() string { return s.String() } +// SetConfigurationSettings sets the ConfigurationSettings field's value. +func (s *DescribeConfigurationSettingsOutput) SetConfigurationSettings(v []*ConfigurationSettingsDescription) *DescribeConfigurationSettingsOutput { + s.ConfigurationSettings = v + return s +} + // See the example below to learn how to create a request body. type DescribeEnvironmentHealthInput struct { _ struct{} `type:"structure"` @@ -4095,8 +4861,8 @@ type DescribeEnvironmentHealthInput struct { // Specifies the AWS Elastic Beanstalk environment ID. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` @@ -4131,6 +4897,24 @@ func (s *DescribeEnvironmentHealthInput) Validate() error { return nil } +// SetAttributeNames sets the AttributeNames field's value. +func (s *DescribeEnvironmentHealthInput) SetAttributeNames(v []*string) *DescribeEnvironmentHealthInput { + s.AttributeNames = v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEnvironmentHealthInput) SetEnvironmentId(v string) *DescribeEnvironmentHealthInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentHealthInput) SetEnvironmentName(v string) *DescribeEnvironmentHealthInput { + s.EnvironmentName = &v + return s +} + // See the example below for a sample response. type DescribeEnvironmentHealthOutput struct { _ struct{} `type:"structure"` @@ -4173,6 +4957,54 @@ func (s DescribeEnvironmentHealthOutput) GoString() string { return s.String() } +// SetApplicationMetrics sets the ApplicationMetrics field's value. +func (s *DescribeEnvironmentHealthOutput) SetApplicationMetrics(v *ApplicationMetrics) *DescribeEnvironmentHealthOutput { + s.ApplicationMetrics = v + return s +} + +// SetCauses sets the Causes field's value. +func (s *DescribeEnvironmentHealthOutput) SetCauses(v []*string) *DescribeEnvironmentHealthOutput { + s.Causes = v + return s +} + +// SetColor sets the Color field's value. +func (s *DescribeEnvironmentHealthOutput) SetColor(v string) *DescribeEnvironmentHealthOutput { + s.Color = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentHealthOutput) SetEnvironmentName(v string) *DescribeEnvironmentHealthOutput { + s.EnvironmentName = &v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *DescribeEnvironmentHealthOutput) SetHealthStatus(v string) *DescribeEnvironmentHealthOutput { + s.HealthStatus = &v + return s +} + +// SetInstancesHealth sets the InstancesHealth field's value. +func (s *DescribeEnvironmentHealthOutput) SetInstancesHealth(v *InstanceHealthSummary) *DescribeEnvironmentHealthOutput { + s.InstancesHealth = v + return s +} + +// SetRefreshedAt sets the RefreshedAt field's value. +func (s *DescribeEnvironmentHealthOutput) SetRefreshedAt(v time.Time) *DescribeEnvironmentHealthOutput { + s.RefreshedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeEnvironmentHealthOutput) SetStatus(v string) *DescribeEnvironmentHealthOutput { + s.Status = &v + return s +} + // Request to list completed and failed managed actions. type DescribeEnvironmentManagedActionHistoryInput struct { _ struct{} `type:"structure"` @@ -4213,6 +5045,30 @@ func (s *DescribeEnvironmentManagedActionHistoryInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEnvironmentManagedActionHistoryInput) SetEnvironmentId(v string) *DescribeEnvironmentManagedActionHistoryInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentManagedActionHistoryInput) SetEnvironmentName(v string) *DescribeEnvironmentManagedActionHistoryInput { + s.EnvironmentName = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DescribeEnvironmentManagedActionHistoryInput) SetMaxItems(v int64) *DescribeEnvironmentManagedActionHistoryInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEnvironmentManagedActionHistoryInput) SetNextToken(v string) *DescribeEnvironmentManagedActionHistoryInput { + s.NextToken = &v + return s +} + // A result message containing a list of completed and failed managed actions. type DescribeEnvironmentManagedActionHistoryOutput struct { _ struct{} `type:"structure"` @@ -4235,6 +5091,18 @@ func (s DescribeEnvironmentManagedActionHistoryOutput) GoString() string { return s.String() } +// SetManagedActionHistoryItems sets the ManagedActionHistoryItems field's value. +func (s *DescribeEnvironmentManagedActionHistoryOutput) SetManagedActionHistoryItems(v []*ManagedActionHistoryItem) *DescribeEnvironmentManagedActionHistoryOutput { + s.ManagedActionHistoryItems = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEnvironmentManagedActionHistoryOutput) SetNextToken(v string) *DescribeEnvironmentManagedActionHistoryOutput { + s.NextToken = &v + return s +} + // Request to list an environment's upcoming and in-progress managed actions. type DescribeEnvironmentManagedActionsInput struct { _ struct{} `type:"structure"` @@ -4259,6 +5127,24 @@ func (s DescribeEnvironmentManagedActionsInput) GoString() string { return s.String() } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEnvironmentManagedActionsInput) SetEnvironmentId(v string) *DescribeEnvironmentManagedActionsInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentManagedActionsInput) SetEnvironmentName(v string) *DescribeEnvironmentManagedActionsInput { + s.EnvironmentName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeEnvironmentManagedActionsInput) SetStatus(v string) *DescribeEnvironmentManagedActionsInput { + s.Status = &v + return s +} + // The result message containing a list of managed actions. type DescribeEnvironmentManagedActionsOutput struct { _ struct{} `type:"structure"` @@ -4277,20 +5163,26 @@ func (s DescribeEnvironmentManagedActionsOutput) GoString() string { return s.String() } +// SetManagedActions sets the ManagedActions field's value. +func (s *DescribeEnvironmentManagedActionsOutput) SetManagedActions(v []*ManagedAction) *DescribeEnvironmentManagedActionsOutput { + s.ManagedActions = v + return s +} + // Request to describe the resources in an environment. type DescribeEnvironmentResourcesInput struct { _ struct{} `type:"structure"` // The ID of the environment to retrieve AWS resource usage data. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment to retrieve AWS resource usage data. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -4319,6 +5211,18 @@ func (s *DescribeEnvironmentResourcesInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEnvironmentResourcesInput) SetEnvironmentId(v string) *DescribeEnvironmentResourcesInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentResourcesInput) SetEnvironmentName(v string) *DescribeEnvironmentResourcesInput { + s.EnvironmentName = &v + return s +} + // Result message containing a list of environment resource descriptions. type DescribeEnvironmentResourcesOutput struct { _ struct{} `type:"structure"` @@ -4337,6 +5241,12 @@ func (s DescribeEnvironmentResourcesOutput) GoString() string { return s.String() } +// SetEnvironmentResources sets the EnvironmentResources field's value. +func (s *DescribeEnvironmentResourcesOutput) SetEnvironmentResources(v *EnvironmentResourceDescription) *DescribeEnvironmentResourcesOutput { + s.EnvironmentResources = v + return s +} + // Request to describe one or more environments. type DescribeEnvironmentsInput struct { _ struct{} `type:"structure"` @@ -4355,10 +5265,10 @@ type DescribeEnvironmentsInput struct { // Indicates whether to include deleted environments: // - // true: Environments that have been deleted after IncludedDeletedBackTo are + // true: Environments that have been deleted after IncludedDeletedBackTo are // displayed. // - // false: Do not include deleted environments. + // false: Do not include deleted environments. IncludeDeleted *bool `type:"boolean"` // If specified when IncludeDeleted is set to true, then environments deleted @@ -4396,6 +5306,42 @@ func (s *DescribeEnvironmentsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeEnvironmentsInput) SetApplicationName(v string) *DescribeEnvironmentsInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentIds sets the EnvironmentIds field's value. +func (s *DescribeEnvironmentsInput) SetEnvironmentIds(v []*string) *DescribeEnvironmentsInput { + s.EnvironmentIds = v + return s +} + +// SetEnvironmentNames sets the EnvironmentNames field's value. +func (s *DescribeEnvironmentsInput) SetEnvironmentNames(v []*string) *DescribeEnvironmentsInput { + s.EnvironmentNames = v + return s +} + +// SetIncludeDeleted sets the IncludeDeleted field's value. +func (s *DescribeEnvironmentsInput) SetIncludeDeleted(v bool) *DescribeEnvironmentsInput { + s.IncludeDeleted = &v + return s +} + +// SetIncludedDeletedBackTo sets the IncludedDeletedBackTo field's value. +func (s *DescribeEnvironmentsInput) SetIncludedDeletedBackTo(v time.Time) *DescribeEnvironmentsInput { + s.IncludedDeletedBackTo = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *DescribeEnvironmentsInput) SetVersionLabel(v string) *DescribeEnvironmentsInput { + s.VersionLabel = &v + return s +} + // Request to retrieve a list of events for an environment. type DescribeEventsInput struct { _ struct{} `type:"structure"` @@ -4479,6 +5425,72 @@ func (s *DescribeEventsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeEventsInput) SetApplicationName(v string) *DescribeEventsInput { + s.ApplicationName = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEventsInput) SetEnvironmentId(v string) *DescribeEventsInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEventsInput) SetEnvironmentName(v string) *DescribeEventsInput { + s.EnvironmentName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventsInput) SetNextToken(v string) *DescribeEventsInput { + s.NextToken = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *DescribeEventsInput) SetRequestId(v string) *DescribeEventsInput { + s.RequestId = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *DescribeEventsInput) SetSeverity(v string) *DescribeEventsInput { + s.Severity = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DescribeEventsInput) SetTemplateName(v string) *DescribeEventsInput { + s.TemplateName = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *DescribeEventsInput) SetVersionLabel(v string) *DescribeEventsInput { + s.VersionLabel = &v + return s +} + // Result message wrapping a list of event descriptions. type DescribeEventsOutput struct { _ struct{} `type:"structure"` @@ -4501,6 +5513,18 @@ func (s DescribeEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*EventDescription) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventsOutput) SetNextToken(v string) *DescribeEventsOutput { + s.NextToken = &v + return s +} + // See the example below to learn how to create a request body. type DescribeInstancesHealthInput struct { _ struct{} `type:"structure"` @@ -4545,6 +5569,30 @@ func (s *DescribeInstancesHealthInput) Validate() error { return nil } +// SetAttributeNames sets the AttributeNames field's value. +func (s *DescribeInstancesHealthInput) SetAttributeNames(v []*string) *DescribeInstancesHealthInput { + s.AttributeNames = v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeInstancesHealthInput) SetEnvironmentId(v string) *DescribeInstancesHealthInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeInstancesHealthInput) SetEnvironmentName(v string) *DescribeInstancesHealthInput { + s.EnvironmentName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesHealthInput) SetNextToken(v string) *DescribeInstancesHealthInput { + s.NextToken = &v + return s +} + // See the example below for a sample response. type DescribeInstancesHealthOutput struct { _ struct{} `type:"structure"` @@ -4569,6 +5617,24 @@ func (s DescribeInstancesHealthOutput) GoString() string { return s.String() } +// SetInstanceHealthList sets the InstanceHealthList field's value. +func (s *DescribeInstancesHealthOutput) SetInstanceHealthList(v []*SingleInstanceHealth) *DescribeInstancesHealthOutput { + s.InstanceHealthList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesHealthOutput) SetNextToken(v string) *DescribeInstancesHealthOutput { + s.NextToken = &v + return s +} + +// SetRefreshedAt sets the RefreshedAt field's value. +func (s *DescribeInstancesHealthOutput) SetRefreshedAt(v time.Time) *DescribeInstancesHealthOutput { + s.RefreshedAt = &v + return s +} + // Describes the properties of an environment. type EnvironmentDescription struct { _ struct{} `type:"structure"` @@ -4576,9 +5642,9 @@ type EnvironmentDescription struct { // Indicates if there is an in-progress environment configuration update or // application version deployment that you can cancel. // - // true: There is an update in progress. + // true: There is an update in progress. // - // false: There are no updates currently in progress. + // false: There are no updates currently in progress. AbortableOperationInProgress *bool `type:"boolean"` // The name of the application associated with this environment. @@ -4612,19 +5678,19 @@ type EnvironmentDescription struct { // Describes the health status of the environment. AWS Elastic Beanstalk indicates // the failure levels for a running environment: // - // Red: Indicates the environment is not responsive. Occurs when three or - // more consecutive failures occur for an environment. + // * Red: Indicates the environment is not responsive. Occurs when three + // or more consecutive failures occur for an environment. // - // Yellow: Indicates that something is wrong. Occurs when two consecutive - // failures occur for an environment. + // * Yellow: Indicates that something is wrong. Occurs when two consecutive + // failures occur for an environment. // - // Green: Indicates the environment is healthy and fully functional. + // * Green: Indicates the environment is healthy and fully functional. // - // Grey: Default health for a new environment. The environment is not fully - // launched and health checks have not started or health checks are suspended - // during an UpdateEnvironment or RestartEnvironement request. + // * Grey: Default health for a new environment. The environment is not fully + // launched and health checks have not started or health checks are suspended + // during an UpdateEnvironment or RestartEnvironement request. // - // Default: Grey + // Default: Grey Health *string `type:"string" enum:"EnvironmentHealth"` // Returns the health status of the application running in your environment. @@ -4639,17 +5705,17 @@ type EnvironmentDescription struct { // The current operational status of the environment: // - // Launching: Environment is in the process of initial deployment. + // * Launching: Environment is in the process of initial deployment. // - // Updating: Environment is in the process of updating its configuration - // settings or application version. + // * Updating: Environment is in the process of updating its configuration + // settings or application version. // - // Ready: Environment is available to have an action performed on it, such - // as update or terminate. + // * Ready: Environment is available to have an action performed on it, such + // as update or terminate. // - // Terminating: Environment is in the shut-down process. + // * Terminating: Environment is in the shut-down process. // - // Terminated: Environment is not running. + // * Terminated: Environment is not running. Status *string `type:"string" enum:"EnvironmentStatus"` // The name of the configuration template used to originally launch this environment. @@ -4672,6 +5738,114 @@ func (s EnvironmentDescription) GoString() string { return s.String() } +// SetAbortableOperationInProgress sets the AbortableOperationInProgress field's value. +func (s *EnvironmentDescription) SetAbortableOperationInProgress(v bool) *EnvironmentDescription { + s.AbortableOperationInProgress = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *EnvironmentDescription) SetApplicationName(v string) *EnvironmentDescription { + s.ApplicationName = &v + return s +} + +// SetCNAME sets the CNAME field's value. +func (s *EnvironmentDescription) SetCNAME(v string) *EnvironmentDescription { + s.CNAME = &v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *EnvironmentDescription) SetDateCreated(v time.Time) *EnvironmentDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *EnvironmentDescription) SetDateUpdated(v time.Time) *EnvironmentDescription { + s.DateUpdated = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *EnvironmentDescription) SetDescription(v string) *EnvironmentDescription { + s.Description = &v + return s +} + +// SetEndpointURL sets the EndpointURL field's value. +func (s *EnvironmentDescription) SetEndpointURL(v string) *EnvironmentDescription { + s.EndpointURL = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *EnvironmentDescription) SetEnvironmentId(v string) *EnvironmentDescription { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentLinks sets the EnvironmentLinks field's value. +func (s *EnvironmentDescription) SetEnvironmentLinks(v []*EnvironmentLink) *EnvironmentDescription { + s.EnvironmentLinks = v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EnvironmentDescription) SetEnvironmentName(v string) *EnvironmentDescription { + s.EnvironmentName = &v + return s +} + +// SetHealth sets the Health field's value. +func (s *EnvironmentDescription) SetHealth(v string) *EnvironmentDescription { + s.Health = &v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *EnvironmentDescription) SetHealthStatus(v string) *EnvironmentDescription { + s.HealthStatus = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *EnvironmentDescription) SetResources(v *EnvironmentResourcesDescription) *EnvironmentDescription { + s.Resources = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *EnvironmentDescription) SetSolutionStackName(v string) *EnvironmentDescription { + s.SolutionStackName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EnvironmentDescription) SetStatus(v string) *EnvironmentDescription { + s.Status = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *EnvironmentDescription) SetTemplateName(v string) *EnvironmentDescription { + s.TemplateName = &v + return s +} + +// SetTier sets the Tier field's value. +func (s *EnvironmentDescription) SetTier(v *EnvironmentTier) *EnvironmentDescription { + s.Tier = v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *EnvironmentDescription) SetVersionLabel(v string) *EnvironmentDescription { + s.VersionLabel = &v + return s +} + // Result message containing a list of environment descriptions. type EnvironmentDescriptionsMessage struct { _ struct{} `type:"structure"` @@ -4690,6 +5864,12 @@ func (s EnvironmentDescriptionsMessage) GoString() string { return s.String() } +// SetEnvironments sets the Environments field's value. +func (s *EnvironmentDescriptionsMessage) SetEnvironments(v []*EnvironmentDescription) *EnvironmentDescriptionsMessage { + s.Environments = v + return s +} + // The information retrieved from the Amazon EC2 instances. type EnvironmentInfoDescription struct { _ struct{} `type:"structure"` @@ -4717,6 +5897,30 @@ func (s EnvironmentInfoDescription) GoString() string { return s.String() } +// SetEc2InstanceId sets the Ec2InstanceId field's value. +func (s *EnvironmentInfoDescription) SetEc2InstanceId(v string) *EnvironmentInfoDescription { + s.Ec2InstanceId = &v + return s +} + +// SetInfoType sets the InfoType field's value. +func (s *EnvironmentInfoDescription) SetInfoType(v string) *EnvironmentInfoDescription { + s.InfoType = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *EnvironmentInfoDescription) SetMessage(v string) *EnvironmentInfoDescription { + s.Message = &v + return s +} + +// SetSampleTimestamp sets the SampleTimestamp field's value. +func (s *EnvironmentInfoDescription) SetSampleTimestamp(v time.Time) *EnvironmentInfoDescription { + s.SampleTimestamp = &v + return s +} + // A link to another environment, defined in the environment's manifest. Links // provide connection information in system properties that can be used to connect // to another environment in the same group. See Environment Manifest (env.yaml) @@ -4742,6 +5946,18 @@ func (s EnvironmentLink) GoString() string { return s.String() } +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EnvironmentLink) SetEnvironmentName(v string) *EnvironmentLink { + s.EnvironmentName = &v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *EnvironmentLink) SetLinkName(v string) *EnvironmentLink { + s.LinkName = &v + return s +} + // Describes the AWS resources in use by this environment. This data is live. type EnvironmentResourceDescription struct { _ struct{} `type:"structure"` @@ -4778,6 +5994,48 @@ func (s EnvironmentResourceDescription) GoString() string { return s.String() } +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *EnvironmentResourceDescription) SetAutoScalingGroups(v []*AutoScalingGroup) *EnvironmentResourceDescription { + s.AutoScalingGroups = v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EnvironmentResourceDescription) SetEnvironmentName(v string) *EnvironmentResourceDescription { + s.EnvironmentName = &v + return s +} + +// SetInstances sets the Instances field's value. +func (s *EnvironmentResourceDescription) SetInstances(v []*Instance) *EnvironmentResourceDescription { + s.Instances = v + return s +} + +// SetLaunchConfigurations sets the LaunchConfigurations field's value. +func (s *EnvironmentResourceDescription) SetLaunchConfigurations(v []*LaunchConfiguration) *EnvironmentResourceDescription { + s.LaunchConfigurations = v + return s +} + +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *EnvironmentResourceDescription) SetLoadBalancers(v []*LoadBalancer) *EnvironmentResourceDescription { + s.LoadBalancers = v + return s +} + +// SetQueues sets the Queues field's value. +func (s *EnvironmentResourceDescription) SetQueues(v []*Queue) *EnvironmentResourceDescription { + s.Queues = v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *EnvironmentResourceDescription) SetTriggers(v []*Trigger) *EnvironmentResourceDescription { + s.Triggers = v + return s +} + // Describes the AWS resources in use by this environment. This data is not // live data. type EnvironmentResourcesDescription struct { @@ -4797,6 +6055,12 @@ func (s EnvironmentResourcesDescription) GoString() string { return s.String() } +// SetLoadBalancer sets the LoadBalancer field's value. +func (s *EnvironmentResourcesDescription) SetLoadBalancer(v *LoadBalancerDescription) *EnvironmentResourcesDescription { + s.LoadBalancer = v + return s +} + // Describes the properties of an environment tier type EnvironmentTier struct { _ struct{} `type:"structure"` @@ -4821,6 +6085,24 @@ func (s EnvironmentTier) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *EnvironmentTier) SetName(v string) *EnvironmentTier { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *EnvironmentTier) SetType(v string) *EnvironmentTier { + s.Type = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *EnvironmentTier) SetVersion(v string) *EnvironmentTier { + s.Version = &v + return s +} + // Describes an event. type EventDescription struct { _ struct{} `type:"structure"` @@ -4860,6 +6142,54 @@ func (s EventDescription) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *EventDescription) SetApplicationName(v string) *EventDescription { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EventDescription) SetEnvironmentName(v string) *EventDescription { + s.EnvironmentName = &v + return s +} + +// SetEventDate sets the EventDate field's value. +func (s *EventDescription) SetEventDate(v time.Time) *EventDescription { + s.EventDate = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *EventDescription) SetMessage(v string) *EventDescription { + s.Message = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *EventDescription) SetRequestId(v string) *EventDescription { + s.RequestId = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *EventDescription) SetSeverity(v string) *EventDescription { + s.Severity = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *EventDescription) SetTemplateName(v string) *EventDescription { + s.TemplateName = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *EventDescription) SetVersionLabel(v string) *EventDescription { + s.VersionLabel = &v + return s +} + // The description of an Amazon EC2 instance. type Instance struct { _ struct{} `type:"structure"` @@ -4878,6 +6208,12 @@ func (s Instance) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *Instance) SetId(v string) *Instance { + s.Id = &v + return s +} + // Represents summary information about the health of an instance. For more // information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). type InstanceHealthSummary struct { @@ -4924,6 +6260,54 @@ func (s InstanceHealthSummary) GoString() string { return s.String() } +// SetDegraded sets the Degraded field's value. +func (s *InstanceHealthSummary) SetDegraded(v int64) *InstanceHealthSummary { + s.Degraded = &v + return s +} + +// SetInfo sets the Info field's value. +func (s *InstanceHealthSummary) SetInfo(v int64) *InstanceHealthSummary { + s.Info = &v + return s +} + +// SetNoData sets the NoData field's value. +func (s *InstanceHealthSummary) SetNoData(v int64) *InstanceHealthSummary { + s.NoData = &v + return s +} + +// SetOk sets the Ok field's value. +func (s *InstanceHealthSummary) SetOk(v int64) *InstanceHealthSummary { + s.Ok = &v + return s +} + +// SetPending sets the Pending field's value. +func (s *InstanceHealthSummary) SetPending(v int64) *InstanceHealthSummary { + s.Pending = &v + return s +} + +// SetSevere sets the Severe field's value. +func (s *InstanceHealthSummary) SetSevere(v int64) *InstanceHealthSummary { + s.Severe = &v + return s +} + +// SetUnknown sets the Unknown field's value. +func (s *InstanceHealthSummary) SetUnknown(v int64) *InstanceHealthSummary { + s.Unknown = &v + return s +} + +// SetWarning sets the Warning field's value. +func (s *InstanceHealthSummary) SetWarning(v int64) *InstanceHealthSummary { + s.Warning = &v + return s +} + // Represents the average latency for the slowest X percent of requests over // the last 10 seconds. type Latency struct { @@ -4972,6 +6356,54 @@ func (s Latency) GoString() string { return s.String() } +// SetP10 sets the P10 field's value. +func (s *Latency) SetP10(v float64) *Latency { + s.P10 = &v + return s +} + +// SetP50 sets the P50 field's value. +func (s *Latency) SetP50(v float64) *Latency { + s.P50 = &v + return s +} + +// SetP75 sets the P75 field's value. +func (s *Latency) SetP75(v float64) *Latency { + s.P75 = &v + return s +} + +// SetP85 sets the P85 field's value. +func (s *Latency) SetP85(v float64) *Latency { + s.P85 = &v + return s +} + +// SetP90 sets the P90 field's value. +func (s *Latency) SetP90(v float64) *Latency { + s.P90 = &v + return s +} + +// SetP95 sets the P95 field's value. +func (s *Latency) SetP95(v float64) *Latency { + s.P95 = &v + return s +} + +// SetP99 sets the P99 field's value. +func (s *Latency) SetP99(v float64) *Latency { + s.P99 = &v + return s +} + +// SetP999 sets the P999 field's value. +func (s *Latency) SetP999(v float64) *Latency { + s.P999 = &v + return s +} + // Describes an Auto Scaling launch configuration. type LaunchConfiguration struct { _ struct{} `type:"structure"` @@ -4990,6 +6422,12 @@ func (s LaunchConfiguration) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *LaunchConfiguration) SetName(v string) *LaunchConfiguration { + s.Name = &v + return s +} + type ListAvailableSolutionStacksInput struct { _ struct{} `type:"structure"` } @@ -5025,6 +6463,18 @@ func (s ListAvailableSolutionStacksOutput) GoString() string { return s.String() } +// SetSolutionStackDetails sets the SolutionStackDetails field's value. +func (s *ListAvailableSolutionStacksOutput) SetSolutionStackDetails(v []*SolutionStackDescription) *ListAvailableSolutionStacksOutput { + s.SolutionStackDetails = v + return s +} + +// SetSolutionStacks sets the SolutionStacks field's value. +func (s *ListAvailableSolutionStacksOutput) SetSolutionStacks(v []*string) *ListAvailableSolutionStacksOutput { + s.SolutionStacks = v + return s +} + // Describes the properties of a Listener for the LoadBalancer. type Listener struct { _ struct{} `type:"structure"` @@ -5046,6 +6496,18 @@ func (s Listener) GoString() string { return s.String() } +// SetPort sets the Port field's value. +func (s *Listener) SetPort(v int64) *Listener { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Listener) SetProtocol(v string) *Listener { + s.Protocol = &v + return s +} + // Describes a LoadBalancer. type LoadBalancer struct { _ struct{} `type:"structure"` @@ -5064,6 +6526,12 @@ func (s LoadBalancer) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *LoadBalancer) SetName(v string) *LoadBalancer { + s.Name = &v + return s +} + // Describes the details of a LoadBalancer. type LoadBalancerDescription struct { _ struct{} `type:"structure"` @@ -5088,6 +6556,24 @@ func (s LoadBalancerDescription) GoString() string { return s.String() } +// SetDomain sets the Domain field's value. +func (s *LoadBalancerDescription) SetDomain(v string) *LoadBalancerDescription { + s.Domain = &v + return s +} + +// SetListeners sets the Listeners field's value. +func (s *LoadBalancerDescription) SetListeners(v []*Listener) *LoadBalancerDescription { + s.Listeners = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancerDescription) SetLoadBalancerName(v string) *LoadBalancerDescription { + s.LoadBalancerName = &v + return s +} + // The record of an upcoming or in-progress managed action. type ManagedAction struct { _ struct{} `type:"structure"` @@ -5120,6 +6606,36 @@ func (s ManagedAction) GoString() string { return s.String() } +// SetActionDescription sets the ActionDescription field's value. +func (s *ManagedAction) SetActionDescription(v string) *ManagedAction { + s.ActionDescription = &v + return s +} + +// SetActionId sets the ActionId field's value. +func (s *ManagedAction) SetActionId(v string) *ManagedAction { + s.ActionId = &v + return s +} + +// SetActionType sets the ActionType field's value. +func (s *ManagedAction) SetActionType(v string) *ManagedAction { + s.ActionType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ManagedAction) SetStatus(v string) *ManagedAction { + s.Status = &v + return s +} + +// SetWindowStartTime sets the WindowStartTime field's value. +func (s *ManagedAction) SetWindowStartTime(v time.Time) *ManagedAction { + s.WindowStartTime = &v + return s +} + // The record of a completed or failed managed action. type ManagedActionHistoryItem struct { _ struct{} `type:"structure"` @@ -5159,6 +6675,54 @@ func (s ManagedActionHistoryItem) GoString() string { return s.String() } +// SetActionDescription sets the ActionDescription field's value. +func (s *ManagedActionHistoryItem) SetActionDescription(v string) *ManagedActionHistoryItem { + s.ActionDescription = &v + return s +} + +// SetActionId sets the ActionId field's value. +func (s *ManagedActionHistoryItem) SetActionId(v string) *ManagedActionHistoryItem { + s.ActionId = &v + return s +} + +// SetActionType sets the ActionType field's value. +func (s *ManagedActionHistoryItem) SetActionType(v string) *ManagedActionHistoryItem { + s.ActionType = &v + return s +} + +// SetExecutedTime sets the ExecutedTime field's value. +func (s *ManagedActionHistoryItem) SetExecutedTime(v time.Time) *ManagedActionHistoryItem { + s.ExecutedTime = &v + return s +} + +// SetFailureDescription sets the FailureDescription field's value. +func (s *ManagedActionHistoryItem) SetFailureDescription(v string) *ManagedActionHistoryItem { + s.FailureDescription = &v + return s +} + +// SetFailureType sets the FailureType field's value. +func (s *ManagedActionHistoryItem) SetFailureType(v string) *ManagedActionHistoryItem { + s.FailureType = &v + return s +} + +// SetFinishedTime sets the FinishedTime field's value. +func (s *ManagedActionHistoryItem) SetFinishedTime(v time.Time) *ManagedActionHistoryItem { + s.FinishedTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ManagedActionHistoryItem) SetStatus(v string) *ManagedActionHistoryItem { + s.Status = &v + return s +} + // A regular expression representing a restriction on a string configuration // option value. type OptionRestrictionRegex struct { @@ -5182,6 +6746,18 @@ func (s OptionRestrictionRegex) GoString() string { return s.String() } +// SetLabel sets the Label field's value. +func (s *OptionRestrictionRegex) SetLabel(v string) *OptionRestrictionRegex { + s.Label = &v + return s +} + +// SetPattern sets the Pattern field's value. +func (s *OptionRestrictionRegex) SetPattern(v string) *OptionRestrictionRegex { + s.Pattern = &v + return s +} + // A specification identifying an individual configuration option. type OptionSpecification struct { _ struct{} `type:"structure"` @@ -5219,6 +6795,24 @@ func (s *OptionSpecification) Validate() error { return nil } +// SetNamespace sets the Namespace field's value. +func (s *OptionSpecification) SetNamespace(v string) *OptionSpecification { + s.Namespace = &v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *OptionSpecification) SetOptionName(v string) *OptionSpecification { + s.OptionName = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *OptionSpecification) SetResourceName(v string) *OptionSpecification { + s.ResourceName = &v + return s +} + // Describes a queue. type Queue struct { _ struct{} `type:"structure"` @@ -5240,19 +6834,31 @@ func (s Queue) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Queue) SetName(v string) *Queue { + s.Name = &v + return s +} + +// SetURL sets the URL field's value. +func (s *Queue) SetURL(v string) *Queue { + s.URL = &v + return s +} + type RebuildEnvironmentInput struct { _ struct{} `type:"structure"` // The ID of the environment to rebuild. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment to rebuild. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -5281,6 +6887,18 @@ func (s *RebuildEnvironmentInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *RebuildEnvironmentInput) SetEnvironmentId(v string) *RebuildEnvironmentInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *RebuildEnvironmentInput) SetEnvironmentName(v string) *RebuildEnvironmentInput { + s.EnvironmentName = &v + return s +} + type RebuildEnvironmentOutput struct { _ struct{} `type:"structure"` } @@ -5305,8 +6923,8 @@ type RequestEnvironmentInfoInput struct { // If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue // error. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` @@ -5352,6 +6970,24 @@ func (s *RequestEnvironmentInfoInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *RequestEnvironmentInfoInput) SetEnvironmentId(v string) *RequestEnvironmentInfoInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *RequestEnvironmentInfoInput) SetEnvironmentName(v string) *RequestEnvironmentInfoInput { + s.EnvironmentName = &v + return s +} + +// SetInfoType sets the InfoType field's value. +func (s *RequestEnvironmentInfoInput) SetInfoType(v string) *RequestEnvironmentInfoInput { + s.InfoType = &v + return s +} + type RequestEnvironmentInfoOutput struct { _ struct{} `type:"structure"` } @@ -5371,14 +7007,14 @@ type RestartAppServerInput struct { // The ID of the environment to restart the server for. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment to restart the server for. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -5407,6 +7043,18 @@ func (s *RestartAppServerInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *RestartAppServerInput) SetEnvironmentId(v string) *RestartAppServerInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *RestartAppServerInput) SetEnvironmentName(v string) *RestartAppServerInput { + s.EnvironmentName = &v + return s +} + type RestartAppServerOutput struct { _ struct{} `type:"structure"` } @@ -5429,16 +7077,16 @@ type RetrieveEnvironmentInfoInput struct { // // If no such environment is found, returns an InvalidParameterValue error. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the data's environment. // - // If no such environment is found, returns an InvalidParameterValue error. + // If no such environment is found, returns an InvalidParameterValue error. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -5475,6 +7123,24 @@ func (s *RetrieveEnvironmentInfoInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *RetrieveEnvironmentInfoInput) SetEnvironmentId(v string) *RetrieveEnvironmentInfoInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *RetrieveEnvironmentInfoInput) SetEnvironmentName(v string) *RetrieveEnvironmentInfoInput { + s.EnvironmentName = &v + return s +} + +// SetInfoType sets the InfoType field's value. +func (s *RetrieveEnvironmentInfoInput) SetInfoType(v string) *RetrieveEnvironmentInfoInput { + s.InfoType = &v + return s +} + // Result message containing a description of the requested environment info. type RetrieveEnvironmentInfoOutput struct { _ struct{} `type:"structure"` @@ -5493,6 +7159,12 @@ func (s RetrieveEnvironmentInfoOutput) GoString() string { return s.String() } +// SetEnvironmentInfo sets the EnvironmentInfo field's value. +func (s *RetrieveEnvironmentInfoOutput) SetEnvironmentInfo(v []*EnvironmentInfoDescription) *RetrieveEnvironmentInfoOutput { + s.EnvironmentInfo = v + return s +} + // A specification of a location in Amazon S3. type S3Location struct { _ struct{} `type:"structure"` @@ -5514,6 +7186,18 @@ func (s S3Location) GoString() string { return s.String() } +// SetS3Bucket sets the S3Bucket field's value. +func (s *S3Location) SetS3Bucket(v string) *S3Location { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *S3Location) SetS3Key(v string) *S3Location { + s.S3Key = &v + return s +} + // Represents health information from the specified instance that belongs to // the AWS Elastic Beanstalk environment. Use the InstanceId property to specify // the application instance for which you'd like to return data. @@ -5566,6 +7250,66 @@ func (s SingleInstanceHealth) GoString() string { return s.String() } +// SetApplicationMetrics sets the ApplicationMetrics field's value. +func (s *SingleInstanceHealth) SetApplicationMetrics(v *ApplicationMetrics) *SingleInstanceHealth { + s.ApplicationMetrics = v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *SingleInstanceHealth) SetAvailabilityZone(v string) *SingleInstanceHealth { + s.AvailabilityZone = &v + return s +} + +// SetCauses sets the Causes field's value. +func (s *SingleInstanceHealth) SetCauses(v []*string) *SingleInstanceHealth { + s.Causes = v + return s +} + +// SetColor sets the Color field's value. +func (s *SingleInstanceHealth) SetColor(v string) *SingleInstanceHealth { + s.Color = &v + return s +} + +// SetDeployment sets the Deployment field's value. +func (s *SingleInstanceHealth) SetDeployment(v *Deployment) *SingleInstanceHealth { + s.Deployment = v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *SingleInstanceHealth) SetHealthStatus(v string) *SingleInstanceHealth { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SingleInstanceHealth) SetInstanceId(v string) *SingleInstanceHealth { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *SingleInstanceHealth) SetInstanceType(v string) *SingleInstanceHealth { + s.InstanceType = &v + return s +} + +// SetLaunchedAt sets the LaunchedAt field's value. +func (s *SingleInstanceHealth) SetLaunchedAt(v time.Time) *SingleInstanceHealth { + s.LaunchedAt = &v + return s +} + +// SetSystem sets the System field's value. +func (s *SingleInstanceHealth) SetSystem(v *SystemStatus) *SingleInstanceHealth { + s.System = v + return s +} + // Describes the solution stack. type SolutionStackDescription struct { _ struct{} `type:"structure"` @@ -5587,6 +7331,18 @@ func (s SolutionStackDescription) GoString() string { return s.String() } +// SetPermittedFileTypes sets the PermittedFileTypes field's value. +func (s *SolutionStackDescription) SetPermittedFileTypes(v []*string) *SolutionStackDescription { + s.PermittedFileTypes = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *SolutionStackDescription) SetSolutionStackName(v string) *SolutionStackDescription { + s.SolutionStackName = &v + return s +} + type SourceBuildInformation struct { _ struct{} `type:"structure"` @@ -5632,6 +7388,24 @@ func (s *SourceBuildInformation) Validate() error { return nil } +// SetSourceLocation sets the SourceLocation field's value. +func (s *SourceBuildInformation) SetSourceLocation(v string) *SourceBuildInformation { + s.SourceLocation = &v + return s +} + +// SetSourceRepository sets the SourceRepository field's value. +func (s *SourceBuildInformation) SetSourceRepository(v string) *SourceBuildInformation { + s.SourceRepository = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *SourceBuildInformation) SetSourceType(v string) *SourceBuildInformation { + s.SourceType = &v + return s +} + // A specification for an environment configuration type SourceConfiguration struct { _ struct{} `type:"structure"` @@ -5669,6 +7443,18 @@ func (s *SourceConfiguration) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *SourceConfiguration) SetApplicationName(v string) *SourceConfiguration { + s.ApplicationName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *SourceConfiguration) SetTemplateName(v string) *SourceConfiguration { + s.TemplateName = &v + return s +} + // Represents the percentage of requests over the last 10 seconds that resulted // in each type of status code response. For more information, see Status Code // Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). @@ -5702,34 +7488,58 @@ func (s StatusCodes) GoString() string { return s.String() } +// SetStatus2xx sets the Status2xx field's value. +func (s *StatusCodes) SetStatus2xx(v int64) *StatusCodes { + s.Status2xx = &v + return s +} + +// SetStatus3xx sets the Status3xx field's value. +func (s *StatusCodes) SetStatus3xx(v int64) *StatusCodes { + s.Status3xx = &v + return s +} + +// SetStatus4xx sets the Status4xx field's value. +func (s *StatusCodes) SetStatus4xx(v int64) *StatusCodes { + s.Status4xx = &v + return s +} + +// SetStatus5xx sets the Status5xx field's value. +func (s *StatusCodes) SetStatus5xx(v int64) *StatusCodes { + s.Status5xx = &v + return s +} + // Swaps the CNAMEs of two environments. type SwapEnvironmentCNAMEsInput struct { _ struct{} `type:"structure"` // The ID of the destination environment. // - // Condition: You must specify at least the DestinationEnvironmentID or the + // Condition: You must specify at least the DestinationEnvironmentID or the // DestinationEnvironmentName. You may also specify both. You must specify the // SourceEnvironmentId with the DestinationEnvironmentId. DestinationEnvironmentId *string `type:"string"` // The name of the destination environment. // - // Condition: You must specify at least the DestinationEnvironmentID or the + // Condition: You must specify at least the DestinationEnvironmentID or the // DestinationEnvironmentName. You may also specify both. You must specify the // SourceEnvironmentName with the DestinationEnvironmentName. DestinationEnvironmentName *string `min:"4" type:"string"` // The ID of the source environment. // - // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. + // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. // You may also specify both. If you specify the SourceEnvironmentId, you must // specify the DestinationEnvironmentId. SourceEnvironmentId *string `type:"string"` // The name of the source environment. // - // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. + // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. // You may also specify both. If you specify the SourceEnvironmentName, you // must specify the DestinationEnvironmentName. SourceEnvironmentName *string `min:"4" type:"string"` @@ -5761,6 +7571,30 @@ func (s *SwapEnvironmentCNAMEsInput) Validate() error { return nil } +// SetDestinationEnvironmentId sets the DestinationEnvironmentId field's value. +func (s *SwapEnvironmentCNAMEsInput) SetDestinationEnvironmentId(v string) *SwapEnvironmentCNAMEsInput { + s.DestinationEnvironmentId = &v + return s +} + +// SetDestinationEnvironmentName sets the DestinationEnvironmentName field's value. +func (s *SwapEnvironmentCNAMEsInput) SetDestinationEnvironmentName(v string) *SwapEnvironmentCNAMEsInput { + s.DestinationEnvironmentName = &v + return s +} + +// SetSourceEnvironmentId sets the SourceEnvironmentId field's value. +func (s *SwapEnvironmentCNAMEsInput) SetSourceEnvironmentId(v string) *SwapEnvironmentCNAMEsInput { + s.SourceEnvironmentId = &v + return s +} + +// SetSourceEnvironmentName sets the SourceEnvironmentName field's value. +func (s *SwapEnvironmentCNAMEsInput) SetSourceEnvironmentName(v string) *SwapEnvironmentCNAMEsInput { + s.SourceEnvironmentName = &v + return s +} + type SwapEnvironmentCNAMEsOutput struct { _ struct{} `type:"structure"` } @@ -5800,6 +7634,18 @@ func (s SystemStatus) GoString() string { return s.String() } +// SetCPUUtilization sets the CPUUtilization field's value. +func (s *SystemStatus) SetCPUUtilization(v *CPUUtilization) *SystemStatus { + s.CPUUtilization = v + return s +} + +// SetLoadAverage sets the LoadAverage field's value. +func (s *SystemStatus) SetLoadAverage(v []*float64) *SystemStatus { + s.LoadAverage = v + return s +} + // Describes a tag applied to a resource in an environment. type Tag struct { _ struct{} `type:"structure"` @@ -5837,20 +7683,32 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Request to terminate an environment. type TerminateEnvironmentInput struct { _ struct{} `type:"structure"` // The ID of the environment to terminate. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment to terminate. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -5862,17 +7720,17 @@ type TerminateEnvironmentInput struct { // Indicates whether the associated AWS resources should shut down when the // environment is terminated: // - // true: The specified environment as well as the associated AWS resources, - // such as Auto Scaling group and LoadBalancer, are terminated. + // * true: The specified environment as well as the associated AWS resources, + // such as Auto Scaling group and LoadBalancer, are terminated. // - // false: AWS Elastic Beanstalk resource management is removed from the - // environment, but the AWS resources continue to operate. + // * false: AWS Elastic Beanstalk resource management is removed from the + // environment, but the AWS resources continue to operate. // - // For more information, see the AWS Elastic Beanstalk User Guide. (http://docs.aws.amazon.com/elasticbeanstalk/latest/ug/) + // For more information, see the AWS Elastic Beanstalk User Guide. (http://docs.aws.amazon.com/elasticbeanstalk/latest/ug/) // - // Default: true + // Default: true // - // Valid Values: true | false + // Valid Values: true | false TerminateResources *bool `type:"boolean"` } @@ -5899,6 +7757,30 @@ func (s *TerminateEnvironmentInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *TerminateEnvironmentInput) SetEnvironmentId(v string) *TerminateEnvironmentInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *TerminateEnvironmentInput) SetEnvironmentName(v string) *TerminateEnvironmentInput { + s.EnvironmentName = &v + return s +} + +// SetForceTerminate sets the ForceTerminate field's value. +func (s *TerminateEnvironmentInput) SetForceTerminate(v bool) *TerminateEnvironmentInput { + s.ForceTerminate = &v + return s +} + +// SetTerminateResources sets the TerminateResources field's value. +func (s *TerminateEnvironmentInput) SetTerminateResources(v bool) *TerminateEnvironmentInput { + s.TerminateResources = &v + return s +} + // Describes a trigger. type Trigger struct { _ struct{} `type:"structure"` @@ -5917,6 +7799,12 @@ func (s Trigger) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Trigger) SetName(v string) *Trigger { + s.Name = &v + return s +} + // Request to update an application. type UpdateApplicationInput struct { _ struct{} `type:"structure"` @@ -5959,13 +7847,25 @@ func (s *UpdateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput { + s.Description = &v + return s +} + type UpdateApplicationVersionInput struct { _ struct{} `type:"structure"` // The name of the application associated with this version. // - // If no application is found with this name, UpdateApplication returns an - // InvalidParameterValue error. + // If no application is found with this name, UpdateApplication returns an InvalidParameterValue + // error. // // ApplicationName is a required field ApplicationName *string `min:"1" type:"string" required:"true"` @@ -5975,7 +7875,7 @@ type UpdateApplicationVersionInput struct { // The name of the version to update. // - // If no application version is found with this label, UpdateApplication returns + // If no application version is found with this label, UpdateApplication returns // an InvalidParameterValue error. // // VersionLabel is a required field @@ -6014,6 +7914,24 @@ func (s *UpdateApplicationVersionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationVersionInput) SetApplicationName(v string) *UpdateApplicationVersionInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateApplicationVersionInput) SetDescription(v string) *UpdateApplicationVersionInput { + s.Description = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *UpdateApplicationVersionInput) SetVersionLabel(v string) *UpdateApplicationVersionInput { + s.VersionLabel = &v + return s +} + // The result message containing the options for the specified solution stack. type UpdateConfigurationTemplateInput struct { _ struct{} `type:"structure"` @@ -6021,8 +7939,8 @@ type UpdateConfigurationTemplateInput struct { // The name of the application associated with the configuration template to // update. // - // If no application is found with this name, UpdateConfigurationTemplate - // returns an InvalidParameterValue error. + // If no application is found with this name, UpdateConfigurationTemplate returns + // an InvalidParameterValue error. // // ApplicationName is a required field ApplicationName *string `min:"1" type:"string" required:"true"` @@ -6036,12 +7954,12 @@ type UpdateConfigurationTemplateInput struct { // A list of configuration options to remove from the configuration set. // - // Constraint: You can remove only UserDefined configuration options. + // Constraint: You can remove only UserDefined configuration options. OptionsToRemove []*OptionSpecification `type:"list"` // The name of the configuration template to update. // - // If no configuration template is found with this name, UpdateConfigurationTemplate + // If no configuration template is found with this name, UpdateConfigurationTemplate // returns an InvalidParameterValue error. // // TemplateName is a required field @@ -6100,6 +8018,36 @@ func (s *UpdateConfigurationTemplateInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateConfigurationTemplateInput) SetApplicationName(v string) *UpdateConfigurationTemplateInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateConfigurationTemplateInput) SetDescription(v string) *UpdateConfigurationTemplateInput { + s.Description = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *UpdateConfigurationTemplateInput) SetOptionSettings(v []*ConfigurationOptionSetting) *UpdateConfigurationTemplateInput { + s.OptionSettings = v + return s +} + +// SetOptionsToRemove sets the OptionsToRemove field's value. +func (s *UpdateConfigurationTemplateInput) SetOptionsToRemove(v []*OptionSpecification) *UpdateConfigurationTemplateInput { + s.OptionsToRemove = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *UpdateConfigurationTemplateInput) SetTemplateName(v string) *UpdateConfigurationTemplateInput { + s.TemplateName = &v + return s +} + // Request to update an environment. type UpdateEnvironmentInput struct { _ struct{} `type:"structure"` @@ -6113,11 +8061,11 @@ type UpdateEnvironmentInput struct { // The ID of the environment to update. // - // If no environment with this ID exists, AWS Elastic Beanstalk returns an - // InvalidParameterValue error. + // If no environment with this ID exists, AWS Elastic Beanstalk returns an InvalidParameterValue + // error. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` @@ -6156,8 +8104,8 @@ type UpdateEnvironmentInput struct { // This specifies the tier to use to update the environment. // - // Condition: At this time, if you change the tier version, name, or type, - // AWS Elastic Beanstalk returns InvalidParameterValue error. + // Condition: At this time, if you change the tier version, name, or type, AWS + // Elastic Beanstalk returns InvalidParameterValue error. Tier *EnvironmentTier `type:"structure"` // If this parameter is specified, AWS Elastic Beanstalk deploys the named application @@ -6221,6 +8169,72 @@ func (s *UpdateEnvironmentInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateEnvironmentInput) SetApplicationName(v string) *UpdateEnvironmentInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateEnvironmentInput) SetDescription(v string) *UpdateEnvironmentInput { + s.Description = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *UpdateEnvironmentInput) SetEnvironmentId(v string) *UpdateEnvironmentInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *UpdateEnvironmentInput) SetEnvironmentName(v string) *UpdateEnvironmentInput { + s.EnvironmentName = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *UpdateEnvironmentInput) SetGroupName(v string) *UpdateEnvironmentInput { + s.GroupName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *UpdateEnvironmentInput) SetOptionSettings(v []*ConfigurationOptionSetting) *UpdateEnvironmentInput { + s.OptionSettings = v + return s +} + +// SetOptionsToRemove sets the OptionsToRemove field's value. +func (s *UpdateEnvironmentInput) SetOptionsToRemove(v []*OptionSpecification) *UpdateEnvironmentInput { + s.OptionsToRemove = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *UpdateEnvironmentInput) SetSolutionStackName(v string) *UpdateEnvironmentInput { + s.SolutionStackName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *UpdateEnvironmentInput) SetTemplateName(v string) *UpdateEnvironmentInput { + s.TemplateName = &v + return s +} + +// SetTier sets the Tier field's value. +func (s *UpdateEnvironmentInput) SetTier(v *EnvironmentTier) *UpdateEnvironmentInput { + s.Tier = v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *UpdateEnvironmentInput) SetVersionLabel(v string) *UpdateEnvironmentInput { + s.VersionLabel = &v + return s +} + // A list of validation messages for a specified configuration template. type ValidateConfigurationSettingsInput struct { _ struct{} `type:"structure"` @@ -6292,6 +8306,30 @@ func (s *ValidateConfigurationSettingsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ValidateConfigurationSettingsInput) SetApplicationName(v string) *ValidateConfigurationSettingsInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ValidateConfigurationSettingsInput) SetEnvironmentName(v string) *ValidateConfigurationSettingsInput { + s.EnvironmentName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *ValidateConfigurationSettingsInput) SetOptionSettings(v []*ConfigurationOptionSetting) *ValidateConfigurationSettingsInput { + s.OptionSettings = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *ValidateConfigurationSettingsInput) SetTemplateName(v string) *ValidateConfigurationSettingsInput { + s.TemplateName = &v + return s +} + // Provides a list of validation messages. type ValidateConfigurationSettingsOutput struct { _ struct{} `type:"structure"` @@ -6310,6 +8348,12 @@ func (s ValidateConfigurationSettingsOutput) GoString() string { return s.String() } +// SetMessages sets the Messages field's value. +func (s *ValidateConfigurationSettingsOutput) SetMessages(v []*ValidationMessage) *ValidateConfigurationSettingsOutput { + s.Messages = v + return s +} + // An error or warning for a desired configuration option value. type ValidationMessage struct { _ struct{} `type:"structure"` @@ -6323,10 +8367,11 @@ type ValidationMessage struct { // An indication of the severity of this message: // - // error: This message indicates that this is not a valid setting for an - // option. + // * error: This message indicates that this is not a valid setting for an + // option. // - // warning: This message is providing information you should take into account. + // * warning: This message is providing information you should take into + // account. Severity *string `type:"string" enum:"ValidationSeverity"` } @@ -6340,6 +8385,30 @@ func (s ValidationMessage) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *ValidationMessage) SetMessage(v string) *ValidationMessage { + s.Message = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ValidationMessage) SetNamespace(v string) *ValidationMessage { + s.Namespace = &v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *ValidationMessage) SetOptionName(v string) *ValidationMessage { + s.OptionName = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *ValidationMessage) SetSeverity(v string) *ValidationMessage { + s.Severity = &v + return s +} + const ( // ActionHistoryStatusCompleted is a ActionHistoryStatus enum value ActionHistoryStatusCompleted = "Completed" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go index cbbf08e65..bdac862a4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go @@ -23,7 +23,7 @@ import ( // (IDE) Toolkits, and command line tools that enable you to access the API, // go to Tools for Amazon Web Services (http://aws.amazon.com/tools/). // -// Endpoints +// Endpoints // // For a list of region-specific endpoints that AWS Elastic Beanstalk supports, // go to Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go index 665553687..651cb080f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go @@ -62,8 +62,7 @@ func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request // // Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive // key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging -// Amazon Elasticsearch Service Domains for more information. (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-awsresorcetagging" -// target="_blank) +// Amazon Elasticsearch Service Domains for more information. (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-awsresorcetagging) // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -141,8 +140,8 @@ func (c *ElasticsearchService) CreateElasticsearchDomainRequest(input *CreateEla // CreateElasticsearchDomain API operation for Amazon Elasticsearch Service. // // Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch -// Domains (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains" -// target="_blank) in the Amazon Elasticsearch Service Developer Guide. +// Domains (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains) +// in the Amazon Elasticsearch Service Developer 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 @@ -809,8 +808,8 @@ type AccessPoliciesStatus struct { // The access policy configured for the Elasticsearch domain. Access policies // may be resource-based, IP-based, or IAM-based. See Configuring Access Policies - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-access-policies" - // target="_blank)for more information. + // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-access-policies)for + // more information. // // Options is a required field Options *string `type:"string" required:"true"` @@ -832,6 +831,18 @@ func (s AccessPoliciesStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *AccessPoliciesStatus) SetOptions(v string) *AccessPoliciesStatus { + s.Options = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AccessPoliciesStatus) SetStatus(v *OptionStatus) *AccessPoliciesStatus { + s.Status = v + return s +} + // Container for the parameters to the AddTags operation. Specify the tags that // you want to attach to the Elasticsearch domain. type AddTagsInput struct { @@ -884,6 +895,18 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetARN sets the ARN field's value. +func (s *AddTagsInput) SetARN(v string) *AddTagsInput { + s.ARN = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *AddTagsInput) SetTagList(v []*Tag) *AddTagsInput { + s.TagList = v + return s +} + type AddTagsOutput struct { _ struct{} `type:"structure"` } @@ -901,12 +924,13 @@ func (s AddTagsOutput) GoString() string { // Status of the advanced options for the specified Elasticsearch domain. Currently, // the following advanced options are available: // -// Option to allow references to indices in an HTTP request body. Must be -// false when configuring access to individual sub-resources. By default, the -// value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" -// target="_blank) for more information. Option to specify the percentage of -// heap space that is allocated to field data. By default, this setting is unbounded. -// For more information, see Configuring Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options). +// * Option to allow references to indices in an HTTP request body. Must +// be false when configuring access to individual sub-resources. By default, +// the value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) +// for more information. +// * Option to specify the percentage of heap space that is allocated to +// field data. By default, this setting is unbounded. +// For more information, see Configuring Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options). type AdvancedOptionsStatus struct { _ struct{} `type:"structure"` @@ -933,6 +957,18 @@ func (s AdvancedOptionsStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *AdvancedOptionsStatus) SetOptions(v map[string]*string) *AdvancedOptionsStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AdvancedOptionsStatus) SetStatus(v *OptionStatus) *AdvancedOptionsStatus { + s.Status = v + return s +} + type CreateElasticsearchDomainInput struct { _ struct{} `type:"structure"` @@ -941,8 +977,8 @@ type CreateElasticsearchDomainInput struct { // Option to allow references to indices in an HTTP request body. Must be false // when configuring access to individual sub-resources. By default, the value - // is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. + // is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) + // for more information. AdvancedOptions map[string]*string `type:"map"` // The name of the Elasticsearch domain that you are creating. Domain names @@ -962,8 +998,8 @@ type CreateElasticsearchDomainInput struct { // String of format X.Y to specify version for the Elasticsearch domain eg. // "1.5" or "2.3". For more information, see Creating Elasticsearch Domains - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains" - // target="_blank) in the Amazon Elasticsearch Service Developer Guide. + // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains) + // in the Amazon Elasticsearch Service Developer Guide. ElasticsearchVersion *string `type:"string"` // Option to set time, in UTC format, of the daily automated snapshot. Default @@ -997,6 +1033,48 @@ func (s *CreateElasticsearchDomainInput) Validate() error { return nil } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *CreateElasticsearchDomainInput) SetAccessPolicies(v string) *CreateElasticsearchDomainInput { + s.AccessPolicies = &v + return s +} + +// SetAdvancedOptions sets the AdvancedOptions field's value. +func (s *CreateElasticsearchDomainInput) SetAdvancedOptions(v map[string]*string) *CreateElasticsearchDomainInput { + s.AdvancedOptions = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateElasticsearchDomainInput) SetDomainName(v string) *CreateElasticsearchDomainInput { + s.DomainName = &v + return s +} + +// SetEBSOptions sets the EBSOptions field's value. +func (s *CreateElasticsearchDomainInput) SetEBSOptions(v *EBSOptions) *CreateElasticsearchDomainInput { + s.EBSOptions = v + return s +} + +// SetElasticsearchClusterConfig sets the ElasticsearchClusterConfig field's value. +func (s *CreateElasticsearchDomainInput) SetElasticsearchClusterConfig(v *ElasticsearchClusterConfig) *CreateElasticsearchDomainInput { + s.ElasticsearchClusterConfig = v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *CreateElasticsearchDomainInput) SetElasticsearchVersion(v string) *CreateElasticsearchDomainInput { + s.ElasticsearchVersion = &v + return s +} + +// SetSnapshotOptions sets the SnapshotOptions field's value. +func (s *CreateElasticsearchDomainInput) SetSnapshotOptions(v *SnapshotOptions) *CreateElasticsearchDomainInput { + s.SnapshotOptions = v + return s +} + // The result of a CreateElasticsearchDomain operation. Contains the status // of the newly created Elasticsearch domain. type CreateElasticsearchDomainOutput struct { @@ -1016,6 +1094,12 @@ func (s CreateElasticsearchDomainOutput) GoString() string { return s.String() } +// SetDomainStatus sets the DomainStatus field's value. +func (s *CreateElasticsearchDomainOutput) SetDomainStatus(v *ElasticsearchDomainStatus) *CreateElasticsearchDomainOutput { + s.DomainStatus = v + return s +} + // Container for the parameters to the DeleteElasticsearchDomain operation. // Specifies the name of the Elasticsearch domain that you want to delete. type DeleteElasticsearchDomainInput struct { @@ -1053,6 +1137,12 @@ func (s *DeleteElasticsearchDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteElasticsearchDomainInput) SetDomainName(v string) *DeleteElasticsearchDomainInput { + s.DomainName = &v + return s +} + // The result of a DeleteElasticsearchDomain request. Contains the status of // the pending deletion, or no status if the domain and all of its resources // have been deleted. @@ -1073,6 +1163,12 @@ func (s DeleteElasticsearchDomainOutput) GoString() string { return s.String() } +// SetDomainStatus sets the DomainStatus field's value. +func (s *DeleteElasticsearchDomainOutput) SetDomainStatus(v *ElasticsearchDomainStatus) *DeleteElasticsearchDomainOutput { + s.DomainStatus = v + return s +} + // Container for the parameters to the DescribeElasticsearchDomainConfig operation. // Specifies the domain name for which you want configuration information. type DescribeElasticsearchDomainConfigInput struct { @@ -1110,6 +1206,12 @@ func (s *DescribeElasticsearchDomainConfigInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DescribeElasticsearchDomainConfigInput) SetDomainName(v string) *DescribeElasticsearchDomainConfigInput { + s.DomainName = &v + return s +} + // The result of a DescribeElasticsearchDomainConfig request. Contains the configuration // information of the requested domain. type DescribeElasticsearchDomainConfigOutput struct { @@ -1132,6 +1234,12 @@ func (s DescribeElasticsearchDomainConfigOutput) GoString() string { return s.String() } +// SetDomainConfig sets the DomainConfig field's value. +func (s *DescribeElasticsearchDomainConfigOutput) SetDomainConfig(v *ElasticsearchDomainConfig) *DescribeElasticsearchDomainConfigOutput { + s.DomainConfig = v + return s +} + // Container for the parameters to the DescribeElasticsearchDomain operation. type DescribeElasticsearchDomainInput struct { _ struct{} `type:"structure"` @@ -1168,6 +1276,12 @@ func (s *DescribeElasticsearchDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DescribeElasticsearchDomainInput) SetDomainName(v string) *DescribeElasticsearchDomainInput { + s.DomainName = &v + return s +} + // The result of a DescribeElasticsearchDomain request. Contains the status // of the domain specified in the request. type DescribeElasticsearchDomainOutput struct { @@ -1189,6 +1303,12 @@ func (s DescribeElasticsearchDomainOutput) GoString() string { return s.String() } +// SetDomainStatus sets the DomainStatus field's value. +func (s *DescribeElasticsearchDomainOutput) SetDomainStatus(v *ElasticsearchDomainStatus) *DescribeElasticsearchDomainOutput { + s.DomainStatus = v + return s +} + // Container for the parameters to the DescribeElasticsearchDomains operation. // By default, the API returns the status of all Elasticsearch domains. type DescribeElasticsearchDomainsInput struct { @@ -1223,6 +1343,12 @@ func (s *DescribeElasticsearchDomainsInput) Validate() error { return nil } +// SetDomainNames sets the DomainNames field's value. +func (s *DescribeElasticsearchDomainsInput) SetDomainNames(v []*string) *DescribeElasticsearchDomainsInput { + s.DomainNames = v + return s +} + // The result of a DescribeElasticsearchDomains request. Contains the status // of the specified domains or all domains owned by the account. type DescribeElasticsearchDomainsOutput struct { @@ -1244,6 +1370,12 @@ func (s DescribeElasticsearchDomainsOutput) GoString() string { return s.String() } +// SetDomainStatusList sets the DomainStatusList field's value. +func (s *DescribeElasticsearchDomainsOutput) SetDomainStatusList(v []*ElasticsearchDomainStatus) *DescribeElasticsearchDomainsOutput { + s.DomainStatusList = v + return s +} + type DomainInfo struct { _ struct{} `type:"structure"` @@ -1261,9 +1393,14 @@ func (s DomainInfo) GoString() string { return s.String() } +// SetDomainName sets the DomainName field's value. +func (s *DomainInfo) SetDomainName(v string) *DomainInfo { + s.DomainName = &v + return s +} + // Options to enable, disable, and specify the properties of EBS storage volumes. -// For more information, see Configuring EBS-based Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" -// target="_blank). +// For more information, see Configuring EBS-based Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs). type EBSOptions struct { _ struct{} `type:"structure"` @@ -1290,6 +1427,30 @@ func (s EBSOptions) GoString() string { return s.String() } +// SetEBSEnabled sets the EBSEnabled field's value. +func (s *EBSOptions) SetEBSEnabled(v bool) *EBSOptions { + s.EBSEnabled = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *EBSOptions) SetIops(v int64) *EBSOptions { + s.Iops = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *EBSOptions) SetVolumeSize(v int64) *EBSOptions { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *EBSOptions) SetVolumeType(v string) *EBSOptions { + s.VolumeType = &v + return s +} + // Status of the EBS options for the specified Elasticsearch domain. type EBSOptionsStatus struct { _ struct{} `type:"structure"` @@ -1315,6 +1476,18 @@ func (s EBSOptionsStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *EBSOptionsStatus) SetOptions(v *EBSOptions) *EBSOptionsStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *EBSOptionsStatus) SetStatus(v *OptionStatus) *EBSOptionsStatus { + s.Status = v + return s +} + // Specifies the configuration for the domain cluster, such as the type and // number of instances. type ElasticsearchClusterConfig struct { @@ -1324,8 +1497,8 @@ type ElasticsearchClusterConfig struct { DedicatedMasterCount *int64 `type:"integer"` // A boolean value to indicate whether a dedicated master node is enabled. See - // About Dedicated Master Nodes (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-dedicatedmasternodes" - // target="_blank) for more information. + // About Dedicated Master Nodes (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-dedicatedmasternodes) + // for more information. DedicatedMasterEnabled *bool `type:"boolean"` // The instance type for a dedicated master node. @@ -1338,8 +1511,8 @@ type ElasticsearchClusterConfig struct { InstanceType *string `type:"string" enum:"ESPartitionInstanceType"` // A boolean value to indicate whether zone awareness is enabled. See About - // Zone Awareness (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-zoneawareness" - // target="_blank) for more information. + // Zone Awareness (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-zoneawareness) + // for more information. ZoneAwarenessEnabled *bool `type:"boolean"` } @@ -1353,6 +1526,42 @@ func (s ElasticsearchClusterConfig) GoString() string { return s.String() } +// SetDedicatedMasterCount sets the DedicatedMasterCount field's value. +func (s *ElasticsearchClusterConfig) SetDedicatedMasterCount(v int64) *ElasticsearchClusterConfig { + s.DedicatedMasterCount = &v + return s +} + +// SetDedicatedMasterEnabled sets the DedicatedMasterEnabled field's value. +func (s *ElasticsearchClusterConfig) SetDedicatedMasterEnabled(v bool) *ElasticsearchClusterConfig { + s.DedicatedMasterEnabled = &v + return s +} + +// SetDedicatedMasterType sets the DedicatedMasterType field's value. +func (s *ElasticsearchClusterConfig) SetDedicatedMasterType(v string) *ElasticsearchClusterConfig { + s.DedicatedMasterType = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ElasticsearchClusterConfig) SetInstanceCount(v int64) *ElasticsearchClusterConfig { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ElasticsearchClusterConfig) SetInstanceType(v string) *ElasticsearchClusterConfig { + s.InstanceType = &v + return s +} + +// SetZoneAwarenessEnabled sets the ZoneAwarenessEnabled field's value. +func (s *ElasticsearchClusterConfig) SetZoneAwarenessEnabled(v bool) *ElasticsearchClusterConfig { + s.ZoneAwarenessEnabled = &v + return s +} + // Specifies the configuration status for the specified Elasticsearch domain. type ElasticsearchClusterConfigStatus struct { _ struct{} `type:"structure"` @@ -1379,6 +1588,18 @@ func (s ElasticsearchClusterConfigStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *ElasticsearchClusterConfigStatus) SetOptions(v *ElasticsearchClusterConfig) *ElasticsearchClusterConfigStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ElasticsearchClusterConfigStatus) SetStatus(v *OptionStatus) *ElasticsearchClusterConfigStatus { + s.Status = v + return s +} + // The configuration of an Elasticsearch domain. type ElasticsearchDomainConfig struct { _ struct{} `type:"structure"` @@ -1387,8 +1608,8 @@ type ElasticsearchDomainConfig struct { AccessPolicies *AccessPoliciesStatus `type:"structure"` // Specifies the AdvancedOptions for the domain. See Configuring Advanced Options - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. + // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) + // for more information. AdvancedOptions *AdvancedOptionsStatus `type:"structure"` // Specifies the EBSOptions for the Elasticsearch domain. @@ -1414,13 +1635,49 @@ func (s ElasticsearchDomainConfig) GoString() string { return s.String() } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *ElasticsearchDomainConfig) SetAccessPolicies(v *AccessPoliciesStatus) *ElasticsearchDomainConfig { + s.AccessPolicies = v + return s +} + +// SetAdvancedOptions sets the AdvancedOptions field's value. +func (s *ElasticsearchDomainConfig) SetAdvancedOptions(v *AdvancedOptionsStatus) *ElasticsearchDomainConfig { + s.AdvancedOptions = v + return s +} + +// SetEBSOptions sets the EBSOptions field's value. +func (s *ElasticsearchDomainConfig) SetEBSOptions(v *EBSOptionsStatus) *ElasticsearchDomainConfig { + s.EBSOptions = v + return s +} + +// SetElasticsearchClusterConfig sets the ElasticsearchClusterConfig field's value. +func (s *ElasticsearchDomainConfig) SetElasticsearchClusterConfig(v *ElasticsearchClusterConfigStatus) *ElasticsearchDomainConfig { + s.ElasticsearchClusterConfig = v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *ElasticsearchDomainConfig) SetElasticsearchVersion(v *ElasticsearchVersionStatus) *ElasticsearchDomainConfig { + s.ElasticsearchVersion = v + return s +} + +// SetSnapshotOptions sets the SnapshotOptions field's value. +func (s *ElasticsearchDomainConfig) SetSnapshotOptions(v *SnapshotOptionsStatus) *ElasticsearchDomainConfig { + s.SnapshotOptions = v + return s +} + // The current status of an Elasticsearch domain. type ElasticsearchDomainStatus struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) of an Elasticsearch domain. See Identifiers - // for IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html" - // target="_blank) in Using AWS Identity and Access Management for more information. + // for IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html) + // in Using AWS Identity and Access Management for more information. // // ARN is a required field ARN *string `type:"string" required:"true"` @@ -1455,8 +1712,8 @@ type ElasticsearchDomainStatus struct { DomainName *string `min:"3" type:"string" required:"true"` // The EBSOptions for the specified domain. See Configuring EBS-based Storage - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" - // target="_blank) for more information. + // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs) + // for more information. EBSOptions *EBSOptions `type:"structure"` // The type and number of instances in the domain cluster. @@ -1489,6 +1746,84 @@ func (s ElasticsearchDomainStatus) GoString() string { return s.String() } +// SetARN sets the ARN field's value. +func (s *ElasticsearchDomainStatus) SetARN(v string) *ElasticsearchDomainStatus { + s.ARN = &v + return s +} + +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *ElasticsearchDomainStatus) SetAccessPolicies(v string) *ElasticsearchDomainStatus { + s.AccessPolicies = &v + return s +} + +// SetAdvancedOptions sets the AdvancedOptions field's value. +func (s *ElasticsearchDomainStatus) SetAdvancedOptions(v map[string]*string) *ElasticsearchDomainStatus { + s.AdvancedOptions = v + return s +} + +// SetCreated sets the Created field's value. +func (s *ElasticsearchDomainStatus) SetCreated(v bool) *ElasticsearchDomainStatus { + s.Created = &v + return s +} + +// SetDeleted sets the Deleted field's value. +func (s *ElasticsearchDomainStatus) SetDeleted(v bool) *ElasticsearchDomainStatus { + s.Deleted = &v + return s +} + +// SetDomainId sets the DomainId field's value. +func (s *ElasticsearchDomainStatus) SetDomainId(v string) *ElasticsearchDomainStatus { + s.DomainId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *ElasticsearchDomainStatus) SetDomainName(v string) *ElasticsearchDomainStatus { + s.DomainName = &v + return s +} + +// SetEBSOptions sets the EBSOptions field's value. +func (s *ElasticsearchDomainStatus) SetEBSOptions(v *EBSOptions) *ElasticsearchDomainStatus { + s.EBSOptions = v + return s +} + +// SetElasticsearchClusterConfig sets the ElasticsearchClusterConfig field's value. +func (s *ElasticsearchDomainStatus) SetElasticsearchClusterConfig(v *ElasticsearchClusterConfig) *ElasticsearchDomainStatus { + s.ElasticsearchClusterConfig = v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *ElasticsearchDomainStatus) SetElasticsearchVersion(v string) *ElasticsearchDomainStatus { + s.ElasticsearchVersion = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *ElasticsearchDomainStatus) SetEndpoint(v string) *ElasticsearchDomainStatus { + s.Endpoint = &v + return s +} + +// SetProcessing sets the Processing field's value. +func (s *ElasticsearchDomainStatus) SetProcessing(v bool) *ElasticsearchDomainStatus { + s.Processing = &v + return s +} + +// SetSnapshotOptions sets the SnapshotOptions field's value. +func (s *ElasticsearchDomainStatus) SetSnapshotOptions(v *SnapshotOptions) *ElasticsearchDomainStatus { + s.SnapshotOptions = v + return s +} + // Status of the Elasticsearch version options for the specified Elasticsearch // domain. type ElasticsearchVersionStatus struct { @@ -1516,6 +1851,18 @@ func (s ElasticsearchVersionStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *ElasticsearchVersionStatus) SetOptions(v string) *ElasticsearchVersionStatus { + s.Options = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ElasticsearchVersionStatus) SetStatus(v *OptionStatus) *ElasticsearchVersionStatus { + s.Status = v + return s +} + type ListDomainNamesInput struct { _ struct{} `type:"structure"` } @@ -1549,6 +1896,12 @@ func (s ListDomainNamesOutput) GoString() string { return s.String() } +// SetDomainNames sets the DomainNames field's value. +func (s *ListDomainNamesOutput) SetDomainNames(v []*DomainInfo) *ListDomainNamesOutput { + s.DomainNames = v + return s +} + // Container for the parameters to the ListTags operation. Specify the ARN for // the Elasticsearch domain to which the tags are attached that you want to // view are attached. @@ -1585,6 +1938,12 @@ func (s *ListTagsInput) Validate() error { return nil } +// SetARN sets the ARN field's value. +func (s *ListTagsInput) SetARN(v string) *ListTagsInput { + s.ARN = &v + return s +} + // The result of a ListTags operation. Contains tags for all requested Elasticsearch // domains. type ListTagsOutput struct { @@ -1604,6 +1963,12 @@ func (s ListTagsOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *ListTagsOutput) SetTagList(v []*Tag) *ListTagsOutput { + s.TagList = v + return s +} + // Provides the current status of the entity. type OptionStatus struct { _ struct{} `type:"structure"` @@ -1640,6 +2005,36 @@ func (s OptionStatus) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *OptionStatus) SetCreationDate(v time.Time) *OptionStatus { + s.CreationDate = &v + return s +} + +// SetPendingDeletion sets the PendingDeletion field's value. +func (s *OptionStatus) SetPendingDeletion(v bool) *OptionStatus { + s.PendingDeletion = &v + return s +} + +// SetState sets the State field's value. +func (s *OptionStatus) SetState(v string) *OptionStatus { + s.State = &v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *OptionStatus) SetUpdateDate(v time.Time) *OptionStatus { + s.UpdateDate = &v + return s +} + +// SetUpdateVersion sets the UpdateVersion field's value. +func (s *OptionStatus) SetUpdateVersion(v int64) *OptionStatus { + s.UpdateVersion = &v + return s +} + // Container for the parameters to the RemoveTags operation. Specify the ARN // for the Elasticsearch domain from which you want to remove the specified // TagKey. @@ -1685,6 +2080,18 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetARN sets the ARN field's value. +func (s *RemoveTagsInput) SetARN(v string) *RemoveTagsInput { + s.ARN = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput { + s.TagKeys = v + return s +} + type RemoveTagsOutput struct { _ struct{} `type:"structure"` } @@ -1719,6 +2126,12 @@ func (s SnapshotOptions) GoString() string { return s.String() } +// SetAutomatedSnapshotStartHour sets the AutomatedSnapshotStartHour field's value. +func (s *SnapshotOptions) SetAutomatedSnapshotStartHour(v int64) *SnapshotOptions { + s.AutomatedSnapshotStartHour = &v + return s +} + // Status of a daily automated snapshot. type SnapshotOptionsStatus struct { _ struct{} `type:"structure"` @@ -1744,6 +2157,18 @@ func (s SnapshotOptionsStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *SnapshotOptionsStatus) SetOptions(v *SnapshotOptions) *SnapshotOptionsStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *SnapshotOptionsStatus) SetStatus(v *OptionStatus) *SnapshotOptionsStatus { + s.Status = v + return s +} + // Specifies a key value pair for a resource tag. type Tag struct { _ struct{} `type:"structure"` @@ -1792,6 +2217,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Container for the parameters to the UpdateElasticsearchDomain operation. // Specifies the type and number of instances in the domain cluster. type UpdateElasticsearchDomainConfigInput struct { @@ -1802,8 +2239,8 @@ type UpdateElasticsearchDomainConfigInput struct { // Modifies the advanced option to allow references to indices in an HTTP request // body. Must be false when configuring access to individual sub-resources. - // By default, the value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. + // By default, the value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) + // for more information. AdvancedOptions map[string]*string `type:"map"` // The name of the Elasticsearch domain that you are updating. @@ -1848,6 +2285,42 @@ func (s *UpdateElasticsearchDomainConfigInput) Validate() error { return nil } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetAccessPolicies(v string) *UpdateElasticsearchDomainConfigInput { + s.AccessPolicies = &v + return s +} + +// SetAdvancedOptions sets the AdvancedOptions field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetAdvancedOptions(v map[string]*string) *UpdateElasticsearchDomainConfigInput { + s.AdvancedOptions = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetDomainName(v string) *UpdateElasticsearchDomainConfigInput { + s.DomainName = &v + return s +} + +// SetEBSOptions sets the EBSOptions field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetEBSOptions(v *EBSOptions) *UpdateElasticsearchDomainConfigInput { + s.EBSOptions = v + return s +} + +// SetElasticsearchClusterConfig sets the ElasticsearchClusterConfig field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetElasticsearchClusterConfig(v *ElasticsearchClusterConfig) *UpdateElasticsearchDomainConfigInput { + s.ElasticsearchClusterConfig = v + return s +} + +// SetSnapshotOptions sets the SnapshotOptions field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetSnapshotOptions(v *SnapshotOptions) *UpdateElasticsearchDomainConfigInput { + s.SnapshotOptions = v + return s +} + // The result of an UpdateElasticsearchDomain request. Contains the status of // the Elasticsearch domain being updated. type UpdateElasticsearchDomainConfigOutput struct { @@ -1869,6 +2342,12 @@ func (s UpdateElasticsearchDomainConfigOutput) GoString() string { return s.String() } +// SetDomainConfig sets the DomainConfig field's value. +func (s *UpdateElasticsearchDomainConfigOutput) SetDomainConfig(v *ElasticsearchDomainConfig) *UpdateElasticsearchDomainConfigOutput { + s.DomainConfig = v + return s +} + const ( // ESPartitionInstanceTypeM3MediumElasticsearch is a ESPartitionInstanceType enum value ESPartitionInstanceTypeM3MediumElasticsearch = "m3.medium.elasticsearch" @@ -1930,8 +2409,9 @@ const ( // The state of a requested change. One of the following: // -// Processing: The request change is still in-process. Active: The request -// change is processed and deployed to the Elasticsearch domain. +// * Processing: The request change is still in-process. +// * Active: The request change is processed and deployed to the Elasticsearch +// domain. const ( // OptionStateRequiresIndexDocuments is a OptionState enum value OptionStateRequiresIndexDocuments = "RequiresIndexDocuments" @@ -1944,8 +2424,8 @@ const ( ) // The type of EBS volume, standard, gp2, or io1. See Configuring EBS-based -// Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" -// target="_blank)for more information. +// Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs)for +// more information. const ( // VolumeTypeStandard is a VolumeType enum value VolumeTypeStandard = "standard" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go index 701ba5b45..0060cfdfe 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go @@ -16,8 +16,7 @@ import ( // // The endpoint for configuration service requests is region-specific: es.region.amazonaws.com. // 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" -// target="_blank). +// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions). //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type ElasticsearchService struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go index 5d60f2c00..8f313ab52 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go @@ -316,19 +316,19 @@ func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req * // // The CreatePreset operation creates a preset with settings that you specify. // -// Elastic Transcoder checks the CreatePreset settings to ensure that they -// meet Elastic Transcoder requirements and to determine whether they comply -// with H.264 standards. If your settings are not valid for Elastic Transcoder, -// Elastic Transcoder returns an HTTP 400 response (ValidationException) and -// does not create the preset. If the settings are valid for Elastic Transcoder -// but aren't strictly compliant with the H.264 standard, Elastic Transcoder -// creates the preset and returns a warning message in the response. This helps -// you determine whether your settings comply with the H.264 standard while -// giving you greater flexibility with respect to the video that Elastic Transcoder -// produces. Elastic Transcoder uses the H.264 video-compression format. For -// more information, see the International Telecommunication Union publication -// Recommendation ITU-T H.264: Advanced video coding for generic audiovisual -// services. +// Elastic Transcoder checks the CreatePreset settings to ensure that they meet +// Elastic Transcoder requirements and to determine whether they comply with +// H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic +// Transcoder returns an HTTP 400 response (ValidationException) and does not +// create the preset. If the settings are valid for Elastic Transcoder but aren't +// strictly compliant with the H.264 standard, Elastic Transcoder creates the +// preset and returns a warning message in the response. This helps you determine +// whether your settings comply with the H.264 standard while giving you greater +// flexibility with respect to the video that Elastic Transcoder produces. +// +// Elastic Transcoder uses the H.264 video-compression format. For more information, +// see the International Telecommunication Union publication Recommendation +// ITU-T H.264: Advanced video coding for generic audiovisual services. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -408,9 +408,9 @@ func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (r // // The DeletePipeline operation removes a pipeline. // -// You can only delete a pipeline that has never been used or that is not -// currently in use (doesn't contain any active jobs). If the pipeline is currently -// in use, DeletePipeline returns an error. +// You can only delete a pipeline that has never been used or that is not currently +// in use (doesn't contain any active jobs). If the pipeline is currently in +// use, DeletePipeline returns an error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -495,7 +495,7 @@ func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req * // // The DeletePreset operation removes a preset that you've added in an AWS region. // -// You can't delete the default presets that are included with Elastic Transcoder. +// You can't delete the default presets that are included with Elastic Transcoder. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1231,6 +1231,9 @@ const opTestRole = "TestRole" // } // func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request.Request, output *TestRoleOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, TestRole, has been deprecated") + } op := &request.Operation{ Name: opTestRole, HTTPMethod: "POST", @@ -1334,11 +1337,12 @@ func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (r // UpdatePipeline API operation for Amazon Elastic Transcoder. // -// Use the UpdatePipeline operation to update settings for a pipeline. When -// you change pipeline settings, your changes take effect immediately. Jobs -// that you have already submitted and that Elastic Transcoder has not started -// to process are affected in addition to jobs that you submit after you change -// settings. +// Use the UpdatePipeline operation to update settings for a pipeline. +// +// When you change pipeline settings, your changes take effect immediately. +// Jobs that you have already submitted and that Elastic Transcoder has not +// started to process are affected in addition to jobs that you submit after +// you change settings. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1600,25 +1604,33 @@ type Artwork struct { // Specify one of the following values to control scaling of the output album // art: // - // Fit: Elastic Transcoder scales the output art so it matches the value - // that you specified in either MaxWidth or MaxHeight without exceeding the - // other value. Fill: Elastic Transcoder scales the output art so it matches - // the value that you specified in either MaxWidth or MaxHeight and matches - // or exceeds the other value. Elastic Transcoder centers the output art and - // then crops it in the dimension (if any) that exceeds the maximum value. - // Stretch: Elastic Transcoder stretches the output art to match the values - // that you specified for MaxWidth and MaxHeight. If the relative proportions - // of the input art and the output art are different, the output art will be - // distorted. Keep: Elastic Transcoder does not scale the output art. If either - // dimension of the input art exceeds the values that you specified for MaxWidth - // and MaxHeight, Elastic Transcoder crops the output art. ShrinkToFit: Elastic - // Transcoder scales the output art down so that its dimensions match the values - // that you specified for at least one of MaxWidth and MaxHeight without exceeding - // either value. If you specify this option, Elastic Transcoder does not scale - // the art up. ShrinkToFill Elastic Transcoder scales the output art down so - // that its dimensions match the values that you specified for at least one - // of MaxWidth and MaxHeight without dropping below either value. If you specify - // this option, Elastic Transcoder does not scale the art up. + // * Fit: Elastic Transcoder scales the output art so it matches the value + // that you specified in either MaxWidth or MaxHeight without exceeding the + // other value. + // + // * Fill: Elastic Transcoder scales the output art so it matches the value + // that you specified in either MaxWidth or MaxHeight and matches or exceeds + // the other value. Elastic Transcoder centers the output art and then crops + // it in the dimension (if any) that exceeds the maximum value. + // + // * Stretch: Elastic Transcoder stretches the output art to match the values + // that you specified for MaxWidth and MaxHeight. If the relative proportions + // of the input art and the output art are different, the output art will + // be distorted. + // + // * Keep: Elastic Transcoder does not scale the output art. If either dimension + // of the input art exceeds the values that you specified for MaxWidth and + // MaxHeight, Elastic Transcoder crops the output art. + // + // * ShrinkToFit: Elastic Transcoder scales the output art down so that its + // dimensions match the values that you specified for at least one of MaxWidth + // and MaxHeight without exceeding either value. If you specify this option, + // Elastic Transcoder does not scale the art up. + // + // * ShrinkToFill Elastic Transcoder scales the output art down so that its + // dimensions match the values that you specified for at least one of MaxWidth + // and MaxHeight without dropping below either value. If you specify this + // option, Elastic Transcoder does not scale the art up. SizingPolicy *string `type:"string"` } @@ -1645,6 +1657,48 @@ func (s *Artwork) Validate() error { return nil } +// SetAlbumArtFormat sets the AlbumArtFormat field's value. +func (s *Artwork) SetAlbumArtFormat(v string) *Artwork { + s.AlbumArtFormat = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *Artwork) SetEncryption(v *Encryption) *Artwork { + s.Encryption = v + return s +} + +// SetInputKey sets the InputKey field's value. +func (s *Artwork) SetInputKey(v string) *Artwork { + s.InputKey = &v + return s +} + +// SetMaxHeight sets the MaxHeight field's value. +func (s *Artwork) SetMaxHeight(v string) *Artwork { + s.MaxHeight = &v + return s +} + +// SetMaxWidth sets the MaxWidth field's value. +func (s *Artwork) SetMaxWidth(v string) *Artwork { + s.MaxWidth = &v + return s +} + +// SetPaddingPolicy sets the PaddingPolicy field's value. +func (s *Artwork) SetPaddingPolicy(v string) *Artwork { + s.PaddingPolicy = &v + return s +} + +// SetSizingPolicy sets the SizingPolicy field's value. +func (s *Artwork) SetSizingPolicy(v string) *Artwork { + s.SizingPolicy = &v + return s +} + // Options associated with your audio codec. type AudioCodecOptions struct { _ struct{} `type:"structure"` @@ -1675,13 +1729,19 @@ type AudioCodecOptions struct { // Specify the AAC profile for the output file. Elastic Transcoder supports // the following profiles: // - // auto: If you specify auto, Elastic Transcoder will select the profile based - // on the bit rate selected for the output file. AAC-LC: The most common AAC - // profile. Use for bit rates larger than 64 kbps. HE-AAC: Not supported on - // some older players and devices. Use for bit rates between 40 and 80 kbps. - // HE-AACv2: Not supported on some players and devices. Use for bit rates less - // than 48 kbps. All outputs in a Smooth playlist must have the same value - // for Profile. + // * auto: If you specify auto, Elastic Transcoder selects the profile based + // on the bit rate selected for the output file. + // + // * AAC-LC: The most common AAC profile. Use for bit rates larger than 64 + // kbps. + // + // * HE-AAC: Not supported on some older players and devices. Use for bit + // rates between 40 and 80 kbps. + // + // * HE-AACv2: Not supported on some players and devices. Use for bit rates + // less than 48 kbps. + // + // All outputs in a Smooth playlist must have the same value for Profile. // // If you created any presets before AAC profiles were added, Elastic Transcoder // automatically updated your presets to use AAC-LC. You can change the value @@ -1708,6 +1768,30 @@ func (s AudioCodecOptions) GoString() string { return s.String() } +// SetBitDepth sets the BitDepth field's value. +func (s *AudioCodecOptions) SetBitDepth(v string) *AudioCodecOptions { + s.BitDepth = &v + return s +} + +// SetBitOrder sets the BitOrder field's value. +func (s *AudioCodecOptions) SetBitOrder(v string) *AudioCodecOptions { + s.BitOrder = &v + return s +} + +// SetProfile sets the Profile field's value. +func (s *AudioCodecOptions) SetProfile(v string) *AudioCodecOptions { + s.Profile = &v + return s +} + +// SetSigned sets the Signed field's value. +func (s *AudioCodecOptions) SetSigned(v string) *AudioCodecOptions { + s.Signed = &v + return s +} + // Parameters required for transcoding audio. type AudioParameters struct { _ struct{} `type:"structure"` @@ -1721,59 +1805,100 @@ type AudioParameters struct { // // SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks // - // When you specify SingleTrack, Elastic Transcoder creates a single track - // for your output. The track can have up to eight channels. Use SingleTrack - // for all non-mxf containers. + // When you specify SingleTrack, Elastic Transcoder creates a single track for + // your output. The track can have up to eight channels. Use SingleTrack for + // all non-mxf containers. // // The outputs of SingleTrack for a specific channel value and inputs are as // follows: // - // 0 channels with any input: Audio omitted from the output 1, 2, or auto - // channels with no audio input: Audio omitted from the output 1 channel with - // any input with audio: One track with one channel, downmixed if necessary - // 2 channels with one track with one channel: One track with two identical - // channels 2 or auto channels with two tracks with one channel each: One track - // with two channels 2 or auto channels with one track with two channels: One - // track with two channels 2 channels with one track with multiple channels: - // One track with two channels auto channels with one track with one channel: - // One track with one channel auto channels with one track with multiple channels: - // One track with multiple channels When you specify OneChannelPerTrack, Elastic - // Transcoder creates a new track for every channel in your output. Your output - // can have up to eight single-channel tracks. + // * 0 channels with any input: Audio omitted from the output + // + // * 1, 2, or auto channels with no audio input: Audio omitted from the output + // + // * 1 channel with any input with audio: One track with one channel, downmixed + // if necessary + // + // * 2 channels with one track with one channel: One track with two identical + // channels + // + // * 2 or auto channels with two tracks with one channel each: One track + // with two channels + // + // * 2 or auto channels with one track with two channels: One track with + // two channels + // + // * 2 channels with one track with multiple channels: One track with two + // channels + // + // * auto channels with one track with one channel: One track with one channel + // + // * auto channels with one track with multiple channels: One track with + // multiple channels + // + // When you specify OneChannelPerTrack, Elastic Transcoder creates a new track + // for every channel in your output. Your output can have up to eight single-channel + // tracks. // // The outputs of OneChannelPerTrack for a specific channel value and inputs // are as follows: // - // 0 channels with any input: Audio omitted from the output 1, 2, or auto - // channels with no audio input: Audio omitted from the output 1 channel with - // any input with audio: One track with one channel, downmixed if necessary - // 2 channels with one track with one channel: Two tracks with one identical - // channel each 2 or auto channels with two tracks with one channel each: Two - // tracks with one channel each 2 or auto channels with one track with two - // channels: Two tracks with one channel each 2 channels with one track with - // multiple channels: Two tracks with one channel each auto channels with one - // track with one channel: One track with one channel auto channels with one - // track with multiple channels: Up to eight tracks with one channel each When - // you specify OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates + // * 0 channels with any input: Audio omitted from the output + // + // * 1, 2, or auto channels with no audio input: Audio omitted from the output + // + // * 1 channel with any input with audio: One track with one channel, downmixed + // if necessary + // + // * 2 channels with one track with one channel: Two tracks with one identical + // channel each + // + // * 2 or auto channels with two tracks with one channel each: Two tracks + // with one channel each + // + // * 2 or auto channels with one track with two channels: Two tracks with + // one channel each + // + // * 2 channels with one track with multiple channels: Two tracks with one + // channel each + // + // * auto channels with one track with one channel: One track with one channel + // + // * auto channels with one track with multiple channels: Up to eight tracks + // with one channel each + // + // When you specify OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates // eight single-channel tracks for your output. All tracks that do not contain // audio data from an input channel are MOS, or Mit Out Sound, tracks. // // The outputs of OneChannelPerTrackWithMosTo8Tracks for a specific channel // value and inputs are as follows: // - // 0 channels with any input: Audio omitted from the output 1, 2, or auto - // channels with no audio input: Audio omitted from the output 1 channel with - // any input with audio: One track with one channel, downmixed if necessary, - // plus six MOS tracks 2 channels with one track with one channel: Two tracks - // with one identical channel each, plus six MOS tracks 2 or auto channels - // with two tracks with one channel each: Two tracks with one channel each, - // plus six MOS tracks 2 or auto channels with one track with two channels: - // Two tracks with one channel each, plus six MOS tracks 2 channels with one - // track with multiple channels: Two tracks with one channel each, plus six - // MOS tracks auto channels with one track with one channel: One track with - // one channel, plus seven MOS tracks auto channels with one track with multiple - // channels: Up to eight tracks with one channel each, plus MOS tracks until - // there are eight tracks in all + // * 0 channels with any input: Audio omitted from the output + // + // * 1, 2, or auto channels with no audio input: Audio omitted from the output + // + // * 1 channel with any input with audio: One track with one channel, downmixed + // if necessary, plus six MOS tracks + // + // * 2 channels with one track with one channel: Two tracks with one identical + // channel each, plus six MOS tracks + // + // * 2 or auto channels with two tracks with one channel each: Two tracks + // with one channel each, plus six MOS tracks + // + // * 2 or auto channels with one track with two channels: Two tracks with + // one channel each, plus six MOS tracks + // + // * 2 channels with one track with multiple channels: Two tracks with one + // channel each, plus six MOS tracks + // + // * auto channels with one track with one channel: One track with one channel, + // plus seven MOS tracks + // + // * auto channels with one track with multiple channels: Up to eight tracks + // with one channel each, plus MOS tracks until there are eight tracks in + // all AudioPackingMode *string `type:"string"` // The bit rate of the audio stream in the output file, in kilobits/second. @@ -1794,12 +1919,18 @@ type AudioParameters struct { // // The output of a specific channel value and inputs are as follows: // - // auto channel specified, with any input: Pass through up to eight input - // channels. 0 channels specified, with any input: Audio omitted from the output. - // 1 channel specified, with at least one input channel: Mono sound. 2 channels - // specified, with any input: Two identical mono channels or stereo. For more - // information about tracks, see Audio:AudioPackingMode. For more information - // about how Elastic Transcoder organizes channels and tracks, see Audio:AudioPackingMode. + // * auto channel specified, with any input: Pass through up to eight input + // channels. + // + // * 0 channels specified, with any input: Audio omitted from the output. + // + // * 1 channel specified, with at least one input channel: Mono sound. + // + // * 2 channels specified, with any input: Two identical mono channels or + // stereo. For more information about tracks, see Audio:AudioPackingMode. + // + // For more information about how Elastic Transcoder organizes channels and + // tracks, see Audio:AudioPackingMode. Channels *string `type:"string"` // The audio codec for the output file. Valid values include aac, flac, mp2, @@ -1835,14 +1966,50 @@ func (s AudioParameters) GoString() string { return s.String() } +// SetAudioPackingMode sets the AudioPackingMode field's value. +func (s *AudioParameters) SetAudioPackingMode(v string) *AudioParameters { + s.AudioPackingMode = &v + return s +} + +// SetBitRate sets the BitRate field's value. +func (s *AudioParameters) SetBitRate(v string) *AudioParameters { + s.BitRate = &v + return s +} + +// SetChannels sets the Channels field's value. +func (s *AudioParameters) SetChannels(v string) *AudioParameters { + s.Channels = &v + return s +} + +// SetCodec sets the Codec field's value. +func (s *AudioParameters) SetCodec(v string) *AudioParameters { + s.Codec = &v + return s +} + +// SetCodecOptions sets the CodecOptions field's value. +func (s *AudioParameters) SetCodecOptions(v *AudioCodecOptions) *AudioParameters { + s.CodecOptions = v + return s +} + +// SetSampleRate sets the SampleRate field's value. +func (s *AudioParameters) SetSampleRate(v string) *AudioParameters { + s.SampleRate = &v + return s +} + // The CancelJobRequest structure. type CancelJobInput struct { _ struct{} `type:"structure"` // The identifier of the job that you want to cancel. // - // To get a list of the jobs (including their jobId) that have a status of - // Submitted, use the ListJobsByStatus API action. + // To get a list of the jobs (including their jobId) that have a status of Submitted, + // use the ListJobsByStatus API action. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -1871,6 +2038,12 @@ func (s *CancelJobInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *CancelJobInput) SetId(v string) *CancelJobInput { + s.Id = &v + return s +} + // The response body contains a JSON object. If the job is successfully canceled, // the value of Success is true. type CancelJobOutput struct { @@ -1899,9 +2072,9 @@ type CaptionFormat struct { // The format you specify determines whether Elastic Transcoder generates an // embedded or sidecar caption for this output. // - // Valid Embedded Caption Formats: + // * Valid Embedded Caption Formats: // - // for FLAC: None + // for FLAC: None // // For MP3: None // @@ -1913,29 +2086,33 @@ type CaptionFormat struct { // // For webm: None // - // Valid Sidecar Caption Formats: Elastic Transcoder supports dfxp (first - // div element only), scc, srt, and webvtt. If you want ttml or smpte-tt compatible - // captions, specify dfxp as your output format. + // * Valid Sidecar Caption Formats: Elastic Transcoder supports dfxp (first + // div element only), scc, srt, and webvtt. If you want ttml or smpte-tt + // compatible captions, specify dfxp as your output format. // - // For FMP4: dfxp + // For FMP4: dfxp // // Non-FMP4 outputs: All sidecar types // - // fmp4 captions have an extension of .ismt + // fmp4 captions have an extension of .ismt Format *string `type:"string"` // The prefix for caption filenames, in the form description-{language}, where: // - // description is a description of the video. {language} is a literal value - // that Elastic Transcoder replaces with the two- or three-letter code for the - // language of the caption in the output file names. If you don't include {language} - // in the file name pattern, Elastic Transcoder automatically appends "{language}" - // to the value that you specify for the description. In addition, Elastic Transcoder - // automatically appends the count to the end of the segment files. + // * description is a description of the video. // - // For example, suppose you're transcoding into srt format. When you enter - // "Sydney-{language}-sunrise", and the language of the captions is English - // (en), the name of the first caption file will be Sydney-en-sunrise00000.srt. + // * {language} is a literal value that Elastic Transcoder replaces with + // the two- or three-letter code for the language of the caption in the output + // file names. + // + // If you don't include {language} in the file name pattern, Elastic Transcoder + // automatically appends "{language}" to the value that you specify for the + // description. In addition, Elastic Transcoder automatically appends the count + // to the end of the segment files. + // + // For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", + // and the language of the captions is English (en), the name of the first caption + // file is be Sydney-en-sunrise00000.srt. Pattern *string `type:"string"` } @@ -1949,13 +2126,32 @@ func (s CaptionFormat) GoString() string { return s.String() } +// SetEncryption sets the Encryption field's value. +func (s *CaptionFormat) SetEncryption(v *Encryption) *CaptionFormat { + s.Encryption = v + return s +} + +// SetFormat sets the Format field's value. +func (s *CaptionFormat) SetFormat(v string) *CaptionFormat { + s.Format = &v + return s +} + +// SetPattern sets the Pattern field's value. +func (s *CaptionFormat) SetPattern(v string) *CaptionFormat { + s.Pattern = &v + return s +} + // A source file for the input sidecar captions used during the transcoding // process. type CaptionSource struct { _ struct{} `type:"structure"` - // The encryption settings, if any, that you want Elastic Transcoder to apply - // to your caption sources. + // The encryption settings, if any, that Elastic Transcoder needs to decyrpt + // your caption sources, or that you want Elastic Transcoder to apply to your + // caption sources. Encryption *Encryption `type:"structure"` // The name of the sidecar caption file that you want Elastic Transcoder to @@ -1967,15 +2163,16 @@ type CaptionSource struct { // the captions. Label *string `min:"1" type:"string"` - // A string that specifies the language of the caption. Specify this as one - // of: + // A string that specifies the language of the caption. If you specified multiple + // inputs with captions, the caption language must match in order to be included + // in the output. Specify this as one of: // - // 2-character ISO 639-1 code + // * 2-character ISO 639-1 code // - // 3-character ISO 639-2 code + // * 3-character ISO 639-2 code // - // For more information on ISO language codes and language names, see the - // List of ISO 639-1 codes. + // For more information on ISO language codes and language names, see the List + // of ISO 639-1 codes. Language *string `min:"1" type:"string"` // For clip generation or captions that do not start at the same time as the @@ -2015,6 +2212,36 @@ func (s *CaptionSource) Validate() error { return nil } +// SetEncryption sets the Encryption field's value. +func (s *CaptionSource) SetEncryption(v *Encryption) *CaptionSource { + s.Encryption = v + return s +} + +// SetKey sets the Key field's value. +func (s *CaptionSource) SetKey(v string) *CaptionSource { + s.Key = &v + return s +} + +// SetLabel sets the Label field's value. +func (s *CaptionSource) SetLabel(v string) *CaptionSource { + s.Label = &v + return s +} + +// SetLanguage sets the Language field's value. +func (s *CaptionSource) SetLanguage(v string) *CaptionSource { + s.Language = &v + return s +} + +// SetTimeOffset sets the TimeOffset field's value. +func (s *CaptionSource) SetTimeOffset(v string) *CaptionSource { + s.TimeOffset = &v + return s +} + // The captions to be created, if any. type Captions struct { _ struct{} `type:"structure"` @@ -2025,27 +2252,28 @@ type Captions struct { // Source files for the input sidecar captions used during the transcoding process. // To omit all sidecar captions, leave CaptionSources blank. - CaptionSources []*CaptionSource `type:"list"` + CaptionSources []*CaptionSource `deprecated:"true" type:"list"` // A policy that determines how Elastic Transcoder handles the existence of // multiple captions. // - // MergeOverride: Elastic Transcoder transcodes both embedded and sidecar - // captions into outputs. If captions for a language are embedded in the input - // file and also appear in a sidecar file, Elastic Transcoder uses the sidecar - // captions and ignores the embedded captions for that language. + // * MergeOverride: Elastic Transcoder transcodes both embedded and sidecar + // captions into outputs. If captions for a language are embedded in the + // input file and also appear in a sidecar file, Elastic Transcoder uses + // the sidecar captions and ignores the embedded captions for that language. // - // MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions - // into outputs. If captions for a language are embedded in the input file and - // also appear in a sidecar file, Elastic Transcoder uses the embedded captions - // and ignores the sidecar captions for that language. If CaptionSources is - // empty, Elastic Transcoder omits all sidecar captions from the output files. + // * MergeRetain: Elastic Transcoder transcodes both embedded and sidecar + // captions into outputs. If captions for a language are embedded in the + // input file and also appear in a sidecar file, Elastic Transcoder uses + // the embedded captions and ignores the sidecar captions for that language. + // If CaptionSources is empty, Elastic Transcoder omits all sidecar captions + // from the output files. // - // Override: Elastic Transcoder transcodes only the sidecar captions that you - // specify in CaptionSources. + // * Override: Elastic Transcoder transcodes only the sidecar captions that + // you specify in CaptionSources. // - // MergePolicy cannot be null. - MergePolicy *string `type:"string"` + // MergePolicy cannot be null. + MergePolicy *string `deprecated:"true" type:"string"` } // String returns the string representation @@ -2078,10 +2306,28 @@ func (s *Captions) Validate() error { return nil } +// SetCaptionFormats sets the CaptionFormats field's value. +func (s *Captions) SetCaptionFormats(v []*CaptionFormat) *Captions { + s.CaptionFormats = v + return s +} + +// SetCaptionSources sets the CaptionSources field's value. +func (s *Captions) SetCaptionSources(v []*CaptionSource) *Captions { + s.CaptionSources = v + return s +} + +// SetMergePolicy sets the MergePolicy field's value. +func (s *Captions) SetMergePolicy(v string) *Captions { + s.MergePolicy = &v + return s +} + // Settings for one clip in a composition. All jobs in a playlist must have // the same clip settings. type Clip struct { - _ struct{} `type:"structure"` + _ struct{} `deprecated:"true" type:"structure"` // Settings that determine when a clip begins and how long it lasts. TimeSpan *TimeSpan `type:"structure"` @@ -2097,17 +2343,27 @@ func (s Clip) GoString() string { return s.String() } +// SetTimeSpan sets the TimeSpan field's value. +func (s *Clip) SetTimeSpan(v *TimeSpan) *Clip { + s.TimeSpan = v + return s +} + // The CreateJobRequest structure. type CreateJobInput struct { _ struct{} `type:"structure"` // A section of the request body that provides information about the file that // is being transcoded. - // - // Input is a required field - Input *JobInput `type:"structure" required:"true"` + Input *JobInput `type:"structure"` - // The CreateJobOutput structure. + // A section of the request body that provides information about the files that + // are being transcoded. + Inputs []*JobInput `type:"list"` + + // A section of the request body that provides information about the transcoded + // (target) file. We strongly recommend that you use the Outputs syntax instead + // of the Output syntax. Output *CreateJobOutput `type:"structure"` // The value, if any, that you want Elastic Transcoder to prepend to the names @@ -2138,7 +2394,7 @@ type CreateJobInput struct { // User-defined metadata that you want to associate with an Elastic Transcoder // job. You specify metadata in key/value pairs, and you can add up to 10 key/value // pairs per job. Elastic Transcoder does not guarantee that key/value pairs - // will be returned in the same order in which you specify them. + // are returned in the same order in which you specify them. UserMetadata map[string]*string `type:"map"` } @@ -2155,9 +2411,6 @@ func (s CreateJobInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"} - if s.Input == nil { - invalidParams.Add(request.NewErrParamRequired("Input")) - } if s.OutputKeyPrefix != nil && len(*s.OutputKeyPrefix) < 1 { invalidParams.Add(request.NewErrParamMinLen("OutputKeyPrefix", 1)) } @@ -2169,6 +2422,16 @@ func (s *CreateJobInput) Validate() error { invalidParams.AddNested("Input", err.(request.ErrInvalidParams)) } } + if s.Inputs != nil { + for i, v := range s.Inputs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Inputs", i), err.(request.ErrInvalidParams)) + } + } + } if s.Output != nil { if err := s.Output.Validate(); err != nil { invalidParams.AddNested("Output", err.(request.ErrInvalidParams)) @@ -2201,6 +2464,54 @@ func (s *CreateJobInput) Validate() error { return nil } +// SetInput sets the Input field's value. +func (s *CreateJobInput) SetInput(v *JobInput) *CreateJobInput { + s.Input = v + return s +} + +// SetInputs sets the Inputs field's value. +func (s *CreateJobInput) SetInputs(v []*JobInput) *CreateJobInput { + s.Inputs = v + return s +} + +// SetOutput sets the Output field's value. +func (s *CreateJobInput) SetOutput(v *CreateJobOutput) *CreateJobInput { + s.Output = v + return s +} + +// SetOutputKeyPrefix sets the OutputKeyPrefix field's value. +func (s *CreateJobInput) SetOutputKeyPrefix(v string) *CreateJobInput { + s.OutputKeyPrefix = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *CreateJobInput) SetOutputs(v []*CreateJobOutput) *CreateJobInput { + s.Outputs = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *CreateJobInput) SetPipelineId(v string) *CreateJobInput { + s.PipelineId = &v + return s +} + +// SetPlaylists sets the Playlists field's value. +func (s *CreateJobInput) SetPlaylists(v []*CreateJobPlaylist) *CreateJobInput { + s.Playlists = v + return s +} + +// SetUserMetadata sets the UserMetadata field's value. +func (s *CreateJobInput) SetUserMetadata(v map[string]*string) *CreateJobInput { + s.UserMetadata = v + return s +} + // The CreateJobOutput structure. type CreateJobOutput struct { _ struct{} `type:"structure"` @@ -2215,30 +2526,30 @@ type CreateJobOutput struct { // from one format to another. All captions must be in UTF-8. Elastic Transcoder // supports two types of captions: // - // Embedded: Embedded captions are included in the same file as the audio - // and video. Elastic Transcoder supports only one embedded caption per language, - // to a maximum of 300 embedded captions per file. + // * Embedded: Embedded captions are included in the same file as the audio + // and video. Elastic Transcoder supports only one embedded caption per language, + // to a maximum of 300 embedded captions per file. // // Valid input values include: CEA-608 (EIA-608, first non-empty channel only), - // CEA-708 (EIA-708, first non-empty channel only), and mov-text + // CEA-708 (EIA-708, first non-empty channel only), and mov-text // // Valid outputs include: mov-text // // Elastic Transcoder supports a maximum of one embedded format per output. // - // Sidecar: Sidecar captions are kept in a separate metadata file from the - // audio and video data. Sidecar captions require a player that is capable of - // understanding the relationship between the video file and the sidecar file. - // Elastic Transcoder supports only one sidecar caption per language, to a maximum - // of 20 sidecar captions per file. + // * Sidecar: Sidecar captions are kept in a separate metadata file from + // the audio and video data. Sidecar captions require a player that is capable + // of understanding the relationship between the video file and the sidecar + // file. Elastic Transcoder supports only one sidecar caption per language, + // to a maximum of 20 sidecar captions per file. // - // Valid input values include: dfxp (first div element only), ebu-tt, scc, - // smpt, srt, ttml (first div element only), and webvtt + // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, + // srt, ttml (first div element only), and webvtt // // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt. // - // If you want ttml or smpte-tt compatible captions, specify dfxp as your - // output format. + // If you want ttml or smpte-tt compatible captions, specify dfxp as your output + // format. // // Elastic Transcoder does not support OCR (Optical Character Recognition), // does not accept pictures as a valid input for captions, and is not available @@ -2260,7 +2571,7 @@ type CreateJobOutput struct { // of the file. The Composition object contains settings for the clips that // make up an output file. For the current release, you can only specify settings // for a single clip per output file. The Composition object cannot be null. - Composition []*Clip `type:"list"` + Composition []*Clip `deprecated:"true" type:"list"` // You can specify encryption settings for any output files that you want to // use for a transcoding job. This includes the output file and any watermarks, @@ -2284,13 +2595,14 @@ type CreateJobOutput struct { // transcoding contains rotation metadata. Rotate *string `type:"string"` - // (Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset - // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or - // ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment - // in seconds. For HLSv3 format playlists, each media segment is stored in a - // separate .ts file. For HLSv4 and Smooth playlists, all media segments for - // an output are stored in a single file. Each segment is approximately the - // length of the SegmentDuration, though individual segments might be shorter + // (Outputs in Fragmented MP4 or MPEG-TS format only. + // + // If you specify a preset in PresetId for which the value of Container is fmp4 + // (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration + // of each segment in seconds. For HLSv3 format playlists, each media segment + // is stored in a separate .ts file. For HLSv4 and Smooth playlists, all media + // segments for an output are stored in a single file. Each segment is approximately + // the length of the SegmentDuration, though individual segments might be shorter // or longer. // // The range of valid values is 1 to 60 seconds. If the duration of the video @@ -2311,27 +2623,29 @@ type CreateJobOutput struct { // // If you don't want Elastic Transcoder to create thumbnails, specify "". // - // If you do want Elastic Transcoder to create thumbnails, specify the information + // If you do want Elastic Transcoder to create thumbnails, specify the information // that you want to include in the file name for each thumbnail. You can specify // the following values in any sequence: // - // {count} (Required): If you want to create thumbnails, you must include - // {count} in the ThumbnailPattern object. Wherever you specify {count}, Elastic - // Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail - // file names. The number indicates where a given thumbnail appears in the sequence - // of thumbnails for a transcoded file. + // * {count} (Required): If you want to create thumbnails, you must include + // {count} in the ThumbnailPattern object. Wherever you specify {count}, + // Elastic Transcoder adds a five-digit sequence number (beginning with 00001) + // to thumbnail file names. The number indicates where a given thumbnail + // appears in the sequence of thumbnails for a transcoded file. // // If you specify a literal value and/or {resolution} but you omit {count}, - // Elastic Transcoder returns a validation error and does not create the job. - // Literal values (Optional): You can specify literal values anywhere in - // the ThumbnailPattern object. For example, you can include them as a file - // name prefix or as a delimiter between {resolution} and {count}. + // Elastic Transcoder returns a validation error and does not create the + // job. // - // {resolution} (Optional): If you want Elastic Transcoder to include the - // resolution in the file name, include {resolution} in the ThumbnailPattern - // object. + // * Literal values (Optional): You can specify literal values anywhere in + // the ThumbnailPattern object. For example, you can include them as a file + // name prefix or as a delimiter between {resolution} and {count}. // - // When creating thumbnails, Elastic Transcoder automatically saves the files + // * {resolution} (Optional): If you want Elastic Transcoder to include the + // resolution in the file name, include {resolution} in the ThumbnailPattern + // object. + // + // When creating thumbnails, Elastic Transcoder automatically saves the files // in the format (.jpg or .png) that appears in the preset that you specified // in the PresetID value of CreateJobOutput. Elastic Transcoder also appends // the applicable file name extension. @@ -2387,6 +2701,72 @@ func (s *CreateJobOutput) Validate() error { return nil } +// SetAlbumArt sets the AlbumArt field's value. +func (s *CreateJobOutput) SetAlbumArt(v *JobAlbumArt) *CreateJobOutput { + s.AlbumArt = v + return s +} + +// SetCaptions sets the Captions field's value. +func (s *CreateJobOutput) SetCaptions(v *Captions) *CreateJobOutput { + s.Captions = v + return s +} + +// SetComposition sets the Composition field's value. +func (s *CreateJobOutput) SetComposition(v []*Clip) *CreateJobOutput { + s.Composition = v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *CreateJobOutput) SetEncryption(v *Encryption) *CreateJobOutput { + s.Encryption = v + return s +} + +// SetKey sets the Key field's value. +func (s *CreateJobOutput) SetKey(v string) *CreateJobOutput { + s.Key = &v + return s +} + +// SetPresetId sets the PresetId field's value. +func (s *CreateJobOutput) SetPresetId(v string) *CreateJobOutput { + s.PresetId = &v + return s +} + +// SetRotate sets the Rotate field's value. +func (s *CreateJobOutput) SetRotate(v string) *CreateJobOutput { + s.Rotate = &v + return s +} + +// SetSegmentDuration sets the SegmentDuration field's value. +func (s *CreateJobOutput) SetSegmentDuration(v string) *CreateJobOutput { + s.SegmentDuration = &v + return s +} + +// SetThumbnailEncryption sets the ThumbnailEncryption field's value. +func (s *CreateJobOutput) SetThumbnailEncryption(v *Encryption) *CreateJobOutput { + s.ThumbnailEncryption = v + return s +} + +// SetThumbnailPattern sets the ThumbnailPattern field's value. +func (s *CreateJobOutput) SetThumbnailPattern(v string) *CreateJobOutput { + s.ThumbnailPattern = &v + return s +} + +// SetWatermarks sets the Watermarks field's value. +func (s *CreateJobOutput) SetWatermarks(v []*JobWatermark) *CreateJobOutput { + s.Watermarks = v + return s +} + // Information about the master playlist. type CreateJobPlaylist struct { _ struct{} `type:"structure"` @@ -2405,33 +2785,33 @@ type CreateJobPlaylist struct { // you create more than one master playlist, the values of all Name objects // must be unique. // - // Note: Elastic Transcoder automatically appends the relevant file extension - // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc - // for Smooth playlists). If you include a file extension in Name, the file - // name will have two extensions. + // Elastic Transcoder automatically appends the relevant file extension to the + // file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc for Smooth + // playlists). If you include a file extension in Name, the file name will have + // two extensions. Name *string `min:"1" type:"string"` // For each output in this job that you want to include in a master playlist, // the value of the Outputs:Key object. // - // If your output is not HLS or does not have a segment duration set, the - // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key: + // * If your output is not HLS or does not have a segment duration set, the + // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key: // // OutputKeyPrefixOutputs:Key // - // If your output is HLSv3 and has a segment duration set, or is not included - // in a playlist, Elastic Transcoder creates an output playlist file with a - // file extension of .m3u8, and a series of .ts files that include a five-digit - // sequential counter beginning with 00000: + // * If your output is HLSv3 and has a segment duration set, or is not included + // in a playlist, Elastic Transcoder creates an output playlist file with + // a file extension of .m3u8, and a series of .ts files that include a five-digit + // sequential counter beginning with 00000: // // OutputKeyPrefixOutputs:Key.m3u8 // // OutputKeyPrefixOutputs:Key00000.ts // - // If your output is HLSv4, has a segment duration set, and is included in - // an HLSv4 playlist, Elastic Transcoder creates an output playlist file with - // a file extension of _v4.m3u8. If the output is video, Elastic Transcoder - // also creates an output file with an extension of _iframe.m3u8: + // * If your output is HLSv4, has a segment duration set, and is included + // in an HLSv4 playlist, Elastic Transcoder creates an output playlist file + // with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder + // also creates an output file with an extension of _iframe.m3u8: // // OutputKeyPrefixOutputs:Key_v4.m3u8 // @@ -2439,15 +2819,14 @@ type CreateJobPlaylist struct { // // OutputKeyPrefixOutputs:Key.ts // - // Elastic Transcoder automatically appends the relevant file extension to - // the file name. If you include a file extension in Output Key, the file name - // will have two extensions. + // Elastic Transcoder automatically appends the relevant file extension to the + // file name. If you include a file extension in Output Key, the file name will + // have two extensions. // - // If you include more than one output in a playlist, any segment duration - // settings, clip settings, or caption settings must be the same for all outputs - // in the playlist. For Smooth playlists, the Audio:Profile, Video:Profile, - // and Video:FrameRate to Video:KeyframesMaxDist ratio must be the same for - // all outputs. + // If you include more than one output in a playlist, any segment duration settings, + // clip settings, or caption settings must be the same for all outputs in the + // playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate + // to Video:KeyframesMaxDist ratio must be the same for all outputs. OutputKeys []*string `type:"list"` // The DRM settings, if any, that you want Elastic Transcoder to apply to the @@ -2483,6 +2862,36 @@ func (s *CreateJobPlaylist) Validate() error { return nil } +// SetFormat sets the Format field's value. +func (s *CreateJobPlaylist) SetFormat(v string) *CreateJobPlaylist { + s.Format = &v + return s +} + +// SetHlsContentProtection sets the HlsContentProtection field's value. +func (s *CreateJobPlaylist) SetHlsContentProtection(v *HlsContentProtection) *CreateJobPlaylist { + s.HlsContentProtection = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateJobPlaylist) SetName(v string) *CreateJobPlaylist { + s.Name = &v + return s +} + +// SetOutputKeys sets the OutputKeys field's value. +func (s *CreateJobPlaylist) SetOutputKeys(v []*string) *CreateJobPlaylist { + s.OutputKeys = v + return s +} + +// SetPlayReadyDrm sets the PlayReadyDrm field's value. +func (s *CreateJobPlaylist) SetPlayReadyDrm(v *PlayReadyDrm) *CreateJobPlaylist { + s.PlayReadyDrm = v + return s +} + // The CreateJobResponse structure. type CreateJobResponse struct { _ struct{} `type:"structure"` @@ -2502,6 +2911,12 @@ func (s CreateJobResponse) GoString() string { return s.String() } +// SetJob sets the Job field's value. +func (s *CreateJobResponse) SetJob(v *Job) *CreateJobResponse { + s.Job = v + return s +} + // The CreatePipelineRequest structure. type CreatePipelineInput struct { _ struct{} `type:"structure"` @@ -2528,39 +2943,59 @@ type CreatePipelineInput struct { // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket // object. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // transcoded files and playlists. Permissions (Optional): The Permissions object - // specifies which users you want to have access to transcoded files and the - // type of access you want them to have. You can grant permissions to a maximum - // of 30 users and/or predefined Amazon S3 groups. Grantee Type: Specify the - // type of value that appears in the Grantee object: Canonical: The value in - // the Grantee object is either the canonical user ID for an AWS account or - // an origin access identity for an Amazon CloudFront distribution. For more - // information about canonical user IDs, see Access Control List (ACL) Overview - // in the Amazon Simple Storage Service Developer Guide. For more information - // about using CloudFront origin access identities to require that users use - // CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity - // to Restrict Access to Your Amazon S3 Content. A canonical user ID is not - // the same as an AWS account number. Email: The value in the Grantee object - // is the registered email address of an AWS account. Group: The value in the - // Grantee object is one of the following predefined Amazon S3 groups: AllUsers, - // AuthenticatedUsers, or LogDelivery. Grantee: The AWS user or group that - // you want to have access to transcoded files and playlists. To identify the - // user or group, you can specify the canonical user ID for an AWS account, - // an origin access identity for a CloudFront distribution, the registered email - // address of an AWS account, or a predefined Amazon S3 group Access: The - // permission that you want to give to the AWS user that you specified in Grantee. - // Permissions are granted on the files that Elastic Transcoder adds to the - // bucket, including playlists and video files. Valid values include: READ: - // The grantee can read the objects and metadata for objects that Elastic Transcoder - // adds to the Amazon S3 bucket. READ_ACP: The grantee can read the object ACL - // for objects that Elastic Transcoder adds to the Amazon S3 bucket. WRITE_ACP: - // The grantee can write the ACL for the objects that Elastic Transcoder adds - // to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, READ_ACP, and - // WRITE_ACP permissions for the objects that Elastic Transcoder adds to the - // Amazon S3 bucket. StorageClass: The Amazon S3 storage class, Standard - // or ReducedRedundancy, that you want Elastic Transcoder to assign to the video - // files and playlists that it stores in your Amazon S3 bucket. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save transcoded files and playlists. + // + // * Permissions (Optional): The Permissions object specifies which users + // you want to have access to transcoded files and the type of access you + // want them to have. You can grant permissions to a maximum of 30 users + // and/or predefined Amazon S3 groups. + // + // * Grantee Type: Specify the type of value that appears in the Grantee + // object: + // + // Canonical: The value in the Grantee object is either the canonical user ID + // for an AWS account or an origin access identity for an Amazon CloudFront + // distribution. For more information about canonical user IDs, see Access + // Control List (ACL) Overview in the Amazon Simple Storage Service Developer + // Guide. For more information about using CloudFront origin access identities + // to require that users use CloudFront URLs instead of Amazon S3 URLs, see + // Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content. + // + // A canonical user ID is not the same as an AWS account number. + // + // Email: The value in the Grantee object is the registered email address of + // an AWS account. + // + // Group: The value in the Grantee object is one of the following predefined + // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. + // + // * Grantee: The AWS user or group that you want to have access to transcoded + // files and playlists. To identify the user or group, you can specify the + // canonical user ID for an AWS account, an origin access identity for a + // CloudFront distribution, the registered email address of an AWS account, + // or a predefined Amazon S3 group + // + // * Access: The permission that you want to give to the AWS user that you + // specified in Grantee. Permissions are granted on the files that Elastic + // Transcoder adds to the bucket, including playlists and video files. Valid + // values include: + // + // READ: The grantee can read the objects and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the objects that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the video files and playlists + // that it stores in your Amazon S3 bucket. ContentConfig *PipelineOutputConfig `type:"structure"` // The Amazon S3 bucket in which you saved the media files that you want to @@ -2581,34 +3016,49 @@ type CreatePipelineInput struct { // notify to report job status. // // To receive notifications, you must also subscribe to the new topic in the - // Amazon SNS console. Progressing: The topic ARN for the Amazon Simple Notification - // Service (Amazon SNS) topic that you want to notify when Elastic Transcoder - // has started to process a job in this pipeline. This is the ARN that Amazon - // SNS returned when you created the topic. For more information, see Create - // a Topic in the Amazon Simple Notification Service Developer Guide. Completed: - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic - // Transcoder has finished processing a job in this pipeline. This is the ARN - // that Amazon SNS returned when you created the topic. Warning: The topic ARN - // for the Amazon SNS topic that you want to notify when Elastic Transcoder - // encounters a warning condition while processing a job in this pipeline. This - // is the ARN that Amazon SNS returned when you created the topic. Error: The - // topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder - // encounters an error condition while processing a job in this pipeline. This - // is the ARN that Amazon SNS returned when you created the topic. + // Amazon SNS console. + // + // * Progressing: The topic ARN for the Amazon Simple Notification Service + // (Amazon SNS) topic that you want to notify when Elastic Transcoder has + // started to process a job in this pipeline. This is the ARN that Amazon + // SNS returned when you created the topic. For more information, see Create + // a Topic in the Amazon Simple Notification Service Developer Guide. + // + // * Completed: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder has finished processing a job in this pipeline. + // This is the ARN that Amazon SNS returned when you created the topic. + // + // * Warning: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters a warning condition while processing + // a job in this pipeline. This is the ARN that Amazon SNS returned when + // you created the topic. + // + // * Error: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters an error condition while processing + // a job in this pipeline. This is the ARN that Amazon SNS returned when + // you created the topic. Notifications *Notifications `type:"structure"` // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded // files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.) // - // Specify this value when all of the following are true: You want to save - // transcoded files, thumbnails (if any), and playlists (if any) together in - // one bucket. You do not want to specify the users or groups who have access - // to the transcoded files, thumbnails, and playlists. You do not want to specify - // the permissions that Elastic Transcoder grants to the files. When Elastic - // Transcoder saves files in OutputBucket, it grants full control over the files - // only to the AWS account that owns the role that is specified by Role. You - // want to associate the transcoded files and thumbnails with the Amazon S3 - // Standard storage class. + // Specify this value when all of the following are true: + // + // * You want to save transcoded files, thumbnails (if any), and playlists + // (if any) together in one bucket. + // + // * You do not want to specify the users or groups who have access to the + // transcoded files, thumbnails, and playlists. + // + // * You do not want to specify the permissions that Elastic Transcoder grants + // to the files. + // + // When Elastic Transcoder saves files in OutputBucket, it grants full control + // over the files only to the AWS account that owns the role that is specified + // by Role. + // + // * You want to associate the transcoded files and thumbnails with the Amazon + // S3 Standard storage class. // // If you want to save transcoded files and playlists in one bucket and thumbnails // in another bucket, specify which users can access the transcoded files or @@ -2633,34 +3083,54 @@ type CreatePipelineInput struct { // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket // object. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // thumbnail files. Permissions (Optional): The Permissions object specifies - // which users and/or predefined Amazon S3 groups you want to have access to - // thumbnail files, and the type of access you want them to have. You can grant - // permissions to a maximum of 30 users and/or predefined Amazon S3 groups. - // GranteeType: Specify the type of value that appears in the Grantee object: - // Canonical: The value in the Grantee object is either the canonical user - // ID for an AWS account or an origin access identity for an Amazon CloudFront - // distribution. A canonical user ID is not the same as an AWS account number. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save thumbnail files. + // + // * Permissions (Optional): The Permissions object specifies which users + // and/or predefined Amazon S3 groups you want to have access to thumbnail + // files, and the type of access you want them to have. You can grant permissions + // to a maximum of 30 users and/or predefined Amazon S3 groups. + // + // * GranteeType: Specify the type of value that appears in the Grantee object: + // + // + // Canonical: The value in the Grantee object is either the canonical user ID + // for an AWS account or an origin access identity for an Amazon CloudFront + // distribution. + // + // A canonical user ID is not the same as an AWS account number. + // // Email: The value in the Grantee object is the registered email address of - // an AWS account. Group: The value in the Grantee object is one of the following - // predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. - // Grantee: The AWS user or group that you want to have access to thumbnail - // files. To identify the user or group, you can specify the canonical user - // ID for an AWS account, an origin access identity for a CloudFront distribution, - // the registered email address of an AWS account, or a predefined Amazon S3 - // group. Access: The permission that you want to give to the AWS user that - // you specified in Grantee. Permissions are granted on the thumbnail files - // that Elastic Transcoder adds to the bucket. Valid values include: READ: - // The grantee can read the thumbnails and metadata for objects that Elastic - // Transcoder adds to the Amazon S3 bucket. READ_ACP: The grantee can read the - // object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. - // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic - // Transcoder adds to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, - // READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder - // adds to the Amazon S3 bucket. StorageClass: The Amazon S3 storage class, - // Standard or ReducedRedundancy, that you want Elastic Transcoder to assign - // to the thumbnails that it stores in your Amazon S3 bucket. + // an AWS account. + // + // Group: The value in the Grantee object is one of the following predefined + // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. + // + // * Grantee: The AWS user or group that you want to have access to thumbnail + // files. To identify the user or group, you can specify the canonical user + // ID for an AWS account, an origin access identity for a CloudFront distribution, + // the registered email address of an AWS account, or a predefined Amazon + // S3 group. + // + // * Access: The permission that you want to give to the AWS user that you + // specified in Grantee. Permissions are granted on the thumbnail files that + // Elastic Transcoder adds to the bucket. Valid values include: + // + // READ: The grantee can read the thumbnails and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the thumbnails that it stores + // in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` } @@ -2706,6 +3176,54 @@ func (s *CreatePipelineInput) Validate() error { return nil } +// SetAwsKmsKeyArn sets the AwsKmsKeyArn field's value. +func (s *CreatePipelineInput) SetAwsKmsKeyArn(v string) *CreatePipelineInput { + s.AwsKmsKeyArn = &v + return s +} + +// SetContentConfig sets the ContentConfig field's value. +func (s *CreatePipelineInput) SetContentConfig(v *PipelineOutputConfig) *CreatePipelineInput { + s.ContentConfig = v + return s +} + +// SetInputBucket sets the InputBucket field's value. +func (s *CreatePipelineInput) SetInputBucket(v string) *CreatePipelineInput { + s.InputBucket = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePipelineInput) SetName(v string) *CreatePipelineInput { + s.Name = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *CreatePipelineInput) SetNotifications(v *Notifications) *CreatePipelineInput { + s.Notifications = v + return s +} + +// SetOutputBucket sets the OutputBucket field's value. +func (s *CreatePipelineInput) SetOutputBucket(v string) *CreatePipelineInput { + s.OutputBucket = &v + return s +} + +// SetRole sets the Role field's value. +func (s *CreatePipelineInput) SetRole(v string) *CreatePipelineInput { + s.Role = &v + return s +} + +// SetThumbnailConfig sets the ThumbnailConfig field's value. +func (s *CreatePipelineInput) SetThumbnailConfig(v *PipelineOutputConfig) *CreatePipelineInput { + s.ThumbnailConfig = v + return s +} + // When you create a pipeline, Elastic Transcoder returns the values that you // specified in the request. type CreatePipelineOutput struct { @@ -2734,6 +3252,18 @@ func (s CreatePipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *CreatePipelineOutput) SetPipeline(v *Pipeline) *CreatePipelineOutput { + s.Pipeline = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *CreatePipelineOutput) SetWarnings(v []*Warning) *CreatePipelineOutput { + s.Warnings = v + return s +} + // The CreatePresetRequest structure. type CreatePresetInput struct { _ struct{} `type:"structure"` @@ -2798,6 +3328,42 @@ func (s *CreatePresetInput) Validate() error { return nil } +// SetAudio sets the Audio field's value. +func (s *CreatePresetInput) SetAudio(v *AudioParameters) *CreatePresetInput { + s.Audio = v + return s +} + +// SetContainer sets the Container field's value. +func (s *CreatePresetInput) SetContainer(v string) *CreatePresetInput { + s.Container = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreatePresetInput) SetDescription(v string) *CreatePresetInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePresetInput) SetName(v string) *CreatePresetInput { + s.Name = &v + return s +} + +// SetThumbnails sets the Thumbnails field's value. +func (s *CreatePresetInput) SetThumbnails(v *Thumbnails) *CreatePresetInput { + s.Thumbnails = v + return s +} + +// SetVideo sets the Video field's value. +func (s *CreatePresetInput) SetVideo(v *VideoParameters) *CreatePresetInput { + s.Video = v + return s +} + // The CreatePresetResponse structure. type CreatePresetOutput struct { _ struct{} `type:"structure"` @@ -2823,6 +3389,18 @@ func (s CreatePresetOutput) GoString() string { return s.String() } +// SetPreset sets the Preset field's value. +func (s *CreatePresetOutput) SetPreset(v *Preset) *CreatePresetOutput { + s.Preset = v + return s +} + +// SetWarning sets the Warning field's value. +func (s *CreatePresetOutput) SetWarning(v string) *CreatePresetOutput { + s.Warning = &v + return s +} + // The DeletePipelineRequest structure. type DeletePipelineInput struct { _ struct{} `type:"structure"` @@ -2856,6 +3434,12 @@ func (s *DeletePipelineInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeletePipelineInput) SetId(v string) *DeletePipelineInput { + s.Id = &v + return s +} + // The DeletePipelineResponse structure. type DeletePipelineOutput struct { _ struct{} `type:"structure"` @@ -2904,6 +3488,12 @@ func (s *DeletePresetInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeletePresetInput) SetId(v string) *DeletePresetInput { + s.Id = &v + return s +} + // The DeletePresetResponse structure. type DeletePresetOutput struct { _ struct{} `type:"structure"` @@ -2950,9 +3540,39 @@ func (s DetectedProperties) GoString() string { return s.String() } +// SetDurationMillis sets the DurationMillis field's value. +func (s *DetectedProperties) SetDurationMillis(v int64) *DetectedProperties { + s.DurationMillis = &v + return s +} + +// SetFileSize sets the FileSize field's value. +func (s *DetectedProperties) SetFileSize(v int64) *DetectedProperties { + s.FileSize = &v + return s +} + +// SetFrameRate sets the FrameRate field's value. +func (s *DetectedProperties) SetFrameRate(v string) *DetectedProperties { + s.FrameRate = &v + return s +} + +// SetHeight sets the Height field's value. +func (s *DetectedProperties) SetHeight(v int64) *DetectedProperties { + s.Height = &v + return s +} + +// SetWidth sets the Width field's value. +func (s *DetectedProperties) SetWidth(v int64) *DetectedProperties { + s.Width = &v + return s +} + // The encryption settings, if any, that are used for decrypting your input // files or encrypting your output files. If your input file is encrypted, you -// must specify the mode that Elastic Transcoder will use to decrypt your file, +// must specify the mode that Elastic Transcoder uses to decrypt your file, // otherwise you must specify the mode you want Elastic Transcoder to use to // encrypt your output files. type Encryption struct { @@ -2986,32 +3606,33 @@ type Encryption struct { // to use when decrypting your input files or encrypting your output files. // Elastic Transcoder supports the following options: // - // S3: Amazon S3 creates and manages the keys used for encrypting your files. + // * S3: Amazon S3 creates and manages the keys used for encrypting your + // files. // - // S3-AWS-KMS: Amazon S3 calls the Amazon Key Management Service, which creates - // and manages the keys that are used for encrypting your files. If you specify - // S3-AWS-KMS and you don't want to use the default key, you must add the AWS-KMS - // key that you want to use to your pipeline. + // * S3-AWS-KMS: Amazon S3 calls the Amazon Key Management Service, which + // creates and manages the keys that are used for encrypting your files. + // If you specify S3-AWS-KMS and you don't want to use the default key, you + // must add the AWS-KMS key that you want to use to your pipeline. // - // AES-CBC-PKCS7: A padded cipher-block mode of operation originally used for - // HLS files. + // * AES-CBC-PKCS7: A padded cipher-block mode of operation originally used + // for HLS files. // - // AES-CTR: AES Counter Mode. + // * AES-CTR: AES Counter Mode. // - // AES-GCM: AES Galois Counter Mode, a mode of operation that is an authenticated - // encryption format, meaning that a file, key, or initialization vector that - // has been tampered with will fail the decryption process. + // * AES-GCM: AES Galois Counter Mode, a mode of operation that is an authenticated + // encryption format, meaning that a file, key, or initialization vector + // that has been tampered with fails the decryption process. // - // For all three AES options, you must provide the following settings, which + // For all three AES options, you must provide the following settings, which // must be base64-encoded: // - // Key + // * Key // - // Key MD5 + // * Key MD5 // - // Initialization Vector + // * Initialization Vector // - // For the AES modes, your private encryption keys and your unencrypted data + // For the AES modes, your private encryption keys and your unencrypted data // are never stored by AWS; therefore, it is important that you safely manage // your encryption keys. If you lose them, you won't be able to unencrypt your // data. @@ -3028,6 +3649,30 @@ func (s Encryption) GoString() string { return s.String() } +// SetInitializationVector sets the InitializationVector field's value. +func (s *Encryption) SetInitializationVector(v string) *Encryption { + s.InitializationVector = &v + return s +} + +// SetKey sets the Key field's value. +func (s *Encryption) SetKey(v string) *Encryption { + s.Key = &v + return s +} + +// SetKeyMd5 sets the KeyMd5 field's value. +func (s *Encryption) SetKeyMd5(v string) *Encryption { + s.KeyMd5 = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *Encryption) SetMode(v string) *Encryption { + s.Mode = &v + return s +} + // The HLS content protection settings, if any, that you want Elastic Transcoder // to apply to your output files. type HlsContentProtection struct { @@ -3036,8 +3681,8 @@ type HlsContentProtection struct { // If Elastic Transcoder is generating your key for you, you must leave this // field blank. // - // The series of random bits created by a random bit generator, unique for - // every encryption operation, that you want Elastic Transcoder to use to encrypt + // The series of random bits created by a random bit generator, unique for every + // encryption operation, that you want Elastic Transcoder to use to encrypt // your output files. The initialization vector must be base64-encoded, and // it must be exactly 16 bytes before being base64-encoded. InitializationVector *string `type:"string"` @@ -3045,8 +3690,8 @@ type HlsContentProtection struct { // If you want Elastic Transcoder to generate a key for you, leave this field // blank. // - // If you choose to supply your own key, you must encrypt the key by using - // AWS KMS. The key must be base64-encoded, and it must be one of the following + // If you choose to supply your own key, you must encrypt the key by using AWS + // KMS. The key must be base64-encoded, and it must be one of the following // bit lengths before being base64-encoded: // // 128, 192, or 256. @@ -3074,7 +3719,7 @@ type HlsContentProtection struct { // The content protection method for your output. The only valid value is: aes-128. // - // This value will be written into the method attribute of the EXT-X-KEY metadata + // This value is written into the method attribute of the EXT-X-KEY metadata // tag in the output playlist. Method *string `type:"string"` } @@ -3089,6 +3734,114 @@ func (s HlsContentProtection) GoString() string { return s.String() } +// SetInitializationVector sets the InitializationVector field's value. +func (s *HlsContentProtection) SetInitializationVector(v string) *HlsContentProtection { + s.InitializationVector = &v + return s +} + +// SetKey sets the Key field's value. +func (s *HlsContentProtection) SetKey(v string) *HlsContentProtection { + s.Key = &v + return s +} + +// SetKeyMd5 sets the KeyMd5 field's value. +func (s *HlsContentProtection) SetKeyMd5(v string) *HlsContentProtection { + s.KeyMd5 = &v + return s +} + +// SetKeyStoragePolicy sets the KeyStoragePolicy field's value. +func (s *HlsContentProtection) SetKeyStoragePolicy(v string) *HlsContentProtection { + s.KeyStoragePolicy = &v + return s +} + +// SetLicenseAcquisitionUrl sets the LicenseAcquisitionUrl field's value. +func (s *HlsContentProtection) SetLicenseAcquisitionUrl(v string) *HlsContentProtection { + s.LicenseAcquisitionUrl = &v + return s +} + +// SetMethod sets the Method field's value. +func (s *HlsContentProtection) SetMethod(v string) *HlsContentProtection { + s.Method = &v + return s +} + +// The captions to be created, if any. +type InputCaptions struct { + _ struct{} `type:"structure"` + + // Source files for the input sidecar captions used during the transcoding process. + // To omit all sidecar captions, leave CaptionSources blank. + CaptionSources []*CaptionSource `type:"list"` + + // A policy that determines how Elastic Transcoder handles the existence of + // multiple captions. + // + // * MergeOverride: Elastic Transcoder transcodes both embedded and sidecar + // captions into outputs. If captions for a language are embedded in the + // input file and also appear in a sidecar file, Elastic Transcoder uses + // the sidecar captions and ignores the embedded captions for that language. + // + // * MergeRetain: Elastic Transcoder transcodes both embedded and sidecar + // captions into outputs. If captions for a language are embedded in the + // input file and also appear in a sidecar file, Elastic Transcoder uses + // the embedded captions and ignores the sidecar captions for that language. + // If CaptionSources is empty, Elastic Transcoder omits all sidecar captions + // from the output files. + // + // * Override: Elastic Transcoder transcodes only the sidecar captions that + // you specify in CaptionSources. + // + // MergePolicy cannot be null. + MergePolicy *string `type:"string"` +} + +// String returns the string representation +func (s InputCaptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputCaptions) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputCaptions) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputCaptions"} + if s.CaptionSources != nil { + for i, v := range s.CaptionSources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CaptionSources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCaptionSources sets the CaptionSources field's value. +func (s *InputCaptions) SetCaptionSources(v []*CaptionSource) *InputCaptions { + s.CaptionSources = v + return s +} + +// SetMergePolicy sets the MergePolicy field's value. +func (s *InputCaptions) SetMergePolicy(v string) *InputCaptions { + s.MergePolicy = &v + return s +} + // A section of the response body that provides information about the job that // is created. type Job struct { @@ -3105,13 +3858,20 @@ type Job struct { // the file that is being transcoded. Input *JobInput `type:"structure"` + // Information about the files that you're transcoding. If you specified multiple + // files for this job, Elastic Transcoder stitches the files together to make + // one output. + Inputs []*JobInput `type:"list"` + // If you specified one output for a job, information about that output. If // you specified multiple outputs for a job, the Output object lists information // about the first output. This duplicates the information that is listed for // the first output in the Outputs object. // - // Outputs recommended instead. A section of the request or response body that - // provides information about the transcoded (target) file. + // Outputs recommended instead. + // + // A section of the request or response body that provides information about + // the transcoded (target) file. Output *JobOutput `type:"structure"` // The value, if any, that you want Elastic Transcoder to prepend to the names @@ -3125,7 +3885,7 @@ type Job struct { // file into only one format. Do not use both the Outputs and Output syntaxes // in the same request. You can create a maximum of 30 outputs per job. // - // If you specify more than one output for a job, Elastic Transcoder creates + // If you specify more than one output for a job, Elastic Transcoder creates // the files for each output in the order in which you specify them in the job. Outputs []*JobOutput `type:"list"` @@ -3135,10 +3895,11 @@ type Job struct { // into which Elastic Transcoder puts the transcoded files. PipelineId *string `type:"string"` - // Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset - // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or - // ts (MPEG-TS), Playlists contains information about the master playlists that - // you want Elastic Transcoder to create. + // Outputs in Fragmented MP4 or MPEG-TS format only. + // + // If you specify a preset in PresetId for which the value of Container is fmp4 + // (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the + // master playlists that you want Elastic Transcoder to create. // // The maximum number of master playlists in a job is 30. Playlists []*Playlist `type:"list"` @@ -3152,17 +3913,17 @@ type Job struct { // User-defined metadata that you want to associate with an Elastic Transcoder // job. You specify metadata in key/value pairs, and you can add up to 10 key/value // pairs per job. Elastic Transcoder does not guarantee that key/value pairs - // will be returned in the same order in which you specify them. + // are returned in the same order in which you specify them. // // Metadata keys and values must use characters from the following list: // - // 0-9 + // * 0-9 // - // A-Z and a-z + // * A-Z and a-z // - // Space + // * Space // - // The following symbols: _.:/=+-%@ + // * The following symbols: _.:/=+-%@ UserMetadata map[string]*string `type:"map"` } @@ -3176,6 +3937,78 @@ func (s Job) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Job) SetArn(v string) *Job { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *Job) SetId(v string) *Job { + s.Id = &v + return s +} + +// SetInput sets the Input field's value. +func (s *Job) SetInput(v *JobInput) *Job { + s.Input = v + return s +} + +// SetInputs sets the Inputs field's value. +func (s *Job) SetInputs(v []*JobInput) *Job { + s.Inputs = v + return s +} + +// SetOutput sets the Output field's value. +func (s *Job) SetOutput(v *JobOutput) *Job { + s.Output = v + return s +} + +// SetOutputKeyPrefix sets the OutputKeyPrefix field's value. +func (s *Job) SetOutputKeyPrefix(v string) *Job { + s.OutputKeyPrefix = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *Job) SetOutputs(v []*JobOutput) *Job { + s.Outputs = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *Job) SetPipelineId(v string) *Job { + s.PipelineId = &v + return s +} + +// SetPlaylists sets the Playlists field's value. +func (s *Job) SetPlaylists(v []*Playlist) *Job { + s.Playlists = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Job) SetStatus(v string) *Job { + s.Status = &v + return s +} + +// SetTiming sets the Timing field's value. +func (s *Job) SetTiming(v *Timing) *Job { + s.Timing = v + return s +} + +// SetUserMetadata sets the UserMetadata field's value. +func (s *Job) SetUserMetadata(v map[string]*string) *Job { + s.UserMetadata = v + return s +} + // The .jpg or .png file associated with an audio file. type JobAlbumArt struct { _ struct{} `type:"structure"` @@ -3184,16 +4017,19 @@ type JobAlbumArt struct { // with an audio file, to a maximum of 20. Valid formats are .jpg and .png Artwork []*Artwork `type:"list"` - // A policy that determines how Elastic Transcoder will handle the existence - // of multiple album artwork files. + // A policy that determines how Elastic Transcoder handles the existence of + // multiple album artwork files. // - // Replace: The specified album art will replace any existing album art. - // Prepend: The specified album art will be placed in front of any existing - // album art. Append: The specified album art will be placed after any existing - // album art. Fallback: If the original input file contains artwork, Elastic - // Transcoder will use that artwork for the output. If the original input does - // not contain artwork, Elastic Transcoder will use the specified album art - // file. + // * Replace: The specified album art replaces any existing album art. + // + // * Prepend: The specified album art is placed in front of any existing + // album art. + // + // * Append: The specified album art is placed after any existing album art. + // + // * Fallback: If the original input file contains artwork, Elastic Transcoder + // uses that artwork for the output. If the original input does not contain + // artwork, Elastic Transcoder uses the specified album art file. MergePolicy *string `type:"string"` } @@ -3227,6 +4063,18 @@ func (s *JobAlbumArt) Validate() error { return nil } +// SetArtwork sets the Artwork field's value. +func (s *JobAlbumArt) SetArtwork(v []*Artwork) *JobAlbumArt { + s.Artwork = v + return s +} + +// SetMergePolicy sets the MergePolicy field's value. +func (s *JobAlbumArt) SetMergePolicy(v string) *JobAlbumArt { + s.MergePolicy = &v + return s +} + // Information about the file that you're transcoding. type JobInput struct { _ struct{} `type:"structure"` @@ -3235,9 +4083,9 @@ type JobInput struct { // detect the aspect ratio of the input file, specify auto. If you want to specify // the aspect ratio for the output file, enter one of the following values: // - // 1:1, 4:3, 3:2, 16:9 + // 1:1, 4:3, 3:2, 16:9 // - // If you specify a value other than auto, Elastic Transcoder disables automatic + // If you specify a value other than auto, Elastic Transcoder disables automatic // detection of the aspect ratio. AspectRatio *string `type:"string"` @@ -3246,8 +4094,8 @@ type JobInput struct { // If you want to specify the container type for the input file, enter one of // the following values: // - // 3gp, aac, asf, avi, divx, flv, m4a, mkv, mov, mp3, mp4, mpeg, mpeg-ps, - // mpeg-ts, mxf, ogg, vob, wav, webm + // 3gp, aac, asf, avi, divx, flv, m4a, mkv, mov, mp3, mp4, mpeg, mpeg-ps, mpeg-ts, + // mxf, ogg, vob, wav, webm Container *string `type:"string"` // The detected properties of the input file. @@ -3255,19 +4103,63 @@ type JobInput struct { // The encryption settings, if any, that are used for decrypting your input // files. If your input file is encrypted, you must specify the mode that Elastic - // Transcoder will use to decrypt your file. + // Transcoder uses to decrypt your file. Encryption *Encryption `type:"structure"` // The frame rate of the input file. If you want Elastic Transcoder to automatically // detect the frame rate of the input file, specify auto. If you want to specify // the frame rate for the input file, enter one of the following values: // - // 10, 15, 23.97, 24, 25, 29.97, 30, 60 + // 10, 15, 23.97, 24, 25, 29.97, 30, 60 // // If you specify a value other than auto, Elastic Transcoder disables automatic // detection of the frame rate. FrameRate *string `type:"string"` + // You can configure Elastic Transcoder to transcode captions, or subtitles, + // from one format to another. All captions must be in UTF-8. Elastic Transcoder + // supports two types of captions: + // + // * Embedded: Embedded captions are included in the same file as the audio + // and video. Elastic Transcoder supports only one embedded caption per language, + // to a maximum of 300 embedded captions per file. + // + // Valid input values include: CEA-608 (EIA-608, first non-empty channel only), + // CEA-708 (EIA-708, first non-empty channel only), and mov-text + // + // Valid outputs include: mov-text + // + // Elastic Transcoder supports a maximum of one embedded format per output. + // + // * Sidecar: Sidecar captions are kept in a separate metadata file from + // the audio and video data. Sidecar captions require a player that is capable + // of understanding the relationship between the video file and the sidecar + // file. Elastic Transcoder supports only one sidecar caption per language, + // to a maximum of 20 sidecar captions per file. + // + // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, + // srt, ttml (first div element only), and webvtt + // + // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt. + // + // If you want ttml or smpte-tt compatible captions, specify dfxp as your output + // format. + // + // Elastic Transcoder does not support OCR (Optical Character Recognition), + // does not accept pictures as a valid input for captions, and is not available + // for audio-only transcoding. Elastic Transcoder does not preserve text formatting + // (for example, italics) during the transcoding process. + // + // To remove captions or leave the captions empty, set Captions to null. To + // pass through existing captions unchanged, set the MergePolicy to MergeRetain, + // and pass in a null CaptionSources array. + // + // For more information on embedded files, see the Subtitles Wikipedia page. + // + // For more information on sidecar files, see the Extensible Metadata Platform + // and Sidecar file Wikipedia pages. + InputCaptions *InputCaptions `type:"structure"` + // Whether the input file is interlaced. If you want Elastic Transcoder to automatically // detect whether the input file is interlaced, specify auto. If you want to // specify whether the input file is interlaced, enter one of the following @@ -3292,6 +4184,9 @@ type JobInput struct { // This value must be auto, which causes Elastic Transcoder to automatically // detect the resolution of the input file. Resolution *string `type:"string"` + + // Settings for clipping an input. Each input can have different clip settings. + TimeSpan *TimeSpan `type:"structure"` } // String returns the string representation @@ -3310,6 +4205,11 @@ func (s *JobInput) Validate() error { if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } + if s.InputCaptions != nil { + if err := s.InputCaptions.Validate(); err != nil { + invalidParams.AddNested("InputCaptions", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3317,10 +4217,72 @@ func (s *JobInput) Validate() error { return nil } -// Outputs recommended instead.If you specified one output for a job, information -// about that output. If you specified multiple outputs for a job, the Output -// object lists information about the first output. This duplicates the information -// that is listed for the first output in the Outputs object. +// SetAspectRatio sets the AspectRatio field's value. +func (s *JobInput) SetAspectRatio(v string) *JobInput { + s.AspectRatio = &v + return s +} + +// SetContainer sets the Container field's value. +func (s *JobInput) SetContainer(v string) *JobInput { + s.Container = &v + return s +} + +// SetDetectedProperties sets the DetectedProperties field's value. +func (s *JobInput) SetDetectedProperties(v *DetectedProperties) *JobInput { + s.DetectedProperties = v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *JobInput) SetEncryption(v *Encryption) *JobInput { + s.Encryption = v + return s +} + +// SetFrameRate sets the FrameRate field's value. +func (s *JobInput) SetFrameRate(v string) *JobInput { + s.FrameRate = &v + return s +} + +// SetInputCaptions sets the InputCaptions field's value. +func (s *JobInput) SetInputCaptions(v *InputCaptions) *JobInput { + s.InputCaptions = v + return s +} + +// SetInterlaced sets the Interlaced field's value. +func (s *JobInput) SetInterlaced(v string) *JobInput { + s.Interlaced = &v + return s +} + +// SetKey sets the Key field's value. +func (s *JobInput) SetKey(v string) *JobInput { + s.Key = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *JobInput) SetResolution(v string) *JobInput { + s.Resolution = &v + return s +} + +// SetTimeSpan sets the TimeSpan field's value. +func (s *JobInput) SetTimeSpan(v *TimeSpan) *JobInput { + s.TimeSpan = v + return s +} + +// Outputs recommended instead. +// +// If you specified one output for a job, information about that output. If +// you specified multiple outputs for a job, the Output object lists information +// about the first output. This duplicates the information that is listed for +// the first output in the Outputs object. type JobOutput struct { _ struct{} `type:"structure"` @@ -3330,37 +4292,37 @@ type JobOutput struct { // If Elastic Transcoder used a preset with a ColorSpaceConversionMode to transcode // the output file, the AppliedColorSpaceConversion parameter shows the conversion // used. If no ColorSpaceConversionMode was defined in the preset, this parameter - // will not be included in the job response. + // is not be included in the job response. AppliedColorSpaceConversion *string `type:"string"` // You can configure Elastic Transcoder to transcode captions, or subtitles, // from one format to another. All captions must be in UTF-8. Elastic Transcoder // supports two types of captions: // - // Embedded: Embedded captions are included in the same file as the audio - // and video. Elastic Transcoder supports only one embedded caption per language, - // to a maximum of 300 embedded captions per file. + // * Embedded: Embedded captions are included in the same file as the audio + // and video. Elastic Transcoder supports only one embedded caption per language, + // to a maximum of 300 embedded captions per file. // // Valid input values include: CEA-608 (EIA-608, first non-empty channel only), - // CEA-708 (EIA-708, first non-empty channel only), and mov-text + // CEA-708 (EIA-708, first non-empty channel only), and mov-text // // Valid outputs include: mov-text // // Elastic Transcoder supports a maximum of one embedded format per output. // - // Sidecar: Sidecar captions are kept in a separate metadata file from the - // audio and video data. Sidecar captions require a player that is capable of - // understanding the relationship between the video file and the sidecar file. - // Elastic Transcoder supports only one sidecar caption per language, to a maximum - // of 20 sidecar captions per file. + // * Sidecar: Sidecar captions are kept in a separate metadata file from + // the audio and video data. Sidecar captions require a player that is capable + // of understanding the relationship between the video file and the sidecar + // file. Elastic Transcoder supports only one sidecar caption per language, + // to a maximum of 20 sidecar captions per file. // - // Valid input values include: dfxp (first div element only), ebu-tt, scc, - // smpt, srt, ttml (first div element only), and webvtt + // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, + // srt, ttml (first div element only), and webvtt // // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt. // - // If you want ttml or smpte-tt compatible captions, specify dfxp as your - // output format. + // If you want ttml or smpte-tt compatible captions, specify dfxp as your output + // format. // // Elastic Transcoder does not support OCR (Optical Character Recognition), // does not accept pictures as a valid input for captions, and is not available @@ -3382,7 +4344,7 @@ type JobOutput struct { // of the file. The Composition object contains settings for the clips that // make up an output file. For the current release, you can only specify settings // for a single clip per output file. The Composition object cannot be null. - Composition []*Clip `type:"list"` + Composition []*Clip `deprecated:"true" type:"list"` // Duration of the output file, in seconds. Duration *int64 `type:"long"` @@ -3392,8 +4354,8 @@ type JobOutput struct { // The encryption settings, if any, that you want Elastic Transcoder to apply // to your output files. If you choose to use encryption, you must specify a - // mode to use. If you choose not to use encryption, Elastic Transcoder will - // write an unencrypted file to your Amazon S3 bucket. + // mode to use. If you choose not to use encryption, Elastic Transcoder writes + // an unencrypted file to your Amazon S3 bucket. Encryption *Encryption `type:"structure"` // File size of the output file, in bytes. @@ -3428,18 +4390,19 @@ type JobOutput struct { // // auto, 0, 90, 180, 270 // - // The value auto generally works only if the file that you're transcoding - // contains rotation metadata. + // The value auto generally works only if the file that you're transcoding contains + // rotation metadata. Rotate *string `type:"string"` - // (Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset - // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or - // ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment - // in seconds. For HLSv3 format playlists, each media segment is stored in a - // separate .ts file. For HLSv4 and Smooth playlists, all media segments for - // an output are stored in a single file. Each segment is approximately the - // length of the SegmentDuration, though individual segments might be shorter - // or longer. + // (Outputs in Fragmented MP4 or MPEG-TS format only. + // + // If you specify a preset in PresetId for which the value of Container is fmp4 + // (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration + // of each segment in seconds. For HLSv3 format playlists, each media segment + // is stored in a separate .ts file. For HLSv4, MPEG-DASH, and Smooth playlists, + // all media segments for an output are stored in a single file. Each segment + // is approximately the length of the SegmentDuration, though individual segments + // might be shorter or longer. // // The range of valid values is 1 to 60 seconds. If the duration of the video // is not evenly divisible by SegmentDuration, the duration of the last segment @@ -3452,18 +4415,26 @@ type JobOutput struct { // The status of one output in a job. If you specified only one output for the // job, Outputs:Status is always the same as Job:Status. If you specified more - // than one output: Job:Status and Outputs:Status for all of the outputs is - // Submitted until Elastic Transcoder starts to process the first output. When - // Elastic Transcoder starts to process the first output, Outputs:Status for - // that output and Job:Status both change to Progressing. For each output, the - // value of Outputs:Status remains Submitted until Elastic Transcoder starts - // to process the output. Job:Status remains Progressing until all of the outputs - // reach a terminal status, either Complete or Error. When all of the outputs - // reach a terminal status, Job:Status changes to Complete only if Outputs:Status - // for all of the outputs is Complete. If Outputs:Status for one or more outputs - // is Error, the terminal status for Job:Status is also Error. The value of - // Status is one of the following: Submitted, Progressing, Complete, Canceled, - // or Error. + // than one output: + // + // * Job:Status and Outputs:Status for all of the outputs is Submitted until + // Elastic Transcoder starts to process the first output. + // + // * When Elastic Transcoder starts to process the first output, Outputs:Status + // for that output and Job:Status both change to Progressing. For each output, + // the value of Outputs:Status remains Submitted until Elastic Transcoder + // starts to process the output. + // + // * Job:Status remains Progressing until all of the outputs reach a terminal + // status, either Complete or Error. + // + // * When all of the outputs reach a terminal status, Job:Status changes + // to Complete only if Outputs:Status for all of the outputs is Complete. + // If Outputs:Status for one or more outputs is Error, the terminal status + // for Job:Status is also Error. + // + // The value of Status is one of the following: Submitted, Progressing, Complete, + // Canceled, or Error. Status *string `type:"string"` // Information that further explains Status. @@ -3478,27 +4449,29 @@ type JobOutput struct { // // If you don't want Elastic Transcoder to create thumbnails, specify "". // - // If you do want Elastic Transcoder to create thumbnails, specify the information + // If you do want Elastic Transcoder to create thumbnails, specify the information // that you want to include in the file name for each thumbnail. You can specify // the following values in any sequence: // - // {count} (Required): If you want to create thumbnails, you must include - // {count} in the ThumbnailPattern object. Wherever you specify {count}, Elastic - // Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail - // file names. The number indicates where a given thumbnail appears in the sequence - // of thumbnails for a transcoded file. + // * {count} (Required): If you want to create thumbnails, you must include + // {count} in the ThumbnailPattern object. Wherever you specify {count}, + // Elastic Transcoder adds a five-digit sequence number (beginning with 00001) + // to thumbnail file names. The number indicates where a given thumbnail + // appears in the sequence of thumbnails for a transcoded file. // // If you specify a literal value and/or {resolution} but you omit {count}, - // Elastic Transcoder returns a validation error and does not create the job. - // Literal values (Optional): You can specify literal values anywhere in - // the ThumbnailPattern object. For example, you can include them as a file - // name prefix or as a delimiter between {resolution} and {count}. + // Elastic Transcoder returns a validation error and does not create the + // job. // - // {resolution} (Optional): If you want Elastic Transcoder to include the - // resolution in the file name, include {resolution} in the ThumbnailPattern - // object. + // * Literal values (Optional): You can specify literal values anywhere in + // the ThumbnailPattern object. For example, you can include them as a file + // name prefix or as a delimiter between {resolution} and {count}. // - // When creating thumbnails, Elastic Transcoder automatically saves the files + // * {resolution} (Optional): If you want Elastic Transcoder to include the + // resolution in the file name, include {resolution} in the ThumbnailPattern + // object. + // + // When creating thumbnails, Elastic Transcoder automatically saves the files // in the format (.jpg or .png) that appears in the preset that you specified // in the PresetID value of CreateJobOutput. Elastic Transcoder also appends // the applicable file name extension. @@ -3513,9 +4486,9 @@ type JobOutput struct { // them in the job output—the first watermark in the list is added to the output // video first, the second watermark in the list is added next, and so on. As // a result, if the settings in a preset cause Elastic Transcoder to place all - // watermarks in the same location, the second watermark that you add will cover - // the first one, the third one will cover the second, and the fourth one will - // cover the third. + // watermarks in the same location, the second watermark that you add covers + // the first one, the third one covers the second, and the fourth one covers + // the third. Watermarks []*JobWatermark `type:"list"` // Specifies the width of the output file in pixels. @@ -3532,6 +4505,132 @@ func (s JobOutput) GoString() string { return s.String() } +// SetAlbumArt sets the AlbumArt field's value. +func (s *JobOutput) SetAlbumArt(v *JobAlbumArt) *JobOutput { + s.AlbumArt = v + return s +} + +// SetAppliedColorSpaceConversion sets the AppliedColorSpaceConversion field's value. +func (s *JobOutput) SetAppliedColorSpaceConversion(v string) *JobOutput { + s.AppliedColorSpaceConversion = &v + return s +} + +// SetCaptions sets the Captions field's value. +func (s *JobOutput) SetCaptions(v *Captions) *JobOutput { + s.Captions = v + return s +} + +// SetComposition sets the Composition field's value. +func (s *JobOutput) SetComposition(v []*Clip) *JobOutput { + s.Composition = v + return s +} + +// SetDuration sets the Duration field's value. +func (s *JobOutput) SetDuration(v int64) *JobOutput { + s.Duration = &v + return s +} + +// SetDurationMillis sets the DurationMillis field's value. +func (s *JobOutput) SetDurationMillis(v int64) *JobOutput { + s.DurationMillis = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *JobOutput) SetEncryption(v *Encryption) *JobOutput { + s.Encryption = v + return s +} + +// SetFileSize sets the FileSize field's value. +func (s *JobOutput) SetFileSize(v int64) *JobOutput { + s.FileSize = &v + return s +} + +// SetFrameRate sets the FrameRate field's value. +func (s *JobOutput) SetFrameRate(v string) *JobOutput { + s.FrameRate = &v + return s +} + +// SetHeight sets the Height field's value. +func (s *JobOutput) SetHeight(v int64) *JobOutput { + s.Height = &v + return s +} + +// SetId sets the Id field's value. +func (s *JobOutput) SetId(v string) *JobOutput { + s.Id = &v + return s +} + +// SetKey sets the Key field's value. +func (s *JobOutput) SetKey(v string) *JobOutput { + s.Key = &v + return s +} + +// SetPresetId sets the PresetId field's value. +func (s *JobOutput) SetPresetId(v string) *JobOutput { + s.PresetId = &v + return s +} + +// SetRotate sets the Rotate field's value. +func (s *JobOutput) SetRotate(v string) *JobOutput { + s.Rotate = &v + return s +} + +// SetSegmentDuration sets the SegmentDuration field's value. +func (s *JobOutput) SetSegmentDuration(v string) *JobOutput { + s.SegmentDuration = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *JobOutput) SetStatus(v string) *JobOutput { + s.Status = &v + return s +} + +// SetStatusDetail sets the StatusDetail field's value. +func (s *JobOutput) SetStatusDetail(v string) *JobOutput { + s.StatusDetail = &v + return s +} + +// SetThumbnailEncryption sets the ThumbnailEncryption field's value. +func (s *JobOutput) SetThumbnailEncryption(v *Encryption) *JobOutput { + s.ThumbnailEncryption = v + return s +} + +// SetThumbnailPattern sets the ThumbnailPattern field's value. +func (s *JobOutput) SetThumbnailPattern(v string) *JobOutput { + s.ThumbnailPattern = &v + return s +} + +// SetWatermarks sets the Watermarks field's value. +func (s *JobOutput) SetWatermarks(v []*JobWatermark) *JobOutput { + s.Watermarks = v + return s +} + +// SetWidth sets the Width field's value. +func (s *JobOutput) SetWidth(v int64) *JobOutput { + s.Width = &v + return s +} + // Watermarks can be in .png or .jpg format. If you want to display a watermark // that is not rectangular, use the .png format, which supports transparency. type JobWatermark struct { @@ -3546,7 +4645,7 @@ type JobWatermark struct { // Transcoder checks the pipeline specified by Pipeline; the Input Bucket object // in that pipeline identifies the bucket. // - // If the file name includes a prefix, for example, logos/128x64.png, include + // If the file name includes a prefix, for example, logos/128x64.png, include // the prefix in the key. If the file isn't in the specified bucket, Elastic // Transcoder returns an error. InputKey *string `min:"1" type:"string"` @@ -3584,6 +4683,24 @@ func (s *JobWatermark) Validate() error { return nil } +// SetEncryption sets the Encryption field's value. +func (s *JobWatermark) SetEncryption(v *Encryption) *JobWatermark { + s.Encryption = v + return s +} + +// SetInputKey sets the InputKey field's value. +func (s *JobWatermark) SetInputKey(v string) *JobWatermark { + s.InputKey = &v + return s +} + +// SetPresetWatermarkId sets the PresetWatermarkId field's value. +func (s *JobWatermark) SetPresetWatermarkId(v string) *JobWatermark { + s.PresetWatermarkId = &v + return s +} + // The ListJobsByPipelineRequest structure. type ListJobsByPipelineInput struct { _ struct{} `type:"structure"` @@ -3625,6 +4742,24 @@ func (s *ListJobsByPipelineInput) Validate() error { return nil } +// SetAscending sets the Ascending field's value. +func (s *ListJobsByPipelineInput) SetAscending(v string) *ListJobsByPipelineInput { + s.Ascending = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListJobsByPipelineInput) SetPageToken(v string) *ListJobsByPipelineInput { + s.PageToken = &v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *ListJobsByPipelineInput) SetPipelineId(v string) *ListJobsByPipelineInput { + s.PipelineId = &v + return s +} + // The ListJobsByPipelineResponse structure. type ListJobsByPipelineOutput struct { _ struct{} `type:"structure"` @@ -3648,6 +4783,18 @@ func (s ListJobsByPipelineOutput) GoString() string { return s.String() } +// SetJobs sets the Jobs field's value. +func (s *ListJobsByPipelineOutput) SetJobs(v []*Job) *ListJobsByPipelineOutput { + s.Jobs = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListJobsByPipelineOutput) SetNextPageToken(v string) *ListJobsByPipelineOutput { + s.NextPageToken = &v + return s +} + // The ListJobsByStatusRequest structure. type ListJobsByStatusInput struct { _ struct{} `type:"structure"` @@ -3691,6 +4838,24 @@ func (s *ListJobsByStatusInput) Validate() error { return nil } +// SetAscending sets the Ascending field's value. +func (s *ListJobsByStatusInput) SetAscending(v string) *ListJobsByStatusInput { + s.Ascending = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListJobsByStatusInput) SetPageToken(v string) *ListJobsByStatusInput { + s.PageToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListJobsByStatusInput) SetStatus(v string) *ListJobsByStatusInput { + s.Status = &v + return s +} + // The ListJobsByStatusResponse structure. type ListJobsByStatusOutput struct { _ struct{} `type:"structure"` @@ -3714,6 +4879,18 @@ func (s ListJobsByStatusOutput) GoString() string { return s.String() } +// SetJobs sets the Jobs field's value. +func (s *ListJobsByStatusOutput) SetJobs(v []*Job) *ListJobsByStatusOutput { + s.Jobs = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListJobsByStatusOutput) SetNextPageToken(v string) *ListJobsByStatusOutput { + s.NextPageToken = &v + return s +} + // The ListPipelineRequest structure. type ListPipelinesInput struct { _ struct{} `type:"structure"` @@ -3738,6 +4915,18 @@ func (s ListPipelinesInput) GoString() string { return s.String() } +// SetAscending sets the Ascending field's value. +func (s *ListPipelinesInput) SetAscending(v string) *ListPipelinesInput { + s.Ascending = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListPipelinesInput) SetPageToken(v string) *ListPipelinesInput { + s.PageToken = &v + return s +} + // A list of the pipelines associated with the current AWS account. type ListPipelinesOutput struct { _ struct{} `type:"structure"` @@ -3761,6 +4950,18 @@ func (s ListPipelinesOutput) GoString() string { return s.String() } +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListPipelinesOutput) SetNextPageToken(v string) *ListPipelinesOutput { + s.NextPageToken = &v + return s +} + +// SetPipelines sets the Pipelines field's value. +func (s *ListPipelinesOutput) SetPipelines(v []*Pipeline) *ListPipelinesOutput { + s.Pipelines = v + return s +} + // The ListPresetsRequest structure. type ListPresetsInput struct { _ struct{} `type:"structure"` @@ -3785,6 +4986,18 @@ func (s ListPresetsInput) GoString() string { return s.String() } +// SetAscending sets the Ascending field's value. +func (s *ListPresetsInput) SetAscending(v string) *ListPresetsInput { + s.Ascending = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListPresetsInput) SetPageToken(v string) *ListPresetsInput { + s.PageToken = &v + return s +} + // The ListPresetsResponse structure. type ListPresetsOutput struct { _ struct{} `type:"structure"` @@ -3808,6 +5021,18 @@ func (s ListPresetsOutput) GoString() string { return s.String() } +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListPresetsOutput) SetNextPageToken(v string) *ListPresetsOutput { + s.NextPageToken = &v + return s +} + +// SetPresets sets the Presets field's value. +func (s *ListPresetsOutput) SetPresets(v []*Preset) *ListPresetsOutput { + s.Presets = v + return s +} + // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify // in order to report job status. // @@ -3843,18 +5068,48 @@ func (s Notifications) GoString() string { return s.String() } +// SetCompleted sets the Completed field's value. +func (s *Notifications) SetCompleted(v string) *Notifications { + s.Completed = &v + return s +} + +// SetError sets the Error field's value. +func (s *Notifications) SetError(v string) *Notifications { + s.Error = &v + return s +} + +// SetProgressing sets the Progressing field's value. +func (s *Notifications) SetProgressing(v string) *Notifications { + s.Progressing = &v + return s +} + +// SetWarning sets the Warning field's value. +func (s *Notifications) SetWarning(v string) *Notifications { + s.Warning = &v + return s +} + // The Permission structure. type Permission struct { _ struct{} `type:"structure"` // The permission that you want to give to the AWS user that is listed in Grantee. - // Valid values include: READ: The grantee can read the thumbnails and metadata - // for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. READ_ACP: - // The grantee can read the object ACL for thumbnails that Elastic Transcoder - // adds to the Amazon S3 bucket. WRITE_ACP: The grantee can write the ACL for - // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. FULL_CONTROL: - // The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails - // that Elastic Transcoder adds to the Amazon S3 bucket. + // Valid values include: + // + // * READ: The grantee can read the thumbnails and metadata for thumbnails + // that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * READ_ACP: The grantee can read the object ACL for thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // * WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // * FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions + // for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. Access []*string `type:"list"` // The AWS user or group that you want to have access to transcoded files and @@ -3864,12 +5119,17 @@ type Permission struct { // group. Grantee *string `min:"1" type:"string"` - // The type of value that appears in the Grantee object: Canonical: Either - // the canonical user ID for an AWS account or an origin access identity for - // an Amazon CloudFront distribution. A canonical user ID is not the same as - // an AWS account number. Email: The registered email address of an AWS account. - // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, - // or LogDelivery. + // The type of value that appears in the Grantee object: + // + // * Canonical: Either the canonical user ID for an AWS account or an origin + // access identity for an Amazon CloudFront distribution. + // + // A canonical user ID is not the same as an AWS account number. + // + // * Email: The registered email address of an AWS account. + // + // * Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, + // or LogDelivery. GranteeType *string `type:"string"` } @@ -3896,6 +5156,24 @@ func (s *Permission) Validate() error { return nil } +// SetAccess sets the Access field's value. +func (s *Permission) SetAccess(v []*string) *Permission { + s.Access = v + return s +} + +// SetGrantee sets the Grantee field's value. +func (s *Permission) SetGrantee(v string) *Permission { + s.Grantee = &v + return s +} + +// SetGranteeType sets the GranteeType field's value. +func (s *Permission) SetGranteeType(v string) *Permission { + s.GranteeType = &v + return s +} + // The pipeline (queue) that is used to manage jobs. type Pipeline struct { _ struct{} `type:"structure"` @@ -3917,26 +5195,44 @@ type Pipeline struct { // to save transcoded files and playlists. Either you specify both ContentConfig // and ThumbnailConfig, or you specify OutputBucket. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // transcoded files and playlists. Permissions: A list of the users and/or predefined - // Amazon S3 groups you want to have access to transcoded files and playlists, - // and the type of access that you want them to have. GranteeType: The type - // of value that appears in the Grantee object: Canonical: Either the canonical - // user ID for an AWS account or an origin access identity for an Amazon CloudFront - // distribution. Email: The registered email address of an AWS account. Group: - // One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, - // or LogDelivery. Grantee: The AWS user or group that you want to have access - // to transcoded files and playlists. Access: The permission that you want to - // give to the AWS user that is listed in Grantee. Valid values include: READ: - // The grantee can read the objects and metadata for objects that Elastic Transcoder - // adds to the Amazon S3 bucket. READ_ACP: The grantee can read the object ACL - // for objects that Elastic Transcoder adds to the Amazon S3 bucket. WRITE_ACP: - // The grantee can write the ACL for the objects that Elastic Transcoder adds - // to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, READ_ACP, and - // WRITE_ACP permissions for the objects that Elastic Transcoder adds to the - // Amazon S3 bucket. StorageClass: The Amazon S3 storage class, Standard - // or ReducedRedundancy, that you want Elastic Transcoder to assign to the video - // files and playlists that it stores in your Amazon S3 bucket. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save transcoded files and playlists. + // + // * Permissions: A list of the users and/or predefined Amazon S3 groups + // you want to have access to transcoded files and playlists, and the type + // of access that you want them to have. + // + // GranteeType: The type of value that appears in the Grantee object: + // + // Canonical: Either the canonical user ID for an AWS account or an origin access + // identity for an Amazon CloudFront distribution. + // + // Email: The registered email address of an AWS account. + // + // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, + // or LogDelivery. + // + // Grantee: The AWS user or group that you want to have access to transcoded + // files and playlists. + // + // Access: The permission that you want to give to the AWS user that is listed + // in Grantee. Valid values include: + // + // READ: The grantee can read the objects and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the objects that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the video files and playlists + // that it stores in your Amazon S3 bucket. ContentConfig *PipelineOutputConfig `type:"structure"` // The identifier for the pipeline. You use this value to identify the pipeline @@ -3958,14 +5254,20 @@ type Pipeline struct { // notify to report job status. // // To receive notifications, you must also subscribe to the new topic in the - // Amazon SNS console. Progressing (optional): The Amazon Simple Notification - // Service (Amazon SNS) topic that you want to notify when Elastic Transcoder - // has started to process the job. Completed (optional): The Amazon SNS topic - // that you want to notify when Elastic Transcoder has finished processing the - // job. Warning (optional): The Amazon SNS topic that you want to notify when - // Elastic Transcoder encounters a warning condition. Error (optional): The - // Amazon SNS topic that you want to notify when Elastic Transcoder encounters - // an error condition. + // Amazon SNS console. + // + // * Progressing (optional): The Amazon Simple Notification Service (Amazon + // SNS) topic that you want to notify when Elastic Transcoder has started + // to process the job. + // + // * Completed (optional): The Amazon SNS topic that you want to notify when + // Elastic Transcoder has finished processing the job. + // + // * Warning (optional): The Amazon SNS topic that you want to notify when + // Elastic Transcoder encounters a warning condition. + // + // * Error (optional): The Amazon SNS topic that you want to notify when + // Elastic Transcoder encounters an error condition. Notifications *Notifications `type:"structure"` // The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded @@ -3979,34 +5281,55 @@ type Pipeline struct { // The current status of the pipeline: // - // Active: The pipeline is processing jobs. Paused: The pipeline is not currently - // processing jobs. + // * Active: The pipeline is processing jobs. + // + // * Paused: The pipeline is not currently processing jobs. Status *string `type:"string"` // Information about the Amazon S3 bucket in which you want Elastic Transcoder // to save thumbnail files. Either you specify both ContentConfig and ThumbnailConfig, // or you specify OutputBucket. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // thumbnail files. Permissions: A list of the users and/or predefined Amazon - // S3 groups you want to have access to thumbnail files, and the type of access - // that you want them to have. GranteeType: The type of value that appears - // in the Grantee object: Canonical: Either the canonical user ID for an AWS - // account or an origin access identity for an Amazon CloudFront distribution. - // A canonical user ID is not the same as an AWS account number. Email: The - // registered email address of an AWS account. Group: One of the following predefined - // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. Grantee: - // The AWS user or group that you want to have access to thumbnail files. Access: - // The permission that you want to give to the AWS user that is listed in Grantee. - // Valid values include: READ: The grantee can read the thumbnails and metadata - // for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. READ_ACP: - // The grantee can read the object ACL for thumbnails that Elastic Transcoder - // adds to the Amazon S3 bucket. WRITE_ACP: The grantee can write the ACL for - // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. FULL_CONTROL: - // The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails - // that Elastic Transcoder adds to the Amazon S3 bucket. StorageClass: The - // Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic - // Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save thumbnail files. + // + // * Permissions: A list of the users and/or predefined Amazon S3 groups + // you want to have access to thumbnail files, and the type of access that + // you want them to have. + // + // GranteeType: The type of value that appears in the Grantee object: + // + // Canonical: Either the canonical user ID for an AWS account or an origin access + // identity for an Amazon CloudFront distribution. + // + // A canonical user ID is not the same as an AWS account number. + // + // Email: The registered email address of an AWS account. + // + // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, + // or LogDelivery. + // + // Grantee: The AWS user or group that you want to have access to thumbnail + // files. + // + // Access: The permission that you want to give to the AWS user that is listed + // in Grantee. Valid values include: + // + // READ: The grantee can read the thumbnails and metadata for thumbnails that + // Elastic Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the thumbnails that it stores + // in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` } @@ -4020,22 +5343,95 @@ func (s Pipeline) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Pipeline) SetArn(v string) *Pipeline { + s.Arn = &v + return s +} + +// SetAwsKmsKeyArn sets the AwsKmsKeyArn field's value. +func (s *Pipeline) SetAwsKmsKeyArn(v string) *Pipeline { + s.AwsKmsKeyArn = &v + return s +} + +// SetContentConfig sets the ContentConfig field's value. +func (s *Pipeline) SetContentConfig(v *PipelineOutputConfig) *Pipeline { + s.ContentConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *Pipeline) SetId(v string) *Pipeline { + s.Id = &v + return s +} + +// SetInputBucket sets the InputBucket field's value. +func (s *Pipeline) SetInputBucket(v string) *Pipeline { + s.InputBucket = &v + return s +} + +// SetName sets the Name field's value. +func (s *Pipeline) SetName(v string) *Pipeline { + s.Name = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *Pipeline) SetNotifications(v *Notifications) *Pipeline { + s.Notifications = v + return s +} + +// SetOutputBucket sets the OutputBucket field's value. +func (s *Pipeline) SetOutputBucket(v string) *Pipeline { + s.OutputBucket = &v + return s +} + +// SetRole sets the Role field's value. +func (s *Pipeline) SetRole(v string) *Pipeline { + s.Role = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Pipeline) SetStatus(v string) *Pipeline { + s.Status = &v + return s +} + +// SetThumbnailConfig sets the ThumbnailConfig field's value. +func (s *Pipeline) SetThumbnailConfig(v *PipelineOutputConfig) *Pipeline { + s.ThumbnailConfig = v + return s +} + // The PipelineOutputConfig structure. type PipelineOutputConfig struct { _ struct{} `type:"structure"` // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded - // files. Specify this value when all of the following are true: You want to - // save transcoded files, thumbnails (if any), and playlists (if any) together - // in one bucket. You do not want to specify the users or groups who have access - // to the transcoded files, thumbnails, and playlists. You do not want to specify - // the permissions that Elastic Transcoder grants to the files. You want to - // associate the transcoded files and thumbnails with the Amazon S3 Standard - // storage class. If you want to save transcoded files and playlists in one - // bucket and thumbnails in another bucket, specify which users can access the - // transcoded files or the permissions the users have, or change the Amazon - // S3 storage class, omit OutputBucket and specify values for ContentConfig - // and ThumbnailConfig instead. + // files. Specify this value when all of the following are true: + // + // * You want to save transcoded files, thumbnails (if any), and playlists + // (if any) together in one bucket. + // + // * You do not want to specify the users or groups who have access to the + // transcoded files, thumbnails, and playlists. + // + // * You do not want to specify the permissions that Elastic Transcoder grants + // to the files. + // + // * You want to associate the transcoded files and thumbnails with the Amazon + // S3 Standard storage class. + // + // If you want to save transcoded files and playlists in one bucket and thumbnails + // in another bucket, specify which users can access the transcoded files or + // the permissions the users have, or change the Amazon S3 storage class, omit + // OutputBucket and specify values for ContentConfig and ThumbnailConfig instead. Bucket *string `type:"string"` // Optional. The Permissions object specifies which users and/or predefined @@ -4048,7 +5444,7 @@ type PipelineOutputConfig struct { // role specified by Role. If you want that user to have full control, you must // explicitly grant full control to the user. // - // If you omit Permissions, Elastic Transcoder grants full control over the + // If you omit Permissions, Elastic Transcoder grants full control over the // transcoded files and playlists to the owner of the role specified by Role, // and grants no other permissions to any other user or group. Permissions []*Permission `type:"list"` @@ -4089,6 +5485,24 @@ func (s *PipelineOutputConfig) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PipelineOutputConfig) SetBucket(v string) *PipelineOutputConfig { + s.Bucket = &v + return s +} + +// SetPermissions sets the Permissions field's value. +func (s *PipelineOutputConfig) SetPermissions(v []*Permission) *PipelineOutputConfig { + s.Permissions = v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *PipelineOutputConfig) SetStorageClass(v string) *PipelineOutputConfig { + s.StorageClass = &v + return s +} + // The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply // to the output files associated with this playlist. // @@ -4121,7 +5535,7 @@ type PlayReadyDrm struct { // The ID for your DRM key, so that your DRM license provider knows which key // to provide. // - // The key ID must be provided in big endian, and Elastic Transcoder will convert + // The key ID must be provided in big endian, and Elastic Transcoder converts // it to little endian before inserting it into the PlayReady DRM headers. If // you are unsure whether your license server provides your key ID in big or // little endian, check with your DRM provider. @@ -4164,6 +5578,42 @@ func (s *PlayReadyDrm) Validate() error { return nil } +// SetFormat sets the Format field's value. +func (s *PlayReadyDrm) SetFormat(v string) *PlayReadyDrm { + s.Format = &v + return s +} + +// SetInitializationVector sets the InitializationVector field's value. +func (s *PlayReadyDrm) SetInitializationVector(v string) *PlayReadyDrm { + s.InitializationVector = &v + return s +} + +// SetKey sets the Key field's value. +func (s *PlayReadyDrm) SetKey(v string) *PlayReadyDrm { + s.Key = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *PlayReadyDrm) SetKeyId(v string) *PlayReadyDrm { + s.KeyId = &v + return s +} + +// SetKeyMd5 sets the KeyMd5 field's value. +func (s *PlayReadyDrm) SetKeyMd5(v string) *PlayReadyDrm { + s.KeyMd5 = &v + return s +} + +// SetLicenseAcquisitionUrl sets the LicenseAcquisitionUrl field's value. +func (s *PlayReadyDrm) SetLicenseAcquisitionUrl(v string) *PlayReadyDrm { + s.LicenseAcquisitionUrl = &v + return s +} + // Use Only for Fragmented MP4 or MPEG-TS Outputs. If you specify a preset for // which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists // contains information about the master playlists that you want Elastic Transcoder @@ -4186,33 +5636,33 @@ type Playlist struct { // you create more than one master playlist, the values of all Name objects // must be unique. // - // Note: Elastic Transcoder automatically appends the relevant file extension - // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc - // for Smooth playlists). If you include a file extension in Name, the file - // name will have two extensions. + // Elastic Transcoder automatically appends the relevant file extension to the + // file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc for Smooth + // playlists). If you include a file extension in Name, the file name will have + // two extensions. Name *string `min:"1" type:"string"` // For each output in this job that you want to include in a master playlist, // the value of the Outputs:Key object. // - // If your output is not HLS or does not have a segment duration set, the - // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key: + // * If your output is not HLS or does not have a segment duration set, the + // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key: // // OutputKeyPrefixOutputs:Key // - // If your output is HLSv3 and has a segment duration set, or is not included - // in a playlist, Elastic Transcoder creates an output playlist file with a - // file extension of .m3u8, and a series of .ts files that include a five-digit - // sequential counter beginning with 00000: + // * If your output is HLSv3 and has a segment duration set, or is not included + // in a playlist, Elastic Transcoder creates an output playlist file with + // a file extension of .m3u8, and a series of .ts files that include a five-digit + // sequential counter beginning with 00000: // // OutputKeyPrefixOutputs:Key.m3u8 // // OutputKeyPrefixOutputs:Key00000.ts // - // If your output is HLSv4, has a segment duration set, and is included in - // an HLSv4 playlist, Elastic Transcoder creates an output playlist file with - // a file extension of _v4.m3u8. If the output is video, Elastic Transcoder - // also creates an output file with an extension of _iframe.m3u8: + // * If your output is HLSv4, has a segment duration set, and is included + // in an HLSv4 playlist, Elastic Transcoder creates an output playlist file + // with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder + // also creates an output file with an extension of _iframe.m3u8: // // OutputKeyPrefixOutputs:Key_v4.m3u8 // @@ -4220,15 +5670,14 @@ type Playlist struct { // // OutputKeyPrefixOutputs:Key.ts // - // Elastic Transcoder automatically appends the relevant file extension to - // the file name. If you include a file extension in Output Key, the file name - // will have two extensions. + // Elastic Transcoder automatically appends the relevant file extension to the + // file name. If you include a file extension in Output Key, the file name will + // have two extensions. // - // If you include more than one output in a playlist, any segment duration - // settings, clip settings, or caption settings must be the same for all outputs - // in the playlist. For Smooth playlists, the Audio:Profile, Video:Profile, - // and Video:FrameRate to Video:KeyframesMaxDist ratio must be the same for - // all outputs. + // If you include more than one output in a playlist, any segment duration settings, + // clip settings, or caption settings must be the same for all outputs in the + // playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate + // to Video:KeyframesMaxDist ratio must be the same for all outputs. OutputKeys []*string `type:"list"` // The DRM settings, if any, that you want Elastic Transcoder to apply to the @@ -4252,6 +5701,48 @@ func (s Playlist) GoString() string { return s.String() } +// SetFormat sets the Format field's value. +func (s *Playlist) SetFormat(v string) *Playlist { + s.Format = &v + return s +} + +// SetHlsContentProtection sets the HlsContentProtection field's value. +func (s *Playlist) SetHlsContentProtection(v *HlsContentProtection) *Playlist { + s.HlsContentProtection = v + return s +} + +// SetName sets the Name field's value. +func (s *Playlist) SetName(v string) *Playlist { + s.Name = &v + return s +} + +// SetOutputKeys sets the OutputKeys field's value. +func (s *Playlist) SetOutputKeys(v []*string) *Playlist { + s.OutputKeys = v + return s +} + +// SetPlayReadyDrm sets the PlayReadyDrm field's value. +func (s *Playlist) SetPlayReadyDrm(v *PlayReadyDrm) *Playlist { + s.PlayReadyDrm = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Playlist) SetStatus(v string) *Playlist { + s.Status = &v + return s +} + +// SetStatusDetail sets the StatusDetail field's value. +func (s *Playlist) SetStatusDetail(v string) *Playlist { + s.StatusDetail = &v + return s +} + // Presets are templates that contain most of the settings for transcoding media // files from one format to another. Elastic Transcoder includes some default // presets for common formats, for example, several iPod and iPhone versions. @@ -4305,6 +5796,60 @@ func (s Preset) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Preset) SetArn(v string) *Preset { + s.Arn = &v + return s +} + +// SetAudio sets the Audio field's value. +func (s *Preset) SetAudio(v *AudioParameters) *Preset { + s.Audio = v + return s +} + +// SetContainer sets the Container field's value. +func (s *Preset) SetContainer(v string) *Preset { + s.Container = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Preset) SetDescription(v string) *Preset { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *Preset) SetId(v string) *Preset { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Preset) SetName(v string) *Preset { + s.Name = &v + return s +} + +// SetThumbnails sets the Thumbnails field's value. +func (s *Preset) SetThumbnails(v *Thumbnails) *Preset { + s.Thumbnails = v + return s +} + +// SetType sets the Type field's value. +func (s *Preset) SetType(v string) *Preset { + s.Type = &v + return s +} + +// SetVideo sets the Video field's value. +func (s *Preset) SetVideo(v *VideoParameters) *Preset { + s.Video = v + return s +} + // Settings for the size, location, and opacity of graphics that you want Elastic // Transcoder to overlay over videos that are transcoded using this preset. // You can specify settings for up to four watermarks. Watermarks appear in @@ -4323,16 +5868,25 @@ type PresetWatermark struct { _ struct{} `type:"structure"` // The horizontal position of the watermark unless you specify a non-zero value - // for HorizontalOffset: Left: The left edge of the watermark is aligned with - // the left border of the video. Right: The right edge of the watermark is aligned - // with the right border of the video. Center: The watermark is centered between - // the left and right borders. + // for HorizontalOffset: + // + // * Left: The left edge of the watermark is aligned with the left border + // of the video. + // + // * Right: The right edge of the watermark is aligned with the right border + // of the video. + // + // * Center: The watermark is centered between the left and right borders. HorizontalAlign *string `type:"string"` // The amount by which you want the horizontal position of the watermark to - // be offset from the position specified by HorizontalAlign: number of pixels - // (px): The minimum value is 0 pixels, and the maximum value is the value of - // MaxWidth. integer percentage (%): The range of valid values is 0 to 100. + // be offset from the position specified by HorizontalAlign: + // + // * number of pixels (px): The minimum value is 0 pixels, and the maximum + // value is the value of MaxWidth. + // + // * integer percentage (%): The range of valid values is 0 to 100. + // // For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, // the left side of the watermark appears 5 pixels from the left border of the // output video. @@ -4352,22 +5906,30 @@ type PresetWatermark struct { // be up to 40 characters long. Id *string `min:"1" type:"string"` - // The maximum height of the watermark in one of the following formats: number - // of pixels (px): The minimum value is 16 pixels, and the maximum value is - // the value of MaxHeight. integer percentage (%): The range of valid values - // is 0 to 100. Use the value of Target to specify whether you want Elastic - // Transcoder to include the black bars that are added by Elastic Transcoder, - // if any, in the calculation. If you specify the value in pixels, it must - // be less than or equal to the value of MaxHeight. + // The maximum height of the watermark in one of the following formats: + // + // * number of pixels (px): The minimum value is 16 pixels, and the maximum + // value is the value of MaxHeight. + // + // * integer percentage (%): The range of valid values is 0 to 100. Use the + // value of Target to specify whether you want Elastic Transcoder to include + // the black bars that are added by Elastic Transcoder, if any, in the calculation. + // + // If you specify the value in pixels, it must be less than or equal to the + // value of MaxHeight. MaxHeight *string `type:"string"` - // The maximum width of the watermark in one of the following formats: number - // of pixels (px): The minimum value is 16 pixels, and the maximum value is - // the value of MaxWidth. integer percentage (%): The range of valid values - // is 0 to 100. Use the value of Target to specify whether you want Elastic - // Transcoder to include the black bars that are added by Elastic Transcoder, - // if any, in the calculation. If you specify the value in pixels, it must be - // less than or equal to the value of MaxWidth. + // The maximum width of the watermark in one of the following formats: + // + // * number of pixels (px): The minimum value is 16 pixels, and the maximum + // value is the value of MaxWidth. + // + // * integer percentage (%): The range of valid values is 0 to 100. Use the + // value of Target to specify whether you want Elastic Transcoder to include + // the black bars that are added by Elastic Transcoder, if any, in the calculation. + // + // If you specify the value in pixels, it must be less than or equal to the + // value of MaxWidth. MaxWidth *string `type:"string"` // A percentage that indicates how much you want a watermark to obscure the @@ -4380,53 +5942,72 @@ type PresetWatermark struct { // a value of 0 for Opacity. The .jpg file format doesn't support transparency. Opacity *string `type:"string"` - // A value that controls scaling of the watermark: Fit: Elastic Transcoder - // scales the watermark so it matches the value that you specified in either - // MaxWidth or MaxHeight without exceeding the other value. Stretch: Elastic - // Transcoder stretches the watermark to match the values that you specified - // for MaxWidth and MaxHeight. If the relative proportions of the watermark - // and the values of MaxWidth and MaxHeight are different, the watermark will - // be distorted. ShrinkToFit: Elastic Transcoder scales the watermark down so - // that its dimensions match the values that you specified for at least one - // of MaxWidth and MaxHeight without exceeding either value. If you specify - // this option, Elastic Transcoder does not scale the watermark up. + // A value that controls scaling of the watermark: + // + // * Fit: Elastic Transcoder scales the watermark so it matches the value + // that you specified in either MaxWidth or MaxHeight without exceeding the + // other value. + // + // * Stretch: Elastic Transcoder stretches the watermark to match the values + // that you specified for MaxWidth and MaxHeight. If the relative proportions + // of the watermark and the values of MaxWidth and MaxHeight are different, + // the watermark will be distorted. + // + // * ShrinkToFit: Elastic Transcoder scales the watermark down so that its + // dimensions match the values that you specified for at least one of MaxWidth + // and MaxHeight without exceeding either value. If you specify this option, + // Elastic Transcoder does not scale the watermark up. SizingPolicy *string `type:"string"` // A value that determines how Elastic Transcoder interprets values that you // specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight: - // Content: HorizontalOffset and VerticalOffset values are calculated based - // on the borders of the video excluding black bars added by Elastic Transcoder, - // if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, - // are calculated based on the borders of the video excluding black bars added - // by Elastic Transcoder, if any. Frame: HorizontalOffset and VerticalOffset - // values are calculated based on the borders of the video including black bars - // added by Elastic Transcoder, if any. In addition, MaxWidth and MaxHeight, - // if specified as a percentage, are calculated based on the borders of the - // video including black bars added by Elastic Transcoder, if any. + // + // * Content: HorizontalOffset and VerticalOffset values are calculated based + // on the borders of the video excluding black bars added by Elastic Transcoder, + // if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, + // are calculated based on the borders of the video excluding black bars + // added by Elastic Transcoder, if any. + // + // * Frame: HorizontalOffset and VerticalOffset values are calculated based + // on the borders of the video including black bars added by Elastic Transcoder, + // if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, + // are calculated based on the borders of the video including black bars + // added by Elastic Transcoder, if any. Target *string `type:"string"` // The vertical position of the watermark unless you specify a non-zero value - // for VerticalOffset: Top: The top edge of the watermark is aligned with the - // top border of the video. Bottom: The bottom edge of the watermark is aligned - // with the bottom border of the video. Center: The watermark is centered between - // the top and bottom borders. + // for VerticalOffset: + // + // * Top: The top edge of the watermark is aligned with the top border of + // the video. + // + // * Bottom: The bottom edge of the watermark is aligned with the bottom + // border of the video. + // + // * Center: The watermark is centered between the top and bottom borders. VerticalAlign *string `type:"string"` - // VerticalOffset The amount by which you want the vertical position of the - // watermark to be offset from the position specified by VerticalAlign: number - // of pixels (px): The minimum value is 0 pixels, and the maximum value is the - // value of MaxHeight. integer percentage (%): The range of valid values is - // 0 to 100. For example, if you specify Top for VerticalAlign and 5px for - // VerticalOffset, the top of the watermark appears 5 pixels from the top border - // of the output video. + // VerticalOffset + // + // The amount by which you want the vertical position of the watermark to be + // offset from the position specified by VerticalAlign: + // + // * number of pixels (px): The minimum value is 0 pixels, and the maximum + // value is the value of MaxHeight. + // + // * integer percentage (%): The range of valid values is 0 to 100. + // + // For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, + // the top of the watermark appears 5 pixels from the top border of the output + // video. // // VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom. // - // If you specify an offset that causes the watermark to extend beyond the - // top or bottom border and Elastic Transcoder has not added black bars, the - // watermark is cropped. If Elastic Transcoder has added black bars, the watermark - // extends into the black bars. If the watermark extends beyond the black bars, - // it is cropped. + // If you specify an offset that causes the watermark to extend beyond the top + // or bottom border and Elastic Transcoder has not added black bars, the watermark + // is cropped. If Elastic Transcoder has added black bars, the watermark extends + // into the black bars. If the watermark extends beyond the black bars, it is + // cropped. // // Use the value of Target to specify whether you want Elastic Transcoder to // include the black bars that are added by Elastic Transcoder, if any, in the @@ -4457,6 +6038,66 @@ func (s *PresetWatermark) Validate() error { return nil } +// SetHorizontalAlign sets the HorizontalAlign field's value. +func (s *PresetWatermark) SetHorizontalAlign(v string) *PresetWatermark { + s.HorizontalAlign = &v + return s +} + +// SetHorizontalOffset sets the HorizontalOffset field's value. +func (s *PresetWatermark) SetHorizontalOffset(v string) *PresetWatermark { + s.HorizontalOffset = &v + return s +} + +// SetId sets the Id field's value. +func (s *PresetWatermark) SetId(v string) *PresetWatermark { + s.Id = &v + return s +} + +// SetMaxHeight sets the MaxHeight field's value. +func (s *PresetWatermark) SetMaxHeight(v string) *PresetWatermark { + s.MaxHeight = &v + return s +} + +// SetMaxWidth sets the MaxWidth field's value. +func (s *PresetWatermark) SetMaxWidth(v string) *PresetWatermark { + s.MaxWidth = &v + return s +} + +// SetOpacity sets the Opacity field's value. +func (s *PresetWatermark) SetOpacity(v string) *PresetWatermark { + s.Opacity = &v + return s +} + +// SetSizingPolicy sets the SizingPolicy field's value. +func (s *PresetWatermark) SetSizingPolicy(v string) *PresetWatermark { + s.SizingPolicy = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *PresetWatermark) SetTarget(v string) *PresetWatermark { + s.Target = &v + return s +} + +// SetVerticalAlign sets the VerticalAlign field's value. +func (s *PresetWatermark) SetVerticalAlign(v string) *PresetWatermark { + s.VerticalAlign = &v + return s +} + +// SetVerticalOffset sets the VerticalOffset field's value. +func (s *PresetWatermark) SetVerticalOffset(v string) *PresetWatermark { + s.VerticalOffset = &v + return s +} + // The ReadJobRequest structure. type ReadJobInput struct { _ struct{} `type:"structure"` @@ -4490,6 +6131,12 @@ func (s *ReadJobInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ReadJobInput) SetId(v string) *ReadJobInput { + s.Id = &v + return s +} + // The ReadJobResponse structure. type ReadJobOutput struct { _ struct{} `type:"structure"` @@ -4508,6 +6155,12 @@ func (s ReadJobOutput) GoString() string { return s.String() } +// SetJob sets the Job field's value. +func (s *ReadJobOutput) SetJob(v *Job) *ReadJobOutput { + s.Job = v + return s +} + // The ReadPipelineRequest structure. type ReadPipelineInput struct { _ struct{} `type:"structure"` @@ -4541,6 +6194,12 @@ func (s *ReadPipelineInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ReadPipelineInput) SetId(v string) *ReadPipelineInput { + s.Id = &v + return s +} + // The ReadPipelineResponse structure. type ReadPipelineOutput struct { _ struct{} `type:"structure"` @@ -4567,6 +6226,18 @@ func (s ReadPipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *ReadPipelineOutput) SetPipeline(v *Pipeline) *ReadPipelineOutput { + s.Pipeline = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *ReadPipelineOutput) SetWarnings(v []*Warning) *ReadPipelineOutput { + s.Warnings = v + return s +} + // The ReadPresetRequest structure. type ReadPresetInput struct { _ struct{} `type:"structure"` @@ -4600,6 +6271,12 @@ func (s *ReadPresetInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ReadPresetInput) SetId(v string) *ReadPresetInput { + s.Id = &v + return s +} + // The ReadPresetResponse structure. type ReadPresetOutput struct { _ struct{} `type:"structure"` @@ -4618,9 +6295,15 @@ func (s ReadPresetOutput) GoString() string { return s.String() } +// SetPreset sets the Preset field's value. +func (s *ReadPresetOutput) SetPreset(v *Preset) *ReadPresetOutput { + s.Preset = v + return s +} + // The TestRoleRequest structure. type TestRoleInput struct { - _ struct{} `type:"structure"` + _ struct{} `deprecated:"true" type:"structure"` // The Amazon S3 bucket that contains media files to be transcoded. The action // attempts to read from this bucket. @@ -4628,8 +6311,8 @@ type TestRoleInput struct { // InputBucket is a required field InputBucket *string `type:"string" required:"true"` - // The Amazon S3 bucket that Elastic Transcoder will write transcoded media - // files to. The action attempts to read from this bucket. + // The Amazon S3 bucket that Elastic Transcoder writes transcoded media files + // to. The action attempts to read from this bucket. // // OutputBucket is a required field OutputBucket *string `type:"string" required:"true"` @@ -4679,9 +6362,33 @@ func (s *TestRoleInput) Validate() error { return nil } +// SetInputBucket sets the InputBucket field's value. +func (s *TestRoleInput) SetInputBucket(v string) *TestRoleInput { + s.InputBucket = &v + return s +} + +// SetOutputBucket sets the OutputBucket field's value. +func (s *TestRoleInput) SetOutputBucket(v string) *TestRoleInput { + s.OutputBucket = &v + return s +} + +// SetRole sets the Role field's value. +func (s *TestRoleInput) SetRole(v string) *TestRoleInput { + s.Role = &v + return s +} + +// SetTopics sets the Topics field's value. +func (s *TestRoleInput) SetTopics(v []*string) *TestRoleInput { + s.Topics = v + return s +} + // The TestRoleResponse structure. type TestRoleOutput struct { - _ struct{} `type:"structure"` + _ struct{} `deprecated:"true" type:"structure"` // If the Success element contains false, this value is an array of one or more // error messages that were generated during the test process. @@ -4702,6 +6409,18 @@ func (s TestRoleOutput) GoString() string { return s.String() } +// SetMessages sets the Messages field's value. +func (s *TestRoleOutput) SetMessages(v []*string) *TestRoleOutput { + s.Messages = v + return s +} + +// SetSuccess sets the Success field's value. +func (s *TestRoleOutput) SetSuccess(v string) *TestRoleOutput { + s.Success = &v + return s +} + // Thumbnails for videos. type Thumbnails struct { _ struct{} `type:"structure"` @@ -4711,7 +6430,7 @@ type Thumbnails struct { // instead of Resolution and AspectRatio. The two groups of settings are mutually // exclusive. Do not use them together. // - // The aspect ratio of thumbnails. Valid values include: + // The aspect ratio of thumbnails. Valid values include: // // auto, 1:1, 4:3, 3:2, 16:9 // @@ -4750,33 +6469,40 @@ type Thumbnails struct { // instead of Resolution and AspectRatio. The two groups of settings are mutually // exclusive. Do not use them together. // - // The width and height of thumbnail files in pixels. Specify a value in the + // The width and height of thumbnail files in pixels. Specify a value in the // format width x height where both values are even integers. The values cannot // exceed the width and height that you specified in the Video:Resolution object. Resolution *string `type:"string"` // Specify one of the following values to control scaling of thumbnails: // - // Fit: Elastic Transcoder scales thumbnails so they match the value that - // you specified in thumbnail MaxWidth or MaxHeight settings without exceeding - // the other value. Fill: Elastic Transcoder scales thumbnails so they match - // the value that you specified in thumbnail MaxWidth or MaxHeight settings - // and matches or exceeds the other value. Elastic Transcoder centers the image - // in thumbnails and then crops in the dimension (if any) that exceeds the maximum - // value. Stretch: Elastic Transcoder stretches thumbnails to match the values - // that you specified for thumbnail MaxWidth and MaxHeight settings. If the - // relative proportions of the input video and thumbnails are different, the - // thumbnails will be distorted. Keep: Elastic Transcoder does not scale thumbnails. - // If either dimension of the input video exceeds the values that you specified - // for thumbnail MaxWidth and MaxHeight settings, Elastic Transcoder crops the - // thumbnails. ShrinkToFit: Elastic Transcoder scales thumbnails down so that - // their dimensions match the values that you specified for at least one of - // thumbnail MaxWidth and MaxHeight without exceeding either value. If you specify - // this option, Elastic Transcoder does not scale thumbnails up. ShrinkToFill: - // Elastic Transcoder scales thumbnails down so that their dimensions match - // the values that you specified for at least one of MaxWidth and MaxHeight - // without dropping below either value. If you specify this option, Elastic - // Transcoder does not scale thumbnails up. + // * Fit: Elastic Transcoder scales thumbnails so they match the value that + // you specified in thumbnail MaxWidth or MaxHeight settings without exceeding + // the other value. + // + // * Fill: Elastic Transcoder scales thumbnails so they match the value that + // you specified in thumbnail MaxWidth or MaxHeight settings and matches + // or exceeds the other value. Elastic Transcoder centers the image in thumbnails + // and then crops in the dimension (if any) that exceeds the maximum value. + // + // * Stretch: Elastic Transcoder stretches thumbnails to match the values + // that you specified for thumbnail MaxWidth and MaxHeight settings. If the + // relative proportions of the input video and thumbnails are different, + // the thumbnails will be distorted. + // + // * Keep: Elastic Transcoder does not scale thumbnails. If either dimension + // of the input video exceeds the values that you specified for thumbnail + // MaxWidth and MaxHeight settings, Elastic Transcoder crops the thumbnails. + // + // * ShrinkToFit: Elastic Transcoder scales thumbnails down so that their + // dimensions match the values that you specified for at least one of thumbnail + // MaxWidth and MaxHeight without exceeding either value. If you specify + // this option, Elastic Transcoder does not scale thumbnails up. + // + // * ShrinkToFill: Elastic Transcoder scales thumbnails down so that their + // dimensions match the values that you specified for at least one of MaxWidth + // and MaxHeight without dropping below either value. If you specify this + // option, Elastic Transcoder does not scale thumbnails up. SizingPolicy *string `type:"string"` } @@ -4790,6 +6516,54 @@ func (s Thumbnails) GoString() string { return s.String() } +// SetAspectRatio sets the AspectRatio field's value. +func (s *Thumbnails) SetAspectRatio(v string) *Thumbnails { + s.AspectRatio = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *Thumbnails) SetFormat(v string) *Thumbnails { + s.Format = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *Thumbnails) SetInterval(v string) *Thumbnails { + s.Interval = &v + return s +} + +// SetMaxHeight sets the MaxHeight field's value. +func (s *Thumbnails) SetMaxHeight(v string) *Thumbnails { + s.MaxHeight = &v + return s +} + +// SetMaxWidth sets the MaxWidth field's value. +func (s *Thumbnails) SetMaxWidth(v string) *Thumbnails { + s.MaxWidth = &v + return s +} + +// SetPaddingPolicy sets the PaddingPolicy field's value. +func (s *Thumbnails) SetPaddingPolicy(v string) *Thumbnails { + s.PaddingPolicy = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *Thumbnails) SetResolution(v string) *Thumbnails { + s.Resolution = &v + return s +} + +// SetSizingPolicy sets the SizingPolicy field's value. +func (s *Thumbnails) SetSizingPolicy(v string) *Thumbnails { + s.SizingPolicy = &v + return s +} + // Settings that determine when a clip begins and how long it lasts. type TimeSpan struct { _ struct{} `type:"structure"` @@ -4820,6 +6594,18 @@ func (s TimeSpan) GoString() string { return s.String() } +// SetDuration sets the Duration field's value. +func (s *TimeSpan) SetDuration(v string) *TimeSpan { + s.Duration = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *TimeSpan) SetStartTime(v string) *TimeSpan { + s.StartTime = &v + return s +} + // Details about the timing of a job. type Timing struct { _ struct{} `type:"structure"` @@ -4844,6 +6630,24 @@ func (s Timing) GoString() string { return s.String() } +// SetFinishTimeMillis sets the FinishTimeMillis field's value. +func (s *Timing) SetFinishTimeMillis(v int64) *Timing { + s.FinishTimeMillis = &v + return s +} + +// SetStartTimeMillis sets the StartTimeMillis field's value. +func (s *Timing) SetStartTimeMillis(v int64) *Timing { + s.StartTimeMillis = &v + return s +} + +// SetSubmitTimeMillis sets the SubmitTimeMillis field's value. +func (s *Timing) SetSubmitTimeMillis(v int64) *Timing { + s.SubmitTimeMillis = &v + return s +} + // The UpdatePipelineRequest structure. type UpdatePipelineInput struct { _ struct{} `type:"structure"` @@ -4870,39 +6674,59 @@ type UpdatePipelineInput struct { // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket // object. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // transcoded files and playlists. Permissions (Optional): The Permissions object - // specifies which users you want to have access to transcoded files and the - // type of access you want them to have. You can grant permissions to a maximum - // of 30 users and/or predefined Amazon S3 groups. Grantee Type: Specify the - // type of value that appears in the Grantee object: Canonical: The value in - // the Grantee object is either the canonical user ID for an AWS account or - // an origin access identity for an Amazon CloudFront distribution. For more - // information about canonical user IDs, see Access Control List (ACL) Overview - // in the Amazon Simple Storage Service Developer Guide. For more information - // about using CloudFront origin access identities to require that users use - // CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity - // to Restrict Access to Your Amazon S3 Content. A canonical user ID is not - // the same as an AWS account number. Email: The value in the Grantee object - // is the registered email address of an AWS account. Group: The value in the - // Grantee object is one of the following predefined Amazon S3 groups: AllUsers, - // AuthenticatedUsers, or LogDelivery. Grantee: The AWS user or group that - // you want to have access to transcoded files and playlists. To identify the - // user or group, you can specify the canonical user ID for an AWS account, - // an origin access identity for a CloudFront distribution, the registered email - // address of an AWS account, or a predefined Amazon S3 group Access: The - // permission that you want to give to the AWS user that you specified in Grantee. - // Permissions are granted on the files that Elastic Transcoder adds to the - // bucket, including playlists and video files. Valid values include: READ: - // The grantee can read the objects and metadata for objects that Elastic Transcoder - // adds to the Amazon S3 bucket. READ_ACP: The grantee can read the object ACL - // for objects that Elastic Transcoder adds to the Amazon S3 bucket. WRITE_ACP: - // The grantee can write the ACL for the objects that Elastic Transcoder adds - // to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, READ_ACP, and - // WRITE_ACP permissions for the objects that Elastic Transcoder adds to the - // Amazon S3 bucket. StorageClass: The Amazon S3 storage class, Standard - // or ReducedRedundancy, that you want Elastic Transcoder to assign to the video - // files and playlists that it stores in your Amazon S3 bucket. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save transcoded files and playlists. + // + // * Permissions (Optional): The Permissions object specifies which users + // you want to have access to transcoded files and the type of access you + // want them to have. You can grant permissions to a maximum of 30 users + // and/or predefined Amazon S3 groups. + // + // * Grantee Type: Specify the type of value that appears in the Grantee + // object: + // + // Canonical: The value in the Grantee object is either the canonical user ID + // for an AWS account or an origin access identity for an Amazon CloudFront + // distribution. For more information about canonical user IDs, see Access + // Control List (ACL) Overview in the Amazon Simple Storage Service Developer + // Guide. For more information about using CloudFront origin access identities + // to require that users use CloudFront URLs instead of Amazon S3 URLs, see + // Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content. + // + // A canonical user ID is not the same as an AWS account number. + // + // Email: The value in the Grantee object is the registered email address of + // an AWS account. + // + // Group: The value in the Grantee object is one of the following predefined + // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. + // + // * Grantee: The AWS user or group that you want to have access to transcoded + // files and playlists. To identify the user or group, you can specify the + // canonical user ID for an AWS account, an origin access identity for a + // CloudFront distribution, the registered email address of an AWS account, + // or a predefined Amazon S3 group + // + // * Access: The permission that you want to give to the AWS user that you + // specified in Grantee. Permissions are granted on the files that Elastic + // Transcoder adds to the bucket, including playlists and video files. Valid + // values include: + // + // READ: The grantee can read the objects and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the objects that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the video files and playlists + // that it stores in your Amazon S3 bucket. ContentConfig *PipelineOutputConfig `type:"structure"` // The ID of the pipeline that you want to update. @@ -4920,11 +6744,28 @@ type UpdatePipelineInput struct { // Constraints: Maximum 40 characters Name *string `min:"1" type:"string"` - // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify - // in order to report job status. + // The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic + // that you want to notify to report job status. // // To receive notifications, you must also subscribe to the new topic in the // Amazon SNS console. + // + // * Progressing: The topic ARN for the Amazon Simple Notification Service + // (Amazon SNS) topic that you want to notify when Elastic Transcoder has + // started to process jobs that are added to this pipeline. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Completed: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder has finished processing a job. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Warning: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters a warning condition. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Error: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters an error condition. This is the ARN + // that Amazon SNS returned when you created the topic. Notifications *Notifications `type:"structure"` // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder @@ -4942,34 +6783,53 @@ type UpdatePipelineInput struct { // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket // object. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // thumbnail files. Permissions (Optional): The Permissions object specifies - // which users and/or predefined Amazon S3 groups you want to have access to - // thumbnail files, and the type of access you want them to have. You can grant - // permissions to a maximum of 30 users and/or predefined Amazon S3 groups. - // GranteeType: Specify the type of value that appears in the Grantee object: - // Canonical: The value in the Grantee object is either the canonical user - // ID for an AWS account or an origin access identity for an Amazon CloudFront - // distribution. A canonical user ID is not the same as an AWS account number. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save thumbnail files. + // + // * Permissions (Optional): The Permissions object specifies which users + // and/or predefined Amazon S3 groups you want to have access to thumbnail + // files, and the type of access you want them to have. You can grant permissions + // to a maximum of 30 users and/or predefined Amazon S3 groups. + // + // * GranteeType: Specify the type of value that appears in the Grantee object: + // + // Canonical: The value in the Grantee object is either the canonical user ID + // for an AWS account or an origin access identity for an Amazon CloudFront + // distribution. + // + // A canonical user ID is not the same as an AWS account number. + // // Email: The value in the Grantee object is the registered email address of - // an AWS account. Group: The value in the Grantee object is one of the following - // predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. - // Grantee: The AWS user or group that you want to have access to thumbnail - // files. To identify the user or group, you can specify the canonical user - // ID for an AWS account, an origin access identity for a CloudFront distribution, - // the registered email address of an AWS account, or a predefined Amazon S3 - // group. Access: The permission that you want to give to the AWS user that - // you specified in Grantee. Permissions are granted on the thumbnail files - // that Elastic Transcoder adds to the bucket. Valid values include: READ: - // The grantee can read the thumbnails and metadata for objects that Elastic - // Transcoder adds to the Amazon S3 bucket. READ_ACP: The grantee can read the - // object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. - // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic - // Transcoder adds to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, - // READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder - // adds to the Amazon S3 bucket. StorageClass: The Amazon S3 storage class, - // Standard or ReducedRedundancy, that you want Elastic Transcoder to assign - // to the thumbnails that it stores in your Amazon S3 bucket. + // an AWS account. + // + // Group: The value in the Grantee object is one of the following predefined + // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. + // + // * Grantee: The AWS user or group that you want to have access to thumbnail + // files. To identify the user or group, you can specify the canonical user + // ID for an AWS account, an origin access identity for a CloudFront distribution, + // the registered email address of an AWS account, or a predefined Amazon + // S3 group. + // + // * Access: The permission that you want to give to the AWS user that you + // specified in Grantee. Permissions are granted on the thumbnail files that + // Elastic Transcoder adds to the bucket. Valid values include: + // + // READ: The grantee can read the thumbnails and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the thumbnails that it stores + // in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` } @@ -5009,6 +6869,54 @@ func (s *UpdatePipelineInput) Validate() error { return nil } +// SetAwsKmsKeyArn sets the AwsKmsKeyArn field's value. +func (s *UpdatePipelineInput) SetAwsKmsKeyArn(v string) *UpdatePipelineInput { + s.AwsKmsKeyArn = &v + return s +} + +// SetContentConfig sets the ContentConfig field's value. +func (s *UpdatePipelineInput) SetContentConfig(v *PipelineOutputConfig) *UpdatePipelineInput { + s.ContentConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *UpdatePipelineInput) SetId(v string) *UpdatePipelineInput { + s.Id = &v + return s +} + +// SetInputBucket sets the InputBucket field's value. +func (s *UpdatePipelineInput) SetInputBucket(v string) *UpdatePipelineInput { + s.InputBucket = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdatePipelineInput) SetName(v string) *UpdatePipelineInput { + s.Name = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *UpdatePipelineInput) SetNotifications(v *Notifications) *UpdatePipelineInput { + s.Notifications = v + return s +} + +// SetRole sets the Role field's value. +func (s *UpdatePipelineInput) SetRole(v string) *UpdatePipelineInput { + s.Role = &v + return s +} + +// SetThumbnailConfig sets the ThumbnailConfig field's value. +func (s *UpdatePipelineInput) SetThumbnailConfig(v *PipelineOutputConfig) *UpdatePipelineInput { + s.ThumbnailConfig = v + return s +} + // The UpdatePipelineNotificationsRequest structure. type UpdatePipelineNotificationsInput struct { _ struct{} `type:"structure"` @@ -5023,18 +6931,24 @@ type UpdatePipelineNotificationsInput struct { // that you want to notify to report job status. // // To receive notifications, you must also subscribe to the new topic in the - // Amazon SNS console. Progressing: The topic ARN for the Amazon Simple Notification - // Service (Amazon SNS) topic that you want to notify when Elastic Transcoder - // has started to process jobs that are added to this pipeline. This is the - // ARN that Amazon SNS returned when you created the topic. Completed: The topic - // ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder - // has finished processing a job. This is the ARN that Amazon SNS returned when - // you created the topic. Warning: The topic ARN for the Amazon SNS topic that - // you want to notify when Elastic Transcoder encounters a warning condition. - // This is the ARN that Amazon SNS returned when you created the topic. Error: - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic - // Transcoder encounters an error condition. This is the ARN that Amazon SNS - // returned when you created the topic. + // Amazon SNS console. + // + // * Progressing: The topic ARN for the Amazon Simple Notification Service + // (Amazon SNS) topic that you want to notify when Elastic Transcoder has + // started to process jobs that are added to this pipeline. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Completed: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder has finished processing a job. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Warning: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters a warning condition. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Error: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters an error condition. This is the ARN + // that Amazon SNS returned when you created the topic. // // Notifications is a required field Notifications *Notifications `type:"structure" required:"true"` @@ -5066,11 +6980,24 @@ func (s *UpdatePipelineNotificationsInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *UpdatePipelineNotificationsInput) SetId(v string) *UpdatePipelineNotificationsInput { + s.Id = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *UpdatePipelineNotificationsInput) SetNotifications(v *Notifications) *UpdatePipelineNotificationsInput { + s.Notifications = v + return s +} + // The UpdatePipelineNotificationsResponse structure. type UpdatePipelineNotificationsOutput struct { _ struct{} `type:"structure"` - // A section of the response body that provides information about the pipeline. + // A section of the response body that provides information about the pipeline + // associated with this notification. Pipeline *Pipeline `type:"structure"` } @@ -5084,12 +7011,18 @@ func (s UpdatePipelineNotificationsOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *UpdatePipelineNotificationsOutput) SetPipeline(v *Pipeline) *UpdatePipelineNotificationsOutput { + s.Pipeline = v + return s +} + // When you update a pipeline, Elastic Transcoder returns the values that you // specified in the request. type UpdatePipelineOutput struct { _ struct{} `type:"structure"` - // The pipeline (queue) that is used to manage jobs. + // The pipeline updated by this UpdatePipelineResponse call. Pipeline *Pipeline `type:"structure"` // Elastic Transcoder returns a warning if the resources used by your pipeline @@ -5111,6 +7044,18 @@ func (s UpdatePipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *UpdatePipelineOutput) SetPipeline(v *Pipeline) *UpdatePipelineOutput { + s.Pipeline = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *UpdatePipelineOutput) SetWarnings(v []*Warning) *UpdatePipelineOutput { + s.Warnings = v + return s +} + // The UpdatePipelineStatusRequest structure. type UpdatePipelineStatusInput struct { _ struct{} `type:"structure"` @@ -5122,8 +7067,9 @@ type UpdatePipelineStatusInput struct { // The desired status of the pipeline: // - // Active: The pipeline is processing jobs. Paused: The pipeline is not - // currently processing jobs. + // * Active: The pipeline is processing jobs. + // + // * Paused: The pipeline is not currently processing jobs. // // Status is a required field Status *string `type:"string" required:"true"` @@ -5155,6 +7101,18 @@ func (s *UpdatePipelineStatusInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *UpdatePipelineStatusInput) SetId(v string) *UpdatePipelineStatusInput { + s.Id = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdatePipelineStatusInput) SetStatus(v string) *UpdatePipelineStatusInput { + s.Status = &v + return s +} + // When you update status for a pipeline, Elastic Transcoder returns the values // that you specified in the request. type UpdatePipelineStatusOutput struct { @@ -5174,6 +7132,12 @@ func (s UpdatePipelineStatusOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *UpdatePipelineStatusOutput) SetPipeline(v *Pipeline) *UpdatePipelineStatusOutput { + s.Pipeline = v + return s +} + // The VideoParameters structure. type VideoParameters struct { _ struct{} `type:"structure"` @@ -5183,8 +7147,7 @@ type VideoParameters struct { // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups // of settings are mutually exclusive. Do not use them together. // - // The display aspect ratio of the video in the output file. Valid values - // include: + // The display aspect ratio of the video in the output file. Valid values include: // // auto, 1:1, 4:3, 3:2, 16:9 // @@ -5204,59 +7167,107 @@ type VideoParameters struct { // than or equal to the maximum H.264-compliant value listed for your level // and profile: // - // Level - Maximum video bit rate in kilobits/second (baseline and main Profile) + // Level - Maximum video bit rate in kilobits/second (baseline and main Profile) // : maximum video bit rate in kilobits/second (high Profile) // - // 1 - 64 : 80 1b - 128 : 160 1.1 - 192 : 240 1.2 - 384 : 480 1.3 - 768 : - // 960 2 - 2000 : 2500 3 - 10000 : 12500 3.1 - 14000 : 17500 3.2 - 20000 : 25000 - // 4 - 20000 : 25000 4.1 - 50000 : 62500 + // * 1 - 64 : 80 + // + // * 1b - 128 : 160 + // + // * 1.1 - 192 : 240 + // + // * 1.2 - 384 : 480 + // + // * 1.3 - 768 : 960 + // + // * 2 - 2000 : 2500 + // + // * 3 - 10000 : 12500 + // + // * 3.1 - 14000 : 17500 + // + // * 3.2 - 20000 : 25000 + // + // * 4 - 20000 : 25000 + // + // * 4.1 - 50000 : 62500 BitRate *string `type:"string"` // The video codec for the output file. Valid values include gif, H.264, mpeg2, - // and vp8. You can only specify vp8 when the container type is webm, gif when - // the container type is gif, and mpeg2 when the container type is mpg. + // vp8, and vp9. You can only specify vp8 and vp9 when the container type is + // webm, gif when the container type is gif, and mpeg2 when the container type + // is mpg. Codec *string `type:"string"` - // Profile (H.264/VP8 Only) + // Profile (H.264/VP8/VP9 Only) // // The H.264 profile that you want to use for the output file. Elastic Transcoder // supports the following profiles: // - // baseline: The profile most commonly used for videoconferencing and for - // mobile applications. main: The profile used for standard-definition digital - // TV broadcasts. high: The profile used for high-definition digital TV broadcasts - // and for Blu-ray discs. Level (H.264 Only) + // * baseline: The profile most commonly used for videoconferencing and for + // mobile applications. + // + // * main: The profile used for standard-definition digital TV broadcasts. + // + // * high: The profile used for high-definition digital TV broadcasts and + // for Blu-ray discs. + // + // Level (H.264 Only) // // The H.264 level that you want to use for the output file. Elastic Transcoder // supports the following levels: // // 1, 1b, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1 // - // MaxReferenceFrames (H.264 Only) + // MaxReferenceFrames (H.264 Only) // // Applicable only when the value of Video:Codec is H.264. The maximum number // of previously decoded frames to use as a reference for decoding future frames. // Valid values are integers 0 through 16, but we recommend that you not use // a value greater than the following: // - // Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width - // in pixels * Height in pixels)), 16) + // Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width in + // pixels * Height in pixels)), 16) // // where Width in pixels and Height in pixels represent either MaxWidth and // MaxHeight, or Resolution. Maximum decoded picture buffer in macroblocks depends // on the value of the Level object. See the list below. (A macroblock is a // block of pixels measuring 16x16.) // - // 1 - 396 1b - 396 1.1 - 900 1.2 - 2376 1.3 - 2376 2 - 2376 2.1 - 4752 2.2 - // - 8100 3 - 8100 3.1 - 18000 3.2 - 20480 4 - 32768 4.1 - 32768 MaxBitRate - // (Optional, H.264/MPEG2/VP8 only) + // * 1 - 396 + // + // * 1b - 396 + // + // * 1.1 - 900 + // + // * 1.2 - 2376 + // + // * 1.3 - 2376 + // + // * 2 - 2376 + // + // * 2.1 - 4752 + // + // * 2.2 - 8100 + // + // * 3 - 8100 + // + // * 3.1 - 18000 + // + // * 3.2 - 20480 + // + // * 4 - 32768 + // + // * 4.1 - 32768 + // + // MaxBitRate (Optional, H.264/MPEG2/VP8/VP9 only) // // The maximum number of bits per second in a video buffer; the size of the // buffer is specified by BufferSize. Specify a value between 16 and 62,500. // You can reduce the bandwidth required to stream a video by reducing the maximum // bit rate, but this also reduces the quality of the video. // - // BufferSize (Optional, H.264/MPEG2/VP8 only) + // BufferSize (Optional, H.264/MPEG2/VP8/VP9 only) // // The maximum number of bits in any x seconds of the output video. This window // is commonly 10 seconds, the standard segment duration when you're using FMP4 @@ -5264,15 +7275,15 @@ type VideoParameters struct { // greater than 0. If you specify MaxBitRate and omit BufferSize, Elastic Transcoder // sets BufferSize to 10 times the value of MaxBitRate. // - // InterlacedMode (Optional, H.264/MPEG2 Only) + // InterlacedMode (Optional, H.264/MPEG2 Only) // // The interlace mode for the output video. // - // Interlaced video is used to double the perceived frame rate for a video - // by interlacing two fields (one field on every other line, the other field - // on the other lines) so that the human eye registers multiple pictures per - // frame. Interlacing reduces the bandwidth required for transmitting a video, - // but can result in blurred images and flickering. + // Interlaced video is used to double the perceived frame rate for a video by + // interlacing two fields (one field on every other line, the other field on + // the other lines) so that the human eye registers multiple pictures per frame. + // Interlacing reduces the bandwidth required for transmitting a video, but + // can result in blurred images and flickering. // // Valid values include Progressive (no interlacing, top to bottom), TopFirst // (top field first), BottomFirst (bottom field first), and Auto. @@ -5280,7 +7291,7 @@ type VideoParameters struct { // If InterlaceMode is not specified, Elastic Transcoder uses Progressive for // the output. If Auto is specified, Elastic Transcoder interlaces the output. // - // ColorSpaceConversionMode (Optional, H.264/MPEG2 Only) + // ColorSpaceConversionMode (Optional, H.264/MPEG2 Only) // // The color space conversion Elastic Transcoder applies to the output video. // Color spaces are the algorithms used by the computer to store information @@ -5294,19 +7305,24 @@ type VideoParameters struct { // is null, and you are using one of the resolution changes from the list below, // Elastic Transcoder applies the following color space conversions: // - // Standard to HD, 720x480 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709 - // Standard to HD, 720x576 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709 - // HD to Standard, 1920x1080 to 720x480 - Elastic Transcoder applies Bt709ToBt601 - // HD to Standard, 1920x1080 to 720x576 - Elastic Transcoder applies Bt709ToBt601 - // Elastic Transcoder may change the behavior of the ColorspaceConversionMode - // Auto mode in the future. All outputs in a playlist must use the same ColorSpaceConversionMode. + // * Standard to HD, 720x480 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709 + // + // * Standard to HD, 720x576 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709 + // + // * HD to Standard, 1920x1080 to 720x480 - Elastic Transcoder applies Bt709ToBt601 + // + // * HD to Standard, 1920x1080 to 720x576 - Elastic Transcoder applies Bt709ToBt601 + // + // Elastic Transcoder may change the behavior of the ColorspaceConversionModeAuto + // mode in the future. All outputs in a playlist must use the same ColorSpaceConversionMode. + // // If you do not specify a ColorSpaceConversionMode, Elastic Transcoder does // not change the color space of a file. If you are unsure what ColorSpaceConversionMode // was applied to your output file, you can check the AppliedColorSpaceConversion // parameter included in your job response. If your job does not have an AppliedColorSpaceConversion // in its response, no ColorSpaceConversionMode was applied. // - // ChromaSubsampling + // ChromaSubsampling // // The sampling pattern for the chroma (color) channels of the output video. // Valid values include yuv420p and yuv422p. @@ -5315,7 +7331,7 @@ type VideoParameters struct { // other vertical line, yuv422p samples the color information of every horizontal // line and every other vertical line. // - // LoopCount (Gif Only) + // LoopCount (Gif Only) // // The number of times you want the output gif to loop. Valid values include // Infinite and integers between 0 and 100, inclusive. @@ -5329,10 +7345,13 @@ type VideoParameters struct { // // Whether to use a fixed value for FixedGOP. Valid values are true and false: // - // true: Elastic Transcoder uses the value of KeyframesMaxDist for the distance - // between key frames (the number of frames in a group of pictures, or GOP). - // false: The distance between key frames can vary. FixedGOP must be set to - // true for fmp4 containers. + // * true: Elastic Transcoder uses the value of KeyframesMaxDist for the + // distance between key frames (the number of frames in a group of pictures, + // or GOP). + // + // * false: The distance between key frames can vary. + // + // FixedGOP must be set to true for fmp4 containers. FixedGOP *string `type:"string"` // The frames per second for the video stream in the output file. Valid values @@ -5340,25 +7359,50 @@ type VideoParameters struct { // // auto, 10, 15, 23.97, 24, 25, 29.97, 30, 60 // - // If you specify auto, Elastic Transcoder uses the detected frame rate of - // the input source. If you specify a frame rate, we recommend that you perform + // If you specify auto, Elastic Transcoder uses the detected frame rate of the + // input source. If you specify a frame rate, we recommend that you perform // the following calculation: // - // Frame rate = maximum recommended decoding speed in luma samples/second - // / (width in pixels * height in pixels) + // Frame rate = maximum recommended decoding speed in luma samples/second / + // (width in pixels * height in pixels) // // where: // - // width in pixels and height in pixels represent the Resolution of the output - // video. maximum recommended decoding speed in Luma samples/second is less - // than or equal to the maximum value listed in the following table, based on - // the value that you specified for Level. The maximum recommended decoding - // speed in Luma samples/second for each level is described in the following - // list (Level - Decoding speed): + // * width in pixels and height in pixels represent the Resolution of the + // output video. // - // 1 - 380160 1b - 380160 1.1 - 76800 1.2 - 1536000 1.3 - 3041280 2 - 3041280 - // 2.1 - 5068800 2.2 - 5184000 3 - 10368000 3.1 - 27648000 3.2 - 55296000 4 - // - 62914560 4.1 - 62914560 + // * maximum recommended decoding speed in Luma samples/second is less than + // or equal to the maximum value listed in the following table, based on + // the value that you specified for Level. + // + // The maximum recommended decoding speed in Luma samples/second for each level + // is described in the following list (Level - Decoding speed): + // + // * 1 - 380160 + // + // * 1b - 380160 + // + // * 1.1 - 76800 + // + // * 1.2 - 1536000 + // + // * 1.3 - 3041280 + // + // * 2 - 3041280 + // + // * 2.1 - 5068800 + // + // * 2.2 - 5184000 + // + // * 3 - 10368000 + // + // * 3.1 - 27648000 + // + // * 3.2 - 55296000 + // + // * 4 - 62914560 + // + // * 4.1 - 62914560 FrameRate *string `type:"string"` // Applicable only when the value of Video:Codec is one of H.264, MPEG2, or @@ -5412,48 +7456,86 @@ type VideoParameters struct { // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups // of settings are mutually exclusive. Do not use them together. // - // The width and height of the video in the output file, in pixels. Valid - // values are auto and width x height: + // The width and height of the video in the output file, in pixels. Valid values + // are auto and width x height: // - // auto: Elastic Transcoder attempts to preserve the width and height of the - // input file, subject to the following rules. width x height: The width and - // height of the output video in pixels. Note the following about specifying - // the width and height: + // * auto: Elastic Transcoder attempts to preserve the width and height of + // the input file, subject to the following rules. // - // The width must be an even integer between 128 and 4096, inclusive. The - // height must be an even integer between 96 and 3072, inclusive. If you specify - // a resolution that is less than the resolution of the input file, Elastic - // Transcoder rescales the output file to the lower resolution. If you specify - // a resolution that is greater than the resolution of the input file, Elastic - // Transcoder rescales the output to the higher resolution. We recommend that - // you specify a resolution for which the product of width and height is less - // than or equal to the applicable value in the following list (List - Max width - // x height value): 1 - 25344 1b - 25344 1.1 - 101376 1.2 - 101376 1.3 - 101376 - // 2 - 101376 2.1 - 202752 2.2 - 404720 3 - 404720 3.1 - 921600 3.2 - 1310720 - // 4 - 2097152 4.1 - 2097152 + // * width x height: The width and height of the output video in pixels. + // + // Note the following about specifying the width and height: + // + // * The width must be an even integer between 128 and 4096, inclusive. + // + // * The height must be an even integer between 96 and 3072, inclusive. + // + // * If you specify a resolution that is less than the resolution of the + // input file, Elastic Transcoder rescales the output file to the lower resolution. + // + // * If you specify a resolution that is greater than the resolution of the + // input file, Elastic Transcoder rescales the output to the higher resolution. + // + // * We recommend that you specify a resolution for which the product of + // width and height is less than or equal to the applicable value in the + // following list (List - Max width x height value): + // + // 1 - 25344 + // + // 1b - 25344 + // + // 1.1 - 101376 + // + // 1.2 - 101376 + // + // 1.3 - 101376 + // + // 2 - 101376 + // + // 2.1 - 202752 + // + // 2.2 - 404720 + // + // 3 - 404720 + // + // 3.1 - 921600 + // + // 3.2 - 1310720 + // + // 4 - 2097152 + // + // 4.1 - 2097152 Resolution *string `type:"string"` // Specify one of the following values to control scaling of the output video: // - // Fit: Elastic Transcoder scales the output video so it matches the value - // that you specified in either MaxWidth or MaxHeight without exceeding the - // other value. Fill: Elastic Transcoder scales the output video so it matches - // the value that you specified in either MaxWidth or MaxHeight and matches - // or exceeds the other value. Elastic Transcoder centers the output video and - // then crops it in the dimension (if any) that exceeds the maximum value. Stretch: - // Elastic Transcoder stretches the output video to match the values that you - // specified for MaxWidth and MaxHeight. If the relative proportions of the - // input video and the output video are different, the output video will be - // distorted. Keep: Elastic Transcoder does not scale the output video. If either - // dimension of the input video exceeds the values that you specified for MaxWidth - // and MaxHeight, Elastic Transcoder crops the output video. ShrinkToFit: Elastic - // Transcoder scales the output video down so that its dimensions match the - // values that you specified for at least one of MaxWidth and MaxHeight without - // exceeding either value. If you specify this option, Elastic Transcoder does - // not scale the video up. ShrinkToFill: Elastic Transcoder scales the output - // video down so that its dimensions match the values that you specified for - // at least one of MaxWidth and MaxHeight without dropping below either value. - // If you specify this option, Elastic Transcoder does not scale the video up. + // * Fit: Elastic Transcoder scales the output video so it matches the value + // that you specified in either MaxWidth or MaxHeight without exceeding the + // other value. + // + // * Fill: Elastic Transcoder scales the output video so it matches the value + // that you specified in either MaxWidth or MaxHeight and matches or exceeds + // the other value. Elastic Transcoder centers the output video and then + // crops it in the dimension (if any) that exceeds the maximum value. + // + // * Stretch: Elastic Transcoder stretches the output video to match the + // values that you specified for MaxWidth and MaxHeight. If the relative + // proportions of the input video and the output video are different, the + // output video will be distorted. + // + // * Keep: Elastic Transcoder does not scale the output video. If either + // dimension of the input video exceeds the values that you specified for + // MaxWidth and MaxHeight, Elastic Transcoder crops the output video. + // + // * ShrinkToFit: Elastic Transcoder scales the output video down so that + // its dimensions match the values that you specified for at least one of + // MaxWidth and MaxHeight without exceeding either value. If you specify + // this option, Elastic Transcoder does not scale the video up. + // + // * ShrinkToFill: Elastic Transcoder scales the output video down so that + // its dimensions match the values that you specified for at least one of + // MaxWidth and MaxHeight without dropping below either value. If you specify + // this option, Elastic Transcoder does not scale the video up. SizingPolicy *string `type:"string"` // Settings for the size, location, and opacity of graphics that you want Elastic @@ -5503,6 +7585,96 @@ func (s *VideoParameters) Validate() error { return nil } +// SetAspectRatio sets the AspectRatio field's value. +func (s *VideoParameters) SetAspectRatio(v string) *VideoParameters { + s.AspectRatio = &v + return s +} + +// SetBitRate sets the BitRate field's value. +func (s *VideoParameters) SetBitRate(v string) *VideoParameters { + s.BitRate = &v + return s +} + +// SetCodec sets the Codec field's value. +func (s *VideoParameters) SetCodec(v string) *VideoParameters { + s.Codec = &v + return s +} + +// SetCodecOptions sets the CodecOptions field's value. +func (s *VideoParameters) SetCodecOptions(v map[string]*string) *VideoParameters { + s.CodecOptions = v + return s +} + +// SetDisplayAspectRatio sets the DisplayAspectRatio field's value. +func (s *VideoParameters) SetDisplayAspectRatio(v string) *VideoParameters { + s.DisplayAspectRatio = &v + return s +} + +// SetFixedGOP sets the FixedGOP field's value. +func (s *VideoParameters) SetFixedGOP(v string) *VideoParameters { + s.FixedGOP = &v + return s +} + +// SetFrameRate sets the FrameRate field's value. +func (s *VideoParameters) SetFrameRate(v string) *VideoParameters { + s.FrameRate = &v + return s +} + +// SetKeyframesMaxDist sets the KeyframesMaxDist field's value. +func (s *VideoParameters) SetKeyframesMaxDist(v string) *VideoParameters { + s.KeyframesMaxDist = &v + return s +} + +// SetMaxFrameRate sets the MaxFrameRate field's value. +func (s *VideoParameters) SetMaxFrameRate(v string) *VideoParameters { + s.MaxFrameRate = &v + return s +} + +// SetMaxHeight sets the MaxHeight field's value. +func (s *VideoParameters) SetMaxHeight(v string) *VideoParameters { + s.MaxHeight = &v + return s +} + +// SetMaxWidth sets the MaxWidth field's value. +func (s *VideoParameters) SetMaxWidth(v string) *VideoParameters { + s.MaxWidth = &v + return s +} + +// SetPaddingPolicy sets the PaddingPolicy field's value. +func (s *VideoParameters) SetPaddingPolicy(v string) *VideoParameters { + s.PaddingPolicy = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *VideoParameters) SetResolution(v string) *VideoParameters { + s.Resolution = &v + return s +} + +// SetSizingPolicy sets the SizingPolicy field's value. +func (s *VideoParameters) SetSizingPolicy(v string) *VideoParameters { + s.SizingPolicy = &v + return s +} + +// SetWatermarks sets the Watermarks field's value. +func (s *VideoParameters) SetWatermarks(v []*PresetWatermark) *VideoParameters { + s.Watermarks = v + return s +} + // Elastic Transcoder returns a warning if the resources used by your pipeline // are not in the same region as the pipeline. // @@ -5518,7 +7690,7 @@ type Warning struct { // The message explaining what resources are in a different region from the // pipeline. // - // Note: AWS KMS keys must be in the same region as the pipeline. + // AWS KMS keys must be in the same region as the pipeline. Message *string `type:"string"` } @@ -5531,3 +7703,15 @@ func (s Warning) String() string { func (s Warning) GoString() string { return s.String() } + +// SetCode sets the Code field's value. +func (s *Warning) SetCode(v string) *Warning { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Warning) SetMessage(v string) *Warning { + s.Message = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/api.go b/vendor/github.com/aws/aws-sdk-go/service/elb/api.go index 025f5e53e..c9d587361 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/api.go @@ -367,8 +367,8 @@ func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStick // policy configuration. The load balancer only inserts a new stickiness cookie // when the application response includes a new application cookie. // -// If the application cookie is explicitly removed or expires, the session -// stops being sticky until a new application cookie is issued. +// If the application cookie is explicitly removed or expires, the session stops +// being sticky until a new application cookie is issued. // // For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application) // in the Classic Load Balancers Guide. @@ -812,11 +812,11 @@ func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *re // // Deletes the specified load balancer. // -// If you are attempting to recreate a load balancer, you must reconfigure -// all settings. The DNS name associated with a deleted load balancer are no -// longer usable. The name and associated DNS record of the deleted load balancer -// no longer exist and traffic sent to any of its IP addresses is no longer -// delivered to your instances. +// If you are attempting to recreate a load balancer, you must reconfigure all +// settings. The DNS name associated with a deleted load balancer are no longer +// usable. The name and associated DNS record of the deleted load balancer no +// longer exist and traffic sent to any of its IP addresses is no longer delivered +// to your instances. // // If the load balancer does not exist or has already been deleted, the call // to DeleteLoadBalancer still succeeds. @@ -1301,10 +1301,10 @@ func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancer // Describes the specified load balancer policy types or all load balancer policy // types. // -// The description of each type indicates how it can be used. For example, -// some policies can be used only with layer 7 listeners, some policies can -// be used only with layer 4 listeners, and some policies can be used only with -// your EC2 instances. +// The description of each type indicates how it can be used. For example, some +// policies can be used only with layer 7 listeners, some policies can be used +// only with layer 4 listeners, and some policies can be used only with your +// EC2 instances. // // You can use CreateLoadBalancerPolicy to create a policy configuration for // any of these policy types. Then, depending on the policy type, use either @@ -1688,8 +1688,8 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailab // Adds the specified Availability Zones to the set of Availability Zones for // the specified load balancer. // -// The load balancer evenly distributes requests across all its registered -// Availability Zones that contain instances. +// The load balancer evenly distributes requests across all its registered Availability +// Zones that contain instances. // // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html) // in the Classic Load Balancers Guide. @@ -1765,13 +1765,13 @@ func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttri // // For more information, see the following in the Classic Load Balancers Guide: // -// Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html) +// * Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html) // -// Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html) +// * Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html) // -// Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html) +// * Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html) // -// Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html) +// * Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html) // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1843,9 +1843,9 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW // // Adds the specified instances to the specified load balancer. // -// The instance must be a running instance in the same network as the load -// balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances -// and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic +// The instance must be a running instance in the same network as the load balancer +// (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load +// balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic // instances to that VPC and then register the linked EC2-Classic instances // with the load balancer in the VPC. // @@ -2084,9 +2084,8 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalan // the back-end server authentication policy type can be applied to the instance // ports; this policy type is composed of multiple public key policies. // -// Each time you use SetLoadBalancerPoliciesForBackendServer to enable the -// policies, use the PolicyNames parameter to list the policies that you want -// to enable. +// Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies, +// use the PolicyNames parameter to list the policies that you want to enable. // // You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify // that the policy is associated with the EC2 instance. @@ -2249,6 +2248,30 @@ func (s *AccessLog) Validate() error { return nil } +// SetEmitInterval sets the EmitInterval field's value. +func (s *AccessLog) SetEmitInterval(v int64) *AccessLog { + s.EmitInterval = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *AccessLog) SetEnabled(v bool) *AccessLog { + s.Enabled = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *AccessLog) SetS3BucketName(v string) *AccessLog { + s.S3BucketName = &v + return s +} + +// SetS3BucketPrefix sets the S3BucketPrefix field's value. +func (s *AccessLog) SetS3BucketPrefix(v string) *AccessLog { + s.S3BucketPrefix = &v + return s +} + // Contains the parameters for AddTags. type AddTagsInput struct { _ struct{} `type:"structure"` @@ -2303,6 +2326,18 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *AddTagsInput) SetLoadBalancerNames(v []*string) *AddTagsInput { + s.LoadBalancerNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + // Contains the output of AddTags. type AddTagsOutput struct { _ struct{} `type:"structure"` @@ -2339,6 +2374,18 @@ func (s AdditionalAttribute) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *AdditionalAttribute) SetKey(v string) *AdditionalAttribute { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AdditionalAttribute) SetValue(v string) *AdditionalAttribute { + s.Value = &v + return s +} + // Information about a policy for application-controlled session stickiness. type AppCookieStickinessPolicy struct { _ struct{} `type:"structure"` @@ -2361,6 +2408,18 @@ func (s AppCookieStickinessPolicy) GoString() string { return s.String() } +// SetCookieName sets the CookieName field's value. +func (s *AppCookieStickinessPolicy) SetCookieName(v string) *AppCookieStickinessPolicy { + s.CookieName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *AppCookieStickinessPolicy) SetPolicyName(v string) *AppCookieStickinessPolicy { + s.PolicyName = &v + return s +} + // Contains the parameters for ApplySecurityGroupsToLoadBalancer. type ApplySecurityGroupsToLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -2403,6 +2462,18 @@ func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *ApplySecurityGroupsToLoadBalancerInput) SetLoadBalancerName(v string) *ApplySecurityGroupsToLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *ApplySecurityGroupsToLoadBalancerInput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerInput { + s.SecurityGroups = v + return s +} + // Contains the output of ApplySecurityGroupsToLoadBalancer. type ApplySecurityGroupsToLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -2421,6 +2492,12 @@ func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string { return s.String() } +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *ApplySecurityGroupsToLoadBalancerOutput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerOutput { + s.SecurityGroups = v + return s +} + // Contains the parameters for AttachLoaBalancerToSubnets. type AttachLoadBalancerToSubnetsInput struct { _ struct{} `type:"structure"` @@ -2463,6 +2540,18 @@ func (s *AttachLoadBalancerToSubnetsInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *AttachLoadBalancerToSubnetsInput) SetLoadBalancerName(v string) *AttachLoadBalancerToSubnetsInput { + s.LoadBalancerName = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *AttachLoadBalancerToSubnetsInput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsInput { + s.Subnets = v + return s +} + // Contains the output of AttachLoadBalancerToSubnets. type AttachLoadBalancerToSubnetsOutput struct { _ struct{} `type:"structure"` @@ -2481,6 +2570,12 @@ func (s AttachLoadBalancerToSubnetsOutput) GoString() string { return s.String() } +// SetSubnets sets the Subnets field's value. +func (s *AttachLoadBalancerToSubnetsOutput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsOutput { + s.Subnets = v + return s +} + // Information about the configuration of an EC2 instance. type BackendServerDescription struct { _ struct{} `type:"structure"` @@ -2502,6 +2597,18 @@ func (s BackendServerDescription) GoString() string { return s.String() } +// SetInstancePort sets the InstancePort field's value. +func (s *BackendServerDescription) SetInstancePort(v int64) *BackendServerDescription { + s.InstancePort = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *BackendServerDescription) SetPolicyNames(v []*string) *BackendServerDescription { + s.PolicyNames = v + return s +} + // Contains the parameters for ConfigureHealthCheck. type ConfigureHealthCheckInput struct { _ struct{} `type:"structure"` @@ -2548,6 +2655,18 @@ func (s *ConfigureHealthCheckInput) Validate() error { return nil } +// SetHealthCheck sets the HealthCheck field's value. +func (s *ConfigureHealthCheckInput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckInput { + s.HealthCheck = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *ConfigureHealthCheckInput) SetLoadBalancerName(v string) *ConfigureHealthCheckInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of ConfigureHealthCheck. type ConfigureHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -2566,6 +2685,12 @@ func (s ConfigureHealthCheckOutput) GoString() string { return s.String() } +// SetHealthCheck sets the HealthCheck field's value. +func (s *ConfigureHealthCheckOutput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckOutput { + s.HealthCheck = v + return s +} + // Information about the ConnectionDraining attribute. type ConnectionDraining struct { _ struct{} `type:"structure"` @@ -2603,6 +2728,18 @@ func (s *ConnectionDraining) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *ConnectionDraining) SetEnabled(v bool) *ConnectionDraining { + s.Enabled = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *ConnectionDraining) SetTimeout(v int64) *ConnectionDraining { + s.Timeout = &v + return s +} + // Information about the ConnectionSettings attribute. type ConnectionSettings struct { _ struct{} `type:"structure"` @@ -2640,6 +2777,12 @@ func (s *ConnectionSettings) Validate() error { return nil } +// SetIdleTimeout sets the IdleTimeout field's value. +func (s *ConnectionSettings) SetIdleTimeout(v int64) *ConnectionSettings { + s.IdleTimeout = &v + return s +} + // Contains the parameters for CreateAppCookieStickinessPolicy. type CreateAppCookieStickinessPolicyInput struct { _ struct{} `type:"structure"` @@ -2691,6 +2834,24 @@ func (s *CreateAppCookieStickinessPolicyInput) Validate() error { return nil } +// SetCookieName sets the CookieName field's value. +func (s *CreateAppCookieStickinessPolicyInput) SetCookieName(v string) *CreateAppCookieStickinessPolicyInput { + s.CookieName = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateAppCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateAppCookieStickinessPolicyInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreateAppCookieStickinessPolicyInput) SetPolicyName(v string) *CreateAppCookieStickinessPolicyInput { + s.PolicyName = &v + return s +} + // Contains the output for CreateAppCookieStickinessPolicy. type CreateAppCookieStickinessPolicyOutput struct { _ struct{} `type:"structure"` @@ -2755,6 +2916,24 @@ func (s *CreateLBCookieStickinessPolicyInput) Validate() error { return nil } +// SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value. +func (s *CreateLBCookieStickinessPolicyInput) SetCookieExpirationPeriod(v int64) *CreateLBCookieStickinessPolicyInput { + s.CookieExpirationPeriod = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLBCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateLBCookieStickinessPolicyInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreateLBCookieStickinessPolicyInput) SetPolicyName(v string) *CreateLBCookieStickinessPolicyInput { + s.PolicyName = &v + return s +} + // Contains the output for CreateLBCookieStickinessPolicy. type CreateLBCookieStickinessPolicyOutput struct { _ struct{} `type:"structure"` @@ -2875,6 +3054,48 @@ func (s *CreateLoadBalancerInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *CreateLoadBalancerInput) SetAvailabilityZones(v []*string) *CreateLoadBalancerInput { + s.AvailabilityZones = v + return s +} + +// SetListeners sets the Listeners field's value. +func (s *CreateLoadBalancerInput) SetListeners(v []*Listener) *CreateLoadBalancerInput { + s.Listeners = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLoadBalancerInput) SetLoadBalancerName(v string) *CreateLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + +// SetScheme sets the Scheme field's value. +func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput { + s.Scheme = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput { + s.SecurityGroups = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput { + s.Subnets = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput { + s.Tags = v + return s +} + // Contains the parameters for CreateLoadBalancerListeners. type CreateLoadBalancerListenersInput struct { _ struct{} `type:"structure"` @@ -2926,6 +3147,18 @@ func (s *CreateLoadBalancerListenersInput) Validate() error { return nil } +// SetListeners sets the Listeners field's value. +func (s *CreateLoadBalancerListenersInput) SetListeners(v []*Listener) *CreateLoadBalancerListenersInput { + s.Listeners = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLoadBalancerListenersInput) SetLoadBalancerName(v string) *CreateLoadBalancerListenersInput { + s.LoadBalancerName = &v + return s +} + // Contains the parameters for CreateLoadBalancerListener. type CreateLoadBalancerListenersOutput struct { _ struct{} `type:"structure"` @@ -2959,6 +3192,12 @@ func (s CreateLoadBalancerOutput) GoString() string { return s.String() } +// SetDNSName sets the DNSName field's value. +func (s *CreateLoadBalancerOutput) SetDNSName(v string) *CreateLoadBalancerOutput { + s.DNSName = &v + return s +} + // Contains the parameters for CreateLoadBalancerPolicy. type CreateLoadBalancerPolicyInput struct { _ struct{} `type:"structure"` @@ -3012,6 +3251,30 @@ func (s *CreateLoadBalancerPolicyInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLoadBalancerPolicyInput) SetLoadBalancerName(v string) *CreateLoadBalancerPolicyInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyAttributes sets the PolicyAttributes field's value. +func (s *CreateLoadBalancerPolicyInput) SetPolicyAttributes(v []*PolicyAttribute) *CreateLoadBalancerPolicyInput { + s.PolicyAttributes = v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreateLoadBalancerPolicyInput) SetPolicyName(v string) *CreateLoadBalancerPolicyInput { + s.PolicyName = &v + return s +} + +// SetPolicyTypeName sets the PolicyTypeName field's value. +func (s *CreateLoadBalancerPolicyInput) SetPolicyTypeName(v string) *CreateLoadBalancerPolicyInput { + s.PolicyTypeName = &v + return s +} + // Contains the output of CreateLoadBalancerPolicy. type CreateLoadBalancerPolicyOutput struct { _ struct{} `type:"structure"` @@ -3060,6 +3323,12 @@ func (s *CrossZoneLoadBalancing) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *CrossZoneLoadBalancing) SetEnabled(v bool) *CrossZoneLoadBalancing { + s.Enabled = &v + return s +} + // Contains the parameters for DeleteLoadBalancer. type DeleteLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -3093,6 +3362,12 @@ func (s *DeleteLoadBalancerInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeleteLoadBalancerInput) SetLoadBalancerName(v string) *DeleteLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the parameters for DeleteLoadBalancerListeners. type DeleteLoadBalancerListenersInput struct { _ struct{} `type:"structure"` @@ -3134,6 +3409,18 @@ func (s *DeleteLoadBalancerListenersInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerName(v string) *DeleteLoadBalancerListenersInput { + s.LoadBalancerName = &v + return s +} + +// SetLoadBalancerPorts sets the LoadBalancerPorts field's value. +func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerPorts(v []*int64) *DeleteLoadBalancerListenersInput { + s.LoadBalancerPorts = v + return s +} + // Contains the output of DeleteLoadBalancerListeners. type DeleteLoadBalancerListenersOutput struct { _ struct{} `type:"structure"` @@ -3205,6 +3492,18 @@ func (s *DeleteLoadBalancerPolicyInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeleteLoadBalancerPolicyInput) SetLoadBalancerName(v string) *DeleteLoadBalancerPolicyInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteLoadBalancerPolicyInput) SetPolicyName(v string) *DeleteLoadBalancerPolicyInput { + s.PolicyName = &v + return s +} + // Contains the output of DeleteLoadBalancerPolicy. type DeleteLoadBalancerPolicyOutput struct { _ struct{} `type:"structure"` @@ -3261,6 +3560,18 @@ func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error { return nil } +// SetInstances sets the Instances field's value. +func (s *DeregisterInstancesFromLoadBalancerInput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerInput { + s.Instances = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeregisterInstancesFromLoadBalancerInput) SetLoadBalancerName(v string) *DeregisterInstancesFromLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of DeregisterInstancesFromLoadBalancer. type DeregisterInstancesFromLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -3279,6 +3590,12 @@ func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *DeregisterInstancesFromLoadBalancerOutput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerOutput { + s.Instances = v + return s +} + // Contains the parameters for DescribeInstanceHealth. type DescribeInstanceHealthInput struct { _ struct{} `type:"structure"` @@ -3315,6 +3632,18 @@ func (s *DescribeInstanceHealthInput) Validate() error { return nil } +// SetInstances sets the Instances field's value. +func (s *DescribeInstanceHealthInput) SetInstances(v []*Instance) *DescribeInstanceHealthInput { + s.Instances = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DescribeInstanceHealthInput) SetLoadBalancerName(v string) *DescribeInstanceHealthInput { + s.LoadBalancerName = &v + return s +} + // Contains the output for DescribeInstanceHealth. type DescribeInstanceHealthOutput struct { _ struct{} `type:"structure"` @@ -3333,6 +3662,12 @@ func (s DescribeInstanceHealthOutput) GoString() string { return s.String() } +// SetInstanceStates sets the InstanceStates field's value. +func (s *DescribeInstanceHealthOutput) SetInstanceStates(v []*InstanceState) *DescribeInstanceHealthOutput { + s.InstanceStates = v + return s +} + // Contains the parameters for DescribeLoadBalancerAttributes. type DescribeLoadBalancerAttributesInput struct { _ struct{} `type:"structure"` @@ -3366,6 +3701,12 @@ func (s *DescribeLoadBalancerAttributesInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerAttributesInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of DescribeLoadBalancerAttributes. type DescribeLoadBalancerAttributesOutput struct { _ struct{} `type:"structure"` @@ -3384,6 +3725,12 @@ func (s DescribeLoadBalancerAttributesOutput) GoString() string { return s.String() } +// SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value. +func (s *DescribeLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *DescribeLoadBalancerAttributesOutput { + s.LoadBalancerAttributes = v + return s +} + // Contains the parameters for DescribeLoadBalancerPolicies. type DescribeLoadBalancerPoliciesInput struct { _ struct{} `type:"structure"` @@ -3405,6 +3752,18 @@ func (s DescribeLoadBalancerPoliciesInput) GoString() string { return s.String() } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DescribeLoadBalancerPoliciesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerPoliciesInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *DescribeLoadBalancerPoliciesInput) SetPolicyNames(v []*string) *DescribeLoadBalancerPoliciesInput { + s.PolicyNames = v + return s +} + // Contains the output of DescribeLoadBalancerPolicies. type DescribeLoadBalancerPoliciesOutput struct { _ struct{} `type:"structure"` @@ -3423,6 +3782,12 @@ func (s DescribeLoadBalancerPoliciesOutput) GoString() string { return s.String() } +// SetPolicyDescriptions sets the PolicyDescriptions field's value. +func (s *DescribeLoadBalancerPoliciesOutput) SetPolicyDescriptions(v []*PolicyDescription) *DescribeLoadBalancerPoliciesOutput { + s.PolicyDescriptions = v + return s +} + // Contains the parameters for DescribeLoadBalancerPolicyTypes. type DescribeLoadBalancerPolicyTypesInput struct { _ struct{} `type:"structure"` @@ -3442,6 +3807,12 @@ func (s DescribeLoadBalancerPolicyTypesInput) GoString() string { return s.String() } +// SetPolicyTypeNames sets the PolicyTypeNames field's value. +func (s *DescribeLoadBalancerPolicyTypesInput) SetPolicyTypeNames(v []*string) *DescribeLoadBalancerPolicyTypesInput { + s.PolicyTypeNames = v + return s +} + // Contains the output of DescribeLoadBalancerPolicyTypes. type DescribeLoadBalancerPolicyTypesOutput struct { _ struct{} `type:"structure"` @@ -3460,6 +3831,12 @@ func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string { return s.String() } +// SetPolicyTypeDescriptions sets the PolicyTypeDescriptions field's value. +func (s *DescribeLoadBalancerPolicyTypesOutput) SetPolicyTypeDescriptions(v []*PolicyTypeDescription) *DescribeLoadBalancerPolicyTypesOutput { + s.PolicyTypeDescriptions = v + return s +} + // Contains the parameters for DescribeLoadBalancers. type DescribeLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -3499,6 +3876,24 @@ func (s *DescribeLoadBalancersInput) Validate() error { return nil } +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *DescribeLoadBalancersInput) SetLoadBalancerNames(v []*string) *DescribeLoadBalancersInput { + s.LoadBalancerNames = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput { + s.PageSize = &v + return s +} + // Contains the parameters for DescribeLoadBalancers. type DescribeLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -3521,6 +3916,18 @@ func (s DescribeLoadBalancersOutput) GoString() string { return s.String() } +// SetLoadBalancerDescriptions sets the LoadBalancerDescriptions field's value. +func (s *DescribeLoadBalancersOutput) SetLoadBalancerDescriptions(v []*LoadBalancerDescription) *DescribeLoadBalancersOutput { + s.LoadBalancerDescriptions = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput { + s.NextMarker = &v + return s +} + // Contains the parameters for DescribeTags. type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -3557,6 +3964,12 @@ func (s *DescribeTagsInput) Validate() error { return nil } +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *DescribeTagsInput) SetLoadBalancerNames(v []*string) *DescribeTagsInput { + s.LoadBalancerNames = v + return s +} + // Contains the output for DescribeTags. type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -3575,6 +3988,12 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetTagDescriptions sets the TagDescriptions field's value. +func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput { + s.TagDescriptions = v + return s +} + // Contains the parameters for DetachLoadBalancerFromSubnets. type DetachLoadBalancerFromSubnetsInput struct { _ struct{} `type:"structure"` @@ -3616,6 +4035,18 @@ func (s *DetachLoadBalancerFromSubnetsInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DetachLoadBalancerFromSubnetsInput) SetLoadBalancerName(v string) *DetachLoadBalancerFromSubnetsInput { + s.LoadBalancerName = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *DetachLoadBalancerFromSubnetsInput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsInput { + s.Subnets = v + return s +} + // Contains the output of DetachLoadBalancerFromSubnets. type DetachLoadBalancerFromSubnetsOutput struct { _ struct{} `type:"structure"` @@ -3634,6 +4065,12 @@ func (s DetachLoadBalancerFromSubnetsOutput) GoString() string { return s.String() } +// SetSubnets sets the Subnets field's value. +func (s *DetachLoadBalancerFromSubnetsOutput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsOutput { + s.Subnets = v + return s +} + // Contains the parameters for DisableAvailabilityZonesForLoadBalancer. type DisableAvailabilityZonesForLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -3675,6 +4112,18 @@ func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DisableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerInput { + s.AvailabilityZones = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DisableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *DisableAvailabilityZonesForLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the output for DisableAvailabilityZonesForLoadBalancer. type DisableAvailabilityZonesForLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -3693,6 +4142,12 @@ func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DisableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerOutput { + s.AvailabilityZones = v + return s +} + // Contains the parameters for EnableAvailabilityZonesForLoadBalancer. type EnableAvailabilityZonesForLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -3734,6 +4189,18 @@ func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *EnableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerInput { + s.AvailabilityZones = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *EnableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *EnableAvailabilityZonesForLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of EnableAvailabilityZonesForLoadBalancer. type EnableAvailabilityZonesForLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -3752,6 +4219,12 @@ func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *EnableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerOutput { + s.AvailabilityZones = v + return s +} + // Information about a health check. type HealthCheck struct { _ struct{} `type:"structure"` @@ -3852,6 +4325,36 @@ func (s *HealthCheck) Validate() error { return nil } +// SetHealthyThreshold sets the HealthyThreshold field's value. +func (s *HealthCheck) SetHealthyThreshold(v int64) *HealthCheck { + s.HealthyThreshold = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *HealthCheck) SetInterval(v int64) *HealthCheck { + s.Interval = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *HealthCheck) SetTarget(v string) *HealthCheck { + s.Target = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *HealthCheck) SetTimeout(v int64) *HealthCheck { + s.Timeout = &v + return s +} + +// SetUnhealthyThreshold sets the UnhealthyThreshold field's value. +func (s *HealthCheck) SetUnhealthyThreshold(v int64) *HealthCheck { + s.UnhealthyThreshold = &v + return s +} + // The ID of an EC2 instance. type Instance struct { _ struct{} `type:"structure"` @@ -3870,6 +4373,12 @@ func (s Instance) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + // Information about the state of an EC2 instance. type InstanceState struct { _ struct{} `type:"structure"` @@ -3877,32 +4386,32 @@ type InstanceState struct { // A description of the instance state. This string can contain one or more // of the following messages. // - // N/A + // * N/A // - // A transient error occurred. Please try again later. + // * A transient error occurred. Please try again later. // - // Instance has failed at least the UnhealthyThreshold number of health - // checks consecutively. + // * Instance has failed at least the UnhealthyThreshold number of health + // checks consecutively. // - // Instance has not passed the configured HealthyThreshold number of health - // checks consecutively. + // * Instance has not passed the configured HealthyThreshold number of health + // checks consecutively. // - // Instance registration is still in progress. + // * Instance registration is still in progress. // - // Instance is in the EC2 Availability Zone for which LoadBalancer is not - // configured to route traffic to. + // * Instance is in the EC2 Availability Zone for which LoadBalancer is not + // configured to route traffic to. // - // Instance is not currently registered with the LoadBalancer. + // * Instance is not currently registered with the LoadBalancer. // - // Instance deregistration currently in progress. + // * Instance deregistration currently in progress. // - // Disable Availability Zone is currently in progress. + // * Disable Availability Zone is currently in progress. // - // Instance is in pending state. + // * Instance is in pending state. // - // Instance is in stopped state. + // * Instance is in stopped state. // - // Instance is in terminated state. + // * Instance is in terminated state. Description *string `type:"string"` // The ID of the instance. @@ -3930,6 +4439,30 @@ func (s InstanceState) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *InstanceState) SetDescription(v string) *InstanceState { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceState) SetInstanceId(v string) *InstanceState { + s.InstanceId = &v + return s +} + +// SetReasonCode sets the ReasonCode field's value. +func (s *InstanceState) SetReasonCode(v string) *InstanceState { + s.ReasonCode = &v + return s +} + +// SetState sets the State field's value. +func (s *InstanceState) SetState(v string) *InstanceState { + s.State = &v + return s +} + // Information about a policy for duration-based session stickiness. type LBCookieStickinessPolicy struct { _ struct{} `type:"structure"` @@ -3954,6 +4487,18 @@ func (s LBCookieStickinessPolicy) GoString() string { return s.String() } +// SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value. +func (s *LBCookieStickinessPolicy) SetCookieExpirationPeriod(v int64) *LBCookieStickinessPolicy { + s.CookieExpirationPeriod = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *LBCookieStickinessPolicy) SetPolicyName(v string) *LBCookieStickinessPolicy { + s.PolicyName = &v + return s +} + // Information about a listener. // // For information about the protocols and the ports supported by Elastic Load @@ -3970,8 +4515,8 @@ type Listener struct { // The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or // SSL. // - // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol - // must be at the same protocol. + // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must + // be at the same protocol. // // If there is another listener with the same InstancePort whose InstanceProtocol // is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure. @@ -4029,6 +4574,36 @@ func (s *Listener) Validate() error { return nil } +// SetInstancePort sets the InstancePort field's value. +func (s *Listener) SetInstancePort(v int64) *Listener { + s.InstancePort = &v + return s +} + +// SetInstanceProtocol sets the InstanceProtocol field's value. +func (s *Listener) SetInstanceProtocol(v string) *Listener { + s.InstanceProtocol = &v + return s +} + +// SetLoadBalancerPort sets the LoadBalancerPort field's value. +func (s *Listener) SetLoadBalancerPort(v int64) *Listener { + s.LoadBalancerPort = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Listener) SetProtocol(v string) *Listener { + s.Protocol = &v + return s +} + +// SetSSLCertificateId sets the SSLCertificateId field's value. +func (s *Listener) SetSSLCertificateId(v string) *Listener { + s.SSLCertificateId = &v + return s +} + // The policies enabled for a listener. type ListenerDescription struct { _ struct{} `type:"structure"` @@ -4054,6 +4629,18 @@ func (s ListenerDescription) GoString() string { return s.String() } +// SetListener sets the Listener field's value. +func (s *ListenerDescription) SetListener(v *Listener) *ListenerDescription { + s.Listener = v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListenerDescription) SetPolicyNames(v []*string) *ListenerDescription { + s.PolicyNames = v + return s +} + // The attributes for a load balancer. type LoadBalancerAttributes struct { _ struct{} `type:"structure"` @@ -4132,6 +4719,36 @@ func (s *LoadBalancerAttributes) Validate() error { return nil } +// SetAccessLog sets the AccessLog field's value. +func (s *LoadBalancerAttributes) SetAccessLog(v *AccessLog) *LoadBalancerAttributes { + s.AccessLog = v + return s +} + +// SetAdditionalAttributes sets the AdditionalAttributes field's value. +func (s *LoadBalancerAttributes) SetAdditionalAttributes(v []*AdditionalAttribute) *LoadBalancerAttributes { + s.AdditionalAttributes = v + return s +} + +// SetConnectionDraining sets the ConnectionDraining field's value. +func (s *LoadBalancerAttributes) SetConnectionDraining(v *ConnectionDraining) *LoadBalancerAttributes { + s.ConnectionDraining = v + return s +} + +// SetConnectionSettings sets the ConnectionSettings field's value. +func (s *LoadBalancerAttributes) SetConnectionSettings(v *ConnectionSettings) *LoadBalancerAttributes { + s.ConnectionSettings = v + return s +} + +// SetCrossZoneLoadBalancing sets the CrossZoneLoadBalancing field's value. +func (s *LoadBalancerAttributes) SetCrossZoneLoadBalancing(v *CrossZoneLoadBalancing) *LoadBalancerAttributes { + s.CrossZoneLoadBalancing = v + return s +} + // Information about a load balancer. type LoadBalancerDescription struct { _ struct{} `type:"structure"` @@ -4208,6 +4825,102 @@ func (s LoadBalancerDescription) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *LoadBalancerDescription) SetAvailabilityZones(v []*string) *LoadBalancerDescription { + s.AvailabilityZones = v + return s +} + +// SetBackendServerDescriptions sets the BackendServerDescriptions field's value. +func (s *LoadBalancerDescription) SetBackendServerDescriptions(v []*BackendServerDescription) *LoadBalancerDescription { + s.BackendServerDescriptions = v + return s +} + +// SetCanonicalHostedZoneName sets the CanonicalHostedZoneName field's value. +func (s *LoadBalancerDescription) SetCanonicalHostedZoneName(v string) *LoadBalancerDescription { + s.CanonicalHostedZoneName = &v + return s +} + +// SetCanonicalHostedZoneNameID sets the CanonicalHostedZoneNameID field's value. +func (s *LoadBalancerDescription) SetCanonicalHostedZoneNameID(v string) *LoadBalancerDescription { + s.CanonicalHostedZoneNameID = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *LoadBalancerDescription) SetCreatedTime(v time.Time) *LoadBalancerDescription { + s.CreatedTime = &v + return s +} + +// SetDNSName sets the DNSName field's value. +func (s *LoadBalancerDescription) SetDNSName(v string) *LoadBalancerDescription { + s.DNSName = &v + return s +} + +// SetHealthCheck sets the HealthCheck field's value. +func (s *LoadBalancerDescription) SetHealthCheck(v *HealthCheck) *LoadBalancerDescription { + s.HealthCheck = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *LoadBalancerDescription) SetInstances(v []*Instance) *LoadBalancerDescription { + s.Instances = v + return s +} + +// SetListenerDescriptions sets the ListenerDescriptions field's value. +func (s *LoadBalancerDescription) SetListenerDescriptions(v []*ListenerDescription) *LoadBalancerDescription { + s.ListenerDescriptions = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancerDescription) SetLoadBalancerName(v string) *LoadBalancerDescription { + s.LoadBalancerName = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *LoadBalancerDescription) SetPolicies(v *Policies) *LoadBalancerDescription { + s.Policies = v + return s +} + +// SetScheme sets the Scheme field's value. +func (s *LoadBalancerDescription) SetScheme(v string) *LoadBalancerDescription { + s.Scheme = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *LoadBalancerDescription) SetSecurityGroups(v []*string) *LoadBalancerDescription { + s.SecurityGroups = v + return s +} + +// SetSourceSecurityGroup sets the SourceSecurityGroup field's value. +func (s *LoadBalancerDescription) SetSourceSecurityGroup(v *SourceSecurityGroup) *LoadBalancerDescription { + s.SourceSecurityGroup = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *LoadBalancerDescription) SetSubnets(v []*string) *LoadBalancerDescription { + s.Subnets = v + return s +} + +// SetVPCId sets the VPCId field's value. +func (s *LoadBalancerDescription) SetVPCId(v string) *LoadBalancerDescription { + s.VPCId = &v + return s +} + // Contains the parameters for ModifyLoadBalancerAttributes. type ModifyLoadBalancerAttributesInput struct { _ struct{} `type:"structure"` @@ -4254,6 +4967,18 @@ func (s *ModifyLoadBalancerAttributesInput) Validate() error { return nil } +// SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value. +func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesInput { + s.LoadBalancerAttributes = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of ModifyLoadBalancerAttributes. type ModifyLoadBalancerAttributesOutput struct { _ struct{} `type:"structure"` @@ -4275,6 +5000,18 @@ func (s ModifyLoadBalancerAttributesOutput) GoString() string { return s.String() } +// SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value. +func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesOutput { + s.LoadBalancerAttributes = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesOutput { + s.LoadBalancerName = &v + return s +} + // The policies for a load balancer. type Policies struct { _ struct{} `type:"structure"` @@ -4299,6 +5036,24 @@ func (s Policies) GoString() string { return s.String() } +// SetAppCookieStickinessPolicies sets the AppCookieStickinessPolicies field's value. +func (s *Policies) SetAppCookieStickinessPolicies(v []*AppCookieStickinessPolicy) *Policies { + s.AppCookieStickinessPolicies = v + return s +} + +// SetLBCookieStickinessPolicies sets the LBCookieStickinessPolicies field's value. +func (s *Policies) SetLBCookieStickinessPolicies(v []*LBCookieStickinessPolicy) *Policies { + s.LBCookieStickinessPolicies = v + return s +} + +// SetOtherPolicies sets the OtherPolicies field's value. +func (s *Policies) SetOtherPolicies(v []*string) *Policies { + s.OtherPolicies = v + return s +} + // Information about a policy attribute. type PolicyAttribute struct { _ struct{} `type:"structure"` @@ -4320,6 +5075,18 @@ func (s PolicyAttribute) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *PolicyAttribute) SetAttributeName(v string) *PolicyAttribute { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *PolicyAttribute) SetAttributeValue(v string) *PolicyAttribute { + s.AttributeValue = &v + return s +} + // Information about a policy attribute. type PolicyAttributeDescription struct { _ struct{} `type:"structure"` @@ -4341,6 +5108,18 @@ func (s PolicyAttributeDescription) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *PolicyAttributeDescription) SetAttributeName(v string) *PolicyAttributeDescription { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *PolicyAttributeDescription) SetAttributeValue(v string) *PolicyAttributeDescription { + s.AttributeValue = &v + return s +} + // Information about a policy attribute type. type PolicyAttributeTypeDescription struct { _ struct{} `type:"structure"` @@ -4355,13 +5134,13 @@ type PolicyAttributeTypeDescription struct { // // Valid values: // - // ONE(1) : Single value required + // * ONE(1) : Single value required // - // ZERO_OR_ONE(0..1) : Up to one value is allowed + // * ZERO_OR_ONE(0..1) : Up to one value is allowed // - // ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed + // * ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed // - // ONE_OR_MORE(1..*0) : Required. Multiple values are allowed + // * ONE_OR_MORE(1..*0) : Required. Multiple values are allowed Cardinality *string `type:"string"` // The default value of the attribute, if applicable. @@ -4381,6 +5160,36 @@ func (s PolicyAttributeTypeDescription) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *PolicyAttributeTypeDescription) SetAttributeName(v string) *PolicyAttributeTypeDescription { + s.AttributeName = &v + return s +} + +// SetAttributeType sets the AttributeType field's value. +func (s *PolicyAttributeTypeDescription) SetAttributeType(v string) *PolicyAttributeTypeDescription { + s.AttributeType = &v + return s +} + +// SetCardinality sets the Cardinality field's value. +func (s *PolicyAttributeTypeDescription) SetCardinality(v string) *PolicyAttributeTypeDescription { + s.Cardinality = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *PolicyAttributeTypeDescription) SetDefaultValue(v string) *PolicyAttributeTypeDescription { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PolicyAttributeTypeDescription) SetDescription(v string) *PolicyAttributeTypeDescription { + s.Description = &v + return s +} + // Information about a policy. type PolicyDescription struct { _ struct{} `type:"structure"` @@ -4405,6 +5214,24 @@ func (s PolicyDescription) GoString() string { return s.String() } +// SetPolicyAttributeDescriptions sets the PolicyAttributeDescriptions field's value. +func (s *PolicyDescription) SetPolicyAttributeDescriptions(v []*PolicyAttributeDescription) *PolicyDescription { + s.PolicyAttributeDescriptions = v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PolicyDescription) SetPolicyName(v string) *PolicyDescription { + s.PolicyName = &v + return s +} + +// SetPolicyTypeName sets the PolicyTypeName field's value. +func (s *PolicyDescription) SetPolicyTypeName(v string) *PolicyDescription { + s.PolicyTypeName = &v + return s +} + // Information about a policy type. type PolicyTypeDescription struct { _ struct{} `type:"structure"` @@ -4430,6 +5257,24 @@ func (s PolicyTypeDescription) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *PolicyTypeDescription) SetDescription(v string) *PolicyTypeDescription { + s.Description = &v + return s +} + +// SetPolicyAttributeTypeDescriptions sets the PolicyAttributeTypeDescriptions field's value. +func (s *PolicyTypeDescription) SetPolicyAttributeTypeDescriptions(v []*PolicyAttributeTypeDescription) *PolicyTypeDescription { + s.PolicyAttributeTypeDescriptions = v + return s +} + +// SetPolicyTypeName sets the PolicyTypeName field's value. +func (s *PolicyTypeDescription) SetPolicyTypeName(v string) *PolicyTypeDescription { + s.PolicyTypeName = &v + return s +} + // Contains the parameters for RegisterInstancesWithLoadBalancer. type RegisterInstancesWithLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -4471,6 +5316,18 @@ func (s *RegisterInstancesWithLoadBalancerInput) Validate() error { return nil } +// SetInstances sets the Instances field's value. +func (s *RegisterInstancesWithLoadBalancerInput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerInput { + s.Instances = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *RegisterInstancesWithLoadBalancerInput) SetLoadBalancerName(v string) *RegisterInstancesWithLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of RegisterInstancesWithLoadBalancer. type RegisterInstancesWithLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -4489,6 +5346,12 @@ func (s RegisterInstancesWithLoadBalancerOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *RegisterInstancesWithLoadBalancerOutput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerOutput { + s.Instances = v + return s +} + // Contains the parameters for RemoveTags. type RemoveTagsInput struct { _ struct{} `type:"structure"` @@ -4544,6 +5407,18 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *RemoveTagsInput) SetLoadBalancerNames(v []*string) *RemoveTagsInput { + s.LoadBalancerNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RemoveTagsInput) SetTags(v []*TagKeyOnly) *RemoveTagsInput { + s.Tags = v + return s +} + // Contains the output of RemoveTags. type RemoveTagsOutput struct { _ struct{} `type:"structure"` @@ -4608,6 +5483,24 @@ func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerName(v string) *SetLoadBalancerListenerSSLCertificateInput { + s.LoadBalancerName = &v + return s +} + +// SetLoadBalancerPort sets the LoadBalancerPort field's value. +func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerPort(v int64) *SetLoadBalancerListenerSSLCertificateInput { + s.LoadBalancerPort = &v + return s +} + +// SetSSLCertificateId sets the SSLCertificateId field's value. +func (s *SetLoadBalancerListenerSSLCertificateInput) SetSSLCertificateId(v string) *SetLoadBalancerListenerSSLCertificateInput { + s.SSLCertificateId = &v + return s +} + // Contains the output of SetLoadBalancerListenerSSLCertificate. type SetLoadBalancerListenerSSLCertificateOutput struct { _ struct{} `type:"structure"` @@ -4673,6 +5566,24 @@ func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error { return nil } +// SetInstancePort sets the InstancePort field's value. +func (s *SetLoadBalancerPoliciesForBackendServerInput) SetInstancePort(v int64) *SetLoadBalancerPoliciesForBackendServerInput { + s.InstancePort = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *SetLoadBalancerPoliciesForBackendServerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesForBackendServerInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *SetLoadBalancerPoliciesForBackendServerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesForBackendServerInput { + s.PolicyNames = v + return s +} + // Contains the output of SetLoadBalancerPoliciesForBackendServer. type SetLoadBalancerPoliciesForBackendServerOutput struct { _ struct{} `type:"structure"` @@ -4739,6 +5650,24 @@ func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesOfListenerInput { + s.LoadBalancerName = &v + return s +} + +// SetLoadBalancerPort sets the LoadBalancerPort field's value. +func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerPort(v int64) *SetLoadBalancerPoliciesOfListenerInput { + s.LoadBalancerPort = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *SetLoadBalancerPoliciesOfListenerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesOfListenerInput { + s.PolicyNames = v + return s +} + // Contains the output of SetLoadBalancePoliciesOfListener. type SetLoadBalancerPoliciesOfListenerOutput struct { _ struct{} `type:"structure"` @@ -4775,6 +5704,18 @@ func (s SourceSecurityGroup) GoString() string { return s.String() } +// SetGroupName sets the GroupName field's value. +func (s *SourceSecurityGroup) SetGroupName(v string) *SourceSecurityGroup { + s.GroupName = &v + return s +} + +// SetOwnerAlias sets the OwnerAlias field's value. +func (s *SourceSecurityGroup) SetOwnerAlias(v string) *SourceSecurityGroup { + s.OwnerAlias = &v + return s +} + // Information about a tag. type Tag struct { _ struct{} `type:"structure"` @@ -4814,6 +5755,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The tags associated with a load balancer. type TagDescription struct { _ struct{} `type:"structure"` @@ -4835,6 +5788,18 @@ func (s TagDescription) GoString() string { return s.String() } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *TagDescription) SetLoadBalancerName(v string) *TagDescription { + s.LoadBalancerName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagDescription) SetTags(v []*Tag) *TagDescription { + s.Tags = v + return s +} + // The key of a tag. type TagKeyOnly struct { _ struct{} `type:"structure"` @@ -4865,3 +5830,9 @@ func (s *TagKeyOnly) Validate() error { } return nil } + +// SetKey sets the Key field's value. +func (s *TagKeyOnly) SetKey(v string) *TagKeyOnly { + s.Key = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/service.go b/vendor/github.com/aws/aws-sdk-go/service/elb/service.go index 57f3e1943..ae719aa61 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/service.go @@ -32,9 +32,8 @@ import ( // This reference covers the 2012-06-01 API, which supports Classic load balancers. // The 2015-12-01 API supports Application load balancers. // -// To get started, create a load balancer with one or more listeners using -// CreateLoadBalancer. Register your instances with the load balancer using -// RegisterInstancesWithLoadBalancer. +// To get started, create a load balancer with one or more listeners using CreateLoadBalancer. +// Register your instances with the load balancer using RegisterInstancesWithLoadBalancer. // // All Elastic Load Balancing operations are idempotent, which means that they // complete at most one time. If you repeat an operation, it succeeds with a diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go index b1b7acb94..93c12a6d6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go @@ -57,10 +57,10 @@ func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, outpu // AddTags API operation for Elastic Load Balancing. // // Adds the specified tags to the specified resource. You can tag your Application -// load balancers and your target groups. +// Load Balancers and your target groups. // -// Each tag consists of a key and an optional value. If a resource already -// has a tag with the same key, AddTags updates its value. +// Each tag consists of a key and an optional value. If a resource already has +// a tag with the same key, AddTags updates its value. // // To list the current tags for your resources, use DescribeTags. To remove // tags from your resources, use RemoveTags. @@ -136,14 +136,15 @@ func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request. // CreateListener API operation for Elastic Load Balancing. // -// Creates a listener for the specified Application load balancer. +// Creates a listener for the specified Application Load Balancer. +// +// You can create up to 10 listeners per load balancer. // // To update a listener, use ModifyListener. When you are finished with a listener, // you can delete it using DeleteListener. If you are finished with both the // listener and the load balancer, you can delete them both using DeleteLoadBalancer. // -// For more information, see Listeners for Your Application Load Balancers -// (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html) +// For more information, see Listeners for Your Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html) // in the Application Load Balancers Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -242,11 +243,11 @@ func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req * // CreateLoadBalancer API operation for Elastic Load Balancing. // -// Creates an Application load balancer. +// Creates an Application Load Balancer. // -// To create listeners for your load balancer, use CreateListener. You can -// add security groups, subnets, and tags when you create your load balancer, -// or you can add them later using SetSecurityGroups, SetSubnets, and AddTags. +// To create listeners for your load balancer, use CreateListener. You can add +// security groups, subnets, and tags when you create your load balancer, or +// you can add them later using SetSecurityGroups, SetSubnets, and AddTags. // // To describe your current load balancers, see DescribeLoadBalancers. When // you are finished with a load balancer, you can delete it using DeleteLoadBalancer. @@ -256,6 +257,9 @@ func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req * // see Limits for Your Application Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html) // in the Application Load Balancers Guide. // +// For more information, see Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html) +// in the Application Load Balancers 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. @@ -344,10 +348,12 @@ func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, // // Creates a rule for the specified listener. // -// A rule consists conditions and actions. Rules are evaluated in priority -// order, from the lowest value to the highest value. When the conditions for -// a rule are met, the specified actions are taken. If no rule's conditions -// are met, the default actions for the listener are taken. +// Each rule can have one action and one condition. Rules are evaluated in priority +// order, from the lowest value to the highest value. When the condition for +// a rule is met, the specified action is taken. If no conditions are met, the +// default action for the default rule is taken. For more information, see Listener +// Rules (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules) +// in the Application Load Balancers Guide. // // To view your current rules, use DescribeRules. To update a rule, use ModifyRule. // To set the priorities of your rules, use SetRulePriorities. To delete a rule, @@ -584,7 +590,7 @@ func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req * // DeleteLoadBalancer API operation for Elastic Load Balancing. // -// Deletes the specified load balancer and its attached listeners. +// Deletes the specified Application Load Balancer and its attached listeners. // // You can't delete a load balancer if deletion protection is enabled. If the // load balancer does not exist or has already been deleted, the call succeeds. @@ -869,8 +875,8 @@ func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) (req *re // DescribeListeners API operation for Elastic Load Balancing. // -// Describes the specified listeners or the listeners for the specified load -// balancer. You must specify either a load balancer or one or more listeners. +// Describes the specified listeners or the listeners for the specified Application +// Load Balancer. You must specify either a load balancer or one or more listeners. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -962,7 +968,7 @@ func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalance // DescribeLoadBalancerAttributes API operation for Elastic Load Balancing. // -// Describes the attributes for the specified load balancer. +// Describes the attributes for the specified Application Load Balancer. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1032,8 +1038,8 @@ func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) // DescribeLoadBalancers API operation for Elastic Load Balancing. // -// Describes the specified Application load balancers or all of your Application -// load balancers. +// Describes the specified Application Load Balancers or all of your Application +// Load Balancers. // // To describe the listeners for a load balancer, use DescribeListeners. To // describe the attributes for a load balancer, use DescribeLoadBalancerAttributes. @@ -1675,7 +1681,7 @@ func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAtt // ModifyLoadBalancerAttributes API operation for Elastic Load Balancing. // -// Modifies the specified attributes of the specified load balancer. +// Modifies the specified attributes of the specified Application Load Balancer. // // If any of the specified attributes can't be modified as requested, the call // fails. Any existing attributes that you do not modify retain their current @@ -1957,8 +1963,13 @@ func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *reques // // Registers the specified targets with the specified target group. // +// By default, the load balancer routes requests to registered targets using +// the protocol and port number for the target group. Alternatively, you can +// override the port for a target when you register it. +// // The target must be in the virtual private cloud (VPC) that you specified -// for the target group. +// for the target group. If the target is an EC2 instance, it can't be in the +// stopped or running state when you register it. // // To remove a target from a target group, use DeregisterTargets. // @@ -2115,8 +2126,8 @@ func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *re // // Sets the priorities of the specified rules. // -// You can reorder the rules as long as there are no priority conflicts in -// the new order. Any existing rules that you do not specify retain their current +// You can reorder the rules as long as there are no priority conflicts in the +// new order. Any existing rules that you do not specify retain their current // priority. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2329,6 +2340,18 @@ func (s *Action) Validate() error { return nil } +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *Action) SetTargetGroupArn(v string) *Action { + s.TargetGroupArn = &v + return s +} + +// SetType sets the Type field's value. +func (s *Action) SetType(v string) *Action { + s.Type = &v + return s +} + // Contains the parameters for AddTags. type AddTagsInput struct { _ struct{} `type:"structure"` @@ -2383,6 +2406,18 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetResourceArns sets the ResourceArns field's value. +func (s *AddTagsInput) SetResourceArns(v []*string) *AddTagsInput { + s.ResourceArns = v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + // Contains the output of AddTags. type AddTagsOutput struct { _ struct{} `type:"structure"` @@ -2419,6 +2454,18 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetSubnetId sets the SubnetId field's value. +func (s *AvailabilityZone) SetSubnetId(v string) *AvailabilityZone { + s.SubnetId = &v + return s +} + +// SetZoneName sets the ZoneName field's value. +func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone { + s.ZoneName = &v + return s +} + // Information about an SSL server certificate deployed on a load balancer. type Certificate struct { _ struct{} `type:"structure"` @@ -2437,6 +2484,12 @@ func (s Certificate) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *Certificate) SetCertificateArn(v string) *Certificate { + s.CertificateArn = &v + return s +} + // Information about a cipher used in a policy. type Cipher struct { _ struct{} `type:"structure"` @@ -2458,6 +2511,18 @@ func (s Cipher) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Cipher) SetName(v string) *Cipher { + s.Name = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *Cipher) SetPriority(v int64) *Cipher { + s.Priority = &v + return s +} + // Contains the parameters for CreateListener. type CreateListenerInput struct { _ struct{} `type:"structure"` @@ -2466,7 +2531,7 @@ type CreateListenerInput struct { // protocol is HTTPS. Certificates []*Certificate `type:"list"` - // The default actions for the listener. + // The default action for the listener. // // DefaultActions is a required field DefaultActions []*Action `type:"list" required:"true"` @@ -2536,6 +2601,42 @@ func (s *CreateListenerInput) Validate() error { return nil } +// SetCertificates sets the Certificates field's value. +func (s *CreateListenerInput) SetCertificates(v []*Certificate) *CreateListenerInput { + s.Certificates = v + return s +} + +// SetDefaultActions sets the DefaultActions field's value. +func (s *CreateListenerInput) SetDefaultActions(v []*Action) *CreateListenerInput { + s.DefaultActions = v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *CreateListenerInput) SetLoadBalancerArn(v string) *CreateListenerInput { + s.LoadBalancerArn = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateListenerInput) SetPort(v int64) *CreateListenerInput { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *CreateListenerInput) SetProtocol(v string) *CreateListenerInput { + s.Protocol = &v + return s +} + +// SetSslPolicy sets the SslPolicy field's value. +func (s *CreateListenerInput) SetSslPolicy(v string) *CreateListenerInput { + s.SslPolicy = &v + return s +} + // Contains the output of CreateListener. type CreateListenerOutput struct { _ struct{} `type:"structure"` @@ -2554,15 +2655,21 @@ func (s CreateListenerOutput) GoString() string { return s.String() } +// SetListeners sets the Listeners field's value. +func (s *CreateListenerOutput) SetListeners(v []*Listener) *CreateListenerOutput { + s.Listeners = v + return s +} + // Contains the parameters for CreateLoadBalancer. type CreateLoadBalancerInput struct { _ struct{} `type:"structure"` // The name of the load balancer. // - // This name must be unique within your AWS account, can have a maximum of - // 32 characters, must contain only alphanumeric characters or hyphens, and - // must not begin or end with a hyphen. + // This name must be unique within your AWS account, can have a maximum of 32 + // characters, must contain only alphanumeric characters or hyphens, and must + // not begin or end with a hyphen. // // Name is a required field Name *string `type:"string" required:"true"` @@ -2633,6 +2740,36 @@ func (s *CreateLoadBalancerInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *CreateLoadBalancerInput) SetName(v string) *CreateLoadBalancerInput { + s.Name = &v + return s +} + +// SetScheme sets the Scheme field's value. +func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput { + s.Scheme = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput { + s.SecurityGroups = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput { + s.Subnets = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput { + s.Tags = v + return s +} + // Contains the output of CreateLoadBalancer. type CreateLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -2651,16 +2788,34 @@ func (s CreateLoadBalancerOutput) GoString() string { return s.String() } +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *CreateLoadBalancerOutput) SetLoadBalancers(v []*LoadBalancer) *CreateLoadBalancerOutput { + s.LoadBalancers = v + return s +} + // Contains the parameters for CreateRule. type CreateRuleInput struct { _ struct{} `type:"structure"` - // The actions for the rule. + // An action. Each action has the type forward and specifies a target group. // // Actions is a required field Actions []*Action `type:"list" required:"true"` - // The conditions. + // A condition. Each condition has the field path-pattern and specifies one + // path pattern. A path pattern is case sensitive, can be up to 255 characters + // in length, and can contain any of the following characters: + // + // * A-Z, a-z, 0-9 + // + // * _ - . $ / ~ " ' @ : + + // + // * & (using &) + // + // * * (matches 0 or more characters) + // + // * ? (matches exactly 1 character) // // Conditions is a required field Conditions []*RuleCondition `type:"list" required:"true"` @@ -2722,6 +2877,30 @@ func (s *CreateRuleInput) Validate() error { return nil } +// SetActions sets the Actions field's value. +func (s *CreateRuleInput) SetActions(v []*Action) *CreateRuleInput { + s.Actions = v + return s +} + +// SetConditions sets the Conditions field's value. +func (s *CreateRuleInput) SetConditions(v []*RuleCondition) *CreateRuleInput { + s.Conditions = v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *CreateRuleInput) SetListenerArn(v string) *CreateRuleInput { + s.ListenerArn = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *CreateRuleInput) SetPriority(v int64) *CreateRuleInput { + s.Priority = &v + return s +} + // Contains the output of CreateRule. type CreateRuleOutput struct { _ struct{} `type:"structure"` @@ -2740,6 +2919,12 @@ func (s CreateRuleOutput) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *CreateRuleOutput) SetRules(v []*Rule) *CreateRuleOutput { + s.Rules = v + return s +} + // Contains the parameters for CreateTargetGroup. type CreateTargetGroupInput struct { _ struct{} `type:"structure"` @@ -2854,6 +3039,78 @@ func (s *CreateTargetGroupInput) Validate() error { return nil } +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *CreateTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *CreateTargetGroupInput { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *CreateTargetGroupInput) SetHealthCheckPath(v string) *CreateTargetGroupInput { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *CreateTargetGroupInput) SetHealthCheckPort(v string) *CreateTargetGroupInput { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *CreateTargetGroupInput) SetHealthCheckProtocol(v string) *CreateTargetGroupInput { + s.HealthCheckProtocol = &v + return s +} + +// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value. +func (s *CreateTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *CreateTargetGroupInput { + s.HealthCheckTimeoutSeconds = &v + return s +} + +// SetHealthyThresholdCount sets the HealthyThresholdCount field's value. +func (s *CreateTargetGroupInput) SetHealthyThresholdCount(v int64) *CreateTargetGroupInput { + s.HealthyThresholdCount = &v + return s +} + +// SetMatcher sets the Matcher field's value. +func (s *CreateTargetGroupInput) SetMatcher(v *Matcher) *CreateTargetGroupInput { + s.Matcher = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTargetGroupInput) SetName(v string) *CreateTargetGroupInput { + s.Name = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateTargetGroupInput) SetPort(v int64) *CreateTargetGroupInput { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *CreateTargetGroupInput) SetProtocol(v string) *CreateTargetGroupInput { + s.Protocol = &v + return s +} + +// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value. +func (s *CreateTargetGroupInput) SetUnhealthyThresholdCount(v int64) *CreateTargetGroupInput { + s.UnhealthyThresholdCount = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateTargetGroupInput) SetVpcId(v string) *CreateTargetGroupInput { + s.VpcId = &v + return s +} + // Contains the output of CreateTargetGroup. type CreateTargetGroupOutput struct { _ struct{} `type:"structure"` @@ -2872,6 +3129,12 @@ func (s CreateTargetGroupOutput) GoString() string { return s.String() } +// SetTargetGroups sets the TargetGroups field's value. +func (s *CreateTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *CreateTargetGroupOutput { + s.TargetGroups = v + return s +} + // Contains the parameters for DeleteListener. type DeleteListenerInput struct { _ struct{} `type:"structure"` @@ -2905,6 +3168,12 @@ func (s *DeleteListenerInput) Validate() error { return nil } +// SetListenerArn sets the ListenerArn field's value. +func (s *DeleteListenerInput) SetListenerArn(v string) *DeleteListenerInput { + s.ListenerArn = &v + return s +} + // Contains the output of DeleteListener. type DeleteListenerOutput struct { _ struct{} `type:"structure"` @@ -2953,6 +3222,12 @@ func (s *DeleteLoadBalancerInput) Validate() error { return nil } +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DeleteLoadBalancerInput) SetLoadBalancerArn(v string) *DeleteLoadBalancerInput { + s.LoadBalancerArn = &v + return s +} + // Contains the output of DeleteLoadBalancer. type DeleteLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -3001,6 +3276,12 @@ func (s *DeleteRuleInput) Validate() error { return nil } +// SetRuleArn sets the RuleArn field's value. +func (s *DeleteRuleInput) SetRuleArn(v string) *DeleteRuleInput { + s.RuleArn = &v + return s +} + // Contains the output of DeleteRule. type DeleteRuleOutput struct { _ struct{} `type:"structure"` @@ -3049,6 +3330,12 @@ func (s *DeleteTargetGroupInput) Validate() error { return nil } +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *DeleteTargetGroupInput) SetTargetGroupArn(v string) *DeleteTargetGroupInput { + s.TargetGroupArn = &v + return s +} + // Contains the output of DeleteTargetGroup. type DeleteTargetGroupOutput struct { _ struct{} `type:"structure"` @@ -3073,7 +3360,8 @@ type DeregisterTargetsInput struct { // TargetGroupArn is a required field TargetGroupArn *string `type:"string" required:"true"` - // The targets. + // The targets. If you specified a port override when you registered a target, + // you must specify both the target ID and the port when you deregister it. // // Targets is a required field Targets []*TargetDescription `type:"list" required:"true"` @@ -3115,6 +3403,18 @@ func (s *DeregisterTargetsInput) Validate() error { return nil } +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *DeregisterTargetsInput) SetTargetGroupArn(v string) *DeregisterTargetsInput { + s.TargetGroupArn = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *DeregisterTargetsInput) SetTargets(v []*TargetDescription) *DeregisterTargetsInput { + s.Targets = v + return s +} + // Contains the output of DeregisterTargets. type DeregisterTargetsOutput struct { _ struct{} `type:"structure"` @@ -3171,6 +3471,30 @@ func (s *DescribeListenersInput) Validate() error { return nil } +// SetListenerArns sets the ListenerArns field's value. +func (s *DescribeListenersInput) SetListenerArns(v []*string) *DescribeListenersInput { + s.ListenerArns = v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DescribeListenersInput) SetLoadBalancerArn(v string) *DescribeListenersInput { + s.LoadBalancerArn = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeListenersInput) SetMarker(v string) *DescribeListenersInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeListenersInput) SetPageSize(v int64) *DescribeListenersInput { + s.PageSize = &v + return s +} + // Contains the output of DescribeListeners. type DescribeListenersOutput struct { _ struct{} `type:"structure"` @@ -3193,6 +3517,18 @@ func (s DescribeListenersOutput) GoString() string { return s.String() } +// SetListeners sets the Listeners field's value. +func (s *DescribeListenersOutput) SetListeners(v []*Listener) *DescribeListenersOutput { + s.Listeners = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeListenersOutput) SetNextMarker(v string) *DescribeListenersOutput { + s.NextMarker = &v + return s +} + // Contains the parameters for DescribeLoadBalancerAttributes. type DescribeLoadBalancerAttributesInput struct { _ struct{} `type:"structure"` @@ -3226,6 +3562,12 @@ func (s *DescribeLoadBalancerAttributesInput) Validate() error { return nil } +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *DescribeLoadBalancerAttributesInput { + s.LoadBalancerArn = &v + return s +} + // Contains the output of DescribeLoadBalancerAttributes. type DescribeLoadBalancerAttributesOutput struct { _ struct{} `type:"structure"` @@ -3244,6 +3586,12 @@ func (s DescribeLoadBalancerAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *DescribeLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *DescribeLoadBalancerAttributesOutput { + s.Attributes = v + return s +} + // Contains the parameters for DescribeLoadBalancers. type DescribeLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -3285,6 +3633,30 @@ func (s *DescribeLoadBalancersInput) Validate() error { return nil } +// SetLoadBalancerArns sets the LoadBalancerArns field's value. +func (s *DescribeLoadBalancersInput) SetLoadBalancerArns(v []*string) *DescribeLoadBalancersInput { + s.LoadBalancerArns = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput { + s.Marker = &v + return s +} + +// SetNames sets the Names field's value. +func (s *DescribeLoadBalancersInput) SetNames(v []*string) *DescribeLoadBalancersInput { + s.Names = v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput { + s.PageSize = &v + return s +} + // Contains the output of DescribeLoadBalancers. type DescribeLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -3307,6 +3679,18 @@ func (s DescribeLoadBalancersOutput) GoString() string { return s.String() } +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *DescribeLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancer) *DescribeLoadBalancersOutput { + s.LoadBalancers = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput { + s.NextMarker = &v + return s +} + // Contains the parameters for DescribeRules. type DescribeRulesInput struct { _ struct{} `type:"structure"` @@ -3328,6 +3712,18 @@ func (s DescribeRulesInput) GoString() string { return s.String() } +// SetListenerArn sets the ListenerArn field's value. +func (s *DescribeRulesInput) SetListenerArn(v string) *DescribeRulesInput { + s.ListenerArn = &v + return s +} + +// SetRuleArns sets the RuleArns field's value. +func (s *DescribeRulesInput) SetRuleArns(v []*string) *DescribeRulesInput { + s.RuleArns = v + return s +} + // Contains the output of DescribeRules. type DescribeRulesOutput struct { _ struct{} `type:"structure"` @@ -3346,6 +3742,12 @@ func (s DescribeRulesOutput) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *DescribeRulesOutput) SetRules(v []*Rule) *DescribeRulesOutput { + s.Rules = v + return s +} + // Contains the parameters for DescribeSSLPolicies. type DescribeSSLPoliciesInput struct { _ struct{} `type:"structure"` @@ -3384,6 +3786,24 @@ func (s *DescribeSSLPoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *DescribeSSLPoliciesInput) SetMarker(v string) *DescribeSSLPoliciesInput { + s.Marker = &v + return s +} + +// SetNames sets the Names field's value. +func (s *DescribeSSLPoliciesInput) SetNames(v []*string) *DescribeSSLPoliciesInput { + s.Names = v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeSSLPoliciesInput) SetPageSize(v int64) *DescribeSSLPoliciesInput { + s.PageSize = &v + return s +} + // Contains the output of DescribeSSLPolicies. type DescribeSSLPoliciesOutput struct { _ struct{} `type:"structure"` @@ -3406,6 +3826,18 @@ func (s DescribeSSLPoliciesOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeSSLPoliciesOutput) SetNextMarker(v string) *DescribeSSLPoliciesOutput { + s.NextMarker = &v + return s +} + +// SetSslPolicies sets the SslPolicies field's value. +func (s *DescribeSSLPoliciesOutput) SetSslPolicies(v []*SslPolicy) *DescribeSSLPoliciesOutput { + s.SslPolicies = v + return s +} + // Contains the parameters for DescribeTags. type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -3439,6 +3871,12 @@ func (s *DescribeTagsInput) Validate() error { return nil } +// SetResourceArns sets the ResourceArns field's value. +func (s *DescribeTagsInput) SetResourceArns(v []*string) *DescribeTagsInput { + s.ResourceArns = v + return s +} + // Contains the output of DescribeTags. type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -3457,6 +3895,12 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetTagDescriptions sets the TagDescriptions field's value. +func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput { + s.TagDescriptions = v + return s +} + // Contains the parameters for DescribeTargetGroupAttributes. type DescribeTargetGroupAttributesInput struct { _ struct{} `type:"structure"` @@ -3490,6 +3934,12 @@ func (s *DescribeTargetGroupAttributesInput) Validate() error { return nil } +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *DescribeTargetGroupAttributesInput) SetTargetGroupArn(v string) *DescribeTargetGroupAttributesInput { + s.TargetGroupArn = &v + return s +} + // Contains the output of DescribeTargetGroupAttributes. type DescribeTargetGroupAttributesOutput struct { _ struct{} `type:"structure"` @@ -3508,6 +3958,12 @@ func (s DescribeTargetGroupAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *DescribeTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *DescribeTargetGroupAttributesOutput { + s.Attributes = v + return s +} + // Contains the parameters for DescribeTargetGroups. type DescribeTargetGroupsInput struct { _ struct{} `type:"structure"` @@ -3552,6 +4008,36 @@ func (s *DescribeTargetGroupsInput) Validate() error { return nil } +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DescribeTargetGroupsInput) SetLoadBalancerArn(v string) *DescribeTargetGroupsInput { + s.LoadBalancerArn = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTargetGroupsInput) SetMarker(v string) *DescribeTargetGroupsInput { + s.Marker = &v + return s +} + +// SetNames sets the Names field's value. +func (s *DescribeTargetGroupsInput) SetNames(v []*string) *DescribeTargetGroupsInput { + s.Names = v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeTargetGroupsInput) SetPageSize(v int64) *DescribeTargetGroupsInput { + s.PageSize = &v + return s +} + +// SetTargetGroupArns sets the TargetGroupArns field's value. +func (s *DescribeTargetGroupsInput) SetTargetGroupArns(v []*string) *DescribeTargetGroupsInput { + s.TargetGroupArns = v + return s +} + // Contains the output of DescribeTargetGroups. type DescribeTargetGroupsOutput struct { _ struct{} `type:"structure"` @@ -3574,6 +4060,18 @@ func (s DescribeTargetGroupsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeTargetGroupsOutput) SetNextMarker(v string) *DescribeTargetGroupsOutput { + s.NextMarker = &v + return s +} + +// SetTargetGroups sets the TargetGroups field's value. +func (s *DescribeTargetGroupsOutput) SetTargetGroups(v []*TargetGroup) *DescribeTargetGroupsOutput { + s.TargetGroups = v + return s +} + // Contains the parameters for DescribeTargetHealth. type DescribeTargetHealthInput struct { _ struct{} `type:"structure"` @@ -3620,6 +4118,18 @@ func (s *DescribeTargetHealthInput) Validate() error { return nil } +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *DescribeTargetHealthInput) SetTargetGroupArn(v string) *DescribeTargetHealthInput { + s.TargetGroupArn = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *DescribeTargetHealthInput) SetTargets(v []*TargetDescription) *DescribeTargetHealthInput { + s.Targets = v + return s +} + // Contains the output of DescribeTargetHealth. type DescribeTargetHealthOutput struct { _ struct{} `type:"structure"` @@ -3638,6 +4148,12 @@ func (s DescribeTargetHealthOutput) GoString() string { return s.String() } +// SetTargetHealthDescriptions sets the TargetHealthDescriptions field's value. +func (s *DescribeTargetHealthOutput) SetTargetHealthDescriptions(v []*TargetHealthDescription) *DescribeTargetHealthOutput { + s.TargetHealthDescriptions = v + return s +} + // Information about a listener. type Listener struct { _ struct{} `type:"structure"` @@ -3676,6 +4192,48 @@ func (s Listener) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *Listener) SetCertificates(v []*Certificate) *Listener { + s.Certificates = v + return s +} + +// SetDefaultActions sets the DefaultActions field's value. +func (s *Listener) SetDefaultActions(v []*Action) *Listener { + s.DefaultActions = v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *Listener) SetListenerArn(v string) *Listener { + s.ListenerArn = &v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *Listener) SetLoadBalancerArn(v string) *Listener { + s.LoadBalancerArn = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Listener) SetPort(v int64) *Listener { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Listener) SetProtocol(v string) *Listener { + s.Protocol = &v + return s +} + +// SetSslPolicy sets the SslPolicy field's value. +func (s *Listener) SetSslPolicy(v string) *Listener { + s.SslPolicy = &v + return s +} + // Information about a load balancer. type LoadBalancer struct { _ struct{} `type:"structure"` @@ -3732,29 +4290,95 @@ func (s LoadBalancer) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *LoadBalancer) SetAvailabilityZones(v []*AvailabilityZone) *LoadBalancer { + s.AvailabilityZones = v + return s +} + +// SetCanonicalHostedZoneId sets the CanonicalHostedZoneId field's value. +func (s *LoadBalancer) SetCanonicalHostedZoneId(v string) *LoadBalancer { + s.CanonicalHostedZoneId = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *LoadBalancer) SetCreatedTime(v time.Time) *LoadBalancer { + s.CreatedTime = &v + return s +} + +// SetDNSName sets the DNSName field's value. +func (s *LoadBalancer) SetDNSName(v string) *LoadBalancer { + s.DNSName = &v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *LoadBalancer) SetLoadBalancerArn(v string) *LoadBalancer { + s.LoadBalancerArn = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancer) SetLoadBalancerName(v string) *LoadBalancer { + s.LoadBalancerName = &v + return s +} + +// SetScheme sets the Scheme field's value. +func (s *LoadBalancer) SetScheme(v string) *LoadBalancer { + s.Scheme = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *LoadBalancer) SetSecurityGroups(v []*string) *LoadBalancer { + s.SecurityGroups = v + return s +} + +// SetState sets the State field's value. +func (s *LoadBalancer) SetState(v *LoadBalancerState) *LoadBalancer { + s.State = v + return s +} + +// SetType sets the Type field's value. +func (s *LoadBalancer) SetType(v string) *LoadBalancer { + s.Type = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *LoadBalancer) SetVpcId(v string) *LoadBalancer { + s.VpcId = &v + return s +} + // Information about a load balancer attribute. type LoadBalancerAttribute struct { _ struct{} `type:"structure"` // The name of the attribute. // - // access_logs.s3.enabled - Indicates whether access logs stored in Amazon - // S3 are enabled. + // * access_logs.s3.enabled - Indicates whether access logs stored in Amazon + // S3 are enabled. The value is true or false. // - // access_logs.s3.bucket - The name of the S3 bucket for the access logs. - // This attribute is required if access logs in Amazon S3 are enabled. The bucket - // must exist in the same region as the load balancer and have a bucket policy - // that grants Elastic Load Balancing permission to write to the bucket. + // * access_logs.s3.bucket - The name of the S3 bucket for the access logs. + // This attribute is required if access logs in Amazon S3 are enabled. The + // bucket must exist in the same region as the load balancer and have a bucket + // policy that grants Elastic Load Balancing permission to write to the bucket. // - // access_logs.s3.prefix - The prefix for the location in the S3 bucket. - // If you don't specify a prefix, the access logs are stored in the root of - // the bucket. + // * access_logs.s3.prefix - The prefix for the location in the S3 bucket. + // If you don't specify a prefix, the access logs are stored in the root + // of the bucket. // - // deletion_protection.enabled - Indicates whether deletion protection is - // enabled. + // * deletion_protection.enabled - Indicates whether deletion protection + // is enabled. The value is true or false. // - // idle_timeout.timeout_seconds - The idle timeout value, in seconds. The - // valid range is 1-3600. The default is 60 seconds. + // * idle_timeout.timeout_seconds - The idle timeout value, in seconds. The + // valid range is 1-3600. The default is 60 seconds. Key *string `type:"string"` // The value of the attribute. @@ -3771,6 +4395,18 @@ func (s LoadBalancerAttribute) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *LoadBalancerAttribute) SetKey(v string) *LoadBalancerAttribute { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *LoadBalancerAttribute) SetValue(v string) *LoadBalancerAttribute { + s.Value = &v + return s +} + // Information about the state of the load balancer. type LoadBalancerState struct { _ struct{} `type:"structure"` @@ -3794,6 +4430,18 @@ func (s LoadBalancerState) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *LoadBalancerState) SetCode(v string) *LoadBalancerState { + s.Code = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *LoadBalancerState) SetReason(v string) *LoadBalancerState { + s.Reason = &v + return s +} + // Information to use when checking for a successful response from a target. type Matcher struct { _ struct{} `type:"structure"` @@ -3828,6 +4476,12 @@ func (s *Matcher) Validate() error { return nil } +// SetHttpCode sets the HttpCode field's value. +func (s *Matcher) SetHttpCode(v string) *Matcher { + s.HttpCode = &v + return s +} + // Contains the parameters for ModifyListener. type ModifyListenerInput struct { _ struct{} `type:"structure"` @@ -3889,6 +4543,42 @@ func (s *ModifyListenerInput) Validate() error { return nil } +// SetCertificates sets the Certificates field's value. +func (s *ModifyListenerInput) SetCertificates(v []*Certificate) *ModifyListenerInput { + s.Certificates = v + return s +} + +// SetDefaultActions sets the DefaultActions field's value. +func (s *ModifyListenerInput) SetDefaultActions(v []*Action) *ModifyListenerInput { + s.DefaultActions = v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *ModifyListenerInput) SetListenerArn(v string) *ModifyListenerInput { + s.ListenerArn = &v + return s +} + +// SetPort sets the Port field's value. +func (s *ModifyListenerInput) SetPort(v int64) *ModifyListenerInput { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *ModifyListenerInput) SetProtocol(v string) *ModifyListenerInput { + s.Protocol = &v + return s +} + +// SetSslPolicy sets the SslPolicy field's value. +func (s *ModifyListenerInput) SetSslPolicy(v string) *ModifyListenerInput { + s.SslPolicy = &v + return s +} + // Contains the output of ModifyListener. type ModifyListenerOutput struct { _ struct{} `type:"structure"` @@ -3907,6 +4597,12 @@ func (s ModifyListenerOutput) GoString() string { return s.String() } +// SetListeners sets the Listeners field's value. +func (s *ModifyListenerOutput) SetListeners(v []*Listener) *ModifyListenerOutput { + s.Listeners = v + return s +} + // Contains the parameters for ModifyLoadBalancerAttributes. type ModifyLoadBalancerAttributesInput struct { _ struct{} `type:"structure"` @@ -3948,6 +4644,18 @@ func (s *ModifyLoadBalancerAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *ModifyLoadBalancerAttributesInput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesInput { + s.Attributes = v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *ModifyLoadBalancerAttributesInput { + s.LoadBalancerArn = &v + return s +} + // Contains the output of ModifyLoadBalancerAttributes. type ModifyLoadBalancerAttributesOutput struct { _ struct{} `type:"structure"` @@ -3966,6 +4674,12 @@ func (s ModifyLoadBalancerAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *ModifyLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesOutput { + s.Attributes = v + return s +} + // Contains the parameters for ModifyRules. type ModifyRuleInput struct { _ struct{} `type:"structure"` @@ -4015,6 +4729,24 @@ func (s *ModifyRuleInput) Validate() error { return nil } +// SetActions sets the Actions field's value. +func (s *ModifyRuleInput) SetActions(v []*Action) *ModifyRuleInput { + s.Actions = v + return s +} + +// SetConditions sets the Conditions field's value. +func (s *ModifyRuleInput) SetConditions(v []*RuleCondition) *ModifyRuleInput { + s.Conditions = v + return s +} + +// SetRuleArn sets the RuleArn field's value. +func (s *ModifyRuleInput) SetRuleArn(v string) *ModifyRuleInput { + s.RuleArn = &v + return s +} + // Contains the output of ModifyRules. type ModifyRuleOutput struct { _ struct{} `type:"structure"` @@ -4033,6 +4765,12 @@ func (s ModifyRuleOutput) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *ModifyRuleOutput) SetRules(v []*Rule) *ModifyRuleOutput { + s.Rules = v + return s +} + // Contains the parameters for ModifyTargetGroupAttributes. type ModifyTargetGroupAttributesInput struct { _ struct{} `type:"structure"` @@ -4074,6 +4812,18 @@ func (s *ModifyTargetGroupAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *ModifyTargetGroupAttributesInput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesInput { + s.Attributes = v + return s +} + +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *ModifyTargetGroupAttributesInput) SetTargetGroupArn(v string) *ModifyTargetGroupAttributesInput { + s.TargetGroupArn = &v + return s +} + // Contains the output of ModifyTargetGroupAttributes. type ModifyTargetGroupAttributesOutput struct { _ struct{} `type:"structure"` @@ -4092,6 +4842,12 @@ func (s ModifyTargetGroupAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *ModifyTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesOutput { + s.Attributes = v + return s +} + // Contains the parameters for ModifyTargetGroup. type ModifyTargetGroupInput struct { _ struct{} `type:"structure"` @@ -4173,6 +4929,60 @@ func (s *ModifyTargetGroupInput) Validate() error { return nil } +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *ModifyTargetGroupInput { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckPath(v string) *ModifyTargetGroupInput { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckPort(v string) *ModifyTargetGroupInput { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckProtocol(v string) *ModifyTargetGroupInput { + s.HealthCheckProtocol = &v + return s +} + +// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *ModifyTargetGroupInput { + s.HealthCheckTimeoutSeconds = &v + return s +} + +// SetHealthyThresholdCount sets the HealthyThresholdCount field's value. +func (s *ModifyTargetGroupInput) SetHealthyThresholdCount(v int64) *ModifyTargetGroupInput { + s.HealthyThresholdCount = &v + return s +} + +// SetMatcher sets the Matcher field's value. +func (s *ModifyTargetGroupInput) SetMatcher(v *Matcher) *ModifyTargetGroupInput { + s.Matcher = v + return s +} + +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *ModifyTargetGroupInput) SetTargetGroupArn(v string) *ModifyTargetGroupInput { + s.TargetGroupArn = &v + return s +} + +// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value. +func (s *ModifyTargetGroupInput) SetUnhealthyThresholdCount(v int64) *ModifyTargetGroupInput { + s.UnhealthyThresholdCount = &v + return s +} + // Contains the output of ModifyTargetGroup. type ModifyTargetGroupOutput struct { _ struct{} `type:"structure"` @@ -4191,6 +5001,12 @@ func (s ModifyTargetGroupOutput) GoString() string { return s.String() } +// SetTargetGroups sets the TargetGroups field's value. +func (s *ModifyTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *ModifyTargetGroupOutput { + s.TargetGroups = v + return s +} + // Contains the parameters for RegisterTargets. type RegisterTargetsInput struct { _ struct{} `type:"structure"` @@ -4200,7 +5016,9 @@ type RegisterTargetsInput struct { // TargetGroupArn is a required field TargetGroupArn *string `type:"string" required:"true"` - // The targets. + // The targets. The default port for a target is the port for the target group. + // You can specify a port override. If a target is already registered, you can + // register it again using a different port. // // Targets is a required field Targets []*TargetDescription `type:"list" required:"true"` @@ -4242,6 +5060,18 @@ func (s *RegisterTargetsInput) Validate() error { return nil } +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *RegisterTargetsInput) SetTargetGroupArn(v string) *RegisterTargetsInput { + s.TargetGroupArn = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *RegisterTargetsInput) SetTargets(v []*TargetDescription) *RegisterTargetsInput { + s.Targets = v + return s +} + // Contains the output of RegisterTargets. type RegisterTargetsOutput struct { _ struct{} `type:"structure"` @@ -4298,6 +5128,18 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetResourceArns sets the ResourceArns field's value. +func (s *RemoveTagsInput) SetResourceArns(v []*string) *RemoveTagsInput { + s.ResourceArns = v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput { + s.TagKeys = v + return s +} + // Contains the output of RemoveTags. type RemoveTagsOutput struct { _ struct{} `type:"structure"` @@ -4343,27 +5185,57 @@ func (s Rule) GoString() string { return s.String() } +// SetActions sets the Actions field's value. +func (s *Rule) SetActions(v []*Action) *Rule { + s.Actions = v + return s +} + +// SetConditions sets the Conditions field's value. +func (s *Rule) SetConditions(v []*RuleCondition) *Rule { + s.Conditions = v + return s +} + +// SetIsDefault sets the IsDefault field's value. +func (s *Rule) SetIsDefault(v bool) *Rule { + s.IsDefault = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *Rule) SetPriority(v string) *Rule { + s.Priority = &v + return s +} + +// SetRuleArn sets the RuleArn field's value. +func (s *Rule) SetRuleArn(v string) *Rule { + s.RuleArn = &v + return s +} + // Information about a condition for a rule. type RuleCondition struct { _ struct{} `type:"structure"` - // The name of the field. The possible value is path-pattern. + // The only possible value is path-pattern. Field *string `type:"string"` - // The values for the field. + // The path pattern. You can specify a single path pattern. // // A path pattern is case sensitive, can be up to 255 characters in length, // and can contain any of the following characters: // - // A-Z, a-z, 0-9 + // * A-Z, a-z, 0-9 // - // _ - . $ / ~ " ' @ : + + // * _ - . $ / ~ " ' @ : + // - // & (using &amp;) + // * & (using &) // - // * (matches 0 or more characters) + // * * (matches 0 or more characters) // - // ? (matches exactly 1 character) + // * ? (matches exactly 1 character) Values []*string `type:"list"` } @@ -4377,6 +5249,18 @@ func (s RuleCondition) GoString() string { return s.String() } +// SetField sets the Field field's value. +func (s *RuleCondition) SetField(v string) *RuleCondition { + s.Field = &v + return s +} + +// SetValues sets the Values field's value. +func (s *RuleCondition) SetValues(v []*string) *RuleCondition { + s.Values = v + return s +} + // Information about the priorities for the rules for a listener. type RulePriorityPair struct { _ struct{} `type:"structure"` @@ -4411,6 +5295,18 @@ func (s *RulePriorityPair) Validate() error { return nil } +// SetPriority sets the Priority field's value. +func (s *RulePriorityPair) SetPriority(v int64) *RulePriorityPair { + s.Priority = &v + return s +} + +// SetRuleArn sets the RuleArn field's value. +func (s *RulePriorityPair) SetRuleArn(v string) *RulePriorityPair { + s.RuleArn = &v + return s +} + // Contains the parameters for SetRulePriorities. type SetRulePrioritiesInput struct { _ struct{} `type:"structure"` @@ -4454,6 +5350,12 @@ func (s *SetRulePrioritiesInput) Validate() error { return nil } +// SetRulePriorities sets the RulePriorities field's value. +func (s *SetRulePrioritiesInput) SetRulePriorities(v []*RulePriorityPair) *SetRulePrioritiesInput { + s.RulePriorities = v + return s +} + // Contains the output of SetRulePriorities. type SetRulePrioritiesOutput struct { _ struct{} `type:"structure"` @@ -4472,6 +5374,12 @@ func (s SetRulePrioritiesOutput) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *SetRulePrioritiesOutput) SetRules(v []*Rule) *SetRulePrioritiesOutput { + s.Rules = v + return s +} + // Contains the parameters for SetSecurityGroups. type SetSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -4513,6 +5421,18 @@ func (s *SetSecurityGroupsInput) Validate() error { return nil } +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *SetSecurityGroupsInput) SetLoadBalancerArn(v string) *SetSecurityGroupsInput { + s.LoadBalancerArn = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *SetSecurityGroupsInput) SetSecurityGroups(v []*string) *SetSecurityGroupsInput { + s.SecurityGroups = v + return s +} + // Contains the output of SetSecurityGroups. type SetSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -4531,6 +5451,12 @@ func (s SetSecurityGroupsOutput) GoString() string { return s.String() } +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *SetSecurityGroupsOutput) SetSecurityGroupIds(v []*string) *SetSecurityGroupsOutput { + s.SecurityGroupIds = v + return s +} + // Contains the parameters for SetSubnets. type SetSubnetsInput struct { _ struct{} `type:"structure"` @@ -4573,6 +5499,18 @@ func (s *SetSubnetsInput) Validate() error { return nil } +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *SetSubnetsInput) SetLoadBalancerArn(v string) *SetSubnetsInput { + s.LoadBalancerArn = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *SetSubnetsInput) SetSubnets(v []*string) *SetSubnetsInput { + s.Subnets = v + return s +} + // Contains the output of SetSubnets. type SetSubnetsOutput struct { _ struct{} `type:"structure"` @@ -4591,6 +5529,12 @@ func (s SetSubnetsOutput) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *SetSubnetsOutput) SetAvailabilityZones(v []*AvailabilityZone) *SetSubnetsOutput { + s.AvailabilityZones = v + return s +} + // Information about a policy used for SSL negotiation. type SslPolicy struct { _ struct{} `type:"structure"` @@ -4615,6 +5559,24 @@ func (s SslPolicy) GoString() string { return s.String() } +// SetCiphers sets the Ciphers field's value. +func (s *SslPolicy) SetCiphers(v []*Cipher) *SslPolicy { + s.Ciphers = v + return s +} + +// SetName sets the Name field's value. +func (s *SslPolicy) SetName(v string) *SslPolicy { + s.Name = &v + return s +} + +// SetSslProtocols sets the SslProtocols field's value. +func (s *SslPolicy) SetSslProtocols(v []*string) *SslPolicy { + s.SslProtocols = v + return s +} + // Information about a tag. type Tag struct { _ struct{} `type:"structure"` @@ -4654,6 +5616,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The tags associated with a resource. type TagDescription struct { _ struct{} `type:"structure"` @@ -4675,6 +5649,18 @@ func (s TagDescription) GoString() string { return s.String() } +// SetResourceArn sets the ResourceArn field's value. +func (s *TagDescription) SetResourceArn(v string) *TagDescription { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagDescription) SetTags(v []*Tag) *TagDescription { + s.Tags = v + return s +} + // Information about a target. type TargetDescription struct { _ struct{} `type:"structure"` @@ -4714,6 +5700,18 @@ func (s *TargetDescription) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *TargetDescription) SetId(v string) *TargetDescription { + s.Id = &v + return s +} + +// SetPort sets the Port field's value. +func (s *TargetDescription) SetPort(v int64) *TargetDescription { + s.Port = &v + return s +} + // Information about a target group. type TargetGroup struct { _ struct{} `type:"structure"` @@ -4776,27 +5774,112 @@ func (s TargetGroup) GoString() string { return s.String() } +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *TargetGroup) SetHealthCheckIntervalSeconds(v int64) *TargetGroup { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *TargetGroup) SetHealthCheckPath(v string) *TargetGroup { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *TargetGroup) SetHealthCheckPort(v string) *TargetGroup { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *TargetGroup) SetHealthCheckProtocol(v string) *TargetGroup { + s.HealthCheckProtocol = &v + return s +} + +// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value. +func (s *TargetGroup) SetHealthCheckTimeoutSeconds(v int64) *TargetGroup { + s.HealthCheckTimeoutSeconds = &v + return s +} + +// SetHealthyThresholdCount sets the HealthyThresholdCount field's value. +func (s *TargetGroup) SetHealthyThresholdCount(v int64) *TargetGroup { + s.HealthyThresholdCount = &v + return s +} + +// SetLoadBalancerArns sets the LoadBalancerArns field's value. +func (s *TargetGroup) SetLoadBalancerArns(v []*string) *TargetGroup { + s.LoadBalancerArns = v + return s +} + +// SetMatcher sets the Matcher field's value. +func (s *TargetGroup) SetMatcher(v *Matcher) *TargetGroup { + s.Matcher = v + return s +} + +// SetPort sets the Port field's value. +func (s *TargetGroup) SetPort(v int64) *TargetGroup { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *TargetGroup) SetProtocol(v string) *TargetGroup { + s.Protocol = &v + return s +} + +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *TargetGroup) SetTargetGroupArn(v string) *TargetGroup { + s.TargetGroupArn = &v + return s +} + +// SetTargetGroupName sets the TargetGroupName field's value. +func (s *TargetGroup) SetTargetGroupName(v string) *TargetGroup { + s.TargetGroupName = &v + return s +} + +// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value. +func (s *TargetGroup) SetUnhealthyThresholdCount(v int64) *TargetGroup { + s.UnhealthyThresholdCount = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *TargetGroup) SetVpcId(v string) *TargetGroup { + s.VpcId = &v + return s +} + // Information about a target group attribute. type TargetGroupAttribute struct { _ struct{} `type:"structure"` // The name of the attribute. // - // deregistration_delay.timeout_seconds - The amount time for Elastic Load - // Balancing to wait before changing the state of a deregistering target from - // draining to unused. The range is 0-3600 seconds. The default value is 300 - // seconds. + // * deregistration_delay.timeout_seconds - The amount time for Elastic Load + // Balancing to wait before changing the state of a deregistering target + // from draining to unused. The range is 0-3600 seconds. The default value + // is 300 seconds. // - // stickiness.enabled - Indicates whether sticky sessions are enabled. + // * stickiness.enabled - Indicates whether sticky sessions are enabled. + // The value is true or false. // - // stickiness.type - The type of sticky sessions. The possible value is - // lb_cookie. + // * stickiness.type - The type of sticky sessions. The possible value is + // lb_cookie. // - // stickiness.lb_cookie.duration_seconds - The time period, in seconds, - // during which requests from a client should be routed to the same target. - // After this time period expires, the load balancer-generated cookie is considered - // stale. The range is 1 second to 1 week (604800 seconds). The default value - // is 1 day (86400 seconds). + // * stickiness.lb_cookie.duration_seconds - The time period, in seconds, + // during which requests from a client should be routed to the same target. + // After this time period expires, the load balancer-generated cookie is + // considered stale. The range is 1 second to 1 week (604800 seconds). The + // default value is 1 day (86400 seconds). Key *string `type:"string"` // The value of the attribute. @@ -4813,6 +5896,18 @@ func (s TargetGroupAttribute) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *TargetGroupAttribute) SetKey(v string) *TargetGroupAttribute { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TargetGroupAttribute) SetValue(v string) *TargetGroupAttribute { + s.Value = &v + return s +} + // Information about the current health of a target. type TargetHealth struct { _ struct{} `type:"structure"` @@ -4826,41 +5921,42 @@ type TargetHealth struct { // If the target state is initial, the reason code can be one of the following // values: // - // Elb.RegistrationInProgress - The target is in the process of being registered - // with the load balancer. + // * Elb.RegistrationInProgress - The target is in the process of being registered + // with the load balancer. // - // Elb.InitialHealthChecking - The load balancer is still sending the target - // the minimum number of health checks required to determine its health status. + // * Elb.InitialHealthChecking - The load balancer is still sending the target + // the minimum number of health checks required to determine its health status. // - // If the target state is unhealthy, the reason code can be one of the following + // If the target state is unhealthy, the reason code can be one of the following // values: // - // Target.ResponseCodeMismatch - The health checks did not return an expected - // HTTP code. + // * Target.ResponseCodeMismatch - The health checks did not return an expected + // HTTP code. // - // Target.Timeout - The health check requests timed out. + // * Target.Timeout - The health check requests timed out. // - // Target.FailedHealthChecks - The health checks failed because the connection - // to the target timed out, the target response was malformed, or the target - // failed the health check for an unknown reason. + // * Target.FailedHealthChecks - The health checks failed because the connection + // to the target timed out, the target response was malformed, or the target + // failed the health check for an unknown reason. // - // Elb.InternalError - The health checks failed due to an internal error. + // * Elb.InternalError - The health checks failed due to an internal error. // - // If the target state is unused, the reason code can be one of the following + // If the target state is unused, the reason code can be one of the following // values: // - // Target.NotRegistered - The target is not registered with the target group. + // * Target.NotRegistered - The target is not registered with the target + // group. // - // Target.NotInUse - The target group is not used by any load balancer or - // the target is in an Availability Zone that is not enabled for its load balancer. + // * Target.NotInUse - The target group is not used by any load balancer + // or the target is in an Availability Zone that is not enabled for its load + // balancer. // - // Target.InvalidState - The target is in the stopped or terminated state. + // * Target.InvalidState - The target is in the stopped or terminated state. // - // If the target state is draining, the reason code can be the following - // value: + // If the target state is draining, the reason code can be the following value: // - // Target.DeregistrationInProgress - The target is in the process of being - // deregistered and the deregistration delay period has not expired. + // * Target.DeregistrationInProgress - The target is in the process of being + // deregistered and the deregistration delay period has not expired. Reason *string `type:"string" enum:"TargetHealthReasonEnum"` // The state of the target. @@ -4877,6 +5973,24 @@ func (s TargetHealth) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *TargetHealth) SetDescription(v string) *TargetHealth { + s.Description = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *TargetHealth) SetReason(v string) *TargetHealth { + s.Reason = &v + return s +} + +// SetState sets the State field's value. +func (s *TargetHealth) SetState(v string) *TargetHealth { + s.State = &v + return s +} + // Information about the health of a target. type TargetHealthDescription struct { _ struct{} `type:"structure"` @@ -4901,6 +6015,24 @@ func (s TargetHealthDescription) GoString() string { return s.String() } +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *TargetHealthDescription) SetHealthCheckPort(v string) *TargetHealthDescription { + s.HealthCheckPort = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *TargetHealthDescription) SetTarget(v *TargetDescription) *TargetHealthDescription { + s.Target = v + return s +} + +// SetTargetHealth sets the TargetHealth field's value. +func (s *TargetHealthDescription) SetTargetHealth(v *TargetHealth) *TargetHealthDescription { + s.TargetHealth = v + return s +} + const ( // ActionTypeEnumForward is a ActionTypeEnum enum value ActionTypeEnumForward = "forward" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/service.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/service.go index 4dae4e79b..e765bd968 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/service.go @@ -22,42 +22,41 @@ import ( // with health check settings to be used when checking the health status of // the targets. // -// Elastic Load Balancing supports two types of load balancers: Classic load -// balancers and Application load balancers (new). 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. An Application load balancer makes routing and load balancing decisions -// at the application layer (HTTP/HTTPS), supports path-based routing, and can +// Elastic Load Balancing supports two types of load balancers: Classic Load +// Balancers and Application Load Balancers. 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. +// An Application Load Balancer makes routing and load balancing decisions at +// the application layer (HTTP/HTTPS), supports path-based routing, and can // route requests to one or more ports on each EC2 instance or container instance // in your virtual private cloud (VPC). For more information, see the Elastic // Load Balancing User Guide (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/). // -// This reference covers the 2015-12-01 API, which supports Application load -// balancers. The 2012-06-01 API supports Classic load balancers. +// This reference covers the 2015-12-01 API, which supports Application Load +// Balancers. The 2012-06-01 API supports Classic Load Balancers. // -// To get started with an Application load balancer, complete the following -// tasks: +// To get started, complete the following tasks: // -// Create a load balancer using CreateLoadBalancer. +// Create an Application Load Balancer using CreateLoadBalancer. // -// Create a target group using CreateTargetGroup. +// Create a target group using CreateTargetGroup. // -// Register targets for the target group using RegisterTargets. +// Register targets for the target group using RegisterTargets. // -// 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 +// (Optional) Create one or more rules for content routing based on URL using // CreateRule. // -// To delete an Application load balancer and its related resources, complete +// 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. // -// Delete the target group using DeleteTargetGroup. +// Delete the target group using DeleteTargetGroup. // -// All Elastic Load Balancing operations are idempotent, which means that -// they complete at most one time. If you repeat an operation, it succeeds. +// All Elastic Load Balancing operations are idempotent, which means that they +// complete at most one time. If you repeat an operation, it succeeds. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type ELBV2 struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/api.go b/vendor/github.com/aws/aws-sdk-go/service/emr/api.go index 70a874f9f..9c39d8caa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/api.go @@ -58,7 +58,7 @@ func (c *EMR) AddInstanceGroupsRequest(input *AddInstanceGroupsInput) (req *requ // AddInstanceGroups API operation for Amazon Elastic MapReduce. // -// AddInstanceGroups adds an instance group to a running cluster. +// Adds one or more instance groups to a running cluster. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -131,19 +131,18 @@ func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request. // the 256-step limitation in various ways, including using the SSH shell to // connect to the master node and submitting queries directly to the software // running on the master node, such as Hive and Hadoop. For more information -// on how to do this, go to Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/AddMoreThan256Steps.html) -// in the Amazon Elastic MapReduce Developer's Guide. +// on how to do this, see Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/AddMoreThan256Steps.html) +// in the Amazon EMR Developer's Guide. // -// A step specifies the location of a JAR file stored either on the master -// node of the job flow or in Amazon S3. Each step is performed by the main -// function of the main class of the JAR file. The main class can be specified -// either in the manifest of the JAR or by using the MainFunction parameter -// of the step. +// A step specifies the location of a JAR file stored either on the master node +// of the job flow or in Amazon S3. Each step is performed by the main function +// of the main class of the JAR file. The main class can be specified either +// in the manifest of the JAR or by using the MainFunction parameter of the +// step. // -// Elastic MapReduce executes each step in the order listed. For a step to -// be considered complete, the main function must exit with a zero exit code -// and all Hadoop jobs started while the step was running must have completed -// and run successfully. +// Amazon EMR executes each step in the order listed. For a step to be considered +// complete, the main function must exit with a zero exit code and all Hadoop +// jobs started while the step was running must have completed and run successfully. // // You can only add steps to a job flow that is in one of the following states: // STARTING, BOOTSTRAPPING, RUNNING, or WAITING. @@ -236,6 +235,78 @@ func (c *EMR) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { return out, err } +const opCancelSteps = "CancelSteps" + +// CancelStepsRequest generates a "aws/request.Request" representing the +// client's request for the CancelSteps operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CancelSteps for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CancelSteps method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CancelStepsRequest method. +// req, resp := client.CancelStepsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *EMR) CancelStepsRequest(input *CancelStepsInput) (req *request.Request, output *CancelStepsOutput) { + op := &request.Operation{ + Name: opCancelSteps, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelStepsInput{} + } + + req = c.newRequest(op, input, output) + output = &CancelStepsOutput{} + req.Data = output + return +} + +// CancelSteps API operation for Amazon Elastic MapReduce. +// +// Cancels a pending step or steps in a running cluster. Available only in Amazon +// EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps +// are allowed in each CancelSteps request. CancelSteps is idempotent but asynchronous; +// it does not guarantee a step will be canceled, even if the request is successfully +// submitted. You can only cancel steps that are in a PENDING state. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation CancelSteps for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// +func (c *EMR) CancelSteps(input *CancelStepsInput) (*CancelStepsOutput, error) { + req, out := c.CancelStepsRequest(input) + err := req.Send() + return out, err +} + const opCreateSecurityConfiguration = "CreateSecurityConfiguration" // CreateSecurityConfigurationRequest generates a "aws/request.Request" representing the @@ -281,9 +352,8 @@ func (c *EMR) CreateSecurityConfigurationRequest(input *CreateSecurityConfigurat // CreateSecurityConfiguration API operation for Amazon Elastic MapReduce. // -// Creates a security configuration using EMR Security Configurations, which -// are stored in the service. Security Configurations enable you to more easily -// create a configuration, reuse it, and apply it whenever a cluster is created. +// Creates a security configuration, which is stored in the service and can +// be specified when a cluster is created. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -502,12 +572,12 @@ func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *reques // If no parameters are supplied, then job flows matching either of the following // criteria are returned: // -// Job flows created and completed in the last two weeks +// * Job flows created and completed in the last two weeks // -// Job flows created within the last two months that are in one of the following -// states: RUNNING, WAITING, SHUTTING_DOWN, STARTING +// * Job flows created within the last two months that are in one of the +// following states: RUNNING, WAITING, SHUTTING_DOWN, STARTING // -// Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions. +// Amazon EMR can return a maximum of 512 job flow descriptions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1183,7 +1253,8 @@ func (c *EMR) ListStepsRequest(input *ListStepsInput) (req *request.Request, out // ListSteps API operation for Amazon Elastic MapReduce. // -// Provides a list of steps for the cluster. +// Provides a list of steps for the cluster in reverse order unless you specify +// stepIds with the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1300,6 +1371,128 @@ func (c *EMR) ModifyInstanceGroups(input *ModifyInstanceGroupsInput) (*ModifyIns return out, err } +const opPutAutoScalingPolicy = "PutAutoScalingPolicy" + +// PutAutoScalingPolicyRequest generates a "aws/request.Request" representing the +// client's request for the PutAutoScalingPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutAutoScalingPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutAutoScalingPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutAutoScalingPolicyRequest method. +// req, resp := client.PutAutoScalingPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *EMR) PutAutoScalingPolicyRequest(input *PutAutoScalingPolicyInput) (req *request.Request, output *PutAutoScalingPolicyOutput) { + op := &request.Operation{ + Name: opPutAutoScalingPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutAutoScalingPolicyInput{} + } + + req = c.newRequest(op, input, output) + output = &PutAutoScalingPolicyOutput{} + req.Data = output + return +} + +// PutAutoScalingPolicy API operation for Amazon Elastic MapReduce. +// +// Creates or updates an automatic scaling policy for a core instance group +// or task instance group in an Amazon EMR cluster. The automatic scaling policy +// defines how an instance group dynamically adds and terminates EC2 instances +// in response to the value of a CloudWatch metric. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation PutAutoScalingPolicy for usage and error information. +func (c *EMR) PutAutoScalingPolicy(input *PutAutoScalingPolicyInput) (*PutAutoScalingPolicyOutput, error) { + req, out := c.PutAutoScalingPolicyRequest(input) + err := req.Send() + return out, err +} + +const opRemoveAutoScalingPolicy = "RemoveAutoScalingPolicy" + +// RemoveAutoScalingPolicyRequest generates a "aws/request.Request" representing the +// client's request for the RemoveAutoScalingPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveAutoScalingPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveAutoScalingPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveAutoScalingPolicyRequest method. +// req, resp := client.RemoveAutoScalingPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *EMR) RemoveAutoScalingPolicyRequest(input *RemoveAutoScalingPolicyInput) (req *request.Request, output *RemoveAutoScalingPolicyOutput) { + op := &request.Operation{ + Name: opRemoveAutoScalingPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RemoveAutoScalingPolicyInput{} + } + + req = c.newRequest(op, input, output) + output = &RemoveAutoScalingPolicyOutput{} + req.Data = output + return +} + +// RemoveAutoScalingPolicy API operation for Amazon Elastic MapReduce. +// +// Removes an automatic scaling policy from a specified instance group within +// an EMR cluster. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation RemoveAutoScalingPolicy for usage and error information. +func (c *EMR) RemoveAutoScalingPolicy(input *RemoveAutoScalingPolicyInput) (*RemoveAutoScalingPolicyOutput, error) { + req, out := c.RemoveAutoScalingPolicyRequest(input) + err := req.Send() + return out, err +} + const opRemoveTags = "RemoveTags" // RemoveTagsRequest generates a "aws/request.Request" representing the @@ -1418,13 +1611,13 @@ func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, o // RunJobFlow API operation for Amazon Elastic MapReduce. // // RunJobFlow creates and starts running a new job flow. The job flow will run -// the steps specified. Once the job flow completes, the cluster is stopped +// the steps specified. After the job flow completes, the cluster is stopped // and the HDFS partition is lost. To prevent loss of data, configure the last -// step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig -// KeepJobFlowAliveWhenNoSteps parameter is set to TRUE, the job flow will transition -// to the WAITING state rather than shutting down once the steps have completed. +// step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfigKeepJobFlowAliveWhenNoSteps +// parameter is set to TRUE, the job flow will transition to the WAITING state +// rather than shutting down after the steps have completed. // -// For additional protection, you can set the JobFlowInstancesConfig TerminationProtected +// For additional protection, you can set the JobFlowInstancesConfigTerminationProtected // parameter to TRUE to lock the job flow and prevent it from being terminated // by API call, user intervention, or in the event of a job flow error. // @@ -1435,8 +1628,8 @@ func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, o // the 256-step limitation in various ways, including using the SSH shell to // connect to the master node and submitting queries directly to the software // running on the master node, such as Hive and Hadoop. For more information -// on how to do this, go to Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/AddMoreThan256Steps.html) -// in the Amazon Elastic MapReduce Developer's Guide. +// on how to do this, see Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/Management/Guide/AddMoreThan256Steps.html) +// in the Amazon EMR Management Guide. // // For long running job flows, we recommend that you periodically store your // results. @@ -1506,23 +1699,23 @@ func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInp // SetTerminationProtection API operation for Amazon Elastic MapReduce. // -// SetTerminationProtection locks a job flow so the Amazon EC2 instances in -// the cluster cannot be terminated by user intervention, an API call, or in -// the event of a job-flow error. The cluster still terminates upon successful -// completion of the job flow. Calling SetTerminationProtection on a job flow -// is analogous to calling the Amazon EC2 DisableAPITermination API on all of -// the EC2 instances in a cluster. +// SetTerminationProtection locks a job flow so the EC2 instances in the cluster +// cannot be terminated by user intervention, an API call, or in the event of +// a job-flow error. The cluster still terminates upon successful completion +// of the job flow. Calling SetTerminationProtection on a job flow is analogous +// to calling the Amazon EC2 DisableAPITermination API on all of the EC2 instances +// in a cluster. // -// SetTerminationProtection is used to prevent accidental termination of a -// job flow and to ensure that in the event of an error, the instances will -// persist so you can recover any data stored in their ephemeral instance storage. +// SetTerminationProtection is used to prevent accidental termination of a job +// flow and to ensure that in the event of an error, the instances will persist +// so you can recover any data stored in their ephemeral instance storage. // -// To terminate a job flow that has been locked by setting SetTerminationProtection +// To terminate a job flow that has been locked by setting SetTerminationProtection // to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection // in which you set the value to false. // -// For more information, go to Protecting a Job Flow from Termination (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/UsingEMR_TerminationProtection.html) -// in the Amazon Elastic MapReduce Developer's Guide. +// For more information, seeProtecting a Job Flow from Termination (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/UsingEMR_TerminationProtection.html) +// in the Amazon EMR 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 @@ -1668,7 +1861,7 @@ func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *requ // // The maximum number of JobFlows allowed is 10. The call to TerminateJobFlows // is asynchronous. Depending on the configuration of the job flow, it may take -// up to 5-20 minutes for the job flow to completely terminate and release allocated +// up to 1-5 minutes for the job flow to completely terminate and release allocated // resources, such as Amazon EC2 instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1693,7 +1886,7 @@ func (c *EMR) TerminateJobFlows(input *TerminateJobFlowsInput) (*TerminateJobFlo type AddInstanceGroupsInput struct { _ struct{} `type:"structure"` - // Instance Groups to add. + // Instance groups to add. // // InstanceGroups is a required field InstanceGroups []*InstanceGroupConfig `type:"list" required:"true"` @@ -1740,6 +1933,18 @@ func (s *AddInstanceGroupsInput) Validate() error { return nil } +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *AddInstanceGroupsInput) SetInstanceGroups(v []*InstanceGroupConfig) *AddInstanceGroupsInput { + s.InstanceGroups = v + return s +} + +// SetJobFlowId sets the JobFlowId field's value. +func (s *AddInstanceGroupsInput) SetJobFlowId(v string) *AddInstanceGroupsInput { + s.JobFlowId = &v + return s +} + // Output from an AddInstanceGroups call. type AddInstanceGroupsOutput struct { _ struct{} `type:"structure"` @@ -1761,6 +1966,18 @@ func (s AddInstanceGroupsOutput) GoString() string { return s.String() } +// SetInstanceGroupIds sets the InstanceGroupIds field's value. +func (s *AddInstanceGroupsOutput) SetInstanceGroupIds(v []*string) *AddInstanceGroupsOutput { + s.InstanceGroupIds = v + return s +} + +// SetJobFlowId sets the JobFlowId field's value. +func (s *AddInstanceGroupsOutput) SetJobFlowId(v string) *AddInstanceGroupsOutput { + s.JobFlowId = &v + return s +} + // The input argument to the AddJobFlowSteps operation. type AddJobFlowStepsInput struct { _ struct{} `type:"structure"` @@ -1813,6 +2030,18 @@ func (s *AddJobFlowStepsInput) Validate() error { return nil } +// SetJobFlowId sets the JobFlowId field's value. +func (s *AddJobFlowStepsInput) SetJobFlowId(v string) *AddJobFlowStepsInput { + s.JobFlowId = &v + return s +} + +// SetSteps sets the Steps field's value. +func (s *AddJobFlowStepsInput) SetSteps(v []*StepConfig) *AddJobFlowStepsInput { + s.Steps = v + return s +} + // The output for the AddJobFlowSteps operation. type AddJobFlowStepsOutput struct { _ struct{} `type:"structure"` @@ -1831,6 +2060,12 @@ func (s AddJobFlowStepsOutput) GoString() string { return s.String() } +// SetStepIds sets the StepIds field's value. +func (s *AddJobFlowStepsOutput) SetStepIds(v []*string) *AddJobFlowStepsOutput { + s.StepIds = v + return s +} + // This input identifies a cluster and a list of tags to attach. type AddTagsInput struct { _ struct{} `type:"structure"` @@ -1841,7 +2076,7 @@ type AddTagsInput struct { // ResourceId is a required field ResourceId *string `type:"string" required:"true"` - // A list of tags to associate with a cluster and propagate to Amazon EC2 instances. + // A list of tags to associate with a cluster and propagate to EC2 instances. // Tags are user-defined key/value pairs that consist of a required key string // with a maximum of 128 characters, and an optional value string with a maximum // of 256 characters. @@ -1876,6 +2111,18 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsInput) SetResourceId(v string) *AddTagsInput { + s.ResourceId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + // This output indicates the result of adding tags to a resource. type AddTagsOutput struct { _ struct{} `type:"structure"` @@ -1899,15 +2146,15 @@ func (s AddTagsOutput) GoString() string { // Flow on the MapR Distribution for Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-mapr.html). // Currently supported values are: // -// "mapr-m3" - launch the job flow using MapR M3 Edition. +// * "mapr-m3" - launch the job flow using MapR M3 Edition. // -// "mapr-m5" - launch the job flow using MapR M5 Edition. +// * "mapr-m5" - launch the job flow using MapR M5 Edition. // -// "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" -// - launch the job flow using MapR M3 or M5 Edition, respectively. +// * "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" +// - launch the job flow using MapR M3 or M5 Edition, respectively. // -// In Amazon EMR releases 4.0 and greater, the only accepted parameter is -// the application name. To pass arguments to applications, you supply a configuration +// In Amazon EMR releases 4.0 and greater, the only accepted parameter is the +// application name. To pass arguments to applications, you supply a configuration // for each application. type Application struct { _ struct{} `type:"structure"` @@ -1936,12 +2183,230 @@ func (s Application) GoString() string { return s.String() } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *Application) SetAdditionalInfo(v map[string]*string) *Application { + s.AdditionalInfo = v + return s +} + +// SetArgs sets the Args field's value. +func (s *Application) SetArgs(v []*string) *Application { + s.Args = v + return s +} + +// SetName sets the Name field's value. +func (s *Application) SetName(v string) *Application { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *Application) SetVersion(v string) *Application { + s.Version = &v + return s +} + +// An automatic scaling policy for a core instance group or task instance group +// in an Amazon EMR cluster. An automatic scaling policy defines how an instance +// group dynamically adds and terminates EC2 instances in response to the value +// of a CloudWatch metric. See PutAutoScalingPolicy. +type AutoScalingPolicy struct { + _ struct{} `type:"structure"` + + // The upper and lower EC2 instance limits for an automatic scaling policy. + // Automatic scaling activity will not cause an instance group to grow above + // or below these limits. + // + // Constraints is a required field + Constraints *ScalingConstraints `type:"structure" required:"true"` + + // The scale-in and scale-out rules that comprise the automatic scaling policy. + // + // Rules is a required field + Rules []*ScalingRule `type:"list" required:"true"` +} + +// String returns the string representation +func (s AutoScalingPolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoScalingPolicy) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoScalingPolicy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoScalingPolicy"} + if s.Constraints == nil { + invalidParams.Add(request.NewErrParamRequired("Constraints")) + } + if s.Rules == nil { + invalidParams.Add(request.NewErrParamRequired("Rules")) + } + if s.Constraints != nil { + if err := s.Constraints.Validate(); err != nil { + invalidParams.AddNested("Constraints", err.(request.ErrInvalidParams)) + } + } + if s.Rules != nil { + for i, v := range s.Rules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConstraints sets the Constraints field's value. +func (s *AutoScalingPolicy) SetConstraints(v *ScalingConstraints) *AutoScalingPolicy { + s.Constraints = v + return s +} + +// SetRules sets the Rules field's value. +func (s *AutoScalingPolicy) SetRules(v []*ScalingRule) *AutoScalingPolicy { + s.Rules = v + return s +} + +// An automatic scaling policy for a core instance group or task instance group +// in an Amazon EMR cluster. The automatic scaling policy defines how an instance +// group dynamically adds and terminates EC2 instances in response to the value +// of a CloudWatch metric. See PutAutoScalingPolicy. +type AutoScalingPolicyDescription struct { + _ struct{} `type:"structure"` + + // The upper and lower EC2 instance limits for an automatic scaling policy. + // Automatic scaling activity will not cause an instance group to grow above + // or below these limits. + Constraints *ScalingConstraints `type:"structure"` + + // The scale-in and scale-out rules that comprise the automatic scaling policy. + Rules []*ScalingRule `type:"list"` + + // The status of an automatic scaling policy. + Status *AutoScalingPolicyStatus `type:"structure"` +} + +// String returns the string representation +func (s AutoScalingPolicyDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoScalingPolicyDescription) GoString() string { + return s.String() +} + +// SetConstraints sets the Constraints field's value. +func (s *AutoScalingPolicyDescription) SetConstraints(v *ScalingConstraints) *AutoScalingPolicyDescription { + s.Constraints = v + return s +} + +// SetRules sets the Rules field's value. +func (s *AutoScalingPolicyDescription) SetRules(v []*ScalingRule) *AutoScalingPolicyDescription { + s.Rules = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AutoScalingPolicyDescription) SetStatus(v *AutoScalingPolicyStatus) *AutoScalingPolicyDescription { + s.Status = v + return s +} + +// The reason for an AutoScalingPolicyStatus change. +type AutoScalingPolicyStateChangeReason struct { + _ struct{} `type:"structure"` + + // The code indicating the reason for the change in status.USER_REQUEST indicates + // that the scaling policy status was changed by a user. PROVISION_FAILURE indicates + // that the status change was because the policy failed to provision. CLEANUP_FAILURE + // indicates something unclean happened.--> + Code *string `type:"string" enum:"AutoScalingPolicyStateChangeReasonCode"` + + // A friendly, more verbose message that accompanies an automatic scaling policy + // state change. + Message *string `type:"string"` +} + +// String returns the string representation +func (s AutoScalingPolicyStateChangeReason) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoScalingPolicyStateChangeReason) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *AutoScalingPolicyStateChangeReason) SetCode(v string) *AutoScalingPolicyStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *AutoScalingPolicyStateChangeReason) SetMessage(v string) *AutoScalingPolicyStateChangeReason { + s.Message = &v + return s +} + +// The status of an automatic scaling policy. +type AutoScalingPolicyStatus struct { + _ struct{} `type:"structure"` + + State *string `type:"string" enum:"AutoScalingPolicyState"` + + // The reason for a change in status. + StateChangeReason *AutoScalingPolicyStateChangeReason `type:"structure"` +} + +// String returns the string representation +func (s AutoScalingPolicyStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoScalingPolicyStatus) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *AutoScalingPolicyStatus) SetState(v string) *AutoScalingPolicyStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *AutoScalingPolicyStatus) SetStateChangeReason(v *AutoScalingPolicyStateChangeReason) *AutoScalingPolicyStatus { + s.StateChangeReason = v + return s +} + +// Configuration of a bootstrap action. type BootstrapActionConfig struct { _ struct{} `type:"structure"` + // The name of the bootstrap action. + // // Name is a required field Name *string `type:"string" required:"true"` + // The script run by the bootstrap action. + // // ScriptBootstrapAction is a required field ScriptBootstrapAction *ScriptBootstrapActionConfig `type:"structure" required:"true"` } @@ -1977,6 +2442,18 @@ func (s *BootstrapActionConfig) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *BootstrapActionConfig) SetName(v string) *BootstrapActionConfig { + s.Name = &v + return s +} + +// SetScriptBootstrapAction sets the ScriptBootstrapAction field's value. +func (s *BootstrapActionConfig) SetScriptBootstrapAction(v *ScriptBootstrapActionConfig) *BootstrapActionConfig { + s.ScriptBootstrapAction = v + return s +} + // Reports the configuration of a bootstrap action in a job flow. type BootstrapActionDetail struct { _ struct{} `type:"structure"` @@ -1995,6 +2472,246 @@ func (s BootstrapActionDetail) GoString() string { return s.String() } +// SetBootstrapActionConfig sets the BootstrapActionConfig field's value. +func (s *BootstrapActionDetail) SetBootstrapActionConfig(v *BootstrapActionConfig) *BootstrapActionDetail { + s.BootstrapActionConfig = v + return s +} + +type CancelStepsInfo struct { + _ struct{} `type:"structure"` + + Reason *string `type:"string"` + + Status *string `type:"string" enum:"CancelStepsRequestStatus"` + + StepId *string `type:"string"` +} + +// String returns the string representation +func (s CancelStepsInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelStepsInfo) GoString() string { + return s.String() +} + +// SetReason sets the Reason field's value. +func (s *CancelStepsInfo) SetReason(v string) *CancelStepsInfo { + s.Reason = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CancelStepsInfo) SetStatus(v string) *CancelStepsInfo { + s.Status = &v + return s +} + +// SetStepId sets the StepId field's value. +func (s *CancelStepsInfo) SetStepId(v string) *CancelStepsInfo { + s.StepId = &v + return s +} + +// The input argument to the CancelSteps operation. +type CancelStepsInput struct { + _ struct{} `type:"structure"` + + // The ClusterID for which specified steps will be canceled. Use RunJobFlow + // and ListClusters to get ClusterIDs. + ClusterId *string `type:"string"` + + // The list of StepIDs to cancel. Use ListSteps to get steps and their states + // for the specified cluster. + StepIds []*string `type:"list"` +} + +// String returns the string representation +func (s CancelStepsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelStepsInput) GoString() string { + return s.String() +} + +// SetClusterId sets the ClusterId field's value. +func (s *CancelStepsInput) SetClusterId(v string) *CancelStepsInput { + s.ClusterId = &v + return s +} + +// SetStepIds sets the StepIds field's value. +func (s *CancelStepsInput) SetStepIds(v []*string) *CancelStepsInput { + s.StepIds = v + return s +} + +// The output for the CancelSteps operation. +type CancelStepsOutput struct { + _ struct{} `type:"structure"` + + // A list of CancelStepsInfo, which shows the status of specified cancel requests + // for each StepID specified. + CancelStepsInfoList []*CancelStepsInfo `type:"list"` +} + +// String returns the string representation +func (s CancelStepsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelStepsOutput) GoString() string { + return s.String() +} + +// SetCancelStepsInfoList sets the CancelStepsInfoList field's value. +func (s *CancelStepsOutput) SetCancelStepsInfoList(v []*CancelStepsInfo) *CancelStepsOutput { + s.CancelStepsInfoList = v + return s +} + +// The definition of a CloudWatch metric alarm, which determines when an automatic +// scaling activity is triggered. When the defined alarm conditions are satisfied, +// scaling activity begins. +type CloudWatchAlarmDefinition struct { + _ struct{} `type:"structure"` + + // Determines how the metric specified by MetricName is compared to the value + // specified by Threshold. + // + // ComparisonOperator is a required field + ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` + + // A CloudWatch metric dimension. + Dimensions []*MetricDimension `type:"list"` + + // The number of periods, expressed in seconds using Period, during which the + // alarm condition must exist before the alarm triggers automatic scaling activity. + // The default value is 1. + EvaluationPeriods *int64 `type:"integer"` + + // The name of the CloudWatch metric that is watched to determine an alarm condition. + // + // MetricName is a required field + MetricName *string `type:"string" required:"true"` + + // The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce. + Namespace *string `type:"string"` + + // The period, in seconds, over which the statistic is applied. EMR CloudWatch + // metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch + // metric is specified, specify 300. + // + // Period is a required field + Period *int64 `type:"integer" required:"true"` + + // The statistic to apply to the metric associated with the alarm. The default + // is AVERAGE. + Statistic *string `type:"string" enum:"Statistic"` + + // The value against which the specified statistic is compared. + // + // Threshold is a required field + Threshold *float64 `type:"double" required:"true"` + + // The unit of measure associated with the CloudWatch metric being watched. + // The value specified for Unit must correspond to the units specified in the + // CloudWatch metric. + Unit *string `type:"string" enum:"Unit"` +} + +// String returns the string representation +func (s CloudWatchAlarmDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchAlarmDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloudWatchAlarmDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchAlarmDefinition"} + if s.ComparisonOperator == nil { + invalidParams.Add(request.NewErrParamRequired("ComparisonOperator")) + } + if s.MetricName == nil { + invalidParams.Add(request.NewErrParamRequired("MetricName")) + } + if s.Period == nil { + invalidParams.Add(request.NewErrParamRequired("Period")) + } + if s.Threshold == nil { + invalidParams.Add(request.NewErrParamRequired("Threshold")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *CloudWatchAlarmDefinition) SetComparisonOperator(v string) *CloudWatchAlarmDefinition { + s.ComparisonOperator = &v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *CloudWatchAlarmDefinition) SetDimensions(v []*MetricDimension) *CloudWatchAlarmDefinition { + s.Dimensions = v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *CloudWatchAlarmDefinition) SetEvaluationPeriods(v int64) *CloudWatchAlarmDefinition { + s.EvaluationPeriods = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *CloudWatchAlarmDefinition) SetMetricName(v string) *CloudWatchAlarmDefinition { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *CloudWatchAlarmDefinition) SetNamespace(v string) *CloudWatchAlarmDefinition { + s.Namespace = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *CloudWatchAlarmDefinition) SetPeriod(v int64) *CloudWatchAlarmDefinition { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *CloudWatchAlarmDefinition) SetStatistic(v string) *CloudWatchAlarmDefinition { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *CloudWatchAlarmDefinition) SetThreshold(v float64) *CloudWatchAlarmDefinition { + s.Threshold = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *CloudWatchAlarmDefinition) SetUnit(v string) *CloudWatchAlarmDefinition { + s.Unit = &v + return s +} + // The detailed description of the cluster. type Cluster struct { _ struct{} `type:"structure"` @@ -2002,12 +2719,17 @@ type Cluster struct { // The applications installed on this cluster. Applications []*Application `type:"list"` + // An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. + // The IAM role provides permissions that the automatic scaling feature requires + // to launch and terminate EC2 instances in an instance group. + AutoScalingRole *string `type:"string"` + // Specifies whether the cluster should terminate after completing all steps. AutoTerminate *bool `type:"boolean"` // Amazon EMR releases 4.x or later. // - // The list of Configurations supplied to the EMR cluster. + // The list of Configurations supplied to the EMR cluster. Configurations []*Configuration `type:"list"` // Provides information about the EC2 instances in a cluster grouped by category. @@ -2044,6 +2766,20 @@ type Cluster struct { // The AMI version running on this cluster. RunningAmiVersion *string `type:"string"` + // The way that individual Amazon EC2 instances terminate when an automatic + // scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR + // indicates that Amazon EMR terminates nodes at the instance-hour boundary, + // regardless of when the request to terminate the instance was submitted. This + // option is only available with Amazon EMR 5.1.0 and later and is the default + // for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates + // that Amazon EMR blacklists and drains tasks from nodes before terminating + // the Amazon EC2 instances, regardless of the instance-hour boundary. With + // either behavior, Amazon EMR removes the least active nodes first and blocks + // instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION + // is available only in Amazon EMR version 4.1.0 and later, and is the default + // for versions of Amazon EMR earlier than 5.1.0. + ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"` + // The name of the security configuration applied to the cluster. SecurityConfiguration *string `type:"string"` @@ -2081,6 +2817,126 @@ func (s Cluster) GoString() string { return s.String() } +// SetApplications sets the Applications field's value. +func (s *Cluster) SetApplications(v []*Application) *Cluster { + s.Applications = v + return s +} + +// SetAutoScalingRole sets the AutoScalingRole field's value. +func (s *Cluster) SetAutoScalingRole(v string) *Cluster { + s.AutoScalingRole = &v + return s +} + +// SetAutoTerminate sets the AutoTerminate field's value. +func (s *Cluster) SetAutoTerminate(v bool) *Cluster { + s.AutoTerminate = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *Cluster) SetConfigurations(v []*Configuration) *Cluster { + s.Configurations = v + return s +} + +// SetEc2InstanceAttributes sets the Ec2InstanceAttributes field's value. +func (s *Cluster) SetEc2InstanceAttributes(v *Ec2InstanceAttributes) *Cluster { + s.Ec2InstanceAttributes = v + return s +} + +// SetId sets the Id field's value. +func (s *Cluster) SetId(v string) *Cluster { + s.Id = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *Cluster) SetLogUri(v string) *Cluster { + s.LogUri = &v + return s +} + +// SetMasterPublicDnsName sets the MasterPublicDnsName field's value. +func (s *Cluster) SetMasterPublicDnsName(v string) *Cluster { + s.MasterPublicDnsName = &v + return s +} + +// SetName sets the Name field's value. +func (s *Cluster) SetName(v string) *Cluster { + s.Name = &v + return s +} + +// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value. +func (s *Cluster) SetNormalizedInstanceHours(v int64) *Cluster { + s.NormalizedInstanceHours = &v + return s +} + +// SetReleaseLabel sets the ReleaseLabel field's value. +func (s *Cluster) SetReleaseLabel(v string) *Cluster { + s.ReleaseLabel = &v + return s +} + +// SetRequestedAmiVersion sets the RequestedAmiVersion field's value. +func (s *Cluster) SetRequestedAmiVersion(v string) *Cluster { + s.RequestedAmiVersion = &v + return s +} + +// SetRunningAmiVersion sets the RunningAmiVersion field's value. +func (s *Cluster) SetRunningAmiVersion(v string) *Cluster { + s.RunningAmiVersion = &v + return s +} + +// SetScaleDownBehavior sets the ScaleDownBehavior field's value. +func (s *Cluster) SetScaleDownBehavior(v string) *Cluster { + s.ScaleDownBehavior = &v + return s +} + +// SetSecurityConfiguration sets the SecurityConfiguration field's value. +func (s *Cluster) SetSecurityConfiguration(v string) *Cluster { + s.SecurityConfiguration = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *Cluster) SetServiceRole(v string) *Cluster { + s.ServiceRole = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Cluster) SetStatus(v *ClusterStatus) *Cluster { + s.Status = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Cluster) SetTags(v []*Tag) *Cluster { + s.Tags = v + return s +} + +// SetTerminationProtected sets the TerminationProtected field's value. +func (s *Cluster) SetTerminationProtected(v bool) *Cluster { + s.TerminationProtected = &v + return s +} + +// SetVisibleToAllUsers sets the VisibleToAllUsers field's value. +func (s *Cluster) SetVisibleToAllUsers(v bool) *Cluster { + s.VisibleToAllUsers = &v + return s +} + // The reason that the cluster changed to its current state. type ClusterStateChangeReason struct { _ struct{} `type:"structure"` @@ -2102,6 +2958,18 @@ func (s ClusterStateChangeReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *ClusterStateChangeReason) SetCode(v string) *ClusterStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ClusterStateChangeReason) SetMessage(v string) *ClusterStateChangeReason { + s.Message = &v + return s +} + // The detailed status of the cluster. type ClusterStatus struct { _ struct{} `type:"structure"` @@ -2127,6 +2995,24 @@ func (s ClusterStatus) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *ClusterStatus) SetState(v string) *ClusterStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *ClusterStatus) SetStateChangeReason(v *ClusterStateChangeReason) *ClusterStatus { + s.StateChangeReason = v + return s +} + +// SetTimeline sets the Timeline field's value. +func (s *ClusterStatus) SetTimeline(v *ClusterTimeline) *ClusterStatus { + s.Timeline = v + return s +} + // The summary description of the cluster. type ClusterSummary struct { _ struct{} `type:"structure"` @@ -2159,6 +3045,30 @@ func (s ClusterSummary) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *ClusterSummary) SetId(v string) *ClusterSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ClusterSummary) SetName(v string) *ClusterSummary { + s.Name = &v + return s +} + +// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value. +func (s *ClusterSummary) SetNormalizedInstanceHours(v int64) *ClusterSummary { + s.NormalizedInstanceHours = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ClusterSummary) SetStatus(v *ClusterStatus) *ClusterSummary { + s.Status = v + return s +} + // Represents the timeline of the cluster's lifecycle. type ClusterTimeline struct { _ struct{} `type:"structure"` @@ -2183,6 +3093,24 @@ func (s ClusterTimeline) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *ClusterTimeline) SetCreationDateTime(v time.Time) *ClusterTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *ClusterTimeline) SetEndDateTime(v time.Time) *ClusterTimeline { + s.EndDateTime = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *ClusterTimeline) SetReadyDateTime(v time.Time) *ClusterTimeline { + s.ReadyDateTime = &v + return s +} + // An entity describing an executable that runs on a cluster. type Command struct { _ struct{} `type:"structure"` @@ -2207,9 +3135,27 @@ func (s Command) GoString() string { return s.String() } +// SetArgs sets the Args field's value. +func (s *Command) SetArgs(v []*string) *Command { + s.Args = v + return s +} + +// SetName sets the Name field's value. +func (s *Command) SetName(v string) *Command { + s.Name = &v + return s +} + +// SetScriptPath sets the ScriptPath field's value. +func (s *Command) SetScriptPath(v string) *Command { + s.ScriptPath = &v + return s +} + // Amazon EMR releases 4.x or later. // -// Specifies a hardware and software configuration of the EMR cluster. This +// Specifies a hardware and software configuration of the EMR cluster. This // includes configurations for applications and software bundled with Amazon // EMR. The Configuration object is a JSON object which is defined by a classification // and a set of properties. Configurations can be nested, so a configuration @@ -2238,6 +3184,24 @@ func (s Configuration) GoString() string { return s.String() } +// SetClassification sets the Classification field's value. +func (s *Configuration) SetClassification(v string) *Configuration { + s.Classification = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *Configuration) SetConfigurations(v []*Configuration) *Configuration { + s.Configurations = v + return s +} + +// SetProperties sets the Properties field's value. +func (s *Configuration) SetProperties(v map[string]*string) *Configuration { + s.Properties = v + return s +} + type CreateSecurityConfigurationInput struct { _ struct{} `type:"structure"` @@ -2278,6 +3242,18 @@ func (s *CreateSecurityConfigurationInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *CreateSecurityConfigurationInput) SetName(v string) *CreateSecurityConfigurationInput { + s.Name = &v + return s +} + +// SetSecurityConfiguration sets the SecurityConfiguration field's value. +func (s *CreateSecurityConfigurationInput) SetSecurityConfiguration(v string) *CreateSecurityConfigurationInput { + s.SecurityConfiguration = &v + return s +} + type CreateSecurityConfigurationOutput struct { _ struct{} `type:"structure"` @@ -2302,6 +3278,18 @@ func (s CreateSecurityConfigurationOutput) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *CreateSecurityConfigurationOutput) SetCreationDateTime(v time.Time) *CreateSecurityConfigurationOutput { + s.CreationDateTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSecurityConfigurationOutput) SetName(v string) *CreateSecurityConfigurationOutput { + s.Name = &v + return s +} + type DeleteSecurityConfigurationInput struct { _ struct{} `type:"structure"` @@ -2334,6 +3322,12 @@ func (s *DeleteSecurityConfigurationInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeleteSecurityConfigurationInput) SetName(v string) *DeleteSecurityConfigurationInput { + s.Name = &v + return s +} + type DeleteSecurityConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -2381,6 +3375,12 @@ func (s *DescribeClusterInput) Validate() error { return nil } +// SetClusterId sets the ClusterId field's value. +func (s *DescribeClusterInput) SetClusterId(v string) *DescribeClusterInput { + s.ClusterId = &v + return s +} + // This output contains the description of the cluster. type DescribeClusterOutput struct { _ struct{} `type:"structure"` @@ -2399,6 +3399,12 @@ func (s DescribeClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DescribeClusterOutput) SetCluster(v *Cluster) *DescribeClusterOutput { + s.Cluster = v + return s +} + // The input for the DescribeJobFlows operation. type DescribeJobFlowsInput struct { _ struct{} `type:"structure"` @@ -2426,6 +3432,30 @@ func (s DescribeJobFlowsInput) GoString() string { return s.String() } +// SetCreatedAfter sets the CreatedAfter field's value. +func (s *DescribeJobFlowsInput) SetCreatedAfter(v time.Time) *DescribeJobFlowsInput { + s.CreatedAfter = &v + return s +} + +// SetCreatedBefore sets the CreatedBefore field's value. +func (s *DescribeJobFlowsInput) SetCreatedBefore(v time.Time) *DescribeJobFlowsInput { + s.CreatedBefore = &v + return s +} + +// SetJobFlowIds sets the JobFlowIds field's value. +func (s *DescribeJobFlowsInput) SetJobFlowIds(v []*string) *DescribeJobFlowsInput { + s.JobFlowIds = v + return s +} + +// SetJobFlowStates sets the JobFlowStates field's value. +func (s *DescribeJobFlowsInput) SetJobFlowStates(v []*string) *DescribeJobFlowsInput { + s.JobFlowStates = v + return s +} + // The output for the DescribeJobFlows operation. type DescribeJobFlowsOutput struct { _ struct{} `type:"structure"` @@ -2444,6 +3474,12 @@ func (s DescribeJobFlowsOutput) GoString() string { return s.String() } +// SetJobFlows sets the JobFlows field's value. +func (s *DescribeJobFlowsOutput) SetJobFlows(v []*JobFlowDetail) *DescribeJobFlowsOutput { + s.JobFlows = v + return s +} + type DescribeSecurityConfigurationInput struct { _ struct{} `type:"structure"` @@ -2476,6 +3512,12 @@ func (s *DescribeSecurityConfigurationInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DescribeSecurityConfigurationInput) SetName(v string) *DescribeSecurityConfigurationInput { + s.Name = &v + return s +} + type DescribeSecurityConfigurationOutput struct { _ struct{} `type:"structure"` @@ -2499,6 +3541,24 @@ func (s DescribeSecurityConfigurationOutput) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *DescribeSecurityConfigurationOutput) SetCreationDateTime(v time.Time) *DescribeSecurityConfigurationOutput { + s.CreationDateTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeSecurityConfigurationOutput) SetName(v string) *DescribeSecurityConfigurationOutput { + s.Name = &v + return s +} + +// SetSecurityConfiguration sets the SecurityConfiguration field's value. +func (s *DescribeSecurityConfigurationOutput) SetSecurityConfiguration(v string) *DescribeSecurityConfigurationOutput { + s.SecurityConfiguration = &v + return s +} + // This input determines which step to describe. type DescribeStepInput struct { _ struct{} `type:"structure"` @@ -2540,6 +3600,18 @@ func (s *DescribeStepInput) Validate() error { return nil } +// SetClusterId sets the ClusterId field's value. +func (s *DescribeStepInput) SetClusterId(v string) *DescribeStepInput { + s.ClusterId = &v + return s +} + +// SetStepId sets the StepId field's value. +func (s *DescribeStepInput) SetStepId(v string) *DescribeStepInput { + s.StepId = &v + return s +} + // This output contains the description of the cluster step. type DescribeStepOutput struct { _ struct{} `type:"structure"` @@ -2558,6 +3630,12 @@ func (s DescribeStepOutput) GoString() string { return s.String() } +// SetStep sets the Step field's value. +func (s *DescribeStepOutput) SetStep(v *Step) *DescribeStepOutput { + s.Step = v + return s +} + // Configuration of requested EBS block device associated with the instance // group. type EbsBlockDevice struct { @@ -2566,8 +3644,8 @@ type EbsBlockDevice struct { // The device name that is exposed to the instance, such as /dev/sdh. Device *string `type:"string"` - // EBS volume specifications such as volume type, IOPS, and size(GiB) that will - // be requested for the EBS volume attached to an EC2 instance in the cluster. + // EBS volume specifications such as volume type, IOPS, and size (GiB) that + // will be requested for the EBS volume attached to an EC2 instance in the cluster. VolumeSpecification *VolumeSpecification `type:"structure"` } @@ -2581,18 +3659,30 @@ func (s EbsBlockDevice) GoString() string { return s.String() } +// SetDevice sets the Device field's value. +func (s *EbsBlockDevice) SetDevice(v string) *EbsBlockDevice { + s.Device = &v + return s +} + +// SetVolumeSpecification sets the VolumeSpecification field's value. +func (s *EbsBlockDevice) SetVolumeSpecification(v *VolumeSpecification) *EbsBlockDevice { + s.VolumeSpecification = v + return s +} + // Configuration of requested EBS block device associated with the instance // group with count of volumes that will be associated to every instance. type EbsBlockDeviceConfig struct { _ struct{} `type:"structure"` - // EBS volume specifications such as volume type, IOPS, and size(GiB) that will - // be requested for the EBS volume attached to an EC2 instance in the cluster. + // EBS volume specifications such as volume type, IOPS, and size (GiB) that + // will be requested for the EBS volume attached to an EC2 instance in the cluster. // // VolumeSpecification is a required field VolumeSpecification *VolumeSpecification `type:"structure" required:"true"` - // Number of EBS volumes with specific volume configuration, that will be associated + // Number of EBS volumes with a specific volume configuration that will be associated // with every instance in the instance group VolumesPerInstance *int64 `type:"integer"` } @@ -2625,11 +3715,26 @@ func (s *EbsBlockDeviceConfig) Validate() error { return nil } +// SetVolumeSpecification sets the VolumeSpecification field's value. +func (s *EbsBlockDeviceConfig) SetVolumeSpecification(v *VolumeSpecification) *EbsBlockDeviceConfig { + s.VolumeSpecification = v + return s +} + +// SetVolumesPerInstance sets the VolumesPerInstance field's value. +func (s *EbsBlockDeviceConfig) SetVolumesPerInstance(v int64) *EbsBlockDeviceConfig { + s.VolumesPerInstance = &v + return s +} + +// The Amazon EBS configuration of a cluster instance. type EbsConfiguration struct { _ struct{} `type:"structure"` + // An array of Amazon EBS volume specifications attached to a cluster instance. EbsBlockDeviceConfigs []*EbsBlockDeviceConfig `type:"list"` + // Indicates whether an Amazon EBS volume is EBS-optimized. EbsOptimized *bool `type:"boolean"` } @@ -2663,6 +3768,18 @@ func (s *EbsConfiguration) Validate() error { return nil } +// SetEbsBlockDeviceConfigs sets the EbsBlockDeviceConfigs field's value. +func (s *EbsConfiguration) SetEbsBlockDeviceConfigs(v []*EbsBlockDeviceConfig) *EbsConfiguration { + s.EbsBlockDeviceConfigs = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *EbsConfiguration) SetEbsOptimized(v bool) *EbsConfiguration { + s.EbsOptimized = &v + return s +} + // EBS block device that's attached to an EC2 instance. type EbsVolume struct { _ struct{} `type:"structure"` @@ -2684,6 +3801,18 @@ func (s EbsVolume) GoString() string { return s.String() } +// SetDevice sets the Device field's value. +func (s *EbsVolume) SetDevice(v string) *EbsVolume { + s.Device = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *EbsVolume) SetVolumeId(v string) *EbsVolume { + s.VolumeId = &v + return s +} + // Provides information about the EC2 instances in a cluster grouped by category. // For example, key name, subnet ID, IAM instance profile, and so on. type Ec2InstanceAttributes struct { @@ -2737,6 +3866,60 @@ func (s Ec2InstanceAttributes) GoString() string { return s.String() } +// SetAdditionalMasterSecurityGroups sets the AdditionalMasterSecurityGroups field's value. +func (s *Ec2InstanceAttributes) SetAdditionalMasterSecurityGroups(v []*string) *Ec2InstanceAttributes { + s.AdditionalMasterSecurityGroups = v + return s +} + +// SetAdditionalSlaveSecurityGroups sets the AdditionalSlaveSecurityGroups field's value. +func (s *Ec2InstanceAttributes) SetAdditionalSlaveSecurityGroups(v []*string) *Ec2InstanceAttributes { + s.AdditionalSlaveSecurityGroups = v + return s +} + +// SetEc2AvailabilityZone sets the Ec2AvailabilityZone field's value. +func (s *Ec2InstanceAttributes) SetEc2AvailabilityZone(v string) *Ec2InstanceAttributes { + s.Ec2AvailabilityZone = &v + return s +} + +// SetEc2KeyName sets the Ec2KeyName field's value. +func (s *Ec2InstanceAttributes) SetEc2KeyName(v string) *Ec2InstanceAttributes { + s.Ec2KeyName = &v + return s +} + +// SetEc2SubnetId sets the Ec2SubnetId field's value. +func (s *Ec2InstanceAttributes) SetEc2SubnetId(v string) *Ec2InstanceAttributes { + s.Ec2SubnetId = &v + return s +} + +// SetEmrManagedMasterSecurityGroup sets the EmrManagedMasterSecurityGroup field's value. +func (s *Ec2InstanceAttributes) SetEmrManagedMasterSecurityGroup(v string) *Ec2InstanceAttributes { + s.EmrManagedMasterSecurityGroup = &v + return s +} + +// SetEmrManagedSlaveSecurityGroup sets the EmrManagedSlaveSecurityGroup field's value. +func (s *Ec2InstanceAttributes) SetEmrManagedSlaveSecurityGroup(v string) *Ec2InstanceAttributes { + s.EmrManagedSlaveSecurityGroup = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *Ec2InstanceAttributes) SetIamInstanceProfile(v string) *Ec2InstanceAttributes { + s.IamInstanceProfile = &v + return s +} + +// SetServiceAccessSecurityGroup sets the ServiceAccessSecurityGroup field's value. +func (s *Ec2InstanceAttributes) SetServiceAccessSecurityGroup(v string) *Ec2InstanceAttributes { + s.ServiceAccessSecurityGroup = &v + return s +} + // The details of the step failure. The service attempts to detect the root // cause for many common failures. type FailureDetails struct { @@ -2767,6 +3950,24 @@ func (s FailureDetails) GoString() string { return s.String() } +// SetLogFile sets the LogFile field's value. +func (s *FailureDetails) SetLogFile(v string) *FailureDetails { + s.LogFile = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *FailureDetails) SetMessage(v string) *FailureDetails { + s.Message = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *FailureDetails) SetReason(v string) *FailureDetails { + s.Reason = &v + return s +} + // A job flow step consisting of a JAR file whose main function will be executed. // The main function submits a job for Hadoop to execute and waits for the job // to finish or fail. @@ -2814,6 +4015,30 @@ func (s *HadoopJarStepConfig) Validate() error { return nil } +// SetArgs sets the Args field's value. +func (s *HadoopJarStepConfig) SetArgs(v []*string) *HadoopJarStepConfig { + s.Args = v + return s +} + +// SetJar sets the Jar field's value. +func (s *HadoopJarStepConfig) SetJar(v string) *HadoopJarStepConfig { + s.Jar = &v + return s +} + +// SetMainClass sets the MainClass field's value. +func (s *HadoopJarStepConfig) SetMainClass(v string) *HadoopJarStepConfig { + s.MainClass = &v + return s +} + +// SetProperties sets the Properties field's value. +func (s *HadoopJarStepConfig) SetProperties(v []*KeyValue) *HadoopJarStepConfig { + s.Properties = v + return s +} + // A cluster step consisting of a JAR file whose main function will be executed. // The main function submits a job for Hadoop to execute and waits for the job // to finish or fail. @@ -2846,6 +4071,30 @@ func (s HadoopStepConfig) GoString() string { return s.String() } +// SetArgs sets the Args field's value. +func (s *HadoopStepConfig) SetArgs(v []*string) *HadoopStepConfig { + s.Args = v + return s +} + +// SetJar sets the Jar field's value. +func (s *HadoopStepConfig) SetJar(v string) *HadoopStepConfig { + s.Jar = &v + return s +} + +// SetMainClass sets the MainClass field's value. +func (s *HadoopStepConfig) SetMainClass(v string) *HadoopStepConfig { + s.MainClass = &v + return s +} + +// SetProperties sets the Properties field's value. +func (s *HadoopStepConfig) SetProperties(v map[string]*string) *HadoopStepConfig { + s.Properties = v + return s +} + // Represents an EC2 instance provisioned as part of cluster. type Instance struct { _ struct{} `type:"structure"` @@ -2888,20 +4137,80 @@ func (s Instance) GoString() string { return s.String() } +// SetEbsVolumes sets the EbsVolumes field's value. +func (s *Instance) SetEbsVolumes(v []*EbsVolume) *Instance { + s.EbsVolumes = v + return s +} + +// SetEc2InstanceId sets the Ec2InstanceId field's value. +func (s *Instance) SetEc2InstanceId(v string) *Instance { + s.Ec2InstanceId = &v + return s +} + +// SetId sets the Id field's value. +func (s *Instance) SetId(v string) *Instance { + s.Id = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *Instance) SetInstanceGroupId(v string) *Instance { + s.InstanceGroupId = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *Instance) SetPrivateDnsName(v string) *Instance { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *Instance) SetPrivateIpAddress(v string) *Instance { + s.PrivateIpAddress = &v + return s +} + +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *Instance) SetPublicDnsName(v string) *Instance { + s.PublicDnsName = &v + return s +} + +// SetPublicIpAddress sets the PublicIpAddress field's value. +func (s *Instance) SetPublicIpAddress(v string) *Instance { + s.PublicIpAddress = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Instance) SetStatus(v *InstanceStatus) *Instance { + s.Status = v + return s +} + // This entity represents an instance group, which is a group of instances that // have common purpose. For example, CORE instance group is used for HDFS. type InstanceGroup struct { _ struct{} `type:"structure"` + // An automatic scaling policy for a core instance group or task instance group + // in an Amazon EMR cluster. The automatic scaling policy defines how an instance + // group dynamically adds and terminates EC2 instances in response to the value + // of a CloudWatch metric. See PutAutoScalingPolicy. + AutoScalingPolicy *AutoScalingPolicyDescription `type:"structure"` + // The bid price for each EC2 instance in the instance group when launching // nodes as Spot Instances, expressed in USD. BidPrice *string `type:"string"` // Amazon EMR releases 4.x or later. // - // The list of configurations supplied for an EMR cluster instance group. - // You can specify a separate configuration for each instance group (master, - // core, and task). + // The list of configurations supplied for an EMR cluster instance group. You + // can specify a separate configuration for each instance group (master, core, + // and task). Configurations []*Configuration `type:"list"` // The EBS block devices that are mapped to this instance group. @@ -2951,23 +4260,113 @@ func (s InstanceGroup) GoString() string { return s.String() } +// SetAutoScalingPolicy sets the AutoScalingPolicy field's value. +func (s *InstanceGroup) SetAutoScalingPolicy(v *AutoScalingPolicyDescription) *InstanceGroup { + s.AutoScalingPolicy = v + return s +} + +// SetBidPrice sets the BidPrice field's value. +func (s *InstanceGroup) SetBidPrice(v string) *InstanceGroup { + s.BidPrice = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *InstanceGroup) SetConfigurations(v []*Configuration) *InstanceGroup { + s.Configurations = v + return s +} + +// SetEbsBlockDevices sets the EbsBlockDevices field's value. +func (s *InstanceGroup) SetEbsBlockDevices(v []*EbsBlockDevice) *InstanceGroup { + s.EbsBlockDevices = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *InstanceGroup) SetEbsOptimized(v bool) *InstanceGroup { + s.EbsOptimized = &v + return s +} + +// SetId sets the Id field's value. +func (s *InstanceGroup) SetId(v string) *InstanceGroup { + s.Id = &v + return s +} + +// SetInstanceGroupType sets the InstanceGroupType field's value. +func (s *InstanceGroup) SetInstanceGroupType(v string) *InstanceGroup { + s.InstanceGroupType = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceGroup) SetInstanceType(v string) *InstanceGroup { + s.InstanceType = &v + return s +} + +// SetMarket sets the Market field's value. +func (s *InstanceGroup) SetMarket(v string) *InstanceGroup { + s.Market = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceGroup) SetName(v string) *InstanceGroup { + s.Name = &v + return s +} + +// SetRequestedInstanceCount sets the RequestedInstanceCount field's value. +func (s *InstanceGroup) SetRequestedInstanceCount(v int64) *InstanceGroup { + s.RequestedInstanceCount = &v + return s +} + +// SetRunningInstanceCount sets the RunningInstanceCount field's value. +func (s *InstanceGroup) SetRunningInstanceCount(v int64) *InstanceGroup { + s.RunningInstanceCount = &v + return s +} + +// SetShrinkPolicy sets the ShrinkPolicy field's value. +func (s *InstanceGroup) SetShrinkPolicy(v *ShrinkPolicy) *InstanceGroup { + s.ShrinkPolicy = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceGroup) SetStatus(v *InstanceGroupStatus) *InstanceGroup { + s.Status = v + return s +} + // Configuration defining a new instance group. type InstanceGroupConfig struct { _ struct{} `type:"structure"` - // Bid price for each Amazon EC2 instance in the instance group when launching - // nodes as Spot Instances, expressed in USD. + // An automatic scaling policy for a core instance group or task instance group + // in an Amazon EMR cluster. The automatic scaling policy defines how an instance + // group dynamically adds and terminates EC2 instances in response to the value + // of a CloudWatch metric. See PutAutoScalingPolicy. + AutoScalingPolicy *AutoScalingPolicy `type:"structure"` + + // Bid price for each EC2 instance in the instance group when launching nodes + // as Spot Instances, expressed in USD. BidPrice *string `type:"string"` // Amazon EMR releases 4.x or later. // - // The list of configurations supplied for an EMR cluster instance group. - // You can specify a separate configuration for each instance group (master, - // core, and task). + // The list of configurations supplied for an EMR cluster instance group. You + // can specify a separate configuration for each instance group (master, core, + // and task). Configurations []*Configuration `type:"list"` - // EBS configurations that will be attached to each Amazon EC2 instance in the - // instance group. + // EBS configurations that will be attached to each EC2 instance in the instance + // group. EbsConfiguration *EbsConfiguration `type:"structure"` // Target number of instances for the instance group. @@ -2980,12 +4379,12 @@ type InstanceGroupConfig struct { // InstanceRole is a required field InstanceRole *string `type:"string" required:"true" enum:"InstanceRoleType"` - // The Amazon EC2 instance type for all instances in the instance group. + // The EC2 instance type for all instances in the instance group. // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` - // Market type of the Amazon EC2 instances used to create a cluster node. + // Market type of the EC2 instances used to create a cluster node. Market *string `type:"string" enum:"MarketType"` // Friendly name given to the instance group. @@ -3017,6 +4416,11 @@ func (s *InstanceGroupConfig) Validate() error { if s.InstanceType != nil && len(*s.InstanceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) } + if s.AutoScalingPolicy != nil { + if err := s.AutoScalingPolicy.Validate(); err != nil { + invalidParams.AddNested("AutoScalingPolicy", err.(request.ErrInvalidParams)) + } + } if s.EbsConfiguration != nil { if err := s.EbsConfiguration.Validate(); err != nil { invalidParams.AddNested("EbsConfiguration", err.(request.ErrInvalidParams)) @@ -3029,6 +4433,60 @@ func (s *InstanceGroupConfig) Validate() error { return nil } +// SetAutoScalingPolicy sets the AutoScalingPolicy field's value. +func (s *InstanceGroupConfig) SetAutoScalingPolicy(v *AutoScalingPolicy) *InstanceGroupConfig { + s.AutoScalingPolicy = v + return s +} + +// SetBidPrice sets the BidPrice field's value. +func (s *InstanceGroupConfig) SetBidPrice(v string) *InstanceGroupConfig { + s.BidPrice = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *InstanceGroupConfig) SetConfigurations(v []*Configuration) *InstanceGroupConfig { + s.Configurations = v + return s +} + +// SetEbsConfiguration sets the EbsConfiguration field's value. +func (s *InstanceGroupConfig) SetEbsConfiguration(v *EbsConfiguration) *InstanceGroupConfig { + s.EbsConfiguration = v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *InstanceGroupConfig) SetInstanceCount(v int64) *InstanceGroupConfig { + s.InstanceCount = &v + return s +} + +// SetInstanceRole sets the InstanceRole field's value. +func (s *InstanceGroupConfig) SetInstanceRole(v string) *InstanceGroupConfig { + s.InstanceRole = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceGroupConfig) SetInstanceType(v string) *InstanceGroupConfig { + s.InstanceType = &v + return s +} + +// SetMarket sets the Market field's value. +func (s *InstanceGroupConfig) SetMarket(v string) *InstanceGroupConfig { + s.Market = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceGroupConfig) SetName(v string) *InstanceGroupConfig { + s.Name = &v + return s +} + // Detailed information about an instance group. type InstanceGroupDetail struct { _ struct{} `type:"structure"` @@ -3063,7 +4521,7 @@ type InstanceGroupDetail struct { // InstanceRunningCount is a required field InstanceRunningCount *int64 `type:"integer" required:"true"` - // Amazon EC2 Instance type. + // EC2 instance type. // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` @@ -3071,7 +4529,7 @@ type InstanceGroupDetail struct { // Details regarding the state of the instance group. LastStateChangeReason *string `type:"string"` - // Market type of the Amazon EC2 instances used to create a cluster node. + // Market type of the EC2 instances used to create a cluster node. // // Market is a required field Market *string `type:"string" required:"true" enum:"MarketType"` @@ -3102,12 +4560,96 @@ func (s InstanceGroupDetail) GoString() string { return s.String() } +// SetBidPrice sets the BidPrice field's value. +func (s *InstanceGroupDetail) SetBidPrice(v string) *InstanceGroupDetail { + s.BidPrice = &v + return s +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *InstanceGroupDetail) SetCreationDateTime(v time.Time) *InstanceGroupDetail { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *InstanceGroupDetail) SetEndDateTime(v time.Time) *InstanceGroupDetail { + s.EndDateTime = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *InstanceGroupDetail) SetInstanceGroupId(v string) *InstanceGroupDetail { + s.InstanceGroupId = &v + return s +} + +// SetInstanceRequestCount sets the InstanceRequestCount field's value. +func (s *InstanceGroupDetail) SetInstanceRequestCount(v int64) *InstanceGroupDetail { + s.InstanceRequestCount = &v + return s +} + +// SetInstanceRole sets the InstanceRole field's value. +func (s *InstanceGroupDetail) SetInstanceRole(v string) *InstanceGroupDetail { + s.InstanceRole = &v + return s +} + +// SetInstanceRunningCount sets the InstanceRunningCount field's value. +func (s *InstanceGroupDetail) SetInstanceRunningCount(v int64) *InstanceGroupDetail { + s.InstanceRunningCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceGroupDetail) SetInstanceType(v string) *InstanceGroupDetail { + s.InstanceType = &v + return s +} + +// SetLastStateChangeReason sets the LastStateChangeReason field's value. +func (s *InstanceGroupDetail) SetLastStateChangeReason(v string) *InstanceGroupDetail { + s.LastStateChangeReason = &v + return s +} + +// SetMarket sets the Market field's value. +func (s *InstanceGroupDetail) SetMarket(v string) *InstanceGroupDetail { + s.Market = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceGroupDetail) SetName(v string) *InstanceGroupDetail { + s.Name = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *InstanceGroupDetail) SetReadyDateTime(v time.Time) *InstanceGroupDetail { + s.ReadyDateTime = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *InstanceGroupDetail) SetStartDateTime(v time.Time) *InstanceGroupDetail { + s.StartDateTime = &v + return s +} + +// SetState sets the State field's value. +func (s *InstanceGroupDetail) SetState(v string) *InstanceGroupDetail { + s.State = &v + return s +} + // Modify an instance group size. type InstanceGroupModifyConfig struct { _ struct{} `type:"structure"` - // The EC2 InstanceIds to terminate. Once you terminate the instances, the instance - // group will not return to its original requested size. + // The EC2 InstanceIds to terminate. After you terminate the instances, the + // instance group will not return to its original requested size. EC2InstanceIdsToTerminate []*string `type:"list"` // Target size for the instance group. @@ -3145,6 +4687,30 @@ func (s *InstanceGroupModifyConfig) Validate() error { return nil } +// SetEC2InstanceIdsToTerminate sets the EC2InstanceIdsToTerminate field's value. +func (s *InstanceGroupModifyConfig) SetEC2InstanceIdsToTerminate(v []*string) *InstanceGroupModifyConfig { + s.EC2InstanceIdsToTerminate = v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *InstanceGroupModifyConfig) SetInstanceCount(v int64) *InstanceGroupModifyConfig { + s.InstanceCount = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *InstanceGroupModifyConfig) SetInstanceGroupId(v string) *InstanceGroupModifyConfig { + s.InstanceGroupId = &v + return s +} + +// SetShrinkPolicy sets the ShrinkPolicy field's value. +func (s *InstanceGroupModifyConfig) SetShrinkPolicy(v *ShrinkPolicy) *InstanceGroupModifyConfig { + s.ShrinkPolicy = v + return s +} + // The status change reason details for the instance group. type InstanceGroupStateChangeReason struct { _ struct{} `type:"structure"` @@ -3166,6 +4732,18 @@ func (s InstanceGroupStateChangeReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *InstanceGroupStateChangeReason) SetCode(v string) *InstanceGroupStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *InstanceGroupStateChangeReason) SetMessage(v string) *InstanceGroupStateChangeReason { + s.Message = &v + return s +} + // The details of the instance group status. type InstanceGroupStatus struct { _ struct{} `type:"structure"` @@ -3190,6 +4768,24 @@ func (s InstanceGroupStatus) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *InstanceGroupStatus) SetState(v string) *InstanceGroupStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *InstanceGroupStatus) SetStateChangeReason(v *InstanceGroupStateChangeReason) *InstanceGroupStatus { + s.StateChangeReason = v + return s +} + +// SetTimeline sets the Timeline field's value. +func (s *InstanceGroupStatus) SetTimeline(v *InstanceGroupTimeline) *InstanceGroupStatus { + s.Timeline = v + return s +} + // The timeline of the instance group lifecycle. type InstanceGroupTimeline struct { _ struct{} `type:"structure"` @@ -3214,6 +4810,24 @@ func (s InstanceGroupTimeline) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *InstanceGroupTimeline) SetCreationDateTime(v time.Time) *InstanceGroupTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *InstanceGroupTimeline) SetEndDateTime(v time.Time) *InstanceGroupTimeline { + s.EndDateTime = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *InstanceGroupTimeline) SetReadyDateTime(v time.Time) *InstanceGroupTimeline { + s.ReadyDateTime = &v + return s +} + // Custom policy for requesting termination protection or termination of specific // instances when shrinking an instance group. type InstanceResizePolicy struct { @@ -3240,6 +4854,24 @@ func (s InstanceResizePolicy) GoString() string { return s.String() } +// SetInstanceTerminationTimeout sets the InstanceTerminationTimeout field's value. +func (s *InstanceResizePolicy) SetInstanceTerminationTimeout(v int64) *InstanceResizePolicy { + s.InstanceTerminationTimeout = &v + return s +} + +// SetInstancesToProtect sets the InstancesToProtect field's value. +func (s *InstanceResizePolicy) SetInstancesToProtect(v []*string) *InstanceResizePolicy { + s.InstancesToProtect = v + return s +} + +// SetInstancesToTerminate sets the InstancesToTerminate field's value. +func (s *InstanceResizePolicy) SetInstancesToTerminate(v []*string) *InstanceResizePolicy { + s.InstancesToTerminate = v + return s +} + // The details of the status change reason for the instance. type InstanceStateChangeReason struct { _ struct{} `type:"structure"` @@ -3261,6 +4893,18 @@ func (s InstanceStateChangeReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *InstanceStateChangeReason) SetCode(v string) *InstanceStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *InstanceStateChangeReason) SetMessage(v string) *InstanceStateChangeReason { + s.Message = &v + return s +} + // The instance status details. type InstanceStatus struct { _ struct{} `type:"structure"` @@ -3285,6 +4929,24 @@ func (s InstanceStatus) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *InstanceStatus) SetState(v string) *InstanceStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *InstanceStatus) SetStateChangeReason(v *InstanceStateChangeReason) *InstanceStatus { + s.StateChangeReason = v + return s +} + +// SetTimeline sets the Timeline field's value. +func (s *InstanceStatus) SetTimeline(v *InstanceTimeline) *InstanceStatus { + s.Timeline = v + return s +} + // The timeline of the instance lifecycle. type InstanceTimeline struct { _ struct{} `type:"structure"` @@ -3309,16 +4971,40 @@ func (s InstanceTimeline) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *InstanceTimeline) SetCreationDateTime(v time.Time) *InstanceTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *InstanceTimeline) SetEndDateTime(v time.Time) *InstanceTimeline { + s.EndDateTime = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *InstanceTimeline) SetReadyDateTime(v time.Time) *InstanceTimeline { + s.ReadyDateTime = &v + return s +} + // A description of a job flow. type JobFlowDetail struct { _ struct{} `type:"structure"` // The version of the AMI used to initialize Amazon EC2 instances in the job - // flow. For a list of AMI versions currently supported by Amazon ElasticMapReduce, - // go to AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) - // in the Amazon Elastic MapReduce Developer Guide. + // flow. For a list of AMI versions currently supported by Amazon EMR, see AMI + // Versions Supported in EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) + // in the Amazon EMR Developer Guide. AmiVersion *string `type:"string"` + // An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. + // The IAM role provides a way for the automatic scaling feature to get the + // required permissions it needs to launch and terminate EC2 instances in an + // instance group. + AutoScalingRole *string `type:"string"` + // A list of the bootstrap actions run by the job flow. BootstrapActions []*BootstrapActionDetail `type:"list"` @@ -3349,6 +5035,20 @@ type JobFlowDetail struct { // Name is a required field Name *string `type:"string" required:"true"` + // The way that individual Amazon EC2 instances terminate when an automatic + // scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR + // indicates that Amazon EMR terminates nodes at the instance-hour boundary, + // regardless of when the request to terminate the instance was submitted. This + // option is only available with Amazon EMR 5.1.0 and later and is the default + // for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates + // that Amazon EMR blacklists and drains tasks from nodes before terminating + // the Amazon EC2 instances, regardless of the instance-hour boundary. With + // either behavior, Amazon EMR removes the least active nodes first and blocks + // instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION + // available only in Amazon EMR version 4.1.0 and later, and is the default + // for versions of Amazon EMR earlier than 5.1.0. + ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"` + // The IAM role that will be assumed by the Amazon EMR service to access AWS // resources on your behalf. ServiceRole *string `type:"string"` @@ -3380,6 +5080,90 @@ func (s JobFlowDetail) GoString() string { return s.String() } +// SetAmiVersion sets the AmiVersion field's value. +func (s *JobFlowDetail) SetAmiVersion(v string) *JobFlowDetail { + s.AmiVersion = &v + return s +} + +// SetAutoScalingRole sets the AutoScalingRole field's value. +func (s *JobFlowDetail) SetAutoScalingRole(v string) *JobFlowDetail { + s.AutoScalingRole = &v + return s +} + +// SetBootstrapActions sets the BootstrapActions field's value. +func (s *JobFlowDetail) SetBootstrapActions(v []*BootstrapActionDetail) *JobFlowDetail { + s.BootstrapActions = v + return s +} + +// SetExecutionStatusDetail sets the ExecutionStatusDetail field's value. +func (s *JobFlowDetail) SetExecutionStatusDetail(v *JobFlowExecutionStatusDetail) *JobFlowDetail { + s.ExecutionStatusDetail = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *JobFlowDetail) SetInstances(v *JobFlowInstancesDetail) *JobFlowDetail { + s.Instances = v + return s +} + +// SetJobFlowId sets the JobFlowId field's value. +func (s *JobFlowDetail) SetJobFlowId(v string) *JobFlowDetail { + s.JobFlowId = &v + return s +} + +// SetJobFlowRole sets the JobFlowRole field's value. +func (s *JobFlowDetail) SetJobFlowRole(v string) *JobFlowDetail { + s.JobFlowRole = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *JobFlowDetail) SetLogUri(v string) *JobFlowDetail { + s.LogUri = &v + return s +} + +// SetName sets the Name field's value. +func (s *JobFlowDetail) SetName(v string) *JobFlowDetail { + s.Name = &v + return s +} + +// SetScaleDownBehavior sets the ScaleDownBehavior field's value. +func (s *JobFlowDetail) SetScaleDownBehavior(v string) *JobFlowDetail { + s.ScaleDownBehavior = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *JobFlowDetail) SetServiceRole(v string) *JobFlowDetail { + s.ServiceRole = &v + return s +} + +// SetSteps sets the Steps field's value. +func (s *JobFlowDetail) SetSteps(v []*StepDetail) *JobFlowDetail { + s.Steps = v + return s +} + +// SetSupportedProducts sets the SupportedProducts field's value. +func (s *JobFlowDetail) SetSupportedProducts(v []*string) *JobFlowDetail { + s.SupportedProducts = v + return s +} + +// SetVisibleToAllUsers sets the VisibleToAllUsers field's value. +func (s *JobFlowDetail) SetVisibleToAllUsers(v bool) *JobFlowDetail { + s.VisibleToAllUsers = &v + return s +} + // Describes the status of the job flow. type JobFlowExecutionStatusDetail struct { _ struct{} `type:"structure"` @@ -3418,6 +5202,42 @@ func (s JobFlowExecutionStatusDetail) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *JobFlowExecutionStatusDetail) SetCreationDateTime(v time.Time) *JobFlowExecutionStatusDetail { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *JobFlowExecutionStatusDetail) SetEndDateTime(v time.Time) *JobFlowExecutionStatusDetail { + s.EndDateTime = &v + return s +} + +// SetLastStateChangeReason sets the LastStateChangeReason field's value. +func (s *JobFlowExecutionStatusDetail) SetLastStateChangeReason(v string) *JobFlowExecutionStatusDetail { + s.LastStateChangeReason = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *JobFlowExecutionStatusDetail) SetReadyDateTime(v time.Time) *JobFlowExecutionStatusDetail { + s.ReadyDateTime = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *JobFlowExecutionStatusDetail) SetStartDateTime(v time.Time) *JobFlowExecutionStatusDetail { + s.StartDateTime = &v + return s +} + +// SetState sets the State field's value. +func (s *JobFlowExecutionStatusDetail) SetState(v string) *JobFlowExecutionStatusDetail { + s.State = &v + return s +} + // A description of the Amazon EC2 instance running the job flow. A valid JobFlowInstancesConfig // must contain at least InstanceGroups, which is the recommended configuration. // However, a valid alternative is to have MasterInstanceType, SlaveInstanceType, @@ -3431,8 +5251,8 @@ type JobFlowInstancesConfig struct { // A list of additional Amazon EC2 security group IDs for the slave nodes. AdditionalSlaveSecurityGroups []*string `type:"list"` - // The name of the Amazon EC2 key pair that can be used to ssh to the master - // node as the user called "hadoop." + // The name of the EC2 key pair that can be used to ssh to the master node as + // the user called "hadoop." Ec2KeyName *string `type:"string"` // To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set @@ -3458,7 +5278,7 @@ type JobFlowInstancesConfig struct { // of Hadoop for that AMI version is used. HadoopVersion *string `type:"string"` - // The number of Amazon EC2 instances used to execute the job flow. + // The number of EC2 instances used to execute the job flow. InstanceCount *int64 `type:"integer"` // Configuration for the job flow's instance groups. @@ -3528,6 +5348,96 @@ func (s *JobFlowInstancesConfig) Validate() error { return nil } +// SetAdditionalMasterSecurityGroups sets the AdditionalMasterSecurityGroups field's value. +func (s *JobFlowInstancesConfig) SetAdditionalMasterSecurityGroups(v []*string) *JobFlowInstancesConfig { + s.AdditionalMasterSecurityGroups = v + return s +} + +// SetAdditionalSlaveSecurityGroups sets the AdditionalSlaveSecurityGroups field's value. +func (s *JobFlowInstancesConfig) SetAdditionalSlaveSecurityGroups(v []*string) *JobFlowInstancesConfig { + s.AdditionalSlaveSecurityGroups = v + return s +} + +// SetEc2KeyName sets the Ec2KeyName field's value. +func (s *JobFlowInstancesConfig) SetEc2KeyName(v string) *JobFlowInstancesConfig { + s.Ec2KeyName = &v + return s +} + +// SetEc2SubnetId sets the Ec2SubnetId field's value. +func (s *JobFlowInstancesConfig) SetEc2SubnetId(v string) *JobFlowInstancesConfig { + s.Ec2SubnetId = &v + return s +} + +// SetEmrManagedMasterSecurityGroup sets the EmrManagedMasterSecurityGroup field's value. +func (s *JobFlowInstancesConfig) SetEmrManagedMasterSecurityGroup(v string) *JobFlowInstancesConfig { + s.EmrManagedMasterSecurityGroup = &v + return s +} + +// SetEmrManagedSlaveSecurityGroup sets the EmrManagedSlaveSecurityGroup field's value. +func (s *JobFlowInstancesConfig) SetEmrManagedSlaveSecurityGroup(v string) *JobFlowInstancesConfig { + s.EmrManagedSlaveSecurityGroup = &v + return s +} + +// SetHadoopVersion sets the HadoopVersion field's value. +func (s *JobFlowInstancesConfig) SetHadoopVersion(v string) *JobFlowInstancesConfig { + s.HadoopVersion = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *JobFlowInstancesConfig) SetInstanceCount(v int64) *JobFlowInstancesConfig { + s.InstanceCount = &v + return s +} + +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *JobFlowInstancesConfig) SetInstanceGroups(v []*InstanceGroupConfig) *JobFlowInstancesConfig { + s.InstanceGroups = v + return s +} + +// SetKeepJobFlowAliveWhenNoSteps sets the KeepJobFlowAliveWhenNoSteps field's value. +func (s *JobFlowInstancesConfig) SetKeepJobFlowAliveWhenNoSteps(v bool) *JobFlowInstancesConfig { + s.KeepJobFlowAliveWhenNoSteps = &v + return s +} + +// SetMasterInstanceType sets the MasterInstanceType field's value. +func (s *JobFlowInstancesConfig) SetMasterInstanceType(v string) *JobFlowInstancesConfig { + s.MasterInstanceType = &v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *JobFlowInstancesConfig) SetPlacement(v *PlacementType) *JobFlowInstancesConfig { + s.Placement = v + return s +} + +// SetServiceAccessSecurityGroup sets the ServiceAccessSecurityGroup field's value. +func (s *JobFlowInstancesConfig) SetServiceAccessSecurityGroup(v string) *JobFlowInstancesConfig { + s.ServiceAccessSecurityGroup = &v + return s +} + +// SetSlaveInstanceType sets the SlaveInstanceType field's value. +func (s *JobFlowInstancesConfig) SetSlaveInstanceType(v string) *JobFlowInstancesConfig { + s.SlaveInstanceType = &v + return s +} + +// SetTerminationProtected sets the TerminationProtected field's value. +func (s *JobFlowInstancesConfig) SetTerminationProtected(v bool) *JobFlowInstancesConfig { + s.TerminationProtected = &v + return s +} + // Specify the type of Amazon EC2 instances to run the job flow on. type JobFlowInstancesDetail struct { _ struct{} `type:"structure"` @@ -3568,11 +5478,11 @@ type JobFlowInstancesDetail struct { MasterPublicDnsName *string `type:"string"` // An approximation of the cost of the job flow, represented in m1.small/hours. - // This value is incremented once for every hour an m1.small runs. Larger instances - // are weighted more, so an Amazon EC2 instance that is roughly four times more - // expensive would result in the normalized instance hours being incremented - // by four. This result is only an approximation and does not reflect the actual - // billing rate. + // This value is incremented one time for every hour that an m1.small runs. + // Larger instances are weighted more, so an Amazon EC2 instance that is roughly + // four times more expensive would result in the normalized instance hours being + // incremented by four. This result is only an approximation and does not reflect + // the actual billing rate. NormalizedInstanceHours *int64 `type:"integer"` // The Amazon EC2 Availability Zone for the job flow. @@ -3599,6 +5509,84 @@ func (s JobFlowInstancesDetail) GoString() string { return s.String() } +// SetEc2KeyName sets the Ec2KeyName field's value. +func (s *JobFlowInstancesDetail) SetEc2KeyName(v string) *JobFlowInstancesDetail { + s.Ec2KeyName = &v + return s +} + +// SetEc2SubnetId sets the Ec2SubnetId field's value. +func (s *JobFlowInstancesDetail) SetEc2SubnetId(v string) *JobFlowInstancesDetail { + s.Ec2SubnetId = &v + return s +} + +// SetHadoopVersion sets the HadoopVersion field's value. +func (s *JobFlowInstancesDetail) SetHadoopVersion(v string) *JobFlowInstancesDetail { + s.HadoopVersion = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *JobFlowInstancesDetail) SetInstanceCount(v int64) *JobFlowInstancesDetail { + s.InstanceCount = &v + return s +} + +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *JobFlowInstancesDetail) SetInstanceGroups(v []*InstanceGroupDetail) *JobFlowInstancesDetail { + s.InstanceGroups = v + return s +} + +// SetKeepJobFlowAliveWhenNoSteps sets the KeepJobFlowAliveWhenNoSteps field's value. +func (s *JobFlowInstancesDetail) SetKeepJobFlowAliveWhenNoSteps(v bool) *JobFlowInstancesDetail { + s.KeepJobFlowAliveWhenNoSteps = &v + return s +} + +// SetMasterInstanceId sets the MasterInstanceId field's value. +func (s *JobFlowInstancesDetail) SetMasterInstanceId(v string) *JobFlowInstancesDetail { + s.MasterInstanceId = &v + return s +} + +// SetMasterInstanceType sets the MasterInstanceType field's value. +func (s *JobFlowInstancesDetail) SetMasterInstanceType(v string) *JobFlowInstancesDetail { + s.MasterInstanceType = &v + return s +} + +// SetMasterPublicDnsName sets the MasterPublicDnsName field's value. +func (s *JobFlowInstancesDetail) SetMasterPublicDnsName(v string) *JobFlowInstancesDetail { + s.MasterPublicDnsName = &v + return s +} + +// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value. +func (s *JobFlowInstancesDetail) SetNormalizedInstanceHours(v int64) *JobFlowInstancesDetail { + s.NormalizedInstanceHours = &v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *JobFlowInstancesDetail) SetPlacement(v *PlacementType) *JobFlowInstancesDetail { + s.Placement = v + return s +} + +// SetSlaveInstanceType sets the SlaveInstanceType field's value. +func (s *JobFlowInstancesDetail) SetSlaveInstanceType(v string) *JobFlowInstancesDetail { + s.SlaveInstanceType = &v + return s +} + +// SetTerminationProtected sets the TerminationProtected field's value. +func (s *JobFlowInstancesDetail) SetTerminationProtected(v bool) *JobFlowInstancesDetail { + s.TerminationProtected = &v + return s +} + // A key value pair. type KeyValue struct { _ struct{} `type:"structure"` @@ -3620,11 +5608,23 @@ func (s KeyValue) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *KeyValue) SetKey(v string) *KeyValue { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *KeyValue) SetValue(v string) *KeyValue { + s.Value = &v + return s +} + // This input determines which bootstrap actions to retrieve. type ListBootstrapActionsInput struct { _ struct{} `type:"structure"` - // The cluster identifier for the bootstrap actions to list . + // The cluster identifier for the bootstrap actions to list. // // ClusterId is a required field ClusterId *string `type:"string" required:"true"` @@ -3656,11 +5656,23 @@ func (s *ListBootstrapActionsInput) Validate() error { return nil } -// This output contains the boostrap actions detail . +// SetClusterId sets the ClusterId field's value. +func (s *ListBootstrapActionsInput) SetClusterId(v string) *ListBootstrapActionsInput { + s.ClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListBootstrapActionsInput) SetMarker(v string) *ListBootstrapActionsInput { + s.Marker = &v + return s +} + +// This output contains the bootstrap actions detail. type ListBootstrapActionsOutput struct { _ struct{} `type:"structure"` - // The bootstrap actions associated with the cluster . + // The bootstrap actions associated with the cluster. BootstrapActions []*Command `type:"list"` // The pagination token that indicates the next set of results to retrieve. @@ -3677,6 +5689,18 @@ func (s ListBootstrapActionsOutput) GoString() string { return s.String() } +// SetBootstrapActions sets the BootstrapActions field's value. +func (s *ListBootstrapActionsOutput) SetBootstrapActions(v []*Command) *ListBootstrapActionsOutput { + s.BootstrapActions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListBootstrapActionsOutput) SetMarker(v string) *ListBootstrapActionsOutput { + s.Marker = &v + return s +} + // This input determines how the ListClusters action filters the list of clusters // that it returns. type ListClustersInput struct { @@ -3685,10 +5709,10 @@ type ListClustersInput struct { // The cluster state filters to apply when listing clusters. ClusterStates []*string `type:"list"` - // The creation date and time beginning value filter for listing clusters . + // The creation date and time beginning value filter for listing clusters. CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"` - // The creation date and time end value filter for listing clusters . + // The creation date and time end value filter for listing clusters. CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"` // The pagination token that indicates the next set of results to retrieve. @@ -3705,6 +5729,30 @@ func (s ListClustersInput) GoString() string { return s.String() } +// SetClusterStates sets the ClusterStates field's value. +func (s *ListClustersInput) SetClusterStates(v []*string) *ListClustersInput { + s.ClusterStates = v + return s +} + +// SetCreatedAfter sets the CreatedAfter field's value. +func (s *ListClustersInput) SetCreatedAfter(v time.Time) *ListClustersInput { + s.CreatedAfter = &v + return s +} + +// SetCreatedBefore sets the CreatedBefore field's value. +func (s *ListClustersInput) SetCreatedBefore(v time.Time) *ListClustersInput { + s.CreatedBefore = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListClustersInput) SetMarker(v string) *ListClustersInput { + s.Marker = &v + return s +} + // This contains a ClusterSummaryList with the cluster details; for example, // the cluster IDs, names, and status. type ListClustersOutput struct { @@ -3727,6 +5775,18 @@ func (s ListClustersOutput) GoString() string { return s.String() } +// SetClusters sets the Clusters field's value. +func (s *ListClustersOutput) SetClusters(v []*ClusterSummary) *ListClustersOutput { + s.Clusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListClustersOutput) SetMarker(v string) *ListClustersOutput { + s.Marker = &v + return s +} + // This input determines which instance groups to retrieve. type ListInstanceGroupsInput struct { _ struct{} `type:"structure"` @@ -3763,6 +5823,18 @@ func (s *ListInstanceGroupsInput) Validate() error { return nil } +// SetClusterId sets the ClusterId field's value. +func (s *ListInstanceGroupsInput) SetClusterId(v string) *ListInstanceGroupsInput { + s.ClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceGroupsInput) SetMarker(v string) *ListInstanceGroupsInput { + s.Marker = &v + return s +} + // This input determines which instance groups to retrieve. type ListInstanceGroupsOutput struct { _ struct{} `type:"structure"` @@ -3784,6 +5856,18 @@ func (s ListInstanceGroupsOutput) GoString() string { return s.String() } +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *ListInstanceGroupsOutput) SetInstanceGroups(v []*InstanceGroup) *ListInstanceGroupsOutput { + s.InstanceGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceGroupsOutput) SetMarker(v string) *ListInstanceGroupsOutput { + s.Marker = &v + return s +} + // This input determines which instances to list. type ListInstancesInput struct { _ struct{} `type:"structure"` @@ -3830,6 +5914,36 @@ func (s *ListInstancesInput) Validate() error { return nil } +// SetClusterId sets the ClusterId field's value. +func (s *ListInstancesInput) SetClusterId(v string) *ListInstancesInput { + s.ClusterId = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *ListInstancesInput) SetInstanceGroupId(v string) *ListInstancesInput { + s.InstanceGroupId = &v + return s +} + +// SetInstanceGroupTypes sets the InstanceGroupTypes field's value. +func (s *ListInstancesInput) SetInstanceGroupTypes(v []*string) *ListInstancesInput { + s.InstanceGroupTypes = v + return s +} + +// SetInstanceStates sets the InstanceStates field's value. +func (s *ListInstancesInput) SetInstanceStates(v []*string) *ListInstancesInput { + s.InstanceStates = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstancesInput) SetMarker(v string) *ListInstancesInput { + s.Marker = &v + return s +} + // This output contains the list of instances. type ListInstancesOutput struct { _ struct{} `type:"structure"` @@ -3851,6 +5965,18 @@ func (s ListInstancesOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *ListInstancesOutput) SetInstances(v []*Instance) *ListInstancesOutput { + s.Instances = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstancesOutput) SetMarker(v string) *ListInstancesOutput { + s.Marker = &v + return s +} + type ListSecurityConfigurationsInput struct { _ struct{} `type:"structure"` @@ -3868,6 +5994,12 @@ func (s ListSecurityConfigurationsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListSecurityConfigurationsInput) SetMarker(v string) *ListSecurityConfigurationsInput { + s.Marker = &v + return s +} + type ListSecurityConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -3890,6 +6022,18 @@ func (s ListSecurityConfigurationsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListSecurityConfigurationsOutput) SetMarker(v string) *ListSecurityConfigurationsOutput { + s.Marker = &v + return s +} + +// SetSecurityConfigurations sets the SecurityConfigurations field's value. +func (s *ListSecurityConfigurationsOutput) SetSecurityConfigurations(v []*SecurityConfigurationSummary) *ListSecurityConfigurationsOutput { + s.SecurityConfigurations = v + return s +} + // This input determines which steps to list. type ListStepsInput struct { _ struct{} `type:"structure"` @@ -3932,6 +6076,30 @@ func (s *ListStepsInput) Validate() error { return nil } +// SetClusterId sets the ClusterId field's value. +func (s *ListStepsInput) SetClusterId(v string) *ListStepsInput { + s.ClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListStepsInput) SetMarker(v string) *ListStepsInput { + s.Marker = &v + return s +} + +// SetStepIds sets the StepIds field's value. +func (s *ListStepsInput) SetStepIds(v []*string) *ListStepsInput { + s.StepIds = v + return s +} + +// SetStepStates sets the StepStates field's value. +func (s *ListStepsInput) SetStepStates(v []*string) *ListStepsInput { + s.StepStates = v + return s +} + // This output contains the list of steps returned in reverse order. This means // that the last step is the first element in the list. type ListStepsOutput struct { @@ -3954,10 +6122,63 @@ func (s ListStepsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListStepsOutput) SetMarker(v string) *ListStepsOutput { + s.Marker = &v + return s +} + +// SetSteps sets the Steps field's value. +func (s *ListStepsOutput) SetSteps(v []*StepSummary) *ListStepsOutput { + s.Steps = v + return s +} + +// A CloudWatch dimension, which is specified using a Key (known as a Name in +// CloudWatch), Value pair. By default, Amazon EMR uses one dimension whose +// Key is JobFlowID and Value is a variable representing the cluster ID, which +// is ${emr:cluster_id}. This enables the rule to bootstrap when the cluster +// ID becomes available, and also enables a single automatic scaling policy +// to be reused for multiple clusters and instance groups. +type MetricDimension struct { + _ struct{} `type:"structure"` + + // The dimension name. + Key *string `type:"string"` + + // The dimension value. + Value *string `type:"string"` +} + +// String returns the string representation +func (s MetricDimension) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MetricDimension) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *MetricDimension) SetKey(v string) *MetricDimension { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MetricDimension) SetValue(v string) *MetricDimension { + s.Value = &v + return s +} + // Change the size of some instance groups. type ModifyInstanceGroupsInput struct { _ struct{} `type:"structure"` + // The ID of the cluster to which the instance group belongs. + ClusterId *string `type:"string"` + // Instance groups to change. InstanceGroups []*InstanceGroupModifyConfig `type:"list"` } @@ -3992,6 +6213,18 @@ func (s *ModifyInstanceGroupsInput) Validate() error { return nil } +// SetClusterId sets the ClusterId field's value. +func (s *ModifyInstanceGroupsInput) SetClusterId(v string) *ModifyInstanceGroupsInput { + s.ClusterId = &v + return s +} + +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *ModifyInstanceGroupsInput) SetInstanceGroups(v []*InstanceGroupModifyConfig) *ModifyInstanceGroupsInput { + s.InstanceGroups = v + return s +} + type ModifyInstanceGroupsOutput struct { _ struct{} `type:"structure"` } @@ -4039,6 +6272,194 @@ func (s *PlacementType) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *PlacementType) SetAvailabilityZone(v string) *PlacementType { + s.AvailabilityZone = &v + return s +} + +type PutAutoScalingPolicyInput struct { + _ struct{} `type:"structure"` + + // Specifies the definition of the automatic scaling policy. + // + // AutoScalingPolicy is a required field + AutoScalingPolicy *AutoScalingPolicy `type:"structure" required:"true"` + + // Specifies the ID of a cluster. The instance group to which the automatic + // scaling policy is applied is within this cluster. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` + + // Specifies the ID of the instance group to which the automatic scaling policy + // is applied. + // + // InstanceGroupId is a required field + InstanceGroupId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s PutAutoScalingPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAutoScalingPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutAutoScalingPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutAutoScalingPolicyInput"} + if s.AutoScalingPolicy == nil { + invalidParams.Add(request.NewErrParamRequired("AutoScalingPolicy")) + } + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.InstanceGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceGroupId")) + } + if s.AutoScalingPolicy != nil { + if err := s.AutoScalingPolicy.Validate(); err != nil { + invalidParams.AddNested("AutoScalingPolicy", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingPolicy sets the AutoScalingPolicy field's value. +func (s *PutAutoScalingPolicyInput) SetAutoScalingPolicy(v *AutoScalingPolicy) *PutAutoScalingPolicyInput { + s.AutoScalingPolicy = v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *PutAutoScalingPolicyInput) SetClusterId(v string) *PutAutoScalingPolicyInput { + s.ClusterId = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *PutAutoScalingPolicyInput) SetInstanceGroupId(v string) *PutAutoScalingPolicyInput { + s.InstanceGroupId = &v + return s +} + +type PutAutoScalingPolicyOutput struct { + _ struct{} `type:"structure"` + + // The automatic scaling policy definition. + AutoScalingPolicy *AutoScalingPolicyDescription `type:"structure"` + + // Specifies the ID of a cluster. The instance group to which the automatic + // scaling policy is applied is within this cluster. + ClusterId *string `type:"string"` + + // Specifies the ID of the instance group to which the scaling policy is applied. + InstanceGroupId *string `type:"string"` +} + +// String returns the string representation +func (s PutAutoScalingPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAutoScalingPolicyOutput) GoString() string { + return s.String() +} + +// SetAutoScalingPolicy sets the AutoScalingPolicy field's value. +func (s *PutAutoScalingPolicyOutput) SetAutoScalingPolicy(v *AutoScalingPolicyDescription) *PutAutoScalingPolicyOutput { + s.AutoScalingPolicy = v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *PutAutoScalingPolicyOutput) SetClusterId(v string) *PutAutoScalingPolicyOutput { + s.ClusterId = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *PutAutoScalingPolicyOutput) SetInstanceGroupId(v string) *PutAutoScalingPolicyOutput { + s.InstanceGroupId = &v + return s +} + +type RemoveAutoScalingPolicyInput struct { + _ struct{} `type:"structure"` + + // Specifies the ID of a cluster. The instance group to which the automatic + // scaling policy is applied is within this cluster. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` + + // Specifies the ID of the instance group to which the scaling policy is applied. + // + // InstanceGroupId is a required field + InstanceGroupId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s RemoveAutoScalingPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveAutoScalingPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveAutoScalingPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveAutoScalingPolicyInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.InstanceGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceGroupId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *RemoveAutoScalingPolicyInput) SetClusterId(v string) *RemoveAutoScalingPolicyInput { + s.ClusterId = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *RemoveAutoScalingPolicyInput) SetInstanceGroupId(v string) *RemoveAutoScalingPolicyInput { + s.InstanceGroupId = &v + return s +} + +type RemoveAutoScalingPolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveAutoScalingPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveAutoScalingPolicyOutput) GoString() string { + return s.String() +} + // This input identifies a cluster and a list of tags to remove. type RemoveTagsInput struct { _ struct{} `type:"structure"` @@ -4081,6 +6502,18 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsInput) SetResourceId(v string) *RemoveTagsInput { + s.ResourceId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput { + s.TagKeys = v + return s +} + // This output indicates the result of removing tags from a resource. type RemoveTagsOutput struct { _ struct{} `type:"structure"` @@ -4106,34 +6539,44 @@ type RunJobFlowInput struct { // For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, // use ReleaseLabel. // - // The version of the Amazon Machine Image (AMI) to use when launching Amazon + // The version of the Amazon Machine Image (AMI) to use when launching Amazon // EC2 instances in the job flow. The following values are valid: // - // The version number of the AMI to use, for example, "2.0." + // * The version number of the AMI to use, for example, "2.0." // - // If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 - // supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig - // HadoopVersion parameter to modify the version of Hadoop from the defaults - // shown above. + // If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports + // both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfigHadoopVersion + // parameter to modify the version of Hadoop from the defaults shown above. // // For details about the AMI versions currently supported by Amazon Elastic - // MapReduce, go to AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) - // in the Amazon Elastic MapReduce Developer's Guide. + // MapReduce, see AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) + // in the Amazon Elastic MapReduce Developer Guide. + // + // Previously, the EMR AMI version API parameter options allowed you to use + // latest for the latest AMI version rather than specify a numerical value. + // Some regions no longer support this deprecated option as they only have a + // newer release label version of EMR, which requires you to specify an EMR + // release label release (EMR 4.x or later). AmiVersion *string `type:"string"` // Amazon EMR releases 4.x or later. // - // A list of applications for the cluster. Valid values are: "Hadoop", "Hive", + // A list of applications for the cluster. Valid values are: "Hadoop", "Hive", // "Mahout", "Pig", and "Spark." They are case insensitive. Applications []*Application `type:"list"` + // An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. + // The IAM role provides permissions that the automatic scaling feature requires + // to launch and terminate EC2 instances in an instance group. + AutoScalingRole *string `type:"string"` + // A list of bootstrap actions that will be run before Hadoop is started on // the cluster nodes. BootstrapActions []*BootstrapActionConfig `type:"list"` // Amazon EMR releases 4.x or later. // - // The list of configurations supplied for the EMR cluster you are creating. + // The list of configurations supplied for the EMR cluster you are creating. Configurations []*Configuration `type:"list"` // A specification of the number and type of Amazon EC2 instances on which to @@ -4160,37 +6603,51 @@ type RunJobFlowInput struct { // For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, // use Applications. // - // A list of strings that indicates third-party software to use with the job + // A list of strings that indicates third-party software to use with the job // flow that accepts a user argument list. EMR accepts and forwards the argument // list to the corresponding installation script as bootstrap action arguments. // For more information, see Launch a Job Flow on the MapR Distribution for // Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-mapr.html). // Currently supported values are: // - // "mapr-m3" - launch the cluster using MapR M3 Edition. + // * "mapr-m3" - launch the cluster using MapR M3 Edition. // - // "mapr-m5" - launch the cluster using MapR M5 Edition. + // * "mapr-m5" - launch the cluster using MapR M5 Edition. // - // "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - // - launch the job flow using MapR M3 or M5 Edition respectively. + // * "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" + // - launch the job flow using MapR M3 or M5 Edition respectively. // - // "mapr-m7" - launch the cluster using MapR M7 Edition. + // * "mapr-m7" - launch the cluster using MapR M7 Edition. // - // "hunk" - launch the cluster with the Hunk Big Data Analtics Platform. + // * "hunk" - launch the cluster with the Hunk Big Data Analtics Platform. // - // "hue"- launch the cluster with Hue installed. + // * "hue"- launch the cluster with Hue installed. // - // "spark" - launch the cluster with Apache Spark installed. + // * "spark" - launch the cluster with Apache Spark installed. // - // "ganglia" - launch the cluster with the Ganglia Monitoring System installed. + // * "ganglia" - launch the cluster with the Ganglia Monitoring System installed. NewSupportedProducts []*SupportedProductConfig `type:"list"` // Amazon EMR releases 4.x or later. // - // The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x + // The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x // AMIs, use amiVersion instead instead of ReleaseLabel. ReleaseLabel *string `type:"string"` + // Specifies the way that individual Amazon EC2 instances terminate when an + // automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR + // indicates that Amazon EMR terminates nodes at the instance-hour boundary, + // regardless of when the request to terminate the instance was submitted. This + // option is only available with Amazon EMR 5.1.0 and later and is the default + // for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates + // that Amazon EMR blacklists and drains tasks from nodes before terminating + // the Amazon EC2 instances, regardless of the instance-hour boundary. With + // either behavior, Amazon EMR removes the least active nodes first and blocks + // instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION + // available only in Amazon EMR version 4.1.0 and later, and is the default + // for versions of Amazon EMR earlier than 5.1.0. + ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"` + // The name of a security configuration to apply to the cluster. SecurityConfiguration *string `type:"string"` @@ -4204,14 +6661,14 @@ type RunJobFlowInput struct { // For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, // use Applications. // - // A list of strings that indicates third-party software to use with the job - // flow. For more information, go to Use Third Party Applications with Amazon + // A list of strings that indicates third-party software to use with the job + // flow. For more information, see Use Third Party Applications with Amazon // EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-supported-products.html). // Currently supported values are: // - // "mapr-m3" - launch the job flow using MapR M3 Edition. + // * "mapr-m3" - launch the job flow using MapR M3 Edition. // - // "mapr-m5" - launch the job flow using MapR M5 Edition. + // * "mapr-m5" - launch the job flow using MapR M5 Edition. SupportedProducts []*string `type:"list"` // A list of tags to associate with a cluster and propagate to Amazon EC2 instances. @@ -4276,6 +6733,120 @@ func (s *RunJobFlowInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *RunJobFlowInput) SetAdditionalInfo(v string) *RunJobFlowInput { + s.AdditionalInfo = &v + return s +} + +// SetAmiVersion sets the AmiVersion field's value. +func (s *RunJobFlowInput) SetAmiVersion(v string) *RunJobFlowInput { + s.AmiVersion = &v + return s +} + +// SetApplications sets the Applications field's value. +func (s *RunJobFlowInput) SetApplications(v []*Application) *RunJobFlowInput { + s.Applications = v + return s +} + +// SetAutoScalingRole sets the AutoScalingRole field's value. +func (s *RunJobFlowInput) SetAutoScalingRole(v string) *RunJobFlowInput { + s.AutoScalingRole = &v + return s +} + +// SetBootstrapActions sets the BootstrapActions field's value. +func (s *RunJobFlowInput) SetBootstrapActions(v []*BootstrapActionConfig) *RunJobFlowInput { + s.BootstrapActions = v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *RunJobFlowInput) SetConfigurations(v []*Configuration) *RunJobFlowInput { + s.Configurations = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *RunJobFlowInput) SetInstances(v *JobFlowInstancesConfig) *RunJobFlowInput { + s.Instances = v + return s +} + +// SetJobFlowRole sets the JobFlowRole field's value. +func (s *RunJobFlowInput) SetJobFlowRole(v string) *RunJobFlowInput { + s.JobFlowRole = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *RunJobFlowInput) SetLogUri(v string) *RunJobFlowInput { + s.LogUri = &v + return s +} + +// SetName sets the Name field's value. +func (s *RunJobFlowInput) SetName(v string) *RunJobFlowInput { + s.Name = &v + return s +} + +// SetNewSupportedProducts sets the NewSupportedProducts field's value. +func (s *RunJobFlowInput) SetNewSupportedProducts(v []*SupportedProductConfig) *RunJobFlowInput { + s.NewSupportedProducts = v + return s +} + +// SetReleaseLabel sets the ReleaseLabel field's value. +func (s *RunJobFlowInput) SetReleaseLabel(v string) *RunJobFlowInput { + s.ReleaseLabel = &v + return s +} + +// SetScaleDownBehavior sets the ScaleDownBehavior field's value. +func (s *RunJobFlowInput) SetScaleDownBehavior(v string) *RunJobFlowInput { + s.ScaleDownBehavior = &v + return s +} + +// SetSecurityConfiguration sets the SecurityConfiguration field's value. +func (s *RunJobFlowInput) SetSecurityConfiguration(v string) *RunJobFlowInput { + s.SecurityConfiguration = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *RunJobFlowInput) SetServiceRole(v string) *RunJobFlowInput { + s.ServiceRole = &v + return s +} + +// SetSteps sets the Steps field's value. +func (s *RunJobFlowInput) SetSteps(v []*StepConfig) *RunJobFlowInput { + s.Steps = v + return s +} + +// SetSupportedProducts sets the SupportedProducts field's value. +func (s *RunJobFlowInput) SetSupportedProducts(v []*string) *RunJobFlowInput { + s.SupportedProducts = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RunJobFlowInput) SetTags(v []*Tag) *RunJobFlowInput { + s.Tags = v + return s +} + +// SetVisibleToAllUsers sets the VisibleToAllUsers field's value. +func (s *RunJobFlowInput) SetVisibleToAllUsers(v bool) *RunJobFlowInput { + s.VisibleToAllUsers = &v + return s +} + // The result of the RunJobFlow operation. type RunJobFlowOutput struct { _ struct{} `type:"structure"` @@ -4294,11 +6865,273 @@ func (s RunJobFlowOutput) GoString() string { return s.String() } +// SetJobFlowId sets the JobFlowId field's value. +func (s *RunJobFlowOutput) SetJobFlowId(v string) *RunJobFlowOutput { + s.JobFlowId = &v + return s +} + +// The type of adjustment the automatic scaling activity makes when triggered, +// and the periodicity of the adjustment. +type ScalingAction struct { + _ struct{} `type:"structure"` + + // Not available for instance groups. Instance groups use the market type specified + // for the group. + Market *string `type:"string" enum:"MarketType"` + + // The type of adjustment the automatic scaling activity makes when triggered, + // and the periodicity of the adjustment. + // + // SimpleScalingPolicyConfiguration is a required field + SimpleScalingPolicyConfiguration *SimpleScalingPolicyConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ScalingAction) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScalingAction) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingAction) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingAction"} + if s.SimpleScalingPolicyConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("SimpleScalingPolicyConfiguration")) + } + if s.SimpleScalingPolicyConfiguration != nil { + if err := s.SimpleScalingPolicyConfiguration.Validate(); err != nil { + invalidParams.AddNested("SimpleScalingPolicyConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMarket sets the Market field's value. +func (s *ScalingAction) SetMarket(v string) *ScalingAction { + s.Market = &v + return s +} + +// SetSimpleScalingPolicyConfiguration sets the SimpleScalingPolicyConfiguration field's value. +func (s *ScalingAction) SetSimpleScalingPolicyConfiguration(v *SimpleScalingPolicyConfiguration) *ScalingAction { + s.SimpleScalingPolicyConfiguration = v + return s +} + +// The upper and lower EC2 instance limits for an automatic scaling policy. +// Automatic scaling activities triggered by automatic scaling rules will not +// cause an instance group to grow above or below these limits. +type ScalingConstraints struct { + _ struct{} `type:"structure"` + + // The upper boundary of EC2 instances in an instance group beyond which scaling + // activities are not allowed to grow. Scale-out activities will not add instances + // beyond this boundary. + // + // MaxCapacity is a required field + MaxCapacity *int64 `type:"integer" required:"true"` + + // The lower boundary of EC2 instances in an instance group below which scaling + // activities are not allowed to shrink. Scale-in activities will not terminate + // instances below this boundary. + // + // MinCapacity is a required field + MinCapacity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s ScalingConstraints) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScalingConstraints) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingConstraints) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingConstraints"} + if s.MaxCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("MaxCapacity")) + } + if s.MinCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("MinCapacity")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *ScalingConstraints) SetMaxCapacity(v int64) *ScalingConstraints { + s.MaxCapacity = &v + return s +} + +// SetMinCapacity sets the MinCapacity field's value. +func (s *ScalingConstraints) SetMinCapacity(v int64) *ScalingConstraints { + s.MinCapacity = &v + return s +} + +// A scale-in or scale-out rule that defines scaling activity, including the +// CloudWatch metric alarm that triggers activity, how EC2 instances are added +// or removed, and the periodicity of adjustments. The automatic scaling policy +// for an instance group can comprise one or more automatic scaling rules. +type ScalingRule struct { + _ struct{} `type:"structure"` + + // The conditions that trigger an automatic scaling activity. + // + // Action is a required field + Action *ScalingAction `type:"structure" required:"true"` + + // A friendly, more verbose description of the automatic scaling rule. + Description *string `type:"string"` + + // The name used to identify an automatic scaling rule. Rule names must be unique + // within a scaling policy. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The CloudWatch alarm definition that determines when automatic scaling activity + // is triggered. + // + // Trigger is a required field + Trigger *ScalingTrigger `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ScalingRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScalingRule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingRule"} + if s.Action == nil { + invalidParams.Add(request.NewErrParamRequired("Action")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Trigger == nil { + invalidParams.Add(request.NewErrParamRequired("Trigger")) + } + if s.Action != nil { + if err := s.Action.Validate(); err != nil { + invalidParams.AddNested("Action", err.(request.ErrInvalidParams)) + } + } + if s.Trigger != nil { + if err := s.Trigger.Validate(); err != nil { + invalidParams.AddNested("Trigger", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAction sets the Action field's value. +func (s *ScalingRule) SetAction(v *ScalingAction) *ScalingRule { + s.Action = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ScalingRule) SetDescription(v string) *ScalingRule { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScalingRule) SetName(v string) *ScalingRule { + s.Name = &v + return s +} + +// SetTrigger sets the Trigger field's value. +func (s *ScalingRule) SetTrigger(v *ScalingTrigger) *ScalingRule { + s.Trigger = v + return s +} + +// The conditions that trigger an automatic scaling activity. +type ScalingTrigger struct { + _ struct{} `type:"structure"` + + // The definition of a CloudWatch metric alarm. When the defined alarm conditions + // are met along with other trigger parameters, scaling activity begins. + // + // CloudWatchAlarmDefinition is a required field + CloudWatchAlarmDefinition *CloudWatchAlarmDefinition `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ScalingTrigger) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScalingTrigger) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingTrigger) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingTrigger"} + if s.CloudWatchAlarmDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("CloudWatchAlarmDefinition")) + } + if s.CloudWatchAlarmDefinition != nil { + if err := s.CloudWatchAlarmDefinition.Validate(); err != nil { + invalidParams.AddNested("CloudWatchAlarmDefinition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCloudWatchAlarmDefinition sets the CloudWatchAlarmDefinition field's value. +func (s *ScalingTrigger) SetCloudWatchAlarmDefinition(v *CloudWatchAlarmDefinition) *ScalingTrigger { + s.CloudWatchAlarmDefinition = v + return s +} + +// Configuration of the script to run during a bootstrap action. type ScriptBootstrapActionConfig struct { _ struct{} `type:"structure"` + // A list of command line arguments to pass to the bootstrap action script. Args []*string `type:"list"` + // Location of the script to run during a bootstrap action. Can be either a + // location in Amazon S3 or on a local file system. + // // Path is a required field Path *string `type:"string" required:"true"` } @@ -4326,6 +7159,18 @@ func (s *ScriptBootstrapActionConfig) Validate() error { return nil } +// SetArgs sets the Args field's value. +func (s *ScriptBootstrapActionConfig) SetArgs(v []*string) *ScriptBootstrapActionConfig { + s.Args = v + return s +} + +// SetPath sets the Path field's value. +func (s *ScriptBootstrapActionConfig) SetPath(v string) *ScriptBootstrapActionConfig { + s.Path = &v + return s +} + // The creation date and time, and name, of a security configuration. type SecurityConfigurationSummary struct { _ struct{} `type:"structure"` @@ -4347,6 +7192,18 @@ func (s SecurityConfigurationSummary) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *SecurityConfigurationSummary) SetCreationDateTime(v time.Time) *SecurityConfigurationSummary { + s.CreationDateTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *SecurityConfigurationSummary) SetName(v string) *SecurityConfigurationSummary { + s.Name = &v + return s +} + // The input argument to the TerminationProtection operation. type SetTerminationProtectionInput struct { _ struct{} `type:"structure"` @@ -4392,6 +7249,18 @@ func (s *SetTerminationProtectionInput) Validate() error { return nil } +// SetJobFlowIds sets the JobFlowIds field's value. +func (s *SetTerminationProtectionInput) SetJobFlowIds(v []*string) *SetTerminationProtectionInput { + s.JobFlowIds = v + return s +} + +// SetTerminationProtected sets the TerminationProtected field's value. +func (s *SetTerminationProtectionInput) SetTerminationProtected(v bool) *SetTerminationProtectionInput { + s.TerminationProtected = &v + return s +} + type SetTerminationProtectionOutput struct { _ struct{} `type:"structure"` } @@ -4451,6 +7320,18 @@ func (s *SetVisibleToAllUsersInput) Validate() error { return nil } +// SetJobFlowIds sets the JobFlowIds field's value. +func (s *SetVisibleToAllUsersInput) SetJobFlowIds(v []*string) *SetVisibleToAllUsersInput { + s.JobFlowIds = v + return s +} + +// SetVisibleToAllUsers sets the VisibleToAllUsers field's value. +func (s *SetVisibleToAllUsersInput) SetVisibleToAllUsers(v bool) *SetVisibleToAllUsersInput { + s.VisibleToAllUsers = &v + return s +} + type SetVisibleToAllUsersOutput struct { _ struct{} `type:"structure"` } @@ -4489,6 +7370,95 @@ func (s ShrinkPolicy) GoString() string { return s.String() } +// SetDecommissionTimeout sets the DecommissionTimeout field's value. +func (s *ShrinkPolicy) SetDecommissionTimeout(v int64) *ShrinkPolicy { + s.DecommissionTimeout = &v + return s +} + +// SetInstanceResizePolicy sets the InstanceResizePolicy field's value. +func (s *ShrinkPolicy) SetInstanceResizePolicy(v *InstanceResizePolicy) *ShrinkPolicy { + s.InstanceResizePolicy = v + return s +} + +// An automatic scaling configuration, which describes how the policy adds or +// removes instances, the cooldown period, and the number of EC2 instances that +// will be added each time the CloudWatch metric alarm condition is satisfied. +type SimpleScalingPolicyConfiguration struct { + _ struct{} `type:"structure"` + + // The way in which EC2 instances are added (if ScalingAdjustment is a positive + // number) or terminated (if ScalingAdjustment is a negative number) each time + // the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY + // indicates that the EC2 instance count increments or decrements by ScalingAdjustment, + // which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates + // the instance count increments or decrements by the percentage specified by + // ScalingAdjustment, which should be expressed as a decimal, for example, 0.20 + // indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY + // indicates the scaling activity results in an instance group with the number + // of EC2 instances specified by ScalingAdjustment, which should be expressed + // as a positive integer. + AdjustmentType *string `type:"string" enum:"AdjustmentType"` + + // The amount of time, in seconds, after a scaling activity completes before + // any further trigger-related scaling activities can start. The default value + // is 0. + CoolDown *int64 `type:"integer"` + + // The amount by which to scale in or scale out, based on the specified AdjustmentType. + // A positive value adds to the instance group's EC2 instance count while a + // negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, + // the number should only be a positive integer. If AdjustmentType is set to + // PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as a + // decimal. For example, -0.20 indicates a decrease in 20% increments of cluster + // capacity. + // + // ScalingAdjustment is a required field + ScalingAdjustment *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s SimpleScalingPolicyConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimpleScalingPolicyConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SimpleScalingPolicyConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SimpleScalingPolicyConfiguration"} + if s.ScalingAdjustment == nil { + invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *SimpleScalingPolicyConfiguration) SetAdjustmentType(v string) *SimpleScalingPolicyConfiguration { + s.AdjustmentType = &v + return s +} + +// SetCoolDown sets the CoolDown field's value. +func (s *SimpleScalingPolicyConfiguration) SetCoolDown(v int64) *SimpleScalingPolicyConfiguration { + s.CoolDown = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *SimpleScalingPolicyConfiguration) SetScalingAdjustment(v int64) *SimpleScalingPolicyConfiguration { + s.ScalingAdjustment = &v + return s +} + // This represents a step in a cluster. type Step struct { _ struct{} `type:"structure"` @@ -4520,6 +7490,36 @@ func (s Step) GoString() string { return s.String() } +// SetActionOnFailure sets the ActionOnFailure field's value. +func (s *Step) SetActionOnFailure(v string) *Step { + s.ActionOnFailure = &v + return s +} + +// SetConfig sets the Config field's value. +func (s *Step) SetConfig(v *HadoopStepConfig) *Step { + s.Config = v + return s +} + +// SetId sets the Id field's value. +func (s *Step) SetId(v string) *Step { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Step) SetName(v string) *Step { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Step) SetStatus(v *StepStatus) *Step { + s.Status = v + return s +} + // Specification of a job flow step. type StepConfig struct { _ struct{} `type:"structure"` @@ -4569,6 +7569,24 @@ func (s *StepConfig) Validate() error { return nil } +// SetActionOnFailure sets the ActionOnFailure field's value. +func (s *StepConfig) SetActionOnFailure(v string) *StepConfig { + s.ActionOnFailure = &v + return s +} + +// SetHadoopJarStep sets the HadoopJarStep field's value. +func (s *StepConfig) SetHadoopJarStep(v *HadoopJarStepConfig) *StepConfig { + s.HadoopJarStep = v + return s +} + +// SetName sets the Name field's value. +func (s *StepConfig) SetName(v string) *StepConfig { + s.Name = &v + return s +} + // Combines the execution state and configuration of a step. type StepDetail struct { _ struct{} `type:"structure"` @@ -4594,6 +7612,18 @@ func (s StepDetail) GoString() string { return s.String() } +// SetExecutionStatusDetail sets the ExecutionStatusDetail field's value. +func (s *StepDetail) SetExecutionStatusDetail(v *StepExecutionStatusDetail) *StepDetail { + s.ExecutionStatusDetail = v + return s +} + +// SetStepConfig sets the StepConfig field's value. +func (s *StepDetail) SetStepConfig(v *StepConfig) *StepDetail { + s.StepConfig = v + return s +} + // The execution state of a step. type StepExecutionStatusDetail struct { _ struct{} `type:"structure"` @@ -4628,6 +7658,36 @@ func (s StepExecutionStatusDetail) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *StepExecutionStatusDetail) SetCreationDateTime(v time.Time) *StepExecutionStatusDetail { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *StepExecutionStatusDetail) SetEndDateTime(v time.Time) *StepExecutionStatusDetail { + s.EndDateTime = &v + return s +} + +// SetLastStateChangeReason sets the LastStateChangeReason field's value. +func (s *StepExecutionStatusDetail) SetLastStateChangeReason(v string) *StepExecutionStatusDetail { + s.LastStateChangeReason = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *StepExecutionStatusDetail) SetStartDateTime(v time.Time) *StepExecutionStatusDetail { + s.StartDateTime = &v + return s +} + +// SetState sets the State field's value. +func (s *StepExecutionStatusDetail) SetState(v string) *StepExecutionStatusDetail { + s.State = &v + return s +} + // The details of the step state change reason. type StepStateChangeReason struct { _ struct{} `type:"structure"` @@ -4650,6 +7710,18 @@ func (s StepStateChangeReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *StepStateChangeReason) SetCode(v string) *StepStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *StepStateChangeReason) SetMessage(v string) *StepStateChangeReason { + s.Message = &v + return s +} + // The execution status details of the cluster step. type StepStatus struct { _ struct{} `type:"structure"` @@ -4678,6 +7750,30 @@ func (s StepStatus) GoString() string { return s.String() } +// SetFailureDetails sets the FailureDetails field's value. +func (s *StepStatus) SetFailureDetails(v *FailureDetails) *StepStatus { + s.FailureDetails = v + return s +} + +// SetState sets the State field's value. +func (s *StepStatus) SetState(v string) *StepStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *StepStatus) SetStateChangeReason(v *StepStateChangeReason) *StepStatus { + s.StateChangeReason = v + return s +} + +// SetTimeline sets the Timeline field's value. +func (s *StepStatus) SetTimeline(v *StepTimeline) *StepStatus { + s.Timeline = v + return s +} + // The summary of the cluster step. type StepSummary struct { _ struct{} `type:"structure"` @@ -4709,6 +7805,36 @@ func (s StepSummary) GoString() string { return s.String() } +// SetActionOnFailure sets the ActionOnFailure field's value. +func (s *StepSummary) SetActionOnFailure(v string) *StepSummary { + s.ActionOnFailure = &v + return s +} + +// SetConfig sets the Config field's value. +func (s *StepSummary) SetConfig(v *HadoopStepConfig) *StepSummary { + s.Config = v + return s +} + +// SetId sets the Id field's value. +func (s *StepSummary) SetId(v string) *StepSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *StepSummary) SetName(v string) *StepSummary { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StepSummary) SetStatus(v *StepStatus) *StepSummary { + s.Status = v + return s +} + // The timeline of the cluster step lifecycle. type StepTimeline struct { _ struct{} `type:"structure"` @@ -4733,6 +7859,24 @@ func (s StepTimeline) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *StepTimeline) SetCreationDateTime(v time.Time) *StepTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *StepTimeline) SetEndDateTime(v time.Time) *StepTimeline { + s.EndDateTime = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *StepTimeline) SetStartDateTime(v time.Time) *StepTimeline { + s.StartDateTime = &v + return s +} + // The list of supported product configurations which allow user-supplied arguments. // EMR accepts these arguments and forwards them to the corresponding installation // script as bootstrap action arguments. @@ -4756,9 +7900,21 @@ func (s SupportedProductConfig) GoString() string { return s.String() } +// SetArgs sets the Args field's value. +func (s *SupportedProductConfig) SetArgs(v []*string) *SupportedProductConfig { + s.Args = v + return s +} + +// SetName sets the Name field's value. +func (s *SupportedProductConfig) SetName(v string) *SupportedProductConfig { + s.Name = &v + return s +} + // A key/value pair containing user-defined metadata that you can associate // with an Amazon EMR resource. Tags make it easier to associate clusters in -// various ways, such as grouping clu\ sters to track your Amazon EMR resource +// various ways, such as grouping clusters to track your Amazon EMR resource // allocation costs. For more information, see Tagging Amazon EMR Resources // (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html). type Tag struct { @@ -4783,6 +7939,18 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Input to the TerminateJobFlows operation. type TerminateJobFlowsInput struct { _ struct{} `type:"structure"` @@ -4816,6 +7984,12 @@ func (s *TerminateJobFlowsInput) Validate() error { return nil } +// SetJobFlowIds sets the JobFlowIds field's value. +func (s *TerminateJobFlowsInput) SetJobFlowIds(v []*string) *TerminateJobFlowsInput { + s.JobFlowIds = v + return s +} + type TerminateJobFlowsOutput struct { _ struct{} `type:"structure"` } @@ -4830,8 +8004,8 @@ func (s TerminateJobFlowsOutput) GoString() string { return s.String() } -// EBS volume specifications such as volume type, IOPS, and size(GiB) that will -// be requested for the EBS volume attached to an EC2 instance in the cluster. +// EBS volume specifications such as volume type, IOPS, and size (GiB) that +// will be requested for the EBS volume attached to an EC2 instance in the cluster. type VolumeSpecification struct { _ struct{} `type:"structure"` @@ -4876,6 +8050,24 @@ func (s *VolumeSpecification) Validate() error { return nil } +// SetIops sets the Iops field's value. +func (s *VolumeSpecification) SetIops(v int64) *VolumeSpecification { + s.Iops = &v + return s +} + +// SetSizeInGB sets the SizeInGB field's value. +func (s *VolumeSpecification) SetSizeInGB(v int64) *VolumeSpecification { + s.SizeInGB = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *VolumeSpecification) SetVolumeType(v string) *VolumeSpecification { + s.VolumeType = &v + return s +} + const ( // ActionOnFailureTerminateJobFlow is a ActionOnFailure enum value ActionOnFailureTerminateJobFlow = "TERMINATE_JOB_FLOW" @@ -4890,6 +8082,56 @@ const ( ActionOnFailureContinue = "CONTINUE" ) +const ( + // AdjustmentTypeChangeInCapacity is a AdjustmentType enum value + AdjustmentTypeChangeInCapacity = "CHANGE_IN_CAPACITY" + + // AdjustmentTypePercentChangeInCapacity is a AdjustmentType enum value + AdjustmentTypePercentChangeInCapacity = "PERCENT_CHANGE_IN_CAPACITY" + + // AdjustmentTypeExactCapacity is a AdjustmentType enum value + AdjustmentTypeExactCapacity = "EXACT_CAPACITY" +) + +const ( + // AutoScalingPolicyStatePending is a AutoScalingPolicyState enum value + AutoScalingPolicyStatePending = "PENDING" + + // AutoScalingPolicyStateAttaching is a AutoScalingPolicyState enum value + AutoScalingPolicyStateAttaching = "ATTACHING" + + // AutoScalingPolicyStateAttached is a AutoScalingPolicyState enum value + AutoScalingPolicyStateAttached = "ATTACHED" + + // AutoScalingPolicyStateDetaching is a AutoScalingPolicyState enum value + AutoScalingPolicyStateDetaching = "DETACHING" + + // AutoScalingPolicyStateDetached is a AutoScalingPolicyState enum value + AutoScalingPolicyStateDetached = "DETACHED" + + // AutoScalingPolicyStateFailed is a AutoScalingPolicyState enum value + AutoScalingPolicyStateFailed = "FAILED" +) + +const ( + // AutoScalingPolicyStateChangeReasonCodeUserRequest is a AutoScalingPolicyStateChangeReasonCode enum value + AutoScalingPolicyStateChangeReasonCodeUserRequest = "USER_REQUEST" + + // AutoScalingPolicyStateChangeReasonCodeProvisionFailure is a AutoScalingPolicyStateChangeReasonCode enum value + AutoScalingPolicyStateChangeReasonCodeProvisionFailure = "PROVISION_FAILURE" + + // AutoScalingPolicyStateChangeReasonCodeCleanupFailure is a AutoScalingPolicyStateChangeReasonCode enum value + AutoScalingPolicyStateChangeReasonCodeCleanupFailure = "CLEANUP_FAILURE" +) + +const ( + // CancelStepsRequestStatusSubmitted is a CancelStepsRequestStatus enum value + CancelStepsRequestStatusSubmitted = "SUBMITTED" + + // CancelStepsRequestStatusFailed is a CancelStepsRequestStatus enum value + CancelStepsRequestStatusFailed = "FAILED" +) + const ( // ClusterStateStarting is a ClusterState enum value ClusterStateStarting = "STARTING" @@ -4936,6 +8178,20 @@ const ( ClusterStateChangeReasonCodeAllStepsCompleted = "ALL_STEPS_COMPLETED" ) +const ( + // ComparisonOperatorGreaterThanOrEqual is a ComparisonOperator enum value + ComparisonOperatorGreaterThanOrEqual = "GREATER_THAN_OR_EQUAL" + + // ComparisonOperatorGreaterThan is a ComparisonOperator enum value + ComparisonOperatorGreaterThan = "GREATER_THAN" + + // ComparisonOperatorLessThan is a ComparisonOperator enum value + ComparisonOperatorLessThan = "LESS_THAN" + + // ComparisonOperatorLessThanOrEqual is a ComparisonOperator enum value + ComparisonOperatorLessThanOrEqual = "LESS_THAN_OR_EQUAL" +) + const ( // InstanceGroupStateProvisioning is a InstanceGroupState enum value InstanceGroupStateProvisioning = "PROVISIONING" @@ -5073,6 +8329,31 @@ const ( MarketTypeSpot = "SPOT" ) +const ( + // ScaleDownBehaviorTerminateAtInstanceHour is a ScaleDownBehavior enum value + ScaleDownBehaviorTerminateAtInstanceHour = "TERMINATE_AT_INSTANCE_HOUR" + + // ScaleDownBehaviorTerminateAtTaskCompletion is a ScaleDownBehavior enum value + ScaleDownBehaviorTerminateAtTaskCompletion = "TERMINATE_AT_TASK_COMPLETION" +) + +const ( + // StatisticSampleCount is a Statistic enum value + StatisticSampleCount = "SAMPLE_COUNT" + + // StatisticAverage is a Statistic enum value + StatisticAverage = "AVERAGE" + + // StatisticSum is a Statistic enum value + StatisticSum = "SUM" + + // StatisticMinimum is a Statistic enum value + StatisticMinimum = "MINIMUM" + + // StatisticMaximum is a Statistic enum value + StatisticMaximum = "MAXIMUM" +) + const ( // StepExecutionStatePending is a StepExecutionState enum value StepExecutionStatePending = "PENDING" @@ -5100,6 +8381,9 @@ const ( // StepStatePending is a StepState enum value StepStatePending = "PENDING" + // StepStateCancelPending is a StepState enum value + StepStateCancelPending = "CANCEL_PENDING" + // StepStateRunning is a StepState enum value StepStateRunning = "RUNNING" @@ -5120,3 +8404,86 @@ const ( // StepStateChangeReasonCodeNone is a StepStateChangeReasonCode enum value StepStateChangeReasonCodeNone = "NONE" ) + +const ( + // UnitNone is a Unit enum value + UnitNone = "NONE" + + // UnitSeconds is a Unit enum value + UnitSeconds = "SECONDS" + + // UnitMicroSeconds is a Unit enum value + UnitMicroSeconds = "MICRO_SECONDS" + + // UnitMilliSeconds is a Unit enum value + UnitMilliSeconds = "MILLI_SECONDS" + + // UnitBytes is a Unit enum value + UnitBytes = "BYTES" + + // UnitKiloBytes is a Unit enum value + UnitKiloBytes = "KILO_BYTES" + + // UnitMegaBytes is a Unit enum value + UnitMegaBytes = "MEGA_BYTES" + + // UnitGigaBytes is a Unit enum value + UnitGigaBytes = "GIGA_BYTES" + + // UnitTeraBytes is a Unit enum value + UnitTeraBytes = "TERA_BYTES" + + // UnitBits is a Unit enum value + UnitBits = "BITS" + + // UnitKiloBits is a Unit enum value + UnitKiloBits = "KILO_BITS" + + // UnitMegaBits is a Unit enum value + UnitMegaBits = "MEGA_BITS" + + // UnitGigaBits is a Unit enum value + UnitGigaBits = "GIGA_BITS" + + // UnitTeraBits is a Unit enum value + UnitTeraBits = "TERA_BITS" + + // UnitPercent is a Unit enum value + UnitPercent = "PERCENT" + + // UnitCount is a Unit enum value + UnitCount = "COUNT" + + // UnitBytesPerSecond is a Unit enum value + UnitBytesPerSecond = "BYTES_PER_SECOND" + + // UnitKiloBytesPerSecond is a Unit enum value + UnitKiloBytesPerSecond = "KILO_BYTES_PER_SECOND" + + // UnitMegaBytesPerSecond is a Unit enum value + UnitMegaBytesPerSecond = "MEGA_BYTES_PER_SECOND" + + // UnitGigaBytesPerSecond is a Unit enum value + UnitGigaBytesPerSecond = "GIGA_BYTES_PER_SECOND" + + // UnitTeraBytesPerSecond is a Unit enum value + UnitTeraBytesPerSecond = "TERA_BYTES_PER_SECOND" + + // UnitBitsPerSecond is a Unit enum value + UnitBitsPerSecond = "BITS_PER_SECOND" + + // UnitKiloBitsPerSecond is a Unit enum value + UnitKiloBitsPerSecond = "KILO_BITS_PER_SECOND" + + // UnitMegaBitsPerSecond is a Unit enum value + UnitMegaBitsPerSecond = "MEGA_BITS_PER_SECOND" + + // UnitGigaBitsPerSecond is a Unit enum value + UnitGigaBitsPerSecond = "GIGA_BITS_PER_SECOND" + + // UnitTeraBitsPerSecond is a Unit enum value + UnitTeraBitsPerSecond = "TERA_BITS_PER_SECOND" + + // UnitCountPerSecond is a Unit enum value + UnitCountPerSecond = "COUNT_PER_SECOND" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/service.go b/vendor/github.com/aws/aws-sdk-go/service/emr/service.go index 755e1699a..793d77d05 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/service.go @@ -11,11 +11,10 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// Amazon Elastic MapReduce (Amazon EMR) is a web service that makes it easy -// to process large amounts of data efficiently. Amazon EMR uses Hadoop processing -// combined with several AWS products to do tasks such as web indexing, data -// mining, log file analysis, machine learning, scientific simulation, and data -// warehousing. +// Amazon EMR is a web service that makes it easy to process large amounts of +// data efficiently. Amazon EMR uses Hadoop processing combined with several +// AWS products to do tasks such as web indexing, data mining, log file analysis, +// machine learning, scientific simulation, and data warehousing. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type EMR struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go index 614793373..dcfc2baea 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go @@ -58,7 +58,7 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) // // Creates a delivery stream. // -// CreateDeliveryStream is an asynchronous operation that immediately returns. +// CreateDeliveryStream is an asynchronous operation that immediately returns. // The initial status of the delivery stream is CREATING. After the delivery // stream is created, its status is ACTIVE and it now accepts data. Attempts // to send data to a delivery stream that is not in the ACTIVE state cause an @@ -88,20 +88,20 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) // // A few notes about RedshiftDestinationConfiguration: // -// An Amazon Redshift destination requires an S3 bucket as intermediate location, -// as Firehose first delivers data to S3 and then uses COPY syntax to load data -// into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration -// parameter element. +// * An Amazon Redshift destination requires an S3 bucket as intermediate +// location, as Firehose first delivers data to S3 and then uses COPY syntax +// to load data into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration +// parameter element. // -// The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration -// because the Amazon Redshift COPY operation that reads from the S3 bucket -// doesn't support these compression formats. +// * The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration +// because the Amazon Redshift COPY operation that reads from the S3 bucket +// doesn't support these compression formats. // -// We strongly recommend that the username and password provided is used -// exclusively for Firehose purposes, and that the permissions for the account -// are restricted for Amazon Redshift INSERT permissions. +// * We strongly recommend that the username and password provided is used +// exclusively for Firehose purposes, and that the permissions for the account +// are restricted for Amazon Redshift INSERT permissions. // -// Firehose assumes the IAM role that is configured as part of destinations. +// Firehose assumes the IAM role that is configured as part of destinations. // The IAM role should allow the Firehose principal to assume the role, and // the role should have permissions that allows the service to deliver the data. // For more information, see Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3) @@ -625,11 +625,11 @@ func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req // Elasticsearch destination, you can only update an existing Elasticsearch // destination with this operation. // -// This operation can be used to change the destination type (for example, -// to replace the Amazon S3 destination with Amazon Redshift) or change the -// parameters associated with a given destination (for example, to change the -// bucket name of the Amazon S3 destination). The update may not occur immediately. -// The target delivery stream remains active while the configurations are updated, +// This operation can be used to change the destination type (for example, to +// replace the Amazon S3 destination with Amazon Redshift) or change the parameters +// associated with a given destination (for example, to change the bucket name +// of the Amazon S3 destination). The update may not occur immediately. The +// target delivery stream remains active while the configurations are updated, // so data writes to the delivery stream can continue during this process. The // updated configurations are normally effective within a few minutes. // @@ -725,6 +725,18 @@ func (s *BufferingHints) Validate() error { return nil } +// SetIntervalInSeconds sets the IntervalInSeconds field's value. +func (s *BufferingHints) SetIntervalInSeconds(v int64) *BufferingHints { + s.IntervalInSeconds = &v + return s +} + +// SetSizeInMBs sets the SizeInMBs field's value. +func (s *BufferingHints) SetSizeInMBs(v int64) *BufferingHints { + s.SizeInMBs = &v + return s +} + // Describes CloudWatch logging options for your delivery stream. type CloudWatchLoggingOptions struct { _ struct{} `type:"structure"` @@ -751,6 +763,24 @@ func (s CloudWatchLoggingOptions) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *CloudWatchLoggingOptions) SetEnabled(v bool) *CloudWatchLoggingOptions { + s.Enabled = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *CloudWatchLoggingOptions) SetLogGroupName(v string) *CloudWatchLoggingOptions { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *CloudWatchLoggingOptions) SetLogStreamName(v string) *CloudWatchLoggingOptions { + s.LogStreamName = &v + return s +} + // Describes a COPY command for Amazon Redshift. type CopyCommand struct { _ struct{} `type:"structure"` @@ -760,18 +790,18 @@ type CopyCommand struct { // command (http://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html). Some // possible examples that would apply to Firehose are as follows. // - // delimiter '\t' lzop; - fields are delimited with "\t" (TAB character) and + // delimiter '\t' lzop; - fields are delimited with "\t" (TAB character) and // compressed using lzop. // - // delimiter '| - fields are delimited with "|" (this is the default delimiter). + // delimiter '| - fields are delimited with "|" (this is the default delimiter). // - // delimiter '|' escape - the delimiter should be escaped. + // delimiter '|' escape - the delimiter should be escaped. // - // fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' + // fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' // - fields are fixed width in the source, with each width specified after every // column in the table. // - // JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path + // JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path // specified is the format of the data. // // For more examples, see Amazon Redshift COPY command examples (http://docs.aws.amazon.com/redshift/latest/dg/r_COPY_command_examples.html). @@ -812,6 +842,24 @@ func (s *CopyCommand) Validate() error { return nil } +// SetCopyOptions sets the CopyOptions field's value. +func (s *CopyCommand) SetCopyOptions(v string) *CopyCommand { + s.CopyOptions = &v + return s +} + +// SetDataTableColumns sets the DataTableColumns field's value. +func (s *CopyCommand) SetDataTableColumns(v string) *CopyCommand { + s.DataTableColumns = &v + return s +} + +// SetDataTableName sets the DataTableName field's value. +func (s *CopyCommand) SetDataTableName(v string) *CopyCommand { + s.DataTableName = &v + return s +} + // Contains the parameters for CreateDeliveryStream. type CreateDeliveryStreamInput struct { _ struct{} `type:"structure"` @@ -877,6 +925,30 @@ func (s *CreateDeliveryStreamInput) Validate() error { return nil } +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *CreateDeliveryStreamInput) SetDeliveryStreamName(v string) *CreateDeliveryStreamInput { + s.DeliveryStreamName = &v + return s +} + +// SetElasticsearchDestinationConfiguration sets the ElasticsearchDestinationConfiguration field's value. +func (s *CreateDeliveryStreamInput) SetElasticsearchDestinationConfiguration(v *ElasticsearchDestinationConfiguration) *CreateDeliveryStreamInput { + s.ElasticsearchDestinationConfiguration = v + return s +} + +// SetRedshiftDestinationConfiguration sets the RedshiftDestinationConfiguration field's value. +func (s *CreateDeliveryStreamInput) SetRedshiftDestinationConfiguration(v *RedshiftDestinationConfiguration) *CreateDeliveryStreamInput { + s.RedshiftDestinationConfiguration = v + return s +} + +// SetS3DestinationConfiguration sets the S3DestinationConfiguration field's value. +func (s *CreateDeliveryStreamInput) SetS3DestinationConfiguration(v *S3DestinationConfiguration) *CreateDeliveryStreamInput { + s.S3DestinationConfiguration = v + return s +} + // Contains the output of CreateDeliveryStream. type CreateDeliveryStreamOutput struct { _ struct{} `type:"structure"` @@ -895,6 +967,12 @@ func (s CreateDeliveryStreamOutput) GoString() string { return s.String() } +// SetDeliveryStreamARN sets the DeliveryStreamARN field's value. +func (s *CreateDeliveryStreamOutput) SetDeliveryStreamARN(v string) *CreateDeliveryStreamOutput { + s.DeliveryStreamARN = &v + return s +} + // Contains the parameters for DeleteDeliveryStream. type DeleteDeliveryStreamInput struct { _ struct{} `type:"structure"` @@ -931,6 +1009,12 @@ func (s *DeleteDeliveryStreamInput) Validate() error { return nil } +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *DeleteDeliveryStreamInput) SetDeliveryStreamName(v string) *DeleteDeliveryStreamInput { + s.DeliveryStreamName = &v + return s +} + // Contains the output of DeleteDeliveryStream. type DeleteDeliveryStreamOutput struct { _ struct{} `type:"structure"` @@ -1001,6 +1085,54 @@ func (s DeliveryStreamDescription) GoString() string { return s.String() } +// SetCreateTimestamp sets the CreateTimestamp field's value. +func (s *DeliveryStreamDescription) SetCreateTimestamp(v time.Time) *DeliveryStreamDescription { + s.CreateTimestamp = &v + return s +} + +// SetDeliveryStreamARN sets the DeliveryStreamARN field's value. +func (s *DeliveryStreamDescription) SetDeliveryStreamARN(v string) *DeliveryStreamDescription { + s.DeliveryStreamARN = &v + return s +} + +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *DeliveryStreamDescription) SetDeliveryStreamName(v string) *DeliveryStreamDescription { + s.DeliveryStreamName = &v + return s +} + +// SetDeliveryStreamStatus sets the DeliveryStreamStatus field's value. +func (s *DeliveryStreamDescription) SetDeliveryStreamStatus(v string) *DeliveryStreamDescription { + s.DeliveryStreamStatus = &v + return s +} + +// SetDestinations sets the Destinations field's value. +func (s *DeliveryStreamDescription) SetDestinations(v []*DestinationDescription) *DeliveryStreamDescription { + s.Destinations = v + return s +} + +// SetHasMoreDestinations sets the HasMoreDestinations field's value. +func (s *DeliveryStreamDescription) SetHasMoreDestinations(v bool) *DeliveryStreamDescription { + s.HasMoreDestinations = &v + return s +} + +// SetLastUpdateTimestamp sets the LastUpdateTimestamp field's value. +func (s *DeliveryStreamDescription) SetLastUpdateTimestamp(v time.Time) *DeliveryStreamDescription { + s.LastUpdateTimestamp = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeliveryStreamDescription) SetVersionId(v string) *DeliveryStreamDescription { + s.VersionId = &v + return s +} + // Contains the parameters for DescribeDeliveryStream. type DescribeDeliveryStreamInput struct { _ struct{} `type:"structure"` @@ -1051,6 +1183,24 @@ func (s *DescribeDeliveryStreamInput) Validate() error { return nil } +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *DescribeDeliveryStreamInput) SetDeliveryStreamName(v string) *DescribeDeliveryStreamInput { + s.DeliveryStreamName = &v + return s +} + +// SetExclusiveStartDestinationId sets the ExclusiveStartDestinationId field's value. +func (s *DescribeDeliveryStreamInput) SetExclusiveStartDestinationId(v string) *DescribeDeliveryStreamInput { + s.ExclusiveStartDestinationId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeDeliveryStreamInput) SetLimit(v int64) *DescribeDeliveryStreamInput { + s.Limit = &v + return s +} + // Contains the output of DescribeDeliveryStream. type DescribeDeliveryStreamOutput struct { _ struct{} `type:"structure"` @@ -1071,6 +1221,12 @@ func (s DescribeDeliveryStreamOutput) GoString() string { return s.String() } +// SetDeliveryStreamDescription sets the DeliveryStreamDescription field's value. +func (s *DescribeDeliveryStreamOutput) SetDeliveryStreamDescription(v *DeliveryStreamDescription) *DescribeDeliveryStreamOutput { + s.DeliveryStreamDescription = v + return s +} + // Describes the destination for a delivery stream. type DestinationDescription struct { _ struct{} `type:"structure"` @@ -1100,6 +1256,30 @@ func (s DestinationDescription) GoString() string { return s.String() } +// SetDestinationId sets the DestinationId field's value. +func (s *DestinationDescription) SetDestinationId(v string) *DestinationDescription { + s.DestinationId = &v + return s +} + +// SetElasticsearchDestinationDescription sets the ElasticsearchDestinationDescription field's value. +func (s *DestinationDescription) SetElasticsearchDestinationDescription(v *ElasticsearchDestinationDescription) *DestinationDescription { + s.ElasticsearchDestinationDescription = v + return s +} + +// SetRedshiftDestinationDescription sets the RedshiftDestinationDescription field's value. +func (s *DestinationDescription) SetRedshiftDestinationDescription(v *RedshiftDestinationDescription) *DestinationDescription { + s.RedshiftDestinationDescription = v + return s +} + +// SetS3DestinationDescription sets the S3DestinationDescription field's value. +func (s *DestinationDescription) SetS3DestinationDescription(v *S3DestinationDescription) *DestinationDescription { + s.S3DestinationDescription = v + return s +} + // Describes the buffering to perform before delivering data to the Amazon ES // destination. type ElasticsearchBufferingHints struct { @@ -1144,6 +1324,18 @@ func (s *ElasticsearchBufferingHints) Validate() error { return nil } +// SetIntervalInSeconds sets the IntervalInSeconds field's value. +func (s *ElasticsearchBufferingHints) SetIntervalInSeconds(v int64) *ElasticsearchBufferingHints { + s.IntervalInSeconds = &v + return s +} + +// SetSizeInMBs sets the SizeInMBs field's value. +func (s *ElasticsearchBufferingHints) SetSizeInMBs(v int64) *ElasticsearchBufferingHints { + s.SizeInMBs = &v + return s +} + // Describes the configuration of a destination in Amazon ES. type ElasticsearchDestinationConfiguration struct { _ struct{} `type:"structure"` @@ -1262,6 +1454,66 @@ func (s *ElasticsearchDestinationConfiguration) Validate() error { return nil } +// SetBufferingHints sets the BufferingHints field's value. +func (s *ElasticsearchDestinationConfiguration) SetBufferingHints(v *ElasticsearchBufferingHints) *ElasticsearchDestinationConfiguration { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ElasticsearchDestinationConfiguration) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ElasticsearchDestinationConfiguration { + s.CloudWatchLoggingOptions = v + return s +} + +// SetDomainARN sets the DomainARN field's value. +func (s *ElasticsearchDestinationConfiguration) SetDomainARN(v string) *ElasticsearchDestinationConfiguration { + s.DomainARN = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ElasticsearchDestinationConfiguration) SetIndexName(v string) *ElasticsearchDestinationConfiguration { + s.IndexName = &v + return s +} + +// SetIndexRotationPeriod sets the IndexRotationPeriod field's value. +func (s *ElasticsearchDestinationConfiguration) SetIndexRotationPeriod(v string) *ElasticsearchDestinationConfiguration { + s.IndexRotationPeriod = &v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *ElasticsearchDestinationConfiguration) SetRetryOptions(v *ElasticsearchRetryOptions) *ElasticsearchDestinationConfiguration { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ElasticsearchDestinationConfiguration) SetRoleARN(v string) *ElasticsearchDestinationConfiguration { + s.RoleARN = &v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *ElasticsearchDestinationConfiguration) SetS3BackupMode(v string) *ElasticsearchDestinationConfiguration { + s.S3BackupMode = &v + return s +} + +// SetS3Configuration sets the S3Configuration field's value. +func (s *ElasticsearchDestinationConfiguration) SetS3Configuration(v *S3DestinationConfiguration) *ElasticsearchDestinationConfiguration { + s.S3Configuration = v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ElasticsearchDestinationConfiguration) SetTypeName(v string) *ElasticsearchDestinationConfiguration { + s.TypeName = &v + return s +} + // The destination description in Amazon ES. type ElasticsearchDestinationDescription struct { _ struct{} `type:"structure"` @@ -1307,6 +1559,66 @@ func (s ElasticsearchDestinationDescription) GoString() string { return s.String() } +// SetBufferingHints sets the BufferingHints field's value. +func (s *ElasticsearchDestinationDescription) SetBufferingHints(v *ElasticsearchBufferingHints) *ElasticsearchDestinationDescription { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ElasticsearchDestinationDescription) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ElasticsearchDestinationDescription { + s.CloudWatchLoggingOptions = v + return s +} + +// SetDomainARN sets the DomainARN field's value. +func (s *ElasticsearchDestinationDescription) SetDomainARN(v string) *ElasticsearchDestinationDescription { + s.DomainARN = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ElasticsearchDestinationDescription) SetIndexName(v string) *ElasticsearchDestinationDescription { + s.IndexName = &v + return s +} + +// SetIndexRotationPeriod sets the IndexRotationPeriod field's value. +func (s *ElasticsearchDestinationDescription) SetIndexRotationPeriod(v string) *ElasticsearchDestinationDescription { + s.IndexRotationPeriod = &v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *ElasticsearchDestinationDescription) SetRetryOptions(v *ElasticsearchRetryOptions) *ElasticsearchDestinationDescription { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ElasticsearchDestinationDescription) SetRoleARN(v string) *ElasticsearchDestinationDescription { + s.RoleARN = &v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *ElasticsearchDestinationDescription) SetS3BackupMode(v string) *ElasticsearchDestinationDescription { + s.S3BackupMode = &v + return s +} + +// SetS3DestinationDescription sets the S3DestinationDescription field's value. +func (s *ElasticsearchDestinationDescription) SetS3DestinationDescription(v *S3DestinationDescription) *ElasticsearchDestinationDescription { + s.S3DestinationDescription = v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ElasticsearchDestinationDescription) SetTypeName(v string) *ElasticsearchDestinationDescription { + s.TypeName = &v + return s +} + // Describes an update for a destination in Amazon ES. type ElasticsearchDestinationUpdate struct { _ struct{} `type:"structure"` @@ -1390,6 +1702,60 @@ func (s *ElasticsearchDestinationUpdate) Validate() error { return nil } +// SetBufferingHints sets the BufferingHints field's value. +func (s *ElasticsearchDestinationUpdate) SetBufferingHints(v *ElasticsearchBufferingHints) *ElasticsearchDestinationUpdate { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ElasticsearchDestinationUpdate) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ElasticsearchDestinationUpdate { + s.CloudWatchLoggingOptions = v + return s +} + +// SetDomainARN sets the DomainARN field's value. +func (s *ElasticsearchDestinationUpdate) SetDomainARN(v string) *ElasticsearchDestinationUpdate { + s.DomainARN = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ElasticsearchDestinationUpdate) SetIndexName(v string) *ElasticsearchDestinationUpdate { + s.IndexName = &v + return s +} + +// SetIndexRotationPeriod sets the IndexRotationPeriod field's value. +func (s *ElasticsearchDestinationUpdate) SetIndexRotationPeriod(v string) *ElasticsearchDestinationUpdate { + s.IndexRotationPeriod = &v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *ElasticsearchDestinationUpdate) SetRetryOptions(v *ElasticsearchRetryOptions) *ElasticsearchDestinationUpdate { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ElasticsearchDestinationUpdate) SetRoleARN(v string) *ElasticsearchDestinationUpdate { + s.RoleARN = &v + return s +} + +// SetS3Update sets the S3Update field's value. +func (s *ElasticsearchDestinationUpdate) SetS3Update(v *S3DestinationUpdate) *ElasticsearchDestinationUpdate { + s.S3Update = v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ElasticsearchDestinationUpdate) SetTypeName(v string) *ElasticsearchDestinationUpdate { + s.TypeName = &v + return s +} + // Configures retry behavior in the event that Firehose is unable to deliver // documents to Amazon ES. type ElasticsearchRetryOptions struct { @@ -1413,6 +1779,12 @@ func (s ElasticsearchRetryOptions) GoString() string { return s.String() } +// SetDurationInSeconds sets the DurationInSeconds field's value. +func (s *ElasticsearchRetryOptions) SetDurationInSeconds(v int64) *ElasticsearchRetryOptions { + s.DurationInSeconds = &v + return s +} + // Describes the encryption for a destination in Amazon S3. type EncryptionConfiguration struct { _ struct{} `type:"structure"` @@ -1450,6 +1822,18 @@ func (s *EncryptionConfiguration) Validate() error { return nil } +// SetKMSEncryptionConfig sets the KMSEncryptionConfig field's value. +func (s *EncryptionConfiguration) SetKMSEncryptionConfig(v *KMSEncryptionConfig) *EncryptionConfiguration { + s.KMSEncryptionConfig = v + return s +} + +// SetNoEncryptionConfig sets the NoEncryptionConfig field's value. +func (s *EncryptionConfiguration) SetNoEncryptionConfig(v string) *EncryptionConfiguration { + s.NoEncryptionConfig = &v + return s +} + // Describes an encryption key for a destination in Amazon S3. type KMSEncryptionConfig struct { _ struct{} `type:"structure"` @@ -1487,6 +1871,12 @@ func (s *KMSEncryptionConfig) Validate() error { return nil } +// SetAWSKMSKeyARN sets the AWSKMSKeyARN field's value. +func (s *KMSEncryptionConfig) SetAWSKMSKeyARN(v string) *KMSEncryptionConfig { + s.AWSKMSKeyARN = &v + return s +} + // Contains the parameters for ListDeliveryStreams. type ListDeliveryStreamsInput struct { _ struct{} `type:"structure"` @@ -1524,6 +1914,18 @@ func (s *ListDeliveryStreamsInput) Validate() error { return nil } +// SetExclusiveStartDeliveryStreamName sets the ExclusiveStartDeliveryStreamName field's value. +func (s *ListDeliveryStreamsInput) SetExclusiveStartDeliveryStreamName(v string) *ListDeliveryStreamsInput { + s.ExclusiveStartDeliveryStreamName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListDeliveryStreamsInput) SetLimit(v int64) *ListDeliveryStreamsInput { + s.Limit = &v + return s +} + // Contains the output of ListDeliveryStreams. type ListDeliveryStreamsOutput struct { _ struct{} `type:"structure"` @@ -1549,6 +1951,18 @@ func (s ListDeliveryStreamsOutput) GoString() string { return s.String() } +// SetDeliveryStreamNames sets the DeliveryStreamNames field's value. +func (s *ListDeliveryStreamsOutput) SetDeliveryStreamNames(v []*string) *ListDeliveryStreamsOutput { + s.DeliveryStreamNames = v + return s +} + +// SetHasMoreDeliveryStreams sets the HasMoreDeliveryStreams field's value. +func (s *ListDeliveryStreamsOutput) SetHasMoreDeliveryStreams(v bool) *ListDeliveryStreamsOutput { + s.HasMoreDeliveryStreams = &v + return s +} + // Contains the parameters for PutRecordBatch. type PutRecordBatchInput struct { _ struct{} `type:"structure"` @@ -1606,6 +2020,18 @@ func (s *PutRecordBatchInput) Validate() error { return nil } +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *PutRecordBatchInput) SetDeliveryStreamName(v string) *PutRecordBatchInput { + s.DeliveryStreamName = &v + return s +} + +// SetRecords sets the Records field's value. +func (s *PutRecordBatchInput) SetRecords(v []*Record) *PutRecordBatchInput { + s.Records = v + return s +} + // Contains the output of PutRecordBatch. type PutRecordBatchOutput struct { _ struct{} `type:"structure"` @@ -1632,6 +2058,18 @@ func (s PutRecordBatchOutput) GoString() string { return s.String() } +// SetFailedPutCount sets the FailedPutCount field's value. +func (s *PutRecordBatchOutput) SetFailedPutCount(v int64) *PutRecordBatchOutput { + s.FailedPutCount = &v + return s +} + +// SetRequestResponses sets the RequestResponses field's value. +func (s *PutRecordBatchOutput) SetRequestResponses(v []*PutRecordBatchResponseEntry) *PutRecordBatchOutput { + s.RequestResponses = v + return s +} + // Contains the result for an individual record from a PutRecordBatch request. // If the record is successfully added to your delivery stream, it receives // a record ID. If the record fails to be added to your delivery stream, the @@ -1659,6 +2097,24 @@ func (s PutRecordBatchResponseEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *PutRecordBatchResponseEntry) SetErrorCode(v string) *PutRecordBatchResponseEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PutRecordBatchResponseEntry) SetErrorMessage(v string) *PutRecordBatchResponseEntry { + s.ErrorMessage = &v + return s +} + +// SetRecordId sets the RecordId field's value. +func (s *PutRecordBatchResponseEntry) SetRecordId(v string) *PutRecordBatchResponseEntry { + s.RecordId = &v + return s +} + // Contains the parameters for PutRecord. type PutRecordInput struct { _ struct{} `type:"structure"` @@ -1708,6 +2164,18 @@ func (s *PutRecordInput) Validate() error { return nil } +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *PutRecordInput) SetDeliveryStreamName(v string) *PutRecordInput { + s.DeliveryStreamName = &v + return s +} + +// SetRecord sets the Record field's value. +func (s *PutRecordInput) SetRecord(v *Record) *PutRecordInput { + s.Record = v + return s +} + // Contains the output of PutRecord. type PutRecordOutput struct { _ struct{} `type:"structure"` @@ -1728,6 +2196,12 @@ func (s PutRecordOutput) GoString() string { return s.String() } +// SetRecordId sets the RecordId field's value. +func (s *PutRecordOutput) SetRecordId(v string) *PutRecordOutput { + s.RecordId = &v + return s +} + // The unit of data in a delivery stream. type Record struct { _ struct{} `type:"structure"` @@ -1764,6 +2238,12 @@ func (s *Record) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *Record) SetData(v []byte) *Record { + s.Data = v + return s +} + // Describes the configuration of a destination in Amazon Redshift. type RedshiftDestinationConfiguration struct { _ struct{} `type:"structure"` @@ -1871,6 +2351,54 @@ func (s *RedshiftDestinationConfiguration) Validate() error { return nil } +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *RedshiftDestinationConfiguration) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *RedshiftDestinationConfiguration { + s.CloudWatchLoggingOptions = v + return s +} + +// SetClusterJDBCURL sets the ClusterJDBCURL field's value. +func (s *RedshiftDestinationConfiguration) SetClusterJDBCURL(v string) *RedshiftDestinationConfiguration { + s.ClusterJDBCURL = &v + return s +} + +// SetCopyCommand sets the CopyCommand field's value. +func (s *RedshiftDestinationConfiguration) SetCopyCommand(v *CopyCommand) *RedshiftDestinationConfiguration { + s.CopyCommand = v + return s +} + +// SetPassword sets the Password field's value. +func (s *RedshiftDestinationConfiguration) SetPassword(v string) *RedshiftDestinationConfiguration { + s.Password = &v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *RedshiftDestinationConfiguration) SetRetryOptions(v *RedshiftRetryOptions) *RedshiftDestinationConfiguration { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *RedshiftDestinationConfiguration) SetRoleARN(v string) *RedshiftDestinationConfiguration { + s.RoleARN = &v + return s +} + +// SetS3Configuration sets the S3Configuration field's value. +func (s *RedshiftDestinationConfiguration) SetS3Configuration(v *S3DestinationConfiguration) *RedshiftDestinationConfiguration { + s.S3Configuration = v + return s +} + +// SetUsername sets the Username field's value. +func (s *RedshiftDestinationConfiguration) SetUsername(v string) *RedshiftDestinationConfiguration { + s.Username = &v + return s +} + // Describes a destination in Amazon Redshift. type RedshiftDestinationDescription struct { _ struct{} `type:"structure"` @@ -1918,6 +2446,48 @@ func (s RedshiftDestinationDescription) GoString() string { return s.String() } +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *RedshiftDestinationDescription) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *RedshiftDestinationDescription { + s.CloudWatchLoggingOptions = v + return s +} + +// SetClusterJDBCURL sets the ClusterJDBCURL field's value. +func (s *RedshiftDestinationDescription) SetClusterJDBCURL(v string) *RedshiftDestinationDescription { + s.ClusterJDBCURL = &v + return s +} + +// SetCopyCommand sets the CopyCommand field's value. +func (s *RedshiftDestinationDescription) SetCopyCommand(v *CopyCommand) *RedshiftDestinationDescription { + s.CopyCommand = v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *RedshiftDestinationDescription) SetRetryOptions(v *RedshiftRetryOptions) *RedshiftDestinationDescription { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *RedshiftDestinationDescription) SetRoleARN(v string) *RedshiftDestinationDescription { + s.RoleARN = &v + return s +} + +// SetS3DestinationDescription sets the S3DestinationDescription field's value. +func (s *RedshiftDestinationDescription) SetS3DestinationDescription(v *S3DestinationDescription) *RedshiftDestinationDescription { + s.S3DestinationDescription = v + return s +} + +// SetUsername sets the Username field's value. +func (s *RedshiftDestinationDescription) SetUsername(v string) *RedshiftDestinationDescription { + s.Username = &v + return s +} + // Describes an update for a destination in Amazon Redshift. type RedshiftDestinationUpdate struct { _ struct{} `type:"structure"` @@ -1994,6 +2564,54 @@ func (s *RedshiftDestinationUpdate) Validate() error { return nil } +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *RedshiftDestinationUpdate) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *RedshiftDestinationUpdate { + s.CloudWatchLoggingOptions = v + return s +} + +// SetClusterJDBCURL sets the ClusterJDBCURL field's value. +func (s *RedshiftDestinationUpdate) SetClusterJDBCURL(v string) *RedshiftDestinationUpdate { + s.ClusterJDBCURL = &v + return s +} + +// SetCopyCommand sets the CopyCommand field's value. +func (s *RedshiftDestinationUpdate) SetCopyCommand(v *CopyCommand) *RedshiftDestinationUpdate { + s.CopyCommand = v + return s +} + +// SetPassword sets the Password field's value. +func (s *RedshiftDestinationUpdate) SetPassword(v string) *RedshiftDestinationUpdate { + s.Password = &v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *RedshiftDestinationUpdate) SetRetryOptions(v *RedshiftRetryOptions) *RedshiftDestinationUpdate { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *RedshiftDestinationUpdate) SetRoleARN(v string) *RedshiftDestinationUpdate { + s.RoleARN = &v + return s +} + +// SetS3Update sets the S3Update field's value. +func (s *RedshiftDestinationUpdate) SetS3Update(v *S3DestinationUpdate) *RedshiftDestinationUpdate { + s.S3Update = v + return s +} + +// SetUsername sets the Username field's value. +func (s *RedshiftDestinationUpdate) SetUsername(v string) *RedshiftDestinationUpdate { + s.Username = &v + return s +} + // Configures retry behavior in the event that Firehose is unable to deliver // documents to Amazon Redshift. type RedshiftRetryOptions struct { @@ -2017,6 +2635,12 @@ func (s RedshiftRetryOptions) GoString() string { return s.String() } +// SetDurationInSeconds sets the DurationInSeconds field's value. +func (s *RedshiftRetryOptions) SetDurationInSeconds(v int64) *RedshiftRetryOptions { + s.DurationInSeconds = &v + return s +} + // Describes the configuration of a destination in Amazon S3. type S3DestinationConfiguration struct { _ struct{} `type:"structure"` @@ -2100,6 +2724,48 @@ func (s *S3DestinationConfiguration) Validate() error { return nil } +// SetBucketARN sets the BucketARN field's value. +func (s *S3DestinationConfiguration) SetBucketARN(v string) *S3DestinationConfiguration { + s.BucketARN = &v + return s +} + +// SetBufferingHints sets the BufferingHints field's value. +func (s *S3DestinationConfiguration) SetBufferingHints(v *BufferingHints) *S3DestinationConfiguration { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *S3DestinationConfiguration) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *S3DestinationConfiguration { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *S3DestinationConfiguration) SetCompressionFormat(v string) *S3DestinationConfiguration { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *S3DestinationConfiguration) SetEncryptionConfiguration(v *EncryptionConfiguration) *S3DestinationConfiguration { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *S3DestinationConfiguration) SetPrefix(v string) *S3DestinationConfiguration { + s.Prefix = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *S3DestinationConfiguration) SetRoleARN(v string) *S3DestinationConfiguration { + s.RoleARN = &v + return s +} + // Describes a destination in Amazon S3. type S3DestinationDescription struct { _ struct{} `type:"structure"` @@ -2153,6 +2819,48 @@ func (s S3DestinationDescription) GoString() string { return s.String() } +// SetBucketARN sets the BucketARN field's value. +func (s *S3DestinationDescription) SetBucketARN(v string) *S3DestinationDescription { + s.BucketARN = &v + return s +} + +// SetBufferingHints sets the BufferingHints field's value. +func (s *S3DestinationDescription) SetBufferingHints(v *BufferingHints) *S3DestinationDescription { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *S3DestinationDescription) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *S3DestinationDescription { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *S3DestinationDescription) SetCompressionFormat(v string) *S3DestinationDescription { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *S3DestinationDescription) SetEncryptionConfiguration(v *EncryptionConfiguration) *S3DestinationDescription { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *S3DestinationDescription) SetPrefix(v string) *S3DestinationDescription { + s.Prefix = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *S3DestinationDescription) SetRoleARN(v string) *S3DestinationDescription { + s.RoleARN = &v + return s +} + // Describes an update for a destination in Amazon S3. type S3DestinationUpdate struct { _ struct{} `type:"structure"` @@ -2226,6 +2934,48 @@ func (s *S3DestinationUpdate) Validate() error { return nil } +// SetBucketARN sets the BucketARN field's value. +func (s *S3DestinationUpdate) SetBucketARN(v string) *S3DestinationUpdate { + s.BucketARN = &v + return s +} + +// SetBufferingHints sets the BufferingHints field's value. +func (s *S3DestinationUpdate) SetBufferingHints(v *BufferingHints) *S3DestinationUpdate { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *S3DestinationUpdate) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *S3DestinationUpdate { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *S3DestinationUpdate) SetCompressionFormat(v string) *S3DestinationUpdate { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *S3DestinationUpdate) SetEncryptionConfiguration(v *EncryptionConfiguration) *S3DestinationUpdate { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *S3DestinationUpdate) SetPrefix(v string) *S3DestinationUpdate { + s.Prefix = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *S3DestinationUpdate) SetRoleARN(v string) *S3DestinationUpdate { + s.RoleARN = &v + return s +} + // Contains the parameters for UpdateDestination. type UpdateDestinationInput struct { _ struct{} `type:"structure"` @@ -2313,6 +3063,42 @@ func (s *UpdateDestinationInput) Validate() error { return nil } +// SetCurrentDeliveryStreamVersionId sets the CurrentDeliveryStreamVersionId field's value. +func (s *UpdateDestinationInput) SetCurrentDeliveryStreamVersionId(v string) *UpdateDestinationInput { + s.CurrentDeliveryStreamVersionId = &v + return s +} + +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *UpdateDestinationInput) SetDeliveryStreamName(v string) *UpdateDestinationInput { + s.DeliveryStreamName = &v + return s +} + +// SetDestinationId sets the DestinationId field's value. +func (s *UpdateDestinationInput) SetDestinationId(v string) *UpdateDestinationInput { + s.DestinationId = &v + return s +} + +// SetElasticsearchDestinationUpdate sets the ElasticsearchDestinationUpdate field's value. +func (s *UpdateDestinationInput) SetElasticsearchDestinationUpdate(v *ElasticsearchDestinationUpdate) *UpdateDestinationInput { + s.ElasticsearchDestinationUpdate = v + return s +} + +// SetRedshiftDestinationUpdate sets the RedshiftDestinationUpdate field's value. +func (s *UpdateDestinationInput) SetRedshiftDestinationUpdate(v *RedshiftDestinationUpdate) *UpdateDestinationInput { + s.RedshiftDestinationUpdate = v + return s +} + +// SetS3DestinationUpdate sets the S3DestinationUpdate field's value. +func (s *UpdateDestinationInput) SetS3DestinationUpdate(v *S3DestinationUpdate) *UpdateDestinationInput { + s.S3DestinationUpdate = v + return s +} + // Contains the output of UpdateDestination. type UpdateDestinationOutput struct { _ struct{} `type:"structure"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go index fd3d333ec..378c62571 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go @@ -69,14 +69,14 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) // // This operation is idempotent. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Working with -// Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) +// For conceptual information and underlying REST API, go to Working with Archives +// in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) // and Abort Multipart Upload (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-abort-upload.html) // in the Amazon Glacier Developer Guide. // @@ -346,9 +346,9 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI // upload. It includes checksum information for each uploaded part that can // be used to debug a bad checksum issue. // -// Additionally, Amazon Glacier also checks for any missing content ranges -// when assembling the archive, if missing content ranges are found, Amazon -// Glacier returns an error and the operation fails. +// Additionally, Amazon Glacier also checks for any missing content ranges when +// assembling the archive, if missing content ranges are found, Amazon Glacier +// returns an error and the operation fails. // // Complete Multipart Upload is an idempotent operation. After your first successful // complete multipart upload, if you call the operation again within a short @@ -361,13 +361,13 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI // appear in List Multipart Uploads response, even if idempotent complete is // possible. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Uploading Large +// For conceptual information and underlying REST API, go to Uploading Large // Archives in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) // and Complete Multipart Upload (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-complete-upload.html) // in the Amazon Glacier Developer Guide. @@ -541,20 +541,20 @@ func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Requ // // You must use the following guidelines when naming a vault. // -// Names can be between 1 and 255 characters long. +// Names can be between 1 and 255 characters long. // -// Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), -// and '.' (period). +// Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), and +// '.' (period). // -// This operation is idempotent. +// This operation is idempotent. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Creating a Vault +// For conceptual information and underlying REST API, go to Creating a Vault // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/creating-vaults.html) // and Create Vault (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-put.html) // in the Amazon Glacier Developer Guide. @@ -636,20 +636,22 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request. // a retrieval of this archive will fail. Archive retrievals that are in progress // for this archive ID may or may not succeed according to the following scenarios: // -// If the archive retrieval job is actively preparing the data for download -// when Amazon Glacier receives the delete archive request, the archival retrieval -// operation might fail. If the archive retrieval job has successfully prepared -// the archive for download when Amazon Glacier receives the delete archive -// request, you will be able to download the output. This operation is idempotent. -// Attempting to delete an already-deleted archive does not result in an error. +// * If the archive retrieval job is actively preparing the data for download +// when Amazon Glacier receives the delete archive request, the archival +// retrieval operation might fail. +// * If the archive retrieval job has successfully prepared the archive for +// download when Amazon Glacier receives the delete archive request, you +// will be able to download the output. +// This operation is idempotent. Attempting to delete an already-deleted archive +// does not result in an error. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Deleting an Archive +// For conceptual information and underlying REST API, go to Deleting an Archive // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-an-archive.html) // and Delete Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-delete.html) // in the Amazon Glacier Developer Guide. @@ -741,13 +743,13 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ // // This operation is idempotent. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Deleting a Vault +// For conceptual information and underlying REST API, go to Deleting a Vault // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-vaults.html) // and Delete Vault (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-delete.html) // in the Amazon Glacier Developer Guide. @@ -916,13 +918,13 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification // Amazon Glacier to completely disable the notifications and you might still // receive some notifications for a short time after you send the delete request. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Configuring Vault +// For conceptual information and underlying REST API, go to Configuring Vault // Notifications in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html) // and Delete Vault Notification Configuration (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-delete.html) // in the Amazon Glacier Developer Guide. @@ -1004,21 +1006,21 @@ func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Requ // status code/message and the Amazon SNS topic to notify after Amazon Glacier // completes the job. For more information about initiating a job, see InitiateJob. // -// This operation enables you to check the status of your job. However, it -// is strongly recommended that you set up an Amazon SNS topic and specify it -// in your initiate job request so that Amazon Glacier can notify the topic -// after it completes the job. +// This operation enables you to check the status of your job. However, it is +// strongly recommended that you set up an Amazon SNS topic and specify it in +// your initiate job request so that Amazon Glacier can notify the topic after +// it completes the job. // // A job ID will not expire for at least 24 hours after Amazon Glacier completes // the job. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For information about the underlying REST API, go to Working with Archives +// For information about the underlying REST API, go to Working with Archives // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-describe-job-get.html) // in the Amazon Glacier Developer Guide. // @@ -1104,8 +1106,8 @@ func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request. // Amazon Glacier generates vault inventories approximately daily. For more // information, see Downloading a Vault Inventory in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html). // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -1274,27 +1276,27 @@ func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Re // of data at a time, which is a total of eight Get Job Output requests. You // use the following process to download the job output: // -// Download a 128 MB chunk of output by specifying the appropriate byte range +// Download a 128 MB chunk of output by specifying the appropriate byte range // using the Range header. // -// Along with the data, the response includes a SHA256 tree hash of the payload. +// Along with the data, the response includes a SHA256 tree hash of the payload. // You compute the checksum of the payload on the client and compare it with // the checksum you received in the response to ensure you received all the // expected data. // -// Repeat steps 1 and 2 for all the eight 128 MB chunks of output data, each +// Repeat steps 1 and 2 for all the eight 128 MB chunks of output data, each // time specifying the appropriate byte range. // -// After downloading all the parts of the job output, you have a list of -// eight checksum values. Compute the tree hash of these values to find the -// checksum of the entire output. Using the DescribeJob API, obtain job information -// of the job that provided you the output. The response includes the checksum +// After downloading all the parts of the job output, you have a list of eight +// checksum values. Compute the tree hash of these values to find the checksum +// of the entire output. Using the DescribeJob API, obtain job information of +// the job that provided you the output. The response includes the checksum // of the entire archive stored in Amazon Glacier. You compare this value with // the checksum you computed to ensure you have downloaded the entire archive // content with no errors. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -1456,16 +1458,16 @@ func (c *Glacier) GetVaultLockRequest(input *GetVaultLockInput) (req *request.Re // GetVaultLock API operation for Amazon Glacier. // // This operation retrieves the following attributes from the lock-policy subresource -// set on the specified vault: The vault lock policy set on the vault. +// set on the specified vault: The vault lock policy set on the vault. // -// The state of the vault lock, which is either InProgess or Locked. +// The state of the vault lock, which is either InProgess or Locked. // -// When the lock ID expires. The lock ID is used to complete the vault locking +// When the lock ID expires. The lock ID is used to complete the vault locking // process. // -// When the vault lock was initiated and put into the InProgress state. +// When the vault lock was initiated and put into the InProgress state. // -// A vault lock is put into the InProgress state by calling InitiateVaultLock. +// A vault lock is put into the InProgress state by calling InitiateVaultLock. // A vault lock is put into the Locked state by calling CompleteVaultLock. You // can abort the vault locking process by calling AbortVaultLock. For more information // about the vault locking process, Amazon Glacier Vault Lock (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html). @@ -1555,8 +1557,8 @@ func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput // vault notifications, see Configuring Vault Notifications in Amazon Glacier // (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html). // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -1644,7 +1646,7 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // // Retrieving data from Amazon Glacier is a two-step process: // -// Initiate a retrieval job. +// Initiate a retrieval job. // // A data retrieval policy can cause your initiate retrieval job request to // fail with a PolicyEnforcedException exception. For more information about @@ -1652,9 +1654,9 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // For more information about the PolicyEnforcedException exception, see Error // Responses (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-error-responses.html). // -// After the job completes, download the bytes. +// After the job completes, download the bytes. // -// The retrieval request is executed asynchronously. When you initiate a retrieval +// The retrieval request is executed asynchronously. When you initiate a retrieval // job, Amazon Glacier creates a job and returns a job ID in the response. When // Amazon Glacier completes the job, you can get the job output (archive or // inventory data). For information about getting job output, see GetJobOutput @@ -1663,35 +1665,35 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // The job must complete before you can get its output. To determine when a // job is complete, you have the following options: // -// Use Amazon SNS Notification You can specify an Amazon Simple Notification -// Service (Amazon SNS) topic to which Amazon Glacier can post a notification -// after the job is completed. You can specify an SNS topic per job request. -// The notification is sent only after Amazon Glacier completes the job. In -// addition to specifying an SNS topic per job request, you can configure vault -// notifications for a vault so that job notifications are always sent. For -// more information, see SetVaultNotifications. +// * Use Amazon SNS Notification You can specify an Amazon Simple Notification +// Service (Amazon SNS) topic to which Amazon Glacier can post a notification +// after the job is completed. You can specify an SNS topic per job request. +// The notification is sent only after Amazon Glacier completes the job. +// In addition to specifying an SNS topic per job request, you can configure +// vault notifications for a vault so that job notifications are always sent. +// For more information, see SetVaultNotifications. // -// Get job details You can make a DescribeJob request to obtain job status -// information while a job is in progress. However, it is more efficient to -// use an Amazon SNS notification to determine when a job is complete. +// * Get job details You can make a DescribeJob request to obtain job status +// information while a job is in progress. However, it is more efficient +// to use an Amazon SNS notification to determine when a job is complete. // -// The information you get via notification is same that you get by calling +// The information you get via notification is same that you get by calling // DescribeJob. // -// If for a specific event, you add both the notification configuration on -// the vault and also specify an SNS topic in your initiate job request, Amazon +// If for a specific event, you add both the notification configuration on the +// vault and also specify an SNS topic in your initiate job request, Amazon // Glacier sends both notifications. For more information, see SetVaultNotifications. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // // About the Vault Inventory // -// Amazon Glacier prepares an inventory for each vault periodically, every -// 24 hours. When you initiate a job for a vault inventory, Amazon Glacier returns +// Amazon Glacier prepares an inventory for each vault periodically, every 24 +// hours. When you initiate a job for a vault inventory, Amazon Glacier returns // the last inventory for the vault. The inventory data you get might be up // to a day or two days old. Also, the initiate inventory job might take some // time to complete before you can download the vault inventory. So you do not @@ -1711,13 +1713,13 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // // Filtering by Archive Creation Date // -// You can retrieve inventory items for archives created between StartDate -// and EndDate by specifying values for these parameters in the InitiateJob -// request. Archives created on or after the StartDate and before the EndDate -// will be returned. If you only provide the StartDate without the EndDate, -// you will retrieve the inventory for all archives created on or after the -// StartDate. If you only provide the EndDate without the StartDate, you will -// get back the inventory for all archives created before the EndDate. +// You can retrieve inventory items for archives created between StartDate and +// EndDate by specifying values for these parameters in the InitiateJob request. +// Archives created on or after the StartDate and before the EndDate will be +// returned. If you only provide the StartDate without the EndDate, you will +// retrieve the inventory for all archives created on or after the StartDate. +// If you only provide the EndDate without the StartDate, you will get back +// the inventory for all archives created before the EndDate. // // Limiting Inventory Items per Retrieval // @@ -1736,8 +1738,8 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // // About Ranged Archive Retrieval // -// You can initiate an archive retrieval for the whole archive or a range -// of the archive. In the case of ranged archive retrieval, you specify a byte +// You can initiate an archive retrieval for the whole archive or a range of +// the archive. In the case of ranged archive retrieval, you specify a byte // range to return or the whole archive. The range specified must be megabyte // (MB) aligned, that is the range start value must be divisible by 1 MB and // range end value plus 1 must be divisible by 1 MB or equal the end of the @@ -1745,8 +1747,8 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // returns a 400 response. Furthermore, to ensure you get checksum values for // data you download using Get Job Output API, the range must be tree hash aligned. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -1856,8 +1858,8 @@ func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadI // upload resource if you cancel the multipart upload or it may be removed if // there is no activity for a period of 24 hours. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -1940,15 +1942,15 @@ func (c *Glacier) InitiateVaultLockRequest(input *InitiateVaultLockInput) (req * // InitiateVaultLock API operation for Amazon Glacier. // // This operation initiates the vault locking process by doing the following: -// Installing a vault lock policy on the specified vault. +// Installing a vault lock policy on the specified vault. // -// Setting the lock state of vault lock to InProgress. +// Setting the lock state of vault lock to InProgress. // -// Returning a lock ID, which is used to complete the vault locking process. +// Returning a lock ID, which is used to complete the vault locking process. // -// You can set one vault lock policy for each vault and this policy can -// be up to 20 KB in size. For more information about vault lock policies, see -// Amazon Glacier Access Control with Vault Lock Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html). +// You can set one vault lock policy for each vault and this policy can be up +// to 20 KB in size. For more information about vault lock policies, see Amazon +// Glacier Access Control with Vault Lock Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html). // // You must complete the vault locking process within 24 hours after the vault // lock enters the InProgress state. After the 24 hour window ends, the lock @@ -2079,8 +2081,8 @@ func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, o // a specified status are returned. The completed parameter allows you to specify // that only jobs in a specific completion state are returned. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -2210,8 +2212,8 @@ func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) // and does not require a multipart upload ID. The List Parts operation requires // a multipart upload ID since parts are associated with a single upload. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -2338,8 +2340,8 @@ func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, // from a previous List Parts request. You can also limit the number of parts // returned in the response by specifying the limit parameter in the request. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -2531,17 +2533,16 @@ func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Reques // This operation lists all vaults owned by the calling user's account. The // list returned in the response is ASCII-sorted by vault name. // -// By default, this operation returns up to 1,000 items. If there are more -// vaults to list, the response marker field contains the vault Amazon Resource -// Name (ARN) at which to continue the list with a new List Vaults request; -// otherwise, the marker field is null. To return a list of vaults that begins -// at a specific vault, set the marker request parameter to the vault ARN you -// obtained from a previous List Vaults request. You can also limit the number -// of vaults returned in the response by specifying the limit parameter in the -// request. +// By default, this operation returns up to 1,000 items. If there are more vaults +// to list, the response marker field contains the vault Amazon Resource Name +// (ARN) at which to continue the list with a new List Vaults request; otherwise, +// the marker field is null. To return a list of vaults that begins at a specific +// vault, set the marker request parameter to the vault ARN you obtained from +// a previous List Vaults request. You can also limit the number of vaults returned +// in the response by specifying the limit parameter in the request. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). @@ -2902,18 +2903,19 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput // notifications to the topic. You can configure a vault to publish a notification // for the following vault events: // -// ArchiveRetrievalCompleted This event occurs when a job that was initiated -// for an archive retrieval is completed (InitiateJob). The status of the completed -// job can be "Succeeded" or "Failed". The notification sent to the SNS topic -// is the same output as returned from DescribeJob. InventoryRetrievalCompleted -// This event occurs when a job that was initiated for an inventory retrieval -// is completed (InitiateJob). The status of the completed job can be "Succeeded" -// or "Failed". The notification sent to the SNS topic is the same output as -// returned from DescribeJob. An AWS account has full permission to perform -// all operations (actions). However, AWS Identity and Access Management (IAM) -// users don't have any permissions by default. You must grant them explicit -// permission to perform specific actions. For more information, see Access -// Control Using AWS Identity and Access Management (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). +// * ArchiveRetrievalCompleted This event occurs when a job that was initiated +// for an archive retrieval is completed (InitiateJob). The status of the +// completed job can be "Succeeded" or "Failed". The notification sent to +// the SNS topic is the same output as returned from DescribeJob. +// * InventoryRetrievalCompleted This event occurs when a job that was initiated +// for an inventory retrieval is completed (InitiateJob). The status of the +// completed job can be "Succeeded" or "Failed". The notification sent to +// the SNS topic is the same output as returned from DescribeJob. +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions +// by default. You must grant them explicit permission to perform specific actions. +// For more information, see Access Control Using AWS Identity and Access Management +// (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // // For conceptual information and underlying REST API, go to Configuring Vault // Notifications in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html) @@ -3018,14 +3020,14 @@ func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request. // Archives are immutable. After you upload an archive, you cannot edit the // archive or its description. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Uploading an -// Archive in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-an-archive.html) +// For conceptual information and underlying REST API, go to Uploading an Archive +// in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-an-archive.html) // and Upload Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html) // in the Amazon Glacier Developer Guide. // @@ -3109,42 +3111,44 @@ func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (r // in any order. You can also upload them in parallel. You can upload up to // 10,000 parts for a multipart upload. // -// Amazon Glacier rejects your upload part request if any of the following -// conditions is true: +// Amazon Glacier rejects your upload part request if any of the following conditions +// is true: // -// SHA256 tree hash does not matchTo ensure that part data is not corrupted -// in transmission, you compute a SHA256 tree hash of the part and include it -// in your request. Upon receiving the part data, Amazon Glacier also computes -// a SHA256 tree hash. If these hash values don't match, the operation fails. -// For information about computing a SHA256 tree hash, see Computing Checksums -// (http://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html). +// * SHA256 tree hash does not matchTo ensure that part data is not corrupted +// in transmission, you compute a SHA256 tree hash of the part and include +// it in your request. Upon receiving the part data, Amazon Glacier also +// computes a SHA256 tree hash. If these hash values don't match, the operation +// fails. For information about computing a SHA256 tree hash, see Computing +// Checksums (http://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html). // -// Part size does not matchThe size of each part except the last must match -// the size specified in the corresponding InitiateMultipartUpload request. -// The size of the last part must be the same size as, or smaller than, the -// specified size. +// * Part size does not matchThe size of each part except the last must match +// the size specified in the corresponding InitiateMultipartUpload request. +// The size of the last part must be the same size as, or smaller than, the +// specified size. // // If you upload a part whose size is smaller than the part size you specified -// in your initiate multipart upload request and that part is not the last part, -// then the upload part request will succeed. However, the subsequent Complete -// Multipart Upload request will fail. +// in your initiate multipart upload request and that part is not the last +// part, then the upload part request will succeed. However, the subsequent +// Complete Multipart Upload request will fail. // -// Range does not alignThe byte range value in the request does not align -// with the part size specified in the corresponding initiate request. For example, -// if you specify a part size of 4194304 bytes (4 MB), then 0 to 4194303 bytes -// (4 MB - 1) and 4194304 (4 MB) to 8388607 (8 MB - 1) are valid part ranges. -// However, if you set a range value of 2 MB to 6 MB, the range does not align -// with the part size and the upload will fail. This operation is idempotent. -// If you upload the same part multiple times, the data included in the most -// recent request overwrites the previously uploaded data. +// * Range does not alignThe byte range value in the request does not align +// with the part size specified in the corresponding initiate request. For +// example, if you specify a part size of 4194304 bytes (4 MB), then 0 to +// 4194303 bytes (4 MB - 1) and 4194304 (4 MB) to 8388607 (8 MB - 1) are +// valid part ranges. However, if you set a range value of 2 MB to 6 MB, +// the range does not align with the part size and the upload will fail. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// This operation is idempotent. If you upload the same part multiple times, +// the data included in the most recent request overwrites the previously uploaded +// data. +// +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Uploading Large +// For conceptual information and underlying REST API, go to Uploading Large // Archives in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) // and Upload Part (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-upload-part.html) // in the Amazon Glacier Developer Guide. @@ -3238,6 +3242,24 @@ func (s *AbortMultipartUploadInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *AbortMultipartUploadInput) SetAccountId(v string) *AbortMultipartUploadInput { + s.AccountId = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *AbortMultipartUploadInput) SetUploadId(v string) *AbortMultipartUploadInput { + s.UploadId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *AbortMultipartUploadInput) SetVaultName(v string) *AbortMultipartUploadInput { + s.VaultName = &v + return s +} + type AbortMultipartUploadOutput struct { _ struct{} `type:"structure"` } @@ -3298,6 +3320,18 @@ func (s *AbortVaultLockInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *AbortVaultLockInput) SetAccountId(v string) *AbortVaultLockInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *AbortVaultLockInput) SetVaultName(v string) *AbortVaultLockInput { + s.VaultName = &v + return s +} + type AbortVaultLockOutput struct { _ struct{} `type:"structure"` } @@ -3361,6 +3395,24 @@ func (s *AddTagsToVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *AddTagsToVaultInput) SetAccountId(v string) *AddTagsToVaultInput { + s.AccountId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToVaultInput) SetTags(v map[string]*string) *AddTagsToVaultInput { + s.Tags = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *AddTagsToVaultInput) SetVaultName(v string) *AddTagsToVaultInput { + s.VaultName = &v + return s +} + type AddTagsToVaultOutput struct { _ struct{} `type:"structure"` } @@ -3403,6 +3455,24 @@ func (s ArchiveCreationOutput) GoString() string { return s.String() } +// SetArchiveId sets the ArchiveId field's value. +func (s *ArchiveCreationOutput) SetArchiveId(v string) *ArchiveCreationOutput { + s.ArchiveId = &v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *ArchiveCreationOutput) SetChecksum(v string) *ArchiveCreationOutput { + s.Checksum = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *ArchiveCreationOutput) SetLocation(v string) *ArchiveCreationOutput { + s.Location = &v + return s +} + // Provides options to complete a multipart upload operation. This informs Amazon // Glacier that all the archive parts have been uploaded and Amazon Glacier // can now assemble the archive from the uploaded parts. After assembling and @@ -3470,6 +3540,36 @@ func (s *CompleteMultipartUploadInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *CompleteMultipartUploadInput) SetAccountId(v string) *CompleteMultipartUploadInput { + s.AccountId = &v + return s +} + +// SetArchiveSize sets the ArchiveSize field's value. +func (s *CompleteMultipartUploadInput) SetArchiveSize(v string) *CompleteMultipartUploadInput { + s.ArchiveSize = &v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *CompleteMultipartUploadInput) SetChecksum(v string) *CompleteMultipartUploadInput { + s.Checksum = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartUploadInput { + s.UploadId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *CompleteMultipartUploadInput) SetVaultName(v string) *CompleteMultipartUploadInput { + s.VaultName = &v + return s +} + // The input values for CompleteVaultLock. type CompleteVaultLockInput struct { _ struct{} `type:"structure"` @@ -3524,6 +3624,24 @@ func (s *CompleteVaultLockInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *CompleteVaultLockInput) SetAccountId(v string) *CompleteVaultLockInput { + s.AccountId = &v + return s +} + +// SetLockId sets the LockId field's value. +func (s *CompleteVaultLockInput) SetLockId(v string) *CompleteVaultLockInput { + s.LockId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *CompleteVaultLockInput) SetVaultName(v string) *CompleteVaultLockInput { + s.VaultName = &v + return s +} + type CompleteVaultLockOutput struct { _ struct{} `type:"structure"` } @@ -3584,6 +3702,18 @@ func (s *CreateVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *CreateVaultInput) SetAccountId(v string) *CreateVaultInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *CreateVaultInput) SetVaultName(v string) *CreateVaultInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type CreateVaultOutput struct { _ struct{} `type:"structure"` @@ -3602,6 +3732,12 @@ func (s CreateVaultOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateVaultOutput) SetLocation(v string) *CreateVaultOutput { + s.Location = &v + return s +} + // Data retrieval policy. type DataRetrievalPolicy struct { _ struct{} `type:"structure"` @@ -3621,6 +3757,12 @@ func (s DataRetrievalPolicy) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *DataRetrievalPolicy) SetRules(v []*DataRetrievalRule) *DataRetrievalPolicy { + s.Rules = v + return s +} + // Data retrieval policy rule. type DataRetrievalRule struct { _ struct{} `type:"structure"` @@ -3648,6 +3790,18 @@ func (s DataRetrievalRule) GoString() string { return s.String() } +// SetBytesPerHour sets the BytesPerHour field's value. +func (s *DataRetrievalRule) SetBytesPerHour(v int64) *DataRetrievalRule { + s.BytesPerHour = &v + return s +} + +// SetStrategy sets the Strategy field's value. +func (s *DataRetrievalRule) SetStrategy(v string) *DataRetrievalRule { + s.Strategy = &v + return s +} + // Provides options for deleting an archive from an Amazon Glacier vault. type DeleteArchiveInput struct { _ struct{} `type:"structure"` @@ -3701,6 +3855,24 @@ func (s *DeleteArchiveInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DeleteArchiveInput) SetAccountId(v string) *DeleteArchiveInput { + s.AccountId = &v + return s +} + +// SetArchiveId sets the ArchiveId field's value. +func (s *DeleteArchiveInput) SetArchiveId(v string) *DeleteArchiveInput { + s.ArchiveId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DeleteArchiveInput) SetVaultName(v string) *DeleteArchiveInput { + s.VaultName = &v + return s +} + type DeleteArchiveOutput struct { _ struct{} `type:"structure"` } @@ -3760,6 +3932,18 @@ func (s *DeleteVaultAccessPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DeleteVaultAccessPolicyInput) SetAccountId(v string) *DeleteVaultAccessPolicyInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DeleteVaultAccessPolicyInput) SetVaultName(v string) *DeleteVaultAccessPolicyInput { + s.VaultName = &v + return s +} + type DeleteVaultAccessPolicyOutput struct { _ struct{} `type:"structure"` } @@ -3819,6 +4003,18 @@ func (s *DeleteVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DeleteVaultInput) SetAccountId(v string) *DeleteVaultInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DeleteVaultInput) SetVaultName(v string) *DeleteVaultInput { + s.VaultName = &v + return s +} + // Provides options for deleting a vault notification configuration from an // Amazon Glacier vault. type DeleteVaultNotificationsInput struct { @@ -3865,6 +4061,18 @@ func (s *DeleteVaultNotificationsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DeleteVaultNotificationsInput) SetAccountId(v string) *DeleteVaultNotificationsInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DeleteVaultNotificationsInput) SetVaultName(v string) *DeleteVaultNotificationsInput { + s.VaultName = &v + return s +} + type DeleteVaultNotificationsOutput struct { _ struct{} `type:"structure"` } @@ -3946,6 +4154,24 @@ func (s *DescribeJobInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DescribeJobInput) SetAccountId(v string) *DescribeJobInput { + s.AccountId = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *DescribeJobInput) SetJobId(v string) *DescribeJobInput { + s.JobId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DescribeJobInput) SetVaultName(v string) *DescribeJobInput { + s.VaultName = &v + return s +} + // Provides options for retrieving metadata for a specific vault in Amazon Glacier. type DescribeVaultInput struct { _ struct{} `type:"structure"` @@ -3991,6 +4217,18 @@ func (s *DescribeVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DescribeVaultInput) SetAccountId(v string) *DescribeVaultInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DescribeVaultInput) SetVaultName(v string) *DescribeVaultInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type DescribeVaultOutput struct { _ struct{} `type:"structure"` @@ -4030,6 +4268,42 @@ func (s DescribeVaultOutput) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *DescribeVaultOutput) SetCreationDate(v string) *DescribeVaultOutput { + s.CreationDate = &v + return s +} + +// SetLastInventoryDate sets the LastInventoryDate field's value. +func (s *DescribeVaultOutput) SetLastInventoryDate(v string) *DescribeVaultOutput { + s.LastInventoryDate = &v + return s +} + +// SetNumberOfArchives sets the NumberOfArchives field's value. +func (s *DescribeVaultOutput) SetNumberOfArchives(v int64) *DescribeVaultOutput { + s.NumberOfArchives = &v + return s +} + +// SetSizeInBytes sets the SizeInBytes field's value. +func (s *DescribeVaultOutput) SetSizeInBytes(v int64) *DescribeVaultOutput { + s.SizeInBytes = &v + return s +} + +// SetVaultARN sets the VaultARN field's value. +func (s *DescribeVaultOutput) SetVaultARN(v string) *DescribeVaultOutput { + s.VaultARN = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DescribeVaultOutput) SetVaultName(v string) *DescribeVaultOutput { + s.VaultName = &v + return s +} + // Input for GetDataRetrievalPolicy. type GetDataRetrievalPolicyInput struct { _ struct{} `type:"structure"` @@ -4068,6 +4342,12 @@ func (s *GetDataRetrievalPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetDataRetrievalPolicyInput) SetAccountId(v string) *GetDataRetrievalPolicyInput { + s.AccountId = &v + return s +} + // Contains the Amazon Glacier response to the GetDataRetrievalPolicy request. type GetDataRetrievalPolicyOutput struct { _ struct{} `type:"structure"` @@ -4086,6 +4366,12 @@ func (s GetDataRetrievalPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetDataRetrievalPolicyOutput) SetPolicy(v *DataRetrievalPolicy) *GetDataRetrievalPolicyOutput { + s.Policy = v + return s +} + // Provides options for downloading output of an Amazon Glacier job. type GetJobOutputInput struct { _ struct{} `type:"structure"` @@ -4144,6 +4430,30 @@ func (s *GetJobOutputInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetJobOutputInput) SetAccountId(v string) *GetJobOutputInput { + s.AccountId = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *GetJobOutputInput) SetJobId(v string) *GetJobOutputInput { + s.JobId = &v + return s +} + +// SetRange sets the Range field's value. +func (s *GetJobOutputInput) SetRange(v string) *GetJobOutputInput { + s.Range = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *GetJobOutputInput) SetVaultName(v string) *GetJobOutputInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type GetJobOutputOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -4159,15 +4469,17 @@ type GetJobOutputOutput struct { // The checksum of the data in the response. This header is returned only when // retrieving the output for an archive retrieval job. Furthermore, this header - // appears only under the following conditions: You get the entire range of - // the archive. You request a range to return of the archive that starts and - // ends on a multiple of 1 MB. For example, if you have an 3.1 MB archive and - // you specify a range to return that starts at 1 MB and ends at 2 MB, then - // the x-amz-sha256-tree-hash is returned as a response header. You request - // a range of the archive to return that starts on a multiple of 1 MB and goes - // to the end of the archive. For example, if you have a 3.1 MB archive and - // you specify a range that starts at 2 MB and ends at 3.1 MB (the end of the - // archive), then the x-amz-sha256-tree-hash is returned as a response header. + // appears only under the following conditions: You get the entire range of + // the archive. + // You request a range to return of the archive that starts and ends on a multiple + // of 1 MB. For example, if you have an 3.1 MB archive and you specify a range + // to return that starts at 1 MB and ends at 2 MB, then the x-amz-sha256-tree-hash + // is returned as a response header. + // You request a range of the archive to return that starts on a multiple of + // 1 MB and goes to the end of the archive. For example, if you have a 3.1 MB + // archive and you specify a range that starts at 2 MB and ends at 3.1 MB (the + // end of the archive), then the x-amz-sha256-tree-hash is returned as a response + // header. Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` // The range of bytes returned by Amazon Glacier. If only partial output is @@ -4197,6 +4509,48 @@ func (s GetJobOutputOutput) GoString() string { return s.String() } +// SetAcceptRanges sets the AcceptRanges field's value. +func (s *GetJobOutputOutput) SetAcceptRanges(v string) *GetJobOutputOutput { + s.AcceptRanges = &v + return s +} + +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *GetJobOutputOutput) SetArchiveDescription(v string) *GetJobOutputOutput { + s.ArchiveDescription = &v + return s +} + +// SetBody sets the Body field's value. +func (s *GetJobOutputOutput) SetBody(v io.ReadCloser) *GetJobOutputOutput { + s.Body = v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *GetJobOutputOutput) SetChecksum(v string) *GetJobOutputOutput { + s.Checksum = &v + return s +} + +// SetContentRange sets the ContentRange field's value. +func (s *GetJobOutputOutput) SetContentRange(v string) *GetJobOutputOutput { + s.ContentRange = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetJobOutputOutput) SetContentType(v string) *GetJobOutputOutput { + s.ContentType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetJobOutputOutput) SetStatus(v int64) *GetJobOutputOutput { + s.Status = &v + return s +} + // Input for GetVaultAccessPolicy. type GetVaultAccessPolicyInput struct { _ struct{} `type:"structure"` @@ -4242,6 +4596,18 @@ func (s *GetVaultAccessPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetVaultAccessPolicyInput) SetAccountId(v string) *GetVaultAccessPolicyInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *GetVaultAccessPolicyInput) SetVaultName(v string) *GetVaultAccessPolicyInput { + s.VaultName = &v + return s +} + // Output for GetVaultAccessPolicy. type GetVaultAccessPolicyOutput struct { _ struct{} `type:"structure" payload:"Policy"` @@ -4260,6 +4626,12 @@ func (s GetVaultAccessPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetVaultAccessPolicyOutput) SetPolicy(v *VaultAccessPolicy) *GetVaultAccessPolicyOutput { + s.Policy = v + return s +} + // The input values for GetVaultLock. type GetVaultLockInput struct { _ struct{} `type:"structure"` @@ -4305,6 +4677,18 @@ func (s *GetVaultLockInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetVaultLockInput) SetAccountId(v string) *GetVaultLockInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *GetVaultLockInput) SetVaultName(v string) *GetVaultLockInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type GetVaultLockOutput struct { _ struct{} `type:"structure"` @@ -4334,6 +4718,30 @@ func (s GetVaultLockOutput) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *GetVaultLockOutput) SetCreationDate(v string) *GetVaultLockOutput { + s.CreationDate = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *GetVaultLockOutput) SetExpirationDate(v string) *GetVaultLockOutput { + s.ExpirationDate = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *GetVaultLockOutput) SetPolicy(v string) *GetVaultLockOutput { + s.Policy = &v + return s +} + +// SetState sets the State field's value. +func (s *GetVaultLockOutput) SetState(v string) *GetVaultLockOutput { + s.State = &v + return s +} + // Provides options for retrieving the notification configuration set on an // Amazon Glacier vault. type GetVaultNotificationsInput struct { @@ -4380,6 +4788,18 @@ func (s *GetVaultNotificationsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetVaultNotificationsInput) SetAccountId(v string) *GetVaultNotificationsInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *GetVaultNotificationsInput) SetVaultName(v string) *GetVaultNotificationsInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type GetVaultNotificationsOutput struct { _ struct{} `type:"structure" payload:"VaultNotificationConfig"` @@ -4398,6 +4818,12 @@ func (s GetVaultNotificationsOutput) GoString() string { return s.String() } +// SetVaultNotificationConfig sets the VaultNotificationConfig field's value. +func (s *GetVaultNotificationsOutput) SetVaultNotificationConfig(v *VaultNotificationConfig) *GetVaultNotificationsOutput { + s.VaultNotificationConfig = v + return s +} + // Provides options for initiating an Amazon Glacier job. type InitiateJobInput struct { _ struct{} `type:"structure" payload:"JobParameters"` @@ -4446,6 +4872,24 @@ func (s *InitiateJobInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *InitiateJobInput) SetAccountId(v string) *InitiateJobInput { + s.AccountId = &v + return s +} + +// SetJobParameters sets the JobParameters field's value. +func (s *InitiateJobInput) SetJobParameters(v *JobParameters) *InitiateJobInput { + s.JobParameters = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *InitiateJobInput) SetVaultName(v string) *InitiateJobInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type InitiateJobOutput struct { _ struct{} `type:"structure"` @@ -4467,6 +4911,18 @@ func (s InitiateJobOutput) GoString() string { return s.String() } +// SetJobId sets the JobId field's value. +func (s *InitiateJobOutput) SetJobId(v string) *InitiateJobOutput { + s.JobId = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *InitiateJobOutput) SetLocation(v string) *InitiateJobOutput { + s.Location = &v + return s +} + // Provides options for initiating a multipart upload to an Amazon Glacier vault. type InitiateMultipartUploadInput struct { _ struct{} `type:"structure"` @@ -4524,6 +4980,30 @@ func (s *InitiateMultipartUploadInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *InitiateMultipartUploadInput) SetAccountId(v string) *InitiateMultipartUploadInput { + s.AccountId = &v + return s +} + +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *InitiateMultipartUploadInput) SetArchiveDescription(v string) *InitiateMultipartUploadInput { + s.ArchiveDescription = &v + return s +} + +// SetPartSize sets the PartSize field's value. +func (s *InitiateMultipartUploadInput) SetPartSize(v string) *InitiateMultipartUploadInput { + s.PartSize = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *InitiateMultipartUploadInput) SetVaultName(v string) *InitiateMultipartUploadInput { + s.VaultName = &v + return s +} + // The Amazon Glacier response to your request. type InitiateMultipartUploadOutput struct { _ struct{} `type:"structure"` @@ -4546,6 +5026,18 @@ func (s InitiateMultipartUploadOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *InitiateMultipartUploadOutput) SetLocation(v string) *InitiateMultipartUploadOutput { + s.Location = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *InitiateMultipartUploadOutput) SetUploadId(v string) *InitiateMultipartUploadOutput { + s.UploadId = &v + return s +} + // The input values for InitiateVaultLock. type InitiateVaultLockInput struct { _ struct{} `type:"structure" payload:"Policy"` @@ -4595,6 +5087,24 @@ func (s *InitiateVaultLockInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *InitiateVaultLockInput) SetAccountId(v string) *InitiateVaultLockInput { + s.AccountId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *InitiateVaultLockInput) SetPolicy(v *VaultLockPolicy) *InitiateVaultLockInput { + s.Policy = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *InitiateVaultLockInput) SetVaultName(v string) *InitiateVaultLockInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type InitiateVaultLockOutput struct { _ struct{} `type:"structure"` @@ -4613,6 +5123,12 @@ func (s InitiateVaultLockOutput) GoString() string { return s.String() } +// SetLockId sets the LockId field's value. +func (s *InitiateVaultLockOutput) SetLockId(v string) *InitiateVaultLockOutput { + s.LockId = &v + return s +} + // Describes the options for a range inventory retrieval job. type InventoryRetrievalJobDescription struct { _ struct{} `type:"structure"` @@ -4655,6 +5171,36 @@ func (s InventoryRetrievalJobDescription) GoString() string { return s.String() } +// SetEndDate sets the EndDate field's value. +func (s *InventoryRetrievalJobDescription) SetEndDate(v string) *InventoryRetrievalJobDescription { + s.EndDate = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *InventoryRetrievalJobDescription) SetFormat(v string) *InventoryRetrievalJobDescription { + s.Format = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *InventoryRetrievalJobDescription) SetLimit(v string) *InventoryRetrievalJobDescription { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *InventoryRetrievalJobDescription) SetMarker(v string) *InventoryRetrievalJobDescription { + s.Marker = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *InventoryRetrievalJobDescription) SetStartDate(v string) *InventoryRetrievalJobDescription { + s.StartDate = &v + return s +} + // Provides options for specifying a range inventory retrieval job. type InventoryRetrievalJobInput struct { _ struct{} `type:"structure"` @@ -4690,6 +5236,30 @@ func (s InventoryRetrievalJobInput) GoString() string { return s.String() } +// SetEndDate sets the EndDate field's value. +func (s *InventoryRetrievalJobInput) SetEndDate(v string) *InventoryRetrievalJobInput { + s.EndDate = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *InventoryRetrievalJobInput) SetLimit(v string) *InventoryRetrievalJobInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *InventoryRetrievalJobInput) SetMarker(v string) *InventoryRetrievalJobInput { + s.Marker = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *InventoryRetrievalJobInput) SetStartDate(v string) *InventoryRetrievalJobInput { + s.StartDate = &v + return s +} + // Describes an Amazon Glacier job. type JobDescription struct { _ struct{} `type:"structure"` @@ -4742,20 +5312,20 @@ type JobDescription struct { // For an ArchiveRetrieval job, it is the checksum of the archive. Otherwise, // the value is null. // - // The SHA256 tree hash value for the requested range of an archive. If the + // The SHA256 tree hash value for the requested range of an archive. If the // Initiate a Job request for an archive specified a tree-hash aligned range, // then this field returns a value. // - // For the specific case when the whole archive is retrieved, this value is + // For the specific case when the whole archive is retrieved, this value is // the same as the ArchiveSHA256TreeHash value. // - // This field is null in the following situations: Archive retrieval jobs - // that specify a range that is not tree-hash aligned. + // This field is null in the following situations: Archive retrieval jobs that + // specify a range that is not tree-hash aligned. // - // Archival jobs that specify a range that is equal to the whole archive - // and the job status is InProgress. + // Archival jobs that specify a range that is equal to the whole archive and + // the job status is InProgress. // - // Inventory jobs. + // Inventory jobs. SHA256TreeHash *string `type:"string"` // An Amazon Simple Notification Service (Amazon SNS) topic that receives notification. @@ -4783,6 +5353,108 @@ func (s JobDescription) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *JobDescription) SetAction(v string) *JobDescription { + s.Action = &v + return s +} + +// SetArchiveId sets the ArchiveId field's value. +func (s *JobDescription) SetArchiveId(v string) *JobDescription { + s.ArchiveId = &v + return s +} + +// SetArchiveSHA256TreeHash sets the ArchiveSHA256TreeHash field's value. +func (s *JobDescription) SetArchiveSHA256TreeHash(v string) *JobDescription { + s.ArchiveSHA256TreeHash = &v + return s +} + +// SetArchiveSizeInBytes sets the ArchiveSizeInBytes field's value. +func (s *JobDescription) SetArchiveSizeInBytes(v int64) *JobDescription { + s.ArchiveSizeInBytes = &v + return s +} + +// SetCompleted sets the Completed field's value. +func (s *JobDescription) SetCompleted(v bool) *JobDescription { + s.Completed = &v + return s +} + +// SetCompletionDate sets the CompletionDate field's value. +func (s *JobDescription) SetCompletionDate(v string) *JobDescription { + s.CompletionDate = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *JobDescription) SetCreationDate(v string) *JobDescription { + s.CreationDate = &v + return s +} + +// SetInventoryRetrievalParameters sets the InventoryRetrievalParameters field's value. +func (s *JobDescription) SetInventoryRetrievalParameters(v *InventoryRetrievalJobDescription) *JobDescription { + s.InventoryRetrievalParameters = v + return s +} + +// SetInventorySizeInBytes sets the InventorySizeInBytes field's value. +func (s *JobDescription) SetInventorySizeInBytes(v int64) *JobDescription { + s.InventorySizeInBytes = &v + return s +} + +// SetJobDescription sets the JobDescription field's value. +func (s *JobDescription) SetJobDescription(v string) *JobDescription { + s.JobDescription = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *JobDescription) SetJobId(v string) *JobDescription { + s.JobId = &v + return s +} + +// SetRetrievalByteRange sets the RetrievalByteRange field's value. +func (s *JobDescription) SetRetrievalByteRange(v string) *JobDescription { + s.RetrievalByteRange = &v + return s +} + +// SetSHA256TreeHash sets the SHA256TreeHash field's value. +func (s *JobDescription) SetSHA256TreeHash(v string) *JobDescription { + s.SHA256TreeHash = &v + return s +} + +// SetSNSTopic sets the SNSTopic field's value. +func (s *JobDescription) SetSNSTopic(v string) *JobDescription { + s.SNSTopic = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *JobDescription) SetStatusCode(v string) *JobDescription { + s.StatusCode = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *JobDescription) SetStatusMessage(v string) *JobDescription { + s.StatusMessage = &v + return s +} + +// SetVaultARN sets the VaultARN field's value. +func (s *JobDescription) SetVaultARN(v string) *JobDescription { + s.VaultARN = &v + return s +} + // Provides options for defining a job. type JobParameters struct { _ struct{} `type:"structure"` @@ -4838,6 +5510,48 @@ func (s JobParameters) GoString() string { return s.String() } +// SetArchiveId sets the ArchiveId field's value. +func (s *JobParameters) SetArchiveId(v string) *JobParameters { + s.ArchiveId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *JobParameters) SetDescription(v string) *JobParameters { + s.Description = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *JobParameters) SetFormat(v string) *JobParameters { + s.Format = &v + return s +} + +// SetInventoryRetrievalParameters sets the InventoryRetrievalParameters field's value. +func (s *JobParameters) SetInventoryRetrievalParameters(v *InventoryRetrievalJobInput) *JobParameters { + s.InventoryRetrievalParameters = v + return s +} + +// SetRetrievalByteRange sets the RetrievalByteRange field's value. +func (s *JobParameters) SetRetrievalByteRange(v string) *JobParameters { + s.RetrievalByteRange = &v + return s +} + +// SetSNSTopic sets the SNSTopic field's value. +func (s *JobParameters) SetSNSTopic(v string) *JobParameters { + s.SNSTopic = &v + return s +} + +// SetType sets the Type field's value. +func (s *JobParameters) SetType(v string) *JobParameters { + s.Type = &v + return s +} + // Provides options for retrieving a job list for an Amazon Glacier vault. type ListJobsInput struct { _ struct{} `type:"structure"` @@ -4900,6 +5614,42 @@ func (s *ListJobsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListJobsInput) SetAccountId(v string) *ListJobsInput { + s.AccountId = &v + return s +} + +// SetCompleted sets the Completed field's value. +func (s *ListJobsInput) SetCompleted(v string) *ListJobsInput { + s.Completed = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListJobsInput) SetLimit(v string) *ListJobsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListJobsInput) SetMarker(v string) *ListJobsInput { + s.Marker = &v + return s +} + +// SetStatuscode sets the Statuscode field's value. +func (s *ListJobsInput) SetStatuscode(v string) *ListJobsInput { + s.Statuscode = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *ListJobsInput) SetVaultName(v string) *ListJobsInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListJobsOutput struct { _ struct{} `type:"structure"` @@ -4923,6 +5673,18 @@ func (s ListJobsOutput) GoString() string { return s.String() } +// SetJobList sets the JobList field's value. +func (s *ListJobsOutput) SetJobList(v []*JobDescription) *ListJobsOutput { + s.JobList = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListJobsOutput) SetMarker(v string) *ListJobsOutput { + s.Marker = &v + return s +} + // Provides options for retrieving list of in-progress multipart uploads for // an Amazon Glacier vault. type ListMultipartUploadsInput struct { @@ -4980,6 +5742,30 @@ func (s *ListMultipartUploadsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListMultipartUploadsInput) SetAccountId(v string) *ListMultipartUploadsInput { + s.AccountId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListMultipartUploadsInput) SetLimit(v string) *ListMultipartUploadsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListMultipartUploadsInput) SetMarker(v string) *ListMultipartUploadsInput { + s.Marker = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *ListMultipartUploadsInput) SetVaultName(v string) *ListMultipartUploadsInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListMultipartUploadsOutput struct { _ struct{} `type:"structure"` @@ -5003,6 +5789,18 @@ func (s ListMultipartUploadsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListMultipartUploadsOutput) SetMarker(v string) *ListMultipartUploadsOutput { + s.Marker = &v + return s +} + +// SetUploadsList sets the UploadsList field's value. +func (s *ListMultipartUploadsOutput) SetUploadsList(v []*UploadListElement) *ListMultipartUploadsOutput { + s.UploadsList = v + return s +} + // Provides options for retrieving a list of parts of an archive that have been // uploaded in a specific multipart upload. type ListPartsInput struct { @@ -5068,6 +5866,36 @@ func (s *ListPartsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListPartsInput) SetAccountId(v string) *ListPartsInput { + s.AccountId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListPartsInput) SetLimit(v string) *ListPartsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPartsInput) SetMarker(v string) *ListPartsInput { + s.Marker = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *ListPartsInput) SetUploadId(v string) *ListPartsInput { + s.UploadId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *ListPartsInput) SetVaultName(v string) *ListPartsInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListPartsOutput struct { _ struct{} `type:"structure"` @@ -5108,6 +5936,48 @@ func (s ListPartsOutput) GoString() string { return s.String() } +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *ListPartsOutput) SetArchiveDescription(v string) *ListPartsOutput { + s.ArchiveDescription = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *ListPartsOutput) SetCreationDate(v string) *ListPartsOutput { + s.CreationDate = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPartsOutput) SetMarker(v string) *ListPartsOutput { + s.Marker = &v + return s +} + +// SetMultipartUploadId sets the MultipartUploadId field's value. +func (s *ListPartsOutput) SetMultipartUploadId(v string) *ListPartsOutput { + s.MultipartUploadId = &v + return s +} + +// SetPartSizeInBytes sets the PartSizeInBytes field's value. +func (s *ListPartsOutput) SetPartSizeInBytes(v int64) *ListPartsOutput { + s.PartSizeInBytes = &v + return s +} + +// SetParts sets the Parts field's value. +func (s *ListPartsOutput) SetParts(v []*PartListElement) *ListPartsOutput { + s.Parts = v + return s +} + +// SetVaultARN sets the VaultARN field's value. +func (s *ListPartsOutput) SetVaultARN(v string) *ListPartsOutput { + s.VaultARN = &v + return s +} + // The input value for ListTagsForVaultInput. type ListTagsForVaultInput struct { _ struct{} `type:"structure"` @@ -5153,6 +6023,18 @@ func (s *ListTagsForVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListTagsForVaultInput) SetAccountId(v string) *ListTagsForVaultInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *ListTagsForVaultInput) SetVaultName(v string) *ListTagsForVaultInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListTagsForVaultOutput struct { _ struct{} `type:"structure"` @@ -5171,6 +6053,12 @@ func (s ListTagsForVaultOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *ListTagsForVaultOutput) SetTags(v map[string]*string) *ListTagsForVaultOutput { + s.Tags = v + return s +} + // Provides options to retrieve the vault list owned by the calling user's account. // The list provides metadata information for each vault. type ListVaultsInput struct { @@ -5218,6 +6106,24 @@ func (s *ListVaultsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListVaultsInput) SetAccountId(v string) *ListVaultsInput { + s.AccountId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListVaultsInput) SetLimit(v string) *ListVaultsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVaultsInput) SetMarker(v string) *ListVaultsInput { + s.Marker = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListVaultsOutput struct { _ struct{} `type:"structure"` @@ -5240,6 +6146,18 @@ func (s ListVaultsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListVaultsOutput) SetMarker(v string) *ListVaultsOutput { + s.Marker = &v + return s +} + +// SetVaultList sets the VaultList field's value. +func (s *ListVaultsOutput) SetVaultList(v []*DescribeVaultOutput) *ListVaultsOutput { + s.VaultList = v + return s +} + // A list of the part sizes of the multipart upload. type PartListElement struct { _ struct{} `type:"structure"` @@ -5262,6 +6180,18 @@ func (s PartListElement) GoString() string { return s.String() } +// SetRangeInBytes sets the RangeInBytes field's value. +func (s *PartListElement) SetRangeInBytes(v string) *PartListElement { + s.RangeInBytes = &v + return s +} + +// SetSHA256TreeHash sets the SHA256TreeHash field's value. +func (s *PartListElement) SetSHA256TreeHash(v string) *PartListElement { + s.SHA256TreeHash = &v + return s +} + // The input value for RemoveTagsFromVaultInput. type RemoveTagsFromVaultInput struct { _ struct{} `type:"structure"` @@ -5310,6 +6240,24 @@ func (s *RemoveTagsFromVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *RemoveTagsFromVaultInput) SetAccountId(v string) *RemoveTagsFromVaultInput { + s.AccountId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromVaultInput) SetTagKeys(v []*string) *RemoveTagsFromVaultInput { + s.TagKeys = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *RemoveTagsFromVaultInput) SetVaultName(v string) *RemoveTagsFromVaultInput { + s.VaultName = &v + return s +} + type RemoveTagsFromVaultOutput struct { _ struct{} `type:"structure"` } @@ -5365,6 +6313,18 @@ func (s *SetDataRetrievalPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *SetDataRetrievalPolicyInput) SetAccountId(v string) *SetDataRetrievalPolicyInput { + s.AccountId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *SetDataRetrievalPolicyInput) SetPolicy(v *DataRetrievalPolicy) *SetDataRetrievalPolicyInput { + s.Policy = v + return s +} + type SetDataRetrievalPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5427,6 +6387,24 @@ func (s *SetVaultAccessPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *SetVaultAccessPolicyInput) SetAccountId(v string) *SetVaultAccessPolicyInput { + s.AccountId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *SetVaultAccessPolicyInput) SetPolicy(v *VaultAccessPolicy) *SetVaultAccessPolicyInput { + s.Policy = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *SetVaultAccessPolicyInput) SetVaultName(v string) *SetVaultAccessPolicyInput { + s.VaultName = &v + return s +} + type SetVaultAccessPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5490,6 +6468,24 @@ func (s *SetVaultNotificationsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *SetVaultNotificationsInput) SetAccountId(v string) *SetVaultNotificationsInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *SetVaultNotificationsInput) SetVaultName(v string) *SetVaultNotificationsInput { + s.VaultName = &v + return s +} + +// SetVaultNotificationConfig sets the VaultNotificationConfig field's value. +func (s *SetVaultNotificationsInput) SetVaultNotificationConfig(v *VaultNotificationConfig) *SetVaultNotificationsInput { + s.VaultNotificationConfig = v + return s +} + type SetVaultNotificationsOutput struct { _ struct{} `type:"structure"` } @@ -5558,6 +6554,36 @@ func (s *UploadArchiveInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *UploadArchiveInput) SetAccountId(v string) *UploadArchiveInput { + s.AccountId = &v + return s +} + +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *UploadArchiveInput) SetArchiveDescription(v string) *UploadArchiveInput { + s.ArchiveDescription = &v + return s +} + +// SetBody sets the Body field's value. +func (s *UploadArchiveInput) SetBody(v io.ReadSeeker) *UploadArchiveInput { + s.Body = v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *UploadArchiveInput) SetChecksum(v string) *UploadArchiveInput { + s.Checksum = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *UploadArchiveInput) SetVaultName(v string) *UploadArchiveInput { + s.VaultName = &v + return s +} + // A list of in-progress multipart uploads for a vault. type UploadListElement struct { _ struct{} `type:"structure"` @@ -5591,6 +6617,36 @@ func (s UploadListElement) GoString() string { return s.String() } +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *UploadListElement) SetArchiveDescription(v string) *UploadListElement { + s.ArchiveDescription = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *UploadListElement) SetCreationDate(v string) *UploadListElement { + s.CreationDate = &v + return s +} + +// SetMultipartUploadId sets the MultipartUploadId field's value. +func (s *UploadListElement) SetMultipartUploadId(v string) *UploadListElement { + s.MultipartUploadId = &v + return s +} + +// SetPartSizeInBytes sets the PartSizeInBytes field's value. +func (s *UploadListElement) SetPartSizeInBytes(v int64) *UploadListElement { + s.PartSizeInBytes = &v + return s +} + +// SetVaultARN sets the VaultARN field's value. +func (s *UploadListElement) SetVaultARN(v string) *UploadListElement { + s.VaultARN = &v + return s +} + // Provides options to upload a part of an archive in a multipart upload operation. type UploadMultipartPartInput struct { _ struct{} `type:"structure" payload:"Body"` @@ -5656,6 +6712,42 @@ func (s *UploadMultipartPartInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *UploadMultipartPartInput) SetAccountId(v string) *UploadMultipartPartInput { + s.AccountId = &v + return s +} + +// SetBody sets the Body field's value. +func (s *UploadMultipartPartInput) SetBody(v io.ReadSeeker) *UploadMultipartPartInput { + s.Body = v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *UploadMultipartPartInput) SetChecksum(v string) *UploadMultipartPartInput { + s.Checksum = &v + return s +} + +// SetRange sets the Range field's value. +func (s *UploadMultipartPartInput) SetRange(v string) *UploadMultipartPartInput { + s.Range = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadMultipartPartInput) SetUploadId(v string) *UploadMultipartPartInput { + s.UploadId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *UploadMultipartPartInput) SetVaultName(v string) *UploadMultipartPartInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type UploadMultipartPartOutput struct { _ struct{} `type:"structure"` @@ -5674,6 +6766,12 @@ func (s UploadMultipartPartOutput) GoString() string { return s.String() } +// SetChecksum sets the Checksum field's value. +func (s *UploadMultipartPartOutput) SetChecksum(v string) *UploadMultipartPartOutput { + s.Checksum = &v + return s +} + // Contains the vault access policy. type VaultAccessPolicy struct { _ struct{} `type:"structure"` @@ -5692,6 +6790,12 @@ func (s VaultAccessPolicy) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *VaultAccessPolicy) SetPolicy(v string) *VaultAccessPolicy { + s.Policy = &v + return s +} + // Contains the vault lock policy. type VaultLockPolicy struct { _ struct{} `type:"structure"` @@ -5710,6 +6814,12 @@ func (s VaultLockPolicy) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *VaultLockPolicy) SetPolicy(v string) *VaultLockPolicy { + s.Policy = &v + return s +} + // Represents a vault's notification configuration. type VaultNotificationConfig struct { _ struct{} `type:"structure"` @@ -5733,6 +6843,18 @@ func (s VaultNotificationConfig) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *VaultNotificationConfig) SetEvents(v []*string) *VaultNotificationConfig { + s.Events = v + return s +} + +// SetSNSTopic sets the SNSTopic field's value. +func (s *VaultNotificationConfig) SetSNSTopic(v string) *VaultNotificationConfig { + s.SNSTopic = &v + return s +} + const ( // ActionCodeArchiveRetrieval is a ActionCode enum value ActionCodeArchiveRetrieval = "ArchiveRetrieval" diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go index a318653d0..704fde13a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go @@ -27,21 +27,21 @@ import ( // data, consider using Amazon S3. For more information, go to Amazon Simple // Storage Service (Amazon S3) (http://aws.amazon.com/s3/). // -// You can store any kind of data in any format. There is no maximum limit -// on the total amount of data you can store in Amazon Glacier. +// You can store any kind of data in any format. There is no maximum limit on +// the total amount of data you can store in Amazon Glacier. // // If you are a first-time user of Amazon Glacier, we recommend that you begin // by reading the following sections in the Amazon Glacier Developer Guide: // -// What is Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html) -// - This section of the Developer Guide describes the underlying data model, -// the operations it supports, and the AWS SDKs that you can use to interact -// with the service. +// * What is Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html) +// - This section of the Developer Guide describes the underlying data model, +// the operations it supports, and the AWS SDKs that you can use to interact +// with the service. // -// Getting Started with Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html) -// - The Getting Started section walks you through the process of creating a -// vault, uploading archives, creating jobs to download archives, retrieving -// the job output, and deleting archives. +// * Getting Started with Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html) +// - The Getting Started section walks you through the process of creating +// a vault, uploading archives, creating jobs to download archives, retrieving +// the job output, and deleting archives. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type Glacier struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go index 0e506cbdc..13b5ba516 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go @@ -145,10 +145,10 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp // // Adds the specified IAM role to the specified instance profile. // -// The caller of this API must be granted the PassRole permission on the IAM +// The caller of this API must be granted the PassRole permission on the IAM // role by a permission policy. // -// For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). +// For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // @@ -666,11 +666,11 @@ func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request. // for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. // -// For information about limits on the number of keys you can create, see -// Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) +// For information about limits on the number of keys you can create, see Limitations +// on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// To ensure the security of your AWS account, the secret access key is accessible +// To ensure the security of your AWS account, the secret access key is accessible // only during key and user creation. You must save the key (for example, in // a text file) if you want to be able to access it again. If a secret key is // lost, you can delete the access keys for the associated user and then create @@ -826,7 +826,7 @@ func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, // // Creates a new group. // -// For information about the number of groups you can create, see Limitations +// For information about the number of groups you can create, see Limitations // on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // @@ -908,7 +908,7 @@ func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (r // Creates a new instance profile. For information about instance profiles, // go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // -// For information about the number of instance profiles you can create, see +// For information about the number of instance profiles you can create, see // Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // @@ -1081,9 +1081,9 @@ func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProvi // that the IdP uses. You get all of this information from the OIDC IdP that // you want to use for access to AWS. // -// Because trust for the OIDC provider is ultimately derived from the IAM -// provider that this action creates, it is a best practice to limit access -// to the CreateOpenIDConnectProvider action to highly-privileged users. +// Because trust for the OIDC provider is ultimately derived from the IAM provider +// that this action creates, it is a best practice to limit access to the CreateOpenIDConnectProvider +// action to highly-privileged users. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1162,8 +1162,8 @@ func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques // // Creates a new managed policy for your AWS account. // -// This operation creates a policy version with a version identifier of v1 -// and sets v1 as the policy's default version. For more information about policy +// This operation creates a policy version with a version identifier of v1 and +// sets v1 as the policy's default version. For more information about policy // versions, see Versioning for Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. // @@ -1439,10 +1439,10 @@ func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *re // document using the identity management software that is used as your organization's // IdP. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // -// For more information, see Enabling SAML 2.0 Federated Users to Access -// the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) +// For more information, see Enabling SAML 2.0 Federated Users to Access the +// AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) // and About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) // in the IAM User Guide. // @@ -1523,7 +1523,7 @@ func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, o // // Creates a new IAM user for your AWS account. // -// For information about limitations on the number of IAM users you can create, +// For information about limitations on the number of IAM users you can create, // see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // @@ -1612,7 +1612,7 @@ func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) // see Limitations on Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// The seed information contained in the QR code and the Base32 string should +// The seed information contained in the QR code and the Base32 string should // be treated like any other secret access information, such as your AWS access // keys or your passwords. After you provision your virtual device, you should // ensure that the information is destroyed following secure procedures. @@ -2172,12 +2172,12 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r // Deletes the specified instance profile. The instance profile must not have // an associated role. // -// Make sure you do not have any Amazon EC2 instances running with the instance +// Make sure you do not have any Amazon EC2 instances running with the instance // profile you are about to delete. Deleting a role or instance profile that // is associated with a running instance will break any applications running // on the instance. // -// For more information about instance profiles, go to About Instance Profiles +// For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2260,11 +2260,10 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re // Deletes the password for the specified IAM user, which terminates the user's // ability to access AWS services through the AWS Management Console. // -// Deleting a user's password does not prevent a user from accessing AWS -// through the command line interface or the API. To prevent all user access -// you must also either make any access keys inactive or delete them. For more -// information about making keys inactive or deleting them, see UpdateAccessKey -// and DeleteAccessKey. +// Deleting a user's password does not prevent a user from accessing AWS through +// the command line interface or the API. To prevent all user access you must +// also either make any access keys inactive or delete them. For more information +// about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2434,21 +2433,21 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // all of the policy's versions. The following steps describe the process for // deleting a managed policy: // -// Detach the policy from all users, groups, and roles that the policy is -// attached to, using the DetachUserPolicy, DetachGroupPolicy, or DetachRolePolicy -// APIs. To list all the users, groups, and roles that a policy is attached -// to, use ListEntitiesForPolicy. +// * Detach the policy from all users, groups, and roles that the policy +// is attached to, using the DetachUserPolicy, DetachGroupPolicy, or DetachRolePolicy +// APIs. To list all the users, groups, and roles that a policy is attached +// to, use ListEntitiesForPolicy. // -// Delete all versions of the policy using DeletePolicyVersion. To list the -// policy's versions, use ListPolicyVersions. You cannot use DeletePolicyVersion -// to delete the version that is marked as the default version. You delete the -// policy's default version in the next step of the process. +// * Delete all versions of the policy using DeletePolicyVersion. To list +// the policy's versions, use ListPolicyVersions. You cannot use DeletePolicyVersion +// to delete the version that is marked as the default version. You delete +// the policy's default version in the next step of the process. // -// Delete the policy (this automatically deletes the policy's default version) -// using this API. +// * Delete the policy (this automatically deletes the policy's default version) +// using this API. // -// For information about managed policies, see Managed Policies and Inline -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// For information about managed policies, see Managed Policies and Inline Policies +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2538,8 +2537,8 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * // the default version from a policy, use DeletePolicy. To find out which version // of a policy is marked as the default version, use ListPolicyVersions. // -// For information about versions for managed policies, see Versioning for -// Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) +// For information about versions for managed policies, see Versioning for Managed +// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2626,7 +2625,7 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o // Deletes the specified role. The role must not have any policies attached. // For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // -// Make sure you do not have any Amazon EC2 instances running with the role +// Make sure you do not have any Amazon EC2 instances running with the role // you are about to delete. Deleting a role or instance profile that is associated // with a running instance will break any applications running on the instance. // @@ -2795,7 +2794,7 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re // Any attempt to assume a role that references a non-existent provider resource // ARN fails. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2954,7 +2953,7 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) // in the IAM User Guide. // -// If you are using a server certificate with Elastic Load Balancing, deleting +// If you are using a server certificate with Elastic Load Balancing, deleting // the certificate could have implications for your application. If Elastic // Load Balancing doesn't detect the deletion of bound certificates, it may // continue to use the certificates. This could cause Elastic Load Balancing @@ -3284,8 +3283,8 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) // // Deletes a virtual MFA device. // -// You must deactivate a user's virtual MFA device before you can delete -// it. For information about deactivating MFA devices, see DeactivateMFADevice. +// You must deactivate a user's virtual MFA device before you can delete it. +// For information about deactivating MFA devices, see DeactivateMFADevice. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4018,7 +4017,7 @@ func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *requ // // Retrieves information about IAM entity usage and IAM quotas in the AWS account. // -// For information about limitations on IAM entities, see Limitations on IAM +// For information about limitations on IAM entities, see Limitations on IAM // Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // @@ -4168,7 +4167,7 @@ func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPr // as strings. If you want to include only a list of policies by string, use // GetContextKeysForCustomPolicy instead. // -// Note: This API discloses information about the permissions granted to other +// Note: This API discloses information about the permissions granted to other // users. If you do not want users to see other user's permissions, then consider // allowing them to use GetContextKeysForCustomPolicy instead. // @@ -4429,14 +4428,14 @@ func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Re // Retrieves the specified inline policy document that is embedded in the specified // IAM group. // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. // -// An IAM group can also have managed policies attached to it. To retrieve -// a managed policy document that is attached to a group, use GetPolicy to determine +// An IAM group can also have managed policies attached to it. To retrieve a +// managed policy document that is attached to a group, use GetPolicy to determine // the policy's default version, then use GetPolicyVersion to retrieve the policy // document. // @@ -4817,13 +4816,13 @@ func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques // Retrieves information about the specified version of the specified managed // policy, including the policy document. // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. // -// To list the available versions for a policy, use ListPolicyVersions. +// To list the available versions for a policy, use ListPolicyVersions. // // This API retrieves information about managed policies. To retrieve information // about an inline policy that is embedded in a user, group, or role, use the @@ -4912,7 +4911,7 @@ func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output // GUID, ARN, and the role's trust policy that grants permission to assume the // role. For more information about roles, see Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs @@ -4988,14 +4987,14 @@ func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Requ // Retrieves the specified inline policy document that is embedded with the // specified IAM role. // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. // -// An IAM role can also have managed policies attached to it. To retrieve -// a managed policy document that is attached to a role, use GetPolicy to determine +// An IAM role can also have managed policies attached to it. To retrieve a +// managed policy document that is attached to a role, use GetPolicy to determine // the policy's default version, then use GetPolicyVersion to retrieve the policy // document. // @@ -5076,7 +5075,7 @@ func (c *IAM) GetSAMLProviderRequest(input *GetSAMLProviderInput) (req *request. // Returns the SAML provider metadocument that was uploaded when the IAM SAML // provider resource object was created or updated. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5374,14 +5373,14 @@ func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Requ // Retrieves the specified inline policy document that is embedded in the specified // IAM user. // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. // -// An IAM user can also have managed policies attached to it. To retrieve -// a managed policy document that is attached to a user, use GetPolicy to determine +// An IAM user can also have managed policies attached to it. To retrieve a +// managed policy document that is attached to a user, use GetPolicy to determine // the policy's default version, then use GetPolicyVersion to retrieve the policy // document. // @@ -5473,7 +5472,7 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re // works for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. // -// To ensure the security of your AWS account, the secret access key is accessible +// To ensure the security of your AWS account, the secret access key is accessible // only during key and user creation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -5790,9 +5789,9 @@ func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInp // // Lists all managed policies that are attached to the specified IAM role. // -// An IAM role can also have inline policies embedded with it. To list the -// inline policies for a role, use the ListRolePolicies API. For information -// about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// An IAM role can also have inline policies embedded with it. To list the inline +// policies for a role, use the ListRolePolicies API. For information about +// policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // // You can paginate the results using the MaxItems and Marker parameters. You @@ -5905,9 +5904,9 @@ func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInp // // Lists all managed policies that are attached to the specified IAM user. // -// An IAM user can also have inline policies embedded with it. To list the -// inline policies for a user, use the ListUserPolicies API. For information -// about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// An IAM user can also have inline policies embedded with it. To list the inline +// policies for a user, use the ListUserPolicies API. For information about +// policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // // You can paginate the results using the MaxItems and Marker parameters. You @@ -6021,8 +6020,8 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r // Lists all IAM users, groups, and roles that the specified managed policy // is attached to. // -// You can use the optional EntityFilter parameter to limit the results to -// a particular type of entity (users, groups, or roles). For example, to list +// You can use the optional EntityFilter parameter to limit the results to a +// particular type of entity (users, groups, or roles). For example, to list // only the roles that are attached to the specified policy, set EntityFilter // to Role. // @@ -6133,9 +6132,9 @@ func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *requ // Lists the names of the inline policies that are embedded in the specified // IAM group. // -// An IAM group can also have managed policies attached to it. To list the -// managed policies that are attached to a group, use ListAttachedGroupPolicies. -// For more information about policies, see Managed Policies and Inline Policies +// An IAM group can also have managed policies attached to it. To list the managed +// policies that are attached to a group, use ListAttachedGroupPolicies. For +// more information about policies, see Managed Policies and Inline Policies // (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // @@ -6243,7 +6242,7 @@ func (c *IAM) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, o // // Lists the IAM groups that have the specified path prefix. // -// You can paginate the results using the MaxItems and Marker parameters. +// You can paginate the results using the MaxItems and Marker parameters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6819,10 +6818,10 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // Lists all the managed policies that are available in your AWS account, including // your own customer-defined managed policies and all AWS managed policies. // -// You can filter the list of policies that is returned using the optional -// OnlyAttached, Scope, and PathPrefix parameters. For example, to list only -// the customer managed policies in your AWS account, set Scope to Local. To -// list only AWS managed policies, set Scope to AWS. +// You can filter the list of policies that is returned using the optional OnlyAttached, +// Scope, and PathPrefix parameters. For example, to list only the customer +// managed policies in your AWS account, set Scope to Local. To list only AWS +// managed policies, set Scope to AWS. // // You can paginate the results using the MaxItems and Marker parameters. // @@ -7239,7 +7238,7 @@ func (c *IAM) ListSAMLProvidersRequest(input *ListSAMLProvidersInput) (req *requ // // Lists the SAML provider resource objects defined in IAM in the account. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -7419,7 +7418,7 @@ func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) // Lists the server certificates stored in IAM that have the specified path // prefix. If none exist, the action returns an empty list. // -// You can paginate the results using the MaxItems and Marker parameters. +// You can paginate the results using the MaxItems and Marker parameters. // // For more information about working with server certificates, including a // list of AWS services that can use the server certificates that you manage @@ -7943,9 +7942,9 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re // embed in a group, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutGroupPolicy. For general information about using the -// Query API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) +// Because policy documents can be large, you should use POST rather than GET +// when calling PutGroupPolicy. For general information about using the Query +// API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -8028,12 +8027,11 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ // Adds or updates an inline policy document that is embedded in the specified // IAM role. // -// When you embed an inline policy in a role, the inline policy is used as -// part of the role's access (permissions) policy. The role's trust policy is -// created at the same time as the role, using CreateRole. You can update a -// role's trust policy using UpdateAssumeRolePolicy. For more information about -// IAM roles, go to Using Roles to Delegate Permissions and Federate Identities -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). +// When you embed an inline policy in a role, the inline policy is used as part +// of the role's access (permissions) policy. The role's trust policy is created +// at the same time as the role, using CreateRole. You can update a role's trust +// policy using UpdateAssumeRolePolicy. For more information about IAM roles, +// go to Using Roles to Delegate Permissions and Federate Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). // // A role can also have a managed policy attached to it. To attach a managed // policy to a role, use AttachRolePolicy. To create a new managed policy, use @@ -8045,8 +8043,8 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ // embed with a role, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutRolePolicy. For general information about using the Query +// Because policy documents can be large, you should use POST rather than GET +// when calling PutRolePolicy. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. // @@ -8140,8 +8138,8 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ // embed in a user, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutUserPolicy. For general information about using the Query +// Because policy documents can be large, you should use POST rather than GET +// when calling PutUserPolicy. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. // @@ -8304,12 +8302,12 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance // // Removes the specified IAM role from the specified EC2 instance profile. // -// Make sure you do not have any Amazon EC2 instances running with the role +// Make sure you do not have any Amazon EC2 instances running with the role // you are about to remove from the instance profile. Removing a role from an // instance profile that is associated with a running instance break any applications // running on the instance. // -// For more information about IAM roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). +// For more information about IAM roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // @@ -8552,8 +8550,8 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput // to. To list the users, groups, and roles that the policy is attached to, // use the ListEntitiesForPolicy API. // -// For information about managed policies, see Managed Policies and Inline -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// For information about managed policies, see Managed Policies and Inline Policies +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -8769,7 +8767,7 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput // The simulation does not perform the API actions, it only checks the authorization // to determine if the simulated policies allow or deny the actions. // -// Note: This API discloses information about the permissions granted to other +// Note: This API discloses information about the permissions granted to other // users. If you do not want users to see other user's permissions, then consider // allowing them to use SimulateCustomPolicy instead. // @@ -8888,8 +8886,7 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. // works for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. // -// For information about rotating keys, see Managing Keys and Certificates -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingCredentials.html) +// For information about rotating keys, see Managing Keys and Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingCredentials.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -8967,13 +8964,13 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol // // Updates the password policy settings for the AWS account. // -// This action does not support partial updates. No parameters are required, +// This action does not support partial updates. No parameters are required, // but if you do not specify a parameter, that parameter's value reverts to // its default value. See the Request Parameters section for each parameter's // default value. // -// For more information about using a password policy, see Managing an IAM -// Password Policy (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html) +// For more information about using a password policy, see Managing an IAM Password +// Policy (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -9137,11 +9134,11 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, // // Updates the name and/or the path of the specified IAM group. // -// You should understand the implications of changing a group's path or name. +// You should understand the implications of changing a group's path or name. // For more information, see Renaming Users and Groups (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_WorkingWithGroupsAndUsers.html) // in the IAM User Guide. // -// To change an IAM group name the requester must have appropriate permissions +// To change an IAM group name the requester must have appropriate permissions // on both the source object and the target object. For example, to change "Managers" // to "MGRs", the entity making the request must have permission on both "Managers" // and "MGRs", or must have permission on all (*). For more information about @@ -9226,8 +9223,8 @@ func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *re // // Changes the password for the specified IAM user. // -// IAM users can change their own passwords by calling ChangePassword. For -// more information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) +// IAM users can change their own passwords by calling ChangePassword. For more +// information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -9324,7 +9321,7 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo // does change, any attempt to assume an IAM role that specifies the OIDC provider // as a principal fails until the certificate thumbprint is updated. // -// Because trust for the OIDC provider is ultimately derived from the provider's +// Because trust for the OIDC provider is ultimately derived from the provider's // certificate and is validated by the thumbprint, it is a best practice to // limit access to the UpdateOpenIDConnectProviderThumbprint action to highly-privileged // users. @@ -9402,7 +9399,7 @@ func (c *IAM) UpdateSAMLProviderRequest(input *UpdateSAMLProviderInput) (req *re // // Updates the metadata document for an existing SAML provider resource object. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -9565,17 +9562,17 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) // in the IAM User Guide. // -// You should understand the implications of changing a server certificate's +// You should understand the implications of changing a server certificate's // path or name. For more information, see Renaming a Server Certificate (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs_manage.html#RenamingServerCerts) // in the IAM User Guide. // -// To change a server certificate name the requester must have appropriate -// permissions on both the source object and the target object. For example, -// to change the name from "ProductionCert" to "ProdCert", the entity making -// the request must have permission on "ProductionCert" and "ProdCert", or must -// have permission on all (*). For more information about permissions, see Access -// Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) -// in the IAM User Guide. +// To change a server certificate name the requester must have appropriate permissions +// on both the source object and the target object. For example, to change the +// name from "ProductionCert" to "ProdCert", the entity making the request must +// have permission on "ProductionCert" and "ProdCert", or must have permission +// on all (*). For more information about permissions, see Access Management +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM +// User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -9738,13 +9735,13 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o // // Updates the name and/or the path of the specified IAM user. // -// You should understand the implications of changing an IAM user's path -// or name. For more information, see Renaming an IAM User (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_manage.html#id_users_renaming) +// You should understand the implications of changing an IAM user's path or +// name. For more information, see Renaming an IAM User (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_manage.html#id_users_renaming) // and Renaming an IAM Group (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_rename.html) // in the IAM User Guide. // -// To change a user name the requester must have appropriate permissions -// on both the source object and the target object. For example, to change Bob +// To change a user name the requester must have appropriate permissions on +// both the source object and the target object. For example, to change Bob // to Robert, the entity making the request must have permission on Bob and // Robert, or must have permission on all (*). For more information about permissions, // see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). @@ -9926,11 +9923,11 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) // in the IAM User Guide. // -// For information about the number of server certificates you can upload, -// see Limitations on IAM Entities and Objects (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html) +// For information about the number of server certificates you can upload, see +// Limitations on IAM Entities and Objects (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html) // in the IAM User Guide. // -// Because the body of the public key certificate, private key, and the certificate +// Because the body of the public key certificate, private key, and the certificate // chain can be large, you should use POST rather than GET when calling UploadServerCertificate. // For information about setting up signatures and authorization through the // API, go to Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) @@ -10022,13 +10019,12 @@ func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInp // that are signed with a corresponding private key. When you upload the certificate, // its default status is Active. // -// If the UserName field is not specified, the IAM user name is determined -// implicitly based on the AWS access key ID used to sign the request. Because -// this action works for access keys under the AWS account, you can use this -// action to manage root credentials even if the AWS account has no associated -// users. +// If the UserName field is not specified, the IAM user name is determined implicitly +// based on the AWS access key ID used to sign the request. Because this action +// works for access keys under the AWS account, you can use this action to manage +// root credentials even if the AWS account has no associated users. // -// Because the body of a X.509 certificate can be large, you should use POST +// Because the body of a X.509 certificate can be large, you should use POST // rather than GET when calling UploadSigningCertificate. For information about // setting up signatures and authorization through the API, go to Signing AWS // API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) @@ -10079,10 +10075,10 @@ func (c *IAM) UploadSigningCertificate(input *UploadSigningCertificateInput) (*U // Contains information about an AWS access key. // -// This data type is used as a response element in the CreateAccessKey and -// ListAccessKeys actions. +// This data type is used as a response element in the CreateAccessKey and ListAccessKeys +// actions. // -// The SecretAccessKey value is returned only in response to CreateAccessKey. +// The SecretAccessKey value is returned only in response to CreateAccessKey. // You can get a secret access key only when you first create an access key; // you cannot recover the secret access key later. If you lose a secret access // key, you must create a new access key. @@ -10124,6 +10120,36 @@ func (s AccessKey) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *AccessKey) SetAccessKeyId(v string) *AccessKey { + s.AccessKeyId = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *AccessKey) SetCreateDate(v time.Time) *AccessKey { + s.CreateDate = &v + return s +} + +// SetSecretAccessKey sets the SecretAccessKey field's value. +func (s *AccessKey) SetSecretAccessKey(v string) *AccessKey { + s.SecretAccessKey = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AccessKey) SetStatus(v string) *AccessKey { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AccessKey) SetUserName(v string) *AccessKey { + s.UserName = &v + return s +} + // Contains information about the last time an AWS access key was used. // // This data type is used as a response element in the GetAccessKeyLastUsed @@ -10134,12 +10160,12 @@ type AccessKeyLastUsed struct { // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), // when the access key was most recently used. This field is null when: // - // The user does not have an access key. + // * The user does not have an access key. // - // An access key exists but has never been used, at least not since IAM started - // tracking this information on April 22nd, 2015. + // * An access key exists but has never been used, at least not since IAM + // started tracking this information on April 22nd, 2015. // - // There is no sign-in data associated with the user + // * There is no sign-in data associated with the user // // LastUsedDate is a required field LastUsedDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -10147,14 +10173,14 @@ type AccessKeyLastUsed struct { // The AWS region where this access key was most recently used. This field is // null when: // - // The user does not have an access key. + // * The user does not have an access key. // - // An access key exists but has never been used, at least not since IAM started - // tracking this information on April 22nd, 2015. + // * An access key exists but has never been used, at least not since IAM + // started tracking this information on April 22nd, 2015. // - // There is no sign-in data associated with the user + // * There is no sign-in data associated with the user // - // For more information about AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html) + // For more information about AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html) // in the Amazon Web Services General Reference. // // Region is a required field @@ -10163,12 +10189,12 @@ type AccessKeyLastUsed struct { // The name of the AWS service with which this access key was most recently // used. This field is null when: // - // The user does not have an access key. + // * The user does not have an access key. // - // An access key exists but has never been used, at least not since IAM started - // tracking this information on April 22nd, 2015. + // * An access key exists but has never been used, at least not since IAM + // started tracking this information on April 22nd, 2015. // - // There is no sign-in data associated with the user + // * There is no sign-in data associated with the user // // ServiceName is a required field ServiceName *string `type:"string" required:"true"` @@ -10184,6 +10210,24 @@ func (s AccessKeyLastUsed) GoString() string { return s.String() } +// SetLastUsedDate sets the LastUsedDate field's value. +func (s *AccessKeyLastUsed) SetLastUsedDate(v time.Time) *AccessKeyLastUsed { + s.LastUsedDate = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *AccessKeyLastUsed) SetRegion(v string) *AccessKeyLastUsed { + s.Region = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *AccessKeyLastUsed) SetServiceName(v string) *AccessKeyLastUsed { + s.ServiceName = &v + return s +} + // Contains information about an AWS access key, without its secret key. // // This data type is used as a response element in the ListAccessKeys action. @@ -10214,6 +10258,30 @@ func (s AccessKeyMetadata) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *AccessKeyMetadata) SetAccessKeyId(v string) *AccessKeyMetadata { + s.AccessKeyId = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *AccessKeyMetadata) SetCreateDate(v time.Time) *AccessKeyMetadata { + s.CreateDate = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AccessKeyMetadata) SetStatus(v string) *AccessKeyMetadata { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AccessKeyMetadata) SetUserName(v string) *AccessKeyMetadata { + s.UserName = &v + return s +} + type AddClientIDToOpenIDConnectProviderInput struct { _ struct{} `type:"structure"` @@ -10263,6 +10331,18 @@ func (s *AddClientIDToOpenIDConnectProviderInput) Validate() error { return nil } +// SetClientID sets the ClientID field's value. +func (s *AddClientIDToOpenIDConnectProviderInput) SetClientID(v string) *AddClientIDToOpenIDConnectProviderInput { + s.ClientID = &v + return s +} + +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *AddClientIDToOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *AddClientIDToOpenIDConnectProviderInput { + s.OpenIDConnectProviderArn = &v + return s +} + type AddClientIDToOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` } @@ -10331,6 +10411,18 @@ func (s *AddRoleToInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *AddRoleToInstanceProfileInput) SetInstanceProfileName(v string) *AddRoleToInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *AddRoleToInstanceProfileInput) SetRoleName(v string) *AddRoleToInstanceProfileInput { + s.RoleName = &v + return s +} + type AddRoleToInstanceProfileOutput struct { _ struct{} `type:"structure"` } @@ -10399,6 +10491,18 @@ func (s *AddUserToGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *AddUserToGroupInput) SetGroupName(v string) *AddUserToGroupInput { + s.GroupName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AddUserToGroupInput) SetUserName(v string) *AddUserToGroupInput { + s.UserName = &v + return s +} + type AddUserToGroupOutput struct { _ struct{} `type:"structure"` } @@ -10467,6 +10571,18 @@ func (s *AttachGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *AttachGroupPolicyInput) SetGroupName(v string) *AttachGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *AttachGroupPolicyInput) SetPolicyArn(v string) *AttachGroupPolicyInput { + s.PolicyArn = &v + return s +} + type AttachGroupPolicyOutput struct { _ struct{} `type:"structure"` } @@ -10535,6 +10651,18 @@ func (s *AttachRolePolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *AttachRolePolicyInput) SetPolicyArn(v string) *AttachRolePolicyInput { + s.PolicyArn = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *AttachRolePolicyInput) SetRoleName(v string) *AttachRolePolicyInput { + s.RoleName = &v + return s +} + type AttachRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -10603,6 +10731,18 @@ func (s *AttachUserPolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *AttachUserPolicyInput) SetPolicyArn(v string) *AttachUserPolicyInput { + s.PolicyArn = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AttachUserPolicyInput) SetUserName(v string) *AttachUserPolicyInput { + s.UserName = &v + return s +} + type AttachUserPolicyOutput struct { _ struct{} `type:"structure"` } @@ -10632,8 +10772,8 @@ type AttachedPolicy struct { // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. PolicyArn *string `min:"20" type:"string"` @@ -10651,6 +10791,18 @@ func (s AttachedPolicy) GoString() string { return s.String() } +// SetPolicyArn sets the PolicyArn field's value. +func (s *AttachedPolicy) SetPolicyArn(v string) *AttachedPolicy { + s.PolicyArn = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *AttachedPolicy) SetPolicyName(v string) *AttachedPolicy { + s.PolicyName = &v + return s +} + type ChangePasswordInput struct { _ struct{} `type:"structure"` @@ -10707,6 +10859,18 @@ func (s *ChangePasswordInput) Validate() error { return nil } +// SetNewPassword sets the NewPassword field's value. +func (s *ChangePasswordInput) SetNewPassword(v string) *ChangePasswordInput { + s.NewPassword = &v + return s +} + +// SetOldPassword sets the OldPassword field's value. +func (s *ChangePasswordInput) SetOldPassword(v string) *ChangePasswordInput { + s.OldPassword = &v + return s +} + type ChangePasswordOutput struct { _ struct{} `type:"structure"` } @@ -10726,8 +10890,8 @@ func (s ChangePasswordOutput) GoString() string { // multiple values) to use in the simulation. This information is used when // evaluating the Condition elements of the input policies. // -// This data type is used as an input parameter to SimulateCustomPolicy and -// SimulateCustomPolicy . +// This data type is used as an input parameter to SimulateCustomPolicy and +// SimulateCustomPolicy. type ContextEntry struct { _ struct{} `type:"structure"` @@ -10768,6 +10932,24 @@ func (s *ContextEntry) Validate() error { return nil } +// SetContextKeyName sets the ContextKeyName field's value. +func (s *ContextEntry) SetContextKeyName(v string) *ContextEntry { + s.ContextKeyName = &v + return s +} + +// SetContextKeyType sets the ContextKeyType field's value. +func (s *ContextEntry) SetContextKeyType(v string) *ContextEntry { + s.ContextKeyType = &v + return s +} + +// SetContextKeyValues sets the ContextKeyValues field's value. +func (s *ContextEntry) SetContextKeyValues(v []*string) *ContextEntry { + s.ContextKeyValues = v + return s +} + type CreateAccessKeyInput struct { _ struct{} `type:"structure"` @@ -10802,6 +10984,12 @@ func (s *CreateAccessKeyInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *CreateAccessKeyInput) SetUserName(v string) *CreateAccessKeyInput { + s.UserName = &v + return s +} + // Contains the response to a successful CreateAccessKey request. type CreateAccessKeyOutput struct { _ struct{} `type:"structure"` @@ -10822,6 +11010,12 @@ func (s CreateAccessKeyOutput) GoString() string { return s.String() } +// SetAccessKey sets the AccessKey field's value. +func (s *CreateAccessKeyOutput) SetAccessKey(v *AccessKey) *CreateAccessKeyOutput { + s.AccessKey = v + return s +} + type CreateAccountAliasInput struct { _ struct{} `type:"structure"` @@ -10862,6 +11056,12 @@ func (s *CreateAccountAliasInput) Validate() error { return nil } +// SetAccountAlias sets the AccountAlias field's value. +func (s *CreateAccountAliasInput) SetAccountAlias(v string) *CreateAccountAliasInput { + s.AccountAlias = &v + return s +} + type CreateAccountAliasOutput struct { _ struct{} `type:"structure"` } @@ -10934,6 +11134,18 @@ func (s *CreateGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput { + s.GroupName = &v + return s +} + +// SetPath sets the Path field's value. +func (s *CreateGroupInput) SetPath(v string) *CreateGroupInput { + s.Path = &v + return s +} + // Contains the response to a successful CreateGroup request. type CreateGroupOutput struct { _ struct{} `type:"structure"` @@ -10954,6 +11166,12 @@ func (s CreateGroupOutput) GoString() string { return s.String() } +// SetGroup sets the Group field's value. +func (s *CreateGroupOutput) SetGroup(v *Group) *CreateGroupOutput { + s.Group = v + return s +} + type CreateInstanceProfileInput struct { _ struct{} `type:"structure"` @@ -11010,6 +11228,18 @@ func (s *CreateInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *CreateInstanceProfileInput) SetInstanceProfileName(v string) *CreateInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + +// SetPath sets the Path field's value. +func (s *CreateInstanceProfileInput) SetPath(v string) *CreateInstanceProfileInput { + s.Path = &v + return s +} + // Contains the response to a successful CreateInstanceProfile request. type CreateInstanceProfileOutput struct { _ struct{} `type:"structure"` @@ -11030,6 +11260,12 @@ func (s CreateInstanceProfileOutput) GoString() string { return s.String() } +// SetInstanceProfile sets the InstanceProfile field's value. +func (s *CreateInstanceProfileOutput) SetInstanceProfile(v *InstanceProfile) *CreateInstanceProfileOutput { + s.InstanceProfile = v + return s +} + type CreateLoginProfileInput struct { _ struct{} `type:"structure"` @@ -11093,6 +11329,24 @@ func (s *CreateLoginProfileInput) Validate() error { return nil } +// SetPassword sets the Password field's value. +func (s *CreateLoginProfileInput) SetPassword(v string) *CreateLoginProfileInput { + s.Password = &v + return s +} + +// SetPasswordResetRequired sets the PasswordResetRequired field's value. +func (s *CreateLoginProfileInput) SetPasswordResetRequired(v bool) *CreateLoginProfileInput { + s.PasswordResetRequired = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateLoginProfileInput) SetUserName(v string) *CreateLoginProfileInput { + s.UserName = &v + return s +} + // Contains the response to a successful CreateLoginProfile request. type CreateLoginProfileOutput struct { _ struct{} `type:"structure"` @@ -11113,6 +11367,12 @@ func (s CreateLoginProfileOutput) GoString() string { return s.String() } +// SetLoginProfile sets the LoginProfile field's value. +func (s *CreateLoginProfileOutput) SetLoginProfile(v *LoginProfile) *CreateLoginProfileOutput { + s.LoginProfile = v + return s +} + type CreateOpenIDConnectProviderInput struct { _ struct{} `type:"structure"` @@ -11195,6 +11455,24 @@ func (s *CreateOpenIDConnectProviderInput) Validate() error { return nil } +// SetClientIDList sets the ClientIDList field's value. +func (s *CreateOpenIDConnectProviderInput) SetClientIDList(v []*string) *CreateOpenIDConnectProviderInput { + s.ClientIDList = v + return s +} + +// SetThumbprintList sets the ThumbprintList field's value. +func (s *CreateOpenIDConnectProviderInput) SetThumbprintList(v []*string) *CreateOpenIDConnectProviderInput { + s.ThumbprintList = v + return s +} + +// SetUrl sets the Url field's value. +func (s *CreateOpenIDConnectProviderInput) SetUrl(v string) *CreateOpenIDConnectProviderInput { + s.Url = &v + return s +} + // Contains the response to a successful CreateOpenIDConnectProvider request. type CreateOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` @@ -11214,6 +11492,12 @@ func (s CreateOpenIDConnectProviderOutput) GoString() string { return s.String() } +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *CreateOpenIDConnectProviderOutput) SetOpenIDConnectProviderArn(v string) *CreateOpenIDConnectProviderOutput { + s.OpenIDConnectProviderArn = &v + return s +} + type CreatePolicyInput struct { _ struct{} `type:"structure"` @@ -11295,6 +11579,30 @@ func (s *CreatePolicyInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreatePolicyInput) SetDescription(v string) *CreatePolicyInput { + s.Description = &v + return s +} + +// SetPath sets the Path field's value. +func (s *CreatePolicyInput) SetPath(v string) *CreatePolicyInput { + s.Path = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreatePolicyInput) SetPolicyDocument(v string) *CreatePolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreatePolicyInput) SetPolicyName(v string) *CreatePolicyInput { + s.PolicyName = &v + return s +} + // Contains the response to a successful CreatePolicy request. type CreatePolicyOutput struct { _ struct{} `type:"structure"` @@ -11313,6 +11621,12 @@ func (s CreatePolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *CreatePolicyOutput) SetPolicy(v *Policy) *CreatePolicyOutput { + s.Policy = v + return s +} + type CreatePolicyVersionInput struct { _ struct{} `type:"structure"` @@ -11382,6 +11696,24 @@ func (s *CreatePolicyVersionInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *CreatePolicyVersionInput) SetPolicyArn(v string) *CreatePolicyVersionInput { + s.PolicyArn = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreatePolicyVersionInput) SetPolicyDocument(v string) *CreatePolicyVersionInput { + s.PolicyDocument = &v + return s +} + +// SetSetAsDefault sets the SetAsDefault field's value. +func (s *CreatePolicyVersionInput) SetSetAsDefault(v bool) *CreatePolicyVersionInput { + s.SetAsDefault = &v + return s +} + // Contains the response to a successful CreatePolicyVersion request. type CreatePolicyVersionOutput struct { _ struct{} `type:"structure"` @@ -11400,6 +11732,12 @@ func (s CreatePolicyVersionOutput) GoString() string { return s.String() } +// SetPolicyVersion sets the PolicyVersion field's value. +func (s *CreatePolicyVersionOutput) SetPolicyVersion(v *PolicyVersion) *CreatePolicyVersionOutput { + s.PolicyVersion = v + return s +} + type CreateRoleInput struct { _ struct{} `type:"structure"` @@ -11476,6 +11814,24 @@ func (s *CreateRoleInput) Validate() error { return nil } +// SetAssumeRolePolicyDocument sets the AssumeRolePolicyDocument field's value. +func (s *CreateRoleInput) SetAssumeRolePolicyDocument(v string) *CreateRoleInput { + s.AssumeRolePolicyDocument = &v + return s +} + +// SetPath sets the Path field's value. +func (s *CreateRoleInput) SetPath(v string) *CreateRoleInput { + s.Path = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *CreateRoleInput) SetRoleName(v string) *CreateRoleInput { + s.RoleName = &v + return s +} + // Contains the response to a successful CreateRole request. type CreateRoleOutput struct { _ struct{} `type:"structure"` @@ -11496,6 +11852,12 @@ func (s CreateRoleOutput) GoString() string { return s.String() } +// SetRole sets the Role field's value. +func (s *CreateRoleOutput) SetRole(v *Role) *CreateRoleOutput { + s.Role = v + return s +} + type CreateSAMLProviderInput struct { _ struct{} `type:"structure"` @@ -11553,6 +11915,18 @@ func (s *CreateSAMLProviderInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *CreateSAMLProviderInput) SetName(v string) *CreateSAMLProviderInput { + s.Name = &v + return s +} + +// SetSAMLMetadataDocument sets the SAMLMetadataDocument field's value. +func (s *CreateSAMLProviderInput) SetSAMLMetadataDocument(v string) *CreateSAMLProviderInput { + s.SAMLMetadataDocument = &v + return s +} + // Contains the response to a successful CreateSAMLProvider request. type CreateSAMLProviderOutput struct { _ struct{} `type:"structure"` @@ -11571,6 +11945,12 @@ func (s CreateSAMLProviderOutput) GoString() string { return s.String() } +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *CreateSAMLProviderOutput) SetSAMLProviderArn(v string) *CreateSAMLProviderOutput { + s.SAMLProviderArn = &v + return s +} + type CreateUserInput struct { _ struct{} `type:"structure"` @@ -11629,6 +12009,18 @@ func (s *CreateUserInput) Validate() error { return nil } +// SetPath sets the Path field's value. +func (s *CreateUserInput) SetPath(v string) *CreateUserInput { + s.Path = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateUserInput) SetUserName(v string) *CreateUserInput { + s.UserName = &v + return s +} + // Contains the response to a successful CreateUser request. type CreateUserOutput struct { _ struct{} `type:"structure"` @@ -11647,6 +12039,12 @@ func (s CreateUserOutput) GoString() string { return s.String() } +// SetUser sets the User field's value. +func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput { + s.User = v + return s +} + type CreateVirtualMFADeviceInput struct { _ struct{} `type:"structure"` @@ -11704,6 +12102,18 @@ func (s *CreateVirtualMFADeviceInput) Validate() error { return nil } +// SetPath sets the Path field's value. +func (s *CreateVirtualMFADeviceInput) SetPath(v string) *CreateVirtualMFADeviceInput { + s.Path = &v + return s +} + +// SetVirtualMFADeviceName sets the VirtualMFADeviceName field's value. +func (s *CreateVirtualMFADeviceInput) SetVirtualMFADeviceName(v string) *CreateVirtualMFADeviceInput { + s.VirtualMFADeviceName = &v + return s +} + // Contains the response to a successful CreateVirtualMFADevice request. type CreateVirtualMFADeviceOutput struct { _ struct{} `type:"structure"` @@ -11724,6 +12134,12 @@ func (s CreateVirtualMFADeviceOutput) GoString() string { return s.String() } +// SetVirtualMFADevice sets the VirtualMFADevice field's value. +func (s *CreateVirtualMFADeviceOutput) SetVirtualMFADevice(v *VirtualMFADevice) *CreateVirtualMFADeviceOutput { + s.VirtualMFADevice = v + return s +} + type DeactivateMFADeviceInput struct { _ struct{} `type:"structure"` @@ -11779,6 +12195,18 @@ func (s *DeactivateMFADeviceInput) Validate() error { return nil } +// SetSerialNumber sets the SerialNumber field's value. +func (s *DeactivateMFADeviceInput) SetSerialNumber(v string) *DeactivateMFADeviceInput { + s.SerialNumber = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeactivateMFADeviceInput) SetUserName(v string) *DeactivateMFADeviceInput { + s.UserName = &v + return s +} + type DeactivateMFADeviceOutput struct { _ struct{} `type:"structure"` } @@ -11843,6 +12271,18 @@ func (s *DeleteAccessKeyInput) Validate() error { return nil } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *DeleteAccessKeyInput) SetAccessKeyId(v string) *DeleteAccessKeyInput { + s.AccessKeyId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteAccessKeyInput) SetUserName(v string) *DeleteAccessKeyInput { + s.UserName = &v + return s +} + type DeleteAccessKeyOutput struct { _ struct{} `type:"structure"` } @@ -11897,6 +12337,12 @@ func (s *DeleteAccountAliasInput) Validate() error { return nil } +// SetAccountAlias sets the AccountAlias field's value. +func (s *DeleteAccountAliasInput) SetAccountAlias(v string) *DeleteAccountAliasInput { + s.AccountAlias = &v + return s +} + type DeleteAccountAliasOutput struct { _ struct{} `type:"structure"` } @@ -11978,6 +12424,12 @@ func (s *DeleteGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput { + s.GroupName = &v + return s +} + type DeleteGroupOutput struct { _ struct{} `type:"structure"` } @@ -12047,6 +12499,18 @@ func (s *DeleteGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *DeleteGroupPolicyInput) SetGroupName(v string) *DeleteGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteGroupPolicyInput) SetPolicyName(v string) *DeleteGroupPolicyInput { + s.PolicyName = &v + return s +} + type DeleteGroupPolicyOutput struct { _ struct{} `type:"structure"` } @@ -12100,6 +12564,12 @@ func (s *DeleteInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *DeleteInstanceProfileInput) SetInstanceProfileName(v string) *DeleteInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + type DeleteInstanceProfileOutput struct { _ struct{} `type:"structure"` } @@ -12153,6 +12623,12 @@ func (s *DeleteLoginProfileInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *DeleteLoginProfileInput) SetUserName(v string) *DeleteLoginProfileInput { + s.UserName = &v + return s +} + type DeleteLoginProfileOutput struct { _ struct{} `type:"structure"` } @@ -12204,6 +12680,12 @@ func (s *DeleteOpenIDConnectProviderInput) Validate() error { return nil } +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *DeleteOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *DeleteOpenIDConnectProviderInput { + s.OpenIDConnectProviderArn = &v + return s +} + type DeleteOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` } @@ -12257,6 +12739,12 @@ func (s *DeletePolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *DeletePolicyInput) SetPolicyArn(v string) *DeletePolicyInput { + s.PolicyArn = &v + return s +} + type DeletePolicyOutput struct { _ struct{} `type:"structure"` } @@ -12328,6 +12816,18 @@ func (s *DeletePolicyVersionInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *DeletePolicyVersionInput) SetPolicyArn(v string) *DeletePolicyVersionInput { + s.PolicyArn = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeletePolicyVersionInput) SetVersionId(v string) *DeletePolicyVersionInput { + s.VersionId = &v + return s +} + type DeletePolicyVersionOutput struct { _ struct{} `type:"structure"` } @@ -12381,6 +12881,12 @@ func (s *DeleteRoleInput) Validate() error { return nil } +// SetRoleName sets the RoleName field's value. +func (s *DeleteRoleInput) SetRoleName(v string) *DeleteRoleInput { + s.RoleName = &v + return s +} + type DeleteRoleOutput struct { _ struct{} `type:"structure"` } @@ -12450,6 +12956,18 @@ func (s *DeleteRolePolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteRolePolicyInput) SetPolicyName(v string) *DeleteRolePolicyInput { + s.PolicyName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *DeleteRolePolicyInput) SetRoleName(v string) *DeleteRolePolicyInput { + s.RoleName = &v + return s +} + type DeleteRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -12499,6 +13017,12 @@ func (s *DeleteSAMLProviderInput) Validate() error { return nil } +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *DeleteSAMLProviderInput) SetSAMLProviderArn(v string) *DeleteSAMLProviderInput { + s.SAMLProviderArn = &v + return s +} + type DeleteSAMLProviderOutput struct { _ struct{} `type:"structure"` } @@ -12567,6 +13091,18 @@ func (s *DeleteSSHPublicKeyInput) Validate() error { return nil } +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *DeleteSSHPublicKeyInput) SetSSHPublicKeyId(v string) *DeleteSSHPublicKeyInput { + s.SSHPublicKeyId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteSSHPublicKeyInput) SetUserName(v string) *DeleteSSHPublicKeyInput { + s.UserName = &v + return s +} + type DeleteSSHPublicKeyOutput struct { _ struct{} `type:"structure"` } @@ -12620,6 +13156,12 @@ func (s *DeleteServerCertificateInput) Validate() error { return nil } +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *DeleteServerCertificateInput) SetServerCertificateName(v string) *DeleteServerCertificateInput { + s.ServerCertificateName = &v + return s +} + type DeleteServerCertificateOutput struct { _ struct{} `type:"structure"` } @@ -12683,6 +13225,18 @@ func (s *DeleteSigningCertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *DeleteSigningCertificateInput) SetCertificateId(v string) *DeleteSigningCertificateInput { + s.CertificateId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteSigningCertificateInput) SetUserName(v string) *DeleteSigningCertificateInput { + s.UserName = &v + return s +} + type DeleteSigningCertificateOutput struct { _ struct{} `type:"structure"` } @@ -12736,6 +13290,12 @@ func (s *DeleteUserInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput { + s.UserName = &v + return s +} + type DeleteUserOutput struct { _ struct{} `type:"structure"` } @@ -12805,6 +13365,18 @@ func (s *DeleteUserPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteUserPolicyInput) SetPolicyName(v string) *DeleteUserPolicyInput { + s.PolicyName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteUserPolicyInput) SetUserName(v string) *DeleteUserPolicyInput { + s.UserName = &v + return s +} + type DeleteUserPolicyOutput struct { _ struct{} `type:"structure"` } @@ -12859,6 +13431,12 @@ func (s *DeleteVirtualMFADeviceInput) Validate() error { return nil } +// SetSerialNumber sets the SerialNumber field's value. +func (s *DeleteVirtualMFADeviceInput) SetSerialNumber(v string) *DeleteVirtualMFADeviceInput { + s.SerialNumber = &v + return s +} + type DeleteVirtualMFADeviceOutput struct { _ struct{} `type:"structure"` } @@ -12927,6 +13505,18 @@ func (s *DetachGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *DetachGroupPolicyInput) SetGroupName(v string) *DetachGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *DetachGroupPolicyInput) SetPolicyArn(v string) *DetachGroupPolicyInput { + s.PolicyArn = &v + return s +} + type DetachGroupPolicyOutput struct { _ struct{} `type:"structure"` } @@ -12995,6 +13585,18 @@ func (s *DetachRolePolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *DetachRolePolicyInput) SetPolicyArn(v string) *DetachRolePolicyInput { + s.PolicyArn = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *DetachRolePolicyInput) SetRoleName(v string) *DetachRolePolicyInput { + s.RoleName = &v + return s +} + type DetachRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -13063,6 +13665,18 @@ func (s *DetachUserPolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *DetachUserPolicyInput) SetPolicyArn(v string) *DetachUserPolicyInput { + s.PolicyArn = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DetachUserPolicyInput) SetUserName(v string) *DetachUserPolicyInput { + s.UserName = &v + return s +} + type DetachUserPolicyOutput struct { _ struct{} `type:"structure"` } @@ -13158,6 +13772,30 @@ func (s *EnableMFADeviceInput) Validate() error { return nil } +// SetAuthenticationCode1 sets the AuthenticationCode1 field's value. +func (s *EnableMFADeviceInput) SetAuthenticationCode1(v string) *EnableMFADeviceInput { + s.AuthenticationCode1 = &v + return s +} + +// SetAuthenticationCode2 sets the AuthenticationCode2 field's value. +func (s *EnableMFADeviceInput) SetAuthenticationCode2(v string) *EnableMFADeviceInput { + s.AuthenticationCode2 = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *EnableMFADeviceInput) SetSerialNumber(v string) *EnableMFADeviceInput { + s.SerialNumber = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *EnableMFADeviceInput) SetUserName(v string) *EnableMFADeviceInput { + s.UserName = &v + return s +} + type EnableMFADeviceOutput struct { _ struct{} `type:"structure"` } @@ -13174,8 +13812,8 @@ func (s EnableMFADeviceOutput) GoString() string { // Contains the results of a simulation. // -// This data type is used by the return parameter of SimulateCustomPolicy -// and SimulatePrincipalPolicy . +// This data type is used by the return parameter of SimulateCustomPolicy and +// SimulatePrincipalPolicy. type EvaluationResult struct { _ struct{} `type:"structure"` @@ -13231,6 +13869,48 @@ func (s EvaluationResult) GoString() string { return s.String() } +// SetEvalActionName sets the EvalActionName field's value. +func (s *EvaluationResult) SetEvalActionName(v string) *EvaluationResult { + s.EvalActionName = &v + return s +} + +// SetEvalDecision sets the EvalDecision field's value. +func (s *EvaluationResult) SetEvalDecision(v string) *EvaluationResult { + s.EvalDecision = &v + return s +} + +// SetEvalDecisionDetails sets the EvalDecisionDetails field's value. +func (s *EvaluationResult) SetEvalDecisionDetails(v map[string]*string) *EvaluationResult { + s.EvalDecisionDetails = v + return s +} + +// SetEvalResourceName sets the EvalResourceName field's value. +func (s *EvaluationResult) SetEvalResourceName(v string) *EvaluationResult { + s.EvalResourceName = &v + return s +} + +// SetMatchedStatements sets the MatchedStatements field's value. +func (s *EvaluationResult) SetMatchedStatements(v []*Statement) *EvaluationResult { + s.MatchedStatements = v + return s +} + +// SetMissingContextValues sets the MissingContextValues field's value. +func (s *EvaluationResult) SetMissingContextValues(v []*string) *EvaluationResult { + s.MissingContextValues = v + return s +} + +// SetResourceSpecificResults sets the ResourceSpecificResults field's value. +func (s *EvaluationResult) SetResourceSpecificResults(v []*ResourceSpecificResult) *EvaluationResult { + s.ResourceSpecificResults = v + return s +} + type GenerateCredentialReportInput struct { _ struct{} `type:"structure"` } @@ -13266,6 +13946,18 @@ func (s GenerateCredentialReportOutput) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *GenerateCredentialReportOutput) SetDescription(v string) *GenerateCredentialReportOutput { + s.Description = &v + return s +} + +// SetState sets the State field's value. +func (s *GenerateCredentialReportOutput) SetState(v string) *GenerateCredentialReportOutput { + s.State = &v + return s +} + type GetAccessKeyLastUsedInput struct { _ struct{} `type:"structure"` @@ -13305,6 +13997,12 @@ func (s *GetAccessKeyLastUsedInput) Validate() error { return nil } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *GetAccessKeyLastUsedInput) SetAccessKeyId(v string) *GetAccessKeyLastUsedInput { + s.AccessKeyId = &v + return s +} + // Contains the response to a successful GetAccessKeyLastUsed request. It is // also returned as a member of the AccessKeyMetaData structure returned by // the ListAccessKeys action. @@ -13328,6 +14026,18 @@ func (s GetAccessKeyLastUsedOutput) GoString() string { return s.String() } +// SetAccessKeyLastUsed sets the AccessKeyLastUsed field's value. +func (s *GetAccessKeyLastUsedOutput) SetAccessKeyLastUsed(v *AccessKeyLastUsed) *GetAccessKeyLastUsedOutput { + s.AccessKeyLastUsed = v + return s +} + +// SetUserName sets the UserName field's value. +func (s *GetAccessKeyLastUsedOutput) SetUserName(v string) *GetAccessKeyLastUsedOutput { + s.UserName = &v + return s +} + type GetAccountAuthorizationDetailsInput struct { _ struct{} `type:"structure"` @@ -13384,6 +14094,24 @@ func (s *GetAccountAuthorizationDetailsInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *GetAccountAuthorizationDetailsInput) SetFilter(v []*string) *GetAccountAuthorizationDetailsInput { + s.Filter = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetAccountAuthorizationDetailsInput) SetMarker(v string) *GetAccountAuthorizationDetailsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *GetAccountAuthorizationDetailsInput) SetMaxItems(v int64) *GetAccountAuthorizationDetailsInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful GetAccountAuthorizationDetails request. type GetAccountAuthorizationDetailsOutput struct { _ struct{} `type:"structure"` @@ -13423,6 +14151,42 @@ func (s GetAccountAuthorizationDetailsOutput) GoString() string { return s.String() } +// SetGroupDetailList sets the GroupDetailList field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetGroupDetailList(v []*GroupDetail) *GetAccountAuthorizationDetailsOutput { + s.GroupDetailList = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetIsTruncated(v bool) *GetAccountAuthorizationDetailsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetMarker(v string) *GetAccountAuthorizationDetailsOutput { + s.Marker = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetPolicies(v []*ManagedPolicyDetail) *GetAccountAuthorizationDetailsOutput { + s.Policies = v + return s +} + +// SetRoleDetailList sets the RoleDetailList field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetRoleDetailList(v []*RoleDetail) *GetAccountAuthorizationDetailsOutput { + s.RoleDetailList = v + return s +} + +// SetUserDetailList sets the UserDetailList field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetUserDetailList(v []*UserDetail) *GetAccountAuthorizationDetailsOutput { + s.UserDetailList = v + return s +} + type GetAccountPasswordPolicyInput struct { _ struct{} `type:"structure"` } @@ -13443,7 +14207,7 @@ type GetAccountPasswordPolicyOutput struct { // Contains information about the account password policy. // - // This data type is used as a response element in the GetAccountPasswordPolicy + // This data type is used as a response element in the GetAccountPasswordPolicy // action. // // PasswordPolicy is a required field @@ -13460,6 +14224,12 @@ func (s GetAccountPasswordPolicyOutput) GoString() string { return s.String() } +// SetPasswordPolicy sets the PasswordPolicy field's value. +func (s *GetAccountPasswordPolicyOutput) SetPasswordPolicy(v *PasswordPolicy) *GetAccountPasswordPolicyOutput { + s.PasswordPolicy = v + return s +} + type GetAccountSummaryInput struct { _ struct{} `type:"structure"` } @@ -13493,6 +14263,12 @@ func (s GetAccountSummaryOutput) GoString() string { return s.String() } +// SetSummaryMap sets the SummaryMap field's value. +func (s *GetAccountSummaryOutput) SetSummaryMap(v map[string]*int64) *GetAccountSummaryOutput { + s.SummaryMap = v + return s +} + type GetContextKeysForCustomPolicyInput struct { _ struct{} `type:"structure"` @@ -13533,6 +14309,12 @@ func (s *GetContextKeysForCustomPolicyInput) Validate() error { return nil } +// SetPolicyInputList sets the PolicyInputList field's value. +func (s *GetContextKeysForCustomPolicyInput) SetPolicyInputList(v []*string) *GetContextKeysForCustomPolicyInput { + s.PolicyInputList = v + return s +} + // Contains the response to a successful GetContextKeysForPrincipalPolicy or // GetContextKeysForCustomPolicy request. type GetContextKeysForPolicyResponse struct { @@ -13552,6 +14334,12 @@ func (s GetContextKeysForPolicyResponse) GoString() string { return s.String() } +// SetContextKeyNames sets the ContextKeyNames field's value. +func (s *GetContextKeysForPolicyResponse) SetContextKeyNames(v []*string) *GetContextKeysForPolicyResponse { + s.ContextKeyNames = v + return s +} + type GetContextKeysForPrincipalPolicyInput struct { _ struct{} `type:"structure"` @@ -13607,6 +14395,18 @@ func (s *GetContextKeysForPrincipalPolicyInput) Validate() error { return nil } +// SetPolicyInputList sets the PolicyInputList field's value. +func (s *GetContextKeysForPrincipalPolicyInput) SetPolicyInputList(v []*string) *GetContextKeysForPrincipalPolicyInput { + s.PolicyInputList = v + return s +} + +// SetPolicySourceArn sets the PolicySourceArn field's value. +func (s *GetContextKeysForPrincipalPolicyInput) SetPolicySourceArn(v string) *GetContextKeysForPrincipalPolicyInput { + s.PolicySourceArn = &v + return s +} + type GetCredentialReportInput struct { _ struct{} `type:"structure"` } @@ -13648,6 +14448,24 @@ func (s GetCredentialReportOutput) GoString() string { return s.String() } +// SetContent sets the Content field's value. +func (s *GetCredentialReportOutput) SetContent(v []byte) *GetCredentialReportOutput { + s.Content = v + return s +} + +// SetGeneratedTime sets the GeneratedTime field's value. +func (s *GetCredentialReportOutput) SetGeneratedTime(v time.Time) *GetCredentialReportOutput { + s.GeneratedTime = &v + return s +} + +// SetReportFormat sets the ReportFormat field's value. +func (s *GetCredentialReportOutput) SetReportFormat(v string) *GetCredentialReportOutput { + s.ReportFormat = &v + return s +} + type GetGroupInput struct { _ struct{} `type:"structure"` @@ -13710,6 +14528,24 @@ func (s *GetGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *GetGroupInput) SetGroupName(v string) *GetGroupInput { + s.GroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetGroupInput) SetMarker(v string) *GetGroupInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *GetGroupInput) SetMaxItems(v int64) *GetGroupInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful GetGroup request. type GetGroupOutput struct { _ struct{} `type:"structure"` @@ -13747,6 +14583,30 @@ func (s GetGroupOutput) GoString() string { return s.String() } +// SetGroup sets the Group field's value. +func (s *GetGroupOutput) SetGroup(v *Group) *GetGroupOutput { + s.Group = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *GetGroupOutput) SetIsTruncated(v bool) *GetGroupOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetGroupOutput) SetMarker(v string) *GetGroupOutput { + s.Marker = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *GetGroupOutput) SetUsers(v []*User) *GetGroupOutput { + s.Users = v + return s +} + type GetGroupPolicyInput struct { _ struct{} `type:"structure"` @@ -13801,6 +14661,18 @@ func (s *GetGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *GetGroupPolicyInput) SetGroupName(v string) *GetGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetGroupPolicyInput) SetPolicyName(v string) *GetGroupPolicyInput { + s.PolicyName = &v + return s +} + // Contains the response to a successful GetGroupPolicy request. type GetGroupPolicyOutput struct { _ struct{} `type:"structure"` @@ -13831,6 +14703,24 @@ func (s GetGroupPolicyOutput) GoString() string { return s.String() } +// SetGroupName sets the GroupName field's value. +func (s *GetGroupPolicyOutput) SetGroupName(v string) *GetGroupPolicyOutput { + s.GroupName = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *GetGroupPolicyOutput) SetPolicyDocument(v string) *GetGroupPolicyOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetGroupPolicyOutput) SetPolicyName(v string) *GetGroupPolicyOutput { + s.PolicyName = &v + return s +} + type GetInstanceProfileInput struct { _ struct{} `type:"structure"` @@ -13870,6 +14760,12 @@ func (s *GetInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *GetInstanceProfileInput) SetInstanceProfileName(v string) *GetInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + // Contains the response to a successful GetInstanceProfile request. type GetInstanceProfileOutput struct { _ struct{} `type:"structure"` @@ -13890,6 +14786,12 @@ func (s GetInstanceProfileOutput) GoString() string { return s.String() } +// SetInstanceProfile sets the InstanceProfile field's value. +func (s *GetInstanceProfileOutput) SetInstanceProfile(v *InstanceProfile) *GetInstanceProfileOutput { + s.InstanceProfile = v + return s +} + type GetLoginProfileInput struct { _ struct{} `type:"structure"` @@ -13929,6 +14831,12 @@ func (s *GetLoginProfileInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *GetLoginProfileInput) SetUserName(v string) *GetLoginProfileInput { + s.UserName = &v + return s +} + // Contains the response to a successful GetLoginProfile request. type GetLoginProfileOutput struct { _ struct{} `type:"structure"` @@ -13949,6 +14857,12 @@ func (s GetLoginProfileOutput) GoString() string { return s.String() } +// SetLoginProfile sets the LoginProfile field's value. +func (s *GetLoginProfileOutput) SetLoginProfile(v *LoginProfile) *GetLoginProfileOutput { + s.LoginProfile = v + return s +} + type GetOpenIDConnectProviderInput struct { _ struct{} `type:"structure"` @@ -13990,6 +14904,12 @@ func (s *GetOpenIDConnectProviderInput) Validate() error { return nil } +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *GetOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *GetOpenIDConnectProviderInput { + s.OpenIDConnectProviderArn = &v + return s +} + // Contains the response to a successful GetOpenIDConnectProvider request. type GetOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` @@ -14021,6 +14941,30 @@ func (s GetOpenIDConnectProviderOutput) GoString() string { return s.String() } +// SetClientIDList sets the ClientIDList field's value. +func (s *GetOpenIDConnectProviderOutput) SetClientIDList(v []*string) *GetOpenIDConnectProviderOutput { + s.ClientIDList = v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *GetOpenIDConnectProviderOutput) SetCreateDate(v time.Time) *GetOpenIDConnectProviderOutput { + s.CreateDate = &v + return s +} + +// SetThumbprintList sets the ThumbprintList field's value. +func (s *GetOpenIDConnectProviderOutput) SetThumbprintList(v []*string) *GetOpenIDConnectProviderOutput { + s.ThumbprintList = v + return s +} + +// SetUrl sets the Url field's value. +func (s *GetOpenIDConnectProviderOutput) SetUrl(v string) *GetOpenIDConnectProviderOutput { + s.Url = &v + return s +} + type GetPolicyInput struct { _ struct{} `type:"structure"` @@ -14061,6 +15005,12 @@ func (s *GetPolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *GetPolicyInput) SetPolicyArn(v string) *GetPolicyInput { + s.PolicyArn = &v + return s +} + // Contains the response to a successful GetPolicy request. type GetPolicyOutput struct { _ struct{} `type:"structure"` @@ -14079,6 +15029,12 @@ func (s GetPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetPolicyOutput) SetPolicy(v *Policy) *GetPolicyOutput { + s.Policy = v + return s +} + type GetPolicyVersionInput struct { _ struct{} `type:"structure"` @@ -14132,6 +15088,18 @@ func (s *GetPolicyVersionInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *GetPolicyVersionInput) SetPolicyArn(v string) *GetPolicyVersionInput { + s.PolicyArn = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetPolicyVersionInput) SetVersionId(v string) *GetPolicyVersionInput { + s.VersionId = &v + return s +} + // Contains the response to a successful GetPolicyVersion request. type GetPolicyVersionOutput struct { _ struct{} `type:"structure"` @@ -14150,6 +15118,12 @@ func (s GetPolicyVersionOutput) GoString() string { return s.String() } +// SetPolicyVersion sets the PolicyVersion field's value. +func (s *GetPolicyVersionOutput) SetPolicyVersion(v *PolicyVersion) *GetPolicyVersionOutput { + s.PolicyVersion = v + return s +} + type GetRoleInput struct { _ struct{} `type:"structure"` @@ -14189,6 +15163,12 @@ func (s *GetRoleInput) Validate() error { return nil } +// SetRoleName sets the RoleName field's value. +func (s *GetRoleInput) SetRoleName(v string) *GetRoleInput { + s.RoleName = &v + return s +} + // Contains the response to a successful GetRole request. type GetRoleOutput struct { _ struct{} `type:"structure"` @@ -14209,6 +15189,12 @@ func (s GetRoleOutput) GoString() string { return s.String() } +// SetRole sets the Role field's value. +func (s *GetRoleOutput) SetRole(v *Role) *GetRoleOutput { + s.Role = v + return s +} + type GetRolePolicyInput struct { _ struct{} `type:"structure"` @@ -14263,6 +15249,18 @@ func (s *GetRolePolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *GetRolePolicyInput) SetPolicyName(v string) *GetRolePolicyInput { + s.PolicyName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *GetRolePolicyInput) SetRoleName(v string) *GetRolePolicyInput { + s.RoleName = &v + return s +} + // Contains the response to a successful GetRolePolicy request. type GetRolePolicyOutput struct { _ struct{} `type:"structure"` @@ -14293,6 +15291,24 @@ func (s GetRolePolicyOutput) GoString() string { return s.String() } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *GetRolePolicyOutput) SetPolicyDocument(v string) *GetRolePolicyOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetRolePolicyOutput) SetPolicyName(v string) *GetRolePolicyOutput { + s.PolicyName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *GetRolePolicyOutput) SetRoleName(v string) *GetRolePolicyOutput { + s.RoleName = &v + return s +} + type GetSAMLProviderInput struct { _ struct{} `type:"structure"` @@ -14333,6 +15349,12 @@ func (s *GetSAMLProviderInput) Validate() error { return nil } +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *GetSAMLProviderInput) SetSAMLProviderArn(v string) *GetSAMLProviderInput { + s.SAMLProviderArn = &v + return s +} + // Contains the response to a successful GetSAMLProvider request. type GetSAMLProviderOutput struct { _ struct{} `type:"structure"` @@ -14357,6 +15379,24 @@ func (s GetSAMLProviderOutput) GoString() string { return s.String() } +// SetCreateDate sets the CreateDate field's value. +func (s *GetSAMLProviderOutput) SetCreateDate(v time.Time) *GetSAMLProviderOutput { + s.CreateDate = &v + return s +} + +// SetSAMLMetadataDocument sets the SAMLMetadataDocument field's value. +func (s *GetSAMLProviderOutput) SetSAMLMetadataDocument(v string) *GetSAMLProviderOutput { + s.SAMLMetadataDocument = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *GetSAMLProviderOutput) SetValidUntil(v time.Time) *GetSAMLProviderOutput { + s.ValidUntil = &v + return s +} + type GetSSHPublicKeyInput struct { _ struct{} `type:"structure"` @@ -14421,6 +15461,24 @@ func (s *GetSSHPublicKeyInput) Validate() error { return nil } +// SetEncoding sets the Encoding field's value. +func (s *GetSSHPublicKeyInput) SetEncoding(v string) *GetSSHPublicKeyInput { + s.Encoding = &v + return s +} + +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *GetSSHPublicKeyInput) SetSSHPublicKeyId(v string) *GetSSHPublicKeyInput { + s.SSHPublicKeyId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *GetSSHPublicKeyInput) SetUserName(v string) *GetSSHPublicKeyInput { + s.UserName = &v + return s +} + // Contains the response to a successful GetSSHPublicKey request. type GetSSHPublicKeyOutput struct { _ struct{} `type:"structure"` @@ -14439,6 +15497,12 @@ func (s GetSSHPublicKeyOutput) GoString() string { return s.String() } +// SetSSHPublicKey sets the SSHPublicKey field's value. +func (s *GetSSHPublicKeyOutput) SetSSHPublicKey(v *SSHPublicKey) *GetSSHPublicKeyOutput { + s.SSHPublicKey = v + return s +} + type GetServerCertificateInput struct { _ struct{} `type:"structure"` @@ -14478,6 +15542,12 @@ func (s *GetServerCertificateInput) Validate() error { return nil } +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *GetServerCertificateInput) SetServerCertificateName(v string) *GetServerCertificateInput { + s.ServerCertificateName = &v + return s +} + // Contains the response to a successful GetServerCertificate request. type GetServerCertificateOutput struct { _ struct{} `type:"structure"` @@ -14498,6 +15568,12 @@ func (s GetServerCertificateOutput) GoString() string { return s.String() } +// SetServerCertificate sets the ServerCertificate field's value. +func (s *GetServerCertificateOutput) SetServerCertificate(v *ServerCertificate) *GetServerCertificateOutput { + s.ServerCertificate = v + return s +} + type GetUserInput struct { _ struct{} `type:"structure"` @@ -14534,6 +15610,12 @@ func (s *GetUserInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *GetUserInput) SetUserName(v string) *GetUserInput { + s.UserName = &v + return s +} + // Contains the response to a successful GetUser request. type GetUserOutput struct { _ struct{} `type:"structure"` @@ -14554,6 +15636,12 @@ func (s GetUserOutput) GoString() string { return s.String() } +// SetUser sets the User field's value. +func (s *GetUserOutput) SetUser(v *User) *GetUserOutput { + s.User = v + return s +} + type GetUserPolicyInput struct { _ struct{} `type:"structure"` @@ -14608,6 +15696,18 @@ func (s *GetUserPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *GetUserPolicyInput) SetPolicyName(v string) *GetUserPolicyInput { + s.PolicyName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *GetUserPolicyInput) SetUserName(v string) *GetUserPolicyInput { + s.UserName = &v + return s +} + // Contains the response to a successful GetUserPolicy request. type GetUserPolicyOutput struct { _ struct{} `type:"structure"` @@ -14638,15 +15738,33 @@ func (s GetUserPolicyOutput) GoString() string { return s.String() } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *GetUserPolicyOutput) SetPolicyDocument(v string) *GetUserPolicyOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetUserPolicyOutput) SetPolicyName(v string) *GetUserPolicyOutput { + s.PolicyName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *GetUserPolicyOutput) SetUserName(v string) *GetUserPolicyOutput { + s.UserName = &v + return s +} + // Contains information about an IAM group entity. // // This data type is used as a response element in the following actions: // -// CreateGroup +// * CreateGroup // -// GetGroup +// * GetGroup // -// ListGroups +// * ListGroups type Group struct { _ struct{} `type:"structure"` @@ -14693,6 +15811,36 @@ func (s Group) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Group) SetArn(v string) *Group { + s.Arn = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *Group) SetCreateDate(v time.Time) *Group { + s.CreateDate = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *Group) SetGroupId(v string) *Group { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *Group) SetGroupName(v string) *Group { + s.GroupName = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Group) SetPath(v string) *Group { + s.Path = &v + return s +} + // Contains information about an IAM group, including all of the group's policies. // // This data type is used as a response element in the GetAccountAuthorizationDetails @@ -14702,8 +15850,8 @@ type GroupDetail struct { // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -14741,17 +15889,59 @@ func (s GroupDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *GroupDetail) SetArn(v string) *GroupDetail { + s.Arn = &v + return s +} + +// SetAttachedManagedPolicies sets the AttachedManagedPolicies field's value. +func (s *GroupDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *GroupDetail { + s.AttachedManagedPolicies = v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *GroupDetail) SetCreateDate(v time.Time) *GroupDetail { + s.CreateDate = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *GroupDetail) SetGroupId(v string) *GroupDetail { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *GroupDetail) SetGroupName(v string) *GroupDetail { + s.GroupName = &v + return s +} + +// SetGroupPolicyList sets the GroupPolicyList field's value. +func (s *GroupDetail) SetGroupPolicyList(v []*PolicyDetail) *GroupDetail { + s.GroupPolicyList = v + return s +} + +// SetPath sets the Path field's value. +func (s *GroupDetail) SetPath(v string) *GroupDetail { + s.Path = &v + return s +} + // Contains information about an instance profile. // // This data type is used as a response element in the following actions: // -// CreateInstanceProfile +// * CreateInstanceProfile // -// GetInstanceProfile +// * GetInstanceProfile // -// ListInstanceProfiles +// * ListInstanceProfiles // -// ListInstanceProfilesForRole +// * ListInstanceProfilesForRole type InstanceProfile struct { _ struct{} `type:"structure"` @@ -14803,6 +15993,42 @@ func (s InstanceProfile) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *InstanceProfile) SetArn(v string) *InstanceProfile { + s.Arn = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *InstanceProfile) SetCreateDate(v time.Time) *InstanceProfile { + s.CreateDate = &v + return s +} + +// SetInstanceProfileId sets the InstanceProfileId field's value. +func (s *InstanceProfile) SetInstanceProfileId(v string) *InstanceProfile { + s.InstanceProfileId = &v + return s +} + +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *InstanceProfile) SetInstanceProfileName(v string) *InstanceProfile { + s.InstanceProfileName = &v + return s +} + +// SetPath sets the Path field's value. +func (s *InstanceProfile) SetPath(v string) *InstanceProfile { + s.Path = &v + return s +} + +// SetRoles sets the Roles field's value. +func (s *InstanceProfile) SetRoles(v []*Role) *InstanceProfile { + s.Roles = v + return s +} + type ListAccessKeysInput struct { _ struct{} `type:"structure"` @@ -14860,6 +16086,24 @@ func (s *ListAccessKeysInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListAccessKeysInput) SetMarker(v string) *ListAccessKeysInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAccessKeysInput) SetMaxItems(v int64) *ListAccessKeysInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListAccessKeysInput) SetUserName(v string) *ListAccessKeysInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListAccessKeys request. type ListAccessKeysOutput struct { _ struct{} `type:"structure"` @@ -14892,6 +16136,24 @@ func (s ListAccessKeysOutput) GoString() string { return s.String() } +// SetAccessKeyMetadata sets the AccessKeyMetadata field's value. +func (s *ListAccessKeysOutput) SetAccessKeyMetadata(v []*AccessKeyMetadata) *ListAccessKeysOutput { + s.AccessKeyMetadata = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAccessKeysOutput) SetIsTruncated(v bool) *ListAccessKeysOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAccessKeysOutput) SetMarker(v string) *ListAccessKeysOutput { + s.Marker = &v + return s +} + type ListAccountAliasesInput struct { _ struct{} `type:"structure"` @@ -14939,6 +16201,18 @@ func (s *ListAccountAliasesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListAccountAliasesInput) SetMarker(v string) *ListAccountAliasesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAccountAliasesInput) SetMaxItems(v int64) *ListAccountAliasesInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful ListAccountAliases request. type ListAccountAliasesOutput struct { _ struct{} `type:"structure"` @@ -14972,6 +16246,24 @@ func (s ListAccountAliasesOutput) GoString() string { return s.String() } +// SetAccountAliases sets the AccountAliases field's value. +func (s *ListAccountAliasesOutput) SetAccountAliases(v []*string) *ListAccountAliasesOutput { + s.AccountAliases = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAccountAliasesOutput) SetIsTruncated(v bool) *ListAccountAliasesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAccountAliasesOutput) SetMarker(v string) *ListAccountAliasesOutput { + s.Marker = &v + return s +} + type ListAttachedGroupPoliciesInput struct { _ struct{} `type:"structure"` @@ -15045,6 +16337,30 @@ func (s *ListAttachedGroupPoliciesInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *ListAttachedGroupPoliciesInput) SetGroupName(v string) *ListAttachedGroupPoliciesInput { + s.GroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAttachedGroupPoliciesInput) SetMarker(v string) *ListAttachedGroupPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAttachedGroupPoliciesInput) SetMaxItems(v int64) *ListAttachedGroupPoliciesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListAttachedGroupPoliciesInput) SetPathPrefix(v string) *ListAttachedGroupPoliciesInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListAttachedGroupPolicies request. type ListAttachedGroupPoliciesOutput struct { _ struct{} `type:"structure"` @@ -15075,6 +16391,24 @@ func (s ListAttachedGroupPoliciesOutput) GoString() string { return s.String() } +// SetAttachedPolicies sets the AttachedPolicies field's value. +func (s *ListAttachedGroupPoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedGroupPoliciesOutput { + s.AttachedPolicies = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAttachedGroupPoliciesOutput) SetIsTruncated(v bool) *ListAttachedGroupPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAttachedGroupPoliciesOutput) SetMarker(v string) *ListAttachedGroupPoliciesOutput { + s.Marker = &v + return s +} + type ListAttachedRolePoliciesInput struct { _ struct{} `type:"structure"` @@ -15147,6 +16481,30 @@ func (s *ListAttachedRolePoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListAttachedRolePoliciesInput) SetMarker(v string) *ListAttachedRolePoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAttachedRolePoliciesInput) SetMaxItems(v int64) *ListAttachedRolePoliciesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListAttachedRolePoliciesInput) SetPathPrefix(v string) *ListAttachedRolePoliciesInput { + s.PathPrefix = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ListAttachedRolePoliciesInput) SetRoleName(v string) *ListAttachedRolePoliciesInput { + s.RoleName = &v + return s +} + // Contains the response to a successful ListAttachedRolePolicies request. type ListAttachedRolePoliciesOutput struct { _ struct{} `type:"structure"` @@ -15177,6 +16535,24 @@ func (s ListAttachedRolePoliciesOutput) GoString() string { return s.String() } +// SetAttachedPolicies sets the AttachedPolicies field's value. +func (s *ListAttachedRolePoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedRolePoliciesOutput { + s.AttachedPolicies = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAttachedRolePoliciesOutput) SetIsTruncated(v bool) *ListAttachedRolePoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAttachedRolePoliciesOutput) SetMarker(v string) *ListAttachedRolePoliciesOutput { + s.Marker = &v + return s +} + type ListAttachedUserPoliciesInput struct { _ struct{} `type:"structure"` @@ -15249,6 +16625,30 @@ func (s *ListAttachedUserPoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListAttachedUserPoliciesInput) SetMarker(v string) *ListAttachedUserPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAttachedUserPoliciesInput) SetMaxItems(v int64) *ListAttachedUserPoliciesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListAttachedUserPoliciesInput) SetPathPrefix(v string) *ListAttachedUserPoliciesInput { + s.PathPrefix = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListAttachedUserPoliciesInput) SetUserName(v string) *ListAttachedUserPoliciesInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListAttachedUserPolicies request. type ListAttachedUserPoliciesOutput struct { _ struct{} `type:"structure"` @@ -15279,6 +16679,24 @@ func (s ListAttachedUserPoliciesOutput) GoString() string { return s.String() } +// SetAttachedPolicies sets the AttachedPolicies field's value. +func (s *ListAttachedUserPoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedUserPoliciesOutput { + s.AttachedPolicies = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAttachedUserPoliciesOutput) SetIsTruncated(v bool) *ListAttachedUserPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAttachedUserPoliciesOutput) SetMarker(v string) *ListAttachedUserPoliciesOutput { + s.Marker = &v + return s +} + type ListEntitiesForPolicyInput struct { _ struct{} `type:"structure"` @@ -15362,6 +16780,36 @@ func (s *ListEntitiesForPolicyInput) Validate() error { return nil } +// SetEntityFilter sets the EntityFilter field's value. +func (s *ListEntitiesForPolicyInput) SetEntityFilter(v string) *ListEntitiesForPolicyInput { + s.EntityFilter = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListEntitiesForPolicyInput) SetMarker(v string) *ListEntitiesForPolicyInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListEntitiesForPolicyInput) SetMaxItems(v int64) *ListEntitiesForPolicyInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListEntitiesForPolicyInput) SetPathPrefix(v string) *ListEntitiesForPolicyInput { + s.PathPrefix = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *ListEntitiesForPolicyInput) SetPolicyArn(v string) *ListEntitiesForPolicyInput { + s.PolicyArn = &v + return s +} + // Contains the response to a successful ListEntitiesForPolicy request. type ListEntitiesForPolicyOutput struct { _ struct{} `type:"structure"` @@ -15398,6 +16846,36 @@ func (s ListEntitiesForPolicyOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListEntitiesForPolicyOutput) SetIsTruncated(v bool) *ListEntitiesForPolicyOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListEntitiesForPolicyOutput) SetMarker(v string) *ListEntitiesForPolicyOutput { + s.Marker = &v + return s +} + +// SetPolicyGroups sets the PolicyGroups field's value. +func (s *ListEntitiesForPolicyOutput) SetPolicyGroups(v []*PolicyGroup) *ListEntitiesForPolicyOutput { + s.PolicyGroups = v + return s +} + +// SetPolicyRoles sets the PolicyRoles field's value. +func (s *ListEntitiesForPolicyOutput) SetPolicyRoles(v []*PolicyRole) *ListEntitiesForPolicyOutput { + s.PolicyRoles = v + return s +} + +// SetPolicyUsers sets the PolicyUsers field's value. +func (s *ListEntitiesForPolicyOutput) SetPolicyUsers(v []*PolicyUser) *ListEntitiesForPolicyOutput { + s.PolicyUsers = v + return s +} + type ListGroupPoliciesInput struct { _ struct{} `type:"structure"` @@ -15460,6 +16938,24 @@ func (s *ListGroupPoliciesInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *ListGroupPoliciesInput) SetGroupName(v string) *ListGroupPoliciesInput { + s.GroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGroupPoliciesInput) SetMarker(v string) *ListGroupPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListGroupPoliciesInput) SetMaxItems(v int64) *ListGroupPoliciesInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful ListGroupPolicies request. type ListGroupPoliciesOutput struct { _ struct{} `type:"structure"` @@ -15492,6 +16988,24 @@ func (s ListGroupPoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListGroupPoliciesOutput) SetIsTruncated(v bool) *ListGroupPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGroupPoliciesOutput) SetMarker(v string) *ListGroupPoliciesOutput { + s.Marker = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListGroupPoliciesOutput) SetPolicyNames(v []*string) *ListGroupPoliciesOutput { + s.PolicyNames = v + return s +} + type ListGroupsForUserInput struct { _ struct{} `type:"structure"` @@ -15554,6 +17068,24 @@ func (s *ListGroupsForUserInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListGroupsForUserInput) SetMarker(v string) *ListGroupsForUserInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListGroupsForUserInput) SetMaxItems(v int64) *ListGroupsForUserInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListGroupsForUserInput) SetUserName(v string) *ListGroupsForUserInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListGroupsForUser request. type ListGroupsForUserOutput struct { _ struct{} `type:"structure"` @@ -15586,6 +17118,24 @@ func (s ListGroupsForUserOutput) GoString() string { return s.String() } +// SetGroups sets the Groups field's value. +func (s *ListGroupsForUserOutput) SetGroups(v []*Group) *ListGroupsForUserOutput { + s.Groups = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListGroupsForUserOutput) SetIsTruncated(v bool) *ListGroupsForUserOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGroupsForUserOutput) SetMarker(v string) *ListGroupsForUserOutput { + s.Marker = &v + return s +} + type ListGroupsInput struct { _ struct{} `type:"structure"` @@ -15648,6 +17198,24 @@ func (s *ListGroupsInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListGroupsInput) SetMarker(v string) *ListGroupsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListGroupsInput) SetMaxItems(v int64) *ListGroupsInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListGroupsInput) SetPathPrefix(v string) *ListGroupsInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListGroups request. type ListGroupsOutput struct { _ struct{} `type:"structure"` @@ -15680,6 +17248,24 @@ func (s ListGroupsOutput) GoString() string { return s.String() } +// SetGroups sets the Groups field's value. +func (s *ListGroupsOutput) SetGroups(v []*Group) *ListGroupsOutput { + s.Groups = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListGroupsOutput) SetIsTruncated(v bool) *ListGroupsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGroupsOutput) SetMarker(v string) *ListGroupsOutput { + s.Marker = &v + return s +} + type ListInstanceProfilesForRoleInput struct { _ struct{} `type:"structure"` @@ -15742,6 +17328,24 @@ func (s *ListInstanceProfilesForRoleInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListInstanceProfilesForRoleInput) SetMarker(v string) *ListInstanceProfilesForRoleInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListInstanceProfilesForRoleInput) SetMaxItems(v int64) *ListInstanceProfilesForRoleInput { + s.MaxItems = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ListInstanceProfilesForRoleInput) SetRoleName(v string) *ListInstanceProfilesForRoleInput { + s.RoleName = &v + return s +} + // Contains the response to a successful ListInstanceProfilesForRole request. type ListInstanceProfilesForRoleOutput struct { _ struct{} `type:"structure"` @@ -15774,6 +17378,24 @@ func (s ListInstanceProfilesForRoleOutput) GoString() string { return s.String() } +// SetInstanceProfiles sets the InstanceProfiles field's value. +func (s *ListInstanceProfilesForRoleOutput) SetInstanceProfiles(v []*InstanceProfile) *ListInstanceProfilesForRoleOutput { + s.InstanceProfiles = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListInstanceProfilesForRoleOutput) SetIsTruncated(v bool) *ListInstanceProfilesForRoleOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceProfilesForRoleOutput) SetMarker(v string) *ListInstanceProfilesForRoleOutput { + s.Marker = &v + return s +} + type ListInstanceProfilesInput struct { _ struct{} `type:"structure"` @@ -15836,6 +17458,24 @@ func (s *ListInstanceProfilesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListInstanceProfilesInput) SetMarker(v string) *ListInstanceProfilesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListInstanceProfilesInput) SetMaxItems(v int64) *ListInstanceProfilesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListInstanceProfilesInput) SetPathPrefix(v string) *ListInstanceProfilesInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListInstanceProfiles request. type ListInstanceProfilesOutput struct { _ struct{} `type:"structure"` @@ -15868,6 +17508,24 @@ func (s ListInstanceProfilesOutput) GoString() string { return s.String() } +// SetInstanceProfiles sets the InstanceProfiles field's value. +func (s *ListInstanceProfilesOutput) SetInstanceProfiles(v []*InstanceProfile) *ListInstanceProfilesOutput { + s.InstanceProfiles = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListInstanceProfilesOutput) SetIsTruncated(v bool) *ListInstanceProfilesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceProfilesOutput) SetMarker(v string) *ListInstanceProfilesOutput { + s.Marker = &v + return s +} + type ListMFADevicesInput struct { _ struct{} `type:"structure"` @@ -15925,6 +17583,24 @@ func (s *ListMFADevicesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListMFADevicesInput) SetMarker(v string) *ListMFADevicesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListMFADevicesInput) SetMaxItems(v int64) *ListMFADevicesInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListMFADevicesInput) SetUserName(v string) *ListMFADevicesInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListMFADevices request. type ListMFADevicesOutput struct { _ struct{} `type:"structure"` @@ -15957,6 +17633,24 @@ func (s ListMFADevicesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListMFADevicesOutput) SetIsTruncated(v bool) *ListMFADevicesOutput { + s.IsTruncated = &v + return s +} + +// SetMFADevices sets the MFADevices field's value. +func (s *ListMFADevicesOutput) SetMFADevices(v []*MFADevice) *ListMFADevicesOutput { + s.MFADevices = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListMFADevicesOutput) SetMarker(v string) *ListMFADevicesOutput { + s.Marker = &v + return s +} + type ListOpenIDConnectProvidersInput struct { _ struct{} `type:"structure"` } @@ -15989,6 +17683,12 @@ func (s ListOpenIDConnectProvidersOutput) GoString() string { return s.String() } +// SetOpenIDConnectProviderList sets the OpenIDConnectProviderList field's value. +func (s *ListOpenIDConnectProvidersOutput) SetOpenIDConnectProviderList(v []*OpenIDConnectProviderListEntry) *ListOpenIDConnectProvidersOutput { + s.OpenIDConnectProviderList = v + return s +} + type ListPoliciesInput struct { _ struct{} `type:"structure"` @@ -16011,8 +17711,8 @@ type ListPoliciesInput struct { // A flag to filter the results to only the attached policies. // - // When OnlyAttached is true, the returned list contains only the policies - // that are attached to an IAM user, group, or role. When OnlyAttached is false, + // When OnlyAttached is true, the returned list contains only the policies that + // are attached to an IAM user, group, or role. When OnlyAttached is false, // or when the parameter is not included, all policies are returned. OnlyAttached *bool `type:"boolean"` @@ -16061,6 +17761,36 @@ func (s *ListPoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListPoliciesInput) SetMarker(v string) *ListPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListPoliciesInput) SetMaxItems(v int64) *ListPoliciesInput { + s.MaxItems = &v + return s +} + +// SetOnlyAttached sets the OnlyAttached field's value. +func (s *ListPoliciesInput) SetOnlyAttached(v bool) *ListPoliciesInput { + s.OnlyAttached = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListPoliciesInput) SetPathPrefix(v string) *ListPoliciesInput { + s.PathPrefix = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ListPoliciesInput) SetScope(v string) *ListPoliciesInput { + s.Scope = &v + return s +} + // Contains the response to a successful ListPolicies request. type ListPoliciesOutput struct { _ struct{} `type:"structure"` @@ -16091,6 +17821,24 @@ func (s ListPoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListPoliciesOutput) SetIsTruncated(v bool) *ListPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPoliciesOutput) SetMarker(v string) *ListPoliciesOutput { + s.Marker = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *ListPoliciesOutput) SetPolicies(v []*Policy) *ListPoliciesOutput { + s.Policies = v + return s +} + type ListPolicyVersionsInput struct { _ struct{} `type:"structure"` @@ -16153,6 +17901,24 @@ func (s *ListPolicyVersionsInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListPolicyVersionsInput) SetMarker(v string) *ListPolicyVersionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListPolicyVersionsInput) SetMaxItems(v int64) *ListPolicyVersionsInput { + s.MaxItems = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *ListPolicyVersionsInput) SetPolicyArn(v string) *ListPolicyVersionsInput { + s.PolicyArn = &v + return s +} + // Contains the response to a successful ListPolicyVersions request. type ListPolicyVersionsOutput struct { _ struct{} `type:"structure"` @@ -16187,6 +17953,24 @@ func (s ListPolicyVersionsOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListPolicyVersionsOutput) SetIsTruncated(v bool) *ListPolicyVersionsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPolicyVersionsOutput) SetMarker(v string) *ListPolicyVersionsOutput { + s.Marker = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ListPolicyVersionsOutput) SetVersions(v []*PolicyVersion) *ListPolicyVersionsOutput { + s.Versions = v + return s +} + type ListRolePoliciesInput struct { _ struct{} `type:"structure"` @@ -16249,6 +18033,24 @@ func (s *ListRolePoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListRolePoliciesInput) SetMarker(v string) *ListRolePoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListRolePoliciesInput) SetMaxItems(v int64) *ListRolePoliciesInput { + s.MaxItems = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ListRolePoliciesInput) SetRoleName(v string) *ListRolePoliciesInput { + s.RoleName = &v + return s +} + // Contains the response to a successful ListRolePolicies request. type ListRolePoliciesOutput struct { _ struct{} `type:"structure"` @@ -16281,6 +18083,24 @@ func (s ListRolePoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListRolePoliciesOutput) SetIsTruncated(v bool) *ListRolePoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListRolePoliciesOutput) SetMarker(v string) *ListRolePoliciesOutput { + s.Marker = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListRolePoliciesOutput) SetPolicyNames(v []*string) *ListRolePoliciesOutput { + s.PolicyNames = v + return s +} + type ListRolesInput struct { _ struct{} `type:"structure"` @@ -16343,6 +18163,24 @@ func (s *ListRolesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListRolesInput) SetMarker(v string) *ListRolesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListRolesInput) SetMaxItems(v int64) *ListRolesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListRolesInput) SetPathPrefix(v string) *ListRolesInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListRoles request. type ListRolesOutput struct { _ struct{} `type:"structure"` @@ -16375,6 +18213,24 @@ func (s ListRolesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListRolesOutput) SetIsTruncated(v bool) *ListRolesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListRolesOutput) SetMarker(v string) *ListRolesOutput { + s.Marker = &v + return s +} + +// SetRoles sets the Roles field's value. +func (s *ListRolesOutput) SetRoles(v []*Role) *ListRolesOutput { + s.Roles = v + return s +} + type ListSAMLProvidersInput struct { _ struct{} `type:"structure"` } @@ -16407,6 +18263,12 @@ func (s ListSAMLProvidersOutput) GoString() string { return s.String() } +// SetSAMLProviderList sets the SAMLProviderList field's value. +func (s *ListSAMLProvidersOutput) SetSAMLProviderList(v []*SAMLProviderListEntry) *ListSAMLProvidersOutput { + s.SAMLProviderList = v + return s +} + type ListSSHPublicKeysInput struct { _ struct{} `type:"structure"` @@ -16466,6 +18328,24 @@ func (s *ListSSHPublicKeysInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListSSHPublicKeysInput) SetMarker(v string) *ListSSHPublicKeysInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListSSHPublicKeysInput) SetMaxItems(v int64) *ListSSHPublicKeysInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListSSHPublicKeysInput) SetUserName(v string) *ListSSHPublicKeysInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListSSHPublicKeys request. type ListSSHPublicKeysOutput struct { _ struct{} `type:"structure"` @@ -16496,6 +18376,24 @@ func (s ListSSHPublicKeysOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListSSHPublicKeysOutput) SetIsTruncated(v bool) *ListSSHPublicKeysOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListSSHPublicKeysOutput) SetMarker(v string) *ListSSHPublicKeysOutput { + s.Marker = &v + return s +} + +// SetSSHPublicKeys sets the SSHPublicKeys field's value. +func (s *ListSSHPublicKeysOutput) SetSSHPublicKeys(v []*SSHPublicKeyMetadata) *ListSSHPublicKeysOutput { + s.SSHPublicKeys = v + return s +} + type ListServerCertificatesInput struct { _ struct{} `type:"structure"` @@ -16558,6 +18456,24 @@ func (s *ListServerCertificatesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListServerCertificatesInput) SetMarker(v string) *ListServerCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListServerCertificatesInput) SetMaxItems(v int64) *ListServerCertificatesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListServerCertificatesInput) SetPathPrefix(v string) *ListServerCertificatesInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListServerCertificates request. type ListServerCertificatesOutput struct { _ struct{} `type:"structure"` @@ -16590,6 +18506,24 @@ func (s ListServerCertificatesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListServerCertificatesOutput) SetIsTruncated(v bool) *ListServerCertificatesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListServerCertificatesOutput) SetMarker(v string) *ListServerCertificatesOutput { + s.Marker = &v + return s +} + +// SetServerCertificateMetadataList sets the ServerCertificateMetadataList field's value. +func (s *ListServerCertificatesOutput) SetServerCertificateMetadataList(v []*ServerCertificateMetadata) *ListServerCertificatesOutput { + s.ServerCertificateMetadataList = v + return s +} + type ListSigningCertificatesInput struct { _ struct{} `type:"structure"` @@ -16647,6 +18581,24 @@ func (s *ListSigningCertificatesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListSigningCertificatesInput) SetMarker(v string) *ListSigningCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListSigningCertificatesInput) SetMaxItems(v int64) *ListSigningCertificatesInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListSigningCertificatesInput) SetUserName(v string) *ListSigningCertificatesInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListSigningCertificates request. type ListSigningCertificatesOutput struct { _ struct{} `type:"structure"` @@ -16679,6 +18631,24 @@ func (s ListSigningCertificatesOutput) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *ListSigningCertificatesOutput) SetCertificates(v []*SigningCertificate) *ListSigningCertificatesOutput { + s.Certificates = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListSigningCertificatesOutput) SetIsTruncated(v bool) *ListSigningCertificatesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListSigningCertificatesOutput) SetMarker(v string) *ListSigningCertificatesOutput { + s.Marker = &v + return s +} + type ListUserPoliciesInput struct { _ struct{} `type:"structure"` @@ -16741,6 +18711,24 @@ func (s *ListUserPoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListUserPoliciesInput) SetMarker(v string) *ListUserPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListUserPoliciesInput) SetMaxItems(v int64) *ListUserPoliciesInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListUserPoliciesInput) SetUserName(v string) *ListUserPoliciesInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListUserPolicies request. type ListUserPoliciesOutput struct { _ struct{} `type:"structure"` @@ -16773,6 +18761,24 @@ func (s ListUserPoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListUserPoliciesOutput) SetIsTruncated(v bool) *ListUserPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListUserPoliciesOutput) SetMarker(v string) *ListUserPoliciesOutput { + s.Marker = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListUserPoliciesOutput) SetPolicyNames(v []*string) *ListUserPoliciesOutput { + s.PolicyNames = v + return s +} + type ListUsersInput struct { _ struct{} `type:"structure"` @@ -16835,6 +18841,24 @@ func (s *ListUsersInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListUsersInput) SetMarker(v string) *ListUsersInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListUsersInput) SetMaxItems(v int64) *ListUsersInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListUsersInput) SetPathPrefix(v string) *ListUsersInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListUsers request. type ListUsersOutput struct { _ struct{} `type:"structure"` @@ -16867,6 +18891,24 @@ func (s ListUsersOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListUsersOutput) SetIsTruncated(v bool) *ListUsersOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListUsersOutput) SetMarker(v string) *ListUsersOutput { + s.Marker = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { + s.Users = v + return s +} + type ListVirtualMFADevicesInput struct { _ struct{} `type:"structure"` @@ -16919,6 +18961,24 @@ func (s *ListVirtualMFADevicesInput) Validate() error { return nil } +// SetAssignmentStatus sets the AssignmentStatus field's value. +func (s *ListVirtualMFADevicesInput) SetAssignmentStatus(v string) *ListVirtualMFADevicesInput { + s.AssignmentStatus = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVirtualMFADevicesInput) SetMarker(v string) *ListVirtualMFADevicesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListVirtualMFADevicesInput) SetMaxItems(v int64) *ListVirtualMFADevicesInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful ListVirtualMFADevices request. type ListVirtualMFADevicesOutput struct { _ struct{} `type:"structure"` @@ -16952,10 +19012,28 @@ func (s ListVirtualMFADevicesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListVirtualMFADevicesOutput) SetIsTruncated(v bool) *ListVirtualMFADevicesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVirtualMFADevicesOutput) SetMarker(v string) *ListVirtualMFADevicesOutput { + s.Marker = &v + return s +} + +// SetVirtualMFADevices sets the VirtualMFADevices field's value. +func (s *ListVirtualMFADevicesOutput) SetVirtualMFADevices(v []*VirtualMFADevice) *ListVirtualMFADevicesOutput { + s.VirtualMFADevices = v + return s +} + // Contains the user name and password create date for a user. // -// This data type is used as a response element in the CreateLoginProfile -// and GetLoginProfile actions. +// This data type is used as a response element in the CreateLoginProfile and +// GetLoginProfile actions. type LoginProfile struct { _ struct{} `type:"structure"` @@ -16984,6 +19062,24 @@ func (s LoginProfile) GoString() string { return s.String() } +// SetCreateDate sets the CreateDate field's value. +func (s *LoginProfile) SetCreateDate(v time.Time) *LoginProfile { + s.CreateDate = &v + return s +} + +// SetPasswordResetRequired sets the PasswordResetRequired field's value. +func (s *LoginProfile) SetPasswordResetRequired(v bool) *LoginProfile { + s.PasswordResetRequired = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *LoginProfile) SetUserName(v string) *LoginProfile { + s.UserName = &v + return s +} + // Contains information about an MFA device. // // This data type is used as a response element in the ListMFADevices action. @@ -17017,6 +19113,24 @@ func (s MFADevice) GoString() string { return s.String() } +// SetEnableDate sets the EnableDate field's value. +func (s *MFADevice) SetEnableDate(v time.Time) *MFADevice { + s.EnableDate = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *MFADevice) SetSerialNumber(v string) *MFADevice { + s.SerialNumber = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *MFADevice) SetUserName(v string) *MFADevice { + s.UserName = &v + return s +} + // Contains information about a managed policy, including the policy's ARN, // versions, and the number of principal entities (users, groups, and roles) // that the policy is attached to. @@ -17032,8 +19146,8 @@ type ManagedPolicyDetail struct { // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -17097,14 +19211,80 @@ func (s ManagedPolicyDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *ManagedPolicyDetail) SetArn(v string) *ManagedPolicyDetail { + s.Arn = &v + return s +} + +// SetAttachmentCount sets the AttachmentCount field's value. +func (s *ManagedPolicyDetail) SetAttachmentCount(v int64) *ManagedPolicyDetail { + s.AttachmentCount = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ManagedPolicyDetail) SetCreateDate(v time.Time) *ManagedPolicyDetail { + s.CreateDate = &v + return s +} + +// SetDefaultVersionId sets the DefaultVersionId field's value. +func (s *ManagedPolicyDetail) SetDefaultVersionId(v string) *ManagedPolicyDetail { + s.DefaultVersionId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ManagedPolicyDetail) SetDescription(v string) *ManagedPolicyDetail { + s.Description = &v + return s +} + +// SetIsAttachable sets the IsAttachable field's value. +func (s *ManagedPolicyDetail) SetIsAttachable(v bool) *ManagedPolicyDetail { + s.IsAttachable = &v + return s +} + +// SetPath sets the Path field's value. +func (s *ManagedPolicyDetail) SetPath(v string) *ManagedPolicyDetail { + s.Path = &v + return s +} + +// SetPolicyId sets the PolicyId field's value. +func (s *ManagedPolicyDetail) SetPolicyId(v string) *ManagedPolicyDetail { + s.PolicyId = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ManagedPolicyDetail) SetPolicyName(v string) *ManagedPolicyDetail { + s.PolicyName = &v + return s +} + +// SetPolicyVersionList sets the PolicyVersionList field's value. +func (s *ManagedPolicyDetail) SetPolicyVersionList(v []*PolicyVersion) *ManagedPolicyDetail { + s.PolicyVersionList = v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *ManagedPolicyDetail) SetUpdateDate(v time.Time) *ManagedPolicyDetail { + s.UpdateDate = &v + return s +} + // Contains the Amazon Resource Name (ARN) for an IAM OpenID Connect provider. type OpenIDConnectProviderListEntry struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` } @@ -17119,9 +19299,15 @@ func (s OpenIDConnectProviderListEntry) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *OpenIDConnectProviderListEntry) SetArn(v string) *OpenIDConnectProviderListEntry { + s.Arn = &v + return s +} + // Contains information about the account password policy. // -// This data type is used as a response element in the GetAccountPasswordPolicy +// This data type is used as a response element in the GetAccountPasswordPolicy // action. type PasswordPolicy struct { _ struct{} `type:"structure"` @@ -17171,6 +19357,66 @@ func (s PasswordPolicy) GoString() string { return s.String() } +// SetAllowUsersToChangePassword sets the AllowUsersToChangePassword field's value. +func (s *PasswordPolicy) SetAllowUsersToChangePassword(v bool) *PasswordPolicy { + s.AllowUsersToChangePassword = &v + return s +} + +// SetExpirePasswords sets the ExpirePasswords field's value. +func (s *PasswordPolicy) SetExpirePasswords(v bool) *PasswordPolicy { + s.ExpirePasswords = &v + return s +} + +// SetHardExpiry sets the HardExpiry field's value. +func (s *PasswordPolicy) SetHardExpiry(v bool) *PasswordPolicy { + s.HardExpiry = &v + return s +} + +// SetMaxPasswordAge sets the MaxPasswordAge field's value. +func (s *PasswordPolicy) SetMaxPasswordAge(v int64) *PasswordPolicy { + s.MaxPasswordAge = &v + return s +} + +// SetMinimumPasswordLength sets the MinimumPasswordLength field's value. +func (s *PasswordPolicy) SetMinimumPasswordLength(v int64) *PasswordPolicy { + s.MinimumPasswordLength = &v + return s +} + +// SetPasswordReusePrevention sets the PasswordReusePrevention field's value. +func (s *PasswordPolicy) SetPasswordReusePrevention(v int64) *PasswordPolicy { + s.PasswordReusePrevention = &v + return s +} + +// SetRequireLowercaseCharacters sets the RequireLowercaseCharacters field's value. +func (s *PasswordPolicy) SetRequireLowercaseCharacters(v bool) *PasswordPolicy { + s.RequireLowercaseCharacters = &v + return s +} + +// SetRequireNumbers sets the RequireNumbers field's value. +func (s *PasswordPolicy) SetRequireNumbers(v bool) *PasswordPolicy { + s.RequireNumbers = &v + return s +} + +// SetRequireSymbols sets the RequireSymbols field's value. +func (s *PasswordPolicy) SetRequireSymbols(v bool) *PasswordPolicy { + s.RequireSymbols = &v + return s +} + +// SetRequireUppercaseCharacters sets the RequireUppercaseCharacters field's value. +func (s *PasswordPolicy) SetRequireUppercaseCharacters(v bool) *PasswordPolicy { + s.RequireUppercaseCharacters = &v + return s +} + // Contains information about a managed policy. // // This data type is used as a response element in the CreatePolicy, GetPolicy, @@ -17184,8 +19430,8 @@ type Policy struct { // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -17202,8 +19448,8 @@ type Policy struct { // A friendly description of the policy. // - // This element is included in the response to the GetPolicy operation. It - // is not included in the response to the ListPolicies operation. + // This element is included in the response to the GetPolicy operation. It is + // not included in the response to the ListPolicies operation. Description *string `type:"string"` // Specifies whether the policy can be attached to an IAM user, group, or role. @@ -17244,6 +19490,66 @@ func (s Policy) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Policy) SetArn(v string) *Policy { + s.Arn = &v + return s +} + +// SetAttachmentCount sets the AttachmentCount field's value. +func (s *Policy) SetAttachmentCount(v int64) *Policy { + s.AttachmentCount = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *Policy) SetCreateDate(v time.Time) *Policy { + s.CreateDate = &v + return s +} + +// SetDefaultVersionId sets the DefaultVersionId field's value. +func (s *Policy) SetDefaultVersionId(v string) *Policy { + s.DefaultVersionId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Policy) SetDescription(v string) *Policy { + s.Description = &v + return s +} + +// SetIsAttachable sets the IsAttachable field's value. +func (s *Policy) SetIsAttachable(v bool) *Policy { + s.IsAttachable = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Policy) SetPath(v string) *Policy { + s.Path = &v + return s +} + +// SetPolicyId sets the PolicyId field's value. +func (s *Policy) SetPolicyId(v string) *Policy { + s.PolicyId = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *Policy) SetPolicyName(v string) *Policy { + s.PolicyName = &v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *Policy) SetUpdateDate(v time.Time) *Policy { + s.UpdateDate = &v + return s +} + // Contains information about an IAM policy, including the policy document. // // This data type is used as a response element in the GetAccountAuthorizationDetails @@ -17268,6 +19574,18 @@ func (s PolicyDetail) GoString() string { return s.String() } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *PolicyDetail) SetPolicyDocument(v string) *PolicyDetail { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PolicyDetail) SetPolicyName(v string) *PolicyDetail { + s.PolicyName = &v + return s +} + // Contains information about a group that a managed policy is attached to. // // This data type is used as a response element in the ListEntitiesForPolicy @@ -17298,6 +19616,18 @@ func (s PolicyGroup) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *PolicyGroup) SetGroupId(v string) *PolicyGroup { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *PolicyGroup) SetGroupName(v string) *PolicyGroup { + s.GroupName = &v + return s +} + // Contains information about a role that a managed policy is attached to. // // This data type is used as a response element in the ListEntitiesForPolicy @@ -17328,6 +19658,18 @@ func (s PolicyRole) GoString() string { return s.String() } +// SetRoleId sets the RoleId field's value. +func (s *PolicyRole) SetRoleId(v string) *PolicyRole { + s.RoleId = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *PolicyRole) SetRoleName(v string) *PolicyRole { + s.RoleName = &v + return s +} + // Contains information about a user that a managed policy is attached to. // // This data type is used as a response element in the ListEntitiesForPolicy @@ -17358,6 +19700,18 @@ func (s PolicyUser) GoString() string { return s.String() } +// SetUserId sets the UserId field's value. +func (s *PolicyUser) SetUserId(v string) *PolicyUser { + s.UserId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *PolicyUser) SetUserName(v string) *PolicyUser { + s.UserName = &v + return s +} + // Contains information about a version of a managed policy. // // This data type is used as a response element in the CreatePolicyVersion, @@ -17376,9 +19730,9 @@ type PolicyVersion struct { // The policy document. // - // The policy document is returned in the response to the GetPolicyVersion - // and GetAccountAuthorizationDetails operations. It is not returned in the - // response to the CreatePolicyVersion or ListPolicyVersions operations. + // The policy document is returned in the response to the GetPolicyVersion and + // GetAccountAuthorizationDetails operations. It is not returned in the response + // to the CreatePolicyVersion or ListPolicyVersions operations. Document *string `min:"1" type:"string"` // Specifies whether the policy version is set as the policy's default version. @@ -17386,8 +19740,8 @@ type PolicyVersion struct { // The identifier for the policy version. // - // Policy version identifiers always begin with v (always lowercase). When - // a policy is created, the first policy version is v1. + // Policy version identifiers always begin with v (always lowercase). When a + // policy is created, the first policy version is v1. VersionId *string `type:"string"` } @@ -17401,10 +19755,34 @@ func (s PolicyVersion) GoString() string { return s.String() } +// SetCreateDate sets the CreateDate field's value. +func (s *PolicyVersion) SetCreateDate(v time.Time) *PolicyVersion { + s.CreateDate = &v + return s +} + +// SetDocument sets the Document field's value. +func (s *PolicyVersion) SetDocument(v string) *PolicyVersion { + s.Document = &v + return s +} + +// SetIsDefaultVersion sets the IsDefaultVersion field's value. +func (s *PolicyVersion) SetIsDefaultVersion(v bool) *PolicyVersion { + s.IsDefaultVersion = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *PolicyVersion) SetVersionId(v string) *PolicyVersion { + s.VersionId = &v + return s +} + // Contains the row and column of a location of a Statement element in a policy // document. // -// This data type is used as a member of the Statement type. +// This data type is used as a member of the Statement type. type Position struct { _ struct{} `type:"structure"` @@ -17425,6 +19803,18 @@ func (s Position) GoString() string { return s.String() } +// SetColumn sets the Column field's value. +func (s *Position) SetColumn(v int64) *Position { + s.Column = &v + return s +} + +// SetLine sets the Line field's value. +func (s *Position) SetLine(v int64) *Position { + s.Line = &v + return s +} + type PutGroupPolicyInput struct { _ struct{} `type:"structure"` @@ -17496,6 +19886,24 @@ func (s *PutGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *PutGroupPolicyInput) SetGroupName(v string) *PutGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *PutGroupPolicyInput) SetPolicyDocument(v string) *PutGroupPolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutGroupPolicyInput) SetPolicyName(v string) *PutGroupPolicyInput { + s.PolicyName = &v + return s +} + type PutGroupPolicyOutput struct { _ struct{} `type:"structure"` } @@ -17581,6 +19989,24 @@ func (s *PutRolePolicyInput) Validate() error { return nil } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *PutRolePolicyInput) SetPolicyDocument(v string) *PutRolePolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutRolePolicyInput) SetPolicyName(v string) *PutRolePolicyInput { + s.PolicyName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *PutRolePolicyInput) SetRoleName(v string) *PutRolePolicyInput { + s.RoleName = &v + return s +} + type PutRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -17666,6 +20092,24 @@ func (s *PutUserPolicyInput) Validate() error { return nil } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *PutUserPolicyInput) SetPolicyDocument(v string) *PutUserPolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutUserPolicyInput) SetPolicyName(v string) *PutUserPolicyInput { + s.PolicyName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *PutUserPolicyInput) SetUserName(v string) *PutUserPolicyInput { + s.UserName = &v + return s +} + type PutUserPolicyOutput struct { _ struct{} `type:"structure"` } @@ -17733,6 +20177,18 @@ func (s *RemoveClientIDFromOpenIDConnectProviderInput) Validate() error { return nil } +// SetClientID sets the ClientID field's value. +func (s *RemoveClientIDFromOpenIDConnectProviderInput) SetClientID(v string) *RemoveClientIDFromOpenIDConnectProviderInput { + s.ClientID = &v + return s +} + +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *RemoveClientIDFromOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *RemoveClientIDFromOpenIDConnectProviderInput { + s.OpenIDConnectProviderArn = &v + return s +} + type RemoveClientIDFromOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` } @@ -17801,6 +20257,18 @@ func (s *RemoveRoleFromInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *RemoveRoleFromInstanceProfileInput) SetInstanceProfileName(v string) *RemoveRoleFromInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *RemoveRoleFromInstanceProfileInput) SetRoleName(v string) *RemoveRoleFromInstanceProfileInput { + s.RoleName = &v + return s +} + type RemoveRoleFromInstanceProfileOutput struct { _ struct{} `type:"structure"` } @@ -17869,6 +20337,18 @@ func (s *RemoveUserFromGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *RemoveUserFromGroupInput) SetGroupName(v string) *RemoveUserFromGroupInput { + s.GroupName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *RemoveUserFromGroupInput) SetUserName(v string) *RemoveUserFromGroupInput { + s.UserName = &v + return s +} + type RemoveUserFromGroupOutput struct { _ struct{} `type:"structure"` } @@ -17936,6 +20416,36 @@ func (s ResourceSpecificResult) GoString() string { return s.String() } +// SetEvalDecisionDetails sets the EvalDecisionDetails field's value. +func (s *ResourceSpecificResult) SetEvalDecisionDetails(v map[string]*string) *ResourceSpecificResult { + s.EvalDecisionDetails = v + return s +} + +// SetEvalResourceDecision sets the EvalResourceDecision field's value. +func (s *ResourceSpecificResult) SetEvalResourceDecision(v string) *ResourceSpecificResult { + s.EvalResourceDecision = &v + return s +} + +// SetEvalResourceName sets the EvalResourceName field's value. +func (s *ResourceSpecificResult) SetEvalResourceName(v string) *ResourceSpecificResult { + s.EvalResourceName = &v + return s +} + +// SetMatchedStatements sets the MatchedStatements field's value. +func (s *ResourceSpecificResult) SetMatchedStatements(v []*Statement) *ResourceSpecificResult { + s.MatchedStatements = v + return s +} + +// SetMissingContextValues sets the MissingContextValues field's value. +func (s *ResourceSpecificResult) SetMissingContextValues(v []*string) *ResourceSpecificResult { + s.MissingContextValues = v + return s +} + type ResyncMFADeviceInput struct { _ struct{} `type:"structure"` @@ -18016,6 +20526,30 @@ func (s *ResyncMFADeviceInput) Validate() error { return nil } +// SetAuthenticationCode1 sets the AuthenticationCode1 field's value. +func (s *ResyncMFADeviceInput) SetAuthenticationCode1(v string) *ResyncMFADeviceInput { + s.AuthenticationCode1 = &v + return s +} + +// SetAuthenticationCode2 sets the AuthenticationCode2 field's value. +func (s *ResyncMFADeviceInput) SetAuthenticationCode2(v string) *ResyncMFADeviceInput { + s.AuthenticationCode2 = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *ResyncMFADeviceInput) SetSerialNumber(v string) *ResyncMFADeviceInput { + s.SerialNumber = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ResyncMFADeviceInput) SetUserName(v string) *ResyncMFADeviceInput { + s.UserName = &v + return s +} + type ResyncMFADeviceOutput struct { _ struct{} `type:"structure"` } @@ -18034,11 +20568,11 @@ func (s ResyncMFADeviceOutput) GoString() string { // // This data type is used as a response element in the following actions: // -// CreateRole +// * CreateRole // -// GetRole +// * GetRole // -// ListRoles +// * ListRoles type Role struct { _ struct{} `type:"structure"` @@ -18088,6 +20622,42 @@ func (s Role) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Role) SetArn(v string) *Role { + s.Arn = &v + return s +} + +// SetAssumeRolePolicyDocument sets the AssumeRolePolicyDocument field's value. +func (s *Role) SetAssumeRolePolicyDocument(v string) *Role { + s.AssumeRolePolicyDocument = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *Role) SetCreateDate(v time.Time) *Role { + s.CreateDate = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Role) SetPath(v string) *Role { + s.Path = &v + return s +} + +// SetRoleId sets the RoleId field's value. +func (s *Role) SetRoleId(v string) *Role { + s.RoleId = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *Role) SetRoleName(v string) *Role { + s.RoleName = &v + return s +} + // Contains information about an IAM role, including all of the role's policies. // // This data type is used as a response element in the GetAccountAuthorizationDetails @@ -18097,8 +20667,8 @@ type RoleDetail struct { // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -18144,6 +20714,60 @@ func (s RoleDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *RoleDetail) SetArn(v string) *RoleDetail { + s.Arn = &v + return s +} + +// SetAssumeRolePolicyDocument sets the AssumeRolePolicyDocument field's value. +func (s *RoleDetail) SetAssumeRolePolicyDocument(v string) *RoleDetail { + s.AssumeRolePolicyDocument = &v + return s +} + +// SetAttachedManagedPolicies sets the AttachedManagedPolicies field's value. +func (s *RoleDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *RoleDetail { + s.AttachedManagedPolicies = v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *RoleDetail) SetCreateDate(v time.Time) *RoleDetail { + s.CreateDate = &v + return s +} + +// SetInstanceProfileList sets the InstanceProfileList field's value. +func (s *RoleDetail) SetInstanceProfileList(v []*InstanceProfile) *RoleDetail { + s.InstanceProfileList = v + return s +} + +// SetPath sets the Path field's value. +func (s *RoleDetail) SetPath(v string) *RoleDetail { + s.Path = &v + return s +} + +// SetRoleId sets the RoleId field's value. +func (s *RoleDetail) SetRoleId(v string) *RoleDetail { + s.RoleId = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *RoleDetail) SetRoleName(v string) *RoleDetail { + s.RoleName = &v + return s +} + +// SetRolePolicyList sets the RolePolicyList field's value. +func (s *RoleDetail) SetRolePolicyList(v []*PolicyDetail) *RoleDetail { + s.RolePolicyList = v + return s +} + // Contains the list of SAML providers for this account. type SAMLProviderListEntry struct { _ struct{} `type:"structure"` @@ -18168,10 +20792,28 @@ func (s SAMLProviderListEntry) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *SAMLProviderListEntry) SetArn(v string) *SAMLProviderListEntry { + s.Arn = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *SAMLProviderListEntry) SetCreateDate(v time.Time) *SAMLProviderListEntry { + s.CreateDate = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *SAMLProviderListEntry) SetValidUntil(v time.Time) *SAMLProviderListEntry { + s.ValidUntil = &v + return s +} + // Contains information about an SSH public key. // -// This data type is used as a response element in the GetSSHPublicKey and -// UploadSSHPublicKey actions. +// This data type is used as a response element in the GetSSHPublicKey and UploadSSHPublicKey +// actions. type SSHPublicKey struct { _ struct{} `type:"structure"` @@ -18216,6 +20858,42 @@ func (s SSHPublicKey) GoString() string { return s.String() } +// SetFingerprint sets the Fingerprint field's value. +func (s *SSHPublicKey) SetFingerprint(v string) *SSHPublicKey { + s.Fingerprint = &v + return s +} + +// SetSSHPublicKeyBody sets the SSHPublicKeyBody field's value. +func (s *SSHPublicKey) SetSSHPublicKeyBody(v string) *SSHPublicKey { + s.SSHPublicKeyBody = &v + return s +} + +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *SSHPublicKey) SetSSHPublicKeyId(v string) *SSHPublicKey { + s.SSHPublicKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SSHPublicKey) SetStatus(v string) *SSHPublicKey { + s.Status = &v + return s +} + +// SetUploadDate sets the UploadDate field's value. +func (s *SSHPublicKey) SetUploadDate(v time.Time) *SSHPublicKey { + s.UploadDate = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *SSHPublicKey) SetUserName(v string) *SSHPublicKey { + s.UserName = &v + return s +} + // Contains information about an SSH public key, without the key's body or fingerprint. // // This data type is used as a response element in the ListSSHPublicKeys action. @@ -18255,9 +20933,33 @@ func (s SSHPublicKeyMetadata) GoString() string { return s.String() } +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *SSHPublicKeyMetadata) SetSSHPublicKeyId(v string) *SSHPublicKeyMetadata { + s.SSHPublicKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SSHPublicKeyMetadata) SetStatus(v string) *SSHPublicKeyMetadata { + s.Status = &v + return s +} + +// SetUploadDate sets the UploadDate field's value. +func (s *SSHPublicKeyMetadata) SetUploadDate(v time.Time) *SSHPublicKeyMetadata { + s.UploadDate = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *SSHPublicKeyMetadata) SetUserName(v string) *SSHPublicKeyMetadata { + s.UserName = &v + return s +} + // Contains information about a server certificate. // -// This data type is used as a response element in the GetServerCertificate +// This data type is used as a response element in the GetServerCertificate // action. type ServerCertificate struct { _ struct{} `type:"structure"` @@ -18287,10 +20989,28 @@ func (s ServerCertificate) GoString() string { return s.String() } +// SetCertificateBody sets the CertificateBody field's value. +func (s *ServerCertificate) SetCertificateBody(v string) *ServerCertificate { + s.CertificateBody = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *ServerCertificate) SetCertificateChain(v string) *ServerCertificate { + s.CertificateChain = &v + return s +} + +// SetServerCertificateMetadata sets the ServerCertificateMetadata field's value. +func (s *ServerCertificate) SetServerCertificateMetadata(v *ServerCertificateMetadata) *ServerCertificate { + s.ServerCertificateMetadata = v + return s +} + // Contains information about a server certificate without its certificate body, // certificate chain, and private key. // -// This data type is used as a response element in the UploadServerCertificate +// This data type is used as a response element in the UploadServerCertificate // and ListServerCertificates actions. type ServerCertificateMetadata struct { _ struct{} `type:"structure"` @@ -18339,6 +21059,42 @@ func (s ServerCertificateMetadata) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *ServerCertificateMetadata) SetArn(v string) *ServerCertificateMetadata { + s.Arn = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *ServerCertificateMetadata) SetExpiration(v time.Time) *ServerCertificateMetadata { + s.Expiration = &v + return s +} + +// SetPath sets the Path field's value. +func (s *ServerCertificateMetadata) SetPath(v string) *ServerCertificateMetadata { + s.Path = &v + return s +} + +// SetServerCertificateId sets the ServerCertificateId field's value. +func (s *ServerCertificateMetadata) SetServerCertificateId(v string) *ServerCertificateMetadata { + s.ServerCertificateId = &v + return s +} + +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *ServerCertificateMetadata) SetServerCertificateName(v string) *ServerCertificateMetadata { + s.ServerCertificateName = &v + return s +} + +// SetUploadDate sets the UploadDate field's value. +func (s *ServerCertificateMetadata) SetUploadDate(v time.Time) *ServerCertificateMetadata { + s.UploadDate = &v + return s +} + type SetDefaultPolicyVersionInput struct { _ struct{} `type:"structure"` @@ -18391,6 +21147,18 @@ func (s *SetDefaultPolicyVersionInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *SetDefaultPolicyVersionInput) SetPolicyArn(v string) *SetDefaultPolicyVersionInput { + s.PolicyArn = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *SetDefaultPolicyVersionInput) SetVersionId(v string) *SetDefaultPolicyVersionInput { + s.VersionId = &v + return s +} + type SetDefaultPolicyVersionOutput struct { _ struct{} `type:"structure"` } @@ -18447,6 +21215,36 @@ func (s SigningCertificate) GoString() string { return s.String() } +// SetCertificateBody sets the CertificateBody field's value. +func (s *SigningCertificate) SetCertificateBody(v string) *SigningCertificate { + s.CertificateBody = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *SigningCertificate) SetCertificateId(v string) *SigningCertificate { + s.CertificateId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SigningCertificate) SetStatus(v string) *SigningCertificate { + s.Status = &v + return s +} + +// SetUploadDate sets the UploadDate field's value. +func (s *SigningCertificate) SetUploadDate(v time.Time) *SigningCertificate { + s.UploadDate = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *SigningCertificate) SetUserName(v string) *SigningCertificate { + s.UserName = &v + return s +} + type SimulateCustomPolicyInput struct { _ struct{} `type:"structure"` @@ -18461,8 +21259,8 @@ type SimulateCustomPolicyInput struct { // APIs. CallerArn is required if you include a ResourcePolicy so that the policy's // Principal element has a value to use in evaluating the policy. // - // You can specify only the ARN of an IAM user. You cannot specify the ARN - // of an assumed role, federated user, or a service principal. + // You can specify only the ARN of an IAM user. You cannot specify the ARN of + // an assumed role, federated user, or a service principal. CallerArn *string `min:"1" type:"string"` // A list of context keys and corresponding values for the simulation to use. @@ -18539,27 +21337,27 @@ type SimulateCustomPolicyInput struct { // the EC2 scenario options, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) // in the AWS EC2 User Guide. // - // EC2-Classic-InstanceStore + // * EC2-Classic-InstanceStore // // instance, image, security-group // - // EC2-Classic-EBS + // * EC2-Classic-EBS // // instance, image, security-group, volume // - // EC2-VPC-InstanceStore + // * EC2-VPC-InstanceStore // // instance, image, security-group, network-interface // - // EC2-VPC-InstanceStore-Subnet + // * EC2-VPC-InstanceStore-Subnet // // instance, image, security-group, network-interface, subnet // - // EC2-VPC-EBS + // * EC2-VPC-EBS // // instance, image, security-group, network-interface, volume // - // EC2-VPC-EBS-Subnet + // * EC2-VPC-EBS-Subnet // // instance, image, security-group, network-interface, subnet, volume ResourceHandlingOption *string `min:"1" type:"string"` @@ -18641,6 +21439,66 @@ func (s *SimulateCustomPolicyInput) Validate() error { return nil } +// SetActionNames sets the ActionNames field's value. +func (s *SimulateCustomPolicyInput) SetActionNames(v []*string) *SimulateCustomPolicyInput { + s.ActionNames = v + return s +} + +// SetCallerArn sets the CallerArn field's value. +func (s *SimulateCustomPolicyInput) SetCallerArn(v string) *SimulateCustomPolicyInput { + s.CallerArn = &v + return s +} + +// SetContextEntries sets the ContextEntries field's value. +func (s *SimulateCustomPolicyInput) SetContextEntries(v []*ContextEntry) *SimulateCustomPolicyInput { + s.ContextEntries = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *SimulateCustomPolicyInput) SetMarker(v string) *SimulateCustomPolicyInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *SimulateCustomPolicyInput) SetMaxItems(v int64) *SimulateCustomPolicyInput { + s.MaxItems = &v + return s +} + +// SetPolicyInputList sets the PolicyInputList field's value. +func (s *SimulateCustomPolicyInput) SetPolicyInputList(v []*string) *SimulateCustomPolicyInput { + s.PolicyInputList = v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *SimulateCustomPolicyInput) SetResourceArns(v []*string) *SimulateCustomPolicyInput { + s.ResourceArns = v + return s +} + +// SetResourceHandlingOption sets the ResourceHandlingOption field's value. +func (s *SimulateCustomPolicyInput) SetResourceHandlingOption(v string) *SimulateCustomPolicyInput { + s.ResourceHandlingOption = &v + return s +} + +// SetResourceOwner sets the ResourceOwner field's value. +func (s *SimulateCustomPolicyInput) SetResourceOwner(v string) *SimulateCustomPolicyInput { + s.ResourceOwner = &v + return s +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *SimulateCustomPolicyInput) SetResourcePolicy(v string) *SimulateCustomPolicyInput { + s.ResourcePolicy = &v + return s +} + // Contains the response to a successful SimulatePrincipalPolicy or SimulateCustomPolicy // request. type SimulatePolicyResponse struct { @@ -18672,6 +21530,24 @@ func (s SimulatePolicyResponse) GoString() string { return s.String() } +// SetEvaluationResults sets the EvaluationResults field's value. +func (s *SimulatePolicyResponse) SetEvaluationResults(v []*EvaluationResult) *SimulatePolicyResponse { + s.EvaluationResults = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *SimulatePolicyResponse) SetIsTruncated(v bool) *SimulatePolicyResponse { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *SimulatePolicyResponse) SetMarker(v string) *SimulatePolicyResponse { + s.Marker = &v + return s +} + type SimulatePrincipalPolicyInput struct { _ struct{} `type:"structure"` @@ -18689,10 +21565,10 @@ type SimulatePrincipalPolicyInput struct { // and a CallerArn (for example, arn:aws:iam::123456789012:user/Bob), the result // is that you simulate calling the APIs as Bob, as if Bob had David's policies. // - // You can specify only the ARN of an IAM user. You cannot specify the ARN - // of an assumed role, federated user, or a service principal. + // You can specify only the ARN of an IAM user. You cannot specify the ARN of + // an assumed role, federated user, or a service principal. // - // CallerArn is required if you include a ResourcePolicy and the PolicySourceArn + // CallerArn is required if you include a ResourcePolicy and the PolicySourceArn // is not the ARN for an IAM user. This is required so that the resource-based // policy's Principal element has a value to use in evaluating the policy. // @@ -18778,27 +21654,27 @@ type SimulatePrincipalPolicyInput struct { // the EC2 scenario options, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) // in the AWS EC2 User Guide. // - // EC2-Classic-InstanceStore + // * EC2-Classic-InstanceStore // // instance, image, security-group // - // EC2-Classic-EBS + // * EC2-Classic-EBS // // instance, image, security-group, volume // - // EC2-VPC-InstanceStore + // * EC2-VPC-InstanceStore // // instance, image, security-group, network-interface // - // EC2-VPC-InstanceStore-Subnet + // * EC2-VPC-InstanceStore-Subnet // // instance, image, security-group, network-interface, subnet // - // EC2-VPC-EBS + // * EC2-VPC-EBS // // instance, image, security-group, network-interface, volume // - // EC2-VPC-EBS-Subnet + // * EC2-VPC-EBS-Subnet // // instance, image, security-group, network-interface, subnet, volume ResourceHandlingOption *string `min:"1" type:"string"` @@ -18883,11 +21759,77 @@ func (s *SimulatePrincipalPolicyInput) Validate() error { return nil } +// SetActionNames sets the ActionNames field's value. +func (s *SimulatePrincipalPolicyInput) SetActionNames(v []*string) *SimulatePrincipalPolicyInput { + s.ActionNames = v + return s +} + +// SetCallerArn sets the CallerArn field's value. +func (s *SimulatePrincipalPolicyInput) SetCallerArn(v string) *SimulatePrincipalPolicyInput { + s.CallerArn = &v + return s +} + +// SetContextEntries sets the ContextEntries field's value. +func (s *SimulatePrincipalPolicyInput) SetContextEntries(v []*ContextEntry) *SimulatePrincipalPolicyInput { + s.ContextEntries = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *SimulatePrincipalPolicyInput) SetMarker(v string) *SimulatePrincipalPolicyInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *SimulatePrincipalPolicyInput) SetMaxItems(v int64) *SimulatePrincipalPolicyInput { + s.MaxItems = &v + return s +} + +// SetPolicyInputList sets the PolicyInputList field's value. +func (s *SimulatePrincipalPolicyInput) SetPolicyInputList(v []*string) *SimulatePrincipalPolicyInput { + s.PolicyInputList = v + return s +} + +// SetPolicySourceArn sets the PolicySourceArn field's value. +func (s *SimulatePrincipalPolicyInput) SetPolicySourceArn(v string) *SimulatePrincipalPolicyInput { + s.PolicySourceArn = &v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *SimulatePrincipalPolicyInput) SetResourceArns(v []*string) *SimulatePrincipalPolicyInput { + s.ResourceArns = v + return s +} + +// SetResourceHandlingOption sets the ResourceHandlingOption field's value. +func (s *SimulatePrincipalPolicyInput) SetResourceHandlingOption(v string) *SimulatePrincipalPolicyInput { + s.ResourceHandlingOption = &v + return s +} + +// SetResourceOwner sets the ResourceOwner field's value. +func (s *SimulatePrincipalPolicyInput) SetResourceOwner(v string) *SimulatePrincipalPolicyInput { + s.ResourceOwner = &v + return s +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *SimulatePrincipalPolicyInput) SetResourcePolicy(v string) *SimulatePrincipalPolicyInput { + s.ResourcePolicy = &v + return s +} + // Contains a reference to a Statement element in a policy document that determines // the result of the simulation. // -// This data type is used by the MatchedStatements member of the EvaluationResult -// type. +// This data type is used by the MatchedStatements member of the EvaluationResult +// type. type Statement struct { _ struct{} `type:"structure"` @@ -18914,6 +21856,30 @@ func (s Statement) GoString() string { return s.String() } +// SetEndPosition sets the EndPosition field's value. +func (s *Statement) SetEndPosition(v *Position) *Statement { + s.EndPosition = v + return s +} + +// SetSourcePolicyId sets the SourcePolicyId field's value. +func (s *Statement) SetSourcePolicyId(v string) *Statement { + s.SourcePolicyId = &v + return s +} + +// SetSourcePolicyType sets the SourcePolicyType field's value. +func (s *Statement) SetSourcePolicyType(v string) *Statement { + s.SourcePolicyType = &v + return s +} + +// SetStartPosition sets the StartPosition field's value. +func (s *Statement) SetStartPosition(v *Position) *Statement { + s.StartPosition = v + return s +} + type UpdateAccessKeyInput struct { _ struct{} `type:"structure"` @@ -18973,6 +21939,24 @@ func (s *UpdateAccessKeyInput) Validate() error { return nil } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *UpdateAccessKeyInput) SetAccessKeyId(v string) *UpdateAccessKeyInput { + s.AccessKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateAccessKeyInput) SetStatus(v string) *UpdateAccessKeyInput { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateAccessKeyInput) SetUserName(v string) *UpdateAccessKeyInput { + s.UserName = &v + return s +} + type UpdateAccessKeyOutput struct { _ struct{} `type:"structure"` } @@ -19036,7 +22020,7 @@ type UpdateAccountPasswordPolicyInput struct { // Specifies whether IAM user passwords must contain at least one of the following // non-alphanumeric characters: // - // ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' + // ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' // // Default value: false RequireSymbols *bool `type:"boolean"` @@ -19077,6 +22061,60 @@ func (s *UpdateAccountPasswordPolicyInput) Validate() error { return nil } +// SetAllowUsersToChangePassword sets the AllowUsersToChangePassword field's value. +func (s *UpdateAccountPasswordPolicyInput) SetAllowUsersToChangePassword(v bool) *UpdateAccountPasswordPolicyInput { + s.AllowUsersToChangePassword = &v + return s +} + +// SetHardExpiry sets the HardExpiry field's value. +func (s *UpdateAccountPasswordPolicyInput) SetHardExpiry(v bool) *UpdateAccountPasswordPolicyInput { + s.HardExpiry = &v + return s +} + +// SetMaxPasswordAge sets the MaxPasswordAge field's value. +func (s *UpdateAccountPasswordPolicyInput) SetMaxPasswordAge(v int64) *UpdateAccountPasswordPolicyInput { + s.MaxPasswordAge = &v + return s +} + +// SetMinimumPasswordLength sets the MinimumPasswordLength field's value. +func (s *UpdateAccountPasswordPolicyInput) SetMinimumPasswordLength(v int64) *UpdateAccountPasswordPolicyInput { + s.MinimumPasswordLength = &v + return s +} + +// SetPasswordReusePrevention sets the PasswordReusePrevention field's value. +func (s *UpdateAccountPasswordPolicyInput) SetPasswordReusePrevention(v int64) *UpdateAccountPasswordPolicyInput { + s.PasswordReusePrevention = &v + return s +} + +// SetRequireLowercaseCharacters sets the RequireLowercaseCharacters field's value. +func (s *UpdateAccountPasswordPolicyInput) SetRequireLowercaseCharacters(v bool) *UpdateAccountPasswordPolicyInput { + s.RequireLowercaseCharacters = &v + return s +} + +// SetRequireNumbers sets the RequireNumbers field's value. +func (s *UpdateAccountPasswordPolicyInput) SetRequireNumbers(v bool) *UpdateAccountPasswordPolicyInput { + s.RequireNumbers = &v + return s +} + +// SetRequireSymbols sets the RequireSymbols field's value. +func (s *UpdateAccountPasswordPolicyInput) SetRequireSymbols(v bool) *UpdateAccountPasswordPolicyInput { + s.RequireSymbols = &v + return s +} + +// SetRequireUppercaseCharacters sets the RequireUppercaseCharacters field's value. +func (s *UpdateAccountPasswordPolicyInput) SetRequireUppercaseCharacters(v bool) *UpdateAccountPasswordPolicyInput { + s.RequireUppercaseCharacters = &v + return s +} + type UpdateAccountPasswordPolicyOutput struct { _ struct{} `type:"structure"` } @@ -19147,6 +22185,18 @@ func (s *UpdateAssumeRolePolicyInput) Validate() error { return nil } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *UpdateAssumeRolePolicyInput) SetPolicyDocument(v string) *UpdateAssumeRolePolicyInput { + s.PolicyDocument = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *UpdateAssumeRolePolicyInput) SetRoleName(v string) *UpdateAssumeRolePolicyInput { + s.RoleName = &v + return s +} + type UpdateAssumeRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -19223,6 +22273,24 @@ func (s *UpdateGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *UpdateGroupInput) SetGroupName(v string) *UpdateGroupInput { + s.GroupName = &v + return s +} + +// SetNewGroupName sets the NewGroupName field's value. +func (s *UpdateGroupInput) SetNewGroupName(v string) *UpdateGroupInput { + s.NewGroupName = &v + return s +} + +// SetNewPath sets the NewPath field's value. +func (s *UpdateGroupInput) SetNewPath(v string) *UpdateGroupInput { + s.NewPath = &v + return s +} + type UpdateGroupOutput struct { _ struct{} `type:"structure"` } @@ -19294,6 +22362,24 @@ func (s *UpdateLoginProfileInput) Validate() error { return nil } +// SetPassword sets the Password field's value. +func (s *UpdateLoginProfileInput) SetPassword(v string) *UpdateLoginProfileInput { + s.Password = &v + return s +} + +// SetPasswordResetRequired sets the PasswordResetRequired field's value. +func (s *UpdateLoginProfileInput) SetPasswordResetRequired(v bool) *UpdateLoginProfileInput { + s.PasswordResetRequired = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateLoginProfileInput) SetUserName(v string) *UpdateLoginProfileInput { + s.UserName = &v + return s +} + type UpdateLoginProfileOutput struct { _ struct{} `type:"structure"` } @@ -19358,6 +22444,18 @@ func (s *UpdateOpenIDConnectProviderThumbprintInput) Validate() error { return nil } +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *UpdateOpenIDConnectProviderThumbprintInput) SetOpenIDConnectProviderArn(v string) *UpdateOpenIDConnectProviderThumbprintInput { + s.OpenIDConnectProviderArn = &v + return s +} + +// SetThumbprintList sets the ThumbprintList field's value. +func (s *UpdateOpenIDConnectProviderThumbprintInput) SetThumbprintList(v []*string) *UpdateOpenIDConnectProviderThumbprintInput { + s.ThumbprintList = v + return s +} + type UpdateOpenIDConnectProviderThumbprintOutput struct { _ struct{} `type:"structure"` } @@ -19426,6 +22524,18 @@ func (s *UpdateSAMLProviderInput) Validate() error { return nil } +// SetSAMLMetadataDocument sets the SAMLMetadataDocument field's value. +func (s *UpdateSAMLProviderInput) SetSAMLMetadataDocument(v string) *UpdateSAMLProviderInput { + s.SAMLMetadataDocument = &v + return s +} + +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *UpdateSAMLProviderInput) SetSAMLProviderArn(v string) *UpdateSAMLProviderInput { + s.SAMLProviderArn = &v + return s +} + // Contains the response to a successful UpdateSAMLProvider request. type UpdateSAMLProviderOutput struct { _ struct{} `type:"structure"` @@ -19444,6 +22554,12 @@ func (s UpdateSAMLProviderOutput) GoString() string { return s.String() } +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *UpdateSAMLProviderOutput) SetSAMLProviderArn(v string) *UpdateSAMLProviderOutput { + s.SAMLProviderArn = &v + return s +} + type UpdateSSHPublicKeyInput struct { _ struct{} `type:"structure"` @@ -19508,6 +22624,24 @@ func (s *UpdateSSHPublicKeyInput) Validate() error { return nil } +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *UpdateSSHPublicKeyInput) SetSSHPublicKeyId(v string) *UpdateSSHPublicKeyInput { + s.SSHPublicKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateSSHPublicKeyInput) SetStatus(v string) *UpdateSSHPublicKeyInput { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateSSHPublicKeyInput) SetUserName(v string) *UpdateSSHPublicKeyInput { + s.UserName = &v + return s +} + type UpdateSSHPublicKeyOutput struct { _ struct{} `type:"structure"` } @@ -19586,6 +22720,24 @@ func (s *UpdateServerCertificateInput) Validate() error { return nil } +// SetNewPath sets the NewPath field's value. +func (s *UpdateServerCertificateInput) SetNewPath(v string) *UpdateServerCertificateInput { + s.NewPath = &v + return s +} + +// SetNewServerCertificateName sets the NewServerCertificateName field's value. +func (s *UpdateServerCertificateInput) SetNewServerCertificateName(v string) *UpdateServerCertificateInput { + s.NewServerCertificateName = &v + return s +} + +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *UpdateServerCertificateInput) SetServerCertificateName(v string) *UpdateServerCertificateInput { + s.ServerCertificateName = &v + return s +} + type UpdateServerCertificateOutput struct { _ struct{} `type:"structure"` } @@ -19659,6 +22811,24 @@ func (s *UpdateSigningCertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *UpdateSigningCertificateInput) SetCertificateId(v string) *UpdateSigningCertificateInput { + s.CertificateId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateSigningCertificateInput) SetStatus(v string) *UpdateSigningCertificateInput { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateSigningCertificateInput) SetUserName(v string) *UpdateSigningCertificateInput { + s.UserName = &v + return s +} + type UpdateSigningCertificateOutput struct { _ struct{} `type:"structure"` } @@ -19737,6 +22907,24 @@ func (s *UpdateUserInput) Validate() error { return nil } +// SetNewPath sets the NewPath field's value. +func (s *UpdateUserInput) SetNewPath(v string) *UpdateUserInput { + s.NewPath = &v + return s +} + +// SetNewUserName sets the NewUserName field's value. +func (s *UpdateUserInput) SetNewUserName(v string) *UpdateUserInput { + s.NewUserName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateUserInput) SetUserName(v string) *UpdateUserInput { + s.UserName = &v + return s +} + type UpdateUserOutput struct { _ struct{} `type:"structure"` } @@ -19808,6 +22996,18 @@ func (s *UploadSSHPublicKeyInput) Validate() error { return nil } +// SetSSHPublicKeyBody sets the SSHPublicKeyBody field's value. +func (s *UploadSSHPublicKeyInput) SetSSHPublicKeyBody(v string) *UploadSSHPublicKeyInput { + s.SSHPublicKeyBody = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UploadSSHPublicKeyInput) SetUserName(v string) *UploadSSHPublicKeyInput { + s.UserName = &v + return s +} + // Contains the response to a successful UploadSSHPublicKey request. type UploadSSHPublicKeyOutput struct { _ struct{} `type:"structure"` @@ -19826,6 +23026,12 @@ func (s UploadSSHPublicKeyOutput) GoString() string { return s.String() } +// SetSSHPublicKey sets the SSHPublicKey field's value. +func (s *UploadSSHPublicKeyOutput) SetSSHPublicKey(v *SSHPublicKey) *UploadSSHPublicKeyOutput { + s.SSHPublicKey = v + return s +} + type UploadServerCertificateInput struct { _ struct{} `type:"structure"` @@ -19861,7 +23067,7 @@ type UploadServerCertificateInput struct { // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including // most punctuation characters, digits, and upper and lowercased letters. // - // If you are uploading a server certificate specifically for use with Amazon + // If you are uploading a server certificate specifically for use with Amazon // CloudFront distributions, you must specify a path using the --path option. // The path must begin with /cloudfront and must include a trailing slash (for // example, /cloudfront/test/). @@ -19933,6 +23139,36 @@ func (s *UploadServerCertificateInput) Validate() error { return nil } +// SetCertificateBody sets the CertificateBody field's value. +func (s *UploadServerCertificateInput) SetCertificateBody(v string) *UploadServerCertificateInput { + s.CertificateBody = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *UploadServerCertificateInput) SetCertificateChain(v string) *UploadServerCertificateInput { + s.CertificateChain = &v + return s +} + +// SetPath sets the Path field's value. +func (s *UploadServerCertificateInput) SetPath(v string) *UploadServerCertificateInput { + s.Path = &v + return s +} + +// SetPrivateKey sets the PrivateKey field's value. +func (s *UploadServerCertificateInput) SetPrivateKey(v string) *UploadServerCertificateInput { + s.PrivateKey = &v + return s +} + +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *UploadServerCertificateInput) SetServerCertificateName(v string) *UploadServerCertificateInput { + s.ServerCertificateName = &v + return s +} + // Contains the response to a successful UploadServerCertificate request. type UploadServerCertificateOutput struct { _ struct{} `type:"structure"` @@ -19952,6 +23188,12 @@ func (s UploadServerCertificateOutput) GoString() string { return s.String() } +// SetServerCertificateMetadata sets the ServerCertificateMetadata field's value. +func (s *UploadServerCertificateOutput) SetServerCertificateMetadata(v *ServerCertificateMetadata) *UploadServerCertificateOutput { + s.ServerCertificateMetadata = v + return s +} + type UploadSigningCertificateInput struct { _ struct{} `type:"structure"` @@ -20003,6 +23245,18 @@ func (s *UploadSigningCertificateInput) Validate() error { return nil } +// SetCertificateBody sets the CertificateBody field's value. +func (s *UploadSigningCertificateInput) SetCertificateBody(v string) *UploadSigningCertificateInput { + s.CertificateBody = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UploadSigningCertificateInput) SetUserName(v string) *UploadSigningCertificateInput { + s.UserName = &v + return s +} + // Contains the response to a successful UploadSigningCertificate request. type UploadSigningCertificateOutput struct { _ struct{} `type:"structure"` @@ -20023,15 +23277,21 @@ func (s UploadSigningCertificateOutput) GoString() string { return s.String() } +// SetCertificate sets the Certificate field's value. +func (s *UploadSigningCertificateOutput) SetCertificate(v *SigningCertificate) *UploadSigningCertificateOutput { + s.Certificate = v + return s +} + // Contains information about an IAM user entity. // // This data type is used as a response element in the following actions: // -// CreateUser +// * CreateUser // -// GetUser +// * GetUser // -// ListUsers +// * ListUsers type User struct { _ struct{} `type:"structure"` @@ -20056,14 +23316,14 @@ type User struct { // span, only the first use is returned in this field. This field is null (not // present) when: // - // The user does not have a password + // * The user does not have a password // - // The password exists but has never been used (at least not since IAM started - // tracking this information on October 20th, 2014 + // * The password exists but has never been used (at least not since IAM + // started tracking this information on October 20th, 2014 // - // there is no sign-in data associated with the user + // * there is no sign-in data associated with the user // - // 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"` // The path to the user. For more information about paths, see IAM Identifiers @@ -20096,6 +23356,42 @@ func (s User) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *User) SetArn(v string) *User { + s.Arn = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *User) SetCreateDate(v time.Time) *User { + s.CreateDate = &v + return s +} + +// SetPasswordLastUsed sets the PasswordLastUsed field's value. +func (s *User) SetPasswordLastUsed(v time.Time) *User { + s.PasswordLastUsed = &v + return s +} + +// SetPath sets the Path field's value. +func (s *User) SetPath(v string) *User { + s.Path = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *User) SetUserId(v string) *User { + s.UserId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *User) SetUserName(v string) *User { + s.UserName = &v + return s +} + // Contains information about an IAM user, including all the user's policies // and all the IAM groups the user is in. // @@ -20106,8 +23402,8 @@ type UserDetail struct { // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -20148,6 +23444,54 @@ func (s UserDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *UserDetail) SetArn(v string) *UserDetail { + s.Arn = &v + return s +} + +// SetAttachedManagedPolicies sets the AttachedManagedPolicies field's value. +func (s *UserDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *UserDetail { + s.AttachedManagedPolicies = v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *UserDetail) SetCreateDate(v time.Time) *UserDetail { + s.CreateDate = &v + return s +} + +// SetGroupList sets the GroupList field's value. +func (s *UserDetail) SetGroupList(v []*string) *UserDetail { + s.GroupList = v + return s +} + +// SetPath sets the Path field's value. +func (s *UserDetail) SetPath(v string) *UserDetail { + s.Path = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *UserDetail) SetUserId(v string) *UserDetail { + s.UserId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UserDetail) SetUserName(v string) *UserDetail { + s.UserName = &v + return s +} + +// SetUserPolicyList sets the UserPolicyList field's value. +func (s *UserDetail) SetUserPolicyList(v []*PolicyDetail) *UserDetail { + s.UserPolicyList = v + return s +} + // Contains information about a virtual MFA device. type VirtualMFADevice struct { _ struct{} `type:"structure"` @@ -20178,11 +23522,11 @@ type VirtualMFADevice struct { // // This data type is used as a response element in the following actions: // - // CreateUser + // * CreateUser // - // GetUser + // * GetUser // - // ListUsers + // * ListUsers User *User `type:"structure"` } @@ -20196,6 +23540,36 @@ func (s VirtualMFADevice) GoString() string { return s.String() } +// SetBase32StringSeed sets the Base32StringSeed field's value. +func (s *VirtualMFADevice) SetBase32StringSeed(v []byte) *VirtualMFADevice { + s.Base32StringSeed = v + return s +} + +// SetEnableDate sets the EnableDate field's value. +func (s *VirtualMFADevice) SetEnableDate(v time.Time) *VirtualMFADevice { + s.EnableDate = &v + return s +} + +// SetQRCodePNG sets the QRCodePNG field's value. +func (s *VirtualMFADevice) SetQRCodePNG(v []byte) *VirtualMFADevice { + s.QRCodePNG = v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *VirtualMFADevice) SetSerialNumber(v string) *VirtualMFADevice { + s.SerialNumber = &v + return s +} + +// SetUser sets the User field's value. +func (s *VirtualMFADevice) SetUser(v *User) *VirtualMFADevice { + s.User = v + return s +} + const ( // ContextKeyTypeEnumString is a ContextKeyTypeEnum enum value ContextKeyTypeEnumString = "string" diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/service.go b/vendor/github.com/aws/aws-sdk-go/service/iam/service.go index 362916f98..ab4f27d7c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/service.go @@ -17,16 +17,15 @@ import ( // information about IAM, see AWS Identity and Access Management (IAM) (http://aws.amazon.com/iam/). // For the user guide for IAM, see Using IAM (http://docs.aws.amazon.com/IAM/latest/UserGuide/). // -// AWS provides SDKs that consist of libraries and sample code for various -// programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). -// The SDKs provide a convenient way to create programmatic access to IAM and -// AWS. For example, the SDKs take care of tasks such as cryptographically signing -// requests (see below), managing errors, and retrying requests automatically. -// For information about the AWS SDKs, including how to download and install -// them, see the Tools for Amazon Web Services (http://aws.amazon.com/tools/) -// page. +// AWS provides SDKs that consist of libraries and sample code for various programming +// languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs +// provide a convenient way to create programmatic access to IAM and AWS. For +// example, the SDKs take care of tasks such as cryptographically signing requests +// (see below), managing errors, and retrying requests automatically. For information +// about the AWS SDKs, including how to download and install them, see the Tools +// for Amazon Web Services (http://aws.amazon.com/tools/) page. // -// We recommend that you use the AWS SDKs to make programmatic API calls to +// We recommend that you use the AWS SDKs to make programmatic API calls to // IAM. However, you can also use the IAM Query API to make direct calls to // the IAM web service. To learn more about the IAM Query API, see Making Query // Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) @@ -35,12 +34,12 @@ import ( // for others. However, GET requests are subject to the limitation size of a // URL. Therefore, for operations that require larger sizes, use a POST request. // -// Signing Requests +// Signing Requests // -// Requests must be signed using an access key ID and a secret access key. -// We strongly recommend that you do not use your AWS account access key ID -// and secret access key for everyday work with IAM. You can use the access -// key ID and secret access key for an IAM user or you can use the AWS Security +// Requests must be signed using an access key ID and a secret access key. We +// strongly recommend that you do not use your AWS account access key ID and +// secret access key for everyday work with IAM. You can use the access key +// ID and secret access key for an IAM user or you can use the AWS Security // Token Service to generate temporary security credentials and use those to // sign requests. // @@ -50,21 +49,21 @@ import ( // now require Signature Version 4. The documentation for operations that require // version 4 indicate this requirement. // -// Additional Resources +// Additional Resources // // For more information, see the following: // -// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). -// This topic provides general information about the types of credentials used -// for accessing AWS. +// * AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). +// This topic provides general information about the types of credentials +// used for accessing AWS. // -// IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html). -// This topic presents a list of suggestions for using the IAM service to help -// secure your AWS resources. +// * IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html). +// This topic presents a list of suggestions for using the IAM service to +// help secure your AWS resources. // -// Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html). -// This set of topics walk you through the process of signing a request using -// an access key ID and secret access key. +// * Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html). +// This set of topics walk you through the process of signing a request using +// an access key ID and secret access key. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type IAM struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go index 1d5749fa2..328bb1ae3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go @@ -76,8 +76,7 @@ func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *requ // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * ResourceInUseException // The resource is not available for this operation. For successful operation, @@ -167,12 +166,14 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re // to ACTIVE. You should perform read and write operations only on an ACTIVE // stream. // -// You receive a LimitExceededException when making a CreateStream request -// if you try to do one of the following: +// You receive a LimitExceededException when making a CreateStream request if +// you try to do one of the following: // -// Have more than five streams in the CREATING state at any point in time. -// Create more shards than are authorized for your account. For the default -// shard limit for an AWS account, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// * Have more than five streams in the CREATING state at any point in time. +// +// * Create more shards than are authorized for your account. +// +// For the default shard limit for an AWS account, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) // in the Amazon Kinesis Streams Developer Guide. If you need to increase this // limit, contact AWS Support (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html). // @@ -276,12 +277,7 @@ func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRete // // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. -// -// * LimitExceededException -// The requested resource exceeds the maximum number allowed, or the number -// of concurrent stream requests exceeds the maximum number allowed (5). +// correctly. // // * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't @@ -371,8 +367,7 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number @@ -384,6 +379,76 @@ func (c *Kinesis) DeleteStream(input *DeleteStreamInput) (*DeleteStreamOutput, e return out, err } +const opDescribeLimits = "DescribeLimits" + +// DescribeLimitsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLimits operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeLimits for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeLimits method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeLimitsRequest method. +// req, resp := client.DescribeLimitsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *Kinesis) DescribeLimitsRequest(input *DescribeLimitsInput) (req *request.Request, output *DescribeLimitsOutput) { + op := &request.Operation{ + Name: opDescribeLimits, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLimitsInput{} + } + + req = c.newRequest(op, input, output) + output = &DescribeLimitsOutput{} + req.Data = output + return +} + +// DescribeLimits API operation for Amazon Kinesis. +// +// Describes the shard limits and usage for the account. +// +// If you update your account limits, the old limits might be returned for a +// few minutes. +// +// This operation has a limit of 1 transaction per second per account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation DescribeLimits for usage and error information. +// +// Returned Error Codes: +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +func (c *Kinesis) DescribeLimits(input *DescribeLimitsInput) (*DescribeLimitsOutput, error) { + req, out := c.DescribeLimitsRequest(input) + err := req.Send() + return out, err +} + const opDescribeStream = "DescribeStream" // DescribeStreamRequest generates a "aws/request.Request" representing the @@ -437,30 +502,23 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques // // Describes the specified Amazon Kinesis stream. // -// The information about the stream includes its current status, its Amazon -// Resource Name (ARN), and an array of shard objects. For each shard object, -// there is information about the hash key and sequence number ranges that the -// shard spans, and the IDs of any earlier shards that played in a role in creating -// the shard. A sequence number is the identifier associated with every record -// ingested in the stream. The sequence number is assigned when a record is -// put into the stream. +// The information returned includes the stream name, Amazon Resource Name (ARN), +// creation time, enhanced metric configuration, and shard map. The shard map +// is an array of shard objects. For each shard object, there is the hash key +// and sequence number ranges that the shard spans, and the IDs of any earlier +// shards that played in a role in creating the shard. Every record ingested +// in the stream is identified by a sequence number, which is assigned when +// the record is put into the stream. // -// You can limit the number of returned shards using the Limit parameter. The -// number of shards in a stream may be too large to return from a single call -// to DescribeStream. You can detect this by using the HasMoreShards flag in -// the returned output. HasMoreShards is set to true when there is more data -// available. +// You can limit the number of shards returned by each call. For more information, +// see Retrieving Shards from a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html) +// in the Amazon Kinesis Streams Developer Guide. // -// DescribeStream is a paginated operation. If there are more shards available, -// you can request them using the shard ID of the last shard returned. Specify -// this ID in the ExclusiveStartShardId parameter in a subsequent request to -// DescribeStream. +// There are no guarantees about the chronological order shards returned. To +// process shards in chronological order, use the ID of the parent shard to +// track the lineage to the oldest shard. // -// There are no guarantees about the chronological order shards returned in -// DescribeStream results. If you want to process shards in chronological order, -// use ParentShardId to track lineage to the oldest shard. -// -// DescribeStream has a limit of 10 transactions per second per account. +// This operation has a limit of 10 transactions per second per account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -472,8 +530,7 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number @@ -579,8 +636,7 @@ func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitor // // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // func (c *Kinesis) DisableEnhancedMonitoring(input *DisableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { req, out := c.DisableEnhancedMonitoringRequest(input) @@ -657,8 +713,7 @@ func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitorin // // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // func (c *Kinesis) EnableEnhancedMonitoring(input *EnableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { req, out := c.EnableEnhancedMonitoringRequest(input) @@ -775,8 +830,7 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't @@ -893,8 +947,7 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't @@ -987,12 +1040,7 @@ func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRete // // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. -// -// * LimitExceededException -// The requested resource exceeds the maximum number allowed, or the number -// of concurrent stream requests exceeds the maximum number allowed (5). +// correctly. // // * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't @@ -1062,13 +1110,13 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ // you do not specify a value for the Limit parameter, Amazon Kinesis uses the // default limit, which is currently 10. // -// You can detect if there are more streams available to list by using the -// HasMoreStreams flag from the returned output. If there are more streams available, -// you can request more streams by using the name of the last stream returned -// by the ListStreams request in the ExclusiveStartStreamName parameter in a -// subsequent request to ListStreams. The group of stream names returned by -// the subsequent request is then added to the list. You can continue this process -// until all the stream names have been collected in the list. +// You can detect if there are more streams available to list by using the HasMoreStreams +// flag from the returned output. If there are more streams available, you can +// request more streams by using the name of the last stream returned by the +// ListStreams request in the ExclusiveStartStreamName parameter in a subsequent +// request to ListStreams. The group of stream names returned by the subsequent +// request is then added to the list. You can continue this process until all +// the stream names have been collected in the list. // // ListStreams has a limit of 5 transactions per second per account. // @@ -1172,8 +1220,7 @@ func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req * // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't @@ -1265,8 +1312,8 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ // to ACTIVE. Read and write operations continue to work while the stream is // in the UPDATING state. // -// You use DescribeStream to determine the shard IDs that are specified in -// the MergeShards request. +// You use DescribeStream to determine the shard IDs that are specified in the +// MergeShards request. // // If you try to operate on too many streams in parallel using CreateStream, // DeleteStream, MergeShards or SplitShard, you will receive a LimitExceededException. @@ -1283,8 +1330,7 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * ResourceInUseException // The resource is not available for this operation. For successful operation, @@ -1398,8 +1444,7 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't @@ -1481,10 +1526,10 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // The data blob can be any type of data; for example, a segment from a log // file, geographic/location data, website clickstream data, and so on. // -// The partition key is used by Amazon Kinesis as input to a hash function -// that maps the partition key and associated data to a specific shard. An MD5 -// hash function is used to map partition keys to 128-bit integer values and -// to map associated data records to shards. As a result of this hashing mechanism, +// The partition key is used by Amazon Kinesis as input to a hash function that +// maps the partition key and associated data to a specific shard. An MD5 hash +// function is used to map partition keys to 128-bit integer values and to map +// associated data records to shards. As a result of this hashing mechanism, // all data records with the same partition key map to the same shard within // the stream. For more information, see Adding Data to a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream) // in the Amazon Kinesis Streams Developer Guide. @@ -1520,9 +1565,9 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // see Adding Multiple Records with PutRecords (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords) // in the Amazon Kinesis Streams Developer Guide. // -// By default, data records are accessible for only 24 hours from the time -// that they are added to an Amazon Kinesis stream. This retention period can -// be modified using the DecreaseStreamRetentionPeriod and IncreaseStreamRetentionPeriod +// By default, data records are accessible for only 24 hours from the time that +// they are added to an Amazon Kinesis stream. This retention period can be +// modified using the DecreaseStreamRetentionPeriod and IncreaseStreamRetentionPeriod // operations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1535,8 +1580,7 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't @@ -1618,8 +1662,7 @@ func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * ResourceInUseException // The resource is not available for this operation. For successful operation, @@ -1742,8 +1785,7 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques // Returned Error Codes: // * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // // * ResourceInUseException // The resource is not available for this operation. For successful operation, @@ -1763,6 +1805,104 @@ func (c *Kinesis) SplitShard(input *SplitShardInput) (*SplitShardOutput, error) return out, err } +const opUpdateShardCount = "UpdateShardCount" + +// UpdateShardCountRequest generates a "aws/request.Request" representing the +// client's request for the UpdateShardCount operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateShardCount for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateShardCount method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateShardCountRequest method. +// req, resp := client.UpdateShardCountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *Kinesis) UpdateShardCountRequest(input *UpdateShardCountInput) (req *request.Request, output *UpdateShardCountOutput) { + op := &request.Operation{ + Name: opUpdateShardCount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateShardCountInput{} + } + + req = c.newRequest(op, input, output) + output = &UpdateShardCountOutput{} + req.Data = output + return +} + +// UpdateShardCount API operation for Amazon Kinesis. +// +// Updates the shard count of the specified stream to the specified number of +// shards. +// +// Updating the shard count is an asynchronous operation. Upon receiving the +// request, Amazon Kinesis returns immediately and sets the status of the stream +// to UPDATING. After the update is complete, Amazon Kinesis sets the status +// of the stream back to ACTIVE. Depending on the size of the stream, the scaling +// action could take a few minutes to complete. You can continue to read and +// write data to your stream while its status is UPDATING. +// +// To update the shard count, Amazon Kinesis performs splits and merges and +// individual shards. This can cause short-lived shards to be created, in addition +// to the final shards. We recommend that you double or halve the shard count, +// as this results in the fewest number of splits or merges. +// +// This operation has a rate limit of twice per rolling 24 hour period. You +// cannot scale above double your current shard count, scale below half your +// current shard count, or exceed the shard limits for your account. +// +// For the default limits for an AWS account, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// in the Amazon Kinesis Streams Developer Guide. If you need to increase a +// limit, contact AWS Support (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation UpdateShardCount for usage and error information. +// +// Returned Error Codes: +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly. +// +func (c *Kinesis) UpdateShardCount(input *UpdateShardCountInput) (*UpdateShardCountOutput, error) { + req, out := c.UpdateShardCountRequest(input) + err := req.Send() + return out, err +} + // Represents the input for AddTagsToStream. type AddTagsToStreamInput struct { _ struct{} `type:"structure"` @@ -1810,6 +1950,18 @@ func (s *AddTagsToStreamInput) Validate() error { return nil } +// SetStreamName sets the StreamName field's value. +func (s *AddTagsToStreamInput) SetStreamName(v string) *AddTagsToStreamInput { + s.StreamName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToStreamInput) SetTags(v map[string]*string) *AddTagsToStreamInput { + s.Tags = v + return s +} + type AddTagsToStreamOutput struct { _ struct{} `type:"structure"` } @@ -1879,6 +2031,18 @@ func (s *CreateStreamInput) Validate() error { return nil } +// SetShardCount sets the ShardCount field's value. +func (s *CreateStreamInput) SetShardCount(v int64) *CreateStreamInput { + s.ShardCount = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *CreateStreamInput) SetStreamName(v string) *CreateStreamInput { + s.StreamName = &v + return s +} + type CreateStreamOutput struct { _ struct{} `type:"structure"` } @@ -1901,7 +2065,7 @@ type DecreaseStreamRetentionPeriodInput struct { // retention period. // // RetentionPeriodHours is a required field - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` + RetentionPeriodHours *int64 `min:"1" type:"integer" required:"true"` // The name of the stream to modify. // @@ -1925,8 +2089,8 @@ func (s *DecreaseStreamRetentionPeriodInput) Validate() error { if s.RetentionPeriodHours == nil { invalidParams.Add(request.NewErrParamRequired("RetentionPeriodHours")) } - if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 24 { - invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 24)) + if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 1 { + invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 1)) } if s.StreamName == nil { invalidParams.Add(request.NewErrParamRequired("StreamName")) @@ -1941,6 +2105,18 @@ func (s *DecreaseStreamRetentionPeriodInput) Validate() error { return nil } +// SetRetentionPeriodHours sets the RetentionPeriodHours field's value. +func (s *DecreaseStreamRetentionPeriodInput) SetRetentionPeriodHours(v int64) *DecreaseStreamRetentionPeriodInput { + s.RetentionPeriodHours = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *DecreaseStreamRetentionPeriodInput) SetStreamName(v string) *DecreaseStreamRetentionPeriodInput { + s.StreamName = &v + return s +} + type DecreaseStreamRetentionPeriodOutput struct { _ struct{} `type:"structure"` } @@ -1991,6 +2167,12 @@ func (s *DeleteStreamInput) Validate() error { return nil } +// SetStreamName sets the StreamName field's value. +func (s *DeleteStreamInput) SetStreamName(v string) *DeleteStreamInput { + s.StreamName = &v + return s +} + type DeleteStreamOutput struct { _ struct{} `type:"structure"` } @@ -2005,6 +2187,56 @@ func (s DeleteStreamOutput) GoString() string { return s.String() } +type DescribeLimitsInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DescribeLimitsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLimitsInput) GoString() string { + return s.String() +} + +type DescribeLimitsOutput struct { + _ struct{} `type:"structure"` + + // The number of open shards. + // + // OpenShardCount is a required field + OpenShardCount *int64 `type:"integer" required:"true"` + + // The maximum number of shards. + // + // ShardLimit is a required field + ShardLimit *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s DescribeLimitsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLimitsOutput) GoString() string { + return s.String() +} + +// SetOpenShardCount sets the OpenShardCount field's value. +func (s *DescribeLimitsOutput) SetOpenShardCount(v int64) *DescribeLimitsOutput { + s.OpenShardCount = &v + return s +} + +// SetShardLimit sets the ShardLimit field's value. +func (s *DescribeLimitsOutput) SetShardLimit(v int64) *DescribeLimitsOutput { + s.ShardLimit = &v + return s +} + // Represents the input for DescribeStream. type DescribeStreamInput struct { _ struct{} `type:"structure"` @@ -2012,7 +2244,8 @@ type DescribeStreamInput struct { // The shard ID of the shard to start with. ExclusiveStartShardId *string `min:"1" type:"string"` - // The maximum number of shards to return. + // The maximum number of shards to return in a single call. The default value + // is 100. If you specify a value greater than 100, at most 100 shards are returned. Limit *int64 `min:"1" type:"integer"` // The name of the stream to describe. @@ -2053,12 +2286,30 @@ func (s *DescribeStreamInput) Validate() error { return nil } +// SetExclusiveStartShardId sets the ExclusiveStartShardId field's value. +func (s *DescribeStreamInput) SetExclusiveStartShardId(v string) *DescribeStreamInput { + s.ExclusiveStartShardId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeStreamInput) SetLimit(v int64) *DescribeStreamInput { + s.Limit = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *DescribeStreamInput) SetStreamName(v string) *DescribeStreamInput { + s.StreamName = &v + return s +} + // Represents the output for DescribeStream. type DescribeStreamOutput struct { _ struct{} `type:"structure"` // The current status of the stream, the stream ARN, an array of shard objects - // that comprise the stream, and states whether there are more shards available. + // that comprise the stream, and whether there are more shards available. // // StreamDescription is a required field StreamDescription *StreamDescription `type:"structure" required:"true"` @@ -2074,6 +2325,12 @@ func (s DescribeStreamOutput) GoString() string { return s.String() } +// SetStreamDescription sets the StreamDescription field's value. +func (s *DescribeStreamOutput) SetStreamDescription(v *StreamDescription) *DescribeStreamOutput { + s.StreamDescription = v + return s +} + // Represents the input for DisableEnhancedMonitoring. type DisableEnhancedMonitoringInput struct { _ struct{} `type:"structure"` @@ -2083,9 +2340,23 @@ type DisableEnhancedMonitoringInput struct { // The following are the valid shard-level metrics. The value "ALL" disables // every metric. // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with + // * IncomingBytes + // + // * IncomingRecords + // + // * OutgoingBytes + // + // * OutgoingRecords + // + // * WriteProvisionedThroughputExceeded + // + // * ReadProvisionedThroughputExceeded + // + // * IteratorAgeMilliseconds + // + // * ALL + // + // For more information, see Monitoring the Amazon Kinesis Streams Service with // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) // in the Amazon Kinesis Streams Developer Guide. // @@ -2130,6 +2401,18 @@ func (s *DisableEnhancedMonitoringInput) Validate() error { return nil } +// SetShardLevelMetrics sets the ShardLevelMetrics field's value. +func (s *DisableEnhancedMonitoringInput) SetShardLevelMetrics(v []*string) *DisableEnhancedMonitoringInput { + s.ShardLevelMetrics = v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *DisableEnhancedMonitoringInput) SetStreamName(v string) *DisableEnhancedMonitoringInput { + s.StreamName = &v + return s +} + // Represents the input for EnableEnhancedMonitoring. type EnableEnhancedMonitoringInput struct { _ struct{} `type:"structure"` @@ -2139,9 +2422,23 @@ type EnableEnhancedMonitoringInput struct { // The following are the valid shard-level metrics. The value "ALL" enables // every metric. // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with + // * IncomingBytes + // + // * IncomingRecords + // + // * OutgoingBytes + // + // * OutgoingRecords + // + // * WriteProvisionedThroughputExceeded + // + // * ReadProvisionedThroughputExceeded + // + // * IteratorAgeMilliseconds + // + // * ALL + // + // For more information, see Monitoring the Amazon Kinesis Streams Service with // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) // in the Amazon Kinesis Streams Developer Guide. // @@ -2186,6 +2483,18 @@ func (s *EnableEnhancedMonitoringInput) Validate() error { return nil } +// SetShardLevelMetrics sets the ShardLevelMetrics field's value. +func (s *EnableEnhancedMonitoringInput) SetShardLevelMetrics(v []*string) *EnableEnhancedMonitoringInput { + s.ShardLevelMetrics = v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *EnableEnhancedMonitoringInput) SetStreamName(v string) *EnableEnhancedMonitoringInput { + s.StreamName = &v + return s +} + // Represents enhanced metrics types. type EnhancedMetrics struct { _ struct{} `type:"structure"` @@ -2195,9 +2504,23 @@ type EnhancedMetrics struct { // The following are the valid shard-level metrics. The value "ALL" enhances // every metric. // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with + // * IncomingBytes + // + // * IncomingRecords + // + // * OutgoingBytes + // + // * OutgoingRecords + // + // * WriteProvisionedThroughputExceeded + // + // * ReadProvisionedThroughputExceeded + // + // * IteratorAgeMilliseconds + // + // * ALL + // + // For more information, see Monitoring the Amazon Kinesis Streams Service with // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) // in the Amazon Kinesis Streams Developer Guide. ShardLevelMetrics []*string `min:"1" type:"list"` @@ -2213,6 +2536,12 @@ func (s EnhancedMetrics) GoString() string { return s.String() } +// SetShardLevelMetrics sets the ShardLevelMetrics field's value. +func (s *EnhancedMetrics) SetShardLevelMetrics(v []*string) *EnhancedMetrics { + s.ShardLevelMetrics = v + return s +} + // Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring. type EnhancedMonitoringOutput struct { _ struct{} `type:"structure"` @@ -2239,6 +2568,24 @@ func (s EnhancedMonitoringOutput) GoString() string { return s.String() } +// SetCurrentShardLevelMetrics sets the CurrentShardLevelMetrics field's value. +func (s *EnhancedMonitoringOutput) SetCurrentShardLevelMetrics(v []*string) *EnhancedMonitoringOutput { + s.CurrentShardLevelMetrics = v + return s +} + +// SetDesiredShardLevelMetrics sets the DesiredShardLevelMetrics field's value. +func (s *EnhancedMonitoringOutput) SetDesiredShardLevelMetrics(v []*string) *EnhancedMonitoringOutput { + s.DesiredShardLevelMetrics = v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *EnhancedMonitoringOutput) SetStreamName(v string) *EnhancedMonitoringOutput { + s.StreamName = &v + return s +} + // Represents the input for GetRecords. type GetRecordsInput struct { _ struct{} `type:"structure"` @@ -2284,6 +2631,18 @@ func (s *GetRecordsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetRecordsInput) SetLimit(v int64) *GetRecordsInput { + s.Limit = &v + return s +} + +// SetShardIterator sets the ShardIterator field's value. +func (s *GetRecordsInput) SetShardIterator(v string) *GetRecordsInput { + s.ShardIterator = &v + return s +} + // Represents the output for GetRecords. type GetRecordsOutput struct { _ struct{} `type:"structure"` @@ -2315,6 +2674,24 @@ func (s GetRecordsOutput) GoString() string { return s.String() } +// SetMillisBehindLatest sets the MillisBehindLatest field's value. +func (s *GetRecordsOutput) SetMillisBehindLatest(v int64) *GetRecordsOutput { + s.MillisBehindLatest = &v + return s +} + +// SetNextShardIterator sets the NextShardIterator field's value. +func (s *GetRecordsOutput) SetNextShardIterator(v string) *GetRecordsOutput { + s.NextShardIterator = &v + return s +} + +// SetRecords sets the Records field's value. +func (s *GetRecordsOutput) SetRecords(v []*Record) *GetRecordsOutput { + s.Records = v + return s +} + // Represents the input for GetShardIterator. type GetShardIteratorInput struct { _ struct{} `type:"structure"` @@ -2329,15 +2706,20 @@ type GetShardIteratorInput struct { // // The following are the valid Amazon Kinesis shard iterator types: // - // AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific - // sequence number, provided in the value StartingSequenceNumber. AFTER_SEQUENCE_NUMBER - // - Start reading right after the position denoted by a specific sequence number, - // provided in the value StartingSequenceNumber. AT_TIMESTAMP - Start reading - // from the position denoted by a specific timestamp, provided in the value - // Timestamp. TRIM_HORIZON - Start reading at the last untrimmed record in the - // shard in the system, which is the oldest data record in the shard. LATEST - // - Start reading just after the most recent record in the shard, so that you - // always read the most recent data in the shard. + // * AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific + // sequence number, provided in the value StartingSequenceNumber. + // + // * AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted + // by a specific sequence number, provided in the value StartingSequenceNumber. + // + // * AT_TIMESTAMP - Start reading from the position denoted by a specific + // timestamp, provided in the value Timestamp. + // + // * TRIM_HORIZON - Start reading at the last untrimmed record in the shard + // in the system, which is the oldest data record in the shard. + // + // * LATEST - Start reading just after the most recent record in the shard, + // so that you always read the most recent data in the shard. // // ShardIteratorType is a required field ShardIteratorType *string `type:"string" required:"true" enum:"ShardIteratorType"` @@ -2396,6 +2778,36 @@ func (s *GetShardIteratorInput) Validate() error { return nil } +// SetShardId sets the ShardId field's value. +func (s *GetShardIteratorInput) SetShardId(v string) *GetShardIteratorInput { + s.ShardId = &v + return s +} + +// SetShardIteratorType sets the ShardIteratorType field's value. +func (s *GetShardIteratorInput) SetShardIteratorType(v string) *GetShardIteratorInput { + s.ShardIteratorType = &v + return s +} + +// SetStartingSequenceNumber sets the StartingSequenceNumber field's value. +func (s *GetShardIteratorInput) SetStartingSequenceNumber(v string) *GetShardIteratorInput { + s.StartingSequenceNumber = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *GetShardIteratorInput) SetStreamName(v string) *GetShardIteratorInput { + s.StreamName = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *GetShardIteratorInput) SetTimestamp(v time.Time) *GetShardIteratorInput { + s.Timestamp = &v + return s +} + // Represents the output for GetShardIterator. type GetShardIteratorOutput struct { _ struct{} `type:"structure"` @@ -2416,6 +2828,12 @@ func (s GetShardIteratorOutput) GoString() string { return s.String() } +// SetShardIterator sets the ShardIterator field's value. +func (s *GetShardIteratorOutput) SetShardIterator(v string) *GetShardIteratorOutput { + s.ShardIterator = &v + return s +} + // The range of possible hash key values for the shard, which is a set of ordered // contiguous positive integers. type HashKeyRange struct { @@ -2442,6 +2860,18 @@ func (s HashKeyRange) GoString() string { return s.String() } +// SetEndingHashKey sets the EndingHashKey field's value. +func (s *HashKeyRange) SetEndingHashKey(v string) *HashKeyRange { + s.EndingHashKey = &v + return s +} + +// SetStartingHashKey sets the StartingHashKey field's value. +func (s *HashKeyRange) SetStartingHashKey(v string) *HashKeyRange { + s.StartingHashKey = &v + return s +} + // Represents the input for IncreaseStreamRetentionPeriod. type IncreaseStreamRetentionPeriodInput struct { _ struct{} `type:"structure"` @@ -2450,7 +2880,7 @@ type IncreaseStreamRetentionPeriodInput struct { // retention period. // // RetentionPeriodHours is a required field - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` + RetentionPeriodHours *int64 `min:"1" type:"integer" required:"true"` // The name of the stream to modify. // @@ -2474,8 +2904,8 @@ func (s *IncreaseStreamRetentionPeriodInput) Validate() error { if s.RetentionPeriodHours == nil { invalidParams.Add(request.NewErrParamRequired("RetentionPeriodHours")) } - if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 24 { - invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 24)) + if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 1 { + invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 1)) } if s.StreamName == nil { invalidParams.Add(request.NewErrParamRequired("StreamName")) @@ -2490,6 +2920,18 @@ func (s *IncreaseStreamRetentionPeriodInput) Validate() error { return nil } +// SetRetentionPeriodHours sets the RetentionPeriodHours field's value. +func (s *IncreaseStreamRetentionPeriodInput) SetRetentionPeriodHours(v int64) *IncreaseStreamRetentionPeriodInput { + s.RetentionPeriodHours = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *IncreaseStreamRetentionPeriodInput) SetStreamName(v string) *IncreaseStreamRetentionPeriodInput { + s.StreamName = &v + return s +} + type IncreaseStreamRetentionPeriodOutput struct { _ struct{} `type:"structure"` } @@ -2541,6 +2983,18 @@ func (s *ListStreamsInput) Validate() error { return nil } +// SetExclusiveStartStreamName sets the ExclusiveStartStreamName field's value. +func (s *ListStreamsInput) SetExclusiveStartStreamName(v string) *ListStreamsInput { + s.ExclusiveStartStreamName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListStreamsInput) SetLimit(v int64) *ListStreamsInput { + s.Limit = &v + return s +} + // Represents the output for ListStreams. type ListStreamsOutput struct { _ struct{} `type:"structure"` @@ -2567,6 +3021,18 @@ func (s ListStreamsOutput) GoString() string { return s.String() } +// SetHasMoreStreams sets the HasMoreStreams field's value. +func (s *ListStreamsOutput) SetHasMoreStreams(v bool) *ListStreamsOutput { + s.HasMoreStreams = &v + return s +} + +// SetStreamNames sets the StreamNames field's value. +func (s *ListStreamsOutput) SetStreamNames(v []*string) *ListStreamsOutput { + s.StreamNames = v + return s +} + // Represents the input for ListTagsForStream. type ListTagsForStreamInput struct { _ struct{} `type:"structure"` @@ -2618,6 +3084,24 @@ func (s *ListTagsForStreamInput) Validate() error { return nil } +// SetExclusiveStartTagKey sets the ExclusiveStartTagKey field's value. +func (s *ListTagsForStreamInput) SetExclusiveStartTagKey(v string) *ListTagsForStreamInput { + s.ExclusiveStartTagKey = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListTagsForStreamInput) SetLimit(v int64) *ListTagsForStreamInput { + s.Limit = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *ListTagsForStreamInput) SetStreamName(v string) *ListTagsForStreamInput { + s.StreamName = &v + return s +} + // Represents the output for ListTagsForStream. type ListTagsForStreamOutput struct { _ struct{} `type:"structure"` @@ -2645,6 +3129,18 @@ func (s ListTagsForStreamOutput) GoString() string { return s.String() } +// SetHasMoreTags sets the HasMoreTags field's value. +func (s *ListTagsForStreamOutput) SetHasMoreTags(v bool) *ListTagsForStreamOutput { + s.HasMoreTags = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForStreamOutput) SetTags(v []*Tag) *ListTagsForStreamOutput { + s.Tags = v + return s +} + // Represents the input for MergeShards. type MergeShardsInput struct { _ struct{} `type:"structure"` @@ -2703,6 +3199,24 @@ func (s *MergeShardsInput) Validate() error { return nil } +// SetAdjacentShardToMerge sets the AdjacentShardToMerge field's value. +func (s *MergeShardsInput) SetAdjacentShardToMerge(v string) *MergeShardsInput { + s.AdjacentShardToMerge = &v + return s +} + +// SetShardToMerge sets the ShardToMerge field's value. +func (s *MergeShardsInput) SetShardToMerge(v string) *MergeShardsInput { + s.ShardToMerge = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *MergeShardsInput) SetStreamName(v string) *MergeShardsInput { + s.StreamName = &v + return s +} + type MergeShardsOutput struct { _ struct{} `type:"structure"` } @@ -2795,6 +3309,36 @@ func (s *PutRecordInput) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *PutRecordInput) SetData(v []byte) *PutRecordInput { + s.Data = v + return s +} + +// SetExplicitHashKey sets the ExplicitHashKey field's value. +func (s *PutRecordInput) SetExplicitHashKey(v string) *PutRecordInput { + s.ExplicitHashKey = &v + return s +} + +// SetPartitionKey sets the PartitionKey field's value. +func (s *PutRecordInput) SetPartitionKey(v string) *PutRecordInput { + s.PartitionKey = &v + return s +} + +// SetSequenceNumberForOrdering sets the SequenceNumberForOrdering field's value. +func (s *PutRecordInput) SetSequenceNumberForOrdering(v string) *PutRecordInput { + s.SequenceNumberForOrdering = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *PutRecordInput) SetStreamName(v string) *PutRecordInput { + s.StreamName = &v + return s +} + // Represents the output for PutRecord. type PutRecordOutput struct { _ struct{} `type:"structure"` @@ -2823,6 +3367,18 @@ func (s PutRecordOutput) GoString() string { return s.String() } +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *PutRecordOutput) SetSequenceNumber(v string) *PutRecordOutput { + s.SequenceNumber = &v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *PutRecordOutput) SetShardId(v string) *PutRecordOutput { + s.ShardId = &v + return s +} + // A PutRecords request. type PutRecordsInput struct { _ struct{} `type:"structure"` @@ -2880,6 +3436,18 @@ func (s *PutRecordsInput) Validate() error { return nil } +// SetRecords sets the Records field's value. +func (s *PutRecordsInput) SetRecords(v []*PutRecordsRequestEntry) *PutRecordsInput { + s.Records = v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *PutRecordsInput) SetStreamName(v string) *PutRecordsInput { + s.StreamName = &v + return s +} + // PutRecords results. type PutRecordsOutput struct { _ struct{} `type:"structure"` @@ -2907,6 +3475,18 @@ func (s PutRecordsOutput) GoString() string { return s.String() } +// SetFailedRecordCount sets the FailedRecordCount field's value. +func (s *PutRecordsOutput) SetFailedRecordCount(v int64) *PutRecordsOutput { + s.FailedRecordCount = &v + return s +} + +// SetRecords sets the Records field's value. +func (s *PutRecordsOutput) SetRecords(v []*PutRecordsResultEntry) *PutRecordsOutput { + s.Records = v + return s +} + // Represents the output for PutRecords. type PutRecordsRequestEntry struct { _ struct{} `type:"structure"` @@ -2967,6 +3547,24 @@ func (s *PutRecordsRequestEntry) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *PutRecordsRequestEntry) SetData(v []byte) *PutRecordsRequestEntry { + s.Data = v + return s +} + +// SetExplicitHashKey sets the ExplicitHashKey field's value. +func (s *PutRecordsRequestEntry) SetExplicitHashKey(v string) *PutRecordsRequestEntry { + s.ExplicitHashKey = &v + return s +} + +// SetPartitionKey sets the PartitionKey field's value. +func (s *PutRecordsRequestEntry) SetPartitionKey(v string) *PutRecordsRequestEntry { + s.PartitionKey = &v + return s +} + // Represents the result of an individual record from a PutRecords request. // A record that is successfully added to a stream includes SequenceNumber and // ShardId in the result. A record that fails to be added to the stream includes @@ -3001,6 +3599,30 @@ func (s PutRecordsResultEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *PutRecordsResultEntry) SetErrorCode(v string) *PutRecordsResultEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PutRecordsResultEntry) SetErrorMessage(v string) *PutRecordsResultEntry { + s.ErrorMessage = &v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *PutRecordsResultEntry) SetSequenceNumber(v string) *PutRecordsResultEntry { + s.SequenceNumber = &v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *PutRecordsResultEntry) SetShardId(v string) *PutRecordsResultEntry { + s.ShardId = &v + return s +} + // The unit of data of the Amazon Kinesis stream, which is composed of a sequence // number, a partition key, and a data blob. type Record struct { @@ -3041,6 +3663,30 @@ func (s Record) GoString() string { return s.String() } +// SetApproximateArrivalTimestamp sets the ApproximateArrivalTimestamp field's value. +func (s *Record) SetApproximateArrivalTimestamp(v time.Time) *Record { + s.ApproximateArrivalTimestamp = &v + return s +} + +// SetData sets the Data field's value. +func (s *Record) SetData(v []byte) *Record { + s.Data = v + return s +} + +// SetPartitionKey sets the PartitionKey field's value. +func (s *Record) SetPartitionKey(v string) *Record { + s.PartitionKey = &v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *Record) SetSequenceNumber(v string) *Record { + s.SequenceNumber = &v + return s +} + // Represents the input for RemoveTagsFromStream. type RemoveTagsFromStreamInput struct { _ struct{} `type:"structure"` @@ -3088,6 +3734,18 @@ func (s *RemoveTagsFromStreamInput) Validate() error { return nil } +// SetStreamName sets the StreamName field's value. +func (s *RemoveTagsFromStreamInput) SetStreamName(v string) *RemoveTagsFromStreamInput { + s.StreamName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromStreamInput) SetTagKeys(v []*string) *RemoveTagsFromStreamInput { + s.TagKeys = v + return s +} + type RemoveTagsFromStreamOutput struct { _ struct{} `type:"structure"` } @@ -3126,6 +3784,18 @@ func (s SequenceNumberRange) GoString() string { return s.String() } +// SetEndingSequenceNumber sets the EndingSequenceNumber field's value. +func (s *SequenceNumberRange) SetEndingSequenceNumber(v string) *SequenceNumberRange { + s.EndingSequenceNumber = &v + return s +} + +// SetStartingSequenceNumber sets the StartingSequenceNumber field's value. +func (s *SequenceNumberRange) SetStartingSequenceNumber(v string) *SequenceNumberRange { + s.StartingSequenceNumber = &v + return s +} + // A uniquely identified group of data records in an Amazon Kinesis stream. type Shard struct { _ struct{} `type:"structure"` @@ -3163,6 +3833,36 @@ func (s Shard) GoString() string { return s.String() } +// SetAdjacentParentShardId sets the AdjacentParentShardId field's value. +func (s *Shard) SetAdjacentParentShardId(v string) *Shard { + s.AdjacentParentShardId = &v + return s +} + +// SetHashKeyRange sets the HashKeyRange field's value. +func (s *Shard) SetHashKeyRange(v *HashKeyRange) *Shard { + s.HashKeyRange = v + return s +} + +// SetParentShardId sets the ParentShardId field's value. +func (s *Shard) SetParentShardId(v string) *Shard { + s.ParentShardId = &v + return s +} + +// SetSequenceNumberRange sets the SequenceNumberRange field's value. +func (s *Shard) SetSequenceNumberRange(v *SequenceNumberRange) *Shard { + s.SequenceNumberRange = v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *Shard) SetShardId(v string) *Shard { + s.ShardId = &v + return s +} + // Represents the input for SplitShard. type SplitShardInput struct { _ struct{} `type:"structure"` @@ -3224,6 +3924,24 @@ func (s *SplitShardInput) Validate() error { return nil } +// SetNewStartingHashKey sets the NewStartingHashKey field's value. +func (s *SplitShardInput) SetNewStartingHashKey(v string) *SplitShardInput { + s.NewStartingHashKey = &v + return s +} + +// SetShardToSplit sets the ShardToSplit field's value. +func (s *SplitShardInput) SetShardToSplit(v string) *SplitShardInput { + s.ShardToSplit = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *SplitShardInput) SetStreamName(v string) *SplitShardInput { + s.StreamName = &v + return s +} + type SplitShardOutput struct { _ struct{} `type:"structure"` } @@ -3255,7 +3973,7 @@ type StreamDescription struct { // The current retention period, in hours. // // RetentionPeriodHours is a required field - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` + RetentionPeriodHours *int64 `min:"1" type:"integer" required:"true"` // The shards that comprise the stream. // @@ -3267,6 +3985,11 @@ type StreamDescription struct { // StreamARN is a required field StreamARN *string `type:"string" required:"true"` + // The approximate time that the stream was created. + // + // StreamCreationTimestamp is a required field + StreamCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + // The name of the stream being described. // // StreamName is a required field @@ -3275,14 +3998,19 @@ type StreamDescription struct { // The current status of the stream being described. The stream status is one // of the following states: // - // CREATING - The stream is being created. Amazon Kinesis immediately returns - // and sets StreamStatus to CREATING. DELETING - The stream is being deleted. - // The specified stream is in the DELETING state until Amazon Kinesis completes - // the deletion. ACTIVE - The stream exists and is ready for read and write - // operations or deletion. You should perform read and write operations only - // on an ACTIVE stream. UPDATING - Shards in the stream are being merged or - // split. Read and write operations continue to work while the stream is in - // the UPDATING state. + // * CREATING - The stream is being created. Amazon Kinesis immediately returns + // and sets StreamStatus to CREATING. + // + // * DELETING - The stream is being deleted. The specified stream is in the + // DELETING state until Amazon Kinesis completes the deletion. + // + // * ACTIVE - The stream exists and is ready for read and write operations + // or deletion. You should perform read and write operations only on an ACTIVE + // stream. + // + // * UPDATING - Shards in the stream are being merged or split. Read and + // write operations continue to work while the stream is in the UPDATING + // state. // // StreamStatus is a required field StreamStatus *string `type:"string" required:"true" enum:"StreamStatus"` @@ -3298,6 +4026,54 @@ func (s StreamDescription) GoString() string { return s.String() } +// SetEnhancedMonitoring sets the EnhancedMonitoring field's value. +func (s *StreamDescription) SetEnhancedMonitoring(v []*EnhancedMetrics) *StreamDescription { + s.EnhancedMonitoring = v + return s +} + +// SetHasMoreShards sets the HasMoreShards field's value. +func (s *StreamDescription) SetHasMoreShards(v bool) *StreamDescription { + s.HasMoreShards = &v + return s +} + +// SetRetentionPeriodHours sets the RetentionPeriodHours field's value. +func (s *StreamDescription) SetRetentionPeriodHours(v int64) *StreamDescription { + s.RetentionPeriodHours = &v + return s +} + +// SetShards sets the Shards field's value. +func (s *StreamDescription) SetShards(v []*Shard) *StreamDescription { + s.Shards = v + return s +} + +// SetStreamARN sets the StreamARN field's value. +func (s *StreamDescription) SetStreamARN(v string) *StreamDescription { + s.StreamARN = &v + return s +} + +// SetStreamCreationTimestamp sets the StreamCreationTimestamp field's value. +func (s *StreamDescription) SetStreamCreationTimestamp(v time.Time) *StreamDescription { + s.StreamCreationTimestamp = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *StreamDescription) SetStreamName(v string) *StreamDescription { + s.StreamName = &v + return s +} + +// SetStreamStatus sets the StreamStatus field's value. +func (s *StreamDescription) SetStreamStatus(v string) *StreamDescription { + s.StreamStatus = &v + return s +} + // Metadata assigned to the stream, consisting of a key-value pair. type Tag struct { _ struct{} `type:"structure"` @@ -3324,6 +4100,131 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +type UpdateShardCountInput struct { + _ struct{} `type:"structure"` + + // The scaling type. Uniform scaling creates shards of equal size. + // + // ScalingType is a required field + ScalingType *string `type:"string" required:"true" enum:"ScalingType"` + + // The name of the stream. + // + // StreamName is a required field + StreamName *string `min:"1" type:"string" required:"true"` + + // The new number of shards. + // + // TargetShardCount is a required field + TargetShardCount *int64 `min:"1" type:"integer" required:"true"` +} + +// String returns the string representation +func (s UpdateShardCountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateShardCountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateShardCountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateShardCountInput"} + if s.ScalingType == nil { + invalidParams.Add(request.NewErrParamRequired("ScalingType")) + } + if s.StreamName == nil { + invalidParams.Add(request.NewErrParamRequired("StreamName")) + } + if s.StreamName != nil && len(*s.StreamName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) + } + if s.TargetShardCount == nil { + invalidParams.Add(request.NewErrParamRequired("TargetShardCount")) + } + if s.TargetShardCount != nil && *s.TargetShardCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("TargetShardCount", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScalingType sets the ScalingType field's value. +func (s *UpdateShardCountInput) SetScalingType(v string) *UpdateShardCountInput { + s.ScalingType = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *UpdateShardCountInput) SetStreamName(v string) *UpdateShardCountInput { + s.StreamName = &v + return s +} + +// SetTargetShardCount sets the TargetShardCount field's value. +func (s *UpdateShardCountInput) SetTargetShardCount(v int64) *UpdateShardCountInput { + s.TargetShardCount = &v + return s +} + +type UpdateShardCountOutput struct { + _ struct{} `type:"structure"` + + // The current number of shards. + CurrentShardCount *int64 `min:"1" type:"integer"` + + // The name of the stream. + StreamName *string `min:"1" type:"string"` + + // The updated number of shards. + TargetShardCount *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s UpdateShardCountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateShardCountOutput) GoString() string { + return s.String() +} + +// SetCurrentShardCount sets the CurrentShardCount field's value. +func (s *UpdateShardCountOutput) SetCurrentShardCount(v int64) *UpdateShardCountOutput { + s.CurrentShardCount = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *UpdateShardCountOutput) SetStreamName(v string) *UpdateShardCountOutput { + s.StreamName = &v + return s +} + +// SetTargetShardCount sets the TargetShardCount field's value. +func (s *UpdateShardCountOutput) SetTargetShardCount(v int64) *UpdateShardCountOutput { + s.TargetShardCount = &v + return s +} + const ( // MetricsNameIncomingBytes is a MetricsName enum value MetricsNameIncomingBytes = "IncomingBytes" @@ -3350,6 +4251,11 @@ const ( MetricsNameAll = "ALL" ) +const ( + // ScalingTypeUniformScaling is a ScalingType enum value + ScalingTypeUniformScaling = "UNIFORM_SCALING" +) + const ( // ShardIteratorTypeAtSequenceNumber is a ShardIteratorType enum value ShardIteratorTypeAtSequenceNumber = "AT_SEQUENCE_NUMBER" diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go index a11bddc41..c64060479 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go @@ -359,10 +359,10 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // are used to encrypt raw data. For more information about DEKs and the difference // between CMKs and DEKs, see the following: // -// The GenerateDataKey operation +// * The GenerateDataKey operation // -// AWS Key Management Service Concepts (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) -// in the AWS Key Management Service Developer Guide +// * AWS Key Management Service Concepts (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) +// in the AWS Key Management Service Developer 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 @@ -450,20 +450,20 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted // by using any of the following functions: // -// GenerateDataKey +// * GenerateDataKey // -// GenerateDataKeyWithoutPlaintext +// * GenerateDataKeyWithoutPlaintext // -// Encrypt +// * Encrypt // -// Note that if a caller has been granted access permissions to all keys -// (through, for example, IAM user policies that grant Decrypt permission on -// all resources), then ciphertext encrypted by using keys in other accounts -// where the key grants access to the caller can be decrypted. To remedy this, -// we recommend that you do not grant Decrypt access in an IAM user policy. -// Instead grant Decrypt access only in key policies. If you must grant Decrypt -// access in an IAM user policy, you should scope the resource to specific keys -// or to specific trusted accounts. +// Note that if a caller has been granted access permissions to all keys (through, +// for example, IAM user policies that grant Decrypt permission on all resources), +// then ciphertext encrypted by using keys in other accounts where the key grants +// access to the caller can be decrypted. To remedy this, we recommend that +// you do not grant Decrypt access in an IAM user policy. Instead grant Decrypt +// access only in key policies. If you must grant Decrypt access in an IAM user +// policy, you should scope the resource to specific keys or to specific trusted +// accounts. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1186,16 +1186,16 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // Encrypts plaintext into ciphertext by using a customer master key. The Encrypt // function has two primary use cases: // -// You can encrypt up to 4 KB of arbitrary data such as an RSA key, a database -// password, or other sensitive customer information. +// * You can encrypt up to 4 KB of arbitrary data such as an RSA key, a database +// password, or other sensitive customer information. // -// If you are moving encrypted data from one region to another, you can use -// this API to encrypt in the new region the plaintext data key that was used -// to encrypt the data in the original region. This provides you with an encrypted -// copy of the data key that can be decrypted in the new region and used there -// to decrypt the encrypted data. +// * If you are moving encrypted data from one region to another, you can +// use this API to encrypt in the new region the plaintext data key that +// was used to encrypt the data in the original region. This provides you +// with an encrypted copy of the data key that can be decrypted in the new +// region and used there to decrypt the encrypted data. // -// Unless you are moving encrypted data from one region to another, you don't +// Unless you are moving encrypted data from one region to another, you don't // use this function to encrypt a generated data key within a region. You retrieve // data keys already encrypted by calling the GenerateDataKey or GenerateDataKeyWithoutPlaintext // function. Data keys don't need to be encrypted again by calling Encrypt. @@ -1310,27 +1310,27 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // field. The data key is encrypted under the CMK specified in the KeyId field // of the request. // -// We recommend that you use the following pattern to encrypt data locally -// in your application: +// We recommend that you use the following pattern to encrypt data locally in +// your application: // -// Use this operation (GenerateDataKey) to retrieve a data encryption key. +// Use this operation (GenerateDataKey) to retrieve a data encryption key. // -// Use the plaintext data encryption key (returned in the Plaintext field -// of the response) to encrypt data locally, then erase the plaintext data key +// Use the plaintext data encryption key (returned in the Plaintext field of +// the response) to encrypt data locally, then erase the plaintext data key // from memory. // -// Store the encrypted data key (returned in the CiphertextBlob field of -// the response) alongside the locally encrypted data. +// Store the encrypted data key (returned in the CiphertextBlob field of the +// response) alongside the locally encrypted data. // -// To decrypt data locally: +// To decrypt data locally: // -// Use the Decrypt operation to decrypt the encrypted data key into a plaintext +// Use the Decrypt operation to decrypt the encrypted data key into a plaintext // copy of the data key. // -// Use the plaintext data key to decrypt data locally, then erase the plaintext +// Use the plaintext data key to decrypt data locally, then erase the plaintext // data key from memory. // -// To return only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. +// To return only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. // To return an arbitrary unpredictable byte string, use GenerateRandom. // // If you use the optional EncryptionContext field, you must store at least @@ -1788,13 +1788,13 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) // key material into AWS KMS, see Importing Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) // in the AWS Key Management Service Developer Guide. // -// You must specify the key ID of the customer master key (CMK) into which -// you will import key material. This CMK's Origin must be EXTERNAL. You must -// also specify the wrapping algorithm and type of wrapping key (public key) -// that you will use to encrypt the key material. +// You must specify the key ID of the customer master key (CMK) into which you +// will import key material. This CMK's Origin must be EXTERNAL. You must also +// specify the wrapping algorithm and type of wrapping key (public key) that +// you will use to encrypt the key material. // -// This operation returns a public key and an import token. Use the public -// key to encrypt the key material. Store the import token to send with a subsequent +// This operation returns a public key and an import token. Use the public key +// to encrypt the key material. Store the import token to send with a subsequent // ImportKeyMaterial request. The public key and import token from the same // response must be used together. These items are valid for 24 hours, after // which they cannot be used for a subsequent ImportKeyMaterial request. To @@ -1891,11 +1891,11 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // key material into AWS KMS, see Importing Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) // in the AWS Key Management Service Developer Guide. // -// You must specify the key ID of the CMK to import the key material into. -// This CMK's Origin must be EXTERNAL. You must also send an import token and -// the encrypted key material. Send the import token that you received in the -// same GetParametersForImport response that contained the public key that you -// used to encrypt the key material. You must also specify whether the key material +// You must specify the key ID of the CMK to import the key material into. This +// CMK's Origin must be EXTERNAL. You must also send an import token and the +// encrypted key material. Send the import token that you received in the same +// GetParametersForImport response that contained the public key that you used +// to encrypt the key material. You must also specify whether the key material // expires and if so, when. When the key material expires, AWS KMS deletes the // key material and the CMK becomes unusable. To use the CMK again, you can // reimport the same key material. If you set an expiration date, you can change @@ -1905,9 +1905,8 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // When this operation is successful, the specified CMK's key state changes // to Enabled, and you can use the CMK. // -// After you successfully import key material into a CMK, you can reimport -// the same key material into that CMK, but you cannot import different key -// material. +// After you successfully import key material into a CMK, you can reimport the +// same key material into that CMK, but you cannot import different key material. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2757,13 +2756,13 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, // up. You should revoke a grant when you intend to actively deny operations // that depend on it. The following are permitted to call this API: // -// The account that created the grant +// * The account that created the grant // -// The RetiringPrincipal, if present +// * The RetiringPrincipal, if present // -// The GranteePrincipal, if RetireGrant is a grantee operation +// * The GranteePrincipal, if RetireGrant is a grantee operation // -// The grant to retire must be identified by its grant token or by a combination +// The grant to retire must be identified by its grant token or by a combination // of the key ARN and the grant ID. A grant token is a unique variable-length // base64-encoded string. A grant ID is a 64 character unique identifier of // a grant. Both are returned by the CreateGrant function. @@ -2952,12 +2951,12 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * // and all AWS KMS data associated with it, including all aliases that point // to it. // -// Deleting a CMK is a destructive and potentially dangerous operation. When +// Deleting a CMK is a destructive and potentially dangerous operation. When // a CMK is deleted, all data that was encrypted under the CMK is rendered unrecoverable. // To restrict the use of a CMK without deleting it, use DisableKey. // -// For more information about scheduling a CMK for deletion, see Deleting -// Customer Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) +// For more information about scheduling a CMK for deletion, see Deleting Customer +// Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) // in the AWS Key Management Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3050,8 +3049,8 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, // and unmapped from an existing key without changing the properties of the // key. // -// An alias name can contain only alphanumeric characters, forward slashes -// (/), underscores (_), and dashes (-). An alias must start with the word "alias" +// An alias name can contain only alphanumeric characters, forward slashes (/), +// underscores (_), and dashes (-). An alias must start with the word "alias" // followed by a forward slash (alias/). An alias that begins with "aws" after // the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS). // @@ -3202,6 +3201,24 @@ func (s AliasListEntry) GoString() string { return s.String() } +// SetAliasArn sets the AliasArn field's value. +func (s *AliasListEntry) SetAliasArn(v string) *AliasListEntry { + s.AliasArn = &v + return s +} + +// SetAliasName sets the AliasName field's value. +func (s *AliasListEntry) SetAliasName(v string) *AliasListEntry { + s.AliasName = &v + return s +} + +// SetTargetKeyId sets the TargetKeyId field's value. +func (s *AliasListEntry) SetTargetKeyId(v string) *AliasListEntry { + s.TargetKeyId = &v + return s +} + type CancelKeyDeletionInput struct { _ struct{} `type:"structure"` @@ -3211,12 +3228,12 @@ type CancelKeyDeletionInput struct { // To specify this value, use the unique key ID or the Amazon Resource Name // (ARN) of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // - // To obtain the unique key ID and key ARN for a given CMK, use ListKeys - // or DescribeKey. + // To obtain the unique key ID and key ARN for a given CMK, use ListKeys or + // DescribeKey. // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3248,6 +3265,12 @@ func (s *CancelKeyDeletionInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *CancelKeyDeletionInput) SetKeyId(v string) *CancelKeyDeletionInput { + s.KeyId = &v + return s +} + type CancelKeyDeletionOutput struct { _ struct{} `type:"structure"` @@ -3265,6 +3288,12 @@ func (s CancelKeyDeletionOutput) GoString() string { return s.String() } +// SetKeyId sets the KeyId field's value. +func (s *CancelKeyDeletionOutput) SetKeyId(v string) *CancelKeyDeletionOutput { + s.KeyId = &v + return s +} + type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -3279,9 +3308,9 @@ type CreateAliasInput struct { // cannot be another alias but can be a globally unique identifier or a fully // specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // TargetKeyId is a required field TargetKeyId *string `min:"1" type:"string" required:"true"` @@ -3319,6 +3348,18 @@ func (s *CreateAliasInput) Validate() error { return nil } +// SetAliasName sets the AliasName field's value. +func (s *CreateAliasInput) SetAliasName(v string) *CreateAliasInput { + s.AliasName = &v + return s +} + +// SetTargetKeyId sets the TargetKeyId field's value. +func (s *CreateAliasInput) SetTargetKeyId(v string) *CreateAliasInput { + s.TargetKeyId = &v + return s +} + type CreateAliasOutput struct { _ struct{} `type:"structure"` } @@ -3369,9 +3410,9 @@ type CreateGrantInput struct { // To specify this value, use the globally unique key ID or the Amazon Resource // Name (ARN) of the key. Examples: // - // Globally unique key ID: 12345678-1234-1234-1234-123456789012 + // * Globally unique key ID: 12345678-1234-1234-1234-123456789012 // - // Key ARN: arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN: arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3393,23 +3434,23 @@ type CreateGrantInput struct { // A list of operations that the grant permits. The list can contain any combination // of one or more of the following values: // - // Decrypt + // * Decrypt // - // Encrypt + // * Encrypt // - // GenerateDataKey + // * GenerateDataKey // - // GenerateDataKeyWithoutPlaintext + // * GenerateDataKeyWithoutPlaintext // - // ReEncryptFrom (http://docs.aws.amazon.com/kms/latest/APIReference/API_ReEncrypt.html) + // * ReEncryptFrom (http://docs.aws.amazon.com/kms/latest/APIReference/API_ReEncrypt.html) // - // ReEncryptTo (http://docs.aws.amazon.com/kms/latest/APIReference/API_ReEncrypt.html) + // * ReEncryptTo (http://docs.aws.amazon.com/kms/latest/APIReference/API_ReEncrypt.html) // - // CreateGrant + // * CreateGrant // - // RetireGrant + // * RetireGrant // - // DescribeKey + // * DescribeKey Operations []*string `type:"list"` // The principal that is given permission to retire the grant by using RetireGrant @@ -3462,6 +3503,48 @@ func (s *CreateGrantInput) Validate() error { return nil } +// SetConstraints sets the Constraints field's value. +func (s *CreateGrantInput) SetConstraints(v *GrantConstraints) *CreateGrantInput { + s.Constraints = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *CreateGrantInput) SetGrantTokens(v []*string) *CreateGrantInput { + s.GrantTokens = v + return s +} + +// SetGranteePrincipal sets the GranteePrincipal field's value. +func (s *CreateGrantInput) SetGranteePrincipal(v string) *CreateGrantInput { + s.GranteePrincipal = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *CreateGrantInput) SetKeyId(v string) *CreateGrantInput { + s.KeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateGrantInput) SetName(v string) *CreateGrantInput { + s.Name = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *CreateGrantInput) SetOperations(v []*string) *CreateGrantInput { + s.Operations = v + return s +} + +// SetRetiringPrincipal sets the RetiringPrincipal field's value. +func (s *CreateGrantInput) SetRetiringPrincipal(v string) *CreateGrantInput { + s.RetiringPrincipal = &v + return s +} + type CreateGrantOutput struct { _ struct{} `type:"structure"` @@ -3487,18 +3570,30 @@ func (s CreateGrantOutput) GoString() string { return s.String() } +// SetGrantId sets the GrantId field's value. +func (s *CreateGrantOutput) SetGrantId(v string) *CreateGrantOutput { + s.GrantId = &v + return s +} + +// SetGrantToken sets the GrantToken field's value. +func (s *CreateGrantOutput) SetGrantToken(v string) *CreateGrantOutput { + s.GrantToken = &v + return s +} + type CreateKeyInput struct { _ struct{} `type:"structure"` // A flag to indicate whether to bypass the key policy lockout safety check. // - // Setting this value to true increases the likelihood that the CMK becomes + // Setting this value to true increases the likelihood that the CMK becomes // unmanageable. Do not set this value to true indiscriminately. // // For more information, refer to the scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) // section in the AWS Key Management Service Developer Guide. // - // Use this parameter only when you include a policy in the request and you + // Use this parameter only when you include a policy in the request and you // intend to prevent the principal making the request from making a subsequent // PutKeyPolicy request on the CMK. // @@ -3533,22 +3628,22 @@ type CreateKeyInput struct { // If you specify a policy and do not set BypassPolicyLockoutSafetyCheck to // true, the policy must meet the following criteria: // - // It must allow the principal making the CreateKey request to make a subsequent - // PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK - // becomes unmanageable. For more information, refer to the scenario in the - // Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) - // section in the AWS Key Management Service Developer Guide. + // * It must allow the principal making the CreateKey request to make a subsequent + // PutKeyPolicy request on the CMK. This reduces the likelihood that the + // CMK becomes unmanageable. For more information, refer to the scenario + // in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) + // section in the AWS Key Management Service Developer Guide. // - // The principal(s) specified in the key policy must exist and be visible - // to AWS KMS. When you create a new AWS principal (for example, an IAM user - // or role), you might need to enforce a delay before specifying the new principal - // in a key policy because the new principal might not immediately be visible - // to AWS KMS. For more information, see Changes that I make are not always - // immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) - // in the IAM User Guide. + // * The principal(s) specified in the key policy must exist and be visible + // to AWS KMS. When you create a new AWS principal (for example, an IAM user + // or role), you might need to enforce a delay before specifying the new + // principal in a key policy because the new principal might not immediately + // be visible to AWS KMS. For more information, see Changes that I make are + // not always immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) + // in the IAM User Guide. // - // If you do not specify a policy, AWS KMS attaches a default key policy - // to the CMK. For more information, see Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) + // If you do not specify a policy, AWS KMS attaches a default key policy to + // the CMK. For more information, see Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) // in the AWS Key Management Service Developer Guide. // // The policy size limit is 32 KiB (32768 bytes). @@ -3578,6 +3673,36 @@ func (s *CreateKeyInput) Validate() error { return nil } +// SetBypassPolicyLockoutSafetyCheck sets the BypassPolicyLockoutSafetyCheck field's value. +func (s *CreateKeyInput) SetBypassPolicyLockoutSafetyCheck(v bool) *CreateKeyInput { + s.BypassPolicyLockoutSafetyCheck = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateKeyInput) SetDescription(v string) *CreateKeyInput { + s.Description = &v + return s +} + +// SetKeyUsage sets the KeyUsage field's value. +func (s *CreateKeyInput) SetKeyUsage(v string) *CreateKeyInput { + s.KeyUsage = &v + return s +} + +// SetOrigin sets the Origin field's value. +func (s *CreateKeyInput) SetOrigin(v string) *CreateKeyInput { + s.Origin = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *CreateKeyInput) SetPolicy(v string) *CreateKeyInput { + s.Policy = &v + return s +} + type CreateKeyOutput struct { _ struct{} `type:"structure"` @@ -3595,6 +3720,12 @@ func (s CreateKeyOutput) GoString() string { return s.String() } +// SetKeyMetadata sets the KeyMetadata field's value. +func (s *CreateKeyOutput) SetKeyMetadata(v *KeyMetadata) *CreateKeyOutput { + s.KeyMetadata = v + return s +} + type DecryptInput struct { _ struct{} `type:"structure"` @@ -3643,6 +3774,24 @@ func (s *DecryptInput) Validate() error { return nil } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *DecryptInput) SetCiphertextBlob(v []byte) *DecryptInput { + s.CiphertextBlob = v + return s +} + +// SetEncryptionContext sets the EncryptionContext field's value. +func (s *DecryptInput) SetEncryptionContext(v map[string]*string) *DecryptInput { + s.EncryptionContext = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *DecryptInput) SetGrantTokens(v []*string) *DecryptInput { + s.GrantTokens = v + return s +} + type DecryptOutput struct { _ struct{} `type:"structure"` @@ -3667,6 +3816,18 @@ func (s DecryptOutput) GoString() string { return s.String() } +// SetKeyId sets the KeyId field's value. +func (s *DecryptOutput) SetKeyId(v string) *DecryptOutput { + s.KeyId = &v + return s +} + +// SetPlaintext sets the Plaintext field's value. +func (s *DecryptOutput) SetPlaintext(v []byte) *DecryptOutput { + s.Plaintext = v + return s +} + type DeleteAliasInput struct { _ struct{} `type:"structure"` @@ -3703,6 +3864,12 @@ func (s *DeleteAliasInput) Validate() error { return nil } +// SetAliasName sets the AliasName field's value. +func (s *DeleteAliasInput) SetAliasName(v string) *DeleteAliasInput { + s.AliasName = &v + return s +} + type DeleteAliasOutput struct { _ struct{} `type:"structure"` } @@ -3726,9 +3893,9 @@ type DeleteImportedKeyMaterialInput struct { // A valid identifier is the unique key ID or the Amazon Resource Name (ARN) // of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3760,6 +3927,12 @@ func (s *DeleteImportedKeyMaterialInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *DeleteImportedKeyMaterialInput) SetKeyId(v string) *DeleteImportedKeyMaterialInput { + s.KeyId = &v + return s +} + type DeleteImportedKeyMaterialOutput struct { _ struct{} `type:"structure"` } @@ -3787,13 +3960,13 @@ type DescribeKeyInput struct { // unique identifier, a fully specified ARN to either an alias or a key, or // an alias name prefixed by "alias/". // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // Alias Name Example - alias/MyAliasName + // * Alias Name Example - alias/MyAliasName // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3825,6 +3998,18 @@ func (s *DescribeKeyInput) Validate() error { return nil } +// SetGrantTokens sets the GrantTokens field's value. +func (s *DescribeKeyInput) SetGrantTokens(v []*string) *DescribeKeyInput { + s.GrantTokens = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *DescribeKeyInput) SetKeyId(v string) *DescribeKeyInput { + s.KeyId = &v + return s +} + type DescribeKeyOutput struct { _ struct{} `type:"structure"` @@ -3842,6 +4027,12 @@ func (s DescribeKeyOutput) GoString() string { return s.String() } +// SetKeyMetadata sets the KeyMetadata field's value. +func (s *DescribeKeyOutput) SetKeyMetadata(v *KeyMetadata) *DescribeKeyOutput { + s.KeyMetadata = v + return s +} + type DisableKeyInput struct { _ struct{} `type:"structure"` @@ -3849,9 +4040,9 @@ type DisableKeyInput struct { // // Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example: // - // Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3883,6 +4074,12 @@ func (s *DisableKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *DisableKeyInput) SetKeyId(v string) *DisableKeyInput { + s.KeyId = &v + return s +} + type DisableKeyOutput struct { _ struct{} `type:"structure"` } @@ -3903,9 +4100,9 @@ type DisableKeyRotationInput struct { // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3937,6 +4134,12 @@ func (s *DisableKeyRotationInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *DisableKeyRotationInput) SetKeyId(v string) *DisableKeyRotationInput { + s.KeyId = &v + return s +} + type DisableKeyRotationOutput struct { _ struct{} `type:"structure"` } @@ -3957,9 +4160,9 @@ type EnableKeyInput struct { // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3991,6 +4194,12 @@ func (s *EnableKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *EnableKeyInput) SetKeyId(v string) *EnableKeyInput { + s.KeyId = &v + return s +} + type EnableKeyOutput struct { _ struct{} `type:"structure"` } @@ -4011,9 +4220,9 @@ type EnableKeyRotationInput struct { // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4045,6 +4254,12 @@ func (s *EnableKeyRotationInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *EnableKeyRotationInput) SetKeyId(v string) *EnableKeyRotationInput { + s.KeyId = &v + return s +} + type EnableKeyRotationOutput struct { _ struct{} `type:"structure"` } @@ -4078,13 +4293,13 @@ type EncryptInput struct { // unique identifier, a fully specified ARN to either an alias or a key, or // an alias name prefixed by "alias/". // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // Alias Name Example - alias/MyAliasName + // * Alias Name Example - alias/MyAliasName // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4129,6 +4344,30 @@ func (s *EncryptInput) Validate() error { return nil } +// SetEncryptionContext sets the EncryptionContext field's value. +func (s *EncryptInput) SetEncryptionContext(v map[string]*string) *EncryptInput { + s.EncryptionContext = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *EncryptInput) SetGrantTokens(v []*string) *EncryptInput { + s.GrantTokens = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *EncryptInput) SetKeyId(v string) *EncryptInput { + s.KeyId = &v + return s +} + +// SetPlaintext sets the Plaintext field's value. +func (s *EncryptInput) SetPlaintext(v []byte) *EncryptInput { + s.Plaintext = v + return s +} + type EncryptOutput struct { _ struct{} `type:"structure"` @@ -4152,6 +4391,18 @@ func (s EncryptOutput) GoString() string { return s.String() } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *EncryptOutput) SetCiphertextBlob(v []byte) *EncryptOutput { + s.CiphertextBlob = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *EncryptOutput) SetKeyId(v string) *EncryptOutput { + s.KeyId = &v + return s +} + type GenerateDataKeyInput struct { _ struct{} `type:"structure"` @@ -4174,13 +4425,13 @@ type GenerateDataKeyInput struct { // of the CMK, or the alias name or ARN of an alias that points to the CMK. // Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // CMK ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * CMK ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // - // Alias name: alias/ExampleAlias + // * Alias name: alias/ExampleAlias // - // Alias ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias + // * Alias ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4225,6 +4476,36 @@ func (s *GenerateDataKeyInput) Validate() error { return nil } +// SetEncryptionContext sets the EncryptionContext field's value. +func (s *GenerateDataKeyInput) SetEncryptionContext(v map[string]*string) *GenerateDataKeyInput { + s.EncryptionContext = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *GenerateDataKeyInput) SetGrantTokens(v []*string) *GenerateDataKeyInput { + s.GrantTokens = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GenerateDataKeyInput) SetKeyId(v string) *GenerateDataKeyInput { + s.KeyId = &v + return s +} + +// SetKeySpec sets the KeySpec field's value. +func (s *GenerateDataKeyInput) SetKeySpec(v string) *GenerateDataKeyInput { + s.KeySpec = &v + return s +} + +// SetNumberOfBytes sets the NumberOfBytes field's value. +func (s *GenerateDataKeyInput) SetNumberOfBytes(v int64) *GenerateDataKeyInput { + s.NumberOfBytes = &v + return s +} + type GenerateDataKeyOutput struct { _ struct{} `type:"structure"` @@ -4254,6 +4535,24 @@ func (s GenerateDataKeyOutput) GoString() string { return s.String() } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *GenerateDataKeyOutput) SetCiphertextBlob(v []byte) *GenerateDataKeyOutput { + s.CiphertextBlob = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GenerateDataKeyOutput) SetKeyId(v string) *GenerateDataKeyOutput { + s.KeyId = &v + return s +} + +// SetPlaintext sets the Plaintext field's value. +func (s *GenerateDataKeyOutput) SetPlaintext(v []byte) *GenerateDataKeyOutput { + s.Plaintext = v + return s +} + type GenerateDataKeyWithoutPlaintextInput struct { _ struct{} `type:"structure"` @@ -4276,13 +4575,13 @@ type GenerateDataKeyWithoutPlaintextInput struct { // of the CMK, or the alias name or ARN of an alias that points to the CMK. // Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // CMK ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * CMK ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // - // Alias name: alias/ExampleAlias + // * Alias name: alias/ExampleAlias // - // Alias ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias + // * Alias ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4327,6 +4626,36 @@ func (s *GenerateDataKeyWithoutPlaintextInput) Validate() error { return nil } +// SetEncryptionContext sets the EncryptionContext field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetEncryptionContext(v map[string]*string) *GenerateDataKeyWithoutPlaintextInput { + s.EncryptionContext = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetGrantTokens(v []*string) *GenerateDataKeyWithoutPlaintextInput { + s.GrantTokens = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetKeyId(v string) *GenerateDataKeyWithoutPlaintextInput { + s.KeyId = &v + return s +} + +// SetKeySpec sets the KeySpec field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetKeySpec(v string) *GenerateDataKeyWithoutPlaintextInput { + s.KeySpec = &v + return s +} + +// SetNumberOfBytes sets the NumberOfBytes field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetNumberOfBytes(v int64) *GenerateDataKeyWithoutPlaintextInput { + s.NumberOfBytes = &v + return s +} + type GenerateDataKeyWithoutPlaintextOutput struct { _ struct{} `type:"structure"` @@ -4350,6 +4679,18 @@ func (s GenerateDataKeyWithoutPlaintextOutput) GoString() string { return s.String() } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *GenerateDataKeyWithoutPlaintextOutput) SetCiphertextBlob(v []byte) *GenerateDataKeyWithoutPlaintextOutput { + s.CiphertextBlob = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GenerateDataKeyWithoutPlaintextOutput) SetKeyId(v string) *GenerateDataKeyWithoutPlaintextOutput { + s.KeyId = &v + return s +} + type GenerateRandomInput struct { _ struct{} `type:"structure"` @@ -4380,6 +4721,12 @@ func (s *GenerateRandomInput) Validate() error { return nil } +// SetNumberOfBytes sets the NumberOfBytes field's value. +func (s *GenerateRandomInput) SetNumberOfBytes(v int64) *GenerateRandomInput { + s.NumberOfBytes = &v + return s +} + type GenerateRandomOutput struct { _ struct{} `type:"structure"` @@ -4399,15 +4746,21 @@ func (s GenerateRandomOutput) GoString() string { return s.String() } +// SetPlaintext sets the Plaintext field's value. +func (s *GenerateRandomOutput) SetPlaintext(v []byte) *GenerateRandomOutput { + s.Plaintext = v + return s +} + type GetKeyPolicyInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4451,6 +4804,18 @@ func (s *GetKeyPolicyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *GetKeyPolicyInput) SetKeyId(v string) *GetKeyPolicyInput { + s.KeyId = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetKeyPolicyInput) SetPolicyName(v string) *GetKeyPolicyInput { + s.PolicyName = &v + return s +} + type GetKeyPolicyOutput struct { _ struct{} `type:"structure"` @@ -4468,15 +4833,21 @@ func (s GetKeyPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetKeyPolicyOutput) SetPolicy(v string) *GetKeyPolicyOutput { + s.Policy = &v + return s +} + type GetKeyRotationStatusInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4508,6 +4879,12 @@ func (s *GetKeyRotationStatusInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *GetKeyRotationStatusInput) SetKeyId(v string) *GetKeyRotationStatusInput { + s.KeyId = &v + return s +} + type GetKeyRotationStatusOutput struct { _ struct{} `type:"structure"` @@ -4525,6 +4902,12 @@ func (s GetKeyRotationStatusOutput) GoString() string { return s.String() } +// SetKeyRotationEnabled sets the KeyRotationEnabled field's value. +func (s *GetKeyRotationStatusOutput) SetKeyRotationEnabled(v bool) *GetKeyRotationStatusOutput { + s.KeyRotationEnabled = &v + return s +} + type GetParametersForImportInput struct { _ struct{} `type:"structure"` @@ -4534,9 +4917,9 @@ type GetParametersForImportInput struct { // A valid identifier is the unique key ID or the Amazon Resource Name (ARN) // of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4588,6 +4971,24 @@ func (s *GetParametersForImportInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *GetParametersForImportInput) SetKeyId(v string) *GetParametersForImportInput { + s.KeyId = &v + return s +} + +// SetWrappingAlgorithm sets the WrappingAlgorithm field's value. +func (s *GetParametersForImportInput) SetWrappingAlgorithm(v string) *GetParametersForImportInput { + s.WrappingAlgorithm = &v + return s +} + +// SetWrappingKeySpec sets the WrappingKeySpec field's value. +func (s *GetParametersForImportInput) SetWrappingKeySpec(v string) *GetParametersForImportInput { + s.WrappingKeySpec = &v + return s +} + type GetParametersForImportOutput struct { _ struct{} `type:"structure"` @@ -4622,6 +5023,30 @@ func (s GetParametersForImportOutput) GoString() string { return s.String() } +// SetImportToken sets the ImportToken field's value. +func (s *GetParametersForImportOutput) SetImportToken(v []byte) *GetParametersForImportOutput { + s.ImportToken = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GetParametersForImportOutput) SetKeyId(v string) *GetParametersForImportOutput { + s.KeyId = &v + return s +} + +// SetParametersValidTo sets the ParametersValidTo field's value. +func (s *GetParametersForImportOutput) SetParametersValidTo(v time.Time) *GetParametersForImportOutput { + s.ParametersValidTo = &v + return s +} + +// SetPublicKey sets the PublicKey field's value. +func (s *GetParametersForImportOutput) SetPublicKey(v []byte) *GetParametersForImportOutput { + s.PublicKey = v + return s +} + // A structure for specifying the conditions under which the operations permitted // by the grant are allowed. // @@ -4657,6 +5082,18 @@ func (s GrantConstraints) GoString() string { return s.String() } +// SetEncryptionContextEquals sets the EncryptionContextEquals field's value. +func (s *GrantConstraints) SetEncryptionContextEquals(v map[string]*string) *GrantConstraints { + s.EncryptionContextEquals = v + return s +} + +// SetEncryptionContextSubset sets the EncryptionContextSubset field's value. +func (s *GrantConstraints) SetEncryptionContextSubset(v map[string]*string) *GrantConstraints { + s.EncryptionContextSubset = v + return s +} + // Contains information about an entry in a list of grants. type GrantListEntry struct { _ struct{} `type:"structure"` @@ -4701,6 +5138,60 @@ func (s GrantListEntry) GoString() string { return s.String() } +// SetConstraints sets the Constraints field's value. +func (s *GrantListEntry) SetConstraints(v *GrantConstraints) *GrantListEntry { + s.Constraints = v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *GrantListEntry) SetCreationDate(v time.Time) *GrantListEntry { + s.CreationDate = &v + return s +} + +// SetGrantId sets the GrantId field's value. +func (s *GrantListEntry) SetGrantId(v string) *GrantListEntry { + s.GrantId = &v + return s +} + +// SetGranteePrincipal sets the GranteePrincipal field's value. +func (s *GrantListEntry) SetGranteePrincipal(v string) *GrantListEntry { + s.GranteePrincipal = &v + return s +} + +// SetIssuingAccount sets the IssuingAccount field's value. +func (s *GrantListEntry) SetIssuingAccount(v string) *GrantListEntry { + s.IssuingAccount = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GrantListEntry) SetKeyId(v string) *GrantListEntry { + s.KeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *GrantListEntry) SetName(v string) *GrantListEntry { + s.Name = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *GrantListEntry) SetOperations(v []*string) *GrantListEntry { + s.Operations = v + return s +} + +// SetRetiringPrincipal sets the RetiringPrincipal field's value. +func (s *GrantListEntry) SetRetiringPrincipal(v string) *GrantListEntry { + s.RetiringPrincipal = &v + return s +} + type ImportKeyMaterialInput struct { _ struct{} `type:"structure"` @@ -4733,9 +5224,9 @@ type ImportKeyMaterialInput struct { // A valid identifier is the unique key ID or the Amazon Resource Name (ARN) // of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4785,6 +5276,36 @@ func (s *ImportKeyMaterialInput) Validate() error { return nil } +// SetEncryptedKeyMaterial sets the EncryptedKeyMaterial field's value. +func (s *ImportKeyMaterialInput) SetEncryptedKeyMaterial(v []byte) *ImportKeyMaterialInput { + s.EncryptedKeyMaterial = v + return s +} + +// SetExpirationModel sets the ExpirationModel field's value. +func (s *ImportKeyMaterialInput) SetExpirationModel(v string) *ImportKeyMaterialInput { + s.ExpirationModel = &v + return s +} + +// SetImportToken sets the ImportToken field's value. +func (s *ImportKeyMaterialInput) SetImportToken(v []byte) *ImportKeyMaterialInput { + s.ImportToken = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *ImportKeyMaterialInput) SetKeyId(v string) *ImportKeyMaterialInput { + s.KeyId = &v + return s +} + +// SetValidTo sets the ValidTo field's value. +func (s *ImportKeyMaterialInput) SetValidTo(v time.Time) *ImportKeyMaterialInput { + s.ValidTo = &v + return s +} + type ImportKeyMaterialOutput struct { _ struct{} `type:"structure"` } @@ -4820,6 +5341,18 @@ func (s KeyListEntry) GoString() string { return s.String() } +// SetKeyArn sets the KeyArn field's value. +func (s *KeyListEntry) SetKeyArn(v string) *KeyListEntry { + s.KeyArn = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *KeyListEntry) SetKeyId(v string) *KeyListEntry { + s.KeyId = &v + return s +} + // Contains metadata about a customer master key (CMK). // // This data type is used as a response element for the CreateKey and DescribeKey @@ -4893,6 +5426,78 @@ func (s KeyMetadata) GoString() string { return s.String() } +// SetAWSAccountId sets the AWSAccountId field's value. +func (s *KeyMetadata) SetAWSAccountId(v string) *KeyMetadata { + s.AWSAccountId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *KeyMetadata) SetArn(v string) *KeyMetadata { + s.Arn = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *KeyMetadata) SetCreationDate(v time.Time) *KeyMetadata { + s.CreationDate = &v + return s +} + +// SetDeletionDate sets the DeletionDate field's value. +func (s *KeyMetadata) SetDeletionDate(v time.Time) *KeyMetadata { + s.DeletionDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *KeyMetadata) SetDescription(v string) *KeyMetadata { + s.Description = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *KeyMetadata) SetEnabled(v bool) *KeyMetadata { + s.Enabled = &v + return s +} + +// SetExpirationModel sets the ExpirationModel field's value. +func (s *KeyMetadata) SetExpirationModel(v string) *KeyMetadata { + s.ExpirationModel = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *KeyMetadata) SetKeyId(v string) *KeyMetadata { + s.KeyId = &v + return s +} + +// SetKeyState sets the KeyState field's value. +func (s *KeyMetadata) SetKeyState(v string) *KeyMetadata { + s.KeyState = &v + return s +} + +// SetKeyUsage sets the KeyUsage field's value. +func (s *KeyMetadata) SetKeyUsage(v string) *KeyMetadata { + s.KeyUsage = &v + return s +} + +// SetOrigin sets the Origin field's value. +func (s *KeyMetadata) SetOrigin(v string) *KeyMetadata { + s.Origin = &v + return s +} + +// SetValidTo sets the ValidTo field's value. +func (s *KeyMetadata) SetValidTo(v time.Time) *KeyMetadata { + s.ValidTo = &v + return s +} + type ListAliasesInput struct { _ struct{} `type:"structure"` @@ -4936,6 +5541,18 @@ func (s *ListAliasesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListAliasesInput) SetLimit(v int64) *ListAliasesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAliasesInput) SetMarker(v string) *ListAliasesInput { + s.Marker = &v + return s +} + type ListAliasesOutput struct { _ struct{} `type:"structure"` @@ -4962,15 +5579,33 @@ func (s ListAliasesOutput) GoString() string { return s.String() } +// SetAliases sets the Aliases field's value. +func (s *ListAliasesOutput) SetAliases(v []*AliasListEntry) *ListAliasesOutput { + s.Aliases = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput { + s.NextMarker = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListAliasesOutput) SetTruncated(v bool) *ListAliasesOutput { + s.Truncated = &v + return s +} + type ListGrantsInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5021,6 +5656,24 @@ func (s *ListGrantsInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *ListGrantsInput) SetKeyId(v string) *ListGrantsInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListGrantsInput) SetLimit(v int64) *ListGrantsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGrantsInput) SetMarker(v string) *ListGrantsInput { + s.Marker = &v + return s +} + type ListGrantsResponse struct { _ struct{} `type:"structure"` @@ -5047,6 +5700,24 @@ func (s ListGrantsResponse) GoString() string { return s.String() } +// SetGrants sets the Grants field's value. +func (s *ListGrantsResponse) SetGrants(v []*GrantListEntry) *ListGrantsResponse { + s.Grants = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListGrantsResponse) SetNextMarker(v string) *ListGrantsResponse { + s.NextMarker = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListGrantsResponse) SetTruncated(v bool) *ListGrantsResponse { + s.Truncated = &v + return s +} + type ListKeyPoliciesInput struct { _ struct{} `type:"structure"` @@ -5054,13 +5725,13 @@ type ListKeyPoliciesInput struct { // unique identifier, a fully specified ARN to either an alias or a key, or // an alias name prefixed by "alias/". // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // Alias Name Example - alias/MyAliasName + // * Alias Name Example - alias/MyAliasName // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5113,6 +5784,24 @@ func (s *ListKeyPoliciesInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *ListKeyPoliciesInput) SetKeyId(v string) *ListKeyPoliciesInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListKeyPoliciesInput) SetLimit(v int64) *ListKeyPoliciesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListKeyPoliciesInput) SetMarker(v string) *ListKeyPoliciesInput { + s.Marker = &v + return s +} + type ListKeyPoliciesOutput struct { _ struct{} `type:"structure"` @@ -5140,6 +5829,24 @@ func (s ListKeyPoliciesOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListKeyPoliciesOutput) SetNextMarker(v string) *ListKeyPoliciesOutput { + s.NextMarker = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListKeyPoliciesOutput) SetPolicyNames(v []*string) *ListKeyPoliciesOutput { + s.PolicyNames = v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListKeyPoliciesOutput) SetTruncated(v bool) *ListKeyPoliciesOutput { + s.Truncated = &v + return s +} + type ListKeysInput struct { _ struct{} `type:"structure"` @@ -5183,6 +5890,18 @@ func (s *ListKeysInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListKeysInput) SetLimit(v int64) *ListKeysInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListKeysInput) SetMarker(v string) *ListKeysInput { + s.Marker = &v + return s +} + type ListKeysOutput struct { _ struct{} `type:"structure"` @@ -5209,6 +5928,24 @@ func (s ListKeysOutput) GoString() string { return s.String() } +// SetKeys sets the Keys field's value. +func (s *ListKeysOutput) SetKeys(v []*KeyListEntry) *ListKeysOutput { + s.Keys = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListKeysOutput) SetNextMarker(v string) *ListKeysOutput { + s.NextMarker = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListKeysOutput) SetTruncated(v bool) *ListKeysOutput { + s.Truncated = &v + return s +} + type ListRetirableGrantsInput struct { _ struct{} `type:"structure"` @@ -5270,19 +6007,37 @@ func (s *ListRetirableGrantsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListRetirableGrantsInput) SetLimit(v int64) *ListRetirableGrantsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListRetirableGrantsInput) SetMarker(v string) *ListRetirableGrantsInput { + s.Marker = &v + return s +} + +// SetRetiringPrincipal sets the RetiringPrincipal field's value. +func (s *ListRetirableGrantsInput) SetRetiringPrincipal(v string) *ListRetirableGrantsInput { + s.RetiringPrincipal = &v + return s +} + type PutKeyPolicyInput struct { _ struct{} `type:"structure"` // A flag to indicate whether to bypass the key policy lockout safety check. // - // Setting this value to true increases the likelihood that the CMK becomes + // Setting this value to true increases the likelihood that the CMK becomes // unmanageable. Do not set this value to true indiscriminately. // // For more information, refer to the scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) // section in the AWS Key Management Service Developer Guide. // - // Use this parameter only when you intend to prevent the principal making - // the request from making a subsequent PutKeyPolicy request on the CMK. + // Use this parameter only when you intend to prevent the principal making the + // request from making a subsequent PutKeyPolicy request on the CMK. // // The default value is false. BypassPolicyLockoutSafetyCheck *bool `type:"boolean"` @@ -5291,9 +6046,9 @@ type PutKeyPolicyInput struct { // // Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example: // - // Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5303,21 +6058,21 @@ type PutKeyPolicyInput struct { // If you do not set BypassPolicyLockoutSafetyCheck to true, the policy must // meet the following criteria: // - // It must allow the principal making the PutKeyPolicy request to make a - // subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that - // the CMK becomes unmanageable. For more information, refer to the scenario - // in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) - // section in the AWS Key Management Service Developer Guide. + // * It must allow the principal making the PutKeyPolicy request to make + // a subsequent PutKeyPolicy request on the CMK. This reduces the likelihood + // that the CMK becomes unmanageable. For more information, refer to the + // scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) + // section in the AWS Key Management Service Developer Guide. // - // The principal(s) specified in the key policy must exist and be visible - // to AWS KMS. When you create a new AWS principal (for example, an IAM user - // or role), you might need to enforce a delay before specifying the new principal - // in a key policy because the new principal might not immediately be visible - // to AWS KMS. For more information, see Changes that I make are not always - // immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) - // in the IAM User Guide. + // * The principal(s) specified in the key policy must exist and be visible + // to AWS KMS. When you create a new AWS principal (for example, an IAM user + // or role), you might need to enforce a delay before specifying the new + // principal in a key policy because the new principal might not immediately + // be visible to AWS KMS. For more information, see Changes that I make are + // not always immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) + // in the IAM User Guide. // - // The policy size limit is 32 KiB (32768 bytes). + // The policy size limit is 32 KiB (32768 bytes). // // Policy is a required field Policy *string `min:"1" type:"string" required:"true"` @@ -5368,6 +6123,30 @@ func (s *PutKeyPolicyInput) Validate() error { return nil } +// SetBypassPolicyLockoutSafetyCheck sets the BypassPolicyLockoutSafetyCheck field's value. +func (s *PutKeyPolicyInput) SetBypassPolicyLockoutSafetyCheck(v bool) *PutKeyPolicyInput { + s.BypassPolicyLockoutSafetyCheck = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *PutKeyPolicyInput) SetKeyId(v string) *PutKeyPolicyInput { + s.KeyId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *PutKeyPolicyInput) SetPolicy(v string) *PutKeyPolicyInput { + s.Policy = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutKeyPolicyInput) SetPolicyName(v string) *PutKeyPolicyInput { + s.PolicyName = &v + return s +} + type PutKeyPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5399,13 +6178,13 @@ type ReEncryptInput struct { // This value can be a globally unique identifier, a fully specified ARN to // either an alias or a key, or an alias name prefixed by "alias/". // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // Alias Name Example - alias/MyAliasName + // * Alias Name Example - alias/MyAliasName // // DestinationKeyId is a required field DestinationKeyId *string `min:"1" type:"string" required:"true"` @@ -5453,6 +6232,36 @@ func (s *ReEncryptInput) Validate() error { return nil } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *ReEncryptInput) SetCiphertextBlob(v []byte) *ReEncryptInput { + s.CiphertextBlob = v + return s +} + +// SetDestinationEncryptionContext sets the DestinationEncryptionContext field's value. +func (s *ReEncryptInput) SetDestinationEncryptionContext(v map[string]*string) *ReEncryptInput { + s.DestinationEncryptionContext = v + return s +} + +// SetDestinationKeyId sets the DestinationKeyId field's value. +func (s *ReEncryptInput) SetDestinationKeyId(v string) *ReEncryptInput { + s.DestinationKeyId = &v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *ReEncryptInput) SetGrantTokens(v []*string) *ReEncryptInput { + s.GrantTokens = v + return s +} + +// SetSourceEncryptionContext sets the SourceEncryptionContext field's value. +func (s *ReEncryptInput) SetSourceEncryptionContext(v map[string]*string) *ReEncryptInput { + s.SourceEncryptionContext = v + return s +} + type ReEncryptOutput struct { _ struct{} `type:"structure"` @@ -5479,13 +6288,31 @@ func (s ReEncryptOutput) GoString() string { return s.String() } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *ReEncryptOutput) SetCiphertextBlob(v []byte) *ReEncryptOutput { + s.CiphertextBlob = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *ReEncryptOutput) SetKeyId(v string) *ReEncryptOutput { + s.KeyId = &v + return s +} + +// SetSourceKeyId sets the SourceKeyId field's value. +func (s *ReEncryptOutput) SetSourceKeyId(v string) *ReEncryptOutput { + s.SourceKeyId = &v + return s +} + type RetireGrantInput struct { _ struct{} `type:"structure"` // Unique identifier of the grant to be retired. The grant ID is returned by // the CreateGrant function. // - // Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123 + // * Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123 GrantId *string `min:"1" type:"string"` // Token that identifies the grant to be retired. @@ -5495,9 +6322,9 @@ type RetireGrantInput struct { // This value can be a globally unique identifier or a fully specified ARN of // the key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 KeyId *string `min:"1" type:"string"` } @@ -5530,6 +6357,24 @@ func (s *RetireGrantInput) Validate() error { return nil } +// SetGrantId sets the GrantId field's value. +func (s *RetireGrantInput) SetGrantId(v string) *RetireGrantInput { + s.GrantId = &v + return s +} + +// SetGrantToken sets the GrantToken field's value. +func (s *RetireGrantInput) SetGrantToken(v string) *RetireGrantInput { + s.GrantToken = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *RetireGrantInput) SetKeyId(v string) *RetireGrantInput { + s.KeyId = &v + return s +} + type RetireGrantOutput struct { _ struct{} `type:"structure"` } @@ -5556,9 +6401,9 @@ type RevokeGrantInput struct { // This value can be a globally unique identifier or the fully specified ARN // to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5596,6 +6441,18 @@ func (s *RevokeGrantInput) Validate() error { return nil } +// SetGrantId sets the GrantId field's value. +func (s *RevokeGrantInput) SetGrantId(v string) *RevokeGrantInput { + s.GrantId = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *RevokeGrantInput) SetKeyId(v string) *RevokeGrantInput { + s.KeyId = &v + return s +} + type RevokeGrantOutput struct { _ struct{} `type:"structure"` } @@ -5618,12 +6475,12 @@ type ScheduleKeyDeletionInput struct { // To specify this value, use the unique key ID or the Amazon Resource Name // (ARN) of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // - // To obtain the unique key ID and key ARN for a given CMK, use ListKeys - // or DescribeKey. + // To obtain the unique key ID and key ARN for a given CMK, use ListKeys or + // DescribeKey. // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5665,6 +6522,18 @@ func (s *ScheduleKeyDeletionInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *ScheduleKeyDeletionInput) SetKeyId(v string) *ScheduleKeyDeletionInput { + s.KeyId = &v + return s +} + +// SetPendingWindowInDays sets the PendingWindowInDays field's value. +func (s *ScheduleKeyDeletionInput) SetPendingWindowInDays(v int64) *ScheduleKeyDeletionInput { + s.PendingWindowInDays = &v + return s +} + type ScheduleKeyDeletionOutput struct { _ struct{} `type:"structure"` @@ -5686,6 +6555,18 @@ func (s ScheduleKeyDeletionOutput) GoString() string { return s.String() } +// SetDeletionDate sets the DeletionDate field's value. +func (s *ScheduleKeyDeletionOutput) SetDeletionDate(v time.Time) *ScheduleKeyDeletionOutput { + s.DeletionDate = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *ScheduleKeyDeletionOutput) SetKeyId(v string) *ScheduleKeyDeletionOutput { + s.KeyId = &v + return s +} + type UpdateAliasInput struct { _ struct{} `type:"structure"` @@ -5700,11 +6581,11 @@ type UpdateAliasInput struct { // value can be a globally unique identifier or the fully specified ARN of a // key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // You can call ListAliases to verify that the alias is mapped to the correct + // You can call ListAliases to verify that the alias is mapped to the correct // TargetKeyId. // // TargetKeyId is a required field @@ -5743,6 +6624,18 @@ func (s *UpdateAliasInput) Validate() error { return nil } +// SetAliasName sets the AliasName field's value. +func (s *UpdateAliasInput) SetAliasName(v string) *UpdateAliasInput { + s.AliasName = &v + return s +} + +// SetTargetKeyId sets the TargetKeyId field's value. +func (s *UpdateAliasInput) SetTargetKeyId(v string) *UpdateAliasInput { + s.TargetKeyId = &v + return s +} + type UpdateAliasOutput struct { _ struct{} `type:"structure"` } @@ -5768,9 +6661,9 @@ type UpdateKeyDescriptionInput struct { // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5805,6 +6698,18 @@ func (s *UpdateKeyDescriptionInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *UpdateKeyDescriptionInput) SetDescription(v string) *UpdateKeyDescriptionInput { + s.Description = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *UpdateKeyDescriptionInput) SetKeyId(v string) *UpdateKeyDescriptionInput { + s.KeyId = &v + return s +} + type UpdateKeyDescriptionOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/service.go b/vendor/github.com/aws/aws-sdk-go/service/kms/service.go index 4afd3a8e2..3a4a19add 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/service.go @@ -16,15 +16,15 @@ import ( // programmatically. For general information about AWS KMS, see the AWS Key // Management Service Developer Guide (http://docs.aws.amazon.com/kms/latest/developerguide/). // -// AWS provides SDKs that consist of libraries and sample code for various -// programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). -// The SDKs provide a convenient way to create programmatic access to AWS KMS -// and other AWS services. For example, the SDKs take care of tasks such as -// signing requests (see below), managing errors, and retrying requests automatically. -// For more information about the AWS SDKs, including how to download and install -// them, see Tools for Amazon Web Services (http://aws.amazon.com/tools/). +// AWS provides SDKs that consist of libraries and sample code for various programming +// languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs +// provide a convenient way to create programmatic access to AWS KMS and other +// AWS services. For example, the SDKs take care of tasks such as signing requests +// (see below), managing errors, and retrying requests automatically. For more +// information about the AWS SDKs, including how to download and install them, +// see Tools for Amazon Web Services (http://aws.amazon.com/tools/). // -// We recommend that you use the AWS SDKs to make programmatic API calls to +// We recommend that you use the AWS SDKs to make programmatic API calls to // AWS KMS. // // Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS @@ -33,7 +33,7 @@ import ( // Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support // these modes. // -// Signing Requests +// Signing Requests // // Requests must be signed by using an access key ID and a secret access key. // We strongly recommend that you do not use your AWS account (root) access @@ -44,7 +44,7 @@ import ( // // All AWS KMS operations require Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // -// Logging API Requests +// Logging API Requests // // AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related // events for your AWS account and delivers them to an Amazon S3 bucket that @@ -53,35 +53,35 @@ import ( // and so on. To learn more about CloudTrail, including how to turn it on and // find your log files, see the AWS CloudTrail User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/). // -// Additional Resources +// Additional Resources // // For more information about credentials and request signing, see the following: // -// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html) -// - This topic provides general information about the types of credentials -// used for accessing AWS. +// * AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html) +// - This topic provides general information about the types of credentials +// used for accessing AWS. // -// Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html) -// - This section of the IAM User Guide describes how to create and use temporary -// security credentials. +// * Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html) +// - This section of the IAM User Guide describes how to create and use temporary +// security credentials. // -// Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) -// - This set of topics walks you through the process of signing a request using -// an access key ID and a secret access key. +// * Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) +// - This set of topics walks you through the process of signing a request +// using an access key ID and a secret access key. // -// Commonly Used APIs +// Commonly Used APIs // // Of the APIs discussed in this guide, the following will prove the most useful // for most applications. You will likely perform actions other than these, // such as creating keys and assigning policies, by using the console. // -// Encrypt +// * Encrypt // -// Decrypt +// * Decrypt // -// GenerateDataKey +// * GenerateDataKey // -// GenerateDataKeyWithoutPlaintext +// * GenerateDataKeyWithoutPlaintext //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type KMS struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go index 9713b5013..176c363e8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go @@ -249,8 +249,8 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) // in the AWS Lambda Developer Guide. // -// You provide mapping information (for example, which stream to read from -// and which Lambda function to invoke) in the request body. +// You provide mapping information (for example, which stream to read from and +// which Lambda function to invoke) in the request body. // // Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be // associated with multiple AWS Lambda function. A given Lambda function can @@ -345,7 +345,7 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // in the request body. If the function name already exists, the operation will // fail. Note that the function name is case-sensitive. // -// If you are using versioning, you can also publish a version of the Lambda +// If you are using versioning, you can also publish a version of the Lambda // function you are creating using the Publish parameter. For more information // about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // @@ -764,8 +764,7 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) // Returns configuration information for the specified event source mapping // (see CreateEventSourceMapping). // -// This operation requires permission for the lambda:GetEventSourceMapping -// action. +// This operation requires permission for the lambda:GetEventSourceMapping action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1019,7 +1018,7 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, // // Returns the resource policy associated with the specified Lambda function. // -// If you are using the versioning feature, you can get the resource policy +// If you are using the versioning feature, you can get the resource policy // associated with the specific Lambda function version or alias by specifying // the version or alias name using the Qualifier parameter. For more information // about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). @@ -1102,7 +1101,8 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // Invoke API operation for AWS Lambda. // -// Invokes a specific Lambda function. +// Invokes a specific Lambda function. For an example, see Create the Lambda +// Function and Test It Manually (http://docs.aws.amazon.com/lambda/latest/dg/with-dynamodb-create-function.html#with-dbb-invoke-manually). // // If you are using the versioning feature, you can invoke the specific function // version by providing function version or alias name that is pointing to the @@ -1177,6 +1177,23 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // * InvalidZipFileException // AWS Lambda could not unzip the function zip file. // +// * KMSDisabledException +// Lambda was unable to decrypt the environment variables because the KMS key +// used is disabled. Please check the Lambda function's KMS key settings. +// +// * KMSInvalidStateException +// Lambda was unable to decrypt the environment variables because the KMS key +// used is in an invalid state for Decrypt. Please check the function's KMS +// key settings. +// +// * KMSAccessDeniedException +// Lambda was unable to decrypt the environment variables becauses KMS access +// was denied. Please check the Lambda function's KMS permissions. +// +// * KMSNotFoundException +// Lambda was unable to decrypt the environment variables because the KMS key +// was not found. Please check the function's KMS key settings. +// func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) { req, out := c.InvokeRequest(input) err := req.Send() @@ -1233,7 +1250,7 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // // This API is deprecated. We recommend you use Invoke API (see Invoke). // -// Submits an invocation request to AWS Lambda. Upon receiving the request, +// Submits an invocation request to AWS Lambda. Upon receiving the request, // Lambda executes the specified function asynchronously. To see the logs generated // by the Lambda function execution, see the CloudWatch Logs console. // @@ -1780,8 +1797,8 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // with a Lambda function by providing a statement ID that you provided when // you added the permission. // -// If you are using versioning, the permissions you remove are specific to -// the Lambda function version or alias you specify in the AddPermission request +// If you are using versioning, the permissions you remove are specific to the +// Lambda function version or alias you specify in the AddPermission request // via the Qualifier parameter. For more information about versioning, see AWS // Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // @@ -2185,7 +2202,7 @@ type AddPermissionInput struct { // Name of the Lambda function whose resource policy you are updating by adding // a new permission. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -2210,26 +2227,27 @@ type AddPermissionInput struct { // the qualifier, then permission applies only when request is made using qualified // function ARN: // - // arn:aws:lambda:aws-region:acct-id:function:function-name:2 + // arn:aws:lambda:aws-region:acct-id:function:function-name:2 // // If you specify an alias name, for example PROD, then the permission is valid // only for requests made using the alias ARN: // - // arn:aws:lambda:aws-region:acct-id:function:function-name:PROD + // arn:aws:lambda:aws-region:acct-id:function:function-name:PROD // // If the qualifier is not specified, the permission is valid only when requests // is made using unqualified function ARN. // - // arn:aws:lambda:aws-region:acct-id:function:function-name + // arn:aws:lambda:aws-region:acct-id:function:function-name Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` - // This parameter is used for S3 and SES only. The AWS account ID (without a - // hyphen) of the source owner. For example, if the SourceArn identifies a bucket, - // then this is the bucket owner's account ID. You can use this additional condition - // to ensure the bucket you specify is owned by a specific account (it is possible - // the bucket owner deleted the bucket and some other AWS account created the - // bucket). You can also use this condition to specify all sources (that is, - // you don't specify the SourceArn) owned by a specific account. + // This parameter is used for S3, SES, CloudWatch Logs and CloudWatch Rules + // only. The AWS account ID (without a hyphen) of the source owner. For example, + // if the SourceArn identifies a bucket, then this is the bucket owner's account + // ID. You can use this additional condition to ensure the bucket you specify + // is owned by a specific account (it is possible the bucket owner deleted the + // bucket and some other AWS account created the bucket). You can also use this + // condition to specify all sources (that is, you don't specify the SourceArn) + // owned by a specific account. SourceAccount *string `type:"string"` // This is optional; however, when granting Amazon S3 permission to invoke your @@ -2289,6 +2307,54 @@ func (s *AddPermissionInput) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *AddPermissionInput) SetAction(v string) *AddPermissionInput { + s.Action = &v + return s +} + +// SetEventSourceToken sets the EventSourceToken field's value. +func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput { + s.EventSourceToken = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *AddPermissionInput) SetFunctionName(v string) *AddPermissionInput { + s.FunctionName = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *AddPermissionInput) SetPrincipal(v string) *AddPermissionInput { + s.Principal = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *AddPermissionInput) SetQualifier(v string) *AddPermissionInput { + s.Qualifier = &v + return s +} + +// SetSourceAccount sets the SourceAccount field's value. +func (s *AddPermissionInput) SetSourceAccount(v string) *AddPermissionInput { + s.SourceAccount = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *AddPermissionInput) SetSourceArn(v string) *AddPermissionInput { + s.SourceArn = &v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *AddPermissionInput) SetStatementId(v string) *AddPermissionInput { + s.StatementId = &v + return s +} + type AddPermissionOutput struct { _ struct{} `type:"structure"` @@ -2308,6 +2374,12 @@ func (s AddPermissionOutput) GoString() string { return s.String() } +// SetStatement sets the Statement field's value. +func (s *AddPermissionOutput) SetStatement(v string) *AddPermissionOutput { + s.Statement = &v + return s +} + // Provides configuration information about a Lambda function version alias. type AliasConfiguration struct { _ struct{} `type:"structure"` @@ -2337,6 +2409,30 @@ func (s AliasConfiguration) GoString() string { return s.String() } +// SetAliasArn sets the AliasArn field's value. +func (s *AliasConfiguration) SetAliasArn(v string) *AliasConfiguration { + s.AliasArn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *AliasConfiguration) SetDescription(v string) *AliasConfiguration { + s.Description = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *AliasConfiguration) SetFunctionVersion(v string) *AliasConfiguration { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *AliasConfiguration) SetName(v string) *AliasConfiguration { + s.Name = &v + return s +} + type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -2397,6 +2493,30 @@ func (s *CreateAliasInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateAliasInput) SetDescription(v string) *CreateAliasInput { + s.Description = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *CreateAliasInput) SetFunctionName(v string) *CreateAliasInput { + s.FunctionName = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *CreateAliasInput) SetFunctionVersion(v string) *CreateAliasInput { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAliasInput) SetName(v string) *CreateAliasInput { + s.Name = &v + return s +} + type CreateEventSourceMappingInput struct { _ struct{} `type:"structure"` @@ -2420,19 +2540,19 @@ type CreateEventSourceMappingInput struct { // The Lambda function to invoke when AWS Lambda detects an event on the stream. // - // You can specify the function name (for example, Thumbnail) or you can specify + // You can specify the function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // - // If you are using versioning, you can also provide a qualified function - // ARN (ARN that is qualified with function version or alias name as suffix). - // For more information about versioning, see AWS Lambda Function Versioning - // and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) + // If you are using versioning, you can also provide a qualified function ARN + // (ARN that is qualified with function version or alias name as suffix). For + // more information about versioning, see AWS Lambda Function Versioning and + // Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) // // AWS Lambda also allows you to specify only the function name with the account // ID qualifier (for example, account-id:Thumbnail). // - // Note that the length constraint applies only to the ARN. If you specify - // only the function name, it is limited to 64 character in length. + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` @@ -2480,6 +2600,36 @@ func (s *CreateEventSourceMappingInput) Validate() error { return nil } +// SetBatchSize sets the BatchSize field's value. +func (s *CreateEventSourceMappingInput) SetBatchSize(v int64) *CreateEventSourceMappingInput { + s.BatchSize = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *CreateEventSourceMappingInput) SetEnabled(v bool) *CreateEventSourceMappingInput { + s.Enabled = &v + return s +} + +// SetEventSourceArn sets the EventSourceArn field's value. +func (s *CreateEventSourceMappingInput) SetEventSourceArn(v string) *CreateEventSourceMappingInput { + s.EventSourceArn = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *CreateEventSourceMappingInput) SetFunctionName(v string) *CreateEventSourceMappingInput { + s.FunctionName = &v + return s +} + +// SetStartingPosition sets the StartingPosition field's value. +func (s *CreateEventSourceMappingInput) SetStartingPosition(v string) *CreateEventSourceMappingInput { + s.StartingPosition = &v + return s +} + type CreateFunctionInput struct { _ struct{} `type:"structure"` @@ -2492,6 +2642,9 @@ type CreateFunctionInput struct { // Assign a meaningful description as you see fit. Description *string `type:"string"` + // The parent object that contains your environment's configuration settings. + Environment *Environment `type:"structure"` + // The name you want to assign to the function you are uploading. The function // names appear in the console and are returned in the ListFunctions API. Function // names are used to specify functions to other AWS Lambda APIs, such as Invoke. @@ -2507,6 +2660,11 @@ type CreateFunctionInput struct { // Handler is a required field Handler *string `type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's + // environment variables. If not provided, AWS Lambda will use a default service + // key. + KMSKeyArn *string `type:"string"` + // The amount of memory, in MB, your Lambda function is given. Lambda uses this // memory size to infer the amount of CPU and memory allocated to your function. // Your function use-case determines your CPU and memory requirements. For example, @@ -2595,6 +2753,78 @@ func (s *CreateFunctionInput) Validate() error { return nil } +// SetCode sets the Code field's value. +func (s *CreateFunctionInput) SetCode(v *FunctionCode) *CreateFunctionInput { + s.Code = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *CreateFunctionInput) SetEnvironment(v *Environment) *CreateFunctionInput { + s.Environment = v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *CreateFunctionInput) SetFunctionName(v string) *CreateFunctionInput { + s.FunctionName = &v + return s +} + +// SetHandler sets the Handler field's value. +func (s *CreateFunctionInput) SetHandler(v string) *CreateFunctionInput { + s.Handler = &v + return s +} + +// SetKMSKeyArn sets the KMSKeyArn field's value. +func (s *CreateFunctionInput) SetKMSKeyArn(v string) *CreateFunctionInput { + s.KMSKeyArn = &v + return s +} + +// SetMemorySize sets the MemorySize field's value. +func (s *CreateFunctionInput) SetMemorySize(v int64) *CreateFunctionInput { + s.MemorySize = &v + return s +} + +// SetPublish sets the Publish field's value. +func (s *CreateFunctionInput) SetPublish(v bool) *CreateFunctionInput { + s.Publish = &v + return s +} + +// SetRole sets the Role field's value. +func (s *CreateFunctionInput) SetRole(v string) *CreateFunctionInput { + s.Role = &v + return s +} + +// SetRuntime sets the Runtime field's value. +func (s *CreateFunctionInput) SetRuntime(v string) *CreateFunctionInput { + s.Runtime = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *CreateFunctionInput) SetTimeout(v int64) *CreateFunctionInput { + s.Timeout = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput { + s.VpcConfig = v + return s +} + type DeleteAliasInput struct { _ struct{} `type:"structure"` @@ -2642,6 +2872,18 @@ func (s *DeleteAliasInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *DeleteAliasInput) SetFunctionName(v string) *DeleteAliasInput { + s.FunctionName = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeleteAliasInput) SetName(v string) *DeleteAliasInput { + s.Name = &v + return s +} + type DeleteAliasOutput struct { _ struct{} `type:"structure"` } @@ -2688,12 +2930,18 @@ func (s *DeleteEventSourceMappingInput) Validate() error { return nil } +// SetUUID sets the UUID field's value. +func (s *DeleteEventSourceMappingInput) SetUUID(v string) *DeleteEventSourceMappingInput { + s.UUID = &v + return s +} + type DeleteFunctionInput struct { _ struct{} `type:"structure"` // The Lambda function to delete. // - // You can specify the function name (for example, Thumbnail) or you can specify + // You can specify the function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // If you are using versioning, you can also provide a qualified function ARN // (ARN that is qualified with function version or alias name as suffix). AWS @@ -2750,6 +2998,18 @@ func (s *DeleteFunctionInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *DeleteFunctionInput) SetFunctionName(v string) *DeleteFunctionInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *DeleteFunctionInput) SetQualifier(v string) *DeleteFunctionInput { + s.Qualifier = &v + return s +} + type DeleteFunctionOutput struct { _ struct{} `type:"structure"` } @@ -2764,6 +3024,101 @@ func (s DeleteFunctionOutput) GoString() string { return s.String() } +// The parent object that contains your environment's configuration settings. +type Environment struct { + _ struct{} `type:"structure"` + + // The key-value pairs that represent your environment's configuration settings. + // The value you specify cannot contain a ",". + Variables map[string]*string `type:"map"` +} + +// String returns the string representation +func (s Environment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Environment) GoString() string { + return s.String() +} + +// SetVariables sets the Variables field's value. +func (s *Environment) SetVariables(v map[string]*string) *Environment { + s.Variables = v + return s +} + +// The parent object that contains error information associated with your configuration +// settings. +type EnvironmentError struct { + _ struct{} `type:"structure"` + + // The error code returned by the environment error object. + ErrorCode *string `type:"string"` + + // The message returned by the environment error object. + Message *string `type:"string"` +} + +// String returns the string representation +func (s EnvironmentError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *EnvironmentError) SetErrorCode(v string) *EnvironmentError { + s.ErrorCode = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *EnvironmentError) SetMessage(v string) *EnvironmentError { + s.Message = &v + return s +} + +// The parent object returned that contains your environment's configuration +// settings or any error information associated with your configuration settings. +type EnvironmentResponse struct { + _ struct{} `type:"structure"` + + // The parent object that contains error information associated with your configuration + // settings. + Error *EnvironmentError `type:"structure"` + + // The key-value pairs returned that represent your environment's configuration + // settings or error information. + Variables map[string]*string `type:"map"` +} + +// String returns the string representation +func (s EnvironmentResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentResponse) GoString() string { + return s.String() +} + +// SetError sets the Error field's value. +func (s *EnvironmentResponse) SetError(v *EnvironmentError) *EnvironmentResponse { + s.Error = v + return s +} + +// SetVariables sets the Variables field's value. +func (s *EnvironmentResponse) SetVariables(v map[string]*string) *EnvironmentResponse { + s.Variables = v + return s +} + // Describes mapping between an Amazon Kinesis stream and a Lambda function. type EventSourceMappingConfiguration struct { _ struct{} `type:"structure"` @@ -2808,6 +3163,54 @@ func (s EventSourceMappingConfiguration) GoString() string { return s.String() } +// SetBatchSize sets the BatchSize field's value. +func (s *EventSourceMappingConfiguration) SetBatchSize(v int64) *EventSourceMappingConfiguration { + s.BatchSize = &v + return s +} + +// SetEventSourceArn sets the EventSourceArn field's value. +func (s *EventSourceMappingConfiguration) SetEventSourceArn(v string) *EventSourceMappingConfiguration { + s.EventSourceArn = &v + return s +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *EventSourceMappingConfiguration) SetFunctionArn(v string) *EventSourceMappingConfiguration { + s.FunctionArn = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *EventSourceMappingConfiguration) SetLastModified(v time.Time) *EventSourceMappingConfiguration { + s.LastModified = &v + return s +} + +// SetLastProcessingResult sets the LastProcessingResult field's value. +func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration { + s.LastProcessingResult = &v + return s +} + +// SetState sets the State field's value. +func (s *EventSourceMappingConfiguration) SetState(v string) *EventSourceMappingConfiguration { + s.State = &v + return s +} + +// SetStateTransitionReason sets the StateTransitionReason field's value. +func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration { + s.StateTransitionReason = &v + return s +} + +// SetUUID sets the UUID field's value. +func (s *EventSourceMappingConfiguration) SetUUID(v string) *EventSourceMappingConfiguration { + s.UUID = &v + return s +} + // The code for the Lambda function. type FunctionCode struct { _ struct{} `type:"structure"` @@ -2863,6 +3266,30 @@ func (s *FunctionCode) Validate() error { return nil } +// SetS3Bucket sets the S3Bucket field's value. +func (s *FunctionCode) SetS3Bucket(v string) *FunctionCode { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *FunctionCode) SetS3Key(v string) *FunctionCode { + s.S3Key = &v + return s +} + +// SetS3ObjectVersion sets the S3ObjectVersion field's value. +func (s *FunctionCode) SetS3ObjectVersion(v string) *FunctionCode { + s.S3ObjectVersion = &v + return s +} + +// SetZipFile sets the ZipFile field's value. +func (s *FunctionCode) SetZipFile(v []byte) *FunctionCode { + s.ZipFile = v + return s +} + // The object for the Lambda function location. type FunctionCodeLocation struct { _ struct{} `type:"structure"` @@ -2885,6 +3312,18 @@ func (s FunctionCodeLocation) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *FunctionCodeLocation) SetLocation(v string) *FunctionCodeLocation { + s.Location = &v + return s +} + +// SetRepositoryType sets the RepositoryType field's value. +func (s *FunctionCodeLocation) SetRepositoryType(v string) *FunctionCodeLocation { + s.RepositoryType = &v + return s +} + // A complex type that describes function metadata. type FunctionConfiguration struct { _ struct{} `type:"structure"` @@ -2898,6 +3337,9 @@ type FunctionConfiguration struct { // The user-provided description. Description *string `type:"string"` + // The parent object that contains your environment's configuration settings. + Environment *EnvironmentResponse `type:"structure"` + // The Amazon Resource Name (ARN) assigned to the function. FunctionArn *string `type:"string"` @@ -2907,6 +3349,11 @@ type FunctionConfiguration struct { // The function Lambda calls to begin executing your function. Handler *string `type:"string"` + // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's + // environment variables. If empty, it means you are using the AWS Lambda default + // service key. + KMSKeyArn *string `type:"string"` + // The time stamp of the last time you updated the function. LastModified *string `type:"string"` @@ -2946,6 +3393,96 @@ func (s FunctionConfiguration) GoString() string { return s.String() } +// SetCodeSha256 sets the CodeSha256 field's value. +func (s *FunctionConfiguration) SetCodeSha256(v string) *FunctionConfiguration { + s.CodeSha256 = &v + return s +} + +// SetCodeSize sets the CodeSize field's value. +func (s *FunctionConfiguration) SetCodeSize(v int64) *FunctionConfiguration { + s.CodeSize = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *FunctionConfiguration) SetEnvironment(v *EnvironmentResponse) *FunctionConfiguration { + s.Environment = v + return s +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration { + s.FunctionArn = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *FunctionConfiguration) SetFunctionName(v string) *FunctionConfiguration { + s.FunctionName = &v + return s +} + +// SetHandler sets the Handler field's value. +func (s *FunctionConfiguration) SetHandler(v string) *FunctionConfiguration { + s.Handler = &v + return s +} + +// SetKMSKeyArn sets the KMSKeyArn field's value. +func (s *FunctionConfiguration) SetKMSKeyArn(v string) *FunctionConfiguration { + s.KMSKeyArn = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *FunctionConfiguration) SetLastModified(v string) *FunctionConfiguration { + s.LastModified = &v + return s +} + +// SetMemorySize sets the MemorySize field's value. +func (s *FunctionConfiguration) SetMemorySize(v int64) *FunctionConfiguration { + s.MemorySize = &v + return s +} + +// SetRole sets the Role field's value. +func (s *FunctionConfiguration) SetRole(v string) *FunctionConfiguration { + s.Role = &v + return s +} + +// SetRuntime sets the Runtime field's value. +func (s *FunctionConfiguration) SetRuntime(v string) *FunctionConfiguration { + s.Runtime = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *FunctionConfiguration) SetTimeout(v int64) *FunctionConfiguration { + s.Timeout = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *FunctionConfiguration) SetVersion(v string) *FunctionConfiguration { + s.Version = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *FunctionConfiguration) SetVpcConfig(v *VpcConfigResponse) *FunctionConfiguration { + s.VpcConfig = v + return s +} + type GetAliasInput struct { _ struct{} `type:"structure"` @@ -2994,6 +3531,18 @@ func (s *GetAliasInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *GetAliasInput) SetFunctionName(v string) *GetAliasInput { + s.FunctionName = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetAliasInput) SetName(v string) *GetAliasInput { + s.Name = &v + return s +} + type GetEventSourceMappingInput struct { _ struct{} `type:"structure"` @@ -3026,13 +3575,19 @@ func (s *GetEventSourceMappingInput) Validate() error { return nil } +// SetUUID sets the UUID field's value. +func (s *GetEventSourceMappingInput) SetUUID(v string) *GetEventSourceMappingInput { + s.UUID = &v + return s +} + type GetFunctionConfigurationInput struct { _ struct{} `type:"structure"` // The name of the Lambda function for which you want to retrieve the configuration // information. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3081,12 +3636,24 @@ func (s *GetFunctionConfigurationInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *GetFunctionConfigurationInput) SetFunctionName(v string) *GetFunctionConfigurationInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *GetFunctionConfigurationInput) SetQualifier(v string) *GetFunctionConfigurationInput { + s.Qualifier = &v + return s +} + type GetFunctionInput struct { _ struct{} `type:"structure"` // The Lambda function name. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3134,7 +3701,19 @@ func (s *GetFunctionInput) Validate() error { return nil } -// This response contains the object for the Lambda function location (see . +// SetFunctionName sets the FunctionName field's value. +func (s *GetFunctionInput) SetFunctionName(v string) *GetFunctionInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *GetFunctionInput) SetQualifier(v string) *GetFunctionInput { + s.Qualifier = &v + return s +} + +// This response contains the object for the Lambda function location (see FunctionCodeLocation. type GetFunctionOutput struct { _ struct{} `type:"structure"` @@ -3155,12 +3734,24 @@ func (s GetFunctionOutput) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput { + s.Code = v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput { + s.Configuration = v + return s +} + type GetPolicyInput struct { _ struct{} `type:"structure"` // Function name whose resource policy you want to retrieve. // - // You can specify the function name (for example, Thumbnail) or you can specify + // You can specify the function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // If you are using versioning, you can also provide a qualified function ARN // (ARN that is qualified with function version or alias name as suffix). AWS @@ -3208,6 +3799,18 @@ func (s *GetPolicyInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *GetPolicyInput) SetFunctionName(v string) *GetPolicyInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *GetPolicyInput) SetQualifier(v string) *GetPolicyInput { + s.Qualifier = &v + return s +} + type GetPolicyOutput struct { _ struct{} `type:"structure"` @@ -3227,6 +3830,12 @@ func (s GetPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetPolicyOutput) SetPolicy(v string) *GetPolicyOutput { + s.Policy = &v + return s +} + type InvokeAsyncInput struct { _ struct{} `deprecated:"true" type:"structure" payload:"InvokeArgs"` @@ -3270,6 +3879,18 @@ func (s *InvokeAsyncInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *InvokeAsyncInput) SetFunctionName(v string) *InvokeAsyncInput { + s.FunctionName = &v + return s +} + +// SetInvokeArgs sets the InvokeArgs field's value. +func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput { + s.InvokeArgs = v + return s +} + // Upon success, it returns empty response. Otherwise, throws an exception. type InvokeAsyncOutput struct { _ struct{} `deprecated:"true" type:"structure"` @@ -3288,6 +3909,12 @@ func (s InvokeAsyncOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *InvokeAsyncOutput) SetStatus(v int64) *InvokeAsyncOutput { + s.Status = &v + return s +} + type InvokeInput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -3302,7 +3929,7 @@ type InvokeInput struct { // The Lambda function name. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3369,6 +3996,42 @@ func (s *InvokeInput) Validate() error { return nil } +// SetClientContext sets the ClientContext field's value. +func (s *InvokeInput) SetClientContext(v string) *InvokeInput { + s.ClientContext = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *InvokeInput) SetFunctionName(v string) *InvokeInput { + s.FunctionName = &v + return s +} + +// SetInvocationType sets the InvocationType field's value. +func (s *InvokeInput) SetInvocationType(v string) *InvokeInput { + s.InvocationType = &v + return s +} + +// SetLogType sets the LogType field's value. +func (s *InvokeInput) SetLogType(v string) *InvokeInput { + s.LogType = &v + return s +} + +// SetPayload sets the Payload field's value. +func (s *InvokeInput) SetPayload(v []byte) *InvokeInput { + s.Payload = v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *InvokeInput) SetQualifier(v string) *InvokeInput { + s.Qualifier = &v + return s +} + // Upon success, returns an empty response. Otherwise, throws an exception. type InvokeOutput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -3387,7 +4050,7 @@ type InvokeOutput struct { LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"` // It is the JSON representation of the object returned by the Lambda function. - // In This is present only if the invocation type is RequestResponse. + // This is present only if the invocation type is RequestResponse. // // In the event of a function error this field contains a message describing // the error. For the Handled errors the Lambda function will report this message. @@ -3411,6 +4074,30 @@ func (s InvokeOutput) GoString() string { return s.String() } +// SetFunctionError sets the FunctionError field's value. +func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput { + s.FunctionError = &v + return s +} + +// SetLogResult sets the LogResult field's value. +func (s *InvokeOutput) SetLogResult(v string) *InvokeOutput { + s.LogResult = &v + return s +} + +// SetPayload sets the Payload field's value. +func (s *InvokeOutput) SetPayload(v []byte) *InvokeOutput { + s.Payload = v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput { + s.StatusCode = &v + return s +} + type ListAliasesInput struct { _ struct{} `type:"structure"` @@ -3465,6 +4152,30 @@ func (s *ListAliasesInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *ListAliasesInput) SetFunctionName(v string) *ListAliasesInput { + s.FunctionName = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *ListAliasesInput) SetFunctionVersion(v string) *ListAliasesInput { + s.FunctionVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAliasesInput) SetMarker(v string) *ListAliasesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAliasesInput) SetMaxItems(v int64) *ListAliasesInput { + s.MaxItems = &v + return s +} + type ListAliasesOutput struct { _ struct{} `type:"structure"` @@ -3485,6 +4196,18 @@ func (s ListAliasesOutput) GoString() string { return s.String() } +// SetAliases sets the Aliases field's value. +func (s *ListAliasesOutput) SetAliases(v []*AliasConfiguration) *ListAliasesOutput { + s.Aliases = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput { + s.NextMarker = &v + return s +} + type ListEventSourceMappingsInput struct { _ struct{} `type:"structure"` @@ -3494,7 +4217,7 @@ type ListEventSourceMappingsInput struct { // The name of the Lambda function. // - // You can specify the function name (for example, Thumbnail) or you can specify + // You can specify the function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // If you are using versioning, you can also provide a qualified function ARN // (ARN that is qualified with function version or alias name as suffix). AWS @@ -3540,7 +4263,31 @@ func (s *ListEventSourceMappingsInput) Validate() error { return nil } -// Contains a list of event sources (see ) +// SetEventSourceArn sets the EventSourceArn field's value. +func (s *ListEventSourceMappingsInput) SetEventSourceArn(v string) *ListEventSourceMappingsInput { + s.EventSourceArn = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *ListEventSourceMappingsInput) SetFunctionName(v string) *ListEventSourceMappingsInput { + s.FunctionName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListEventSourceMappingsInput) SetMarker(v string) *ListEventSourceMappingsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListEventSourceMappingsInput) SetMaxItems(v int64) *ListEventSourceMappingsInput { + s.MaxItems = &v + return s +} + +// Contains a list of event sources (see EventSourceMappingConfiguration) type ListEventSourceMappingsOutput struct { _ struct{} `type:"structure"` @@ -3561,6 +4308,18 @@ func (s ListEventSourceMappingsOutput) GoString() string { return s.String() } +// SetEventSourceMappings sets the EventSourceMappings field's value. +func (s *ListEventSourceMappingsOutput) SetEventSourceMappings(v []*EventSourceMappingConfiguration) *ListEventSourceMappingsOutput { + s.EventSourceMappings = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListEventSourceMappingsOutput) SetNextMarker(v string) *ListEventSourceMappingsOutput { + s.NextMarker = &v + return s +} + type ListFunctionsInput struct { _ struct{} `type:"structure"` @@ -3596,6 +4355,18 @@ func (s *ListFunctionsInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListFunctionsInput) SetMarker(v string) *ListFunctionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListFunctionsInput) SetMaxItems(v int64) *ListFunctionsInput { + s.MaxItems = &v + return s +} + // Contains a list of AWS Lambda function configurations (see FunctionConfiguration. type ListFunctionsOutput struct { _ struct{} `type:"structure"` @@ -3617,6 +4388,18 @@ func (s ListFunctionsOutput) GoString() string { return s.String() } +// SetFunctions sets the Functions field's value. +func (s *ListFunctionsOutput) SetFunctions(v []*FunctionConfiguration) *ListFunctionsOutput { + s.Functions = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListFunctionsOutput) SetNextMarker(v string) *ListFunctionsOutput { + s.NextMarker = &v + return s +} + type ListVersionsByFunctionInput struct { _ struct{} `type:"structure"` @@ -3668,6 +4451,24 @@ func (s *ListVersionsByFunctionInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *ListVersionsByFunctionInput) SetFunctionName(v string) *ListVersionsByFunctionInput { + s.FunctionName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVersionsByFunctionInput) SetMarker(v string) *ListVersionsByFunctionInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListVersionsByFunctionInput) SetMaxItems(v int64) *ListVersionsByFunctionInput { + s.MaxItems = &v + return s +} + type ListVersionsByFunctionOutput struct { _ struct{} `type:"structure"` @@ -3688,6 +4489,18 @@ func (s ListVersionsByFunctionOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListVersionsByFunctionOutput) SetNextMarker(v string) *ListVersionsByFunctionOutput { + s.NextMarker = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ListVersionsByFunctionOutput) SetVersions(v []*FunctionConfiguration) *ListVersionsByFunctionOutput { + s.Versions = v + return s +} + type PublishVersionInput struct { _ struct{} `type:"structure"` @@ -3738,12 +4551,30 @@ func (s *PublishVersionInput) Validate() error { return nil } +// SetCodeSha256 sets the CodeSha256 field's value. +func (s *PublishVersionInput) SetCodeSha256(v string) *PublishVersionInput { + s.CodeSha256 = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PublishVersionInput) SetDescription(v string) *PublishVersionInput { + s.Description = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *PublishVersionInput) SetFunctionName(v string) *PublishVersionInput { + s.FunctionName = &v + return s +} + type RemovePermissionInput struct { _ struct{} `type:"structure"` // Lambda function whose resource policy you want to remove a permission from. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3799,6 +4630,24 @@ func (s *RemovePermissionInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *RemovePermissionInput) SetFunctionName(v string) *RemovePermissionInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *RemovePermissionInput) SetQualifier(v string) *RemovePermissionInput { + s.Qualifier = &v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput { + s.StatementId = &v + return s +} + type RemovePermissionOutput struct { _ struct{} `type:"structure"` } @@ -3869,6 +4718,30 @@ func (s *UpdateAliasInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *UpdateAliasInput) SetDescription(v string) *UpdateAliasInput { + s.Description = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateAliasInput) SetFunctionName(v string) *UpdateAliasInput { + s.FunctionName = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *UpdateAliasInput) SetFunctionVersion(v string) *UpdateAliasInput { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAliasInput) SetName(v string) *UpdateAliasInput { + s.Name = &v + return s +} + type UpdateEventSourceMappingInput struct { _ struct{} `type:"structure"` @@ -3882,7 +4755,7 @@ type UpdateEventSourceMappingInput struct { // The Lambda function to which you want the stream records sent. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // @@ -3891,8 +4764,8 @@ type UpdateEventSourceMappingInput struct { // more information about versioning, see AWS Lambda Function Versioning and // Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) // - // Note that the length constraint applies only to the ARN. If you specify - // only the function name, it is limited to 64 character in length. + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. FunctionName *string `min:"1" type:"string"` // The event source mapping identifier. @@ -3930,12 +4803,36 @@ func (s *UpdateEventSourceMappingInput) Validate() error { return nil } +// SetBatchSize sets the BatchSize field's value. +func (s *UpdateEventSourceMappingInput) SetBatchSize(v int64) *UpdateEventSourceMappingInput { + s.BatchSize = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *UpdateEventSourceMappingInput) SetEnabled(v bool) *UpdateEventSourceMappingInput { + s.Enabled = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateEventSourceMappingInput) SetFunctionName(v string) *UpdateEventSourceMappingInput { + s.FunctionName = &v + return s +} + +// SetUUID sets the UUID field's value. +func (s *UpdateEventSourceMappingInput) SetUUID(v string) *UpdateEventSourceMappingInput { + s.UUID = &v + return s +} + type UpdateFunctionCodeInput struct { _ struct{} `type:"structure"` // The existing Lambda function name whose code you want to replace. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -4005,6 +4902,42 @@ func (s *UpdateFunctionCodeInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateFunctionCodeInput) SetFunctionName(v string) *UpdateFunctionCodeInput { + s.FunctionName = &v + return s +} + +// SetPublish sets the Publish field's value. +func (s *UpdateFunctionCodeInput) SetPublish(v bool) *UpdateFunctionCodeInput { + s.Publish = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *UpdateFunctionCodeInput) SetS3Bucket(v string) *UpdateFunctionCodeInput { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *UpdateFunctionCodeInput) SetS3Key(v string) *UpdateFunctionCodeInput { + s.S3Key = &v + return s +} + +// SetS3ObjectVersion sets the S3ObjectVersion field's value. +func (s *UpdateFunctionCodeInput) SetS3ObjectVersion(v string) *UpdateFunctionCodeInput { + s.S3ObjectVersion = &v + return s +} + +// SetZipFile sets the ZipFile field's value. +func (s *UpdateFunctionCodeInput) SetZipFile(v []byte) *UpdateFunctionCodeInput { + s.ZipFile = v + return s +} + type UpdateFunctionConfigurationInput struct { _ struct{} `type:"structure"` @@ -4012,9 +4945,12 @@ type UpdateFunctionConfigurationInput struct { // Assign a meaningful description as you see fit. Description *string `type:"string"` + // The parent object that contains your environment's configuration settings. + Environment *Environment `type:"structure"` + // The name of the Lambda function. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -4027,6 +4963,11 @@ type UpdateFunctionConfigurationInput struct { // it is the module-name.export value in your function. Handler *string `type:"string"` + // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's + // environment variables. If you elect to use the AWS Lambda default service + // key, pass in an empty string ("") for this parameter. + KMSKeyArn *string `type:"string"` + // The amount of memory, in MB, your Lambda function is given. AWS Lambda uses // this memory size to infer the amount of CPU allocated to your function. Your // function use-case determines your CPU and memory requirements. For example, @@ -4089,6 +5030,66 @@ func (s *UpdateFunctionConfigurationInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *UpdateFunctionConfigurationInput) SetDescription(v string) *UpdateFunctionConfigurationInput { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *UpdateFunctionConfigurationInput) SetEnvironment(v *Environment) *UpdateFunctionConfigurationInput { + s.Environment = v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateFunctionConfigurationInput) SetFunctionName(v string) *UpdateFunctionConfigurationInput { + s.FunctionName = &v + return s +} + +// SetHandler sets the Handler field's value. +func (s *UpdateFunctionConfigurationInput) SetHandler(v string) *UpdateFunctionConfigurationInput { + s.Handler = &v + return s +} + +// SetKMSKeyArn sets the KMSKeyArn field's value. +func (s *UpdateFunctionConfigurationInput) SetKMSKeyArn(v string) *UpdateFunctionConfigurationInput { + s.KMSKeyArn = &v + return s +} + +// SetMemorySize sets the MemorySize field's value. +func (s *UpdateFunctionConfigurationInput) SetMemorySize(v int64) *UpdateFunctionConfigurationInput { + s.MemorySize = &v + return s +} + +// SetRole sets the Role field's value. +func (s *UpdateFunctionConfigurationInput) SetRole(v string) *UpdateFunctionConfigurationInput { + s.Role = &v + return s +} + +// SetRuntime sets the Runtime field's value. +func (s *UpdateFunctionConfigurationInput) SetRuntime(v string) *UpdateFunctionConfigurationInput { + s.Runtime = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *UpdateFunctionConfigurationInput) SetTimeout(v int64) *UpdateFunctionConfigurationInput { + s.Timeout = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *UpdateFunctionConfigurationInput) SetVpcConfig(v *VpcConfig) *UpdateFunctionConfigurationInput { + s.VpcConfig = v + return s +} + // If your Lambda function accesses resources in a VPC, you provide this parameter // 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 @@ -4113,6 +5114,18 @@ func (s VpcConfig) GoString() string { return s.String() } +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig { + s.SecurityGroupIds = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig { + s.SubnetIds = v + return s +} + // VPC configuration associated with your Lambda function. type VpcConfigResponse struct { _ struct{} `type:"structure"` @@ -4137,6 +5150,24 @@ func (s VpcConfigResponse) GoString() string { return s.String() } +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *VpcConfigResponse) SetSecurityGroupIds(v []*string) *VpcConfigResponse { + s.SecurityGroupIds = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *VpcConfigResponse) SetSubnetIds(v []*string) *VpcConfigResponse { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcConfigResponse) SetVpcId(v string) *VpcConfigResponse { + s.VpcId = &v + return s +} + const ( // EventSourcePositionTrimHorizon is a EventSourcePosition enum value EventSourcePositionTrimHorizon = "TRIM_HORIZON" diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go index 507f05eec..d78b27a5f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go @@ -61,16 +61,17 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque // // Assign a registered instance to a layer. // -// You can assign registered on-premises instances to any layer type. +// * You can assign registered on-premises instances to any layer type. // -// You can assign registered Amazon EC2 instances only to custom layers. +// * You can assign registered Amazon EC2 instances only to custom layers. // -// You cannot use this action with instances that were created with AWS OpsWorks. +// * You cannot use this action with instances that were created with AWS +// OpsWorks. // -// Required Permissions: To use this action, an AWS Identity and Access -// Management (IAM) user must have a Manage permissions level for the stack -// or an attached policy that explicitly grants permissions. For more information -// on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an AWS Identity and Access Management +// (IAM) user must have a Manage permissions level for the stack or an attached +// policy that explicitly grants permissions. For more information on user permissions, +// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -145,7 +146,7 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R // point before calling AssignVolume. For more information, see Resource Management // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -221,7 +222,7 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re // instance. The address must first be registered with the stack by calling // RegisterElasticIp. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -296,11 +297,11 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala // Attaches an Elastic Load Balancing load balancer to a specified layer. For // more information, see Elastic Load Balancing (http://docs.aws.amazon.com/opsworks/latest/userguide/load-balancer-elb.html). // -// You must create the Elastic Load Balancing instance separately, by using +// You must create the Elastic Load Balancing instance separately, by using // the Elastic Load Balancing console, API, or CLI. For more information, see // Elastic Load Balancing Developer Guide (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/Welcome.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -374,7 +375,7 @@ func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Reque // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-cloning.html). // By default, all parameters are set to the values used by the parent stack. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -446,7 +447,7 @@ func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request // Creates an app for a specified stack. For more information, see Creating // Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -520,7 +521,7 @@ func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *r // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html) // and Run Stack Commands (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html). // -// Required Permissions: To use this action, an IAM user must have a Deploy +// Required Permissions: To use this action, an IAM user must have a Deploy // or Manage permissions level for the stack, or an attached policy that explicitly // grants permissions. For more information on user permissions, see Managing // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -593,7 +594,7 @@ func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *reque // Creates an instance in a specified stack. For more information, see Adding // an Instance to a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -665,14 +666,14 @@ func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Req // // Creates a layer. For more information, see How to Create a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-create.html). // -// You should use CreateLayer for noncustom layer types such as PHP App Server +// You should use CreateLayer for noncustom layer types such as PHP App Server // only if the stack does not have an existing layer of that type. A stack can // have at most one instance of each noncustom layer; if you attempt to create // a second instance, CreateLayer fails. A stack can have an arbitrary number // of custom layers, so you can call CreateLayer as many times as you like for // that layer type. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -744,7 +745,7 @@ func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Req // // Creates a new stack. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-edit.html). // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -812,7 +813,7 @@ func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req // // Creates a new user profile. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -882,7 +883,7 @@ func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request // // Deletes a specified app. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -959,7 +960,7 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque // // For more information, see Deleting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1035,7 +1036,7 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req // instances or unassign registered instances. For more information, see How // to Delete a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1111,7 +1112,7 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req // apps or deregister registered instances. For more information, see Shut Down // a Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-shutting.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1185,7 +1186,7 @@ func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req // // Deletes a user profile. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -1259,7 +1260,7 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) // Deregisters a specified Amazon ECS cluster from a stack. For more information, // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html#workinglayers-ecscluster-delete). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html // (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1334,7 +1335,7 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) ( // Deregisters a specified Elastic IP address. The address can then be registered // by another stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1410,7 +1411,7 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re // the instance from the stack and returns it to your control. This action can // not be used with instances that were created with AWS OpsWorks. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1484,7 +1485,7 @@ func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstance // // Deregisters an Amazon RDS instance. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1559,7 +1560,7 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r // Deregisters an Amazon EBS volume. The volume can then be registered by another // stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1700,12 +1701,12 @@ func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.R // // Requests a description of a specified set of apps. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1774,12 +1775,12 @@ func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *r // // Describes the results of specified commands. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1848,12 +1849,12 @@ func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) ( // // Requests a description of a specified set of deployments. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1931,10 +1932,10 @@ func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) ( // the response. However, AWS OpsWorks currently supports only one cluster per // layer, so the result set has a maximum of one element. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack or an attached policy that -// explicitly grants permission. For more information on user permissions, see -// Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack or an attached policy that explicitly +// grants permission. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2028,12 +2029,12 @@ func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (re // // Describes Elastic IP addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html). // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2102,12 +2103,12 @@ func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoa // // Describes a stack's Elastic Load Balancing instances. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2176,12 +2177,12 @@ func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req // // Requests a description of a set of instances. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2250,12 +2251,12 @@ func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *reque // // Requests a description of one or more layers in a specified stack. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2324,12 +2325,12 @@ func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedA // // Describes load-based auto scaling configurations for specified layers. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2398,7 +2399,7 @@ func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInpu // // Describes a user's SSH information. // -// Required Permissions: To use this action, an IAM user must have self-management +// Required Permissions: To use this action, an IAM user must have self-management // enabled or an attached policy that explicitly grants permissions. For more // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -2461,7 +2462,7 @@ func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) ( // // Describes the permissions for a specified stack. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -2533,12 +2534,12 @@ func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (re // // Describe an instance's RAID arrays. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2607,10 +2608,10 @@ func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesIn // // Describes Amazon RDS instances. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2679,10 +2680,10 @@ func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInpu // // Describes AWS OpsWorks service errors. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2751,10 +2752,10 @@ func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeSta // // Requests a description of a stack's provisioning parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack or an attached policy that -// explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2824,10 +2825,10 @@ func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) // Describes the number of layers and apps in a specified stack, and the number // of instances in each state, such as running_setup or online. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2896,10 +2897,10 @@ func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *reque // // Requests a description of one or more stacks. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2968,12 +2969,12 @@ func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedA // // Describes time-based auto scaling configurations for specified instances. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3042,7 +3043,7 @@ func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) // // Describe specified users. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -3113,12 +3114,12 @@ func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *req // // Describes an instance's Amazon EBS volumes. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3189,7 +3190,7 @@ func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBala // // Detaches a specified Elastic Load Balancing instance from its layer. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3262,7 +3263,7 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu // registered with the stack. For more information, see Resource Management // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3335,7 +3336,7 @@ func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInpu // Gets a generated host name for the specified layer, based on the current // host name theme. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3407,7 +3408,7 @@ func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Req // // This action can be used only with Windows stacks. // -// Grants RDP access to a Windows instance for a specified time period. +// Grants RDP access to a Windows instance for a specified time period. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3479,7 +3480,7 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque // Reboots a specified instance. For more information, see Starting, Stopping, // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3553,7 +3554,7 @@ func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (re // one cluster with a stack. A cluster can be registered with only one stack. // For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3628,7 +3629,7 @@ func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req // you must first deregister it by calling DeregisterElasticIp. For more information, // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3701,14 +3702,14 @@ func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *r // Registers instances with a specified stack that were created outside of AWS // OpsWorks. // -// We do not recommend using this action to register instances. The complete +// We do not recommend using this action to register instances. The complete // registration operation has two primary steps, installing the AWS OpsWorks // agent on the instance and registering the instance with the stack. RegisterInstance // handles only the second step. You should instead use the AWS CLI register // command, which performs the entire registration operation. For more information, // see Registering an Instance with an AWS OpsWorks Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-register.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3782,7 +3783,7 @@ func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInpu // // Registers an Amazon RDS instance with a stack. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3857,7 +3858,7 @@ func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *reque // first deregister it by calling DeregisterVolume. For more information, see // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3933,12 +3934,12 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling // For more information, see Managing Load with Time-based and Load-based Instances // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html). // -// To use load-based auto scaling, you must create a set of load-based auto +// To use load-based auto scaling, you must create a set of load-based auto // scaling instances. Load-based auto scaling operates only on the instances // from that set, so you must ensure that you have created enough instances // to handle the maximum anticipated load. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4013,7 +4014,7 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request // Specifies a user's permissions. For more information, see Security and Permissions // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingsecurity.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4089,7 +4090,7 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling // For more information, see Managing Load with Time-based and Load-based Instances // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4164,7 +4165,7 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request // Starts a specified instance. For more information, see Starting, Stopping, // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4238,7 +4239,7 @@ func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Reque // // Starts a stack's instances. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4315,7 +4316,7 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R // EBS-backed instance without losing data. For more information, see Starting, // Stopping, and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4389,7 +4390,7 @@ func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request // // Stops a specified stack. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4466,7 +4467,7 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r // as needed. You cannot use this action with instances that were created with // AWS OpsWorks. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4541,7 +4542,7 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque // Unassigns an assigned Amazon EBS volume. The volume remains registered with // the stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4615,7 +4616,7 @@ func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request // // Updates a specified app. // -// Required Permissions: To use this action, an IAM user must have a Deploy +// Required Permissions: To use this action, an IAM user must have a Deploy // or Manage permissions level for the stack, or an attached policy that explicitly // grants permissions. For more information on user permissions, see Managing // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4690,7 +4691,7 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req // Updates a registered Elastic IP address's name. For more information, see // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4764,7 +4765,7 @@ func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *reque // // Updates a specified instance. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4838,7 +4839,7 @@ func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Req // // Updates a specified layer. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4912,7 +4913,7 @@ func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) ( // // Updates a user's SSH public key. // -// Required Permissions: To use this action, an IAM user must have self-management +// Required Permissions: To use this action, an IAM user must have self-management // enabled or an attached policy that explicitly grants permissions. For more // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -4982,7 +4983,7 @@ func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) ( // // Updates an Amazon RDS instance. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -5056,7 +5057,7 @@ func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Req // // Updates a specified stack. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -5130,7 +5131,7 @@ func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req // // Updates a specified user profile. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -5204,7 +5205,7 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R // Updates an Amazon EBS volume's name or mount point. For more information, // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -5250,6 +5251,18 @@ func (s AgentVersion) GoString() string { return s.String() } +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *AgentVersion) SetConfigurationManager(v *StackConfigurationManager) *AgentVersion { + s.ConfigurationManager = v + return s +} + +// SetVersion sets the Version field's value. +func (s *AgentVersion) SetVersion(v string) *AgentVersion { + s.Version = &v + return s +} + // A description of the app. type App struct { _ struct{} `type:"structure"` @@ -5284,7 +5297,7 @@ type App struct { // are defined on the associated app server instances. For more information, // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment). // - // There is no specific limit on the number of environment variables. However, + // There is no specific limit on the number of environment variables. However, // the size of the associated data structure - which includes the variable names, // values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This // limit should accommodate most if not all use cases, but if you do exceed @@ -5318,6 +5331,90 @@ func (s App) GoString() string { return s.String() } +// SetAppId sets the AppId field's value. +func (s *App) SetAppId(v string) *App { + s.AppId = &v + return s +} + +// SetAppSource sets the AppSource field's value. +func (s *App) SetAppSource(v *Source) *App { + s.AppSource = v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *App) SetAttributes(v map[string]*string) *App { + s.Attributes = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *App) SetCreatedAt(v string) *App { + s.CreatedAt = &v + return s +} + +// SetDataSources sets the DataSources field's value. +func (s *App) SetDataSources(v []*DataSource) *App { + s.DataSources = v + return s +} + +// SetDescription sets the Description field's value. +func (s *App) SetDescription(v string) *App { + s.Description = &v + return s +} + +// SetDomains sets the Domains field's value. +func (s *App) SetDomains(v []*string) *App { + s.Domains = v + return s +} + +// SetEnableSsl sets the EnableSsl field's value. +func (s *App) SetEnableSsl(v bool) *App { + s.EnableSsl = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *App) SetEnvironment(v []*EnvironmentVariable) *App { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *App) SetName(v string) *App { + s.Name = &v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *App) SetShortname(v string) *App { + s.Shortname = &v + return s +} + +// SetSslConfiguration sets the SslConfiguration field's value. +func (s *App) SetSslConfiguration(v *SslConfiguration) *App { + s.SslConfiguration = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *App) SetStackId(v string) *App { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *App) SetType(v string) *App { + s.Type = &v + return s +} + type AssignInstanceInput struct { _ struct{} `type:"structure"` @@ -5359,6 +5456,18 @@ func (s *AssignInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *AssignInstanceInput) SetInstanceId(v string) *AssignInstanceInput { + s.InstanceId = &v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *AssignInstanceInput) SetLayerIds(v []*string) *AssignInstanceInput { + s.LayerIds = v + return s +} + type AssignInstanceOutput struct { _ struct{} `type:"structure"` } @@ -5408,6 +5517,18 @@ func (s *AssignVolumeInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *AssignVolumeInput) SetInstanceId(v string) *AssignVolumeInput { + s.InstanceId = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *AssignVolumeInput) SetVolumeId(v string) *AssignVolumeInput { + s.VolumeId = &v + return s +} + type AssignVolumeOutput struct { _ struct{} `type:"structure"` } @@ -5457,6 +5578,18 @@ func (s *AssociateElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *AssociateElasticIpInput) SetElasticIp(v string) *AssociateElasticIpInput { + s.ElasticIp = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateElasticIpInput) SetInstanceId(v string) *AssociateElasticIpInput { + s.InstanceId = &v + return s +} + type AssociateElasticIpOutput struct { _ struct{} `type:"structure"` } @@ -5512,6 +5645,18 @@ func (s *AttachElasticLoadBalancerInput) Validate() error { return nil } +// SetElasticLoadBalancerName sets the ElasticLoadBalancerName field's value. +func (s *AttachElasticLoadBalancerInput) SetElasticLoadBalancerName(v string) *AttachElasticLoadBalancerInput { + s.ElasticLoadBalancerName = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *AttachElasticLoadBalancerInput) SetLayerId(v string) *AttachElasticLoadBalancerInput { + s.LayerId = &v + return s +} + type AttachElasticLoadBalancerOutput struct { _ struct{} `type:"structure"` } @@ -5535,7 +5680,7 @@ type AutoScalingThresholds struct { // takes a list of up to five alarm names, which are case sensitive and must // be in the same region as the stack. // - // To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms. + // To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms. // You can either have AWS OpsWorks update the role for you when you first use // this feature or you can edit the role manually. For more information, see // Allowing AWS OpsWorks to Act on Your Behalf (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html). @@ -5597,6 +5742,48 @@ func (s *AutoScalingThresholds) Validate() error { return nil } +// SetAlarms sets the Alarms field's value. +func (s *AutoScalingThresholds) SetAlarms(v []*string) *AutoScalingThresholds { + s.Alarms = v + return s +} + +// SetCpuThreshold sets the CpuThreshold field's value. +func (s *AutoScalingThresholds) SetCpuThreshold(v float64) *AutoScalingThresholds { + s.CpuThreshold = &v + return s +} + +// SetIgnoreMetricsTime sets the IgnoreMetricsTime field's value. +func (s *AutoScalingThresholds) SetIgnoreMetricsTime(v int64) *AutoScalingThresholds { + s.IgnoreMetricsTime = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *AutoScalingThresholds) SetInstanceCount(v int64) *AutoScalingThresholds { + s.InstanceCount = &v + return s +} + +// SetLoadThreshold sets the LoadThreshold field's value. +func (s *AutoScalingThresholds) SetLoadThreshold(v float64) *AutoScalingThresholds { + s.LoadThreshold = &v + return s +} + +// SetMemoryThreshold sets the MemoryThreshold field's value. +func (s *AutoScalingThresholds) SetMemoryThreshold(v float64) *AutoScalingThresholds { + s.MemoryThreshold = &v + return s +} + +// SetThresholdsWaitTime sets the ThresholdsWaitTime field's value. +func (s *AutoScalingThresholds) SetThresholdsWaitTime(v int64) *AutoScalingThresholds { + s.ThresholdsWaitTime = &v + return s +} + // Describes a block device mapping. This data type maps directly to the Amazon // EC2 BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html) // data type. @@ -5629,6 +5816,30 @@ func (s BlockDeviceMapping) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping { + s.VirtualName = &v + return s +} + // Describes the Chef configuration. type ChefConfiguration struct { _ struct{} `type:"structure"` @@ -5650,25 +5861,37 @@ func (s ChefConfiguration) GoString() string { return s.String() } +// SetBerkshelfVersion sets the BerkshelfVersion field's value. +func (s *ChefConfiguration) SetBerkshelfVersion(v string) *ChefConfiguration { + s.BerkshelfVersion = &v + return s +} + +// SetManageBerkshelf sets the ManageBerkshelf field's value. +func (s *ChefConfiguration) SetManageBerkshelf(v bool) *ChefConfiguration { + s.ManageBerkshelf = &v + return s +} + type CloneStackInput struct { _ struct{} `type:"structure"` // The default AWS OpsWorks agent version. You have the following options: // - // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically - // installs new agent versions on the stack's instances as soon as they are - // available. + // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically + // installs new agent versions on the stack's instances as soon as they are + // available. // - // Fixed version - Set this parameter to your preferred agent version. To - // update the agent version, you must edit the stack configuration and specify - // a new version. AWS OpsWorks then automatically installs that version on the - // stack's instances. + // * Fixed version - Set this parameter to your preferred agent version. + // To update the agent version, you must edit the stack configuration and + // specify a new version. AWS OpsWorks then automatically installs that version + // on the stack's instances. // - // The default setting is LATEST. To specify an agent version, you must use + // The default setting is LATEST. To specify an agent version, you must use // the complete version number, not the abbreviated number shown on the console. // For a list of available agent version numbers, call DescribeAgentVersions. // - // You can also specify an agent version when you create or update an instance, + // You can also specify an agent version when you create or update an instance, // which overrides the stack's default setting. AgentVersion *string `type:"string"` @@ -5702,7 +5925,7 @@ type CloneStackInput struct { // the corresponding default stack configuration JSON values. The string should // be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html) @@ -5721,28 +5944,28 @@ type CloneStackInput struct { // The stack's operating system, which must be set to one of the following. // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // Microsoft Windows Server 2012 R2 Base, Microsoft Windows Server 2012 - // R2 with SQL Server Express, Microsoft Windows Server 2012 R2 with SQL Server - // Standard, or Microsoft Windows Server 2012 R2 with SQL Server Web. + // * Microsoft Windows Server 2012 R2 Base, Microsoft Windows Server 2012 + // R2 with SQL Server Express, Microsoft Windows Server 2012 R2 with SQL + // Server Standard, or Microsoft Windows Server 2012 R2 with SQL Server Web. // - // A custom AMI: Custom. You specify the custom AMI you want to use when - // you create instances. For more information on how to use custom AMIs with - // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). + // * A custom AMI: Custom. You specify the custom AMI you want to use when + // you create instances. For more information on how to use custom AMIs with + // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // The default option is the parent stack's operating system. For more information + // The default option is the parent stack's operating system. For more information // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // - // You can specify a different Linux operating system for the cloned stack, + // You can specify a different Linux operating system for the cloned stack, // but you cannot change from Linux to Windows or Windows to Linux. DefaultOs *string `type:"string"` @@ -5773,29 +5996,29 @@ type CloneStackInput struct { // HostnameTheme is set to Layer_Dependent, which creates host names by appending // integers to the layer's short name. The other themes are: // - // Baked_Goods + // * Baked_Goods // - // Clouds + // * Clouds // - // Europe_Cities + // * Europe_Cities // - // Fruits + // * Fruits // - // Greek_Deities + // * Greek_Deities // - // Legendary_creatures_from_Japan + // * Legendary_creatures_from_Japan // - // Planets_and_Moons + // * Planets_and_Moons // - // Roman_Deities + // * Roman_Deities // - // Scottish_Islands + // * Scottish_Islands // - // US_Cities + // * US_Cities // - // Wild_Cats + // * Wild_Cats // - // To obtain a generated host name, call GetHostNameSuggestion, which returns + // To obtain a generated host name, call GetHostNameSuggestion, which returns // a host name based on the current theme. HostnameTheme *string `type:"string"` @@ -5813,7 +6036,7 @@ type CloneStackInput struct { // can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html). // - // You must set this parameter to a valid service role ARN or the action will + // You must set this parameter to a valid service role ARN or the action will // fail; there is no default value. You can specify the source stack's service // role ARN, if you prefer, but you must do so explicitly. // @@ -5836,31 +6059,31 @@ type CloneStackInput struct { // you can instead provide your own custom security groups. UseOpsworksSecurityGroups // has the following settings: // - // True - AWS OpsWorks automatically associates the appropriate built-in - // security group with each layer (default setting). You can associate additional - // security groups with a layer after you create it but you cannot delete the - // built-in security group. + // * True - AWS OpsWorks automatically associates the appropriate built-in + // security group with each layer (default setting). You can associate additional + // security groups with a layer after you create it but you cannot delete + // the built-in security group. // - // False - AWS OpsWorks does not associate built-in security groups with - // layers. You must create appropriate Amazon Elastic Compute Cloud (Amazon - // EC2) security groups and associate a security group with each layer that - // you create. However, you can still manually associate a built-in security - // group with a layer on creation; custom security groups are required only - // for those layers that need custom settings. + // * False - AWS OpsWorks does not associate built-in security groups with + // layers. You must create appropriate Amazon Elastic Compute Cloud (Amazon + // EC2) security groups and associate a security group with each layer that + // you create. However, you can still manually associate a built-in security + // group with a layer on creation; custom security groups are required only + // for those layers that need custom settings. // - // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). + // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). UseOpsworksSecurityGroups *bool `type:"boolean"` // The ID of the VPC that the cloned stack is to be launched into. It must be // in the specified region. All instances are launched into this VPC, and you // cannot change the ID later. // - // If your account supports EC2 Classic, the default value is no VPC. + // * If your account supports EC2 Classic, the default value is no VPC. // - // If your account does not support EC2 Classic, the default value is the - // default VPC for the specified region. + // * If your account does not support EC2 Classic, the default value is the + // default VPC for the specified region. // - // If the VPC ID corresponds to a default VPC and you have specified either + // If the VPC ID corresponds to a default VPC and you have specified either // the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks // infers the value of the other parameter. If you specify neither parameter, // AWS OpsWorks sets these parameters to the first valid Availability Zone for @@ -5868,12 +6091,12 @@ type CloneStackInput struct { // // If you specify a nondefault VPC ID, note the following: // - // It must belong to a VPC in your account that is in the specified region. + // * It must belong to a VPC in your account that is in the specified region. // - // You must specify a value for DefaultSubnetId. + // * You must specify a value for DefaultSubnetId. // - // For more information on how to use AWS OpsWorks with a VPC, see Running - // a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html). + // For more information on how to use AWS OpsWorks with a VPC, see Running a + // Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html). // For more information on default VPC and EC2 Classic, see Supported Platforms // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html). VpcId *string `type:"string"` @@ -5905,6 +6128,138 @@ func (s *CloneStackInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *CloneStackInput) SetAgentVersion(v string) *CloneStackInput { + s.AgentVersion = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *CloneStackInput) SetAttributes(v map[string]*string) *CloneStackInput { + s.Attributes = v + return s +} + +// SetChefConfiguration sets the ChefConfiguration field's value. +func (s *CloneStackInput) SetChefConfiguration(v *ChefConfiguration) *CloneStackInput { + s.ChefConfiguration = v + return s +} + +// SetCloneAppIds sets the CloneAppIds field's value. +func (s *CloneStackInput) SetCloneAppIds(v []*string) *CloneStackInput { + s.CloneAppIds = v + return s +} + +// SetClonePermissions sets the ClonePermissions field's value. +func (s *CloneStackInput) SetClonePermissions(v bool) *CloneStackInput { + s.ClonePermissions = &v + return s +} + +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *CloneStackInput) SetConfigurationManager(v *StackConfigurationManager) *CloneStackInput { + s.ConfigurationManager = v + return s +} + +// SetCustomCookbooksSource sets the CustomCookbooksSource field's value. +func (s *CloneStackInput) SetCustomCookbooksSource(v *Source) *CloneStackInput { + s.CustomCookbooksSource = v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *CloneStackInput) SetCustomJson(v string) *CloneStackInput { + s.CustomJson = &v + return s +} + +// SetDefaultAvailabilityZone sets the DefaultAvailabilityZone field's value. +func (s *CloneStackInput) SetDefaultAvailabilityZone(v string) *CloneStackInput { + s.DefaultAvailabilityZone = &v + return s +} + +// SetDefaultInstanceProfileArn sets the DefaultInstanceProfileArn field's value. +func (s *CloneStackInput) SetDefaultInstanceProfileArn(v string) *CloneStackInput { + s.DefaultInstanceProfileArn = &v + return s +} + +// SetDefaultOs sets the DefaultOs field's value. +func (s *CloneStackInput) SetDefaultOs(v string) *CloneStackInput { + s.DefaultOs = &v + return s +} + +// SetDefaultRootDeviceType sets the DefaultRootDeviceType field's value. +func (s *CloneStackInput) SetDefaultRootDeviceType(v string) *CloneStackInput { + s.DefaultRootDeviceType = &v + return s +} + +// SetDefaultSshKeyName sets the DefaultSshKeyName field's value. +func (s *CloneStackInput) SetDefaultSshKeyName(v string) *CloneStackInput { + s.DefaultSshKeyName = &v + return s +} + +// SetDefaultSubnetId sets the DefaultSubnetId field's value. +func (s *CloneStackInput) SetDefaultSubnetId(v string) *CloneStackInput { + s.DefaultSubnetId = &v + return s +} + +// SetHostnameTheme sets the HostnameTheme field's value. +func (s *CloneStackInput) SetHostnameTheme(v string) *CloneStackInput { + s.HostnameTheme = &v + return s +} + +// SetName sets the Name field's value. +func (s *CloneStackInput) SetName(v string) *CloneStackInput { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *CloneStackInput) SetRegion(v string) *CloneStackInput { + s.Region = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *CloneStackInput) SetServiceRoleArn(v string) *CloneStackInput { + s.ServiceRoleArn = &v + return s +} + +// SetSourceStackId sets the SourceStackId field's value. +func (s *CloneStackInput) SetSourceStackId(v string) *CloneStackInput { + s.SourceStackId = &v + return s +} + +// SetUseCustomCookbooks sets the UseCustomCookbooks field's value. +func (s *CloneStackInput) SetUseCustomCookbooks(v bool) *CloneStackInput { + s.UseCustomCookbooks = &v + return s +} + +// SetUseOpsworksSecurityGroups sets the UseOpsworksSecurityGroups field's value. +func (s *CloneStackInput) SetUseOpsworksSecurityGroups(v bool) *CloneStackInput { + s.UseOpsworksSecurityGroups = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CloneStackInput) SetVpcId(v string) *CloneStackInput { + s.VpcId = &v + return s +} + // Contains the response to a CloneStack request. type CloneStackOutput struct { _ struct{} `type:"structure"` @@ -5923,6 +6278,12 @@ func (s CloneStackOutput) GoString() string { return s.String() } +// SetStackId sets the StackId field's value. +func (s *CloneStackOutput) SetStackId(v string) *CloneStackOutput { + s.StackId = &v + return s +} + // Describes a command. type Command struct { _ struct{} `type:"structure"` @@ -5953,36 +6314,36 @@ type Command struct { // The command status: // - // failed + // * failed // - // successful + // * successful // - // skipped + // * skipped // - // pending + // * pending Status *string `type:"string"` // The command type: // - // deploy + // * deploy // - // rollback + // * rollback // - // start + // * start // - // stop + // * stop // - // restart + // * restart // - // undeploy + // * undeploy // - // update_dependencies + // * update_dependencies // - // install_dependencies + // * install_dependencies // - // update_custom_cookbooks + // * update_custom_cookbooks // - // execute_recipes + // * execute_recipes Type *string `type:"string"` } @@ -5996,6 +6357,66 @@ func (s Command) GoString() string { return s.String() } +// SetAcknowledgedAt sets the AcknowledgedAt field's value. +func (s *Command) SetAcknowledgedAt(v string) *Command { + s.AcknowledgedAt = &v + return s +} + +// SetCommandId sets the CommandId field's value. +func (s *Command) SetCommandId(v string) *Command { + s.CommandId = &v + return s +} + +// SetCompletedAt sets the CompletedAt field's value. +func (s *Command) SetCompletedAt(v string) *Command { + s.CompletedAt = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Command) SetCreatedAt(v string) *Command { + s.CreatedAt = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *Command) SetDeploymentId(v string) *Command { + s.DeploymentId = &v + return s +} + +// SetExitCode sets the ExitCode field's value. +func (s *Command) SetExitCode(v int64) *Command { + s.ExitCode = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Command) SetInstanceId(v string) *Command { + s.InstanceId = &v + return s +} + +// SetLogUrl sets the LogUrl field's value. +func (s *Command) SetLogUrl(v string) *Command { + s.LogUrl = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Command) SetStatus(v string) *Command { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *Command) SetType(v string) *Command { + s.Type = &v + return s +} + type CreateAppInput struct { _ struct{} `type:"structure"` @@ -6030,7 +6451,7 @@ type CreateAppInput struct { // cause an exception with the message, "Environment: is too large (maximum // is 10KB)." // - // This parameter is supported only by Chef 11.10 stacks. If you have specified + // This parameter is supported only by Chef 11.10 stacks. If you have specified // one or more environment variables, you cannot modify the stack's Chef version. Environment []*EnvironmentVariable `type:"list"` @@ -6104,6 +6525,78 @@ func (s *CreateAppInput) Validate() error { return nil } +// SetAppSource sets the AppSource field's value. +func (s *CreateAppInput) SetAppSource(v *Source) *CreateAppInput { + s.AppSource = v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *CreateAppInput) SetAttributes(v map[string]*string) *CreateAppInput { + s.Attributes = v + return s +} + +// SetDataSources sets the DataSources field's value. +func (s *CreateAppInput) SetDataSources(v []*DataSource) *CreateAppInput { + s.DataSources = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateAppInput) SetDescription(v string) *CreateAppInput { + s.Description = &v + return s +} + +// SetDomains sets the Domains field's value. +func (s *CreateAppInput) SetDomains(v []*string) *CreateAppInput { + s.Domains = v + return s +} + +// SetEnableSsl sets the EnableSsl field's value. +func (s *CreateAppInput) SetEnableSsl(v bool) *CreateAppInput { + s.EnableSsl = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *CreateAppInput) SetEnvironment(v []*EnvironmentVariable) *CreateAppInput { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAppInput) SetName(v string) *CreateAppInput { + s.Name = &v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *CreateAppInput) SetShortname(v string) *CreateAppInput { + s.Shortname = &v + return s +} + +// SetSslConfiguration sets the SslConfiguration field's value. +func (s *CreateAppInput) SetSslConfiguration(v *SslConfiguration) *CreateAppInput { + s.SslConfiguration = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateAppInput) SetStackId(v string) *CreateAppInput { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateAppInput) SetType(v string) *CreateAppInput { + s.Type = &v + return s +} + // Contains the response to a CreateApp request. type CreateAppOutput struct { _ struct{} `type:"structure"` @@ -6122,6 +6615,12 @@ func (s CreateAppOutput) GoString() string { return s.String() } +// SetAppId sets the AppId field's value. +func (s *CreateAppOutput) SetAppId(v string) *CreateAppOutput { + s.AppId = &v + return s +} + type CreateDeploymentInput struct { _ struct{} `type:"structure"` @@ -6142,7 +6641,7 @@ type CreateDeploymentInput struct { // the corresponding default stack configuration JSON values. The string should // be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -6191,6 +6690,48 @@ func (s *CreateDeploymentInput) Validate() error { return nil } +// SetAppId sets the AppId field's value. +func (s *CreateDeploymentInput) SetAppId(v string) *CreateDeploymentInput { + s.AppId = &v + return s +} + +// SetCommand sets the Command field's value. +func (s *CreateDeploymentInput) SetCommand(v *DeploymentCommand) *CreateDeploymentInput { + s.Command = v + return s +} + +// SetComment sets the Comment field's value. +func (s *CreateDeploymentInput) SetComment(v string) *CreateDeploymentInput { + s.Comment = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *CreateDeploymentInput) SetCustomJson(v string) *CreateDeploymentInput { + s.CustomJson = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *CreateDeploymentInput) SetInstanceIds(v []*string) *CreateDeploymentInput { + s.InstanceIds = v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *CreateDeploymentInput) SetLayerIds(v []*string) *CreateDeploymentInput { + s.LayerIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateDeploymentInput) SetStackId(v string) *CreateDeploymentInput { + s.StackId = &v + return s +} + // Contains the response to a CreateDeployment request. type CreateDeploymentOutput struct { _ struct{} `type:"structure"` @@ -6210,28 +6751,34 @@ func (s CreateDeploymentOutput) GoString() string { return s.String() } +// SetDeploymentId sets the DeploymentId field's value. +func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput { + s.DeploymentId = &v + return s +} + type CreateInstanceInput struct { _ struct{} `type:"structure"` // The default AWS OpsWorks agent version. You have the following options: // - // INHERIT - Use the stack's default agent version setting. + // * INHERIT - Use the stack's default agent version setting. // - // version_number - Use the specified agent version. This value overrides - // the stack's default setting. To update the agent version, edit the instance - // configuration and specify a new version. AWS OpsWorks then automatically - // installs that version on the instance. + // * version_number - Use the specified agent version. This value overrides + // the stack's default setting. To update the agent version, edit the instance + // configuration and specify a new version. AWS OpsWorks then automatically + // installs that version on the instance. // - // The default setting is INHERIT. To specify an agent version, you must - // use the complete version number, not the abbreviated number shown on the - // console. For a list of available agent version numbers, call DescribeAgentVersions. + // The default setting is INHERIT. To specify an agent version, you must use + // the complete version number, not the abbreviated number shown on the console. + // For a list of available agent version numbers, call DescribeAgentVersions. AgentVersion *string `type:"string"` // A custom AMI ID to be used to create the instance. The AMI should be based // on one of the supported operating systems. For more information, see Using // Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // If you specify a custom AMI, you must set Os to Custom. + // If you specify a custom AMI, you must set Os to Custom. AmiId *string `type:"string"` // The instance architecture. The default option is x86_64. Instance types do @@ -6265,7 +6812,7 @@ type CreateInstanceInput struct { // using CreateDeployment to run the update_dependencies stack command or by // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true to ensure that your + // We strongly recommend using the default value of true to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -6286,31 +6833,31 @@ type CreateInstanceInput struct { // The instance's operating system, which must be set to one of the following. // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // A supported Windows operating system, such as Microsoft Windows Server - // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft - // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server - // 2012 R2 with SQL Server Web. + // * A supported Windows operating system, such as Microsoft Windows Server + // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, + // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft + // Windows Server 2012 R2 with SQL Server Web. // - // A custom AMI: Custom. + // * A custom AMI: Custom. // - // For more information on the supported operating systems, see AWS OpsWorks + // For more information on the supported operating systems, see AWS OpsWorks // Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // - // The default option is the current Amazon Linux version. If you set this - // parameter to Custom, you must use the CreateInstance action's AmiId parameter - // to specify the custom AMI that you want to use. Block device mappings are - // not supported if the value is Custom. For more information on the supported - // operating systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For + // The default option is the current Amazon Linux version. If you set this parameter + // to Custom, you must use the CreateInstance action's AmiId parameter to specify + // the custom AMI that you want to use. Block device mappings are not supported + // if the value is Custom. For more information on the supported operating systems, + // see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For // more information on how to use custom AMIs with AWS OpsWorks, see Using Custom // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). Os *string `type:"string"` @@ -6377,6 +6924,114 @@ func (s *CreateInstanceInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *CreateInstanceInput) SetAgentVersion(v string) *CreateInstanceInput { + s.AgentVersion = &v + return s +} + +// SetAmiId sets the AmiId field's value. +func (s *CreateInstanceInput) SetAmiId(v string) *CreateInstanceInput { + s.AmiId = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *CreateInstanceInput) SetArchitecture(v string) *CreateInstanceInput { + s.Architecture = &v + return s +} + +// SetAutoScalingType sets the AutoScalingType field's value. +func (s *CreateInstanceInput) SetAutoScalingType(v string) *CreateInstanceInput { + s.AutoScalingType = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateInstanceInput) SetAvailabilityZone(v string) *CreateInstanceInput { + s.AvailabilityZone = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *CreateInstanceInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateInstanceInput { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *CreateInstanceInput) SetEbsOptimized(v bool) *CreateInstanceInput { + s.EbsOptimized = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *CreateInstanceInput) SetHostname(v string) *CreateInstanceInput { + s.Hostname = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *CreateInstanceInput) SetInstallUpdatesOnBoot(v bool) *CreateInstanceInput { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateInstanceInput) SetInstanceType(v string) *CreateInstanceInput { + s.InstanceType = &v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *CreateInstanceInput) SetLayerIds(v []*string) *CreateInstanceInput { + s.LayerIds = v + return s +} + +// SetOs sets the Os field's value. +func (s *CreateInstanceInput) SetOs(v string) *CreateInstanceInput { + s.Os = &v + return s +} + +// SetRootDeviceType sets the RootDeviceType field's value. +func (s *CreateInstanceInput) SetRootDeviceType(v string) *CreateInstanceInput { + s.RootDeviceType = &v + return s +} + +// SetSshKeyName sets the SshKeyName field's value. +func (s *CreateInstanceInput) SetSshKeyName(v string) *CreateInstanceInput { + s.SshKeyName = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateInstanceInput) SetStackId(v string) *CreateInstanceInput { + s.StackId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateInstanceInput) SetSubnetId(v string) *CreateInstanceInput { + s.SubnetId = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *CreateInstanceInput) SetTenancy(v string) *CreateInstanceInput { + s.Tenancy = &v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *CreateInstanceInput) SetVirtualizationType(v string) *CreateInstanceInput { + s.VirtualizationType = &v + return s +} + // Contains the response to a CreateInstance request. type CreateInstanceOutput struct { _ struct{} `type:"structure"` @@ -6395,6 +7050,12 @@ func (s CreateInstanceOutput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *CreateInstanceOutput) SetInstanceId(v string) *CreateInstanceOutput { + s.InstanceId = &v + return s +} + type CreateLayerInput struct { _ struct{} `type:"structure"` @@ -6438,7 +7099,7 @@ type CreateLayerInput struct { // using CreateDeployment to run the update_dependencies stack command or by // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. // - // To ensure that your instances have the latest security updates, we strongly + // To ensure that your instances have the latest security updates, we strongly // recommend using the default value of true. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -6528,6 +7189,108 @@ func (s *CreateLayerInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *CreateLayerInput) SetAttributes(v map[string]*string) *CreateLayerInput { + s.Attributes = v + return s +} + +// SetAutoAssignElasticIps sets the AutoAssignElasticIps field's value. +func (s *CreateLayerInput) SetAutoAssignElasticIps(v bool) *CreateLayerInput { + s.AutoAssignElasticIps = &v + return s +} + +// SetAutoAssignPublicIps sets the AutoAssignPublicIps field's value. +func (s *CreateLayerInput) SetAutoAssignPublicIps(v bool) *CreateLayerInput { + s.AutoAssignPublicIps = &v + return s +} + +// SetCustomInstanceProfileArn sets the CustomInstanceProfileArn field's value. +func (s *CreateLayerInput) SetCustomInstanceProfileArn(v string) *CreateLayerInput { + s.CustomInstanceProfileArn = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *CreateLayerInput) SetCustomJson(v string) *CreateLayerInput { + s.CustomJson = &v + return s +} + +// SetCustomRecipes sets the CustomRecipes field's value. +func (s *CreateLayerInput) SetCustomRecipes(v *Recipes) *CreateLayerInput { + s.CustomRecipes = v + return s +} + +// SetCustomSecurityGroupIds sets the CustomSecurityGroupIds field's value. +func (s *CreateLayerInput) SetCustomSecurityGroupIds(v []*string) *CreateLayerInput { + s.CustomSecurityGroupIds = v + return s +} + +// SetEnableAutoHealing sets the EnableAutoHealing field's value. +func (s *CreateLayerInput) SetEnableAutoHealing(v bool) *CreateLayerInput { + s.EnableAutoHealing = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *CreateLayerInput) SetInstallUpdatesOnBoot(v bool) *CreateLayerInput { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetLifecycleEventConfiguration sets the LifecycleEventConfiguration field's value. +func (s *CreateLayerInput) SetLifecycleEventConfiguration(v *LifecycleEventConfiguration) *CreateLayerInput { + s.LifecycleEventConfiguration = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateLayerInput) SetName(v string) *CreateLayerInput { + s.Name = &v + return s +} + +// SetPackages sets the Packages field's value. +func (s *CreateLayerInput) SetPackages(v []*string) *CreateLayerInput { + s.Packages = v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *CreateLayerInput) SetShortname(v string) *CreateLayerInput { + s.Shortname = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateLayerInput) SetStackId(v string) *CreateLayerInput { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateLayerInput) SetType(v string) *CreateLayerInput { + s.Type = &v + return s +} + +// SetUseEbsOptimizedInstances sets the UseEbsOptimizedInstances field's value. +func (s *CreateLayerInput) SetUseEbsOptimizedInstances(v bool) *CreateLayerInput { + s.UseEbsOptimizedInstances = &v + return s +} + +// SetVolumeConfigurations sets the VolumeConfigurations field's value. +func (s *CreateLayerInput) SetVolumeConfigurations(v []*VolumeConfiguration) *CreateLayerInput { + s.VolumeConfigurations = v + return s +} + // Contains the response to a CreateLayer request. type CreateLayerOutput struct { _ struct{} `type:"structure"` @@ -6546,26 +7309,32 @@ func (s CreateLayerOutput) GoString() string { return s.String() } +// SetLayerId sets the LayerId field's value. +func (s *CreateLayerOutput) SetLayerId(v string) *CreateLayerOutput { + s.LayerId = &v + return s +} + type CreateStackInput struct { _ struct{} `type:"structure"` // The default AWS OpsWorks agent version. You have the following options: // - // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically - // installs new agent versions on the stack's instances as soon as they are - // available. + // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically + // installs new agent versions on the stack's instances as soon as they are + // available. // - // Fixed version - Set this parameter to your preferred agent version. To - // update the agent version, you must edit the stack configuration and specify - // a new version. AWS OpsWorks then automatically installs that version on the - // stack's instances. + // * Fixed version - Set this parameter to your preferred agent version. + // To update the agent version, you must edit the stack configuration and + // specify a new version. AWS OpsWorks then automatically installs that version + // on the stack's instances. // - // The default setting is the most recent release of the agent. To specify - // an agent version, you must use the complete version number, not the abbreviated + // The default setting is the most recent release of the agent. To specify an + // agent version, you must use the complete version number, not the abbreviated // number shown on the console. For a list of available agent version numbers, // call DescribeAgentVersions. // - // You can also specify an agent version when you create or update an instance, + // You can also specify an agent version when you create or update an instance, // which overrides the stack's default setting. AgentVersion *string `type:"string"` @@ -6592,7 +7361,7 @@ type CreateStackInput struct { // the corresponding default stack configuration attribute values or to pass // data to recipes. The string should be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -6615,25 +7384,25 @@ type CreateStackInput struct { // unless you specify a different operating system when you create the instance. // You can specify one of the following. // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // A supported Windows operating system, such as Microsoft Windows Server - // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft - // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server - // 2012 R2 with SQL Server Web. + // * A supported Windows operating system, such as Microsoft Windows Server + // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, + // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft + // Windows Server 2012 R2 with SQL Server Web. // - // A custom AMI: Custom. You specify the custom AMI you want to use when - // you create instances. For more information, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). + // * A custom AMI: Custom. You specify the custom AMI you want to use when + // you create instances. For more information, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // The default option is the current Amazon Linux version. For more information + // The default option is the current Amazon Linux version. For more information // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). DefaultOs *string `type:"string"` @@ -6665,29 +7434,29 @@ type CreateStackInput struct { // is set to Layer_Dependent, which creates host names by appending integers // to the layer's short name. The other themes are: // - // Baked_Goods + // * Baked_Goods // - // Clouds + // * Clouds // - // Europe_Cities + // * Europe_Cities // - // Fruits + // * Fruits // - // Greek_Deities + // * Greek_Deities // - // Legendary_creatures_from_Japan + // * Legendary_creatures_from_Japan // - // Planets_and_Moons + // * Planets_and_Moons // - // Roman_Deities + // * Roman_Deities // - // Scottish_Islands + // * Scottish_Islands // - // US_Cities + // * US_Cities // - // Wild_Cats + // * Wild_Cats // - // To obtain a generated host name, call GetHostNameSuggestion, which returns + // To obtain a generated host name, call GetHostNameSuggestion, which returns // a host name based on the current theme. HostnameTheme *string `type:"string"` @@ -6721,30 +7490,31 @@ type CreateStackInput struct { // you can instead provide your own custom security groups. UseOpsworksSecurityGroups // has the following settings: // - // True - AWS OpsWorks automatically associates the appropriate built-in - // security group with each layer (default setting). You can associate additional - // security groups with a layer after you create it, but you cannot delete the - // built-in security group. + // * True - AWS OpsWorks automatically associates the appropriate built-in + // security group with each layer (default setting). You can associate additional + // security groups with a layer after you create it, but you cannot delete + // the built-in security group. // - // False - AWS OpsWorks does not associate built-in security groups with - // layers. You must create appropriate EC2 security groups and associate a security - // group with each layer that you create. However, you can still manually associate - // a built-in security group with a layer on creation; custom security groups - // are required only for those layers that need custom settings. + // * False - AWS OpsWorks does not associate built-in security groups with + // layers. You must create appropriate EC2 security groups and associate + // a security group with each layer that you create. However, you can still + // manually associate a built-in security group with a layer on creation; + // custom security groups are required only for those layers that need custom + // settings. // - // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). + // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). UseOpsworksSecurityGroups *bool `type:"boolean"` // The ID of the VPC that the stack is to be launched into. The VPC must be // in the stack's region. All instances are launched into this VPC. You cannot // change the ID later. // - // If your account supports EC2-Classic, the default value is no VPC. + // * If your account supports EC2-Classic, the default value is no VPC. // - // If your account does not support EC2-Classic, the default value is the - // default VPC for the specified region. + // * If your account does not support EC2-Classic, the default value is the + // default VPC for the specified region. // - // If the VPC ID corresponds to a default VPC and you have specified either + // If the VPC ID corresponds to a default VPC and you have specified either // the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks // infers the value of the other parameter. If you specify neither parameter, // AWS OpsWorks sets these parameters to the first valid Availability Zone for @@ -6752,12 +7522,12 @@ type CreateStackInput struct { // // If you specify a nondefault VPC ID, note the following: // - // It must belong to a VPC in your account that is in the specified region. + // * It must belong to a VPC in your account that is in the specified region. // - // You must specify a value for DefaultSubnetId. + // * You must specify a value for DefaultSubnetId. // - // For more information on how to use AWS OpsWorks with a VPC, see Running - // a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html). + // For more information on how to use AWS OpsWorks with a VPC, see Running a + // Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html). // For more information on default VPC and EC2-Classic, see Supported Platforms // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html). VpcId *string `type:"string"` @@ -6795,6 +7565,120 @@ func (s *CreateStackInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *CreateStackInput) SetAgentVersion(v string) *CreateStackInput { + s.AgentVersion = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *CreateStackInput) SetAttributes(v map[string]*string) *CreateStackInput { + s.Attributes = v + return s +} + +// SetChefConfiguration sets the ChefConfiguration field's value. +func (s *CreateStackInput) SetChefConfiguration(v *ChefConfiguration) *CreateStackInput { + s.ChefConfiguration = v + return s +} + +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *CreateStackInput) SetConfigurationManager(v *StackConfigurationManager) *CreateStackInput { + s.ConfigurationManager = v + return s +} + +// SetCustomCookbooksSource sets the CustomCookbooksSource field's value. +func (s *CreateStackInput) SetCustomCookbooksSource(v *Source) *CreateStackInput { + s.CustomCookbooksSource = v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *CreateStackInput) SetCustomJson(v string) *CreateStackInput { + s.CustomJson = &v + return s +} + +// SetDefaultAvailabilityZone sets the DefaultAvailabilityZone field's value. +func (s *CreateStackInput) SetDefaultAvailabilityZone(v string) *CreateStackInput { + s.DefaultAvailabilityZone = &v + return s +} + +// SetDefaultInstanceProfileArn sets the DefaultInstanceProfileArn field's value. +func (s *CreateStackInput) SetDefaultInstanceProfileArn(v string) *CreateStackInput { + s.DefaultInstanceProfileArn = &v + return s +} + +// SetDefaultOs sets the DefaultOs field's value. +func (s *CreateStackInput) SetDefaultOs(v string) *CreateStackInput { + s.DefaultOs = &v + return s +} + +// SetDefaultRootDeviceType sets the DefaultRootDeviceType field's value. +func (s *CreateStackInput) SetDefaultRootDeviceType(v string) *CreateStackInput { + s.DefaultRootDeviceType = &v + return s +} + +// SetDefaultSshKeyName sets the DefaultSshKeyName field's value. +func (s *CreateStackInput) SetDefaultSshKeyName(v string) *CreateStackInput { + s.DefaultSshKeyName = &v + return s +} + +// SetDefaultSubnetId sets the DefaultSubnetId field's value. +func (s *CreateStackInput) SetDefaultSubnetId(v string) *CreateStackInput { + s.DefaultSubnetId = &v + return s +} + +// SetHostnameTheme sets the HostnameTheme field's value. +func (s *CreateStackInput) SetHostnameTheme(v string) *CreateStackInput { + s.HostnameTheme = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateStackInput) SetName(v string) *CreateStackInput { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *CreateStackInput) SetRegion(v string) *CreateStackInput { + s.Region = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *CreateStackInput) SetServiceRoleArn(v string) *CreateStackInput { + s.ServiceRoleArn = &v + return s +} + +// SetUseCustomCookbooks sets the UseCustomCookbooks field's value. +func (s *CreateStackInput) SetUseCustomCookbooks(v bool) *CreateStackInput { + s.UseCustomCookbooks = &v + return s +} + +// SetUseOpsworksSecurityGroups sets the UseOpsworksSecurityGroups field's value. +func (s *CreateStackInput) SetUseOpsworksSecurityGroups(v bool) *CreateStackInput { + s.UseOpsworksSecurityGroups = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateStackInput) SetVpcId(v string) *CreateStackInput { + s.VpcId = &v + return s +} + // Contains the response to a CreateStack request. type CreateStackOutput struct { _ struct{} `type:"structure"` @@ -6814,6 +7698,12 @@ func (s CreateStackOutput) GoString() string { return s.String() } +// SetStackId sets the StackId field's value. +func (s *CreateStackOutput) SetStackId(v string) *CreateStackOutput { + s.StackId = &v + return s +} + type CreateUserProfileInput struct { _ struct{} `type:"structure"` @@ -6860,6 +7750,30 @@ func (s *CreateUserProfileInput) Validate() error { return nil } +// SetAllowSelfManagement sets the AllowSelfManagement field's value. +func (s *CreateUserProfileInput) SetAllowSelfManagement(v bool) *CreateUserProfileInput { + s.AllowSelfManagement = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *CreateUserProfileInput) SetIamUserArn(v string) *CreateUserProfileInput { + s.IamUserArn = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *CreateUserProfileInput) SetSshPublicKey(v string) *CreateUserProfileInput { + s.SshPublicKey = &v + return s +} + +// SetSshUsername sets the SshUsername field's value. +func (s *CreateUserProfileInput) SetSshUsername(v string) *CreateUserProfileInput { + s.SshUsername = &v + return s +} + // Contains the response to a CreateUserProfile request. type CreateUserProfileOutput struct { _ struct{} `type:"structure"` @@ -6878,6 +7792,12 @@ func (s CreateUserProfileOutput) GoString() string { return s.String() } +// SetIamUserArn sets the IamUserArn field's value. +func (s *CreateUserProfileOutput) SetIamUserArn(v string) *CreateUserProfileOutput { + s.IamUserArn = &v + return s +} + // Describes an app's data source. type DataSource struct { _ struct{} `type:"structure"` @@ -6903,6 +7823,24 @@ func (s DataSource) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *DataSource) SetArn(v string) *DataSource { + s.Arn = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *DataSource) SetDatabaseName(v string) *DataSource { + s.DatabaseName = &v + return s +} + +// SetType sets the Type field's value. +func (s *DataSource) SetType(v string) *DataSource { + s.Type = &v + return s +} + type DeleteAppInput struct { _ struct{} `type:"structure"` @@ -6935,6 +7873,12 @@ func (s *DeleteAppInput) Validate() error { return nil } +// SetAppId sets the AppId field's value. +func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput { + s.AppId = &v + return s +} + type DeleteAppOutput struct { _ struct{} `type:"structure"` } @@ -6987,6 +7931,24 @@ func (s *DeleteInstanceInput) Validate() error { return nil } +// SetDeleteElasticIp sets the DeleteElasticIp field's value. +func (s *DeleteInstanceInput) SetDeleteElasticIp(v bool) *DeleteInstanceInput { + s.DeleteElasticIp = &v + return s +} + +// SetDeleteVolumes sets the DeleteVolumes field's value. +func (s *DeleteInstanceInput) SetDeleteVolumes(v bool) *DeleteInstanceInput { + s.DeleteVolumes = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DeleteInstanceInput) SetInstanceId(v string) *DeleteInstanceInput { + s.InstanceId = &v + return s +} + type DeleteInstanceOutput struct { _ struct{} `type:"structure"` } @@ -7033,6 +7995,12 @@ func (s *DeleteLayerInput) Validate() error { return nil } +// SetLayerId sets the LayerId field's value. +func (s *DeleteLayerInput) SetLayerId(v string) *DeleteLayerInput { + s.LayerId = &v + return s +} + type DeleteLayerOutput struct { _ struct{} `type:"structure"` } @@ -7079,6 +8047,12 @@ func (s *DeleteStackInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *DeleteStackInput) SetStackId(v string) *DeleteStackInput { + s.StackId = &v + return s +} + type DeleteStackOutput struct { _ struct{} `type:"structure"` } @@ -7125,6 +8099,12 @@ func (s *DeleteUserProfileInput) Validate() error { return nil } +// SetIamUserArn sets the IamUserArn field's value. +func (s *DeleteUserProfileInput) SetIamUserArn(v string) *DeleteUserProfileInput { + s.IamUserArn = &v + return s +} + type DeleteUserProfileOutput struct { _ struct{} `type:"structure"` } @@ -7162,7 +8142,7 @@ type Deployment struct { // the corresponding default stack configuration attribute values for stack // or to pass data to recipes. The string should be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -7185,11 +8165,11 @@ type Deployment struct { // The deployment status: // - // running + // * running // - // successful + // * successful // - // failed + // * failed Status *string `type:"string"` } @@ -7203,6 +8183,78 @@ func (s Deployment) GoString() string { return s.String() } +// SetAppId sets the AppId field's value. +func (s *Deployment) SetAppId(v string) *Deployment { + s.AppId = &v + return s +} + +// SetCommand sets the Command field's value. +func (s *Deployment) SetCommand(v *DeploymentCommand) *Deployment { + s.Command = v + return s +} + +// SetComment sets the Comment field's value. +func (s *Deployment) SetComment(v string) *Deployment { + s.Comment = &v + return s +} + +// SetCompletedAt sets the CompletedAt field's value. +func (s *Deployment) SetCompletedAt(v string) *Deployment { + s.CompletedAt = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Deployment) SetCreatedAt(v string) *Deployment { + s.CreatedAt = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *Deployment) SetCustomJson(v string) *Deployment { + s.CustomJson = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *Deployment) SetDeploymentId(v string) *Deployment { + s.DeploymentId = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *Deployment) SetDuration(v int64) *Deployment { + s.Duration = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *Deployment) SetIamUserArn(v string) *Deployment { + s.IamUserArn = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *Deployment) SetInstanceIds(v []*string) *Deployment { + s.InstanceIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Deployment) SetStackId(v string) *Deployment { + s.StackId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Deployment) SetStatus(v string) *Deployment { + s.Status = &v + return s +} + // Used to specify a stack or deployment command. type DeploymentCommand struct { _ struct{} `type:"structure"` @@ -7210,60 +8262,61 @@ type DeploymentCommand struct { // The arguments of those commands that take arguments. It should be set to // a JSON object with the following format: // - // {"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2", + // {"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2", // ...], ...} // // The update_dependencies command takes two arguments: // - // upgrade_os_to - Specifies the desired Amazon Linux version for instances - // whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also - // set the allow_reboot argument to true. + // * upgrade_os_to - Specifies the desired Amazon Linux version for instances + // whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also + // set the allow_reboot argument to true. // - // allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the - // instances if necessary, after installing the updates. This argument can be - // set to either true or false. The default value is false. + // * allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the + // instances if necessary, after installing the updates. This argument can + // be set to either true or false. The default value is false. // - // For example, to upgrade an instance to Amazon Linux 2014.09, set Args - // to the following. + // For example, to upgrade an instance to Amazon Linux 2014.09, set Args to + // the following. // - // { "upgrade_os_to":["Amazon Linux 2014.09"], "allow_reboot":["true"] } + // { "upgrade_os_to":["Amazon Linux 2014.09"], "allow_reboot":["true"] } Args map[string][]*string `type:"map"` // Specifies the operation. You can specify only one command. // // For stacks, the following commands are available: // - // execute_recipes: Execute one or more recipes. To specify the recipes, - // set an Args parameter named recipes to the list of recipes to be executed. - // For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}. + // * execute_recipes: Execute one or more recipes. To specify the recipes, + // set an Args parameter named recipes to the list of recipes to be executed. + // For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}. // - // install_dependencies: Install the stack's dependencies. + // * install_dependencies: Install the stack's dependencies. // - // update_custom_cookbooks: Update the stack's custom cookbooks. + // * update_custom_cookbooks: Update the stack's custom cookbooks. // - // update_dependencies: Update the stack's dependencies. + // * update_dependencies: Update the stack's dependencies. // - // The update_dependencies and install_dependencies commands are supported - // only for Linux instances. You can run the commands successfully on Windows - // instances, but they do nothing. + // The update_dependencies and install_dependencies commands are supported only + // for Linux instances. You can run the commands successfully on Windows instances, + // but they do nothing. // - // For apps, the following commands are available: + // For apps, the following commands are available: // - // deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter - // named migrate. Set Args to {"migrate":["true"]} to migrate the database. - // The default setting is {"migrate":["false"]}. + // * deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter + // named migrate. Set Args to {"migrate":["true"]} to migrate the database. + // The default setting is {"migrate":["false"]}. // - // rollback Roll the app back to the previous version. When you update an - // app, AWS OpsWorks stores the previous version, up to a maximum of five versions. - // You can use this command to roll an app back as many as four versions. + // * rollback Roll the app back to the previous version. When you update + // an app, AWS OpsWorks stores the previous version, up to a maximum of five + // versions. You can use this command to roll an app back as many as four + // versions. // - // start: Start the app's web or application server. + // * start: Start the app's web or application server. // - // stop: Stop the app's web or application server. + // * stop: Stop the app's web or application server. // - // restart: Restart the app's web or application server. + // * restart: Restart the app's web or application server. // - // undeploy: Undeploy the app. + // * undeploy: Undeploy the app. // // Name is a required field Name *string `type:"string" required:"true" enum:"DeploymentCommandName"` @@ -7292,6 +8345,18 @@ func (s *DeploymentCommand) Validate() error { return nil } +// SetArgs sets the Args field's value. +func (s *DeploymentCommand) SetArgs(v map[string][]*string) *DeploymentCommand { + s.Args = v + return s +} + +// SetName sets the Name field's value. +func (s *DeploymentCommand) SetName(v string) *DeploymentCommand { + s.Name = &v + return s +} + type DeregisterEcsClusterInput struct { _ struct{} `type:"structure"` @@ -7324,6 +8389,12 @@ func (s *DeregisterEcsClusterInput) Validate() error { return nil } +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *DeregisterEcsClusterInput) SetEcsClusterArn(v string) *DeregisterEcsClusterInput { + s.EcsClusterArn = &v + return s +} + type DeregisterEcsClusterOutput struct { _ struct{} `type:"structure"` } @@ -7370,6 +8441,12 @@ func (s *DeregisterElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *DeregisterElasticIpInput) SetElasticIp(v string) *DeregisterElasticIpInput { + s.ElasticIp = &v + return s +} + type DeregisterElasticIpOutput struct { _ struct{} `type:"structure"` } @@ -7416,6 +8493,12 @@ func (s *DeregisterInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *DeregisterInstanceInput) SetInstanceId(v string) *DeregisterInstanceInput { + s.InstanceId = &v + return s +} + type DeregisterInstanceOutput struct { _ struct{} `type:"structure"` } @@ -7462,6 +8545,12 @@ func (s *DeregisterRdsDbInstanceInput) Validate() error { return nil } +// SetRdsDbInstanceArn sets the RdsDbInstanceArn field's value. +func (s *DeregisterRdsDbInstanceInput) SetRdsDbInstanceArn(v string) *DeregisterRdsDbInstanceInput { + s.RdsDbInstanceArn = &v + return s +} + type DeregisterRdsDbInstanceOutput struct { _ struct{} `type:"structure"` } @@ -7510,6 +8599,12 @@ func (s *DeregisterVolumeInput) Validate() error { return nil } +// SetVolumeId sets the VolumeId field's value. +func (s *DeregisterVolumeInput) SetVolumeId(v string) *DeregisterVolumeInput { + s.VolumeId = &v + return s +} + type DeregisterVolumeOutput struct { _ struct{} `type:"structure"` } @@ -7544,6 +8639,18 @@ func (s DescribeAgentVersionsInput) GoString() string { return s.String() } +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *DescribeAgentVersionsInput) SetConfigurationManager(v *StackConfigurationManager) *DescribeAgentVersionsInput { + s.ConfigurationManager = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeAgentVersionsInput) SetStackId(v string) *DescribeAgentVersionsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeAgentVersions request. type DescribeAgentVersionsOutput struct { _ struct{} `type:"structure"` @@ -7564,6 +8671,12 @@ func (s DescribeAgentVersionsOutput) GoString() string { return s.String() } +// SetAgentVersions sets the AgentVersions field's value. +func (s *DescribeAgentVersionsOutput) SetAgentVersions(v []*AgentVersion) *DescribeAgentVersionsOutput { + s.AgentVersions = v + return s +} + type DescribeAppsInput struct { _ struct{} `type:"structure"` @@ -7587,6 +8700,18 @@ func (s DescribeAppsInput) GoString() string { return s.String() } +// SetAppIds sets the AppIds field's value. +func (s *DescribeAppsInput) SetAppIds(v []*string) *DescribeAppsInput { + s.AppIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeAppsInput) SetStackId(v string) *DescribeAppsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeApps request. type DescribeAppsOutput struct { _ struct{} `type:"structure"` @@ -7605,6 +8730,12 @@ func (s DescribeAppsOutput) GoString() string { return s.String() } +// SetApps sets the Apps field's value. +func (s *DescribeAppsOutput) SetApps(v []*App) *DescribeAppsOutput { + s.Apps = v + return s +} + type DescribeCommandsInput struct { _ struct{} `type:"structure"` @@ -7632,6 +8763,24 @@ func (s DescribeCommandsInput) GoString() string { return s.String() } +// SetCommandIds sets the CommandIds field's value. +func (s *DescribeCommandsInput) SetCommandIds(v []*string) *DescribeCommandsInput { + s.CommandIds = v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *DescribeCommandsInput) SetDeploymentId(v string) *DescribeCommandsInput { + s.DeploymentId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeCommandsInput) SetInstanceId(v string) *DescribeCommandsInput { + s.InstanceId = &v + return s +} + // Contains the response to a DescribeCommands request. type DescribeCommandsOutput struct { _ struct{} `type:"structure"` @@ -7650,6 +8799,12 @@ func (s DescribeCommandsOutput) GoString() string { return s.String() } +// SetCommands sets the Commands field's value. +func (s *DescribeCommandsOutput) SetCommands(v []*Command) *DescribeCommandsOutput { + s.Commands = v + return s +} + type DescribeDeploymentsInput struct { _ struct{} `type:"structure"` @@ -7677,6 +8832,24 @@ func (s DescribeDeploymentsInput) GoString() string { return s.String() } +// SetAppId sets the AppId field's value. +func (s *DescribeDeploymentsInput) SetAppId(v string) *DescribeDeploymentsInput { + s.AppId = &v + return s +} + +// SetDeploymentIds sets the DeploymentIds field's value. +func (s *DescribeDeploymentsInput) SetDeploymentIds(v []*string) *DescribeDeploymentsInput { + s.DeploymentIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeDeploymentsInput) SetStackId(v string) *DescribeDeploymentsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeDeployments request. type DescribeDeploymentsOutput struct { _ struct{} `type:"structure"` @@ -7695,6 +8868,12 @@ func (s DescribeDeploymentsOutput) GoString() string { return s.String() } +// SetDeployments sets the Deployments field's value. +func (s *DescribeDeploymentsOutput) SetDeployments(v []*Deployment) *DescribeDeploymentsOutput { + s.Deployments = v + return s +} + type DescribeEcsClustersInput struct { _ struct{} `type:"structure"` @@ -7730,6 +8909,30 @@ func (s DescribeEcsClustersInput) GoString() string { return s.String() } +// SetEcsClusterArns sets the EcsClusterArns field's value. +func (s *DescribeEcsClustersInput) SetEcsClusterArns(v []*string) *DescribeEcsClustersInput { + s.EcsClusterArns = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEcsClustersInput) SetMaxResults(v int64) *DescribeEcsClustersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEcsClustersInput) SetNextToken(v string) *DescribeEcsClustersInput { + s.NextToken = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeEcsClustersInput) SetStackId(v string) *DescribeEcsClustersInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeEcsClusters request. type DescribeEcsClustersOutput struct { _ struct{} `type:"structure"` @@ -7754,6 +8957,18 @@ func (s DescribeEcsClustersOutput) GoString() string { return s.String() } +// SetEcsClusters sets the EcsClusters field's value. +func (s *DescribeEcsClustersOutput) SetEcsClusters(v []*EcsCluster) *DescribeEcsClustersOutput { + s.EcsClusters = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEcsClustersOutput) SetNextToken(v string) *DescribeEcsClustersOutput { + s.NextToken = &v + return s +} + type DescribeElasticIpsInput struct { _ struct{} `type:"structure"` @@ -7781,6 +8996,24 @@ func (s DescribeElasticIpsInput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeElasticIpsInput) SetInstanceId(v string) *DescribeElasticIpsInput { + s.InstanceId = &v + return s +} + +// SetIps sets the Ips field's value. +func (s *DescribeElasticIpsInput) SetIps(v []*string) *DescribeElasticIpsInput { + s.Ips = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeElasticIpsInput) SetStackId(v string) *DescribeElasticIpsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeElasticIps request. type DescribeElasticIpsOutput struct { _ struct{} `type:"structure"` @@ -7799,6 +9032,12 @@ func (s DescribeElasticIpsOutput) GoString() string { return s.String() } +// SetElasticIps sets the ElasticIps field's value. +func (s *DescribeElasticIpsOutput) SetElasticIps(v []*ElasticIp) *DescribeElasticIpsOutput { + s.ElasticIps = v + return s +} + type DescribeElasticLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -7820,6 +9059,18 @@ func (s DescribeElasticLoadBalancersInput) GoString() string { return s.String() } +// SetLayerIds sets the LayerIds field's value. +func (s *DescribeElasticLoadBalancersInput) SetLayerIds(v []*string) *DescribeElasticLoadBalancersInput { + s.LayerIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeElasticLoadBalancersInput) SetStackId(v string) *DescribeElasticLoadBalancersInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeElasticLoadBalancers request. type DescribeElasticLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -7839,6 +9090,12 @@ func (s DescribeElasticLoadBalancersOutput) GoString() string { return s.String() } +// SetElasticLoadBalancers sets the ElasticLoadBalancers field's value. +func (s *DescribeElasticLoadBalancersOutput) SetElasticLoadBalancers(v []*ElasticLoadBalancer) *DescribeElasticLoadBalancersOutput { + s.ElasticLoadBalancers = v + return s +} + type DescribeInstancesInput struct { _ struct{} `type:"structure"` @@ -7866,6 +9123,24 @@ func (s DescribeInstancesInput) GoString() string { return s.String() } +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput { + s.InstanceIds = v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *DescribeInstancesInput) SetLayerId(v string) *DescribeInstancesInput { + s.LayerId = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeInstancesInput) SetStackId(v string) *DescribeInstancesInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeInstances request. type DescribeInstancesOutput struct { _ struct{} `type:"structure"` @@ -7884,6 +9159,12 @@ func (s DescribeInstancesOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *DescribeInstancesOutput) SetInstances(v []*Instance) *DescribeInstancesOutput { + s.Instances = v + return s +} + type DescribeLayersInput struct { _ struct{} `type:"structure"` @@ -7906,6 +9187,18 @@ func (s DescribeLayersInput) GoString() string { return s.String() } +// SetLayerIds sets the LayerIds field's value. +func (s *DescribeLayersInput) SetLayerIds(v []*string) *DescribeLayersInput { + s.LayerIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeLayersInput) SetStackId(v string) *DescribeLayersInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeLayers request. type DescribeLayersOutput struct { _ struct{} `type:"structure"` @@ -7924,6 +9217,12 @@ func (s DescribeLayersOutput) GoString() string { return s.String() } +// SetLayers sets the Layers field's value. +func (s *DescribeLayersOutput) SetLayers(v []*Layer) *DescribeLayersOutput { + s.Layers = v + return s +} + type DescribeLoadBasedAutoScalingInput struct { _ struct{} `type:"structure"` @@ -7956,6 +9255,12 @@ func (s *DescribeLoadBasedAutoScalingInput) Validate() error { return nil } +// SetLayerIds sets the LayerIds field's value. +func (s *DescribeLoadBasedAutoScalingInput) SetLayerIds(v []*string) *DescribeLoadBasedAutoScalingInput { + s.LayerIds = v + return s +} + // Contains the response to a DescribeLoadBasedAutoScaling request. type DescribeLoadBasedAutoScalingOutput struct { _ struct{} `type:"structure"` @@ -7975,6 +9280,12 @@ func (s DescribeLoadBasedAutoScalingOutput) GoString() string { return s.String() } +// SetLoadBasedAutoScalingConfigurations sets the LoadBasedAutoScalingConfigurations field's value. +func (s *DescribeLoadBasedAutoScalingOutput) SetLoadBasedAutoScalingConfigurations(v []*LoadBasedAutoScalingConfiguration) *DescribeLoadBasedAutoScalingOutput { + s.LoadBasedAutoScalingConfigurations = v + return s +} + type DescribeMyUserProfileInput struct { _ struct{} `type:"structure"` } @@ -8007,6 +9318,12 @@ func (s DescribeMyUserProfileOutput) GoString() string { return s.String() } +// SetUserProfile sets the UserProfile field's value. +func (s *DescribeMyUserProfileOutput) SetUserProfile(v *SelfUserProfile) *DescribeMyUserProfileOutput { + s.UserProfile = v + return s +} + type DescribePermissionsInput struct { _ struct{} `type:"structure"` @@ -8028,21 +9345,33 @@ func (s DescribePermissionsInput) GoString() string { return s.String() } +// SetIamUserArn sets the IamUserArn field's value. +func (s *DescribePermissionsInput) SetIamUserArn(v string) *DescribePermissionsInput { + s.IamUserArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribePermissionsInput) SetStackId(v string) *DescribePermissionsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribePermissions request. type DescribePermissionsOutput struct { _ struct{} `type:"structure"` // An array of Permission objects that describe the stack permissions. // - // If the request object contains only a stack ID, the array contains a Permission - // object with permissions for each of the stack IAM ARNs. + // * If the request object contains only a stack ID, the array contains a + // Permission object with permissions for each of the stack IAM ARNs. // - // If the request object contains only an IAM ARN, the array contains a Permission - // object with permissions for each of the user's stack IDs. + // * If the request object contains only an IAM ARN, the array contains a + // Permission object with permissions for each of the user's stack IDs. // - // If the request contains a stack ID and an IAM ARN, the array contains - // a single Permission object with permissions for the specified stack and IAM - // ARN. + // * If the request contains a stack ID and an IAM ARN, the array contains + // a single Permission object with permissions for the specified stack and + // IAM ARN. Permissions []*Permission `type:"list"` } @@ -8056,6 +9385,12 @@ func (s DescribePermissionsOutput) GoString() string { return s.String() } +// SetPermissions sets the Permissions field's value. +func (s *DescribePermissionsOutput) SetPermissions(v []*Permission) *DescribePermissionsOutput { + s.Permissions = v + return s +} + type DescribeRaidArraysInput struct { _ struct{} `type:"structure"` @@ -8082,6 +9417,24 @@ func (s DescribeRaidArraysInput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeRaidArraysInput) SetInstanceId(v string) *DescribeRaidArraysInput { + s.InstanceId = &v + return s +} + +// SetRaidArrayIds sets the RaidArrayIds field's value. +func (s *DescribeRaidArraysInput) SetRaidArrayIds(v []*string) *DescribeRaidArraysInput { + s.RaidArrayIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeRaidArraysInput) SetStackId(v string) *DescribeRaidArraysInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeRaidArrays request. type DescribeRaidArraysOutput struct { _ struct{} `type:"structure"` @@ -8100,6 +9453,12 @@ func (s DescribeRaidArraysOutput) GoString() string { return s.String() } +// SetRaidArrays sets the RaidArrays field's value. +func (s *DescribeRaidArraysOutput) SetRaidArrays(v []*RaidArray) *DescribeRaidArraysOutput { + s.RaidArrays = v + return s +} + type DescribeRdsDbInstancesInput struct { _ struct{} `type:"structure"` @@ -8136,6 +9495,18 @@ func (s *DescribeRdsDbInstancesInput) Validate() error { return nil } +// SetRdsDbInstanceArns sets the RdsDbInstanceArns field's value. +func (s *DescribeRdsDbInstancesInput) SetRdsDbInstanceArns(v []*string) *DescribeRdsDbInstancesInput { + s.RdsDbInstanceArns = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeRdsDbInstancesInput) SetStackId(v string) *DescribeRdsDbInstancesInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeRdsDbInstances request. type DescribeRdsDbInstancesOutput struct { _ struct{} `type:"structure"` @@ -8154,6 +9525,12 @@ func (s DescribeRdsDbInstancesOutput) GoString() string { return s.String() } +// SetRdsDbInstances sets the RdsDbInstances field's value. +func (s *DescribeRdsDbInstancesOutput) SetRdsDbInstances(v []*RdsDbInstance) *DescribeRdsDbInstancesOutput { + s.RdsDbInstances = v + return s +} + type DescribeServiceErrorsInput struct { _ struct{} `type:"structure"` @@ -8181,6 +9558,24 @@ func (s DescribeServiceErrorsInput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeServiceErrorsInput) SetInstanceId(v string) *DescribeServiceErrorsInput { + s.InstanceId = &v + return s +} + +// SetServiceErrorIds sets the ServiceErrorIds field's value. +func (s *DescribeServiceErrorsInput) SetServiceErrorIds(v []*string) *DescribeServiceErrorsInput { + s.ServiceErrorIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeServiceErrorsInput) SetStackId(v string) *DescribeServiceErrorsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeServiceErrors request. type DescribeServiceErrorsOutput struct { _ struct{} `type:"structure"` @@ -8199,6 +9594,12 @@ func (s DescribeServiceErrorsOutput) GoString() string { return s.String() } +// SetServiceErrors sets the ServiceErrors field's value. +func (s *DescribeServiceErrorsOutput) SetServiceErrors(v []*ServiceError) *DescribeServiceErrorsOutput { + s.ServiceErrors = v + return s +} + type DescribeStackProvisioningParametersInput struct { _ struct{} `type:"structure"` @@ -8231,6 +9632,12 @@ func (s *DescribeStackProvisioningParametersInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *DescribeStackProvisioningParametersInput) SetStackId(v string) *DescribeStackProvisioningParametersInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeStackProvisioningParameters request. type DescribeStackProvisioningParametersOutput struct { _ struct{} `type:"structure"` @@ -8252,6 +9659,18 @@ func (s DescribeStackProvisioningParametersOutput) GoString() string { return s.String() } +// SetAgentInstallerUrl sets the AgentInstallerUrl field's value. +func (s *DescribeStackProvisioningParametersOutput) SetAgentInstallerUrl(v string) *DescribeStackProvisioningParametersOutput { + s.AgentInstallerUrl = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeStackProvisioningParametersOutput) SetParameters(v map[string]*string) *DescribeStackProvisioningParametersOutput { + s.Parameters = v + return s +} + type DescribeStackSummaryInput struct { _ struct{} `type:"structure"` @@ -8284,6 +9703,12 @@ func (s *DescribeStackSummaryInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *DescribeStackSummaryInput) SetStackId(v string) *DescribeStackSummaryInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeStackSummary request. type DescribeStackSummaryOutput struct { _ struct{} `type:"structure"` @@ -8302,6 +9727,12 @@ func (s DescribeStackSummaryOutput) GoString() string { return s.String() } +// SetStackSummary sets the StackSummary field's value. +func (s *DescribeStackSummaryOutput) SetStackSummary(v *StackSummary) *DescribeStackSummaryOutput { + s.StackSummary = v + return s +} + type DescribeStacksInput struct { _ struct{} `type:"structure"` @@ -8320,6 +9751,12 @@ func (s DescribeStacksInput) GoString() string { return s.String() } +// SetStackIds sets the StackIds field's value. +func (s *DescribeStacksInput) SetStackIds(v []*string) *DescribeStacksInput { + s.StackIds = v + return s +} + // Contains the response to a DescribeStacks request. type DescribeStacksOutput struct { _ struct{} `type:"structure"` @@ -8338,6 +9775,12 @@ func (s DescribeStacksOutput) GoString() string { return s.String() } +// SetStacks sets the Stacks field's value. +func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput { + s.Stacks = v + return s +} + type DescribeTimeBasedAutoScalingInput struct { _ struct{} `type:"structure"` @@ -8370,6 +9813,12 @@ func (s *DescribeTimeBasedAutoScalingInput) Validate() error { return nil } +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeTimeBasedAutoScalingInput) SetInstanceIds(v []*string) *DescribeTimeBasedAutoScalingInput { + s.InstanceIds = v + return s +} + // Contains the response to a DescribeTimeBasedAutoScaling request. type DescribeTimeBasedAutoScalingOutput struct { _ struct{} `type:"structure"` @@ -8389,6 +9838,12 @@ func (s DescribeTimeBasedAutoScalingOutput) GoString() string { return s.String() } +// SetTimeBasedAutoScalingConfigurations sets the TimeBasedAutoScalingConfigurations field's value. +func (s *DescribeTimeBasedAutoScalingOutput) SetTimeBasedAutoScalingConfigurations(v []*TimeBasedAutoScalingConfiguration) *DescribeTimeBasedAutoScalingOutput { + s.TimeBasedAutoScalingConfigurations = v + return s +} + type DescribeUserProfilesInput struct { _ struct{} `type:"structure"` @@ -8406,6 +9861,12 @@ func (s DescribeUserProfilesInput) GoString() string { return s.String() } +// SetIamUserArns sets the IamUserArns field's value. +func (s *DescribeUserProfilesInput) SetIamUserArns(v []*string) *DescribeUserProfilesInput { + s.IamUserArns = v + return s +} + // Contains the response to a DescribeUserProfiles request. type DescribeUserProfilesOutput struct { _ struct{} `type:"structure"` @@ -8424,6 +9885,12 @@ func (s DescribeUserProfilesOutput) GoString() string { return s.String() } +// SetUserProfiles sets the UserProfiles field's value. +func (s *DescribeUserProfilesOutput) SetUserProfiles(v []*UserProfile) *DescribeUserProfilesOutput { + s.UserProfiles = v + return s +} + type DescribeVolumesInput struct { _ struct{} `type:"structure"` @@ -8454,6 +9921,30 @@ func (s DescribeVolumesInput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeVolumesInput) SetInstanceId(v string) *DescribeVolumesInput { + s.InstanceId = &v + return s +} + +// SetRaidArrayId sets the RaidArrayId field's value. +func (s *DescribeVolumesInput) SetRaidArrayId(v string) *DescribeVolumesInput { + s.RaidArrayId = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeVolumesInput) SetStackId(v string) *DescribeVolumesInput { + s.StackId = &v + return s +} + +// SetVolumeIds sets the VolumeIds field's value. +func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput { + s.VolumeIds = v + return s +} + // Contains the response to a DescribeVolumes request. type DescribeVolumesOutput struct { _ struct{} `type:"structure"` @@ -8472,6 +9963,12 @@ func (s DescribeVolumesOutput) GoString() string { return s.String() } +// SetVolumes sets the Volumes field's value. +func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput { + s.Volumes = v + return s +} + type DetachElasticLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -8513,6 +10010,18 @@ func (s *DetachElasticLoadBalancerInput) Validate() error { return nil } +// SetElasticLoadBalancerName sets the ElasticLoadBalancerName field's value. +func (s *DetachElasticLoadBalancerInput) SetElasticLoadBalancerName(v string) *DetachElasticLoadBalancerInput { + s.ElasticLoadBalancerName = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *DetachElasticLoadBalancerInput) SetLayerId(v string) *DetachElasticLoadBalancerInput { + s.LayerId = &v + return s +} + type DetachElasticLoadBalancerOutput struct { _ struct{} `type:"structure"` } @@ -8559,6 +10068,12 @@ func (s *DisassociateElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *DisassociateElasticIpInput) SetElasticIp(v string) *DisassociateElasticIpInput { + s.ElasticIp = &v + return s +} + type DisassociateElasticIpOutput struct { _ struct{} `type:"structure"` } @@ -8607,6 +10122,36 @@ func (s EbsBlockDevice) GoString() string { return s.String() } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice { + s.DeleteOnTermination = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice { + s.Iops = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice { + s.VolumeType = &v + return s +} + // Describes a registered Amazon ECS cluster. type EcsCluster struct { _ struct{} `type:"structure"` @@ -8634,6 +10179,30 @@ func (s EcsCluster) GoString() string { return s.String() } +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *EcsCluster) SetEcsClusterArn(v string) *EcsCluster { + s.EcsClusterArn = &v + return s +} + +// SetEcsClusterName sets the EcsClusterName field's value. +func (s *EcsCluster) SetEcsClusterName(v string) *EcsCluster { + s.EcsClusterName = &v + return s +} + +// SetRegisteredAt sets the RegisteredAt field's value. +func (s *EcsCluster) SetRegisteredAt(v string) *EcsCluster { + s.RegisteredAt = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *EcsCluster) SetStackId(v string) *EcsCluster { + s.StackId = &v + return s +} + // Describes an Elastic IP address. type ElasticIp struct { _ struct{} `type:"structure"` @@ -8664,6 +10233,36 @@ func (s ElasticIp) GoString() string { return s.String() } +// SetDomain sets the Domain field's value. +func (s *ElasticIp) SetDomain(v string) *ElasticIp { + s.Domain = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ElasticIp) SetInstanceId(v string) *ElasticIp { + s.InstanceId = &v + return s +} + +// SetIp sets the Ip field's value. +func (s *ElasticIp) SetIp(v string) *ElasticIp { + s.Ip = &v + return s +} + +// SetName sets the Name field's value. +func (s *ElasticIp) SetName(v string) *ElasticIp { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *ElasticIp) SetRegion(v string) *ElasticIp { + s.Region = &v + return s +} + // Describes an Elastic Load Balancing instance. type ElasticLoadBalancer struct { _ struct{} `type:"structure"` @@ -8707,6 +10306,60 @@ func (s ElasticLoadBalancer) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *ElasticLoadBalancer) SetAvailabilityZones(v []*string) *ElasticLoadBalancer { + s.AvailabilityZones = v + return s +} + +// SetDnsName sets the DnsName field's value. +func (s *ElasticLoadBalancer) SetDnsName(v string) *ElasticLoadBalancer { + s.DnsName = &v + return s +} + +// SetEc2InstanceIds sets the Ec2InstanceIds field's value. +func (s *ElasticLoadBalancer) SetEc2InstanceIds(v []*string) *ElasticLoadBalancer { + s.Ec2InstanceIds = v + return s +} + +// SetElasticLoadBalancerName sets the ElasticLoadBalancerName field's value. +func (s *ElasticLoadBalancer) SetElasticLoadBalancerName(v string) *ElasticLoadBalancer { + s.ElasticLoadBalancerName = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *ElasticLoadBalancer) SetLayerId(v string) *ElasticLoadBalancer { + s.LayerId = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *ElasticLoadBalancer) SetRegion(v string) *ElasticLoadBalancer { + s.Region = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *ElasticLoadBalancer) SetStackId(v string) *ElasticLoadBalancer { + s.StackId = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ElasticLoadBalancer) SetSubnetIds(v []*string) *ElasticLoadBalancer { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ElasticLoadBalancer) SetVpcId(v string) *ElasticLoadBalancer { + s.VpcId = &v + return s +} + // Represents an app's environment variable. type EnvironmentVariable struct { _ struct{} `type:"structure"` @@ -8759,6 +10412,24 @@ func (s *EnvironmentVariable) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *EnvironmentVariable) SetKey(v string) *EnvironmentVariable { + s.Key = &v + return s +} + +// SetSecure sets the Secure field's value. +func (s *EnvironmentVariable) SetSecure(v bool) *EnvironmentVariable { + s.Secure = &v + return s +} + +// SetValue sets the Value field's value. +func (s *EnvironmentVariable) SetValue(v string) *EnvironmentVariable { + s.Value = &v + return s +} + type GetHostnameSuggestionInput struct { _ struct{} `type:"structure"` @@ -8791,6 +10462,12 @@ func (s *GetHostnameSuggestionInput) Validate() error { return nil } +// SetLayerId sets the LayerId field's value. +func (s *GetHostnameSuggestionInput) SetLayerId(v string) *GetHostnameSuggestionInput { + s.LayerId = &v + return s +} + // Contains the response to a GetHostnameSuggestion request. type GetHostnameSuggestionOutput struct { _ struct{} `type:"structure"` @@ -8812,6 +10489,18 @@ func (s GetHostnameSuggestionOutput) GoString() string { return s.String() } +// SetHostname sets the Hostname field's value. +func (s *GetHostnameSuggestionOutput) SetHostname(v string) *GetHostnameSuggestionOutput { + s.Hostname = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *GetHostnameSuggestionOutput) SetLayerId(v string) *GetHostnameSuggestionOutput { + s.LayerId = &v + return s +} + type GrantAccessInput struct { _ struct{} `type:"structure"` @@ -8853,6 +10542,18 @@ func (s *GrantAccessInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *GrantAccessInput) SetInstanceId(v string) *GrantAccessInput { + s.InstanceId = &v + return s +} + +// SetValidForInMinutes sets the ValidForInMinutes field's value. +func (s *GrantAccessInput) SetValidForInMinutes(v int64) *GrantAccessInput { + s.ValidForInMinutes = &v + return s +} + // Contains the response to a GrantAccess request. type GrantAccessOutput struct { _ struct{} `type:"structure"` @@ -8872,6 +10573,12 @@ func (s GrantAccessOutput) GoString() string { return s.String() } +// SetTemporaryCredential sets the TemporaryCredential field's value. +func (s *GrantAccessOutput) SetTemporaryCredential(v *TemporaryCredential) *GrantAccessOutput { + s.TemporaryCredential = v + return s +} + // Describes an instance. type Instance struct { _ struct{} `type:"structure"` @@ -8928,7 +10635,7 @@ type Instance struct { // update_dependencies stack command or by manually running yum (Amazon Linux) // or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true, to ensure that your + // We strongly recommend using the default value of true, to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -8999,35 +10706,35 @@ type Instance struct { // The instance status: // - // booting + // * booting // - // connection_lost + // * connection_lost // - // online + // * online // - // pending + // * pending // - // rebooting + // * rebooting // - // requested + // * requested // - // running_setup + // * running_setup // - // setup_failed + // * setup_failed // - // shutting_down + // * shutting_down // - // start_failed + // * start_failed // - // stop_failed + // * stop_failed // - // stopped + // * stopped // - // stopping + // * stopping // - // terminated + // * terminated // - // terminating + // * terminating Status *string `type:"string"` // The instance's subnet ID; applicable only if the stack is running in a VPC. @@ -9050,6 +10757,246 @@ func (s Instance) GoString() string { return s.String() } +// SetAgentVersion sets the AgentVersion field's value. +func (s *Instance) SetAgentVersion(v string) *Instance { + s.AgentVersion = &v + return s +} + +// SetAmiId sets the AmiId field's value. +func (s *Instance) SetAmiId(v string) *Instance { + s.AmiId = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *Instance) SetArchitecture(v string) *Instance { + s.Architecture = &v + return s +} + +// SetAutoScalingType sets the AutoScalingType field's value. +func (s *Instance) SetAutoScalingType(v string) *Instance { + s.AutoScalingType = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Instance) SetAvailabilityZone(v string) *Instance { + s.AvailabilityZone = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *Instance) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Instance { + s.BlockDeviceMappings = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Instance) SetCreatedAt(v string) *Instance { + s.CreatedAt = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *Instance) SetEbsOptimized(v bool) *Instance { + s.EbsOptimized = &v + return s +} + +// SetEc2InstanceId sets the Ec2InstanceId field's value. +func (s *Instance) SetEc2InstanceId(v string) *Instance { + s.Ec2InstanceId = &v + return s +} + +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *Instance) SetEcsClusterArn(v string) *Instance { + s.EcsClusterArn = &v + return s +} + +// SetEcsContainerInstanceArn sets the EcsContainerInstanceArn field's value. +func (s *Instance) SetEcsContainerInstanceArn(v string) *Instance { + s.EcsContainerInstanceArn = &v + return s +} + +// SetElasticIp sets the ElasticIp field's value. +func (s *Instance) SetElasticIp(v string) *Instance { + s.ElasticIp = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *Instance) SetHostname(v string) *Instance { + s.Hostname = &v + return s +} + +// SetInfrastructureClass sets the InfrastructureClass field's value. +func (s *Instance) SetInfrastructureClass(v string) *Instance { + s.InfrastructureClass = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *Instance) SetInstallUpdatesOnBoot(v bool) *Instance { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + +// SetInstanceProfileArn sets the InstanceProfileArn field's value. +func (s *Instance) SetInstanceProfileArn(v string) *Instance { + s.InstanceProfileArn = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *Instance) SetInstanceType(v string) *Instance { + s.InstanceType = &v + return s +} + +// SetLastServiceErrorId sets the LastServiceErrorId field's value. +func (s *Instance) SetLastServiceErrorId(v string) *Instance { + s.LastServiceErrorId = &v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *Instance) SetLayerIds(v []*string) *Instance { + s.LayerIds = v + return s +} + +// SetOs sets the Os field's value. +func (s *Instance) SetOs(v string) *Instance { + s.Os = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Instance) SetPlatform(v string) *Instance { + s.Platform = &v + return s +} + +// SetPrivateDns sets the PrivateDns field's value. +func (s *Instance) SetPrivateDns(v string) *Instance { + s.PrivateDns = &v + return s +} + +// SetPrivateIp sets the PrivateIp field's value. +func (s *Instance) SetPrivateIp(v string) *Instance { + s.PrivateIp = &v + return s +} + +// SetPublicDns sets the PublicDns field's value. +func (s *Instance) SetPublicDns(v string) *Instance { + s.PublicDns = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *Instance) SetPublicIp(v string) *Instance { + s.PublicIp = &v + return s +} + +// SetRegisteredBy sets the RegisteredBy field's value. +func (s *Instance) SetRegisteredBy(v string) *Instance { + s.RegisteredBy = &v + return s +} + +// SetReportedAgentVersion sets the ReportedAgentVersion field's value. +func (s *Instance) SetReportedAgentVersion(v string) *Instance { + s.ReportedAgentVersion = &v + return s +} + +// SetReportedOs sets the ReportedOs field's value. +func (s *Instance) SetReportedOs(v *ReportedOs) *Instance { + s.ReportedOs = v + return s +} + +// SetRootDeviceType sets the RootDeviceType field's value. +func (s *Instance) SetRootDeviceType(v string) *Instance { + s.RootDeviceType = &v + return s +} + +// SetRootDeviceVolumeId sets the RootDeviceVolumeId field's value. +func (s *Instance) SetRootDeviceVolumeId(v string) *Instance { + s.RootDeviceVolumeId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *Instance) SetSecurityGroupIds(v []*string) *Instance { + s.SecurityGroupIds = v + return s +} + +// SetSshHostDsaKeyFingerprint sets the SshHostDsaKeyFingerprint field's value. +func (s *Instance) SetSshHostDsaKeyFingerprint(v string) *Instance { + s.SshHostDsaKeyFingerprint = &v + return s +} + +// SetSshHostRsaKeyFingerprint sets the SshHostRsaKeyFingerprint field's value. +func (s *Instance) SetSshHostRsaKeyFingerprint(v string) *Instance { + s.SshHostRsaKeyFingerprint = &v + return s +} + +// SetSshKeyName sets the SshKeyName field's value. +func (s *Instance) SetSshKeyName(v string) *Instance { + s.SshKeyName = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Instance) SetStackId(v string) *Instance { + s.StackId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Instance) SetStatus(v string) *Instance { + s.Status = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *Instance) SetSubnetId(v string) *Instance { + s.SubnetId = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *Instance) SetTenancy(v string) *Instance { + s.Tenancy = &v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *Instance) SetVirtualizationType(v string) *Instance { + s.VirtualizationType = &v + return s +} + // Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata // service. For more information, see Instance Metadata and User Data (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/Index.html). type InstanceIdentity struct { @@ -9072,6 +11019,18 @@ func (s InstanceIdentity) GoString() string { return s.String() } +// SetDocument sets the Document field's value. +func (s *InstanceIdentity) SetDocument(v string) *InstanceIdentity { + s.Document = &v + return s +} + +// SetSignature sets the Signature field's value. +func (s *InstanceIdentity) SetSignature(v string) *InstanceIdentity { + s.Signature = &v + return s +} + // Describes how many instances a stack has for each status. type InstancesCount struct { _ struct{} `type:"structure"` @@ -9144,6 +11103,120 @@ func (s InstancesCount) GoString() string { return s.String() } +// SetAssigning sets the Assigning field's value. +func (s *InstancesCount) SetAssigning(v int64) *InstancesCount { + s.Assigning = &v + return s +} + +// SetBooting sets the Booting field's value. +func (s *InstancesCount) SetBooting(v int64) *InstancesCount { + s.Booting = &v + return s +} + +// SetConnectionLost sets the ConnectionLost field's value. +func (s *InstancesCount) SetConnectionLost(v int64) *InstancesCount { + s.ConnectionLost = &v + return s +} + +// SetDeregistering sets the Deregistering field's value. +func (s *InstancesCount) SetDeregistering(v int64) *InstancesCount { + s.Deregistering = &v + return s +} + +// SetOnline sets the Online field's value. +func (s *InstancesCount) SetOnline(v int64) *InstancesCount { + s.Online = &v + return s +} + +// SetPending sets the Pending field's value. +func (s *InstancesCount) SetPending(v int64) *InstancesCount { + s.Pending = &v + return s +} + +// SetRebooting sets the Rebooting field's value. +func (s *InstancesCount) SetRebooting(v int64) *InstancesCount { + s.Rebooting = &v + return s +} + +// SetRegistered sets the Registered field's value. +func (s *InstancesCount) SetRegistered(v int64) *InstancesCount { + s.Registered = &v + return s +} + +// SetRegistering sets the Registering field's value. +func (s *InstancesCount) SetRegistering(v int64) *InstancesCount { + s.Registering = &v + return s +} + +// SetRequested sets the Requested field's value. +func (s *InstancesCount) SetRequested(v int64) *InstancesCount { + s.Requested = &v + return s +} + +// SetRunningSetup sets the RunningSetup field's value. +func (s *InstancesCount) SetRunningSetup(v int64) *InstancesCount { + s.RunningSetup = &v + return s +} + +// SetSetupFailed sets the SetupFailed field's value. +func (s *InstancesCount) SetSetupFailed(v int64) *InstancesCount { + s.SetupFailed = &v + return s +} + +// SetShuttingDown sets the ShuttingDown field's value. +func (s *InstancesCount) SetShuttingDown(v int64) *InstancesCount { + s.ShuttingDown = &v + return s +} + +// SetStartFailed sets the StartFailed field's value. +func (s *InstancesCount) SetStartFailed(v int64) *InstancesCount { + s.StartFailed = &v + return s +} + +// SetStopped sets the Stopped field's value. +func (s *InstancesCount) SetStopped(v int64) *InstancesCount { + s.Stopped = &v + return s +} + +// SetStopping sets the Stopping field's value. +func (s *InstancesCount) SetStopping(v int64) *InstancesCount { + s.Stopping = &v + return s +} + +// SetTerminated sets the Terminated field's value. +func (s *InstancesCount) SetTerminated(v int64) *InstancesCount { + s.Terminated = &v + return s +} + +// SetTerminating sets the Terminating field's value. +func (s *InstancesCount) SetTerminating(v int64) *InstancesCount { + s.Terminating = &v + return s +} + +// SetUnassigning sets the Unassigning field's value. +func (s *InstancesCount) SetUnassigning(v int64) *InstancesCount { + s.Unassigning = &v + return s +} + // Describes a layer. type Layer struct { _ struct{} `type:"structure"` @@ -9208,7 +11281,7 @@ type Layer struct { // update_dependencies stack command or manually running yum (Amazon Linux) // or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true, to ensure that your + // We strongly recommend using the default value of true, to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -9250,6 +11323,132 @@ func (s Layer) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *Layer) SetAttributes(v map[string]*string) *Layer { + s.Attributes = v + return s +} + +// SetAutoAssignElasticIps sets the AutoAssignElasticIps field's value. +func (s *Layer) SetAutoAssignElasticIps(v bool) *Layer { + s.AutoAssignElasticIps = &v + return s +} + +// SetAutoAssignPublicIps sets the AutoAssignPublicIps field's value. +func (s *Layer) SetAutoAssignPublicIps(v bool) *Layer { + s.AutoAssignPublicIps = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Layer) SetCreatedAt(v string) *Layer { + s.CreatedAt = &v + return s +} + +// SetCustomInstanceProfileArn sets the CustomInstanceProfileArn field's value. +func (s *Layer) SetCustomInstanceProfileArn(v string) *Layer { + s.CustomInstanceProfileArn = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *Layer) SetCustomJson(v string) *Layer { + s.CustomJson = &v + return s +} + +// SetCustomRecipes sets the CustomRecipes field's value. +func (s *Layer) SetCustomRecipes(v *Recipes) *Layer { + s.CustomRecipes = v + return s +} + +// SetCustomSecurityGroupIds sets the CustomSecurityGroupIds field's value. +func (s *Layer) SetCustomSecurityGroupIds(v []*string) *Layer { + s.CustomSecurityGroupIds = v + return s +} + +// SetDefaultRecipes sets the DefaultRecipes field's value. +func (s *Layer) SetDefaultRecipes(v *Recipes) *Layer { + s.DefaultRecipes = v + return s +} + +// SetDefaultSecurityGroupNames sets the DefaultSecurityGroupNames field's value. +func (s *Layer) SetDefaultSecurityGroupNames(v []*string) *Layer { + s.DefaultSecurityGroupNames = v + return s +} + +// SetEnableAutoHealing sets the EnableAutoHealing field's value. +func (s *Layer) SetEnableAutoHealing(v bool) *Layer { + s.EnableAutoHealing = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *Layer) SetInstallUpdatesOnBoot(v bool) *Layer { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *Layer) SetLayerId(v string) *Layer { + s.LayerId = &v + return s +} + +// SetLifecycleEventConfiguration sets the LifecycleEventConfiguration field's value. +func (s *Layer) SetLifecycleEventConfiguration(v *LifecycleEventConfiguration) *Layer { + s.LifecycleEventConfiguration = v + return s +} + +// SetName sets the Name field's value. +func (s *Layer) SetName(v string) *Layer { + s.Name = &v + return s +} + +// SetPackages sets the Packages field's value. +func (s *Layer) SetPackages(v []*string) *Layer { + s.Packages = v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *Layer) SetShortname(v string) *Layer { + s.Shortname = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Layer) SetStackId(v string) *Layer { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *Layer) SetType(v string) *Layer { + s.Type = &v + return s +} + +// SetUseEbsOptimizedInstances sets the UseEbsOptimizedInstances field's value. +func (s *Layer) SetUseEbsOptimizedInstances(v bool) *Layer { + s.UseEbsOptimizedInstances = &v + return s +} + +// SetVolumeConfigurations sets the VolumeConfigurations field's value. +func (s *Layer) SetVolumeConfigurations(v []*VolumeConfiguration) *Layer { + s.VolumeConfigurations = v + return s +} + // Specifies the lifecycle event configuration type LifecycleEventConfiguration struct { _ struct{} `type:"structure"` @@ -9268,6 +11467,12 @@ func (s LifecycleEventConfiguration) GoString() string { return s.String() } +// SetShutdown sets the Shutdown field's value. +func (s *LifecycleEventConfiguration) SetShutdown(v *ShutdownEventConfiguration) *LifecycleEventConfiguration { + s.Shutdown = v + return s +} + // Describes a layer's load-based auto scaling configuration. type LoadBasedAutoScalingConfiguration struct { _ struct{} `type:"structure"` @@ -9297,6 +11502,30 @@ func (s LoadBasedAutoScalingConfiguration) GoString() string { return s.String() } +// SetDownScaling sets the DownScaling field's value. +func (s *LoadBasedAutoScalingConfiguration) SetDownScaling(v *AutoScalingThresholds) *LoadBasedAutoScalingConfiguration { + s.DownScaling = v + return s +} + +// SetEnable sets the Enable field's value. +func (s *LoadBasedAutoScalingConfiguration) SetEnable(v bool) *LoadBasedAutoScalingConfiguration { + s.Enable = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *LoadBasedAutoScalingConfiguration) SetLayerId(v string) *LoadBasedAutoScalingConfiguration { + s.LayerId = &v + return s +} + +// SetUpScaling sets the UpScaling field's value. +func (s *LoadBasedAutoScalingConfiguration) SetUpScaling(v *AutoScalingThresholds) *LoadBasedAutoScalingConfiguration { + s.UpScaling = v + return s +} + // Describes stack or user permissions. type Permission struct { _ struct{} `type:"structure"` @@ -9313,18 +11542,18 @@ type Permission struct { // The user's permission level, which must be the following: // - // deny + // * deny // - // show + // * show // - // deploy + // * deploy // - // manage + // * manage // - // iam_only + // * iam_only // - // For more information on the permissions associated with these levels, - // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html) + // For more information on the permissions associated with these levels, see + // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html) Level *string `type:"string"` // A stack ID. @@ -9341,6 +11570,36 @@ func (s Permission) GoString() string { return s.String() } +// SetAllowSsh sets the AllowSsh field's value. +func (s *Permission) SetAllowSsh(v bool) *Permission { + s.AllowSsh = &v + return s +} + +// SetAllowSudo sets the AllowSudo field's value. +func (s *Permission) SetAllowSudo(v bool) *Permission { + s.AllowSudo = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *Permission) SetIamUserArn(v string) *Permission { + s.IamUserArn = &v + return s +} + +// SetLevel sets the Level field's value. +func (s *Permission) SetLevel(v string) *Permission { + s.Level = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Permission) SetStackId(v string) *Permission { + s.StackId = &v + return s +} + // Describes an instance's RAID array. type RaidArray struct { _ struct{} `type:"structure"` @@ -9396,6 +11655,84 @@ func (s RaidArray) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *RaidArray) SetAvailabilityZone(v string) *RaidArray { + s.AvailabilityZone = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *RaidArray) SetCreatedAt(v string) *RaidArray { + s.CreatedAt = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *RaidArray) SetDevice(v string) *RaidArray { + s.Device = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *RaidArray) SetInstanceId(v string) *RaidArray { + s.InstanceId = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *RaidArray) SetIops(v int64) *RaidArray { + s.Iops = &v + return s +} + +// SetMountPoint sets the MountPoint field's value. +func (s *RaidArray) SetMountPoint(v string) *RaidArray { + s.MountPoint = &v + return s +} + +// SetName sets the Name field's value. +func (s *RaidArray) SetName(v string) *RaidArray { + s.Name = &v + return s +} + +// SetNumberOfDisks sets the NumberOfDisks field's value. +func (s *RaidArray) SetNumberOfDisks(v int64) *RaidArray { + s.NumberOfDisks = &v + return s +} + +// SetRaidArrayId sets the RaidArrayId field's value. +func (s *RaidArray) SetRaidArrayId(v string) *RaidArray { + s.RaidArrayId = &v + return s +} + +// SetRaidLevel sets the RaidLevel field's value. +func (s *RaidArray) SetRaidLevel(v int64) *RaidArray { + s.RaidLevel = &v + return s +} + +// SetSize sets the Size field's value. +func (s *RaidArray) SetSize(v int64) *RaidArray { + s.Size = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RaidArray) SetStackId(v string) *RaidArray { + s.StackId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *RaidArray) SetVolumeType(v string) *RaidArray { + s.VolumeType = &v + return s +} + // Describes an Amazon RDS instance. type RdsDbInstance struct { _ struct{} `type:"structure"` @@ -9440,6 +11777,60 @@ func (s RdsDbInstance) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *RdsDbInstance) SetAddress(v string) *RdsDbInstance { + s.Address = &v + return s +} + +// SetDbInstanceIdentifier sets the DbInstanceIdentifier field's value. +func (s *RdsDbInstance) SetDbInstanceIdentifier(v string) *RdsDbInstance { + s.DbInstanceIdentifier = &v + return s +} + +// SetDbPassword sets the DbPassword field's value. +func (s *RdsDbInstance) SetDbPassword(v string) *RdsDbInstance { + s.DbPassword = &v + return s +} + +// SetDbUser sets the DbUser field's value. +func (s *RdsDbInstance) SetDbUser(v string) *RdsDbInstance { + s.DbUser = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RdsDbInstance) SetEngine(v string) *RdsDbInstance { + s.Engine = &v + return s +} + +// SetMissingOnRds sets the MissingOnRds field's value. +func (s *RdsDbInstance) SetMissingOnRds(v bool) *RdsDbInstance { + s.MissingOnRds = &v + return s +} + +// SetRdsDbInstanceArn sets the RdsDbInstanceArn field's value. +func (s *RdsDbInstance) SetRdsDbInstanceArn(v string) *RdsDbInstance { + s.RdsDbInstanceArn = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *RdsDbInstance) SetRegion(v string) *RdsDbInstance { + s.Region = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RdsDbInstance) SetStackId(v string) *RdsDbInstance { + s.StackId = &v + return s +} + type RebootInstanceInput struct { _ struct{} `type:"structure"` @@ -9472,6 +11863,12 @@ func (s *RebootInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *RebootInstanceInput) SetInstanceId(v string) *RebootInstanceInput { + s.InstanceId = &v + return s +} + type RebootInstanceOutput struct { _ struct{} `type:"structure"` } @@ -9526,6 +11923,36 @@ func (s Recipes) GoString() string { return s.String() } +// SetConfigure sets the Configure field's value. +func (s *Recipes) SetConfigure(v []*string) *Recipes { + s.Configure = v + return s +} + +// SetDeploy sets the Deploy field's value. +func (s *Recipes) SetDeploy(v []*string) *Recipes { + s.Deploy = v + return s +} + +// SetSetup sets the Setup field's value. +func (s *Recipes) SetSetup(v []*string) *Recipes { + s.Setup = v + return s +} + +// SetShutdown sets the Shutdown field's value. +func (s *Recipes) SetShutdown(v []*string) *Recipes { + s.Shutdown = v + return s +} + +// SetUndeploy sets the Undeploy field's value. +func (s *Recipes) SetUndeploy(v []*string) *Recipes { + s.Undeploy = v + return s +} + type RegisterEcsClusterInput struct { _ struct{} `type:"structure"` @@ -9566,6 +11993,18 @@ func (s *RegisterEcsClusterInput) Validate() error { return nil } +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *RegisterEcsClusterInput) SetEcsClusterArn(v string) *RegisterEcsClusterInput { + s.EcsClusterArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterEcsClusterInput) SetStackId(v string) *RegisterEcsClusterInput { + s.StackId = &v + return s +} + // Contains the response to a RegisterEcsCluster request. type RegisterEcsClusterOutput struct { _ struct{} `type:"structure"` @@ -9584,6 +12023,12 @@ func (s RegisterEcsClusterOutput) GoString() string { return s.String() } +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *RegisterEcsClusterOutput) SetEcsClusterArn(v string) *RegisterEcsClusterOutput { + s.EcsClusterArn = &v + return s +} + type RegisterElasticIpInput struct { _ struct{} `type:"structure"` @@ -9624,6 +12069,18 @@ func (s *RegisterElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *RegisterElasticIpInput) SetElasticIp(v string) *RegisterElasticIpInput { + s.ElasticIp = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterElasticIpInput) SetStackId(v string) *RegisterElasticIpInput { + s.StackId = &v + return s +} + // Contains the response to a RegisterElasticIp request. type RegisterElasticIpOutput struct { _ struct{} `type:"structure"` @@ -9642,6 +12099,12 @@ func (s RegisterElasticIpOutput) GoString() string { return s.String() } +// SetElasticIp sets the ElasticIp field's value. +func (s *RegisterElasticIpOutput) SetElasticIp(v string) *RegisterElasticIpOutput { + s.ElasticIp = &v + return s +} + type RegisterInstanceInput struct { _ struct{} `type:"structure"` @@ -9693,6 +12156,48 @@ func (s *RegisterInstanceInput) Validate() error { return nil } +// SetHostname sets the Hostname field's value. +func (s *RegisterInstanceInput) SetHostname(v string) *RegisterInstanceInput { + s.Hostname = &v + return s +} + +// SetInstanceIdentity sets the InstanceIdentity field's value. +func (s *RegisterInstanceInput) SetInstanceIdentity(v *InstanceIdentity) *RegisterInstanceInput { + s.InstanceIdentity = v + return s +} + +// SetPrivateIp sets the PrivateIp field's value. +func (s *RegisterInstanceInput) SetPrivateIp(v string) *RegisterInstanceInput { + s.PrivateIp = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *RegisterInstanceInput) SetPublicIp(v string) *RegisterInstanceInput { + s.PublicIp = &v + return s +} + +// SetRsaPublicKey sets the RsaPublicKey field's value. +func (s *RegisterInstanceInput) SetRsaPublicKey(v string) *RegisterInstanceInput { + s.RsaPublicKey = &v + return s +} + +// SetRsaPublicKeyFingerprint sets the RsaPublicKeyFingerprint field's value. +func (s *RegisterInstanceInput) SetRsaPublicKeyFingerprint(v string) *RegisterInstanceInput { + s.RsaPublicKeyFingerprint = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterInstanceInput) SetStackId(v string) *RegisterInstanceInput { + s.StackId = &v + return s +} + // Contains the response to a RegisterInstanceResult request. type RegisterInstanceOutput struct { _ struct{} `type:"structure"` @@ -9711,6 +12216,12 @@ func (s RegisterInstanceOutput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *RegisterInstanceOutput) SetInstanceId(v string) *RegisterInstanceOutput { + s.InstanceId = &v + return s +} + type RegisterRdsDbInstanceInput struct { _ struct{} `type:"structure"` @@ -9767,6 +12278,30 @@ func (s *RegisterRdsDbInstanceInput) Validate() error { return nil } +// SetDbPassword sets the DbPassword field's value. +func (s *RegisterRdsDbInstanceInput) SetDbPassword(v string) *RegisterRdsDbInstanceInput { + s.DbPassword = &v + return s +} + +// SetDbUser sets the DbUser field's value. +func (s *RegisterRdsDbInstanceInput) SetDbUser(v string) *RegisterRdsDbInstanceInput { + s.DbUser = &v + return s +} + +// SetRdsDbInstanceArn sets the RdsDbInstanceArn field's value. +func (s *RegisterRdsDbInstanceInput) SetRdsDbInstanceArn(v string) *RegisterRdsDbInstanceInput { + s.RdsDbInstanceArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterRdsDbInstanceInput) SetStackId(v string) *RegisterRdsDbInstanceInput { + s.StackId = &v + return s +} + type RegisterRdsDbInstanceOutput struct { _ struct{} `type:"structure"` } @@ -9816,6 +12351,18 @@ func (s *RegisterVolumeInput) Validate() error { return nil } +// SetEc2VolumeId sets the Ec2VolumeId field's value. +func (s *RegisterVolumeInput) SetEc2VolumeId(v string) *RegisterVolumeInput { + s.Ec2VolumeId = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterVolumeInput) SetStackId(v string) *RegisterVolumeInput { + s.StackId = &v + return s +} + // Contains the response to a RegisterVolume request. type RegisterVolumeOutput struct { _ struct{} `type:"structure"` @@ -9834,6 +12381,12 @@ func (s RegisterVolumeOutput) GoString() string { return s.String() } +// SetVolumeId sets the VolumeId field's value. +func (s *RegisterVolumeOutput) SetVolumeId(v string) *RegisterVolumeOutput { + s.VolumeId = &v + return s +} + // A registered instance's reported operating system. type ReportedOs struct { _ struct{} `type:"structure"` @@ -9858,6 +12411,24 @@ func (s ReportedOs) GoString() string { return s.String() } +// SetFamily sets the Family field's value. +func (s *ReportedOs) SetFamily(v string) *ReportedOs { + s.Family = &v + return s +} + +// SetName sets the Name field's value. +func (s *ReportedOs) SetName(v string) *ReportedOs { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *ReportedOs) SetVersion(v string) *ReportedOs { + s.Version = &v + return s +} + // Describes a user's SSH information. type SelfUserProfile struct { _ struct{} `type:"structure"` @@ -9885,6 +12456,30 @@ func (s SelfUserProfile) GoString() string { return s.String() } +// SetIamUserArn sets the IamUserArn field's value. +func (s *SelfUserProfile) SetIamUserArn(v string) *SelfUserProfile { + s.IamUserArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *SelfUserProfile) SetName(v string) *SelfUserProfile { + s.Name = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *SelfUserProfile) SetSshPublicKey(v string) *SelfUserProfile { + s.SshPublicKey = &v + return s +} + +// SetSshUsername sets the SshUsername field's value. +func (s *SelfUserProfile) SetSshUsername(v string) *SelfUserProfile { + s.SshUsername = &v + return s +} + // Describes an AWS OpsWorks service error. type ServiceError struct { _ struct{} `type:"structure"` @@ -9918,6 +12513,42 @@ func (s ServiceError) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *ServiceError) SetCreatedAt(v string) *ServiceError { + s.CreatedAt = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ServiceError) SetInstanceId(v string) *ServiceError { + s.InstanceId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ServiceError) SetMessage(v string) *ServiceError { + s.Message = &v + return s +} + +// SetServiceErrorId sets the ServiceErrorId field's value. +func (s *ServiceError) SetServiceErrorId(v string) *ServiceError { + s.ServiceErrorId = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *ServiceError) SetStackId(v string) *ServiceError { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *ServiceError) SetType(v string) *ServiceError { + s.Type = &v + return s +} + type SetLoadBasedAutoScalingInput struct { _ struct{} `type:"structure"` @@ -9973,6 +12604,30 @@ func (s *SetLoadBasedAutoScalingInput) Validate() error { return nil } +// SetDownScaling sets the DownScaling field's value. +func (s *SetLoadBasedAutoScalingInput) SetDownScaling(v *AutoScalingThresholds) *SetLoadBasedAutoScalingInput { + s.DownScaling = v + return s +} + +// SetEnable sets the Enable field's value. +func (s *SetLoadBasedAutoScalingInput) SetEnable(v bool) *SetLoadBasedAutoScalingInput { + s.Enable = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *SetLoadBasedAutoScalingInput) SetLayerId(v string) *SetLoadBasedAutoScalingInput { + s.LayerId = &v + return s +} + +// SetUpScaling sets the UpScaling field's value. +func (s *SetLoadBasedAutoScalingInput) SetUpScaling(v *AutoScalingThresholds) *SetLoadBasedAutoScalingInput { + s.UpScaling = v + return s +} + type SetLoadBasedAutoScalingOutput struct { _ struct{} `type:"structure"` } @@ -10004,18 +12659,18 @@ type SetPermissionInput struct { // The user's permission level, which must be set to one of the following strings. // You cannot set your own permissions level. // - // deny + // * deny // - // show + // * show // - // deploy + // * deploy // - // manage + // * manage // - // iam_only + // * iam_only // - // For more information on the permissions associated with these levels, - // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). + // For more information on the permissions associated with these levels, see + // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). Level *string `type:"string"` // The stack ID. @@ -10050,6 +12705,36 @@ func (s *SetPermissionInput) Validate() error { return nil } +// SetAllowSsh sets the AllowSsh field's value. +func (s *SetPermissionInput) SetAllowSsh(v bool) *SetPermissionInput { + s.AllowSsh = &v + return s +} + +// SetAllowSudo sets the AllowSudo field's value. +func (s *SetPermissionInput) SetAllowSudo(v bool) *SetPermissionInput { + s.AllowSudo = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *SetPermissionInput) SetIamUserArn(v string) *SetPermissionInput { + s.IamUserArn = &v + return s +} + +// SetLevel sets the Level field's value. +func (s *SetPermissionInput) SetLevel(v string) *SetPermissionInput { + s.Level = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *SetPermissionInput) SetStackId(v string) *SetPermissionInput { + s.StackId = &v + return s +} + type SetPermissionOutput struct { _ struct{} `type:"structure"` } @@ -10099,6 +12784,18 @@ func (s *SetTimeBasedAutoScalingInput) Validate() error { return nil } +// SetAutoScalingSchedule sets the AutoScalingSchedule field's value. +func (s *SetTimeBasedAutoScalingInput) SetAutoScalingSchedule(v *WeeklyAutoScalingSchedule) *SetTimeBasedAutoScalingInput { + s.AutoScalingSchedule = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SetTimeBasedAutoScalingInput) SetInstanceId(v string) *SetTimeBasedAutoScalingInput { + s.InstanceId = &v + return s +} + type SetTimeBasedAutoScalingOutput struct { _ struct{} `type:"structure"` } @@ -10136,6 +12833,18 @@ func (s ShutdownEventConfiguration) GoString() string { return s.String() } +// SetDelayUntilElbConnectionsDrained sets the DelayUntilElbConnectionsDrained field's value. +func (s *ShutdownEventConfiguration) SetDelayUntilElbConnectionsDrained(v bool) *ShutdownEventConfiguration { + s.DelayUntilElbConnectionsDrained = &v + return s +} + +// SetExecutionTimeout sets the ExecutionTimeout field's value. +func (s *ShutdownEventConfiguration) SetExecutionTimeout(v int64) *ShutdownEventConfiguration { + s.ExecutionTimeout = &v + return s +} + // Contains the information required to retrieve an app or cookbook from a repository. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html) // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html). @@ -10144,12 +12853,12 @@ type Source struct { // When included in a request, the parameter depends on the repository type. // - // For Amazon S3 bundles, set Password to the appropriate IAM secret access - // key. + // * For Amazon S3 bundles, set Password to the appropriate IAM secret access + // key. // - // For HTTP bundles and Subversion repositories, set Password to the password. + // * For HTTP bundles and Subversion repositories, set Password to the password. // - // For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html + // For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html // (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html). // // In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual @@ -10176,11 +12885,11 @@ type Source struct { // This parameter depends on the repository type. // - // For Amazon S3 bundles, set Username to the appropriate IAM access key - // ID. + // * For Amazon S3 bundles, set Username to the appropriate IAM access key + // ID. // - // For HTTP bundles, Git repositories, and Subversion repositories, set Username - // to the user name. + // * For HTTP bundles, Git repositories, and Subversion repositories, set + // Username to the user name. Username *string `type:"string"` } @@ -10194,6 +12903,42 @@ func (s Source) GoString() string { return s.String() } +// SetPassword sets the Password field's value. +func (s *Source) SetPassword(v string) *Source { + s.Password = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *Source) SetRevision(v string) *Source { + s.Revision = &v + return s +} + +// SetSshKey sets the SshKey field's value. +func (s *Source) SetSshKey(v string) *Source { + s.SshKey = &v + return s +} + +// SetType sets the Type field's value. +func (s *Source) SetType(v string) *Source { + s.Type = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *Source) SetUrl(v string) *Source { + s.Url = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *Source) SetUsername(v string) *Source { + s.Username = &v + return s +} + // Describes an app's SSL configuration. type SslConfiguration struct { _ struct{} `type:"structure"` @@ -10239,6 +12984,24 @@ func (s *SslConfiguration) Validate() error { return nil } +// SetCertificate sets the Certificate field's value. +func (s *SslConfiguration) SetCertificate(v string) *SslConfiguration { + s.Certificate = &v + return s +} + +// SetChain sets the Chain field's value. +func (s *SslConfiguration) SetChain(v string) *SslConfiguration { + s.Chain = &v + return s +} + +// SetPrivateKey sets the PrivateKey field's value. +func (s *SslConfiguration) SetPrivateKey(v string) *SslConfiguration { + s.PrivateKey = &v + return s +} + // Describes a stack. type Stack struct { _ struct{} `type:"structure"` @@ -10273,7 +13036,7 @@ type Stack struct { // the corresponding default stack configuration attribute values or to pass // data to recipes. The string should be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -10340,6 +13103,138 @@ func (s Stack) GoString() string { return s.String() } +// SetAgentVersion sets the AgentVersion field's value. +func (s *Stack) SetAgentVersion(v string) *Stack { + s.AgentVersion = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Stack) SetArn(v string) *Stack { + s.Arn = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *Stack) SetAttributes(v map[string]*string) *Stack { + s.Attributes = v + return s +} + +// SetChefConfiguration sets the ChefConfiguration field's value. +func (s *Stack) SetChefConfiguration(v *ChefConfiguration) *Stack { + s.ChefConfiguration = v + return s +} + +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *Stack) SetConfigurationManager(v *StackConfigurationManager) *Stack { + s.ConfigurationManager = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Stack) SetCreatedAt(v string) *Stack { + s.CreatedAt = &v + return s +} + +// SetCustomCookbooksSource sets the CustomCookbooksSource field's value. +func (s *Stack) SetCustomCookbooksSource(v *Source) *Stack { + s.CustomCookbooksSource = v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *Stack) SetCustomJson(v string) *Stack { + s.CustomJson = &v + return s +} + +// SetDefaultAvailabilityZone sets the DefaultAvailabilityZone field's value. +func (s *Stack) SetDefaultAvailabilityZone(v string) *Stack { + s.DefaultAvailabilityZone = &v + return s +} + +// SetDefaultInstanceProfileArn sets the DefaultInstanceProfileArn field's value. +func (s *Stack) SetDefaultInstanceProfileArn(v string) *Stack { + s.DefaultInstanceProfileArn = &v + return s +} + +// SetDefaultOs sets the DefaultOs field's value. +func (s *Stack) SetDefaultOs(v string) *Stack { + s.DefaultOs = &v + return s +} + +// SetDefaultRootDeviceType sets the DefaultRootDeviceType field's value. +func (s *Stack) SetDefaultRootDeviceType(v string) *Stack { + s.DefaultRootDeviceType = &v + return s +} + +// SetDefaultSshKeyName sets the DefaultSshKeyName field's value. +func (s *Stack) SetDefaultSshKeyName(v string) *Stack { + s.DefaultSshKeyName = &v + return s +} + +// SetDefaultSubnetId sets the DefaultSubnetId field's value. +func (s *Stack) SetDefaultSubnetId(v string) *Stack { + s.DefaultSubnetId = &v + return s +} + +// SetHostnameTheme sets the HostnameTheme field's value. +func (s *Stack) SetHostnameTheme(v string) *Stack { + s.HostnameTheme = &v + return s +} + +// SetName sets the Name field's value. +func (s *Stack) SetName(v string) *Stack { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Stack) SetRegion(v string) *Stack { + s.Region = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *Stack) SetServiceRoleArn(v string) *Stack { + s.ServiceRoleArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Stack) SetStackId(v string) *Stack { + s.StackId = &v + return s +} + +// SetUseCustomCookbooks sets the UseCustomCookbooks field's value. +func (s *Stack) SetUseCustomCookbooks(v bool) *Stack { + s.UseCustomCookbooks = &v + return s +} + +// SetUseOpsworksSecurityGroups sets the UseOpsworksSecurityGroups field's value. +func (s *Stack) SetUseOpsworksSecurityGroups(v bool) *Stack { + s.UseOpsworksSecurityGroups = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Stack) SetVpcId(v string) *Stack { + s.VpcId = &v + return s +} + // Describes the configuration manager. type StackConfigurationManager struct { _ struct{} `type:"structure"` @@ -10363,6 +13258,18 @@ func (s StackConfigurationManager) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *StackConfigurationManager) SetName(v string) *StackConfigurationManager { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *StackConfigurationManager) SetVersion(v string) *StackConfigurationManager { + s.Version = &v + return s +} + // Summarizes the number of layers, instances, and apps in a stack. type StackSummary struct { _ struct{} `type:"structure"` @@ -10396,6 +13303,42 @@ func (s StackSummary) GoString() string { return s.String() } +// SetAppsCount sets the AppsCount field's value. +func (s *StackSummary) SetAppsCount(v int64) *StackSummary { + s.AppsCount = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *StackSummary) SetArn(v string) *StackSummary { + s.Arn = &v + return s +} + +// SetInstancesCount sets the InstancesCount field's value. +func (s *StackSummary) SetInstancesCount(v *InstancesCount) *StackSummary { + s.InstancesCount = v + return s +} + +// SetLayersCount sets the LayersCount field's value. +func (s *StackSummary) SetLayersCount(v int64) *StackSummary { + s.LayersCount = &v + return s +} + +// SetName sets the Name field's value. +func (s *StackSummary) SetName(v string) *StackSummary { + s.Name = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackSummary) SetStackId(v string) *StackSummary { + s.StackId = &v + return s +} + type StartInstanceInput struct { _ struct{} `type:"structure"` @@ -10428,6 +13371,12 @@ func (s *StartInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *StartInstanceInput) SetInstanceId(v string) *StartInstanceInput { + s.InstanceId = &v + return s +} + type StartInstanceOutput struct { _ struct{} `type:"structure"` } @@ -10474,6 +13423,12 @@ func (s *StartStackInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *StartStackInput) SetStackId(v string) *StartStackInput { + s.StackId = &v + return s +} + type StartStackOutput struct { _ struct{} `type:"structure"` } @@ -10520,6 +13475,12 @@ func (s *StopInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *StopInstanceInput) SetInstanceId(v string) *StopInstanceInput { + s.InstanceId = &v + return s +} + type StopInstanceOutput struct { _ struct{} `type:"structure"` } @@ -10566,6 +13527,12 @@ func (s *StopStackInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *StopStackInput) SetStackId(v string) *StopStackInput { + s.StackId = &v + return s +} + type StopStackOutput struct { _ struct{} `type:"structure"` } @@ -10611,6 +13578,30 @@ func (s TemporaryCredential) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *TemporaryCredential) SetInstanceId(v string) *TemporaryCredential { + s.InstanceId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *TemporaryCredential) SetPassword(v string) *TemporaryCredential { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *TemporaryCredential) SetUsername(v string) *TemporaryCredential { + s.Username = &v + return s +} + +// SetValidForInMinutes sets the ValidForInMinutes field's value. +func (s *TemporaryCredential) SetValidForInMinutes(v int64) *TemporaryCredential { + s.ValidForInMinutes = &v + return s +} + // Describes an instance's time-based auto scaling configuration. type TimeBasedAutoScalingConfiguration struct { _ struct{} `type:"structure"` @@ -10632,6 +13623,18 @@ func (s TimeBasedAutoScalingConfiguration) GoString() string { return s.String() } +// SetAutoScalingSchedule sets the AutoScalingSchedule field's value. +func (s *TimeBasedAutoScalingConfiguration) SetAutoScalingSchedule(v *WeeklyAutoScalingSchedule) *TimeBasedAutoScalingConfiguration { + s.AutoScalingSchedule = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *TimeBasedAutoScalingConfiguration) SetInstanceId(v string) *TimeBasedAutoScalingConfiguration { + s.InstanceId = &v + return s +} + type UnassignInstanceInput struct { _ struct{} `type:"structure"` @@ -10664,6 +13667,12 @@ func (s *UnassignInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *UnassignInstanceInput) SetInstanceId(v string) *UnassignInstanceInput { + s.InstanceId = &v + return s +} + type UnassignInstanceOutput struct { _ struct{} `type:"structure"` } @@ -10710,6 +13719,12 @@ func (s *UnassignVolumeInput) Validate() error { return nil } +// SetVolumeId sets the VolumeId field's value. +func (s *UnassignVolumeInput) SetVolumeId(v string) *UnassignVolumeInput { + s.VolumeId = &v + return s +} + type UnassignVolumeOutput struct { _ struct{} `type:"structure"` } @@ -10763,7 +13778,7 @@ type UpdateAppInput struct { // cause an exception with the message, "Environment: is too large (maximum // is 10KB)." // - // This parameter is supported only by Chef 11.10 stacks. If you have specified + // This parameter is supported only by Chef 11.10 stacks. If you have specified // one or more environment variables, you cannot modify the stack's Chef version. Environment []*EnvironmentVariable `type:"list"` @@ -10815,6 +13830,72 @@ func (s *UpdateAppInput) Validate() error { return nil } +// SetAppId sets the AppId field's value. +func (s *UpdateAppInput) SetAppId(v string) *UpdateAppInput { + s.AppId = &v + return s +} + +// SetAppSource sets the AppSource field's value. +func (s *UpdateAppInput) SetAppSource(v *Source) *UpdateAppInput { + s.AppSource = v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *UpdateAppInput) SetAttributes(v map[string]*string) *UpdateAppInput { + s.Attributes = v + return s +} + +// SetDataSources sets the DataSources field's value. +func (s *UpdateAppInput) SetDataSources(v []*DataSource) *UpdateAppInput { + s.DataSources = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateAppInput) SetDescription(v string) *UpdateAppInput { + s.Description = &v + return s +} + +// SetDomains sets the Domains field's value. +func (s *UpdateAppInput) SetDomains(v []*string) *UpdateAppInput { + s.Domains = v + return s +} + +// SetEnableSsl sets the EnableSsl field's value. +func (s *UpdateAppInput) SetEnableSsl(v bool) *UpdateAppInput { + s.EnableSsl = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *UpdateAppInput) SetEnvironment(v []*EnvironmentVariable) *UpdateAppInput { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAppInput) SetName(v string) *UpdateAppInput { + s.Name = &v + return s +} + +// SetSslConfiguration sets the SslConfiguration field's value. +func (s *UpdateAppInput) SetSslConfiguration(v *SslConfiguration) *UpdateAppInput { + s.SslConfiguration = v + return s +} + +// SetType sets the Type field's value. +func (s *UpdateAppInput) SetType(v string) *UpdateAppInput { + s.Type = &v + return s +} + type UpdateAppOutput struct { _ struct{} `type:"structure"` } @@ -10864,6 +13945,18 @@ func (s *UpdateElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *UpdateElasticIpInput) SetElasticIp(v string) *UpdateElasticIpInput { + s.ElasticIp = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateElasticIpInput) SetName(v string) *UpdateElasticIpInput { + s.Name = &v + return s +} + type UpdateElasticIpOutput struct { _ struct{} `type:"structure"` } @@ -10883,16 +13976,16 @@ type UpdateInstanceInput struct { // The default AWS OpsWorks agent version. You have the following options: // - // INHERIT - Use the stack's default agent version setting. + // * INHERIT - Use the stack's default agent version setting. // - // version_number - Use the specified agent version. This value overrides - // the stack's default setting. To update the agent version, you must edit the - // instance configuration and specify a new version. AWS OpsWorks then automatically - // installs that version on the instance. + // * version_number - Use the specified agent version. This value overrides + // the stack's default setting. To update the agent version, you must edit + // the instance configuration and specify a new version. AWS OpsWorks then + // automatically installs that version on the instance. // - // The default setting is INHERIT. To specify an agent version, you must - // use the complete version number, not the abbreviated number shown on the - // console. For a list of available agent version numbers, call DescribeAgentVersions. + // The default setting is INHERIT. To specify an agent version, you must use + // the complete version number, not the abbreviated number shown on the console. + // For a list of available agent version numbers, call DescribeAgentVersions. AgentVersion *string `type:"string"` // The ID of the AMI that was used to create the instance. The value of this @@ -10922,7 +14015,7 @@ type UpdateInstanceInput struct { // using CreateDeployment to run the update_dependencies stack command or by // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true, to ensure that your + // We strongly recommend using the default value of true, to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -10945,32 +14038,32 @@ type UpdateInstanceInput struct { // The instance's operating system, which must be set to one of the following. // You cannot update an instance that is using a custom AMI. // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // A supported Windows operating system, such as Microsoft Windows Server - // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft - // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server - // 2012 R2 with SQL Server Web. + // * A supported Windows operating system, such as Microsoft Windows Server + // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, + // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft + // Windows Server 2012 R2 with SQL Server Web. // - // For more information on the supported operating systems, see AWS OpsWorks + // For more information on the supported operating systems, see AWS OpsWorks // Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // - // The default option is the current Amazon Linux version. If you set this - // parameter to Custom, you must use the AmiId parameter to specify the custom - // AMI that you want to use. For more information on the supported operating - // systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). + // The default option is the current Amazon Linux version. If you set this parameter + // to Custom, you must use the AmiId parameter to specify the custom AMI that + // you want to use. For more information on the supported operating systems, + // see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // For more information on how to use custom AMIs with OpsWorks, see Using Custom // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // You can specify a different Linux operating system for the updated stack, + // You can specify a different Linux operating system for the updated stack, // but you cannot change from Linux to Windows or Windows to Linux. Os *string `type:"string"` @@ -11001,6 +14094,78 @@ func (s *UpdateInstanceInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *UpdateInstanceInput) SetAgentVersion(v string) *UpdateInstanceInput { + s.AgentVersion = &v + return s +} + +// SetAmiId sets the AmiId field's value. +func (s *UpdateInstanceInput) SetAmiId(v string) *UpdateInstanceInput { + s.AmiId = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *UpdateInstanceInput) SetArchitecture(v string) *UpdateInstanceInput { + s.Architecture = &v + return s +} + +// SetAutoScalingType sets the AutoScalingType field's value. +func (s *UpdateInstanceInput) SetAutoScalingType(v string) *UpdateInstanceInput { + s.AutoScalingType = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *UpdateInstanceInput) SetEbsOptimized(v bool) *UpdateInstanceInput { + s.EbsOptimized = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *UpdateInstanceInput) SetHostname(v string) *UpdateInstanceInput { + s.Hostname = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *UpdateInstanceInput) SetInstallUpdatesOnBoot(v bool) *UpdateInstanceInput { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateInstanceInput) SetInstanceId(v string) *UpdateInstanceInput { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *UpdateInstanceInput) SetInstanceType(v string) *UpdateInstanceInput { + s.InstanceType = &v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *UpdateInstanceInput) SetLayerIds(v []*string) *UpdateInstanceInput { + s.LayerIds = v + return s +} + +// SetOs sets the Os field's value. +func (s *UpdateInstanceInput) SetOs(v string) *UpdateInstanceInput { + s.Os = &v + return s +} + +// SetSshKeyName sets the SshKeyName field's value. +func (s *UpdateInstanceInput) SetSshKeyName(v string) *UpdateInstanceInput { + s.SshKeyName = &v + return s +} + type UpdateInstanceOutput struct { _ struct{} `type:"structure"` } @@ -11054,7 +14219,7 @@ type UpdateLayerInput struct { // using CreateDeployment to run the update_dependencies stack command or manually // running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true, to ensure that your + // We strongly recommend using the default value of true, to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -11121,6 +14286,102 @@ func (s *UpdateLayerInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *UpdateLayerInput) SetAttributes(v map[string]*string) *UpdateLayerInput { + s.Attributes = v + return s +} + +// SetAutoAssignElasticIps sets the AutoAssignElasticIps field's value. +func (s *UpdateLayerInput) SetAutoAssignElasticIps(v bool) *UpdateLayerInput { + s.AutoAssignElasticIps = &v + return s +} + +// SetAutoAssignPublicIps sets the AutoAssignPublicIps field's value. +func (s *UpdateLayerInput) SetAutoAssignPublicIps(v bool) *UpdateLayerInput { + s.AutoAssignPublicIps = &v + return s +} + +// SetCustomInstanceProfileArn sets the CustomInstanceProfileArn field's value. +func (s *UpdateLayerInput) SetCustomInstanceProfileArn(v string) *UpdateLayerInput { + s.CustomInstanceProfileArn = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *UpdateLayerInput) SetCustomJson(v string) *UpdateLayerInput { + s.CustomJson = &v + return s +} + +// SetCustomRecipes sets the CustomRecipes field's value. +func (s *UpdateLayerInput) SetCustomRecipes(v *Recipes) *UpdateLayerInput { + s.CustomRecipes = v + return s +} + +// SetCustomSecurityGroupIds sets the CustomSecurityGroupIds field's value. +func (s *UpdateLayerInput) SetCustomSecurityGroupIds(v []*string) *UpdateLayerInput { + s.CustomSecurityGroupIds = v + return s +} + +// SetEnableAutoHealing sets the EnableAutoHealing field's value. +func (s *UpdateLayerInput) SetEnableAutoHealing(v bool) *UpdateLayerInput { + s.EnableAutoHealing = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *UpdateLayerInput) SetInstallUpdatesOnBoot(v bool) *UpdateLayerInput { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *UpdateLayerInput) SetLayerId(v string) *UpdateLayerInput { + s.LayerId = &v + return s +} + +// SetLifecycleEventConfiguration sets the LifecycleEventConfiguration field's value. +func (s *UpdateLayerInput) SetLifecycleEventConfiguration(v *LifecycleEventConfiguration) *UpdateLayerInput { + s.LifecycleEventConfiguration = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateLayerInput) SetName(v string) *UpdateLayerInput { + s.Name = &v + return s +} + +// SetPackages sets the Packages field's value. +func (s *UpdateLayerInput) SetPackages(v []*string) *UpdateLayerInput { + s.Packages = v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *UpdateLayerInput) SetShortname(v string) *UpdateLayerInput { + s.Shortname = &v + return s +} + +// SetUseEbsOptimizedInstances sets the UseEbsOptimizedInstances field's value. +func (s *UpdateLayerInput) SetUseEbsOptimizedInstances(v bool) *UpdateLayerInput { + s.UseEbsOptimizedInstances = &v + return s +} + +// SetVolumeConfigurations sets the VolumeConfigurations field's value. +func (s *UpdateLayerInput) SetVolumeConfigurations(v []*VolumeConfiguration) *UpdateLayerInput { + s.VolumeConfigurations = v + return s +} + type UpdateLayerOutput struct { _ struct{} `type:"structure"` } @@ -11152,6 +14413,12 @@ func (s UpdateMyUserProfileInput) GoString() string { return s.String() } +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *UpdateMyUserProfileInput) SetSshPublicKey(v string) *UpdateMyUserProfileInput { + s.SshPublicKey = &v + return s +} + type UpdateMyUserProfileOutput struct { _ struct{} `type:"structure"` } @@ -11204,6 +14471,24 @@ func (s *UpdateRdsDbInstanceInput) Validate() error { return nil } +// SetDbPassword sets the DbPassword field's value. +func (s *UpdateRdsDbInstanceInput) SetDbPassword(v string) *UpdateRdsDbInstanceInput { + s.DbPassword = &v + return s +} + +// SetDbUser sets the DbUser field's value. +func (s *UpdateRdsDbInstanceInput) SetDbUser(v string) *UpdateRdsDbInstanceInput { + s.DbUser = &v + return s +} + +// SetRdsDbInstanceArn sets the RdsDbInstanceArn field's value. +func (s *UpdateRdsDbInstanceInput) SetRdsDbInstanceArn(v string) *UpdateRdsDbInstanceInput { + s.RdsDbInstanceArn = &v + return s +} + type UpdateRdsDbInstanceOutput struct { _ struct{} `type:"structure"` } @@ -11223,20 +14508,20 @@ type UpdateStackInput struct { // The default AWS OpsWorks agent version. You have the following options: // - // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically - // installs new agent versions on the stack's instances as soon as they are - // available. + // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically + // installs new agent versions on the stack's instances as soon as they are + // available. // - // Fixed version - Set this parameter to your preferred agent version. To - // update the agent version, you must edit the stack configuration and specify - // a new version. AWS OpsWorks then automatically installs that version on the - // stack's instances. + // * Fixed version - Set this parameter to your preferred agent version. + // To update the agent version, you must edit the stack configuration and + // specify a new version. AWS OpsWorks then automatically installs that version + // on the stack's instances. // - // The default setting is LATEST. To specify an agent version, you must use + // The default setting is LATEST. To specify an agent version, you must use // the complete version number, not the abbreviated number shown on the console. // For a list of available agent version numbers, call DescribeAgentVersions. // - // You can also specify an agent version when you create or update an instance, + // You can also specify an agent version when you create or update an instance, // which overrides the stack's default setting. AgentVersion *string `type:"string"` @@ -11263,7 +14548,7 @@ type UpdateStackInput struct { // the corresponding default stack configuration JSON values or to pass data // to recipes. The string should be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -11282,26 +14567,26 @@ type UpdateStackInput struct { // The stack's operating system, which must be set to one of the following: // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // A supported Windows operating system, such as Microsoft Windows Server - // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft - // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server - // 2012 R2 with SQL Server Web. + // * A supported Windows operating system, such as Microsoft Windows Server + // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, + // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft + // Windows Server 2012 R2 with SQL Server Web. // - // A custom AMI: Custom. You specify the custom AMI you want to use when - // you create instances. For more information on how to use custom AMIs with - // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). + // * A custom AMI: Custom. You specify the custom AMI you want to use when + // you create instances. For more information on how to use custom AMIs with + // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // The default option is the stack's current operating system. For more information + // The default option is the stack's current operating system. For more information // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). DefaultOs *string `type:"string"` @@ -11332,29 +14617,29 @@ type UpdateStackInput struct { // HostnameTheme is set to Layer_Dependent, which creates host names by appending // integers to the layer's short name. The other themes are: // - // Baked_Goods + // * Baked_Goods // - // Clouds + // * Clouds // - // Europe_Cities + // * Europe_Cities // - // Fruits + // * Fruits // - // Greek_Deities + // * Greek_Deities // - // Legendary_creatures_from_Japan + // * Legendary_creatures_from_Japan // - // Planets_and_Moons + // * Planets_and_Moons // - // Roman_Deities + // * Roman_Deities // - // Scottish_Islands + // * Scottish_Islands // - // US_Cities + // * US_Cities // - // Wild_Cats + // * Wild_Cats // - // To obtain a generated host name, call GetHostNameSuggestion, which returns + // To obtain a generated host name, call GetHostNameSuggestion, which returns // a host name based on the current theme. HostnameTheme *string `type:"string"` @@ -11380,18 +14665,18 @@ type UpdateStackInput struct { // allows you to provide your own custom security groups instead of using the // built-in groups. UseOpsworksSecurityGroups has the following settings: // - // True - AWS OpsWorks automatically associates the appropriate built-in - // security group with each layer (default setting). You can associate additional - // security groups with a layer after you create it, but you cannot delete the - // built-in security group. + // * True - AWS OpsWorks automatically associates the appropriate built-in + // security group with each layer (default setting). You can associate additional + // security groups with a layer after you create it, but you cannot delete + // the built-in security group. // - // False - AWS OpsWorks does not associate built-in security groups with - // layers. You must create appropriate EC2 security groups and associate a security - // group with each layer that you create. However, you can still manually associate - // a built-in security group with a layer on. Custom security groups are required - // only for those layers that need custom settings. + // * False - AWS OpsWorks does not associate built-in security groups with + // layers. You must create appropriate EC2 security groups and associate + // a security group with each layer that you create. However, you can still + // manually associate a built-in security group with a layer on. Custom security + // groups are required only for those layers that need custom settings. // - // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). + // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). UseOpsworksSecurityGroups *bool `type:"boolean"` } @@ -11418,6 +14703,114 @@ func (s *UpdateStackInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *UpdateStackInput) SetAgentVersion(v string) *UpdateStackInput { + s.AgentVersion = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *UpdateStackInput) SetAttributes(v map[string]*string) *UpdateStackInput { + s.Attributes = v + return s +} + +// SetChefConfiguration sets the ChefConfiguration field's value. +func (s *UpdateStackInput) SetChefConfiguration(v *ChefConfiguration) *UpdateStackInput { + s.ChefConfiguration = v + return s +} + +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *UpdateStackInput) SetConfigurationManager(v *StackConfigurationManager) *UpdateStackInput { + s.ConfigurationManager = v + return s +} + +// SetCustomCookbooksSource sets the CustomCookbooksSource field's value. +func (s *UpdateStackInput) SetCustomCookbooksSource(v *Source) *UpdateStackInput { + s.CustomCookbooksSource = v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *UpdateStackInput) SetCustomJson(v string) *UpdateStackInput { + s.CustomJson = &v + return s +} + +// SetDefaultAvailabilityZone sets the DefaultAvailabilityZone field's value. +func (s *UpdateStackInput) SetDefaultAvailabilityZone(v string) *UpdateStackInput { + s.DefaultAvailabilityZone = &v + return s +} + +// SetDefaultInstanceProfileArn sets the DefaultInstanceProfileArn field's value. +func (s *UpdateStackInput) SetDefaultInstanceProfileArn(v string) *UpdateStackInput { + s.DefaultInstanceProfileArn = &v + return s +} + +// SetDefaultOs sets the DefaultOs field's value. +func (s *UpdateStackInput) SetDefaultOs(v string) *UpdateStackInput { + s.DefaultOs = &v + return s +} + +// SetDefaultRootDeviceType sets the DefaultRootDeviceType field's value. +func (s *UpdateStackInput) SetDefaultRootDeviceType(v string) *UpdateStackInput { + s.DefaultRootDeviceType = &v + return s +} + +// SetDefaultSshKeyName sets the DefaultSshKeyName field's value. +func (s *UpdateStackInput) SetDefaultSshKeyName(v string) *UpdateStackInput { + s.DefaultSshKeyName = &v + return s +} + +// SetDefaultSubnetId sets the DefaultSubnetId field's value. +func (s *UpdateStackInput) SetDefaultSubnetId(v string) *UpdateStackInput { + s.DefaultSubnetId = &v + return s +} + +// SetHostnameTheme sets the HostnameTheme field's value. +func (s *UpdateStackInput) SetHostnameTheme(v string) *UpdateStackInput { + s.HostnameTheme = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateStackInput) SetName(v string) *UpdateStackInput { + s.Name = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *UpdateStackInput) SetServiceRoleArn(v string) *UpdateStackInput { + s.ServiceRoleArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *UpdateStackInput) SetStackId(v string) *UpdateStackInput { + s.StackId = &v + return s +} + +// SetUseCustomCookbooks sets the UseCustomCookbooks field's value. +func (s *UpdateStackInput) SetUseCustomCookbooks(v bool) *UpdateStackInput { + s.UseCustomCookbooks = &v + return s +} + +// SetUseOpsworksSecurityGroups sets the UseOpsworksSecurityGroups field's value. +func (s *UpdateStackInput) SetUseOpsworksSecurityGroups(v bool) *UpdateStackInput { + s.UseOpsworksSecurityGroups = &v + return s +} + type UpdateStackOutput struct { _ struct{} `type:"structure"` } @@ -11478,6 +14871,30 @@ func (s *UpdateUserProfileInput) Validate() error { return nil } +// SetAllowSelfManagement sets the AllowSelfManagement field's value. +func (s *UpdateUserProfileInput) SetAllowSelfManagement(v bool) *UpdateUserProfileInput { + s.AllowSelfManagement = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *UpdateUserProfileInput) SetIamUserArn(v string) *UpdateUserProfileInput { + s.IamUserArn = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *UpdateUserProfileInput) SetSshPublicKey(v string) *UpdateUserProfileInput { + s.SshPublicKey = &v + return s +} + +// SetSshUsername sets the SshUsername field's value. +func (s *UpdateUserProfileInput) SetSshUsername(v string) *UpdateUserProfileInput { + s.SshUsername = &v + return s +} + type UpdateUserProfileOutput struct { _ struct{} `type:"structure"` } @@ -11530,6 +14947,24 @@ func (s *UpdateVolumeInput) Validate() error { return nil } +// SetMountPoint sets the MountPoint field's value. +func (s *UpdateVolumeInput) SetMountPoint(v string) *UpdateVolumeInput { + s.MountPoint = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateVolumeInput) SetName(v string) *UpdateVolumeInput { + s.Name = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *UpdateVolumeInput) SetVolumeId(v string) *UpdateVolumeInput { + s.VolumeId = &v + return s +} + type UpdateVolumeOutput struct { _ struct{} `type:"structure"` } @@ -11575,6 +15010,36 @@ func (s UserProfile) GoString() string { return s.String() } +// SetAllowSelfManagement sets the AllowSelfManagement field's value. +func (s *UserProfile) SetAllowSelfManagement(v bool) *UserProfile { + s.AllowSelfManagement = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *UserProfile) SetIamUserArn(v string) *UserProfile { + s.IamUserArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *UserProfile) SetName(v string) *UserProfile { + s.Name = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *UserProfile) SetSshPublicKey(v string) *UserProfile { + s.SshPublicKey = &v + return s +} + +// SetSshUsername sets the SshUsername field's value. +func (s *UserProfile) SetSshUsername(v string) *UserProfile { + s.SshUsername = &v + return s +} + // Describes an instance's Amazon EBS volume. type Volume struct { _ struct{} `type:"structure"` @@ -11631,6 +15096,84 @@ func (s Volume) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Volume) SetAvailabilityZone(v string) *Volume { + s.AvailabilityZone = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *Volume) SetDevice(v string) *Volume { + s.Device = &v + return s +} + +// SetEc2VolumeId sets the Ec2VolumeId field's value. +func (s *Volume) SetEc2VolumeId(v string) *Volume { + s.Ec2VolumeId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Volume) SetInstanceId(v string) *Volume { + s.InstanceId = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *Volume) SetIops(v int64) *Volume { + s.Iops = &v + return s +} + +// SetMountPoint sets the MountPoint field's value. +func (s *Volume) SetMountPoint(v string) *Volume { + s.MountPoint = &v + return s +} + +// SetName sets the Name field's value. +func (s *Volume) SetName(v string) *Volume { + s.Name = &v + return s +} + +// SetRaidArrayId sets the RaidArrayId field's value. +func (s *Volume) SetRaidArrayId(v string) *Volume { + s.RaidArrayId = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Volume) SetRegion(v string) *Volume { + s.Region = &v + return s +} + +// SetSize sets the Size field's value. +func (s *Volume) SetSize(v int64) *Volume { + s.Size = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Volume) SetStatus(v string) *Volume { + s.Status = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *Volume) SetVolumeId(v string) *Volume { + s.VolumeId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *Volume) SetVolumeType(v string) *Volume { + s.VolumeType = &v + return s +} + // Describes an Amazon EBS volume configuration. type VolumeConfiguration struct { _ struct{} `type:"structure"` @@ -11658,11 +15201,11 @@ type VolumeConfiguration struct { // The volume type: // - // standard - Magnetic + // * standard - Magnetic // - // io1 - Provisioned IOPS (SSD) + // * io1 - Provisioned IOPS (SSD) // - // gp2 - General Purpose (SSD) + // * gp2 - General Purpose (SSD) VolumeType *string `type:"string"` } @@ -11695,16 +15238,52 @@ func (s *VolumeConfiguration) Validate() error { return nil } +// SetIops sets the Iops field's value. +func (s *VolumeConfiguration) SetIops(v int64) *VolumeConfiguration { + s.Iops = &v + return s +} + +// SetMountPoint sets the MountPoint field's value. +func (s *VolumeConfiguration) SetMountPoint(v string) *VolumeConfiguration { + s.MountPoint = &v + return s +} + +// SetNumberOfDisks sets the NumberOfDisks field's value. +func (s *VolumeConfiguration) SetNumberOfDisks(v int64) *VolumeConfiguration { + s.NumberOfDisks = &v + return s +} + +// SetRaidLevel sets the RaidLevel field's value. +func (s *VolumeConfiguration) SetRaidLevel(v int64) *VolumeConfiguration { + s.RaidLevel = &v + return s +} + +// SetSize sets the Size field's value. +func (s *VolumeConfiguration) SetSize(v int64) *VolumeConfiguration { + s.Size = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *VolumeConfiguration) SetVolumeType(v string) *VolumeConfiguration { + s.VolumeType = &v + return s +} + // Describes a time-based instance's auto scaling schedule. The schedule consists // of a set of key-value pairs. // -// The key is the time period (a UTC hour) and must be an integer from 0 -// - 23. +// * The key is the time period (a UTC hour) and must be an integer from +// 0 - 23. // -// The value indicates whether the instance should be online or offline for -// the specified period, and must be set to "on" or "off" +// * The value indicates whether the instance should be online or offline +// for the specified period, and must be set to "on" or "off" // -// The default setting for all time periods is off, so you use the following +// The default setting for all time periods is off, so you use the following // parameters primarily to specify the online periods. You don't have to explicitly // specify offline periods unless you want to change an online period to an // offline period. @@ -11712,7 +15291,7 @@ func (s *VolumeConfiguration) Validate() error { // The following example specifies that the instance should be online for four // hours, from UTC 1200 - 1600. It will be off for the remainder of the day. // -// { "12":"on", "13":"on", "14":"on", "15":"on" } +// { "12":"on", "13":"on", "14":"on", "15":"on" } type WeeklyAutoScalingSchedule struct { _ struct{} `type:"structure"` @@ -11748,6 +15327,48 @@ func (s WeeklyAutoScalingSchedule) GoString() string { return s.String() } +// SetFriday sets the Friday field's value. +func (s *WeeklyAutoScalingSchedule) SetFriday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Friday = v + return s +} + +// SetMonday sets the Monday field's value. +func (s *WeeklyAutoScalingSchedule) SetMonday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Monday = v + return s +} + +// SetSaturday sets the Saturday field's value. +func (s *WeeklyAutoScalingSchedule) SetSaturday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Saturday = v + return s +} + +// SetSunday sets the Sunday field's value. +func (s *WeeklyAutoScalingSchedule) SetSunday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Sunday = v + return s +} + +// SetThursday sets the Thursday field's value. +func (s *WeeklyAutoScalingSchedule) SetThursday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Thursday = v + return s +} + +// SetTuesday sets the Tuesday field's value. +func (s *WeeklyAutoScalingSchedule) SetTuesday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Tuesday = v + return s +} + +// SetWednesday sets the Wednesday field's value. +func (s *WeeklyAutoScalingSchedule) SetWednesday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Wednesday = v + return s +} + const ( // AppAttributesKeysDocumentRoot is a AppAttributesKeys enum value AppAttributesKeysDocumentRoot = "DocumentRoot" diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go index e960131ee..8355be121 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go @@ -20,62 +20,62 @@ import ( // about this product, go to the AWS OpsWorks (http://aws.amazon.com/opsworks/) // details page. // -// SDKs and CLI +// SDKs and CLI // // The most common way to use the AWS OpsWorks API is by using the AWS Command // Line Interface (CLI) or by using one of the AWS SDKs to implement applications // in your preferred language. For more information, see: // -// AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) +// * AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) // -// AWS SDK for Java (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/AWSOpsWorksClient.html) +// * AWS SDK for Java (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/AWSOpsWorksClient.html) // -// AWS SDK for .NET (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/N_Amazon_OpsWorks.htm) +// * AWS SDK for .NET (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/N_Amazon_OpsWorks.htm) // -// AWS SDK for PHP 2 (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.OpsWorks.OpsWorksClient.html) +// * AWS SDK for PHP 2 (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.OpsWorks.OpsWorksClient.html) // -// AWS SDK for Ruby (http://docs.aws.amazon.com/sdkforruby/api/) +// * AWS SDK for Ruby (http://docs.aws.amazon.com/sdkforruby/api/) // -// AWS SDK for Node.js (http://aws.amazon.com/documentation/sdkforjavascript/) +// * AWS SDK for Node.js (http://aws.amazon.com/documentation/sdkforjavascript/) // -// AWS SDK for Python(Boto) (http://docs.pythonboto.org/en/latest/ref/opsworks.html) +// * AWS SDK for Python(Boto) (http://docs.pythonboto.org/en/latest/ref/opsworks.html) // -// Endpoints +// Endpoints // // AWS OpsWorks supports the following endpoints, all HTTPS. You must connect // to one of the following endpoints. Stacks can only be accessed or managed // within the endpoint in which they are created. // -// opsworks.us-east-1.amazonaws.com +// * opsworks.us-east-1.amazonaws.com // -// opsworks.us-west-1.amazonaws.com +// * opsworks.us-west-1.amazonaws.com // -// opsworks.us-west-2.amazonaws.com +// * opsworks.us-west-2.amazonaws.com // -// opsworks.eu-west-1.amazonaws.com +// * opsworks.eu-west-1.amazonaws.com // -// opsworks.eu-central-1.amazonaws.com +// * opsworks.eu-central-1.amazonaws.com // -// opsworks.ap-northeast-1.amazonaws.com +// * opsworks.ap-northeast-1.amazonaws.com // -// opsworks.ap-northeast-2.amazonaws.com +// * opsworks.ap-northeast-2.amazonaws.com // -// opsworks.ap-south-1.amazonaws.com +// * opsworks.ap-south-1.amazonaws.com // -// opsworks.ap-southeast-1.amazonaws.com +// * opsworks.ap-southeast-1.amazonaws.com // -// opsworks.ap-southeast-2.amazonaws.com +// * opsworks.ap-southeast-2.amazonaws.com // -// opsworks.sa-east-1.amazonaws.com +// * opsworks.sa-east-1.amazonaws.com // -// Chef Versions +// Chef Versions // // When you call CreateStack, CloneStack, or UpdateStack we recommend you use // the ConfigurationManager parameter to specify the Chef version. The recommended // and default value for Linux stacks is currently 12. Windows stacks use Chef // 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html). // -// You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend +// You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend // migrating your existing Linux stacks to Chef 12 as soon as possible. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go index 9c2ab6699..67ad3e4b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go @@ -13,6 +13,85 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/query" ) +const opAddRoleToDBCluster = "AddRoleToDBCluster" + +// AddRoleToDBClusterRequest generates a "aws/request.Request" representing the +// client's request for the AddRoleToDBCluster operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AddRoleToDBCluster for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AddRoleToDBCluster method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AddRoleToDBClusterRequest method. +// req, resp := client.AddRoleToDBClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *RDS) AddRoleToDBClusterRequest(input *AddRoleToDBClusterInput) (req *request.Request, output *AddRoleToDBClusterOutput) { + op := &request.Operation{ + Name: opAddRoleToDBCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AddRoleToDBClusterInput{} + } + + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + output = &AddRoleToDBClusterOutput{} + req.Data = output + return +} + +// AddRoleToDBCluster API operation for Amazon Relational Database Service. +// +// Associates an Identity and Access Management (IAM) role from an Aurora DB +// cluster. For more information, see Authorizing Amazon Aurora to Access Other +// AWS Services On Your Behalf (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Authorizing.AWSServices.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation AddRoleToDBCluster for usage and error information. +// +// Returned Error Codes: +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * DBClusterRoleAlreadyExists +// The specified IAM role Amazon Resource Name (ARN) is already associated with +// the specified DB cluster. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * DBClusterRoleQuotaExceeded +// You have exceeded the maximum number of IAM roles that can be associated +// with the specified DB cluster. +// +func (c *RDS) AddRoleToDBCluster(input *AddRoleToDBClusterInput) (*AddRoleToDBClusterOutput, error) { + req, out := c.AddRoleToDBClusterRequest(input) + err := req.Send() + return out, err +} + const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription" // AddSourceIdentifierToSubscriptionRequest generates a "aws/request.Request" representing the @@ -131,8 +210,8 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // with cost allocation reporting to track cost associated with Amazon RDS resources, // or used in a Condition statement in an IAM policy for Amazon RDS. // -// For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS -// Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html). +// For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources +// (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -272,11 +351,11 @@ func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityG // EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName // or EC2SecurityGroupId for non-VPC). // -// You cannot authorize ingress from an EC2 security group in one region to +// You cannot authorize ingress from an EC2 security group in one region to // an Amazon RDS DB instance in another. You cannot authorize ingress from a // VPC security group in one VPC to an Amazon RDS DB instance in another. // -// For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -445,6 +524,12 @@ func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (r // * InvalidDBClusterSnapshotStateFault // The supplied value is not a valid DB cluster snapshot state. // +// * SnapshotQuotaExceeded +// Request would result in user exceeding the allowed number of DB snapshots. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// func (c *RDS) CopyDBClusterSnapshot(input *CopyDBClusterSnapshotInput) (*CopyDBClusterSnapshotOutput, error) { req, out := c.CopyDBClusterSnapshotRequest(input) err := req.Send() @@ -832,7 +917,7 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet // Parameters in a DB cluster parameter group apply to all of the instances // in a DB cluster. // -// A DB cluster parameter group is initially created with the default parameters +// A DB cluster parameter group is initially created with the default parameters // for the database engine used by instances in the DB cluster. To provide custom // values for any of the parameters, you must modify the group after creating // it using ModifyDBClusterParameterGroup. Once you've created a DB cluster @@ -841,19 +926,19 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet // you need to reboot the DB instances in the DB cluster without failover for // the new DB cluster parameter group and associated settings to take effect. // -// After you create a DB cluster parameter group, you should wait at least -// 5 minutes before creating your first DB cluster that uses that DB cluster -// parameter group as the default parameter group. This allows Amazon RDS to -// fully complete the create action before the DB cluster parameter group is -// used as the default for a new DB cluster. This is especially important for -// parameters that are critical when creating the default database for a DB -// cluster, such as the character set for the default database defined by the -// character_set_database parameter. You can use the Parameter Groups option -// of the Amazon RDS console (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters +// After you create a DB cluster parameter group, you should wait at least 5 +// minutes before creating your first DB cluster that uses that DB cluster parameter +// group as the default parameter group. This allows Amazon RDS to fully complete +// the create action before the DB cluster parameter group is used as the default +// for a new DB cluster. This is especially important for parameters that are +// critical when creating the default database for a DB cluster, such as the +// character set for the default database defined by the character_set_database +// parameter. You can use the Parameter Groups option of the Amazon RDS console +// (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters // command to verify that your DB cluster parameter group has been created or // modified. // -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) +// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1127,12 +1212,12 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL // that acts as a Read Replica of a source DB instance. // -// All Read Replica DB instances are created as Single-AZ deployments with -// backups disabled. All other DB instance attributes (including DB security -// groups and DB parameter groups) are inherited from the source DB instance, -// except as specified below. +// All Read Replica DB instances are created as Single-AZ deployments with backups +// disabled. All other DB instance attributes (including DB security groups +// and DB parameter groups) are inherited from the source DB instance, except +// as specified below. // -// The source DB instance must have backup retention enabled. +// The source DB instance must have backup retention enabled. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1256,7 +1341,7 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) // // Creates a new DB parameter group. // -// A DB parameter group is initially created with the default parameters for +// A DB parameter group is initially created with the default parameters for // the database engine used by the DB instance. To provide custom values for // any of the parameters, you must modify the group after creating it using // ModifyDBParameterGroup. Once you've created a DB parameter group, you need @@ -1265,7 +1350,7 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) // DB instance without failover for the new DB parameter group and associated // settings to take effect. // -// After you create a DB parameter group, you should wait at least 5 minutes +// After you create a DB parameter group, you should wait at least 5 minutes // before creating your first DB instance that uses that DB parameter group // as the default parameter group. This allows Amazon RDS to fully complete // the create action before the parameter group is used as the default for a @@ -1573,12 +1658,11 @@ func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput // or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon // SNS and subscribe to the topic. The ARN is displayed in the SNS console. // -// You can specify the type of source (SourceType) you want to be notified -// of, provide a list of RDS sources (SourceIds) that triggers the events, and -// provide a list of event categories (EventCategories) for events you want -// to be notified of. For example, you can specify SourceType = db-instance, -// SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, -// Backup. +// You can specify the type of source (SourceType) you want to be notified of, +// provide a list of RDS sources (SourceIds) that triggers the events, and provide +// a list of event categories (EventCategories) for events you want to be notified +// of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, +// mydbinstance2 and EventCategories = Availability, Backup. // // If you specify both the SourceType and SourceIds, such as SourceType = db-instance // and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance @@ -1740,8 +1824,7 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. // and cannot be recovered. Manual DB cluster snapshots of the specified DB // cluster are not deleted. // -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) -// in the Amazon RDS User Guide. +// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)in the Amazon RDS 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 @@ -1893,9 +1976,9 @@ func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput // Deletes a DB cluster snapshot. If the snapshot is being copied, the copy // operation is terminated. // -// The DB cluster snapshot must be in the available state to be deleted. +// The DB cluster snapshot must be in the available state to be deleted. // -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) +// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1968,7 +2051,7 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // deleted and cannot be recovered. Manual DB snapshots of the DB instance to // be deleted by DeleteDBInstance are not deleted. // -// If you request a final DB snapshot the status of the Amazon RDS DB instance +// If you request a final DB snapshot the status of the Amazon RDS DB instance // is deleting until the DB snapshot is created. The API action DescribeDBInstance // is used to monitor the status of this operation. The action cannot be canceled // or reverted once submitted. @@ -1980,11 +2063,11 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // If the specified DB instance is part of an Amazon Aurora DB cluster, you // cannot delete the DB instance if the following are true: // -// The DB cluster is a Read Replica of another Amazon Aurora DB cluster. +// * The DB cluster is a Read Replica of another Amazon Aurora DB cluster. // -// The DB instance is the only instance in the DB cluster. +// * The DB instance is the only instance in the DB cluster. // -// To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster +// To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster // API action to promote the DB cluster so it's no longer a Read Replica. After // the promotion completes, then call the DeleteDBInstance API action to delete // the final instance in the DB cluster. @@ -2137,7 +2220,7 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r // // Deletes a DB security group. // -// The specified DB security group must not be associated with any DB instances. +// The specified DB security group must not be associated with any DB instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2207,7 +2290,7 @@ func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *reques // Deletes a DBSnapshot. If the snapshot is being copied, the copy operation // is terminated. // -// The DBSnapshot must be in the available state to be deleted. +// The DBSnapshot must be in the available state to be deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2278,8 +2361,7 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req * // // Deletes a DB subnet group. // -// The specified database subnet group must not be associated with any DB -// instances. +// The specified database subnet group must not be associated with any DB instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5161,21 +5243,20 @@ func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParamet // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. // -// Changes to dynamic parameters are applied immediately. Changes to static +// Changes to dynamic parameters are applied immediately. Changes to static // parameters require a reboot without failover to the DB cluster associated // with the parameter group before the change can take effect. // -// After you create a DB cluster parameter group, you should wait at least -// 5 minutes before creating your first DB cluster that uses that DB cluster -// parameter group as the default parameter group. This allows Amazon RDS to -// fully complete the create action before the parameter group is used as the -// default for a new DB cluster. This is especially important for parameters -// that are critical when creating the default database for a DB cluster, such -// as the character set for the default database defined by the character_set_database -// parameter. You can use the Parameter Groups option of the Amazon RDS console -// (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters -// command to verify that your DB cluster parameter group has been created or -// modified. +// After you create a DB cluster parameter group, you should wait at least 5 +// minutes before creating your first DB cluster that uses that DB cluster parameter +// group as the default parameter group. This allows Amazon RDS to fully complete +// the create action before the parameter group is used as the default for a +// new DB cluster. This is especially important for parameters that are critical +// when creating the default database for a DB cluster, such as the character +// set for the default database defined by the character_set_database parameter. +// You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/) +// or the DescribeDBClusterParameters command to verify that your DB cluster +// parameter group has been created or modified. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5450,11 +5531,11 @@ func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) // parameter, submit a list of the following: ParameterName, ParameterValue, // and ApplyMethod. A maximum of 20 parameters can be modified in a single request. // -// Changes to dynamic parameters are applied immediately. Changes to static +// Changes to dynamic parameters are applied immediately. Changes to static // parameters require a reboot without failover to the DB instance associated // with the parameter group before the change can take effect. // -// After you modify a DB parameter group, you should wait at least 5 minutes +// After you modify a DB parameter group, you should wait at least 5 minutes // before creating your first DB instance that uses that DB parameter group // as the default parameter group. This allows Amazon RDS to fully complete // the modify action before the parameter group is used as the default for a @@ -5852,7 +5933,7 @@ func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *re // // Promotes a Read Replica DB instance to a standalone DB instance. // -// We recommend that you enable automated backups on your Read Replica before +// We recommend that you enable automated backups on your Read Replica before // promoting the Read Replica. This ensures that no backup is taken during the // promotion process. Once the instance is promoted to a primary instance, backups // are taken based on your backup settings. @@ -6067,10 +6148,10 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques // will be conducted through a failover. An Amazon RDS event is created when // the reboot is completed. // -// If your DB instance is deployed in multiple Availability Zones, you can -// force a failover from one AZ to the other during the reboot. You might force -// a failover to test the availability of your DB instance deployment or to -// restore operations to the original AZ after a failover occurs. +// If your DB instance is deployed in multiple Availability Zones, you can force +// a failover from one AZ to the other during the reboot. You might force a +// failover to test the availability of your DB instance deployment or to restore +// operations to the original AZ after a failover occurs. // // The time required to reboot is a function of the specific database engine's // crash recovery process. To improve the reboot time, we recommend that you @@ -6097,6 +6178,81 @@ func (c *RDS) RebootDBInstance(input *RebootDBInstanceInput) (*RebootDBInstanceO return out, err } +const opRemoveRoleFromDBCluster = "RemoveRoleFromDBCluster" + +// RemoveRoleFromDBClusterRequest generates a "aws/request.Request" representing the +// client's request for the RemoveRoleFromDBCluster operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveRoleFromDBCluster for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveRoleFromDBCluster method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveRoleFromDBClusterRequest method. +// req, resp := client.RemoveRoleFromDBClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput) (req *request.Request, output *RemoveRoleFromDBClusterOutput) { + op := &request.Operation{ + Name: opRemoveRoleFromDBCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RemoveRoleFromDBClusterInput{} + } + + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + output = &RemoveRoleFromDBClusterOutput{} + req.Data = output + return +} + +// RemoveRoleFromDBCluster API operation for Amazon Relational Database Service. +// +// Disassociates an Identity and Access Management (IAM) role from an Aurora +// DB cluster. For more information, see Authorizing Amazon Aurora to Access +// Other AWS Services On Your Behalf (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Authorizing.AWSServices.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RemoveRoleFromDBCluster for usage and error information. +// +// Returned Error Codes: +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * DBClusterRoleNotFound +// The specified IAM role Amazon Resource Name (ARN) is not associated with +// the specified DB cluster. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +func (c *RDS) RemoveRoleFromDBCluster(input *RemoveRoleFromDBClusterInput) (*RemoveRoleFromDBClusterOutput, error) { + req, out := c.RemoveRoleFromDBClusterRequest(input) + err := req.Send() + return out, err +} + const opRemoveSourceIdentifierFromSubscription = "RemoveSourceIdentifierFromSubscription" // RemoveSourceIdentifierFromSubscriptionRequest generates a "aws/request.Request" representing the @@ -6286,7 +6442,7 @@ func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameter // and ApplyMethod. To reset the entire DB cluster parameter group, specify // the DBClusterParameterGroupName and ResetAllParameters parameters. // -// When resetting the entire group, dynamic parameters are updated immediately +// When resetting the entire group, dynamic parameters are updated immediately // and static parameters are set to pending-reboot to take effect on the next // DB instance restart or RebootDBInstance request. You must call RebootDBInstance // for every DB instance in your DB cluster that you want the updated static @@ -6943,8 +7099,8 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo // property. You can restore to a point up to the number of days specified by // the BackupRetentionPeriod property. // -// The target database is created with most of the original configuration, -// but in a system-selected availability zone, with the default security group, +// The target database is created with most of the original configuration, but +// in a system-selected availability zone, with the default security group, // the default subnet group, and the default DB parameter group. By default, // the new DB instance is created as a single-AZ deployment except when the // instance is a SQL Server instance that has an option group that is associated @@ -7134,6 +7290,91 @@ func (s AccountQuota) GoString() string { return s.String() } +// SetAccountQuotaName sets the AccountQuotaName field's value. +func (s *AccountQuota) SetAccountQuotaName(v string) *AccountQuota { + s.AccountQuotaName = &v + return s +} + +// SetMax sets the Max field's value. +func (s *AccountQuota) SetMax(v int64) *AccountQuota { + s.Max = &v + return s +} + +// SetUsed sets the Used field's value. +func (s *AccountQuota) SetUsed(v int64) *AccountQuota { + s.Used = &v + return s +} + +type AddRoleToDBClusterInput struct { + _ struct{} `type:"structure"` + + // The name of the DB cluster to associate the IAM role with. + // + // DBClusterIdentifier is a required field + DBClusterIdentifier *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the IAM role to associate with the Aurora + // DB cluster, for example arn:aws:iam::123456789012:role/AuroraAccessRole. + // + // RoleArn is a required field + RoleArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AddRoleToDBClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddRoleToDBClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddRoleToDBClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddRoleToDBClusterInput"} + if s.DBClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *AddRoleToDBClusterInput) SetDBClusterIdentifier(v string) *AddRoleToDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AddRoleToDBClusterInput) SetRoleArn(v string) *AddRoleToDBClusterInput { + s.RoleArn = &v + return s +} + +type AddRoleToDBClusterOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AddRoleToDBClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddRoleToDBClusterOutput) GoString() string { + return s.String() +} + type AddSourceIdentifierToSubscriptionInput struct { _ struct{} `type:"structure"` @@ -7143,16 +7384,17 @@ type AddSourceIdentifierToSubscriptionInput struct { // // Constraints: // - // If the source type is a DB instance, then a DBInstanceIdentifier must - // be supplied. + // * If the source type is a DB instance, then a DBInstanceIdentifier must + // be supplied. // - // If the source type is a DB security group, a DBSecurityGroupName must - // be supplied. + // * If the source type is a DB security group, a DBSecurityGroupName must + // be supplied. // - // If the source type is a DB parameter group, a DBParameterGroupName must - // be supplied. + // * If the source type is a DB parameter group, a DBParameterGroupName must + // be supplied. // - // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied. + // * If the source type is a DB snapshot, a DBSnapshotIdentifier must be + // supplied. // // SourceIdentifier is a required field SourceIdentifier *string `type:"string" required:"true"` @@ -7190,6 +7432,18 @@ func (s *AddSourceIdentifierToSubscriptionInput) Validate() error { return nil } +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *AddSourceIdentifierToSubscriptionInput) SetSourceIdentifier(v string) *AddSourceIdentifierToSubscriptionInput { + s.SourceIdentifier = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *AddSourceIdentifierToSubscriptionInput) SetSubscriptionName(v string) *AddSourceIdentifierToSubscriptionInput { + s.SubscriptionName = &v + return s +} + type AddSourceIdentifierToSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -7208,6 +7462,12 @@ func (s AddSourceIdentifierToSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *AddSourceIdentifierToSubscriptionOutput) SetEventSubscription(v *EventSubscription) *AddSourceIdentifierToSubscriptionOutput { + s.EventSubscription = v + return s +} + type AddTagsToResourceInput struct { _ struct{} `type:"structure"` @@ -7250,6 +7510,18 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *AddTagsToResourceInput) SetResourceName(v string) *AddTagsToResourceInput { + s.ResourceName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + type AddTagsToResourceOutput struct { _ struct{} `type:"structure"` } @@ -7279,12 +7551,12 @@ type ApplyPendingMaintenanceActionInput struct { // // Valid values: // - // immediate - Apply the maintenance action immediately. + // * immediate - Apply the maintenance action immediately. // - // next-maintenance - Apply the maintenance action during the next maintenance - // window for the resource. + // * next-maintenance - Apply the maintenance action during the next maintenance + // window for the resource. // - // undo-opt-in - Cancel any existing next-maintenance opt-in requests. + // * undo-opt-in - Cancel any existing next-maintenance opt-in requests. // // OptInType is a required field OptInType *string `type:"string" required:"true"` @@ -7326,6 +7598,24 @@ func (s *ApplyPendingMaintenanceActionInput) Validate() error { return nil } +// SetApplyAction sets the ApplyAction field's value. +func (s *ApplyPendingMaintenanceActionInput) SetApplyAction(v string) *ApplyPendingMaintenanceActionInput { + s.ApplyAction = &v + return s +} + +// SetOptInType sets the OptInType field's value. +func (s *ApplyPendingMaintenanceActionInput) SetOptInType(v string) *ApplyPendingMaintenanceActionInput { + s.OptInType = &v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *ApplyPendingMaintenanceActionInput) SetResourceIdentifier(v string) *ApplyPendingMaintenanceActionInput { + s.ResourceIdentifier = &v + return s +} + type ApplyPendingMaintenanceActionOutput struct { _ struct{} `type:"structure"` @@ -7343,6 +7633,12 @@ func (s ApplyPendingMaintenanceActionOutput) GoString() string { return s.String() } +// SetResourcePendingMaintenanceActions sets the ResourcePendingMaintenanceActions field's value. +func (s *ApplyPendingMaintenanceActionOutput) SetResourcePendingMaintenanceActions(v *ResourcePendingMaintenanceActions) *ApplyPendingMaintenanceActionOutput { + s.ResourcePendingMaintenanceActions = v + return s +} + type AuthorizeDBSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -7395,20 +7691,50 @@ func (s *AuthorizeDBSecurityGroupIngressInput) Validate() error { return nil } +// SetCIDRIP sets the CIDRIP field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetCIDRIP(v string) *AuthorizeDBSecurityGroupIngressInput { + s.CIDRIP = &v + return s +} + +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetDBSecurityGroupName(v string) *AuthorizeDBSecurityGroupIngressInput { + s.DBSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupId(v string) *AuthorizeDBSecurityGroupIngressInput { + s.EC2SecurityGroupId = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeDBSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeDBSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + type AuthorizeDBSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups + // * DescribeDBSecurityGroups // - // AuthorizeDBSecurityGroupIngress + // * AuthorizeDBSecurityGroupIngress // - // CreateDBSecurityGroup + // * CreateDBSecurityGroup // - // RevokeDBSecurityGroupIngress + // * RevokeDBSecurityGroupIngress // - // This data type is used as a response element in the DescribeDBSecurityGroups + // This data type is used as a response element in the DescribeDBSecurityGroups // action. DBSecurityGroup *DBSecurityGroup `type:"structure"` } @@ -7423,11 +7749,17 @@ func (s AuthorizeDBSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetDBSecurityGroup sets the DBSecurityGroup field's value. +func (s *AuthorizeDBSecurityGroupIngressOutput) SetDBSecurityGroup(v *DBSecurityGroup) *AuthorizeDBSecurityGroupIngressOutput { + s.DBSecurityGroup = v + return s +} + // Contains Availability Zone information. // -// This data type is used as an element in the following data type: +// This data type is used as an element in the following data type: // -// OrderableDBInstanceOption +// * OrderableDBInstanceOption type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -7445,6 +7777,12 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + // A CA certificate for an AWS account. type Certificate struct { _ struct{} `type:"structure"` @@ -7478,6 +7816,42 @@ func (s Certificate) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *Certificate) SetCertificateArn(v string) *Certificate { + s.CertificateArn = &v + return s +} + +// SetCertificateIdentifier sets the CertificateIdentifier field's value. +func (s *Certificate) SetCertificateIdentifier(v string) *Certificate { + s.CertificateIdentifier = &v + return s +} + +// SetCertificateType sets the CertificateType field's value. +func (s *Certificate) SetCertificateType(v string) *Certificate { + s.CertificateType = &v + return s +} + +// SetThumbprint sets the Thumbprint field's value. +func (s *Certificate) SetThumbprint(v string) *Certificate { + s.Thumbprint = &v + return s +} + +// SetValidFrom sets the ValidFrom field's value. +func (s *Certificate) SetValidFrom(v time.Time) *Certificate { + s.ValidFrom = &v + return s +} + +// SetValidTill sets the ValidTill field's value. +func (s *Certificate) SetValidTill(v time.Time) *Certificate { + s.ValidTill = &v + return s +} + // This data type is used as a response element in the action DescribeDBEngineVersions. type CharacterSet struct { _ struct{} `type:"structure"` @@ -7499,6 +7873,18 @@ func (s CharacterSet) GoString() string { return s.String() } +// SetCharacterSetDescription sets the CharacterSetDescription field's value. +func (s *CharacterSet) SetCharacterSetDescription(v string) *CharacterSet { + s.CharacterSetDescription = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *CharacterSet) SetCharacterSetName(v string) *CharacterSet { + s.CharacterSetName = &v + return s +} + type CopyDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -7508,14 +7894,14 @@ type CopyDBClusterParameterGroupInput struct { // // Constraints: // - // Must specify a valid DB cluster parameter group. + // * Must specify a valid DB cluster parameter group. // - // If the source DB cluster parameter group is in the same region as the - // copy, specify a valid DB parameter group identifier, for example my-db-cluster-param-group, - // or a valid ARN. + // * If the source DB cluster parameter group is in the same region as the + // copy, specify a valid DB parameter group identifier, for example my-db-cluster-param-group, + // or a valid ARN. // - // If the source DB parameter group is in a different region than the copy, - // specify a valid DB cluster parameter group ARN, for example arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1. + // * If the source DB parameter group is in a different region than the copy, + // specify a valid DB cluster parameter group ARN, for example arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1. // // SourceDBClusterParameterGroupIdentifier is a required field SourceDBClusterParameterGroupIdentifier *string `type:"string" required:"true"` @@ -7532,15 +7918,15 @@ type CopyDBClusterParameterGroupInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-cluster-param-group1 + // Example: my-cluster-param-group1 // // TargetDBClusterParameterGroupIdentifier is a required field TargetDBClusterParameterGroupIdentifier *string `type:"string" required:"true"` @@ -7575,6 +7961,30 @@ func (s *CopyDBClusterParameterGroupInput) Validate() error { return nil } +// SetSourceDBClusterParameterGroupIdentifier sets the SourceDBClusterParameterGroupIdentifier field's value. +func (s *CopyDBClusterParameterGroupInput) SetSourceDBClusterParameterGroupIdentifier(v string) *CopyDBClusterParameterGroupInput { + s.SourceDBClusterParameterGroupIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyDBClusterParameterGroupInput) SetTags(v []*Tag) *CopyDBClusterParameterGroupInput { + s.Tags = v + return s +} + +// SetTargetDBClusterParameterGroupDescription sets the TargetDBClusterParameterGroupDescription field's value. +func (s *CopyDBClusterParameterGroupInput) SetTargetDBClusterParameterGroupDescription(v string) *CopyDBClusterParameterGroupInput { + s.TargetDBClusterParameterGroupDescription = &v + return s +} + +// SetTargetDBClusterParameterGroupIdentifier sets the TargetDBClusterParameterGroupIdentifier field's value. +func (s *CopyDBClusterParameterGroupInput) SetTargetDBClusterParameterGroupIdentifier(v string) *CopyDBClusterParameterGroupInput { + s.TargetDBClusterParameterGroupIdentifier = &v + return s +} + type CopyDBClusterParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -7597,6 +8007,12 @@ func (s CopyDBClusterParameterGroupOutput) GoString() string { return s.String() } +// SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value. +func (s *CopyDBClusterParameterGroupOutput) SetDBClusterParameterGroup(v *DBClusterParameterGroup) *CopyDBClusterParameterGroupOutput { + s.DBClusterParameterGroup = v + return s +} + type CopyDBClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -7605,13 +8021,13 @@ type CopyDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster-snapshot1 + // Example: my-cluster-snapshot1 // // SourceDBClusterSnapshotIdentifier is a required field SourceDBClusterSnapshotIdentifier *string `type:"string" required:"true"` @@ -7624,13 +8040,13 @@ type CopyDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster-snapshot2 + // Example: my-cluster-snapshot2 // // TargetDBClusterSnapshotIdentifier is a required field TargetDBClusterSnapshotIdentifier *string `type:"string" required:"true"` @@ -7662,16 +8078,34 @@ func (s *CopyDBClusterSnapshotInput) Validate() error { return nil } +// SetSourceDBClusterSnapshotIdentifier sets the SourceDBClusterSnapshotIdentifier field's value. +func (s *CopyDBClusterSnapshotInput) SetSourceDBClusterSnapshotIdentifier(v string) *CopyDBClusterSnapshotInput { + s.SourceDBClusterSnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyDBClusterSnapshotInput) SetTags(v []*Tag) *CopyDBClusterSnapshotInput { + s.Tags = v + return s +} + +// SetTargetDBClusterSnapshotIdentifier sets the TargetDBClusterSnapshotIdentifier field's value. +func (s *CopyDBClusterSnapshotInput) SetTargetDBClusterSnapshotIdentifier(v string) *CopyDBClusterSnapshotInput { + s.TargetDBClusterSnapshotIdentifier = &v + return s +} + type CopyDBClusterSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot + // * CreateDBClusterSnapshot // - // DeleteDBClusterSnapshot + // * DeleteDBClusterSnapshot // - // This data type is used as a response element in the DescribeDBClusterSnapshots + // This data type is used as a response element in the DescribeDBClusterSnapshots // action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` } @@ -7686,6 +8120,12 @@ func (s CopyDBClusterSnapshotOutput) GoString() string { return s.String() } +// SetDBClusterSnapshot sets the DBClusterSnapshot field's value. +func (s *CopyDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *CopyDBClusterSnapshotOutput { + s.DBClusterSnapshot = v + return s +} + type CopyDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -7695,10 +8135,10 @@ type CopyDBParameterGroupInput struct { // // Constraints: // - // Must specify a valid DB parameter group. + // * Must specify a valid DB parameter group. // - // Must specify a valid DB parameter group identifier, for example my-db-param-group, - // or a valid ARN. + // * Must specify a valid DB parameter group identifier, for example my-db-param-group, + // or a valid ARN. // // SourceDBParameterGroupIdentifier is a required field SourceDBParameterGroupIdentifier *string `type:"string" required:"true"` @@ -7715,15 +8155,15 @@ type CopyDBParameterGroupInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-db-parameter-group + // Example: my-db-parameter-group // // TargetDBParameterGroupIdentifier is a required field TargetDBParameterGroupIdentifier *string `type:"string" required:"true"` @@ -7758,6 +8198,30 @@ func (s *CopyDBParameterGroupInput) Validate() error { return nil } +// SetSourceDBParameterGroupIdentifier sets the SourceDBParameterGroupIdentifier field's value. +func (s *CopyDBParameterGroupInput) SetSourceDBParameterGroupIdentifier(v string) *CopyDBParameterGroupInput { + s.SourceDBParameterGroupIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyDBParameterGroupInput) SetTags(v []*Tag) *CopyDBParameterGroupInput { + s.Tags = v + return s +} + +// SetTargetDBParameterGroupDescription sets the TargetDBParameterGroupDescription field's value. +func (s *CopyDBParameterGroupInput) SetTargetDBParameterGroupDescription(v string) *CopyDBParameterGroupInput { + s.TargetDBParameterGroupDescription = &v + return s +} + +// SetTargetDBParameterGroupIdentifier sets the TargetDBParameterGroupIdentifier field's value. +func (s *CopyDBParameterGroupInput) SetTargetDBParameterGroupIdentifier(v string) *CopyDBParameterGroupInput { + s.TargetDBParameterGroupIdentifier = &v + return s +} + type CopyDBParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -7779,6 +8243,12 @@ func (s CopyDBParameterGroupOutput) GoString() string { return s.String() } +// SetDBParameterGroup sets the DBParameterGroup field's value. +func (s *CopyDBParameterGroupOutput) SetDBParameterGroup(v *DBParameterGroup) *CopyDBParameterGroupOutput { + s.DBParameterGroup = v + return s +} + type CopyDBSnapshotInput struct { _ struct{} `type:"structure"` @@ -7810,16 +8280,16 @@ type CopyDBSnapshotInput struct { // // Constraints: // - // Must specify a valid system snapshot in the "available" state. + // * Must specify a valid system snapshot in the "available" state. // - // If the source snapshot is in the same region as the copy, specify a valid - // DB snapshot identifier. + // * If the source snapshot is in the same region as the copy, specify a + // valid DB snapshot identifier. // - // If the source snapshot is in a different region than the copy, specify - // a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot - // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html). + // * If the source snapshot is in a different region than the copy, specify + // a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot + // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html). // - // Example: rds:mydb-2012-04-02-00-01 + // Example: rds:mydb-2012-04-02-00-01 // // Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805 // @@ -7833,15 +8303,15 @@ type CopyDBSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-db-snapshot + // Example: my-db-snapshot // // TargetDBSnapshotIdentifier is a required field TargetDBSnapshotIdentifier *string `type:"string" required:"true"` @@ -7873,17 +8343,46 @@ func (s *CopyDBSnapshotInput) Validate() error { return nil } +// SetCopyTags sets the CopyTags field's value. +func (s *CopyDBSnapshotInput) SetCopyTags(v bool) *CopyDBSnapshotInput { + s.CopyTags = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CopyDBSnapshotInput) SetKmsKeyId(v string) *CopyDBSnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetSourceDBSnapshotIdentifier sets the SourceDBSnapshotIdentifier field's value. +func (s *CopyDBSnapshotInput) SetSourceDBSnapshotIdentifier(v string) *CopyDBSnapshotInput { + s.SourceDBSnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyDBSnapshotInput) SetTags(v []*Tag) *CopyDBSnapshotInput { + s.Tags = v + return s +} + +// SetTargetDBSnapshotIdentifier sets the TargetDBSnapshotIdentifier field's value. +func (s *CopyDBSnapshotInput) SetTargetDBSnapshotIdentifier(v string) *CopyDBSnapshotInput { + s.TargetDBSnapshotIdentifier = &v + return s +} + type CopyDBSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot + // * CreateDBSnapshot // - // DeleteDBSnapshot + // * DeleteDBSnapshot // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // This data type is used as a response element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` } @@ -7897,6 +8396,12 @@ func (s CopyDBSnapshotOutput) GoString() string { return s.String() } +// SetDBSnapshot sets the DBSnapshot field's value. +func (s *CopyDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *CopyDBSnapshotOutput { + s.DBSnapshot = v + return s +} + type CopyOptionGroupInput struct { _ struct{} `type:"structure"` @@ -7905,14 +8410,14 @@ type CopyOptionGroupInput struct { // // Constraints: // - // Must specify a valid option group. + // * Must specify a valid option group. // - // If the source option group is in the same region as the copy, specify - // a valid option group identifier, for example my-option-group, or a valid - // ARN. + // * If the source option group is in the same region as the copy, specify + // a valid option group identifier, for example my-option-group, or a valid + // ARN. // - // If the source option group is in a different region than the copy, specify - // a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options. + // * If the source option group is in a different region than the copy, specify + // a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options. // // SourceOptionGroupIdentifier is a required field SourceOptionGroupIdentifier *string `type:"string" required:"true"` @@ -7929,15 +8434,15 @@ type CopyOptionGroupInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-option-group + // Example: my-option-group // // TargetOptionGroupIdentifier is a required field TargetOptionGroupIdentifier *string `type:"string" required:"true"` @@ -7972,6 +8477,30 @@ func (s *CopyOptionGroupInput) Validate() error { return nil } +// SetSourceOptionGroupIdentifier sets the SourceOptionGroupIdentifier field's value. +func (s *CopyOptionGroupInput) SetSourceOptionGroupIdentifier(v string) *CopyOptionGroupInput { + s.SourceOptionGroupIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyOptionGroupInput) SetTags(v []*Tag) *CopyOptionGroupInput { + s.Tags = v + return s +} + +// SetTargetOptionGroupDescription sets the TargetOptionGroupDescription field's value. +func (s *CopyOptionGroupInput) SetTargetOptionGroupDescription(v string) *CopyOptionGroupInput { + s.TargetOptionGroupDescription = &v + return s +} + +// SetTargetOptionGroupIdentifier sets the TargetOptionGroupIdentifier field's value. +func (s *CopyOptionGroupInput) SetTargetOptionGroupIdentifier(v string) *CopyOptionGroupInput { + s.TargetOptionGroupIdentifier = &v + return s +} + type CopyOptionGroupOutput struct { _ struct{} `type:"structure"` @@ -7988,6 +8517,12 @@ func (s CopyOptionGroupOutput) GoString() string { return s.String() } +// SetOptionGroup sets the OptionGroup field's value. +func (s *CopyOptionGroupOutput) SetOptionGroup(v *OptionGroup) *CopyOptionGroupOutput { + s.OptionGroup = v + return s +} + type CreateDBClusterInput struct { _ struct{} `type:"structure"` @@ -8003,7 +8538,7 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be a value from 1 to 35 + // * Must be a value from 1 to 35 BackupRetentionPeriod *int64 `type:"integer"` // A value that indicates that the DB cluster should be associated with the @@ -8014,13 +8549,13 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster1 + // Example: my-cluster1 // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -8030,11 +8565,11 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string"` // A DB subnet group to associate with this DB cluster. @@ -8059,7 +8594,7 @@ type CreateDBClusterInput struct { // The version number of the database engine to use. // - // Aurora + // Aurora // // Example: 5.6.10a EngineVersion *string `type:"string"` @@ -8087,11 +8622,11 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be 1 to 16 alphanumeric characters. + // * Must be 1 to 16 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. MasterUsername *string `type:"string"` // A value that indicates that the DB cluster should be associated with the @@ -8103,7 +8638,7 @@ type CreateDBClusterInput struct { // The port number on which the instances in the DB cluster accept connections. // - // Default: 3306 + // Default: 3306 Port *int64 `type:"integer"` // The daily time range during which automated backups are created if automated @@ -8116,19 +8651,19 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: A 30-minute window selected at random from an 8-hour block of time // per region, occurring on a random day of the week. To see the time blocks @@ -8180,25 +8715,144 @@ func (s *CreateDBClusterInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *CreateDBClusterInput) SetAvailabilityZones(v []*string) *CreateDBClusterInput { + s.AvailabilityZones = v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *CreateDBClusterInput) SetBackupRetentionPeriod(v int64) *CreateDBClusterInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *CreateDBClusterInput) SetCharacterSetName(v string) *CreateDBClusterInput { + s.CharacterSetName = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *CreateDBClusterInput) SetDBClusterIdentifier(v string) *CreateDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *CreateDBClusterInput) SetDBClusterParameterGroupName(v string) *CreateDBClusterInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *CreateDBClusterInput) SetDBSubnetGroupName(v string) *CreateDBClusterInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *CreateDBClusterInput) SetDatabaseName(v string) *CreateDBClusterInput { + s.DatabaseName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateDBClusterInput) SetEngine(v string) *CreateDBClusterInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateDBClusterInput) SetEngineVersion(v string) *CreateDBClusterInput { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateDBClusterInput) SetKmsKeyId(v string) *CreateDBClusterInput { + s.KmsKeyId = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *CreateDBClusterInput) SetMasterUserPassword(v string) *CreateDBClusterInput { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *CreateDBClusterInput) SetMasterUsername(v string) *CreateDBClusterInput { + s.MasterUsername = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *CreateDBClusterInput) SetOptionGroupName(v string) *CreateDBClusterInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateDBClusterInput) SetPort(v int64) *CreateDBClusterInput { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *CreateDBClusterInput) SetPreferredBackupWindow(v string) *CreateDBClusterInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateDBClusterInput) SetPreferredMaintenanceWindow(v string) *CreateDBClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationSourceIdentifier sets the ReplicationSourceIdentifier field's value. +func (s *CreateDBClusterInput) SetReplicationSourceIdentifier(v string) *CreateDBClusterInput { + s.ReplicationSourceIdentifier = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *CreateDBClusterInput) SetStorageEncrypted(v bool) *CreateDBClusterInput { + s.StorageEncrypted = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBClusterInput) SetTags(v []*Tag) *CreateDBClusterInput { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateDBClusterInput) SetVpcSecurityGroupIds(v []*string) *CreateDBClusterInput { + s.VpcSecurityGroupIds = v + return s +} + type CreateDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -8212,6 +8866,12 @@ func (s CreateDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *CreateDBClusterOutput) SetDBCluster(v *DBCluster) *CreateDBClusterOutput { + s.DBCluster = v + return s +} + type CreateDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -8219,13 +8879,13 @@ type CreateDBClusterParameterGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // This value is stored as a lowercase string. + // This value is stored as a lowercase string. // // DBClusterParameterGroupName is a required field DBClusterParameterGroupName *string `type:"string" required:"true"` @@ -8276,6 +8936,30 @@ func (s *CreateDBClusterParameterGroupInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *CreateDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *CreateDBClusterParameterGroupInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *CreateDBClusterParameterGroupInput) SetDBParameterGroupFamily(v string) *CreateDBClusterParameterGroupInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDBClusterParameterGroupInput) SetDescription(v string) *CreateDBClusterParameterGroupInput { + s.Description = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBClusterParameterGroupInput) SetTags(v []*Tag) *CreateDBClusterParameterGroupInput { + s.Tags = v + return s +} + type CreateDBClusterParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -8298,6 +8982,12 @@ func (s CreateDBClusterParameterGroupOutput) GoString() string { return s.String() } +// SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value. +func (s *CreateDBClusterParameterGroupOutput) SetDBClusterParameterGroup(v *DBClusterParameterGroup) *CreateDBClusterParameterGroupOutput { + s.DBClusterParameterGroup = v + return s +} + type CreateDBClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -8306,13 +8996,13 @@ type CreateDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster1 + // Example: my-cluster1 // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -8322,13 +9012,13 @@ type CreateDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster1-snapshot1 + // Example: my-cluster1-snapshot1 // // DBClusterSnapshotIdentifier is a required field DBClusterSnapshotIdentifier *string `type:"string" required:"true"` @@ -8363,16 +9053,34 @@ func (s *CreateDBClusterSnapshotInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *CreateDBClusterSnapshotInput) SetDBClusterIdentifier(v string) *CreateDBClusterSnapshotInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *CreateDBClusterSnapshotInput) SetDBClusterSnapshotIdentifier(v string) *CreateDBClusterSnapshotInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBClusterSnapshotInput) SetTags(v []*Tag) *CreateDBClusterSnapshotInput { + s.Tags = v + return s +} + type CreateDBClusterSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot + // * CreateDBClusterSnapshot // - // DeleteDBClusterSnapshot + // * DeleteDBClusterSnapshot // - // This data type is used as a response element in the DescribeDBClusterSnapshots + // This data type is used as a response element in the DescribeDBClusterSnapshots // action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` } @@ -8387,6 +9095,12 @@ func (s CreateDBClusterSnapshotOutput) GoString() string { return s.String() } +// SetDBClusterSnapshot sets the DBClusterSnapshot field's value. +func (s *CreateDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *CreateDBClusterSnapshotOutput { + s.DBClusterSnapshot = v + return s +} + type CreateDBInstanceInput struct { _ struct{} `type:"structure"` @@ -8395,23 +9109,23 @@ type CreateDBInstanceInput struct { // // Type: Integer // - // MySQL + // MySQL // // Constraints: Must be an integer from 5 to 6144. // - // MariaDB + // MariaDB // // Constraints: Must be an integer from 5 to 6144. // - // PostgreSQL + // PostgreSQL // // Constraints: Must be an integer from 5 to 6144. // - // Oracle + // Oracle // // Constraints: Must be an integer from 10 to 6144. // - // SQL Server + // SQL Server // // Constraints: Must be an integer from 200 to 4096 (Standard Edition and Enterprise // Edition) or from 20 to 4096 (Express Edition and Web Edition) @@ -8429,9 +9143,9 @@ type CreateDBInstanceInput struct { // // Default: A random, system-chosen Availability Zone in the endpoint's region. // - // Example: us-east-1d + // Example: us-east-1d // - // Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ + // Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ // parameter is set to true. The specified Availability Zone must be in the // same region as the current endpoint. AvailabilityZone *string `type:"string"` @@ -8444,9 +9158,9 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must be a value from 0 to 35 + // * Must be a value from 0 to 35 // - // Cannot be set to 0 if the DB instance is a source to Read Replicas + // * Cannot be set to 0 if the DB instance is a source to Read Replicas BackupRetentionPeriod *int64 `type:"integer"` // For supported engines, indicates that the DB instance should be associated @@ -8466,12 +9180,12 @@ type CreateDBInstanceInput struct { // The compute and memory capacity of the DB instance. // - // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | - // db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium - // | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge - // | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge - // | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small - // | db.t2.medium | db.t2.large + // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge + // | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large + // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge + // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge + // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium + // | db.t2.large // // DBInstanceClass is a required field DBInstanceClass *string `type:"string" required:"true"` @@ -8480,14 +9194,14 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 - // for SQL Server). + // * Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 + // for SQL Server). // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: mydbinstance + // Example: mydbinstance // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -8497,29 +9211,29 @@ type CreateDBInstanceInput struct { // // Type: String // - // MySQL + // MySQL // // The name of the database to create when the DB instance is created. If this // parameter is not specified, no database is created in the DB instance. // // Constraints: // - // Must contain 1 to 64 alphanumeric characters + // * Must contain 1 to 64 alphanumeric characters // - // Cannot be a word reserved by the specified database engine + // * Cannot be a word reserved by the specified database engine // - // MariaDB + // MariaDB // // The name of the database to create when the DB instance is created. If this // parameter is not specified, no database is created in the DB instance. // // Constraints: // - // Must contain 1 to 64 alphanumeric characters + // * Must contain 1 to 64 alphanumeric characters // - // Cannot be a word reserved by the specified database engine + // * Cannot be a word reserved by the specified database engine // - // PostgreSQL + // PostgreSQL // // The name of the database to create when the DB instance is created. If this // parameter is not specified, the default "postgres" database is created in @@ -8527,14 +9241,14 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must contain 1 to 63 alphanumeric characters + // * Must contain 1 to 63 alphanumeric characters // - // Must begin with a letter or an underscore. Subsequent characters can be - // letters, underscores, or digits (0-9). + // * Must begin with a letter or an underscore. Subsequent characters can + // be letters, underscores, or digits (0-9). // - // Cannot be a word reserved by the specified database engine + // * Cannot be a word reserved by the specified database engine // - // Oracle + // Oracle // // The Oracle System ID (SID) of the created DB instance. // @@ -8542,13 +9256,13 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Cannot be longer than 8 characters + // * Cannot be longer than 8 characters // - // SQL Server + // SQL Server // // Not applicable. Must be null. // - // Amazon Aurora + // Amazon Aurora // // The name of the database to create when the primary instance of the DB cluster // is created. If this parameter is not specified, no database is created in @@ -8556,9 +9270,9 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must contain 1 to 64 alphanumeric characters + // * Must contain 1 to 64 alphanumeric characters // - // Cannot be a word reserved by the specified database engine + // * Cannot be a word reserved by the specified database engine DBName *string `type:"string"` // The name of the DB parameter group to associate with this DB instance. If @@ -8567,11 +9281,11 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupName *string `type:"string"` // A list of DB security groups to associate with this DB instance. @@ -8593,7 +9307,7 @@ type CreateDBInstanceInput struct { // The name of the database engine to be used for this instance. // - // Valid Values: mysql | mariadb | oracle-se1 | oracle-se2 | oracle-se | oracle-ee + // Valid Values: mysql | mariadb | oracle-se1 | oracle-se2 | oracle-se | oracle-ee // | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | // aurora // @@ -8608,153 +9322,191 @@ type CreateDBInstanceInput struct { // are available with Amazon RDS. Not every database engine is available for // every AWS region. // - // Amazon Aurora + // Amazon Aurora // - // Version 5.6 (only available in AWS regions ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-2, eu-west-1, us-east-1, us-west-2): 5.6.10a + // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-2, eu-west-1, us-east-1, us-west-2): 5.6.10a // - // MariaDB + // MariaDB // - // Version 10.1 (available in all AWS regions except us-gov-west-1): 10.1.14 + // * Version 10.1 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 10.1.14 // - // Version 10.0 (available in all AWS regions): 10.0.17 | 10.0.24 + // * Version 10.0 (available in all AWS regions): 10.0.17 | 10.0.24 // - // Microsoft SQL Server Enterprise Edition (sqlserver-ee) + // MySQL // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 + // * Version 5.7 (available in all AWS regions): 5.7.10 | 5.7.11 // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 + // * Version 5.6 (available in all AWS regions): 5.6.27 | 5.6.29 // - // Microsoft SQL Server Express Edition (sqlserver-ex) + // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, + // us-gov-west-1, us-west-1, us-west-2): 5.6.23 // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 + // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-west-1, us-west-2): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 + // * Version 5.5 (available in all AWS regions): 5.5.46 // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 + // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, + // us-gov-west-1, us-west-1, us-west-2): 5.5.42 // - // Microsoft SQL Server Standard Edition (sqlserver-se) + // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-west-1, us-west-2): 5.5.40b | 5.5.41 // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 + // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 5.5.40 | 5.5.40a // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 + // Oracle Database Enterprise Edition (oracle-ee) // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 + // * Version 12.1.0.2 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 12.1.0.2.v5 // - // Microsoft SQL Server Web Edition (sqlserver-web) + // * Version 12.1.0.2 (available in all AWS regions): 12.1.0.2.v1 | 12.1.0.2.v2 + // | 12.1.0.2.v3 | 12.1.0.2.v4 // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v6 // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2 // - // MySQL + // * Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9 // - // Version 5.7 (available in all AWS regions): 5.7.10 | 5.7.11 + // * Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8 // - // Version 5.6 (available in all AWS regions except ap-south-1, ap-northeast-2): - // 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 + // Oracle Database Standard Edition Two (oracle-se2) // - // Version 5.6 (available in all AWS regions except ap-south-1): 5.6.23 + // * Version 12.1.0.2 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 12.1.0.2.v5 // - // Version 5.6 (available in all AWS regions): 5.6.27 | 5.6.29 + // * Version 12.1.0.2 (available in all AWS regions): 12.1.0.2.v2 | 12.1.0.2.v3 + // | 12.1.0.2.v4 // - // Version 5.5 (only available in AWS regions ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, - // us-west-2): 5.5.40 | 5.5.40a + // Oracle Database Standard Edition One (oracle-se1) // - // Version 5.5 (available in all AWS regions except ap-south-1, ap-northeast-2): - // 5.5.40b | 5.5.41 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v6 // - // Version 5.5 (available in all AWS regions except ap-south-1): 5.5.42 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 // - // Version 5.5 (available in all AWS regions): 5.5.46 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2 // - // Oracle Database Enterprise Edition (oracle-ee) + // * Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9 // - // Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): - // 12.1.0.1.v1 | 12.1.0.1.v2 + // * Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8 // - // Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, - // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 + // Oracle Database Standard Edition (oracle-se) // - // Version 12.1 (available in all AWS regions): 12.1.0.2.v1 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v6 // - // Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 - // | 12.1.0.2.v3 | 12.1.0.2.v4 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 // - // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 + // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2 // - // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 - // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 + // * Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9 // - // Oracle Database Standard Edition (oracle-se) + // * Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8 // - // Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): - // 12.1.0.1.v1 | 12.1.0.1.v2 + // PostgreSQL // - // Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, - // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 + // * Version 9.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 9.5.2 | 9.5.4 // - // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 + // * Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 9.4.7 | 9.4.9 // - // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 - // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 + // * Version 9.4 (available in all AWS regions): 9.4.5 // - // Oracle Database Standard Edition One (oracle-se1) + // * Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, + // us-gov-west-1, us-west-1, us-west-2): 9.4.1 | 9.4.4 // - // Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): - // 12.1.0.1.v1 | 12.1.0.1.v2 + // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-west-1, us-west-2): 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9 // - // Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, - // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 + // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 9.3.1 | 9.3.2 // - // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 + // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 9.3.12 | 9.3.14 // - // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 - // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 + // Microsoft SQL Server Enterprise Edition (sqlserver-ee) // - // Oracle Database Standard Edition Two (oracle-se2) + // * Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 + // | 11.00.6020.0.v1 // - // Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 - // | 12.1.0.2.v3 | 12.1.0.2.v4 + // * Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 + // | 10.50.6529.0.v1 // - // PostgreSQL + // Microsoft SQL Server Express Edition (sqlserver-ex) // - // Version 9.5 (available in all AWS regions except us-gov-west-1): 9.5.2 + // * Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 // - // Version 9.4 (available in all AWS regions except ap-south-1): 9.4.1 - // | 9.4.4 + // * Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 + // | 11.00.6020.0.v1 // - // Version 9.4 (available in all AWS regions): 9.4.5 + // * Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 + // | 10.50.6529.0.v1 // - // Version 9.4 (available in all AWS regions except us-gov-west-1): 9.4.7 + // Microsoft SQL Server Standard Edition (sqlserver-se) // - // Version 9.3 (only available in AWS regions ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, - // us-west-2): 9.3.1 | 9.3.2 + // * Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 // - // Version 9.3 (available in all AWS regions except ap-south-1, ap-northeast-2): - // 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9 + // * Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 + // | 11.00.6020.0.v1 // - // Version 9.3 (only available in AWS regions ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, - // us-west-2): 9.3.12 + // * Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 + // | 10.50.6529.0.v1 + // + // Microsoft SQL Server Web Edition (sqlserver-web) + // + // * Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 + // + // * Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 + // | 11.00.6020.0.v1 + // + // * Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 + // | 10.50.6529.0.v1 EngineVersion *string `type:"string"` // The amount of Provisioned IOPS (input/output operations per second) to be @@ -8781,7 +9533,7 @@ type CreateDBInstanceInput struct { // License model information for this DB instance. // - // Valid values: license-included | bring-your-own-license | general-public-license + // Valid values: license-included | bring-your-own-license | general-public-license LicenseModel *string `type:"string"` // The password for the master database user. Can be any printable ASCII character @@ -8789,82 +9541,82 @@ type CreateDBInstanceInput struct { // // Type: String // - // MySQL + // MySQL // // Constraints: Must contain from 8 to 41 characters. // - // MariaDB + // MariaDB // // Constraints: Must contain from 8 to 41 characters. // - // Oracle + // Oracle // // Constraints: Must contain from 8 to 30 characters. // - // SQL Server + // SQL Server // // Constraints: Must contain from 8 to 128 characters. // - // PostgreSQL + // PostgreSQL // // Constraints: Must contain from 8 to 128 characters. // - // Amazon Aurora + // Amazon Aurora // // Constraints: Must contain from 8 to 41 characters. MasterUserPassword *string `type:"string"` // The name of master user for the client DB instance. // - // MySQL + // MySQL // // Constraints: // - // Must be 1 to 16 alphanumeric characters. + // * Must be 1 to 16 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // - // MariaDB + // MariaDB // // Constraints: // - // Must be 1 to 16 alphanumeric characters. + // * Must be 1 to 16 alphanumeric characters. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // - // Type: String + // Type: String // - // Oracle + // Oracle // // Constraints: // - // Must be 1 to 30 alphanumeric characters. + // * Must be 1 to 30 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // - // SQL Server + // SQL Server // // Constraints: // - // Must be 1 to 128 alphanumeric characters. + // * Must be 1 to 128 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // - // PostgreSQL + // PostgreSQL // // Constraints: // - // Must be 1 to 63 alphanumeric characters. + // * Must be 1 to 63 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. MasterUsername *string `type:"string"` // The interval, in seconds, between points when Enhanced Monitoring metrics @@ -8900,48 +9652,48 @@ type CreateDBInstanceInput struct { // The port number on which the database accepts connections. // - // MySQL + // MySQL // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer // - // MariaDB + // MariaDB // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer // - // PostgreSQL + // PostgreSQL // - // Default: 5432 + // Default: 5432 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer // - // Oracle + // Oracle // - // Default: 1521 + // Default: 1521 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // - // SQL Server + // SQL Server // - // Default: 1433 + // Default: 1433 // - // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 - // through 49156. + // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through + // 49156. // - // Amazon Aurora + // Amazon Aurora // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer Port *int64 `type:"integer"` @@ -8950,30 +9702,30 @@ type CreateDBInstanceInput struct { // backups are enabled, using the BackupRetentionPeriod parameter. For more // information, see DB Instance Backups (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.BackingUpAndRestoringAmazonRDSInstances.html). // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region. To see the time blocks available, see Adjusting the Preferred + // Default: A 30-minute window selected at random from an 8-hour block of time + // per region. To see the time blocks available, see Adjusting the Preferred // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html) // in the Amazon RDS User Guide. // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). For more information, see DB Instance Maintenance // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBMaintenance.html). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region, occurring on a random day of the week. To see the time blocks + // Default: A 30-minute window selected at random from an 8-hour block of time + // per region, occurring on a random day of the week. To see the time blocks // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html) // in the Amazon RDS User Guide. // @@ -8999,15 +9751,14 @@ type CreateDBInstanceInput struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC: true + // * Default VPC: true // - // VPC: false + // * VPC: false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // Specifies whether the DB instance is encrypted. @@ -9017,11 +9768,11 @@ type CreateDBInstanceInput struct { // Specifies the storage type to be associated with the DB instance. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // A list of tags. @@ -9073,19 +9824,246 @@ func (s *CreateDBInstanceInput) Validate() error { return nil } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *CreateDBInstanceInput) SetAllocatedStorage(v int64) *CreateDBInstanceInput { + s.AllocatedStorage = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *CreateDBInstanceInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateDBInstanceInput) SetAvailabilityZone(v string) *CreateDBInstanceInput { + s.AvailabilityZone = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *CreateDBInstanceInput) SetBackupRetentionPeriod(v int64) *CreateDBInstanceInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *CreateDBInstanceInput) SetCharacterSetName(v string) *CreateDBInstanceInput { + s.CharacterSetName = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *CreateDBInstanceInput) SetCopyTagsToSnapshot(v bool) *CreateDBInstanceInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *CreateDBInstanceInput) SetDBClusterIdentifier(v string) *CreateDBInstanceInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *CreateDBInstanceInput) SetDBInstanceClass(v string) *CreateDBInstanceInput { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *CreateDBInstanceInput) SetDBInstanceIdentifier(v string) *CreateDBInstanceInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *CreateDBInstanceInput) SetDBName(v string) *CreateDBInstanceInput { + s.DBName = &v + return s +} + +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *CreateDBInstanceInput) SetDBParameterGroupName(v string) *CreateDBInstanceInput { + s.DBParameterGroupName = &v + return s +} + +// SetDBSecurityGroups sets the DBSecurityGroups field's value. +func (s *CreateDBInstanceInput) SetDBSecurityGroups(v []*string) *CreateDBInstanceInput { + s.DBSecurityGroups = v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *CreateDBInstanceInput) SetDBSubnetGroupName(v string) *CreateDBInstanceInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *CreateDBInstanceInput) SetDomain(v string) *CreateDBInstanceInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *CreateDBInstanceInput) SetDomainIAMRoleName(v string) *CreateDBInstanceInput { + s.DomainIAMRoleName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateDBInstanceInput) SetEngine(v string) *CreateDBInstanceInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateDBInstanceInput) SetEngineVersion(v string) *CreateDBInstanceInput { + s.EngineVersion = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *CreateDBInstanceInput) SetIops(v int64) *CreateDBInstanceInput { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateDBInstanceInput) SetKmsKeyId(v string) *CreateDBInstanceInput { + s.KmsKeyId = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *CreateDBInstanceInput) SetLicenseModel(v string) *CreateDBInstanceInput { + s.LicenseModel = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *CreateDBInstanceInput) SetMasterUserPassword(v string) *CreateDBInstanceInput { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *CreateDBInstanceInput) SetMasterUsername(v string) *CreateDBInstanceInput { + s.MasterUsername = &v + return s +} + +// SetMonitoringInterval sets the MonitoringInterval field's value. +func (s *CreateDBInstanceInput) SetMonitoringInterval(v int64) *CreateDBInstanceInput { + s.MonitoringInterval = &v + return s +} + +// SetMonitoringRoleArn sets the MonitoringRoleArn field's value. +func (s *CreateDBInstanceInput) SetMonitoringRoleArn(v string) *CreateDBInstanceInput { + s.MonitoringRoleArn = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *CreateDBInstanceInput) SetMultiAZ(v bool) *CreateDBInstanceInput { + s.MultiAZ = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *CreateDBInstanceInput) SetOptionGroupName(v string) *CreateDBInstanceInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateDBInstanceInput) SetPort(v int64) *CreateDBInstanceInput { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *CreateDBInstanceInput) SetPreferredBackupWindow(v string) *CreateDBInstanceInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateDBInstanceInput) SetPreferredMaintenanceWindow(v string) *CreateDBInstanceInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPromotionTier sets the PromotionTier field's value. +func (s *CreateDBInstanceInput) SetPromotionTier(v int64) *CreateDBInstanceInput { + s.PromotionTier = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateDBInstanceInput) SetPubliclyAccessible(v bool) *CreateDBInstanceInput { + s.PubliclyAccessible = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *CreateDBInstanceInput) SetStorageEncrypted(v bool) *CreateDBInstanceInput { + s.StorageEncrypted = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *CreateDBInstanceInput) SetStorageType(v string) *CreateDBInstanceInput { + s.StorageType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBInstanceInput) SetTags(v []*Tag) *CreateDBInstanceInput { + s.Tags = v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *CreateDBInstanceInput) SetTdeCredentialArn(v string) *CreateDBInstanceInput { + s.TdeCredentialArn = &v + return s +} + +// SetTdeCredentialPassword sets the TdeCredentialPassword field's value. +func (s *CreateDBInstanceInput) SetTdeCredentialPassword(v string) *CreateDBInstanceInput { + s.TdeCredentialPassword = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *CreateDBInstanceInput) SetTimezone(v string) *CreateDBInstanceInput { + s.Timezone = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateDBInstanceInput) SetVpcSecurityGroupIds(v []*string) *CreateDBInstanceInput { + s.VpcSecurityGroupIds = v + return s +} + type CreateDBInstanceOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -9099,6 +10077,12 @@ func (s CreateDBInstanceOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *CreateDBInstanceOutput) SetDBInstance(v *DBInstance) *CreateDBInstanceOutput { + s.DBInstance = v + return s +} + type CreateDBInstanceReadReplicaInput struct { _ struct{} `type:"structure"` @@ -9112,7 +10096,7 @@ type CreateDBInstanceReadReplicaInput struct { // // Default: A random, system-chosen Availability Zone in the endpoint's region. // - // Example: us-east-1d + // Example: us-east-1d AvailabilityZone *string `type:"string"` // True to copy all tags from the Read Replica to snapshots of the Read Replica; @@ -9121,12 +10105,11 @@ type CreateDBInstanceReadReplicaInput struct { // The compute and memory capacity of the Read Replica. // - // Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | - // db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large - // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge - // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge - // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium - // | db.t2.large + // Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge + // |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge + // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge + // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge + // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large // // Default: Inherits from the source DB instance. DBInstanceClass *string `type:"string"` @@ -9144,23 +10127,23 @@ type CreateDBInstanceReadReplicaInput struct { // // Constraints: // - // Can only be specified if the source DB instance identifier specifies a - // DB instance in another region. + // * Can only be specified if the source DB instance identifier specifies + // a DB instance in another region. // - // The specified DB subnet group must be in the same region in which the - // operation is running. + // * The specified DB subnet group must be in the same region in which the + // operation is running. // - // All Read Replicas in one region that are created from the same source - // DB instance must either:> + // * All Read Replicas in one region that are created from the same source + // DB instance must either:> // - // Specify DB subnet groups from the same VPC. All these Read Replicas will - // be created in the same VPC. + // Specify DB subnet groups from the same VPC. All these Read Replicas will + // be created in the same VPC. // - // Not specify a DB subnet group. All these Read Replicas will be created - // outside of any VPC. + // Not specify a DB subnet group. All these Read Replicas will be created outside + // of any VPC. // - // Constraints: Must contain no more than 255 alphanumeric characters, - // periods, underscores, spaces, or hyphens. Must not be default. + // Constraints: Must contain no more than 255 alphanumeric characters, periods, + // underscores, spaces, or hyphens. Must not be default. // // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` @@ -9207,15 +10190,14 @@ type CreateDBInstanceReadReplicaInput struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC:true + // * Default VPC:true // - // VPC:false + // * VPC:false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // The identifier of the DB instance that will act as the source for the Read @@ -9223,35 +10205,35 @@ type CreateDBInstanceReadReplicaInput struct { // // Constraints: // - // Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL DB - // instance. + // * Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL + // DB instance. // - // Can specify a DB instance that is a MySQL Read Replica only if the source - // is running MySQL 5.6. + // * Can specify a DB instance that is a MySQL Read Replica only if the source + // is running MySQL 5.6. // - // Can specify a DB instance that is a PostgreSQL Read Replica only if the - // source is running PostgreSQL 9.3.5. + // * Can specify a DB instance that is a PostgreSQL Read Replica only if + // the source is running PostgreSQL 9.3.5. // - // The specified DB instance must have automatic backups enabled, its backup - // retention period must be greater than 0. + // * The specified DB instance must have automatic backups enabled, its backup + // retention period must be greater than 0. // - // If the source DB instance is in the same region as the Read Replica, specify - // a valid DB instance identifier. + // * If the source DB instance is in the same region as the Read Replica, + // specify a valid DB instance identifier. // - // If the source DB instance is in a different region than the Read Replica, - // specify a valid DB instance ARN. For more information, go to Constructing - // a Amazon RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing). + // * If the source DB instance is in a different region than the Read Replica, + // specify a valid DB instance ARN. For more information, go to Constructing + // a Amazon RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing). // // SourceDBInstanceIdentifier is a required field SourceDBInstanceIdentifier *string `type:"string" required:"true"` // Specifies the storage type to be associated with the Read Replica. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // A list of tags. @@ -9284,19 +10266,108 @@ func (s *CreateDBInstanceReadReplicaInput) Validate() error { return nil } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateDBInstanceReadReplicaInput) SetAutoMinorVersionUpgrade(v bool) *CreateDBInstanceReadReplicaInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateDBInstanceReadReplicaInput) SetAvailabilityZone(v string) *CreateDBInstanceReadReplicaInput { + s.AvailabilityZone = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *CreateDBInstanceReadReplicaInput) SetCopyTagsToSnapshot(v bool) *CreateDBInstanceReadReplicaInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDBInstanceClass(v string) *CreateDBInstanceReadReplicaInput { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDBInstanceIdentifier(v string) *CreateDBInstanceReadReplicaInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDBSubnetGroupName(v string) *CreateDBInstanceReadReplicaInput { + s.DBSubnetGroupName = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *CreateDBInstanceReadReplicaInput) SetIops(v int64) *CreateDBInstanceReadReplicaInput { + s.Iops = &v + return s +} + +// SetMonitoringInterval sets the MonitoringInterval field's value. +func (s *CreateDBInstanceReadReplicaInput) SetMonitoringInterval(v int64) *CreateDBInstanceReadReplicaInput { + s.MonitoringInterval = &v + return s +} + +// SetMonitoringRoleArn sets the MonitoringRoleArn field's value. +func (s *CreateDBInstanceReadReplicaInput) SetMonitoringRoleArn(v string) *CreateDBInstanceReadReplicaInput { + s.MonitoringRoleArn = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *CreateDBInstanceReadReplicaInput) SetOptionGroupName(v string) *CreateDBInstanceReadReplicaInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateDBInstanceReadReplicaInput) SetPort(v int64) *CreateDBInstanceReadReplicaInput { + s.Port = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateDBInstanceReadReplicaInput) SetPubliclyAccessible(v bool) *CreateDBInstanceReadReplicaInput { + s.PubliclyAccessible = &v + return s +} + +// SetSourceDBInstanceIdentifier sets the SourceDBInstanceIdentifier field's value. +func (s *CreateDBInstanceReadReplicaInput) SetSourceDBInstanceIdentifier(v string) *CreateDBInstanceReadReplicaInput { + s.SourceDBInstanceIdentifier = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *CreateDBInstanceReadReplicaInput) SetStorageType(v string) *CreateDBInstanceReadReplicaInput { + s.StorageType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBInstanceReadReplicaInput) SetTags(v []*Tag) *CreateDBInstanceReadReplicaInput { + s.Tags = v + return s +} + type CreateDBInstanceReadReplicaOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -9310,6 +10381,12 @@ func (s CreateDBInstanceReadReplicaOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *CreateDBInstanceReadReplicaOutput) SetDBInstance(v *DBInstance) *CreateDBInstanceReadReplicaOutput { + s.DBInstance = v + return s +} + type CreateDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -9325,13 +10402,13 @@ type CreateDBParameterGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // This value is stored as a lowercase string. + // This value is stored as a lowercase string. // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -9374,6 +10451,30 @@ func (s *CreateDBParameterGroupInput) Validate() error { return nil } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *CreateDBParameterGroupInput) SetDBParameterGroupFamily(v string) *CreateDBParameterGroupInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *CreateDBParameterGroupInput) SetDBParameterGroupName(v string) *CreateDBParameterGroupInput { + s.DBParameterGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDBParameterGroupInput) SetDescription(v string) *CreateDBParameterGroupInput { + s.Description = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBParameterGroupInput) SetTags(v []*Tag) *CreateDBParameterGroupInput { + s.Tags = v + return s +} + type CreateDBParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -9395,6 +10496,12 @@ func (s CreateDBParameterGroupOutput) GoString() string { return s.String() } +// SetDBParameterGroup sets the DBParameterGroup field's value. +func (s *CreateDBParameterGroupOutput) SetDBParameterGroup(v *DBParameterGroup) *CreateDBParameterGroupOutput { + s.DBParameterGroup = v + return s +} + type CreateDBSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -9407,15 +10514,15 @@ type CreateDBSecurityGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Must not be "Default" + // * Must not be "Default" // - // Example: mysecuritygroup + // Example: mysecuritygroup // // DBSecurityGroupName is a required field DBSecurityGroupName *string `type:"string" required:"true"` @@ -9450,20 +10557,38 @@ func (s *CreateDBSecurityGroupInput) Validate() error { return nil } +// SetDBSecurityGroupDescription sets the DBSecurityGroupDescription field's value. +func (s *CreateDBSecurityGroupInput) SetDBSecurityGroupDescription(v string) *CreateDBSecurityGroupInput { + s.DBSecurityGroupDescription = &v + return s +} + +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *CreateDBSecurityGroupInput) SetDBSecurityGroupName(v string) *CreateDBSecurityGroupInput { + s.DBSecurityGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBSecurityGroupInput) SetTags(v []*Tag) *CreateDBSecurityGroupInput { + s.Tags = v + return s +} + type CreateDBSecurityGroupOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups + // * DescribeDBSecurityGroups // - // AuthorizeDBSecurityGroupIngress + // * AuthorizeDBSecurityGroupIngress // - // CreateDBSecurityGroup + // * CreateDBSecurityGroup // - // RevokeDBSecurityGroupIngress + // * RevokeDBSecurityGroupIngress // - // This data type is used as a response element in the DescribeDBSecurityGroups + // This data type is used as a response element in the DescribeDBSecurityGroups // action. DBSecurityGroup *DBSecurityGroup `type:"structure"` } @@ -9478,6 +10603,12 @@ func (s CreateDBSecurityGroupOutput) GoString() string { return s.String() } +// SetDBSecurityGroup sets the DBSecurityGroup field's value. +func (s *CreateDBSecurityGroupOutput) SetDBSecurityGroup(v *DBSecurityGroup) *CreateDBSecurityGroupOutput { + s.DBSecurityGroup = v + return s +} + type CreateDBSnapshotInput struct { _ struct{} `type:"structure"` @@ -9485,11 +10616,11 @@ type CreateDBSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -9498,15 +10629,15 @@ type CreateDBSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-snapshot-id + // Example: my-snapshot-id // // DBSnapshotIdentifier is a required field DBSnapshotIdentifier *string `type:"string" required:"true"` @@ -9541,17 +10672,34 @@ func (s *CreateDBSnapshotInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *CreateDBSnapshotInput) SetDBInstanceIdentifier(v string) *CreateDBSnapshotInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *CreateDBSnapshotInput) SetDBSnapshotIdentifier(v string) *CreateDBSnapshotInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBSnapshotInput) SetTags(v []*Tag) *CreateDBSnapshotInput { + s.Tags = v + return s +} + type CreateDBSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot + // * CreateDBSnapshot // - // DeleteDBSnapshot + // * DeleteDBSnapshot // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // This data type is used as a response element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` } @@ -9565,6 +10713,12 @@ func (s CreateDBSnapshotOutput) GoString() string { return s.String() } +// SetDBSnapshot sets the DBSnapshot field's value. +func (s *CreateDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *CreateDBSnapshotOutput { + s.DBSnapshot = v + return s +} + type CreateDBSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -9621,20 +10775,44 @@ func (s *CreateDBSubnetGroupInput) Validate() error { return nil } +// SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value. +func (s *CreateDBSubnetGroupInput) SetDBSubnetGroupDescription(v string) *CreateDBSubnetGroupInput { + s.DBSubnetGroupDescription = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *CreateDBSubnetGroupInput) SetDBSubnetGroupName(v string) *CreateDBSubnetGroupInput { + s.DBSubnetGroupName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateDBSubnetGroupInput) SetSubnetIds(v []*string) *CreateDBSubnetGroupInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBSubnetGroupInput) SetTags(v []*Tag) *CreateDBSubnetGroupInput { + s.Tags = v + return s +} + type CreateDBSubnetGroupOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSubnetGroup + // * CreateDBSubnetGroup // - // ModifyDBSubnetGroup + // * ModifyDBSubnetGroup // - // DescribeDBSubnetGroups + // * DescribeDBSubnetGroups // - // DeleteDBSubnetGroup + // * DeleteDBSubnetGroup // - // This data type is used as a response element in the DescribeDBSubnetGroups + // This data type is used as a response element in the DescribeDBSubnetGroups // action. DBSubnetGroup *DBSubnetGroup `type:"structure"` } @@ -9649,6 +10827,12 @@ func (s CreateDBSubnetGroupOutput) GoString() string { return s.String() } +// SetDBSubnetGroup sets the DBSubnetGroup field's value. +func (s *CreateDBSubnetGroupOutput) SetDBSubnetGroup(v *DBSubnetGroup) *CreateDBSubnetGroupOutput { + s.DBSubnetGroup = v + return s +} + type CreateEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -9677,18 +10861,19 @@ type CreateEventSubscriptionInput struct { // // Constraints: // - // If SourceIds are supplied, SourceType must also be provided. + // * If SourceIds are supplied, SourceType must also be provided. // - // If the source type is a DB instance, then a DBInstanceIdentifier must - // be supplied. + // * If the source type is a DB instance, then a DBInstanceIdentifier must + // be supplied. // - // If the source type is a DB security group, a DBSecurityGroupName must - // be supplied. + // * If the source type is a DB security group, a DBSecurityGroupName must + // be supplied. // - // If the source type is a DB parameter group, a DBParameterGroupName must - // be supplied. + // * If the source type is a DB parameter group, a DBParameterGroupName must + // be supplied. // - // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied. + // * If the source type is a DB snapshot, a DBSnapshotIdentifier must be + // supplied. SourceIds []*string `locationNameList:"SourceId" type:"list"` // The type of source that will be generating the events. For example, if you @@ -9737,6 +10922,48 @@ func (s *CreateEventSubscriptionInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceIds sets the SourceIds field's value. +func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput { + s.SourceIds = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput { + s.Tags = v + return s +} + type CreateEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -9755,6 +10982,12 @@ func (s CreateEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput { + s.EventSubscription = v + return s +} + type CreateOptionGroupInput struct { _ struct{} `type:"structure"` @@ -9779,13 +11012,13 @@ type CreateOptionGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens + // * Must be 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: myoptiongroup + // Example: myoptiongroup // // OptionGroupName is a required field OptionGroupName *string `type:"string" required:"true"` @@ -9826,6 +11059,36 @@ func (s *CreateOptionGroupInput) Validate() error { return nil } +// SetEngineName sets the EngineName field's value. +func (s *CreateOptionGroupInput) SetEngineName(v string) *CreateOptionGroupInput { + s.EngineName = &v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *CreateOptionGroupInput) SetMajorEngineVersion(v string) *CreateOptionGroupInput { + s.MajorEngineVersion = &v + return s +} + +// SetOptionGroupDescription sets the OptionGroupDescription field's value. +func (s *CreateOptionGroupInput) SetOptionGroupDescription(v string) *CreateOptionGroupInput { + s.OptionGroupDescription = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *CreateOptionGroupInput) SetOptionGroupName(v string) *CreateOptionGroupInput { + s.OptionGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateOptionGroupInput) SetTags(v []*Tag) *CreateOptionGroupInput { + s.Tags = v + return s +} + type CreateOptionGroupOutput struct { _ struct{} `type:"structure"` @@ -9842,28 +11105,39 @@ func (s CreateOptionGroupOutput) GoString() string { return s.String() } +// SetOptionGroup sets the OptionGroup field's value. +func (s *CreateOptionGroupOutput) SetOptionGroup(v *OptionGroup) *CreateOptionGroupOutput { + s.OptionGroup = v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBCluster +// * CreateDBCluster // -// DeleteDBCluster +// * DeleteDBCluster // -// FailoverDBCluster +// * FailoverDBCluster // -// ModifyDBCluster +// * ModifyDBCluster // -// RestoreDBClusterFromSnapshot +// * RestoreDBClusterFromSnapshot // -// RestoreDBClusterToPointInTime +// * RestoreDBClusterToPointInTime // -// This data type is used as a response element in the DescribeDBClusters -// action. +// This data type is used as a response element in the DescribeDBClusters action. type DBCluster struct { _ struct{} `type:"structure"` // Specifies the allocated storage size in gigabytes (GB). AllocatedStorage *int64 `type:"integer"` + // Provides a list of the AWS Identity and Access Management (IAM) roles that + // are associated with the DB cluster. IAM roles that are associated with a + // DB cluster grant permission for the DB cluster to access other AWS services + // on your behalf. + AssociatedRoles []*DBClusterRole `locationNameList:"DBClusterRole" type:"list"` + // Provides the list of EC2 Availability Zones that instances in the DB cluster // can be created in. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"` @@ -9987,6 +11261,192 @@ func (s DBCluster) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBCluster) SetAllocatedStorage(v int64) *DBCluster { + s.AllocatedStorage = &v + return s +} + +// SetAssociatedRoles sets the AssociatedRoles field's value. +func (s *DBCluster) SetAssociatedRoles(v []*DBClusterRole) *DBCluster { + s.AssociatedRoles = v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DBCluster) SetAvailabilityZones(v []*string) *DBCluster { + s.AvailabilityZones = v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *DBCluster) SetBackupRetentionPeriod(v int64) *DBCluster { + s.BackupRetentionPeriod = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *DBCluster) SetCharacterSetName(v string) *DBCluster { + s.CharacterSetName = &v + return s +} + +// SetDBClusterArn sets the DBClusterArn field's value. +func (s *DBCluster) SetDBClusterArn(v string) *DBCluster { + s.DBClusterArn = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DBCluster) SetDBClusterIdentifier(v string) *DBCluster { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterMembers sets the DBClusterMembers field's value. +func (s *DBCluster) SetDBClusterMembers(v []*DBClusterMember) *DBCluster { + s.DBClusterMembers = v + return s +} + +// SetDBClusterOptionGroupMemberships sets the DBClusterOptionGroupMemberships field's value. +func (s *DBCluster) SetDBClusterOptionGroupMemberships(v []*DBClusterOptionGroupStatus) *DBCluster { + s.DBClusterOptionGroupMemberships = v + return s +} + +// SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value. +func (s *DBCluster) SetDBClusterParameterGroup(v string) *DBCluster { + s.DBClusterParameterGroup = &v + return s +} + +// SetDBSubnetGroup sets the DBSubnetGroup field's value. +func (s *DBCluster) SetDBSubnetGroup(v string) *DBCluster { + s.DBSubnetGroup = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *DBCluster) SetDatabaseName(v string) *DBCluster { + s.DatabaseName = &v + return s +} + +// SetDbClusterResourceId sets the DbClusterResourceId field's value. +func (s *DBCluster) SetDbClusterResourceId(v string) *DBCluster { + s.DbClusterResourceId = &v + return s +} + +// SetEarliestRestorableTime sets the EarliestRestorableTime field's value. +func (s *DBCluster) SetEarliestRestorableTime(v time.Time) *DBCluster { + s.EarliestRestorableTime = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *DBCluster) SetEndpoint(v string) *DBCluster { + s.Endpoint = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBCluster) SetEngine(v string) *DBCluster { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBCluster) SetEngineVersion(v string) *DBCluster { + s.EngineVersion = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *DBCluster) SetHostedZoneId(v string) *DBCluster { + s.HostedZoneId = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBCluster) SetKmsKeyId(v string) *DBCluster { + s.KmsKeyId = &v + return s +} + +// SetLatestRestorableTime sets the LatestRestorableTime field's value. +func (s *DBCluster) SetLatestRestorableTime(v time.Time) *DBCluster { + s.LatestRestorableTime = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBCluster) SetMasterUsername(v string) *DBCluster { + s.MasterUsername = &v + return s +} + +// SetPercentProgress sets the PercentProgress field's value. +func (s *DBCluster) SetPercentProgress(v string) *DBCluster { + s.PercentProgress = &v + return s +} + +// SetPort sets the Port field's value. +func (s *DBCluster) SetPort(v int64) *DBCluster { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *DBCluster) SetPreferredBackupWindow(v string) *DBCluster { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *DBCluster) SetPreferredMaintenanceWindow(v string) *DBCluster { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReadReplicaIdentifiers sets the ReadReplicaIdentifiers field's value. +func (s *DBCluster) SetReadReplicaIdentifiers(v []*string) *DBCluster { + s.ReadReplicaIdentifiers = v + return s +} + +// SetReaderEndpoint sets the ReaderEndpoint field's value. +func (s *DBCluster) SetReaderEndpoint(v string) *DBCluster { + s.ReaderEndpoint = &v + return s +} + +// SetReplicationSourceIdentifier sets the ReplicationSourceIdentifier field's value. +func (s *DBCluster) SetReplicationSourceIdentifier(v string) *DBCluster { + s.ReplicationSourceIdentifier = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBCluster) SetStatus(v string) *DBCluster { + s.Status = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *DBCluster) SetStorageEncrypted(v bool) *DBCluster { + s.StorageEncrypted = &v + return s +} + +// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. +func (s *DBCluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBCluster { + s.VpcSecurityGroups = v + return s +} + // Contains information about an instance that is part of a DB cluster. type DBClusterMember struct { _ struct{} `type:"structure"` @@ -10018,6 +11478,30 @@ func (s DBClusterMember) GoString() string { return s.String() } +// SetDBClusterParameterGroupStatus sets the DBClusterParameterGroupStatus field's value. +func (s *DBClusterMember) SetDBClusterParameterGroupStatus(v string) *DBClusterMember { + s.DBClusterParameterGroupStatus = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DBClusterMember) SetDBInstanceIdentifier(v string) *DBClusterMember { + s.DBInstanceIdentifier = &v + return s +} + +// SetIsClusterWriter sets the IsClusterWriter field's value. +func (s *DBClusterMember) SetIsClusterWriter(v bool) *DBClusterMember { + s.IsClusterWriter = &v + return s +} + +// SetPromotionTier sets the PromotionTier field's value. +func (s *DBClusterMember) SetPromotionTier(v int64) *DBClusterMember { + s.PromotionTier = &v + return s +} + // Contains status information for a DB cluster option group. type DBClusterOptionGroupStatus struct { _ struct{} `type:"structure"` @@ -10039,6 +11523,18 @@ func (s DBClusterOptionGroupStatus) GoString() string { return s.String() } +// SetDBClusterOptionGroupName sets the DBClusterOptionGroupName field's value. +func (s *DBClusterOptionGroupStatus) SetDBClusterOptionGroupName(v string) *DBClusterOptionGroupStatus { + s.DBClusterOptionGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBClusterOptionGroupStatus) SetStatus(v string) *DBClusterOptionGroupStatus { + s.Status = &v + return s +} + // Contains the result of a successful invocation of the CreateDBClusterParameterGroup // or CopyDBClusterParameterGroup action. // @@ -10073,6 +11569,30 @@ func (s DBClusterParameterGroup) GoString() string { return s.String() } +// SetDBClusterParameterGroupArn sets the DBClusterParameterGroupArn field's value. +func (s *DBClusterParameterGroup) SetDBClusterParameterGroupArn(v string) *DBClusterParameterGroup { + s.DBClusterParameterGroupArn = &v + return s +} + +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DBClusterParameterGroup) SetDBClusterParameterGroupName(v string) *DBClusterParameterGroup { + s.DBClusterParameterGroupName = &v + return s +} + +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DBClusterParameterGroup) SetDBParameterGroupFamily(v string) *DBClusterParameterGroup { + s.DBParameterGroupFamily = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DBClusterParameterGroup) SetDescription(v string) *DBClusterParameterGroup { + s.Description = &v + return s +} + type DBClusterParameterGroupNameMessage struct { _ struct{} `type:"structure"` @@ -10080,13 +11600,13 @@ type DBClusterParameterGroupNameMessage struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // This value is stored as a lowercase string. + // This value is stored as a lowercase string. DBClusterParameterGroupName *string `type:"string"` } @@ -10100,13 +11620,64 @@ func (s DBClusterParameterGroupNameMessage) GoString() string { return s.String() } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DBClusterParameterGroupNameMessage) SetDBClusterParameterGroupName(v string) *DBClusterParameterGroupNameMessage { + s.DBClusterParameterGroupName = &v + return s +} + +// Describes an AWS Identity and Access Management (IAM) role that is associated +// with a DB cluster. +type DBClusterRole struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the IAM role that is associated with the + // DB cluster. + RoleArn *string `type:"string"` + + // Describes the state of association between the IAM role and the DB cluster. + // The Status property returns one of the following values: + // + // * ACTIVE - the IAM role ARN is associated with the DB cluster and can + // be used to access other AWS services on your behalf. + // + // * PENDING - the IAM role ARN is being associated with the DB cluster. + // + // * INVALID - the IAM role ARN is associated with the DB cluster, but the + // DB cluster is unable to assume the IAM role in order to access other AWS + // services on your behalf. + Status *string `type:"string"` +} + +// String returns the string representation +func (s DBClusterRole) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DBClusterRole) GoString() string { + return s.String() +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DBClusterRole) SetRoleArn(v string) *DBClusterRole { + s.RoleArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBClusterRole) SetStatus(v string) *DBClusterRole { + s.Status = &v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBClusterSnapshot +// * CreateDBClusterSnapshot // -// DeleteDBClusterSnapshot +// * DeleteDBClusterSnapshot // -// This data type is used as a response element in the DescribeDBClusterSnapshots +// This data type is used as a response element in the DescribeDBClusterSnapshots // action. type DBClusterSnapshot struct { _ struct{} `type:"structure"` @@ -10182,6 +11753,114 @@ func (s DBClusterSnapshot) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBClusterSnapshot) SetAllocatedStorage(v int64) *DBClusterSnapshot { + s.AllocatedStorage = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DBClusterSnapshot) SetAvailabilityZones(v []*string) *DBClusterSnapshot { + s.AvailabilityZones = v + return s +} + +// SetClusterCreateTime sets the ClusterCreateTime field's value. +func (s *DBClusterSnapshot) SetClusterCreateTime(v time.Time) *DBClusterSnapshot { + s.ClusterCreateTime = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DBClusterSnapshot) SetDBClusterIdentifier(v string) *DBClusterSnapshot { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterSnapshotArn sets the DBClusterSnapshotArn field's value. +func (s *DBClusterSnapshot) SetDBClusterSnapshotArn(v string) *DBClusterSnapshot { + s.DBClusterSnapshotArn = &v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DBClusterSnapshot) SetDBClusterSnapshotIdentifier(v string) *DBClusterSnapshot { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBClusterSnapshot) SetEngine(v string) *DBClusterSnapshot { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBClusterSnapshot) SetEngineVersion(v string) *DBClusterSnapshot { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBClusterSnapshot) SetKmsKeyId(v string) *DBClusterSnapshot { + s.KmsKeyId = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DBClusterSnapshot) SetLicenseModel(v string) *DBClusterSnapshot { + s.LicenseModel = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBClusterSnapshot) SetMasterUsername(v string) *DBClusterSnapshot { + s.MasterUsername = &v + return s +} + +// SetPercentProgress sets the PercentProgress field's value. +func (s *DBClusterSnapshot) SetPercentProgress(v int64) *DBClusterSnapshot { + s.PercentProgress = &v + return s +} + +// SetPort sets the Port field's value. +func (s *DBClusterSnapshot) SetPort(v int64) *DBClusterSnapshot { + s.Port = &v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *DBClusterSnapshot) SetSnapshotCreateTime(v time.Time) *DBClusterSnapshot { + s.SnapshotCreateTime = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DBClusterSnapshot) SetSnapshotType(v string) *DBClusterSnapshot { + s.SnapshotType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBClusterSnapshot) SetStatus(v string) *DBClusterSnapshot { + s.Status = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *DBClusterSnapshot) SetStorageEncrypted(v bool) *DBClusterSnapshot { + s.StorageEncrypted = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBClusterSnapshot) SetVpcId(v string) *DBClusterSnapshot { + s.VpcId = &v + return s +} + // Contains the name and values of a manual DB cluster snapshot attribute. // // Manual DB cluster snapshot attributes are used to authorize other AWS accounts @@ -10199,11 +11878,11 @@ type DBClusterSnapshotAttribute struct { // The value(s) for the manual DB cluster snapshot attribute. // - // If the AttributeName field is set to restore, then this element returns - // a list of IDs of the AWS accounts that are authorized to copy or restore - // the manual DB cluster snapshot. If a value of all is in the list, then the - // manual DB cluster snapshot is public and available for any AWS account to - // copy or restore. + // If the AttributeName field is set to restore, then this element returns a + // list of IDs of the AWS accounts that are authorized to copy or restore the + // manual DB cluster snapshot. If a value of all is in the list, then the manual + // DB cluster snapshot is public and available for any AWS account to copy or + // restore. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"` } @@ -10217,6 +11896,18 @@ func (s DBClusterSnapshotAttribute) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *DBClusterSnapshotAttribute) SetAttributeName(v string) *DBClusterSnapshotAttribute { + s.AttributeName = &v + return s +} + +// SetAttributeValues sets the AttributeValues field's value. +func (s *DBClusterSnapshotAttribute) SetAttributeValues(v []*string) *DBClusterSnapshotAttribute { + s.AttributeValues = v + return s +} + // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes // API action. // @@ -10244,6 +11935,18 @@ func (s DBClusterSnapshotAttributesResult) GoString() string { return s.String() } +// SetDBClusterSnapshotAttributes sets the DBClusterSnapshotAttributes field's value. +func (s *DBClusterSnapshotAttributesResult) SetDBClusterSnapshotAttributes(v []*DBClusterSnapshotAttribute) *DBClusterSnapshotAttributesResult { + s.DBClusterSnapshotAttributes = v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DBClusterSnapshotAttributesResult) SetDBClusterSnapshotIdentifier(v string) *DBClusterSnapshotAttributesResult { + s.DBClusterSnapshotIdentifier = &v + return s +} + // This data type is used as a response element in the action DescribeDBEngineVersions. type DBEngineVersion struct { _ struct{} `type:"structure"` @@ -10290,16 +11993,69 @@ func (s DBEngineVersion) GoString() string { return s.String() } +// SetDBEngineDescription sets the DBEngineDescription field's value. +func (s *DBEngineVersion) SetDBEngineDescription(v string) *DBEngineVersion { + s.DBEngineDescription = &v + return s +} + +// SetDBEngineVersionDescription sets the DBEngineVersionDescription field's value. +func (s *DBEngineVersion) SetDBEngineVersionDescription(v string) *DBEngineVersion { + s.DBEngineVersionDescription = &v + return s +} + +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DBEngineVersion) SetDBParameterGroupFamily(v string) *DBEngineVersion { + s.DBParameterGroupFamily = &v + return s +} + +// SetDefaultCharacterSet sets the DefaultCharacterSet field's value. +func (s *DBEngineVersion) SetDefaultCharacterSet(v *CharacterSet) *DBEngineVersion { + s.DefaultCharacterSet = v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBEngineVersion) SetEngine(v string) *DBEngineVersion { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBEngineVersion) SetEngineVersion(v string) *DBEngineVersion { + s.EngineVersion = &v + return s +} + +// SetSupportedCharacterSets sets the SupportedCharacterSets field's value. +func (s *DBEngineVersion) SetSupportedCharacterSets(v []*CharacterSet) *DBEngineVersion { + s.SupportedCharacterSets = v + return s +} + +// SetSupportedTimezones sets the SupportedTimezones field's value. +func (s *DBEngineVersion) SetSupportedTimezones(v []*Timezone) *DBEngineVersion { + s.SupportedTimezones = v + return s +} + +// SetValidUpgradeTarget sets the ValidUpgradeTarget field's value. +func (s *DBEngineVersion) SetValidUpgradeTarget(v []*UpgradeTarget) *DBEngineVersion { + s.ValidUpgradeTarget = v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBInstance +// * CreateDBInstance // -// DeleteDBInstance +// * DeleteDBInstance // -// ModifyDBInstance +// * ModifyDBInstance // -// This data type is used as a response element in the DescribeDBInstances -// action. +// This data type is used as a response element in the DescribeDBInstances action. type DBInstance struct { _ struct{} `type:"structure"` @@ -10348,7 +12104,7 @@ type DBInstance struct { // when returning values from CreateDBInstanceReadReplica since Read Replicas // are only supported for these engines. // - // MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora + // MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora // // Contains the name of the initial database of this instance that was provided // at create time, if one was specified when the DB instance was created. This @@ -10356,7 +12112,7 @@ type DBInstance struct { // // Type: String // - // Oracle + // Oracle // // Contains the Oracle System ID (SID) of the created DB instance. Not shown // when the returned parameters do not apply to an Oracle DB instance. @@ -10457,15 +12213,14 @@ type DBInstance struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC:true + // * Default VPC:true // - // VPC:false + // * VPC:false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // Contains one or more identifiers of the Read Replicas associated with this @@ -10514,6 +12269,288 @@ func (s DBInstance) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBInstance) SetAllocatedStorage(v int64) *DBInstance { + s.AllocatedStorage = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *DBInstance) SetAutoMinorVersionUpgrade(v bool) *DBInstance { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DBInstance) SetAvailabilityZone(v string) *DBInstance { + s.AvailabilityZone = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *DBInstance) SetBackupRetentionPeriod(v int64) *DBInstance { + s.BackupRetentionPeriod = &v + return s +} + +// SetCACertificateIdentifier sets the CACertificateIdentifier field's value. +func (s *DBInstance) SetCACertificateIdentifier(v string) *DBInstance { + s.CACertificateIdentifier = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *DBInstance) SetCharacterSetName(v string) *DBInstance { + s.CharacterSetName = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *DBInstance) SetCopyTagsToSnapshot(v bool) *DBInstance { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DBInstance) SetDBClusterIdentifier(v string) *DBInstance { + s.DBClusterIdentifier = &v + return s +} + +// SetDBInstanceArn sets the DBInstanceArn field's value. +func (s *DBInstance) SetDBInstanceArn(v string) *DBInstance { + s.DBInstanceArn = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *DBInstance) SetDBInstanceClass(v string) *DBInstance { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DBInstance) SetDBInstanceIdentifier(v string) *DBInstance { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBInstanceStatus sets the DBInstanceStatus field's value. +func (s *DBInstance) SetDBInstanceStatus(v string) *DBInstance { + s.DBInstanceStatus = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *DBInstance) SetDBName(v string) *DBInstance { + s.DBName = &v + return s +} + +// SetDBParameterGroups sets the DBParameterGroups field's value. +func (s *DBInstance) SetDBParameterGroups(v []*DBParameterGroupStatus) *DBInstance { + s.DBParameterGroups = v + return s +} + +// SetDBSecurityGroups sets the DBSecurityGroups field's value. +func (s *DBInstance) SetDBSecurityGroups(v []*DBSecurityGroupMembership) *DBInstance { + s.DBSecurityGroups = v + return s +} + +// SetDBSubnetGroup sets the DBSubnetGroup field's value. +func (s *DBInstance) SetDBSubnetGroup(v *DBSubnetGroup) *DBInstance { + s.DBSubnetGroup = v + return s +} + +// SetDbInstancePort sets the DbInstancePort field's value. +func (s *DBInstance) SetDbInstancePort(v int64) *DBInstance { + s.DbInstancePort = &v + return s +} + +// SetDbiResourceId sets the DbiResourceId field's value. +func (s *DBInstance) SetDbiResourceId(v string) *DBInstance { + s.DbiResourceId = &v + return s +} + +// SetDomainMemberships sets the DomainMemberships field's value. +func (s *DBInstance) SetDomainMemberships(v []*DomainMembership) *DBInstance { + s.DomainMemberships = v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *DBInstance) SetEndpoint(v *Endpoint) *DBInstance { + s.Endpoint = v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBInstance) SetEngine(v string) *DBInstance { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBInstance) SetEngineVersion(v string) *DBInstance { + s.EngineVersion = &v + return s +} + +// SetEnhancedMonitoringResourceArn sets the EnhancedMonitoringResourceArn field's value. +func (s *DBInstance) SetEnhancedMonitoringResourceArn(v string) *DBInstance { + s.EnhancedMonitoringResourceArn = &v + return s +} + +// SetInstanceCreateTime sets the InstanceCreateTime field's value. +func (s *DBInstance) SetInstanceCreateTime(v time.Time) *DBInstance { + s.InstanceCreateTime = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *DBInstance) SetIops(v int64) *DBInstance { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBInstance) SetKmsKeyId(v string) *DBInstance { + s.KmsKeyId = &v + return s +} + +// SetLatestRestorableTime sets the LatestRestorableTime field's value. +func (s *DBInstance) SetLatestRestorableTime(v time.Time) *DBInstance { + s.LatestRestorableTime = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DBInstance) SetLicenseModel(v string) *DBInstance { + s.LicenseModel = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBInstance) SetMasterUsername(v string) *DBInstance { + s.MasterUsername = &v + return s +} + +// SetMonitoringInterval sets the MonitoringInterval field's value. +func (s *DBInstance) SetMonitoringInterval(v int64) *DBInstance { + s.MonitoringInterval = &v + return s +} + +// SetMonitoringRoleArn sets the MonitoringRoleArn field's value. +func (s *DBInstance) SetMonitoringRoleArn(v string) *DBInstance { + s.MonitoringRoleArn = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *DBInstance) SetMultiAZ(v bool) *DBInstance { + s.MultiAZ = &v + return s +} + +// SetOptionGroupMemberships sets the OptionGroupMemberships field's value. +func (s *DBInstance) SetOptionGroupMemberships(v []*OptionGroupMembership) *DBInstance { + s.OptionGroupMemberships = v + return s +} + +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *DBInstance) SetPendingModifiedValues(v *PendingModifiedValues) *DBInstance { + s.PendingModifiedValues = v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *DBInstance) SetPreferredBackupWindow(v string) *DBInstance { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *DBInstance) SetPreferredMaintenanceWindow(v string) *DBInstance { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPromotionTier sets the PromotionTier field's value. +func (s *DBInstance) SetPromotionTier(v int64) *DBInstance { + s.PromotionTier = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *DBInstance) SetPubliclyAccessible(v bool) *DBInstance { + s.PubliclyAccessible = &v + return s +} + +// SetReadReplicaDBInstanceIdentifiers sets the ReadReplicaDBInstanceIdentifiers field's value. +func (s *DBInstance) SetReadReplicaDBInstanceIdentifiers(v []*string) *DBInstance { + s.ReadReplicaDBInstanceIdentifiers = v + return s +} + +// SetReadReplicaSourceDBInstanceIdentifier sets the ReadReplicaSourceDBInstanceIdentifier field's value. +func (s *DBInstance) SetReadReplicaSourceDBInstanceIdentifier(v string) *DBInstance { + s.ReadReplicaSourceDBInstanceIdentifier = &v + return s +} + +// SetSecondaryAvailabilityZone sets the SecondaryAvailabilityZone field's value. +func (s *DBInstance) SetSecondaryAvailabilityZone(v string) *DBInstance { + s.SecondaryAvailabilityZone = &v + return s +} + +// SetStatusInfos sets the StatusInfos field's value. +func (s *DBInstance) SetStatusInfos(v []*DBInstanceStatusInfo) *DBInstance { + s.StatusInfos = v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *DBInstance) SetStorageEncrypted(v bool) *DBInstance { + s.StorageEncrypted = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *DBInstance) SetStorageType(v string) *DBInstance { + s.StorageType = &v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *DBInstance) SetTdeCredentialArn(v string) *DBInstance { + s.TdeCredentialArn = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *DBInstance) SetTimezone(v string) *DBInstance { + s.Timezone = &v + return s +} + +// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. +func (s *DBInstance) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBInstance { + s.VpcSecurityGroups = v + return s +} + // Provides a list of status information for a DB instance. type DBInstanceStatusInfo struct { _ struct{} `type:"structure"` @@ -10544,6 +12581,30 @@ func (s DBInstanceStatusInfo) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *DBInstanceStatusInfo) SetMessage(v string) *DBInstanceStatusInfo { + s.Message = &v + return s +} + +// SetNormal sets the Normal field's value. +func (s *DBInstanceStatusInfo) SetNormal(v bool) *DBInstanceStatusInfo { + s.Normal = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBInstanceStatusInfo) SetStatus(v string) *DBInstanceStatusInfo { + s.Status = &v + return s +} + +// SetStatusType sets the StatusType field's value. +func (s *DBInstanceStatusInfo) SetStatusType(v string) *DBInstanceStatusInfo { + s.StatusType = &v + return s +} + // Contains the result of a successful invocation of the CreateDBParameterGroup // action. // @@ -10576,6 +12637,30 @@ func (s DBParameterGroup) GoString() string { return s.String() } +// SetDBParameterGroupArn sets the DBParameterGroupArn field's value. +func (s *DBParameterGroup) SetDBParameterGroupArn(v string) *DBParameterGroup { + s.DBParameterGroupArn = &v + return s +} + +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DBParameterGroup) SetDBParameterGroupFamily(v string) *DBParameterGroup { + s.DBParameterGroupFamily = &v + return s +} + +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DBParameterGroup) SetDBParameterGroupName(v string) *DBParameterGroup { + s.DBParameterGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DBParameterGroup) SetDescription(v string) *DBParameterGroup { + s.Description = &v + return s +} + // Contains the result of a successful invocation of the ModifyDBParameterGroup // or ResetDBParameterGroup action. type DBParameterGroupNameMessage struct { @@ -10595,21 +12680,27 @@ func (s DBParameterGroupNameMessage) GoString() string { return s.String() } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DBParameterGroupNameMessage) SetDBParameterGroupName(v string) *DBParameterGroupNameMessage { + s.DBParameterGroupName = &v + return s +} + // The status of the DB parameter group. // // This data type is used as a response element in the following actions: // -// CreateDBInstance +// * CreateDBInstance // -// CreateDBInstanceReadReplica +// * CreateDBInstanceReadReplica // -// DeleteDBInstance +// * DeleteDBInstance // -// ModifyDBInstance +// * ModifyDBInstance // -// RebootDBInstance +// * RebootDBInstance // -// RestoreDBInstanceFromDBSnapshot +// * RestoreDBInstanceFromDBSnapshot type DBParameterGroupStatus struct { _ struct{} `type:"structure"` @@ -10630,17 +12721,29 @@ func (s DBParameterGroupStatus) GoString() string { return s.String() } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DBParameterGroupStatus) SetDBParameterGroupName(v string) *DBParameterGroupStatus { + s.DBParameterGroupName = &v + return s +} + +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *DBParameterGroupStatus) SetParameterApplyStatus(v string) *DBParameterGroupStatus { + s.ParameterApplyStatus = &v + return s +} + // Contains the result of a successful invocation of the following actions: // -// DescribeDBSecurityGroups +// * DescribeDBSecurityGroups // -// AuthorizeDBSecurityGroupIngress +// * AuthorizeDBSecurityGroupIngress // -// CreateDBSecurityGroup +// * CreateDBSecurityGroup // -// RevokeDBSecurityGroupIngress +// * RevokeDBSecurityGroupIngress // -// This data type is used as a response element in the DescribeDBSecurityGroups +// This data type is used as a response element in the DescribeDBSecurityGroups // action. type DBSecurityGroup struct { _ struct{} `type:"structure"` @@ -10677,15 +12780,57 @@ func (s DBSecurityGroup) GoString() string { return s.String() } +// SetDBSecurityGroupArn sets the DBSecurityGroupArn field's value. +func (s *DBSecurityGroup) SetDBSecurityGroupArn(v string) *DBSecurityGroup { + s.DBSecurityGroupArn = &v + return s +} + +// SetDBSecurityGroupDescription sets the DBSecurityGroupDescription field's value. +func (s *DBSecurityGroup) SetDBSecurityGroupDescription(v string) *DBSecurityGroup { + s.DBSecurityGroupDescription = &v + return s +} + +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *DBSecurityGroup) SetDBSecurityGroupName(v string) *DBSecurityGroup { + s.DBSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroups sets the EC2SecurityGroups field's value. +func (s *DBSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *DBSecurityGroup { + s.EC2SecurityGroups = v + return s +} + +// SetIPRanges sets the IPRanges field's value. +func (s *DBSecurityGroup) SetIPRanges(v []*IPRange) *DBSecurityGroup { + s.IPRanges = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *DBSecurityGroup) SetOwnerId(v string) *DBSecurityGroup { + s.OwnerId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBSecurityGroup) SetVpcId(v string) *DBSecurityGroup { + s.VpcId = &v + return s +} + // This data type is used as a response element in the following actions: // -// ModifyDBInstance +// * ModifyDBInstance // -// RebootDBInstance +// * RebootDBInstance // -// RestoreDBInstanceFromDBSnapshot +// * RestoreDBInstanceFromDBSnapshot // -// RestoreDBInstanceToPointInTime +// * RestoreDBInstanceToPointInTime type DBSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -10706,14 +12851,25 @@ func (s DBSecurityGroupMembership) GoString() string { return s.String() } +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *DBSecurityGroupMembership) SetDBSecurityGroupName(v string) *DBSecurityGroupMembership { + s.DBSecurityGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBSecurityGroupMembership) SetStatus(v string) *DBSecurityGroupMembership { + s.Status = &v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBSnapshot +// * CreateDBSnapshot // -// DeleteDBSnapshot +// * DeleteDBSnapshot // -// This data type is used as a response element in the DescribeDBSnapshots -// action. +// This data type is used as a response element in the DescribeDBSnapshots action. type DBSnapshot struct { _ struct{} `type:"structure"` @@ -10812,6 +12968,156 @@ func (s DBSnapshot) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBSnapshot) SetAllocatedStorage(v int64) *DBSnapshot { + s.AllocatedStorage = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DBSnapshot) SetAvailabilityZone(v string) *DBSnapshot { + s.AvailabilityZone = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DBSnapshot) SetDBInstanceIdentifier(v string) *DBSnapshot { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSnapshotArn sets the DBSnapshotArn field's value. +func (s *DBSnapshot) SetDBSnapshotArn(v string) *DBSnapshot { + s.DBSnapshotArn = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DBSnapshot) SetDBSnapshotIdentifier(v string) *DBSnapshot { + s.DBSnapshotIdentifier = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *DBSnapshot) SetEncrypted(v bool) *DBSnapshot { + s.Encrypted = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBSnapshot) SetEngine(v string) *DBSnapshot { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBSnapshot) SetEngineVersion(v string) *DBSnapshot { + s.EngineVersion = &v + return s +} + +// SetInstanceCreateTime sets the InstanceCreateTime field's value. +func (s *DBSnapshot) SetInstanceCreateTime(v time.Time) *DBSnapshot { + s.InstanceCreateTime = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *DBSnapshot) SetIops(v int64) *DBSnapshot { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBSnapshot) SetKmsKeyId(v string) *DBSnapshot { + s.KmsKeyId = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DBSnapshot) SetLicenseModel(v string) *DBSnapshot { + s.LicenseModel = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBSnapshot) SetMasterUsername(v string) *DBSnapshot { + s.MasterUsername = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *DBSnapshot) SetOptionGroupName(v string) *DBSnapshot { + s.OptionGroupName = &v + return s +} + +// SetPercentProgress sets the PercentProgress field's value. +func (s *DBSnapshot) SetPercentProgress(v int64) *DBSnapshot { + s.PercentProgress = &v + return s +} + +// SetPort sets the Port field's value. +func (s *DBSnapshot) SetPort(v int64) *DBSnapshot { + s.Port = &v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *DBSnapshot) SetSnapshotCreateTime(v time.Time) *DBSnapshot { + s.SnapshotCreateTime = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DBSnapshot) SetSnapshotType(v string) *DBSnapshot { + s.SnapshotType = &v + return s +} + +// SetSourceDBSnapshotIdentifier sets the SourceDBSnapshotIdentifier field's value. +func (s *DBSnapshot) SetSourceDBSnapshotIdentifier(v string) *DBSnapshot { + s.SourceDBSnapshotIdentifier = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *DBSnapshot) SetSourceRegion(v string) *DBSnapshot { + s.SourceRegion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBSnapshot) SetStatus(v string) *DBSnapshot { + s.Status = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *DBSnapshot) SetStorageType(v string) *DBSnapshot { + s.StorageType = &v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *DBSnapshot) SetTdeCredentialArn(v string) *DBSnapshot { + s.TdeCredentialArn = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *DBSnapshot) SetTimezone(v string) *DBSnapshot { + s.Timezone = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBSnapshot) SetVpcId(v string) *DBSnapshot { + s.VpcId = &v + return s +} + // Contains the name and values of a manual DB snapshot attribute // // Manual DB snapshot attributes are used to authorize other AWS accounts to @@ -10829,10 +13135,10 @@ type DBSnapshotAttribute struct { // The value or values for the manual DB snapshot attribute. // - // If the AttributeName field is set to restore, then this element returns - // a list of IDs of the AWS accounts that are authorized to copy or restore - // the manual DB snapshot. If a value of all is in the list, then the manual - // DB snapshot is public and available for any AWS account to copy or restore. + // If the AttributeName field is set to restore, then this element returns a + // list of IDs of the AWS accounts that are authorized to copy or restore the + // manual DB snapshot. If a value of all is in the list, then the manual DB + // snapshot is public and available for any AWS account to copy or restore. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"` } @@ -10846,6 +13152,18 @@ func (s DBSnapshotAttribute) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *DBSnapshotAttribute) SetAttributeName(v string) *DBSnapshotAttribute { + s.AttributeName = &v + return s +} + +// SetAttributeValues sets the AttributeValues field's value. +func (s *DBSnapshotAttribute) SetAttributeValues(v []*string) *DBSnapshotAttribute { + s.AttributeValues = v + return s +} + // Contains the results of a successful call to the DescribeDBSnapshotAttributes // API action. // @@ -10872,17 +13190,29 @@ func (s DBSnapshotAttributesResult) GoString() string { return s.String() } +// SetDBSnapshotAttributes sets the DBSnapshotAttributes field's value. +func (s *DBSnapshotAttributesResult) SetDBSnapshotAttributes(v []*DBSnapshotAttribute) *DBSnapshotAttributesResult { + s.DBSnapshotAttributes = v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DBSnapshotAttributesResult) SetDBSnapshotIdentifier(v string) *DBSnapshotAttributesResult { + s.DBSnapshotIdentifier = &v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBSubnetGroup +// * CreateDBSubnetGroup // -// ModifyDBSubnetGroup +// * ModifyDBSubnetGroup // -// DescribeDBSubnetGroups +// * DescribeDBSubnetGroups // -// DeleteDBSubnetGroup +// * DeleteDBSubnetGroup // -// This data type is used as a response element in the DescribeDBSubnetGroups +// This data type is used as a response element in the DescribeDBSubnetGroups // action. type DBSubnetGroup struct { _ struct{} `type:"structure"` @@ -10916,6 +13246,42 @@ func (s DBSubnetGroup) GoString() string { return s.String() } +// SetDBSubnetGroupArn sets the DBSubnetGroupArn field's value. +func (s *DBSubnetGroup) SetDBSubnetGroupArn(v string) *DBSubnetGroup { + s.DBSubnetGroupArn = &v + return s +} + +// SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value. +func (s *DBSubnetGroup) SetDBSubnetGroupDescription(v string) *DBSubnetGroup { + s.DBSubnetGroupDescription = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *DBSubnetGroup) SetDBSubnetGroupName(v string) *DBSubnetGroup { + s.DBSubnetGroupName = &v + return s +} + +// SetSubnetGroupStatus sets the SubnetGroupStatus field's value. +func (s *DBSubnetGroup) SetSubnetGroupStatus(v string) *DBSubnetGroup { + s.SubnetGroupStatus = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *DBSubnetGroup) SetSubnets(v []*Subnet) *DBSubnetGroup { + s.Subnets = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBSubnetGroup) SetVpcId(v string) *DBSubnetGroup { + s.VpcId = &v + return s +} + type DeleteDBClusterInput struct { _ struct{} `type:"structure"` @@ -10924,11 +13290,11 @@ type DeleteDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -10936,26 +13302,26 @@ type DeleteDBClusterInput struct { // The DB cluster snapshot identifier of the new DB cluster snapshot created // when SkipFinalSnapshot is set to false. // - // Specifying this parameter and also setting the SkipFinalShapshot parameter + // Specifying this parameter and also setting the SkipFinalShapshot parameter // to true results in an error. // - // Constraints: + // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens FinalDBSnapshotIdentifier *string `type:"string"` // Determines whether a final DB cluster snapshot is created before the DB cluster // is deleted. If true is specified, no DB cluster snapshot is created. If false // is specified, a DB cluster snapshot is created before the DB cluster is deleted. // - // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot + // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot // is false. // - // Default: false + // Default: false SkipFinalSnapshot *bool `type:"boolean"` } @@ -10982,25 +13348,42 @@ func (s *DeleteDBClusterInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DeleteDBClusterInput) SetDBClusterIdentifier(v string) *DeleteDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetFinalDBSnapshotIdentifier sets the FinalDBSnapshotIdentifier field's value. +func (s *DeleteDBClusterInput) SetFinalDBSnapshotIdentifier(v string) *DeleteDBClusterInput { + s.FinalDBSnapshotIdentifier = &v + return s +} + +// SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value. +func (s *DeleteDBClusterInput) SetSkipFinalSnapshot(v bool) *DeleteDBClusterInput { + s.SkipFinalSnapshot = &v + return s +} + type DeleteDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -11014,6 +13397,12 @@ func (s DeleteDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *DeleteDBClusterOutput) SetDBCluster(v *DBCluster) *DeleteDBClusterOutput { + s.DBCluster = v + return s +} + type DeleteDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -11021,11 +13410,11 @@ type DeleteDBClusterParameterGroupInput struct { // // Constraints: // - // Must be the name of an existing DB cluster parameter group. + // * Must be the name of an existing DB cluster parameter group. // - // You cannot delete a default DB cluster parameter group. + // * You cannot delete a default DB cluster parameter group. // - // Cannot be associated with any DB clusters. + // * Cannot be associated with any DB clusters. // // DBClusterParameterGroupName is a required field DBClusterParameterGroupName *string `type:"string" required:"true"` @@ -11054,6 +13443,12 @@ func (s *DeleteDBClusterParameterGroupInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DeleteDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *DeleteDBClusterParameterGroupInput { + s.DBClusterParameterGroupName = &v + return s +} + type DeleteDBClusterParameterGroupOutput struct { _ struct{} `type:"structure"` } @@ -11073,8 +13468,8 @@ type DeleteDBClusterSnapshotInput struct { // The identifier of the DB cluster snapshot to delete. // - // Constraints: Must be the name of an existing DB cluster snapshot in the - // available state. + // Constraints: Must be the name of an existing DB cluster snapshot in the available + // state. // // DBClusterSnapshotIdentifier is a required field DBClusterSnapshotIdentifier *string `type:"string" required:"true"` @@ -11103,16 +13498,22 @@ func (s *DeleteDBClusterSnapshotInput) Validate() error { return nil } +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DeleteDBClusterSnapshotInput) SetDBClusterSnapshotIdentifier(v string) *DeleteDBClusterSnapshotInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + type DeleteDBClusterSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot + // * CreateDBClusterSnapshot // - // DeleteDBClusterSnapshot + // * DeleteDBClusterSnapshot // - // This data type is used as a response element in the DescribeDBClusterSnapshots + // This data type is used as a response element in the DescribeDBClusterSnapshots // action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` } @@ -11127,6 +13528,12 @@ func (s DeleteDBClusterSnapshotOutput) GoString() string { return s.String() } +// SetDBClusterSnapshot sets the DBClusterSnapshot field's value. +func (s *DeleteDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *DeleteDBClusterSnapshotOutput { + s.DBClusterSnapshot = v + return s +} + type DeleteDBInstanceInput struct { _ struct{} `type:"structure"` @@ -11135,11 +13542,11 @@ type DeleteDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -11147,18 +13554,18 @@ type DeleteDBInstanceInput struct { // The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot // is set to false. // - // Specifying this parameter and also setting the SkipFinalShapshot parameter + // Specifying this parameter and also setting the SkipFinalShapshot parameter // to true results in an error. // - // Constraints: + // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Cannot be specified when deleting a Read Replica. + // * Cannot be specified when deleting a Read Replica. FinalDBSnapshotIdentifier *string `type:"string"` // Determines whether a final DB snapshot is created before the DB instance @@ -11171,10 +13578,10 @@ type DeleteDBInstanceInput struct { // // Specify true when deleting a Read Replica. // - // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot + // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot // is false. // - // Default: false + // Default: false SkipFinalSnapshot *bool `type:"boolean"` } @@ -11201,19 +13608,36 @@ func (s *DeleteDBInstanceInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DeleteDBInstanceInput) SetDBInstanceIdentifier(v string) *DeleteDBInstanceInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetFinalDBSnapshotIdentifier sets the FinalDBSnapshotIdentifier field's value. +func (s *DeleteDBInstanceInput) SetFinalDBSnapshotIdentifier(v string) *DeleteDBInstanceInput { + s.FinalDBSnapshotIdentifier = &v + return s +} + +// SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value. +func (s *DeleteDBInstanceInput) SetSkipFinalSnapshot(v bool) *DeleteDBInstanceInput { + s.SkipFinalSnapshot = &v + return s +} + type DeleteDBInstanceOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -11227,6 +13651,12 @@ func (s DeleteDBInstanceOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *DeleteDBInstanceOutput) SetDBInstance(v *DBInstance) *DeleteDBInstanceOutput { + s.DBInstance = v + return s +} + type DeleteDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -11234,11 +13664,11 @@ type DeleteDBParameterGroupInput struct { // // Constraints: // - // Must be the name of an existing DB parameter group + // * Must be the name of an existing DB parameter group // - // You cannot delete a default DB parameter group + // * You cannot delete a default DB parameter group // - // Cannot be associated with any DB instances + // * Cannot be associated with any DB instances // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -11267,6 +13697,12 @@ func (s *DeleteDBParameterGroupInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DeleteDBParameterGroupInput) SetDBParameterGroupName(v string) *DeleteDBParameterGroupInput { + s.DBParameterGroupName = &v + return s +} + type DeleteDBParameterGroupOutput struct { _ struct{} `type:"structure"` } @@ -11286,17 +13722,17 @@ type DeleteDBSecurityGroupInput struct { // The name of the DB security group to delete. // - // You cannot delete the default DB security group. + // You cannot delete the default DB security group. // - // Constraints: + // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Must not be "Default" + // * Must not be "Default" // // DBSecurityGroupName is a required field DBSecurityGroupName *string `type:"string" required:"true"` @@ -11325,6 +13761,12 @@ func (s *DeleteDBSecurityGroupInput) Validate() error { return nil } +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *DeleteDBSecurityGroupInput) SetDBSecurityGroupName(v string) *DeleteDBSecurityGroupInput { + s.DBSecurityGroupName = &v + return s +} + type DeleteDBSecurityGroupOutput struct { _ struct{} `type:"structure"` } @@ -11374,17 +13816,22 @@ func (s *DeleteDBSnapshotInput) Validate() error { return nil } +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DeleteDBSnapshotInput) SetDBSnapshotIdentifier(v string) *DeleteDBSnapshotInput { + s.DBSnapshotIdentifier = &v + return s +} + type DeleteDBSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot + // * CreateDBSnapshot // - // DeleteDBSnapshot + // * DeleteDBSnapshot // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // This data type is used as a response element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` } @@ -11398,14 +13845,20 @@ func (s DeleteDBSnapshotOutput) GoString() string { return s.String() } +// SetDBSnapshot sets the DBSnapshot field's value. +func (s *DeleteDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *DeleteDBSnapshotOutput { + s.DBSnapshot = v + return s +} + type DeleteDBSubnetGroupInput struct { _ struct{} `type:"structure"` // The name of the database subnet group to delete. // - // You cannot delete the default subnet group. + // You cannot delete the default subnet group. // - // Constraints: + // Constraints: // // Constraints: Must contain no more than 255 alphanumeric characters, periods, // underscores, spaces, or hyphens. Must not be default. @@ -11439,6 +13892,12 @@ func (s *DeleteDBSubnetGroupInput) Validate() error { return nil } +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *DeleteDBSubnetGroupInput) SetDBSubnetGroupName(v string) *DeleteDBSubnetGroupInput { + s.DBSubnetGroupName = &v + return s +} + type DeleteDBSubnetGroupOutput struct { _ struct{} `type:"structure"` } @@ -11485,6 +13944,12 @@ func (s *DeleteEventSubscriptionInput) Validate() error { return nil } +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DeleteEventSubscriptionInput) SetSubscriptionName(v string) *DeleteEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + type DeleteEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -11503,12 +13968,18 @@ func (s DeleteEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *DeleteEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *DeleteEventSubscriptionOutput { + s.EventSubscription = v + return s +} + type DeleteOptionGroupInput struct { _ struct{} `type:"structure"` // The name of the option group to be deleted. // - // You cannot delete default option groups. + // You cannot delete default option groups. // // OptionGroupName is a required field OptionGroupName *string `type:"string" required:"true"` @@ -11537,6 +14008,12 @@ func (s *DeleteOptionGroupInput) Validate() error { return nil } +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *DeleteOptionGroupInput) SetOptionGroupName(v string) *DeleteOptionGroupInput { + s.OptionGroupName = &v + return s +} + type DeleteOptionGroupOutput struct { _ struct{} `type:"structure"` } @@ -11584,6 +14061,12 @@ func (s DescribeAccountAttributesOutput) GoString() string { return s.String() } +// SetAccountQuotas sets the AccountQuotas field's value. +func (s *DescribeAccountAttributesOutput) SetAccountQuotas(v []*AccountQuota) *DescribeAccountAttributesOutput { + s.AccountQuotas = v + return s +} + type DescribeCertificatesInput struct { _ struct{} `type:"structure"` @@ -11593,11 +14076,11 @@ type DescribeCertificatesInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens CertificateIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -11648,6 +14131,30 @@ func (s *DescribeCertificatesInput) Validate() error { return nil } +// SetCertificateIdentifier sets the CertificateIdentifier field's value. +func (s *DescribeCertificatesInput) SetCertificateIdentifier(v string) *DescribeCertificatesInput { + s.CertificateIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeCertificatesInput) SetFilters(v []*Filter) *DescribeCertificatesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCertificatesInput) SetMarker(v string) *DescribeCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCertificatesInput) SetMaxRecords(v int64) *DescribeCertificatesInput { + s.MaxRecords = &v + return s +} + // Data returned by the DescribeCertificates action. type DescribeCertificatesOutput struct { _ struct{} `type:"structure"` @@ -11671,6 +14178,18 @@ func (s DescribeCertificatesOutput) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *DescribeCertificatesOutput) SetCertificates(v []*Certificate) *DescribeCertificatesOutput { + s.Certificates = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCertificatesOutput) SetMarker(v string) *DescribeCertificatesOutput { + s.Marker = &v + return s +} + type DescribeDBClusterParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -11678,11 +14197,11 @@ type DescribeDBClusterParameterGroupsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string"` // This parameter is not currently supported. @@ -11733,6 +14252,30 @@ func (s *DescribeDBClusterParameterGroupsInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DescribeDBClusterParameterGroupsInput) SetDBClusterParameterGroupName(v string) *DescribeDBClusterParameterGroupsInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClusterParameterGroupsInput) SetFilters(v []*Filter) *DescribeDBClusterParameterGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterParameterGroupsInput) SetMarker(v string) *DescribeDBClusterParameterGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClusterParameterGroupsInput) SetMaxRecords(v int64) *DescribeDBClusterParameterGroupsInput { + s.MaxRecords = &v + return s +} + type DescribeDBClusterParameterGroupsOutput struct { _ struct{} `type:"structure"` @@ -11755,6 +14298,18 @@ func (s DescribeDBClusterParameterGroupsOutput) GoString() string { return s.String() } +// SetDBClusterParameterGroups sets the DBClusterParameterGroups field's value. +func (s *DescribeDBClusterParameterGroupsOutput) SetDBClusterParameterGroups(v []*DBClusterParameterGroup) *DescribeDBClusterParameterGroupsOutput { + s.DBClusterParameterGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterParameterGroupsOutput) SetMarker(v string) *DescribeDBClusterParameterGroupsOutput { + s.Marker = &v + return s +} + type DescribeDBClusterParametersInput struct { _ struct{} `type:"structure"` @@ -11763,11 +14318,11 @@ type DescribeDBClusterParametersInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBClusterParameterGroupName is a required field DBClusterParameterGroupName *string `type:"string" required:"true"` @@ -11827,6 +14382,36 @@ func (s *DescribeDBClusterParametersInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DescribeDBClusterParametersInput) SetDBClusterParameterGroupName(v string) *DescribeDBClusterParametersInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClusterParametersInput) SetFilters(v []*Filter) *DescribeDBClusterParametersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterParametersInput) SetMarker(v string) *DescribeDBClusterParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClusterParametersInput) SetMaxRecords(v int64) *DescribeDBClusterParametersInput { + s.MaxRecords = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DescribeDBClusterParametersInput) SetSource(v string) *DescribeDBClusterParametersInput { + s.Source = &v + return s +} + // Provides details about a DB cluster parameter group including the parameters // in the DB cluster parameter group. type DescribeDBClusterParametersOutput struct { @@ -11851,6 +14436,18 @@ func (s DescribeDBClusterParametersOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterParametersOutput) SetMarker(v string) *DescribeDBClusterParametersOutput { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeDBClusterParametersOutput) SetParameters(v []*Parameter) *DescribeDBClusterParametersOutput { + s.Parameters = v + return s +} + type DescribeDBClusterSnapshotAttributesInput struct { _ struct{} `type:"structure"` @@ -11883,6 +14480,12 @@ func (s *DescribeDBClusterSnapshotAttributesInput) Validate() error { return nil } +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DescribeDBClusterSnapshotAttributesInput) SetDBClusterSnapshotIdentifier(v string) *DescribeDBClusterSnapshotAttributesInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + type DescribeDBClusterSnapshotAttributesOutput struct { _ struct{} `type:"structure"` @@ -11905,6 +14508,12 @@ func (s DescribeDBClusterSnapshotAttributesOutput) GoString() string { return s.String() } +// SetDBClusterSnapshotAttributesResult sets the DBClusterSnapshotAttributesResult field's value. +func (s *DescribeDBClusterSnapshotAttributesOutput) SetDBClusterSnapshotAttributesResult(v *DBClusterSnapshotAttributesResult) *DescribeDBClusterSnapshotAttributesOutput { + s.DBClusterSnapshotAttributesResult = v + return s +} + type DescribeDBClusterSnapshotsInput struct { _ struct{} `type:"structure"` @@ -11914,11 +14523,11 @@ type DescribeDBClusterSnapshotsInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` // A specific DB cluster snapshot identifier to describe. This parameter cannot @@ -11927,14 +14536,14 @@ type DescribeDBClusterSnapshotsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // If this identifier is for an automated snapshot, the SnapshotType parameter - // must also be specified. + // * If this identifier is for an automated snapshot, the SnapshotType parameter + // must also be specified. DBClusterSnapshotIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -11973,18 +14582,18 @@ type DescribeDBClusterSnapshotsInput struct { // The type of DB cluster snapshots to be returned. You can specify one of the // following values: // - // automated - Return all DB cluster snapshots that have been automatically - // taken by Amazon RDS for my AWS account. + // * automated - Return all DB cluster snapshots that have been automatically + // taken by Amazon RDS for my AWS account. // - // manual - Return all DB cluster snapshots that have been taken by my AWS - // account. + // * manual - Return all DB cluster snapshots that have been taken by my + // AWS account. // - // shared - Return all manual DB cluster snapshots that have been shared - // to my AWS account. + // * shared - Return all manual DB cluster snapshots that have been shared + // to my AWS account. // - // public - Return all DB cluster snapshots that have been marked as public. + // * public - Return all DB cluster snapshots that have been marked as public. // - // If you don't specify a SnapshotType value, then both automated and manual + // If you don't specify a SnapshotType value, then both automated and manual // DB cluster snapshots are returned. You can include shared DB cluster snapshots // with these results by setting the IncludeShared parameter to true. You can // include public DB cluster snapshots with these results by setting the IncludePublic @@ -12027,6 +14636,54 @@ func (s *DescribeDBClusterSnapshotsInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DescribeDBClusterSnapshotsInput) SetDBClusterIdentifier(v string) *DescribeDBClusterSnapshotsInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DescribeDBClusterSnapshotsInput) SetDBClusterSnapshotIdentifier(v string) *DescribeDBClusterSnapshotsInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClusterSnapshotsInput) SetFilters(v []*Filter) *DescribeDBClusterSnapshotsInput { + s.Filters = v + return s +} + +// SetIncludePublic sets the IncludePublic field's value. +func (s *DescribeDBClusterSnapshotsInput) SetIncludePublic(v bool) *DescribeDBClusterSnapshotsInput { + s.IncludePublic = &v + return s +} + +// SetIncludeShared sets the IncludeShared field's value. +func (s *DescribeDBClusterSnapshotsInput) SetIncludeShared(v bool) *DescribeDBClusterSnapshotsInput { + s.IncludeShared = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterSnapshotsInput) SetMarker(v string) *DescribeDBClusterSnapshotsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClusterSnapshotsInput) SetMaxRecords(v int64) *DescribeDBClusterSnapshotsInput { + s.MaxRecords = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DescribeDBClusterSnapshotsInput) SetSnapshotType(v string) *DescribeDBClusterSnapshotsInput { + s.SnapshotType = &v + return s +} + // Provides a list of DB cluster snapshots for the user as the result of a call // to the DescribeDBClusterSnapshots action. type DescribeDBClusterSnapshotsOutput struct { @@ -12051,6 +14708,18 @@ func (s DescribeDBClusterSnapshotsOutput) GoString() string { return s.String() } +// SetDBClusterSnapshots sets the DBClusterSnapshots field's value. +func (s *DescribeDBClusterSnapshotsOutput) SetDBClusterSnapshots(v []*DBClusterSnapshot) *DescribeDBClusterSnapshotsOutput { + s.DBClusterSnapshots = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterSnapshotsOutput) SetMarker(v string) *DescribeDBClusterSnapshotsOutput { + s.Marker = &v + return s +} + type DescribeDBClustersInput struct { _ struct{} `type:"structure"` @@ -12060,11 +14729,11 @@ type DescribeDBClustersInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -12115,6 +14784,30 @@ func (s *DescribeDBClustersInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DescribeDBClustersInput) SetDBClusterIdentifier(v string) *DescribeDBClustersInput { + s.DBClusterIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClustersInput) SetFilters(v []*Filter) *DescribeDBClustersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClustersInput) SetMarker(v string) *DescribeDBClustersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClustersInput) SetMaxRecords(v int64) *DescribeDBClustersInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBClusters // action. type DescribeDBClustersOutput struct { @@ -12137,6 +14830,18 @@ func (s DescribeDBClustersOutput) GoString() string { return s.String() } +// SetDBClusters sets the DBClusters field's value. +func (s *DescribeDBClustersOutput) SetDBClusters(v []*DBCluster) *DescribeDBClustersOutput { + s.DBClusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClustersOutput) SetMarker(v string) *DescribeDBClustersOutput { + s.Marker = &v + return s +} + type DescribeDBEngineVersionsInput struct { _ struct{} `type:"structure"` @@ -12144,11 +14849,11 @@ type DescribeDBEngineVersionsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupFamily *string `type:"string"` // Indicates that only the default version of the specified engine or engine @@ -12221,6 +14926,60 @@ func (s *DescribeDBEngineVersionsInput) Validate() error { return nil } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DescribeDBEngineVersionsInput) SetDBParameterGroupFamily(v string) *DescribeDBEngineVersionsInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetDefaultOnly sets the DefaultOnly field's value. +func (s *DescribeDBEngineVersionsInput) SetDefaultOnly(v bool) *DescribeDBEngineVersionsInput { + s.DefaultOnly = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DescribeDBEngineVersionsInput) SetEngine(v string) *DescribeDBEngineVersionsInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DescribeDBEngineVersionsInput) SetEngineVersion(v string) *DescribeDBEngineVersionsInput { + s.EngineVersion = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBEngineVersionsInput) SetFilters(v []*Filter) *DescribeDBEngineVersionsInput { + s.Filters = v + return s +} + +// SetListSupportedCharacterSets sets the ListSupportedCharacterSets field's value. +func (s *DescribeDBEngineVersionsInput) SetListSupportedCharacterSets(v bool) *DescribeDBEngineVersionsInput { + s.ListSupportedCharacterSets = &v + return s +} + +// SetListSupportedTimezones sets the ListSupportedTimezones field's value. +func (s *DescribeDBEngineVersionsInput) SetListSupportedTimezones(v bool) *DescribeDBEngineVersionsInput { + s.ListSupportedTimezones = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBEngineVersionsInput) SetMarker(v string) *DescribeDBEngineVersionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBEngineVersionsInput) SetMaxRecords(v int64) *DescribeDBEngineVersionsInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBEngineVersions // action. type DescribeDBEngineVersionsOutput struct { @@ -12245,6 +15004,18 @@ func (s DescribeDBEngineVersionsOutput) GoString() string { return s.String() } +// SetDBEngineVersions sets the DBEngineVersions field's value. +func (s *DescribeDBEngineVersionsOutput) SetDBEngineVersions(v []*DBEngineVersion) *DescribeDBEngineVersionsOutput { + s.DBEngineVersions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBEngineVersionsOutput) SetMarker(v string) *DescribeDBEngineVersionsOutput { + s.Marker = &v + return s +} + type DescribeDBInstancesInput struct { _ struct{} `type:"structure"` @@ -12253,11 +15024,11 @@ type DescribeDBInstancesInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -12308,6 +15079,30 @@ func (s *DescribeDBInstancesInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DescribeDBInstancesInput) SetDBInstanceIdentifier(v string) *DescribeDBInstancesInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBInstancesInput) SetFilters(v []*Filter) *DescribeDBInstancesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBInstancesInput) SetMarker(v string) *DescribeDBInstancesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBInstancesInput) SetMaxRecords(v int64) *DescribeDBInstancesInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBInstances // action. type DescribeDBInstancesOutput struct { @@ -12332,6 +15127,18 @@ func (s DescribeDBInstancesOutput) GoString() string { return s.String() } +// SetDBInstances sets the DBInstances field's value. +func (s *DescribeDBInstancesOutput) SetDBInstances(v []*DBInstance) *DescribeDBInstancesOutput { + s.DBInstances = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBInstancesOutput) SetMarker(v string) *DescribeDBInstancesOutput { + s.Marker = &v + return s +} + // This data type is used as a response element to DescribeDBLogFiles. type DescribeDBLogFilesDetails struct { _ struct{} `type:"structure"` @@ -12356,6 +15163,24 @@ func (s DescribeDBLogFilesDetails) GoString() string { return s.String() } +// SetLastWritten sets the LastWritten field's value. +func (s *DescribeDBLogFilesDetails) SetLastWritten(v int64) *DescribeDBLogFilesDetails { + s.LastWritten = &v + return s +} + +// SetLogFileName sets the LogFileName field's value. +func (s *DescribeDBLogFilesDetails) SetLogFileName(v string) *DescribeDBLogFilesDetails { + s.LogFileName = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DescribeDBLogFilesDetails) SetSize(v int64) *DescribeDBLogFilesDetails { + s.Size = &v + return s +} + type DescribeDBLogFilesInput struct { _ struct{} `type:"structure"` @@ -12364,11 +15189,11 @@ type DescribeDBLogFilesInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -12431,6 +15256,48 @@ func (s *DescribeDBLogFilesInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DescribeDBLogFilesInput) SetDBInstanceIdentifier(v string) *DescribeDBLogFilesInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetFileLastWritten sets the FileLastWritten field's value. +func (s *DescribeDBLogFilesInput) SetFileLastWritten(v int64) *DescribeDBLogFilesInput { + s.FileLastWritten = &v + return s +} + +// SetFileSize sets the FileSize field's value. +func (s *DescribeDBLogFilesInput) SetFileSize(v int64) *DescribeDBLogFilesInput { + s.FileSize = &v + return s +} + +// SetFilenameContains sets the FilenameContains field's value. +func (s *DescribeDBLogFilesInput) SetFilenameContains(v string) *DescribeDBLogFilesInput { + s.FilenameContains = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBLogFilesInput) SetFilters(v []*Filter) *DescribeDBLogFilesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBLogFilesInput) SetMarker(v string) *DescribeDBLogFilesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBLogFilesInput) SetMaxRecords(v int64) *DescribeDBLogFilesInput { + s.MaxRecords = &v + return s +} + // The response from a call to DescribeDBLogFiles. type DescribeDBLogFilesOutput struct { _ struct{} `type:"structure"` @@ -12452,6 +15319,18 @@ func (s DescribeDBLogFilesOutput) GoString() string { return s.String() } +// SetDescribeDBLogFiles sets the DescribeDBLogFiles field's value. +func (s *DescribeDBLogFilesOutput) SetDescribeDBLogFiles(v []*DescribeDBLogFilesDetails) *DescribeDBLogFilesOutput { + s.DescribeDBLogFiles = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBLogFilesOutput) SetMarker(v string) *DescribeDBLogFilesOutput { + s.Marker = &v + return s +} + type DescribeDBParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -12459,11 +15338,11 @@ type DescribeDBParameterGroupsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupName *string `type:"string"` // This parameter is not currently supported. @@ -12514,6 +15393,30 @@ func (s *DescribeDBParameterGroupsInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DescribeDBParameterGroupsInput) SetDBParameterGroupName(v string) *DescribeDBParameterGroupsInput { + s.DBParameterGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBParameterGroupsInput) SetFilters(v []*Filter) *DescribeDBParameterGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBParameterGroupsInput) SetMarker(v string) *DescribeDBParameterGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBParameterGroupsInput) SetMaxRecords(v int64) *DescribeDBParameterGroupsInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBParameterGroups // action. type DescribeDBParameterGroupsOutput struct { @@ -12538,6 +15441,18 @@ func (s DescribeDBParameterGroupsOutput) GoString() string { return s.String() } +// SetDBParameterGroups sets the DBParameterGroups field's value. +func (s *DescribeDBParameterGroupsOutput) SetDBParameterGroups(v []*DBParameterGroup) *DescribeDBParameterGroupsOutput { + s.DBParameterGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBParameterGroupsOutput) SetMarker(v string) *DescribeDBParameterGroupsOutput { + s.Marker = &v + return s +} + type DescribeDBParametersInput struct { _ struct{} `type:"structure"` @@ -12545,11 +15460,11 @@ type DescribeDBParametersInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -12612,6 +15527,36 @@ func (s *DescribeDBParametersInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DescribeDBParametersInput) SetDBParameterGroupName(v string) *DescribeDBParametersInput { + s.DBParameterGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBParametersInput) SetFilters(v []*Filter) *DescribeDBParametersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBParametersInput) SetMarker(v string) *DescribeDBParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBParametersInput) SetMaxRecords(v int64) *DescribeDBParametersInput { + s.MaxRecords = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DescribeDBParametersInput) SetSource(v string) *DescribeDBParametersInput { + s.Source = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBParameters // action. type DescribeDBParametersOutput struct { @@ -12636,6 +15581,18 @@ func (s DescribeDBParametersOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeDBParametersOutput) SetMarker(v string) *DescribeDBParametersOutput { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeDBParametersOutput) SetParameters(v []*Parameter) *DescribeDBParametersOutput { + s.Parameters = v + return s +} + type DescribeDBSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -12690,6 +15647,30 @@ func (s *DescribeDBSecurityGroupsInput) Validate() error { return nil } +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *DescribeDBSecurityGroupsInput) SetDBSecurityGroupName(v string) *DescribeDBSecurityGroupsInput { + s.DBSecurityGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBSecurityGroupsInput) SetFilters(v []*Filter) *DescribeDBSecurityGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSecurityGroupsInput) SetMarker(v string) *DescribeDBSecurityGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBSecurityGroupsInput) SetMaxRecords(v int64) *DescribeDBSecurityGroupsInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBSecurityGroups // action. type DescribeDBSecurityGroupsOutput struct { @@ -12714,6 +15695,18 @@ func (s DescribeDBSecurityGroupsOutput) GoString() string { return s.String() } +// SetDBSecurityGroups sets the DBSecurityGroups field's value. +func (s *DescribeDBSecurityGroupsOutput) SetDBSecurityGroups(v []*DBSecurityGroup) *DescribeDBSecurityGroupsOutput { + s.DBSecurityGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSecurityGroupsOutput) SetMarker(v string) *DescribeDBSecurityGroupsOutput { + s.Marker = &v + return s +} + type DescribeDBSnapshotAttributesInput struct { _ struct{} `type:"structure"` @@ -12746,6 +15739,12 @@ func (s *DescribeDBSnapshotAttributesInput) Validate() error { return nil } +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DescribeDBSnapshotAttributesInput) SetDBSnapshotIdentifier(v string) *DescribeDBSnapshotAttributesInput { + s.DBSnapshotIdentifier = &v + return s +} + type DescribeDBSnapshotAttributesOutput struct { _ struct{} `type:"structure"` @@ -12768,6 +15767,12 @@ func (s DescribeDBSnapshotAttributesOutput) GoString() string { return s.String() } +// SetDBSnapshotAttributesResult sets the DBSnapshotAttributesResult field's value. +func (s *DescribeDBSnapshotAttributesOutput) SetDBSnapshotAttributesResult(v *DBSnapshotAttributesResult) *DescribeDBSnapshotAttributesOutput { + s.DBSnapshotAttributesResult = v + return s +} + type DescribeDBSnapshotsInput struct { _ struct{} `type:"structure"` @@ -12777,11 +15782,11 @@ type DescribeDBSnapshotsInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string"` // A specific DB snapshot identifier to describe. This parameter cannot be used @@ -12790,14 +15795,14 @@ type DescribeDBSnapshotsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters. + // * Must be 1 to 255 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // If this identifier is for an automated snapshot, the SnapshotType parameter - // must also be specified. + // * If this identifier is for an automated snapshot, the SnapshotType parameter + // must also be specified. DBSnapshotIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -12836,17 +15841,17 @@ type DescribeDBSnapshotsInput struct { // The type of snapshots to be returned. You can specify one of the following // values: // - // automated - Return all DB snapshots that have been automatically taken - // by Amazon RDS for my AWS account. + // * automated - Return all DB snapshots that have been automatically taken + // by Amazon RDS for my AWS account. // - // manual - Return all DB snapshots that have been taken by my AWS account. + // * manual - Return all DB snapshots that have been taken by my AWS account. // - // shared - Return all manual DB snapshots that have been shared to my AWS - // account. + // * shared - Return all manual DB snapshots that have been shared to my + // AWS account. // - // public - Return all DB snapshots that have been marked as public. + // * public - Return all DB snapshots that have been marked as public. // - // If you don't specify a SnapshotType value, then both automated and manual + // If you don't specify a SnapshotType value, then both automated and manual // snapshots are returned. Shared and public DB snapshots are not included in // the returned results by default. You can include shared snapshots with these // results by setting the IncludeShared parameter to true. You can include public @@ -12889,6 +15894,54 @@ func (s *DescribeDBSnapshotsInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DescribeDBSnapshotsInput) SetDBInstanceIdentifier(v string) *DescribeDBSnapshotsInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DescribeDBSnapshotsInput) SetDBSnapshotIdentifier(v string) *DescribeDBSnapshotsInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBSnapshotsInput) SetFilters(v []*Filter) *DescribeDBSnapshotsInput { + s.Filters = v + return s +} + +// SetIncludePublic sets the IncludePublic field's value. +func (s *DescribeDBSnapshotsInput) SetIncludePublic(v bool) *DescribeDBSnapshotsInput { + s.IncludePublic = &v + return s +} + +// SetIncludeShared sets the IncludeShared field's value. +func (s *DescribeDBSnapshotsInput) SetIncludeShared(v bool) *DescribeDBSnapshotsInput { + s.IncludeShared = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSnapshotsInput) SetMarker(v string) *DescribeDBSnapshotsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBSnapshotsInput) SetMaxRecords(v int64) *DescribeDBSnapshotsInput { + s.MaxRecords = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DescribeDBSnapshotsInput) SetSnapshotType(v string) *DescribeDBSnapshotsInput { + s.SnapshotType = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBSnapshots // action. type DescribeDBSnapshotsOutput struct { @@ -12913,6 +15966,18 @@ func (s DescribeDBSnapshotsOutput) GoString() string { return s.String() } +// SetDBSnapshots sets the DBSnapshots field's value. +func (s *DescribeDBSnapshotsOutput) SetDBSnapshots(v []*DBSnapshot) *DescribeDBSnapshotsOutput { + s.DBSnapshots = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSnapshotsOutput) SetMarker(v string) *DescribeDBSnapshotsOutput { + s.Marker = &v + return s +} + type DescribeDBSubnetGroupsInput struct { _ struct{} `type:"structure"` @@ -12967,6 +16032,30 @@ func (s *DescribeDBSubnetGroupsInput) Validate() error { return nil } +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *DescribeDBSubnetGroupsInput) SetDBSubnetGroupName(v string) *DescribeDBSubnetGroupsInput { + s.DBSubnetGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBSubnetGroupsInput) SetFilters(v []*Filter) *DescribeDBSubnetGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSubnetGroupsInput) SetMarker(v string) *DescribeDBSubnetGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBSubnetGroupsInput) SetMaxRecords(v int64) *DescribeDBSubnetGroupsInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBSubnetGroups // action. type DescribeDBSubnetGroupsOutput struct { @@ -12991,6 +16080,18 @@ func (s DescribeDBSubnetGroupsOutput) GoString() string { return s.String() } +// SetDBSubnetGroups sets the DBSubnetGroups field's value. +func (s *DescribeDBSubnetGroupsOutput) SetDBSubnetGroups(v []*DBSubnetGroup) *DescribeDBSubnetGroupsOutput { + s.DBSubnetGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSubnetGroupsOutput) SetMarker(v string) *DescribeDBSubnetGroupsOutput { + s.Marker = &v + return s +} + type DescribeEngineDefaultClusterParametersInput struct { _ struct{} `type:"structure"` @@ -13051,6 +16152,30 @@ func (s *DescribeEngineDefaultClusterParametersInput) Validate() error { return nil } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DescribeEngineDefaultClusterParametersInput) SetDBParameterGroupFamily(v string) *DescribeEngineDefaultClusterParametersInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeEngineDefaultClusterParametersInput) SetFilters(v []*Filter) *DescribeEngineDefaultClusterParametersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEngineDefaultClusterParametersInput) SetMarker(v string) *DescribeEngineDefaultClusterParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEngineDefaultClusterParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultClusterParametersInput { + s.MaxRecords = &v + return s +} + type DescribeEngineDefaultClusterParametersOutput struct { _ struct{} `type:"structure"` @@ -13069,6 +16194,12 @@ func (s DescribeEngineDefaultClusterParametersOutput) GoString() string { return s.String() } +// SetEngineDefaults sets the EngineDefaults field's value. +func (s *DescribeEngineDefaultClusterParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultClusterParametersOutput { + s.EngineDefaults = v + return s +} + type DescribeEngineDefaultParametersInput struct { _ struct{} `type:"structure"` @@ -13128,6 +16259,30 @@ func (s *DescribeEngineDefaultParametersInput) Validate() error { return nil } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DescribeEngineDefaultParametersInput) SetDBParameterGroupFamily(v string) *DescribeEngineDefaultParametersInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeEngineDefaultParametersInput) SetFilters(v []*Filter) *DescribeEngineDefaultParametersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEngineDefaultParametersInput) SetMarker(v string) *DescribeEngineDefaultParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEngineDefaultParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultParametersInput { + s.MaxRecords = &v + return s +} + type DescribeEngineDefaultParametersOutput struct { _ struct{} `type:"structure"` @@ -13146,6 +16301,12 @@ func (s DescribeEngineDefaultParametersOutput) GoString() string { return s.String() } +// SetEngineDefaults sets the EngineDefaults field's value. +func (s *DescribeEngineDefaultParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultParametersOutput { + s.EngineDefaults = v + return s +} + type DescribeEventCategoriesInput struct { _ struct{} `type:"structure"` @@ -13188,6 +16349,18 @@ func (s *DescribeEventCategoriesInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeEventCategoriesInput) SetFilters(v []*Filter) *DescribeEventCategoriesInput { + s.Filters = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput { + s.SourceType = &v + return s +} + // Data returned from the DescribeEventCategories action. type DescribeEventCategoriesOutput struct { _ struct{} `type:"structure"` @@ -13206,6 +16379,12 @@ func (s DescribeEventCategoriesOutput) GoString() string { return s.String() } +// SetEventCategoriesMapList sets the EventCategoriesMapList field's value. +func (s *DescribeEventCategoriesOutput) SetEventCategoriesMapList(v []*EventCategoriesMap) *DescribeEventCategoriesOutput { + s.EventCategoriesMapList = v + return s +} + type DescribeEventSubscriptionsInput struct { _ struct{} `type:"structure"` @@ -13260,6 +16439,30 @@ func (s *DescribeEventSubscriptionsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeEventSubscriptionsInput) SetFilters(v []*Filter) *DescribeEventSubscriptionsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventSubscriptionsInput) SetMarker(v string) *DescribeEventSubscriptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventSubscriptionsInput) SetMaxRecords(v int64) *DescribeEventSubscriptionsInput { + s.MaxRecords = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DescribeEventSubscriptionsInput) SetSubscriptionName(v string) *DescribeEventSubscriptionsInput { + s.SubscriptionName = &v + return s +} + // Data returned by the DescribeEventSubscriptions action. type DescribeEventSubscriptionsOutput struct { _ struct{} `type:"structure"` @@ -13283,6 +16486,18 @@ func (s DescribeEventSubscriptionsOutput) GoString() string { return s.String() } +// SetEventSubscriptionsList sets the EventSubscriptionsList field's value. +func (s *DescribeEventSubscriptionsOutput) SetEventSubscriptionsList(v []*EventSubscription) *DescribeEventSubscriptionsOutput { + s.EventSubscriptionsList = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventSubscriptionsOutput) SetMarker(v string) *DescribeEventSubscriptionsOutput { + s.Marker = &v + return s +} + type DescribeEventsInput struct { _ struct{} `type:"structure"` @@ -13324,19 +16539,20 @@ type DescribeEventsInput struct { // // Constraints: // - // If SourceIdentifier is supplied, SourceType must also be provided. + // * If SourceIdentifier is supplied, SourceType must also be provided. // - // If the source type is DBInstance, then a DBInstanceIdentifier must be - // supplied. + // * If the source type is DBInstance, then a DBInstanceIdentifier must be + // supplied. // - // If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied. + // * If the source type is DBSecurityGroup, a DBSecurityGroupName must be + // supplied. // - // If the source type is DBParameterGroup, a DBParameterGroupName must be - // supplied. + // * If the source type is DBParameterGroup, a DBParameterGroupName must + // be supplied. // - // If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied. + // * If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. SourceIdentifier *string `type:"string"` // The event source to retrieve events for. If no value is specified, all events @@ -13381,6 +16597,60 @@ func (s *DescribeEventsInput) Validate() error { return nil } +// SetDuration sets the Duration field's value. +func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput { + s.Duration = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *DescribeEventsInput) SetEventCategories(v []*string) *DescribeEventsInput { + s.EventCategories = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeEventsInput) SetFilters(v []*Filter) *DescribeEventsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { + s.MaxRecords = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput { + s.SourceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + // Contains the result of a successful invocation of the DescribeEvents action. type DescribeEventsOutput struct { _ struct{} `type:"structure"` @@ -13404,6 +16674,18 @@ func (s DescribeEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { + s.Marker = &v + return s +} + type DescribeOptionGroupOptionsInput struct { _ struct{} `type:"structure"` @@ -13468,6 +16750,36 @@ func (s *DescribeOptionGroupOptionsInput) Validate() error { return nil } +// SetEngineName sets the EngineName field's value. +func (s *DescribeOptionGroupOptionsInput) SetEngineName(v string) *DescribeOptionGroupOptionsInput { + s.EngineName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeOptionGroupOptionsInput) SetFilters(v []*Filter) *DescribeOptionGroupOptionsInput { + s.Filters = v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *DescribeOptionGroupOptionsInput) SetMajorEngineVersion(v string) *DescribeOptionGroupOptionsInput { + s.MajorEngineVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeOptionGroupOptionsInput) SetMarker(v string) *DescribeOptionGroupOptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOptionGroupOptionsInput) SetMaxRecords(v int64) *DescribeOptionGroupOptionsInput { + s.MaxRecords = &v + return s +} + type DescribeOptionGroupOptionsOutput struct { _ struct{} `type:"structure"` @@ -13490,6 +16802,18 @@ func (s DescribeOptionGroupOptionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOptionGroupOptionsOutput) SetMarker(v string) *DescribeOptionGroupOptionsOutput { + s.Marker = &v + return s +} + +// SetOptionGroupOptions sets the OptionGroupOptions field's value. +func (s *DescribeOptionGroupOptionsOutput) SetOptionGroupOptions(v []*OptionGroupOption) *DescribeOptionGroupOptionsOutput { + s.OptionGroupOptions = v + return s +} + type DescribeOptionGroupsInput struct { _ struct{} `type:"structure"` @@ -13554,6 +16878,42 @@ func (s *DescribeOptionGroupsInput) Validate() error { return nil } +// SetEngineName sets the EngineName field's value. +func (s *DescribeOptionGroupsInput) SetEngineName(v string) *DescribeOptionGroupsInput { + s.EngineName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeOptionGroupsInput) SetFilters(v []*Filter) *DescribeOptionGroupsInput { + s.Filters = v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *DescribeOptionGroupsInput) SetMajorEngineVersion(v string) *DescribeOptionGroupsInput { + s.MajorEngineVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeOptionGroupsInput) SetMarker(v string) *DescribeOptionGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOptionGroupsInput) SetMaxRecords(v int64) *DescribeOptionGroupsInput { + s.MaxRecords = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *DescribeOptionGroupsInput) SetOptionGroupName(v string) *DescribeOptionGroupsInput { + s.OptionGroupName = &v + return s +} + // List of option groups. type DescribeOptionGroupsOutput struct { _ struct{} `type:"structure"` @@ -13577,6 +16937,18 @@ func (s DescribeOptionGroupsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOptionGroupsOutput) SetMarker(v string) *DescribeOptionGroupsOutput { + s.Marker = &v + return s +} + +// SetOptionGroupsList sets the OptionGroupsList field's value. +func (s *DescribeOptionGroupsOutput) SetOptionGroupsList(v []*OptionGroup) *DescribeOptionGroupsOutput { + s.OptionGroupsList = v + return s +} + type DescribeOrderableDBInstanceOptionsInput struct { _ struct{} `type:"structure"` @@ -13652,6 +17024,54 @@ func (s *DescribeOrderableDBInstanceOptionsInput) Validate() error { return nil } +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetDBInstanceClass(v string) *DescribeOrderableDBInstanceOptionsInput { + s.DBInstanceClass = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetEngine(v string) *DescribeOrderableDBInstanceOptionsInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetEngineVersion(v string) *DescribeOrderableDBInstanceOptionsInput { + s.EngineVersion = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetFilters(v []*Filter) *DescribeOrderableDBInstanceOptionsInput { + s.Filters = v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetLicenseModel(v string) *DescribeOrderableDBInstanceOptionsInput { + s.LicenseModel = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetMarker(v string) *DescribeOrderableDBInstanceOptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetMaxRecords(v int64) *DescribeOrderableDBInstanceOptionsInput { + s.MaxRecords = &v + return s +} + +// SetVpc sets the Vpc field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetVpc(v bool) *DescribeOrderableDBInstanceOptionsInput { + s.Vpc = &v + return s +} + // Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions // action. type DescribeOrderableDBInstanceOptionsOutput struct { @@ -13677,6 +17097,18 @@ func (s DescribeOrderableDBInstanceOptionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableDBInstanceOptionsOutput) SetMarker(v string) *DescribeOrderableDBInstanceOptionsOutput { + s.Marker = &v + return s +} + +// SetOrderableDBInstanceOptions sets the OrderableDBInstanceOptions field's value. +func (s *DescribeOrderableDBInstanceOptionsOutput) SetOrderableDBInstanceOptions(v []*OrderableDBInstanceOption) *DescribeOrderableDBInstanceOptionsOutput { + s.OrderableDBInstanceOptions = v + return s +} + type DescribePendingMaintenanceActionsInput struct { _ struct{} `type:"structure"` @@ -13685,9 +17117,9 @@ type DescribePendingMaintenanceActionsInput struct { // // Supported filters: // - // db-instance-id - Accepts DB instance identifiers and DB instance Amazon - // Resource Names (ARNs). The results list will only include pending maintenance - // actions for the DB instances identified by these ARNs. + // * db-instance-id - Accepts DB instance identifiers and DB instance Amazon + // Resource Names (ARNs). The results list will only include pending maintenance + // actions for the DB instances identified by these ARNs. Filters []*Filter `locationNameList:"Filter" type:"list"` // An optional pagination token provided by a previous DescribePendingMaintenanceActions @@ -13738,6 +17170,30 @@ func (s *DescribePendingMaintenanceActionsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribePendingMaintenanceActionsInput) SetFilters(v []*Filter) *DescribePendingMaintenanceActionsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribePendingMaintenanceActionsInput) SetMarker(v string) *DescribePendingMaintenanceActionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribePendingMaintenanceActionsInput) SetMaxRecords(v int64) *DescribePendingMaintenanceActionsInput { + s.MaxRecords = &v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *DescribePendingMaintenanceActionsInput) SetResourceIdentifier(v string) *DescribePendingMaintenanceActionsInput { + s.ResourceIdentifier = &v + return s +} + // Data returned from the DescribePendingMaintenanceActions action. type DescribePendingMaintenanceActionsOutput struct { _ struct{} `type:"structure"` @@ -13761,6 +17217,18 @@ func (s DescribePendingMaintenanceActionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribePendingMaintenanceActionsOutput) SetMarker(v string) *DescribePendingMaintenanceActionsOutput { + s.Marker = &v + return s +} + +// SetPendingMaintenanceActions sets the PendingMaintenanceActions field's value. +func (s *DescribePendingMaintenanceActionsOutput) SetPendingMaintenanceActions(v []*ResourcePendingMaintenanceActions) *DescribePendingMaintenanceActionsOutput { + s.PendingMaintenanceActions = v + return s +} + type DescribeReservedDBInstancesInput struct { _ struct{} `type:"structure"` @@ -13844,6 +17312,66 @@ func (s *DescribeReservedDBInstancesInput) Validate() error { return nil } +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *DescribeReservedDBInstancesInput) SetDBInstanceClass(v string) *DescribeReservedDBInstancesInput { + s.DBInstanceClass = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedDBInstancesInput) SetDuration(v string) *DescribeReservedDBInstancesInput { + s.Duration = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeReservedDBInstancesInput) SetFilters(v []*Filter) *DescribeReservedDBInstancesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReservedDBInstancesInput) SetMarker(v string) *DescribeReservedDBInstancesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedDBInstancesInput) SetMaxRecords(v int64) *DescribeReservedDBInstancesInput { + s.MaxRecords = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *DescribeReservedDBInstancesInput) SetMultiAZ(v bool) *DescribeReservedDBInstancesInput { + s.MultiAZ = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedDBInstancesInput) SetOfferingType(v string) *DescribeReservedDBInstancesInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedDBInstancesInput) SetProductDescription(v string) *DescribeReservedDBInstancesInput { + s.ProductDescription = &v + return s +} + +// SetReservedDBInstanceId sets the ReservedDBInstanceId field's value. +func (s *DescribeReservedDBInstancesInput) SetReservedDBInstanceId(v string) *DescribeReservedDBInstancesInput { + s.ReservedDBInstanceId = &v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *DescribeReservedDBInstancesInput) SetReservedDBInstancesOfferingId(v string) *DescribeReservedDBInstancesInput { + s.ReservedDBInstancesOfferingId = &v + return s +} + type DescribeReservedDBInstancesOfferingsInput struct { _ struct{} `type:"structure"` @@ -13925,6 +17453,60 @@ func (s *DescribeReservedDBInstancesOfferingsInput) Validate() error { return nil } +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetDBInstanceClass(v string) *DescribeReservedDBInstancesOfferingsInput { + s.DBInstanceClass = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetDuration(v string) *DescribeReservedDBInstancesOfferingsInput { + s.Duration = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedDBInstancesOfferingsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetMarker(v string) *DescribeReservedDBInstancesOfferingsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetMaxRecords(v int64) *DescribeReservedDBInstancesOfferingsInput { + s.MaxRecords = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetMultiAZ(v bool) *DescribeReservedDBInstancesOfferingsInput { + s.MultiAZ = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedDBInstancesOfferingsInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedDBInstancesOfferingsInput { + s.ProductDescription = &v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetReservedDBInstancesOfferingId(v string) *DescribeReservedDBInstancesOfferingsInput { + s.ReservedDBInstancesOfferingId = &v + return s +} + // Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings // action. type DescribeReservedDBInstancesOfferingsOutput struct { @@ -13949,6 +17531,18 @@ func (s DescribeReservedDBInstancesOfferingsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedDBInstancesOfferingsOutput) SetMarker(v string) *DescribeReservedDBInstancesOfferingsOutput { + s.Marker = &v + return s +} + +// SetReservedDBInstancesOfferings sets the ReservedDBInstancesOfferings field's value. +func (s *DescribeReservedDBInstancesOfferingsOutput) SetReservedDBInstancesOfferings(v []*ReservedDBInstancesOffering) *DescribeReservedDBInstancesOfferingsOutput { + s.ReservedDBInstancesOfferings = v + return s +} + // Contains the result of a successful invocation of the DescribeReservedDBInstances // action. type DescribeReservedDBInstancesOutput struct { @@ -13973,6 +17567,18 @@ func (s DescribeReservedDBInstancesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedDBInstancesOutput) SetMarker(v string) *DescribeReservedDBInstancesOutput { + s.Marker = &v + return s +} + +// SetReservedDBInstances sets the ReservedDBInstances field's value. +func (s *DescribeReservedDBInstancesOutput) SetReservedDBInstances(v []*ReservedDBInstance) *DescribeReservedDBInstancesOutput { + s.ReservedDBInstances = v + return s +} + type DescribeSourceRegionsInput struct { _ struct{} `type:"structure"` @@ -13997,7 +17603,7 @@ type DescribeSourceRegionsInput struct { // // Constraints: // - // Must specify a valid AWS Region name. + // * Must specify a valid AWS Region name. RegionName *string `type:"string"` } @@ -14031,6 +17637,30 @@ func (s *DescribeSourceRegionsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeSourceRegionsInput) SetFilters(v []*Filter) *DescribeSourceRegionsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeSourceRegionsInput) SetMarker(v string) *DescribeSourceRegionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeSourceRegionsInput) SetMaxRecords(v int64) *DescribeSourceRegionsInput { + s.MaxRecords = &v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *DescribeSourceRegionsInput) SetRegionName(v string) *DescribeSourceRegionsInput { + s.RegionName = &v + return s +} + // Contains the result of a successful invocation of the DescribeSourceRegions // action. type DescribeSourceRegionsOutput struct { @@ -14056,6 +17686,18 @@ func (s DescribeSourceRegionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSourceRegionsOutput) SetMarker(v string) *DescribeSourceRegionsOutput { + s.Marker = &v + return s +} + +// SetSourceRegions sets the SourceRegions field's value. +func (s *DescribeSourceRegionsOutput) SetSourceRegions(v []*SourceRegion) *DescribeSourceRegionsOutput { + s.SourceRegions = v + return s +} + // An Active Directory Domain membership record associated with the DB instance. type DomainMembership struct { _ struct{} `type:"structure"` @@ -14085,6 +17727,30 @@ func (s DomainMembership) GoString() string { return s.String() } +// SetDomain sets the Domain field's value. +func (s *DomainMembership) SetDomain(v string) *DomainMembership { + s.Domain = &v + return s +} + +// SetFQDN sets the FQDN field's value. +func (s *DomainMembership) SetFQDN(v string) *DomainMembership { + s.FQDN = &v + return s +} + +// SetIAMRoleName sets the IAMRoleName field's value. +func (s *DomainMembership) SetIAMRoleName(v string) *DomainMembership { + s.IAMRoleName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DomainMembership) SetStatus(v string) *DomainMembership { + s.Status = &v + return s +} + type DownloadDBLogFilePortionInput struct { _ struct{} `type:"structure"` @@ -14093,11 +17759,11 @@ type DownloadDBLogFilePortionInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -14119,21 +17785,21 @@ type DownloadDBLogFilePortionInput struct { // can be from the beginning or the end of the log file, depending on the value // of the Marker parameter. // - // If neither Marker or NumberOfLines are specified, the entire log file - // is returned up to a maximum of 10000 lines, starting with the most recent - // log entries first. + // * If neither Marker or NumberOfLines are specified, the entire log file + // is returned up to a maximum of 10000 lines, starting with the most recent + // log entries first. // - // If NumberOfLines is specified and Marker is not specified, then the most - // recent lines from the end of the log file are returned. + // * If NumberOfLines is specified and Marker is not specified, then the + // most recent lines from the end of the log file are returned. // - // If Marker is specified as "0", then the specified number of lines from - // the beginning of the log file are returned. + // * If Marker is specified as "0", then the specified number of lines from + // the beginning of the log file are returned. // - // You can download the log file in blocks of lines by specifying the size - // of the block using the NumberOfLines parameter, and by specifying a value - // of "0" for the Marker parameter in your first request. Include the Marker - // value returned in the response as the Marker value for the next request, - // continuing until the AdditionalDataPending response element returns false. + // * You can download the log file in blocks of lines by specifying the size + // of the block using the NumberOfLines parameter, and by specifying a value + // of "0" for the Marker parameter in your first request. Include the Marker + // value returned in the response as the Marker value for the next request, + // continuing until the AdditionalDataPending response element returns false. NumberOfLines *int64 `type:"integer"` } @@ -14163,6 +17829,30 @@ func (s *DownloadDBLogFilePortionInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DownloadDBLogFilePortionInput) SetDBInstanceIdentifier(v string) *DownloadDBLogFilePortionInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetLogFileName sets the LogFileName field's value. +func (s *DownloadDBLogFilePortionInput) SetLogFileName(v string) *DownloadDBLogFilePortionInput { + s.LogFileName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DownloadDBLogFilePortionInput) SetMarker(v string) *DownloadDBLogFilePortionInput { + s.Marker = &v + return s +} + +// SetNumberOfLines sets the NumberOfLines field's value. +func (s *DownloadDBLogFilePortionInput) SetNumberOfLines(v int64) *DownloadDBLogFilePortionInput { + s.NumberOfLines = &v + return s +} + // This data type is used as a response element to DownloadDBLogFilePortion. type DownloadDBLogFilePortionOutput struct { _ struct{} `type:"structure"` @@ -14188,13 +17878,31 @@ func (s DownloadDBLogFilePortionOutput) GoString() string { return s.String() } +// SetAdditionalDataPending sets the AdditionalDataPending field's value. +func (s *DownloadDBLogFilePortionOutput) SetAdditionalDataPending(v bool) *DownloadDBLogFilePortionOutput { + s.AdditionalDataPending = &v + return s +} + +// SetLogFileData sets the LogFileData field's value. +func (s *DownloadDBLogFilePortionOutput) SetLogFileData(v string) *DownloadDBLogFilePortionOutput { + s.LogFileData = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DownloadDBLogFilePortionOutput) SetMarker(v string) *DownloadDBLogFilePortionOutput { + s.Marker = &v + return s +} + // This data type is used as a response element in the following actions: // -// AuthorizeDBSecurityGroupIngress +// * AuthorizeDBSecurityGroupIngress // -// DescribeDBSecurityGroups +// * DescribeDBSecurityGroups // -// RevokeDBSecurityGroupIngress +// * RevokeDBSecurityGroupIngress type EC2SecurityGroup struct { _ struct{} `type:"structure"` @@ -14223,13 +17931,37 @@ func (s EC2SecurityGroup) GoString() string { return s.String() } +// SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupId(v string) *EC2SecurityGroup { + s.EC2SecurityGroupId = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup { + s.Status = &v + return s +} + // This data type is used as a response element in the following actions: // -// CreateDBInstance +// * CreateDBInstance // -// DescribeDBInstances +// * DescribeDBInstances // -// DeleteDBInstance +// * DeleteDBInstance type Endpoint struct { _ struct{} `type:"structure"` @@ -14253,6 +17985,24 @@ func (s Endpoint) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *Endpoint) SetAddress(v string) *Endpoint { + s.Address = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *Endpoint) SetHostedZoneId(v string) *Endpoint { + s.HostedZoneId = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Endpoint) SetPort(v int64) *Endpoint { + s.Port = &v + return s +} + // Contains the result of a successful invocation of the DescribeEngineDefaultParameters // action. type EngineDefaults struct { @@ -14281,6 +18031,24 @@ func (s EngineDefaults) GoString() string { return s.String() } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *EngineDefaults) SetDBParameterGroupFamily(v string) *EngineDefaults { + s.DBParameterGroupFamily = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *EngineDefaults) SetMarker(v string) *EngineDefaults { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *EngineDefaults) SetParameters(v []*Parameter) *EngineDefaults { + s.Parameters = v + return s +} + // This data type is used as a response element in the DescribeEvents action. type Event struct { _ struct{} `type:"structure"` @@ -14314,6 +18082,42 @@ func (s Event) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *Event) SetDate(v time.Time) *Event { + s.Date = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *Event) SetEventCategories(v []*string) *Event { + s.EventCategories = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Event) SetMessage(v string) *Event { + s.Message = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *Event) SetSourceArn(v string) *Event { + s.SourceArn = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *Event) SetSourceIdentifier(v string) *Event { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *Event) SetSourceType(v string) *Event { + s.SourceType = &v + return s +} + // Contains the results of a successful invocation of the DescribeEventCategories // action. type EventCategoriesMap struct { @@ -14336,6 +18140,18 @@ func (s EventCategoriesMap) GoString() string { return s.String() } +// SetEventCategories sets the EventCategories field's value. +func (s *EventCategoriesMap) SetEventCategories(v []*string) *EventCategoriesMap { + s.EventCategories = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *EventCategoriesMap) SetSourceType(v string) *EventCategoriesMap { + s.SourceType = &v + return s +} + // Contains the results of a successful invocation of the DescribeEventSubscriptions // action. type EventSubscription struct { @@ -14370,8 +18186,8 @@ type EventSubscription struct { // // Constraints: // - // Can be one of the following: creating | modifying | deleting | active | - // no-permission | topic-not-exist + // Can be one of the following: creating | modifying | deleting | active | no-permission + // | topic-not-exist // // The status "no-permission" indicates that RDS no longer has permission to // post to the SNS topic. The status "topic-not-exist" indicates that the topic @@ -14392,6 +18208,66 @@ func (s EventSubscription) GoString() string { return s.String() } +// SetCustSubscriptionId sets the CustSubscriptionId field's value. +func (s *EventSubscription) SetCustSubscriptionId(v string) *EventSubscription { + s.CustSubscriptionId = &v + return s +} + +// SetCustomerAwsId sets the CustomerAwsId field's value. +func (s *EventSubscription) SetCustomerAwsId(v string) *EventSubscription { + s.CustomerAwsId = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventSubscription) SetEnabled(v bool) *EventSubscription { + s.Enabled = &v + return s +} + +// SetEventCategoriesList sets the EventCategoriesList field's value. +func (s *EventSubscription) SetEventCategoriesList(v []*string) *EventSubscription { + s.EventCategoriesList = v + return s +} + +// SetEventSubscriptionArn sets the EventSubscriptionArn field's value. +func (s *EventSubscription) SetEventSubscriptionArn(v string) *EventSubscription { + s.EventSubscriptionArn = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *EventSubscription) SetSnsTopicArn(v string) *EventSubscription { + s.SnsTopicArn = &v + return s +} + +// SetSourceIdsList sets the SourceIdsList field's value. +func (s *EventSubscription) SetSourceIdsList(v []*string) *EventSubscription { + s.SourceIdsList = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *EventSubscription) SetSourceType(v string) *EventSubscription { + s.SourceType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EventSubscription) SetStatus(v string) *EventSubscription { + s.Status = &v + return s +} + +// SetSubscriptionCreationTime sets the SubscriptionCreationTime field's value. +func (s *EventSubscription) SetSubscriptionCreationTime(v string) *EventSubscription { + s.SubscriptionCreationTime = &v + return s +} + type FailoverDBClusterInput struct { _ struct{} `type:"structure"` @@ -14399,11 +18275,11 @@ type FailoverDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` // The name of the instance to promote to the primary instance. @@ -14423,25 +18299,36 @@ func (s FailoverDBClusterInput) GoString() string { return s.String() } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *FailoverDBClusterInput) SetDBClusterIdentifier(v string) *FailoverDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetTargetDBInstanceIdentifier sets the TargetDBInstanceIdentifier field's value. +func (s *FailoverDBClusterInput) SetTargetDBInstanceIdentifier(v string) *FailoverDBClusterInput { + s.TargetDBInstanceIdentifier = &v + return s +} + type FailoverDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -14455,6 +18342,12 @@ func (s FailoverDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *FailoverDBClusterOutput) SetDBCluster(v *DBCluster) *FailoverDBClusterOutput { + s.DBCluster = v + return s +} + // This type is not currently supported. type Filter struct { _ struct{} `type:"structure"` @@ -14496,6 +18389,18 @@ func (s *Filter) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v + return s +} + // This data type is used as a response element in the DescribeDBSecurityGroups // action. type IPRange struct { @@ -14519,6 +18424,18 @@ func (s IPRange) GoString() string { return s.String() } +// SetCIDRIP sets the CIDRIP field's value. +func (s *IPRange) SetCIDRIP(v string) *IPRange { + s.CIDRIP = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *IPRange) SetStatus(v string) *IPRange { + s.Status = &v + return s +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -14566,6 +18483,18 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *ListTagsForResourceInput) SetFilters(v []*Filter) *ListTagsForResourceInput { + s.Filters = v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ListTagsForResourceInput) SetResourceName(v string) *ListTagsForResourceInput { + s.ResourceName = &v + return s +} + type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -14583,6 +18512,12 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { + s.TagList = v + return s +} + type ModifyDBClusterInput struct { _ struct{} `type:"structure"` @@ -14609,7 +18544,7 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must be a value from 1 to 35 + // * Must be a value from 1 to 35 BackupRetentionPeriod *int64 `type:"integer"` // The DB cluster identifier for the cluster being modified. This parameter @@ -14617,13 +18552,13 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must be the identifier for an existing DB cluster. + // * Must be the identifier for an existing DB cluster. // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -14642,13 +18577,13 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-cluster2 + // Example: my-cluster2 NewDBClusterIdentifier *string `type:"string"` // A value that indicates that the DB cluster should be associated with the @@ -14680,19 +18615,19 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: A 30-minute window selected at random from an 8-hour block of time // per region, occurring on a random day of the week. To see the time blocks @@ -14731,25 +18666,90 @@ func (s *ModifyDBClusterInput) Validate() error { return nil } +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyDBClusterInput) SetApplyImmediately(v bool) *ModifyDBClusterInput { + s.ApplyImmediately = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *ModifyDBClusterInput) SetBackupRetentionPeriod(v int64) *ModifyDBClusterInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *ModifyDBClusterInput) SetDBClusterIdentifier(v string) *ModifyDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *ModifyDBClusterInput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *ModifyDBClusterInput) SetMasterUserPassword(v string) *ModifyDBClusterInput { + s.MasterUserPassword = &v + return s +} + +// SetNewDBClusterIdentifier sets the NewDBClusterIdentifier field's value. +func (s *ModifyDBClusterInput) SetNewDBClusterIdentifier(v string) *ModifyDBClusterInput { + s.NewDBClusterIdentifier = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *ModifyDBClusterInput) SetOptionGroupName(v string) *ModifyDBClusterInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *ModifyDBClusterInput) SetPort(v int64) *ModifyDBClusterInput { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *ModifyDBClusterInput) SetPreferredBackupWindow(v string) *ModifyDBClusterInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyDBClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyDBClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *ModifyDBClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBClusterInput { + s.VpcSecurityGroupIds = v + return s +} + type ModifyDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -14763,6 +18763,12 @@ func (s ModifyDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *ModifyDBClusterOutput) SetDBCluster(v *DBCluster) *ModifyDBClusterOutput { + s.DBCluster = v + return s +} + type ModifyDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -14803,6 +18809,18 @@ func (s *ModifyDBClusterParameterGroupInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *ModifyDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterParameterGroupInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ModifyDBClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyDBClusterParameterGroupInput { + s.Parameters = v + return s +} + type ModifyDBClusterSnapshotAttributeInput struct { _ struct{} `type:"structure"` @@ -14867,6 +18885,30 @@ func (s *ModifyDBClusterSnapshotAttributeInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *ModifyDBClusterSnapshotAttributeInput) SetAttributeName(v string) *ModifyDBClusterSnapshotAttributeInput { + s.AttributeName = &v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *ModifyDBClusterSnapshotAttributeInput) SetDBClusterSnapshotIdentifier(v string) *ModifyDBClusterSnapshotAttributeInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// SetValuesToAdd sets the ValuesToAdd field's value. +func (s *ModifyDBClusterSnapshotAttributeInput) SetValuesToAdd(v []*string) *ModifyDBClusterSnapshotAttributeInput { + s.ValuesToAdd = v + return s +} + +// SetValuesToRemove sets the ValuesToRemove field's value. +func (s *ModifyDBClusterSnapshotAttributeInput) SetValuesToRemove(v []*string) *ModifyDBClusterSnapshotAttributeInput { + s.ValuesToRemove = v + return s +} + type ModifyDBClusterSnapshotAttributeOutput struct { _ struct{} `type:"structure"` @@ -14889,6 +18931,12 @@ func (s ModifyDBClusterSnapshotAttributeOutput) GoString() string { return s.String() } +// SetDBClusterSnapshotAttributesResult sets the DBClusterSnapshotAttributesResult field's value. +func (s *ModifyDBClusterSnapshotAttributeOutput) SetDBClusterSnapshotAttributesResult(v *DBClusterSnapshotAttributesResult) *ModifyDBClusterSnapshotAttributeOutput { + s.DBClusterSnapshotAttributesResult = v + return s +} + type ModifyDBInstanceInput struct { _ struct{} `type:"structure"` @@ -14896,7 +18944,7 @@ type ModifyDBInstanceInput struct { // not result in an outage and the change is applied during the next maintenance // window unless ApplyImmediately is set to true for this request. // - // MySQL + // MySQL // // Default: Uses existing setting // @@ -14908,7 +18956,7 @@ type ModifyDBInstanceInput struct { // // Type: Integer // - // MariaDB + // MariaDB // // Default: Uses existing setting // @@ -14920,7 +18968,7 @@ type ModifyDBInstanceInput struct { // // Type: Integer // - // PostgreSQL + // PostgreSQL // // Default: Uses existing setting // @@ -14932,7 +18980,7 @@ type ModifyDBInstanceInput struct { // // Type: Integer // - // Oracle + // Oracle // // Default: Uses existing setting // @@ -14942,7 +18990,7 @@ type ModifyDBInstanceInput struct { // value. Values that are not at least 10% greater than the existing value are // rounded up so that they are 10% greater than the current value. // - // SQL Server + // SQL Server // // Cannot be modified. // @@ -14965,16 +19013,16 @@ type ModifyDBInstanceInput struct { // does not result in an outage and the change is asynchronously applied as // soon as possible. // - // Constraints: This parameter must be set to true when specifying a value - // for the EngineVersion parameter that is a different major version than the - // DB instance's current version. + // Constraints: This parameter must be set to true when specifying a value for + // the EngineVersion parameter that is a different major version than the DB + // instance's current version. AllowMajorVersionUpgrade *bool `type:"boolean"` // Specifies whether the modifications in this request and any pending modifications // are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow // setting for the DB instance. // - // If this parameter is set to false, changes to the DB instance are applied + // If this parameter is set to false, changes to the DB instance are applied // during the next maintenance window. Some parameter changes can cause an outage // and will be applied on the next call to RebootDBInstance, or the next failure // reboot. Review the table of parameters in Modifying a DB Instance and Using @@ -14997,26 +19045,26 @@ type ModifyDBInstanceInput struct { // a positive number enables backups. Setting this parameter to 0 disables automated // backups. // - // Changing this parameter can result in an outage if you change from 0 to - // a non-zero value or from a non-zero value to 0. These changes are applied - // during the next maintenance window unless the ApplyImmediately parameter - // is set to true for this request. If you change the parameter from one non-zero - // value to another non-zero value, the change is asynchronously applied as - // soon as possible. + // Changing this parameter can result in an outage if you change from 0 to a + // non-zero value or from a non-zero value to 0. These changes are applied during + // the next maintenance window unless the ApplyImmediately parameter is set + // to true for this request. If you change the parameter from one non-zero value + // to another non-zero value, the change is asynchronously applied as soon as + // possible. // // Default: Uses existing setting // // Constraints: // - // Must be a value from 0 to 35 + // * Must be a value from 0 to 35 // - // Can be specified for a MySQL Read Replica only if the source is running - // MySQL 5.6 + // * Can be specified for a MySQL Read Replica only if the source is running + // MySQL 5.6 // - // Can be specified for a PostgreSQL Read Replica only if the source is running - // PostgreSQL 9.3.5 + // * Can be specified for a PostgreSQL Read Replica only if the source is + // running PostgreSQL 9.3.5 // - // Cannot be set to 0 if the DB instance is a source to Read Replicas + // * Cannot be set to 0 if the DB instance is a source to Read Replicas BackupRetentionPeriod *int64 `type:"integer"` // Indicates the certificate that needs to be associated with the instance. @@ -15030,9 +19078,9 @@ type ModifyDBInstanceInput struct { // instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions // action. // - // Passing a value for this setting causes an outage during the change and - // is applied during the next maintenance window, unless ApplyImmediately is - // specified as true for this request. + // Passing a value for this setting causes an outage during the change and is + // applied during the next maintenance window, unless ApplyImmediately is specified + // as true for this request. // // Default: Uses existing setting // @@ -15048,13 +19096,13 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be the identifier for an existing DB instance + // * Must be the identifier for an existing DB instance // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -15080,44 +19128,44 @@ type ModifyDBInstanceInput struct { // Your database will restart when you change the DBPortNumber value regardless // of the value of the ApplyImmediately parameter. // - // MySQL + // MySQL // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // - // MariaDB + // MariaDB // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // - // PostgreSQL + // PostgreSQL // - // Default: 5432 + // Default: 5432 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer // - // Oracle + // Oracle // - // Default: 1521 + // Default: 1521 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // - // SQL Server + // SQL Server // - // Default: 1433 + // Default: 1433 // - // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 - // through 49156. + // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through + // 49156. // - // Amazon Aurora + // Amazon Aurora // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 DBPortNumber *int64 `type:"integer"` // A list of DB security groups to authorize on this DB instance. Changing this @@ -15126,18 +19174,17 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"` // The new DB subnet group for the DB instance. You can use this parameter to - // move your DB instance to a different VPC, or to a different subnet group - // in the same VPC. If your DB instance is not in a VPC, you can also use this - // parameter to move your DB instance into a VPC. For more information, see - // Updating the VPC for a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC). + // move your DB instance to a different VPC. If your DB instance is not in a + // VPC, you can also use this parameter to move your DB instance into a VPC. + // For more information, see Updating the VPC for a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC). // // Changing the subnet group causes an outage during the change. The change // is applied during the next maintenance window, unless you specify true for @@ -15184,7 +19231,7 @@ type ModifyDBInstanceInput struct { // The DB instance will require a reboot for the change in storage type to take // effect. // - // SQL Server + // SQL Server // // Setting the IOPS value for the SQL Server database engine is not supported. // @@ -15213,10 +19260,10 @@ type ModifyDBInstanceInput struct { // The new password for the DB instance master user. Can be any printable ASCII // character except "/", """, or "@". // - // Changing this parameter does not result in an outage and the change is - // asynchronously applied as soon as possible. Between the time of the request - // and the completion of the request, the MasterUserPassword element exists - // in the PendingModifiedValues element of the operation response. + // Changing this parameter does not result in an outage and the change is asynchronously + // applied as soon as possible. Between the time of the request and the completion + // of the request, the MasterUserPassword element exists in the PendingModifiedValues + // element of the operation response. // // Default: Uses existing setting // @@ -15224,7 +19271,7 @@ type ModifyDBInstanceInput struct { // Amazon Aurora), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric // characters (SQL Server). // - // Amazon RDS API actions never return the password, so this action provides + // Amazon RDS API actions never return the password, so this action provides // a way to regain access to a primary instance user if the password is lost. // This includes restoring privileges that might have been accidentally revoked. MasterUserPassword *string `type:"string"` @@ -15263,11 +19310,11 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens NewDBInstanceIdentifier *string `type:"string"` // Indicates that the DB instance should be associated with the specified option @@ -15290,13 +19337,13 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi + // * Must be in the format hh24:mi-hh24:mi // - // Times should be in Universal Time Coordinated (UTC) + // * Times should be in Universal Time Coordinated (UTC) // - // Must not conflict with the preferred maintenance window + // * Must not conflict with the preferred maintenance window // - // Must be at least 30 minutes + // * Must be at least 30 minutes PreferredBackupWindow *string `type:"string"` // The weekly time range (in UTC) during which system maintenance can occur, @@ -15332,7 +19379,7 @@ type ModifyDBInstanceInput struct { // to make the DB instance internal with a DNS name that resolves to a private // IP address. // - // PubliclyAccessible only applies to DB instances in a VPC. The DB instance + // PubliclyAccessible only applies to DB instances in a VPC. The DB instance // must be part of a public subnet and PubliclyAccessible must be true in order // for it to be publicly accessible. // @@ -15344,11 +19391,11 @@ type ModifyDBInstanceInput struct { // Specifies the storage type to be associated with the DB instance. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // The ARN from the Key Store with which to associate the instance for TDE encryption. @@ -15363,11 +19410,11 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` } @@ -15394,19 +19441,210 @@ func (s *ModifyDBInstanceInput) Validate() error { return nil } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *ModifyDBInstanceInput) SetAllocatedStorage(v int64) *ModifyDBInstanceInput { + s.AllocatedStorage = &v + return s +} + +// SetAllowMajorVersionUpgrade sets the AllowMajorVersionUpgrade field's value. +func (s *ModifyDBInstanceInput) SetAllowMajorVersionUpgrade(v bool) *ModifyDBInstanceInput { + s.AllowMajorVersionUpgrade = &v + return s +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyDBInstanceInput) SetApplyImmediately(v bool) *ModifyDBInstanceInput { + s.ApplyImmediately = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *ModifyDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *ModifyDBInstanceInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *ModifyDBInstanceInput) SetBackupRetentionPeriod(v int64) *ModifyDBInstanceInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetCACertificateIdentifier sets the CACertificateIdentifier field's value. +func (s *ModifyDBInstanceInput) SetCACertificateIdentifier(v string) *ModifyDBInstanceInput { + s.CACertificateIdentifier = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *ModifyDBInstanceInput) SetCopyTagsToSnapshot(v bool) *ModifyDBInstanceInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *ModifyDBInstanceInput) SetDBInstanceClass(v string) *ModifyDBInstanceInput { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *ModifyDBInstanceInput) SetDBInstanceIdentifier(v string) *ModifyDBInstanceInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *ModifyDBInstanceInput) SetDBParameterGroupName(v string) *ModifyDBInstanceInput { + s.DBParameterGroupName = &v + return s +} + +// SetDBPortNumber sets the DBPortNumber field's value. +func (s *ModifyDBInstanceInput) SetDBPortNumber(v int64) *ModifyDBInstanceInput { + s.DBPortNumber = &v + return s +} + +// SetDBSecurityGroups sets the DBSecurityGroups field's value. +func (s *ModifyDBInstanceInput) SetDBSecurityGroups(v []*string) *ModifyDBInstanceInput { + s.DBSecurityGroups = v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *ModifyDBInstanceInput) SetDBSubnetGroupName(v string) *ModifyDBInstanceInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *ModifyDBInstanceInput) SetDomain(v string) *ModifyDBInstanceInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *ModifyDBInstanceInput) SetDomainIAMRoleName(v string) *ModifyDBInstanceInput { + s.DomainIAMRoleName = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyDBInstanceInput) SetEngineVersion(v string) *ModifyDBInstanceInput { + s.EngineVersion = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *ModifyDBInstanceInput) SetIops(v int64) *ModifyDBInstanceInput { + s.Iops = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *ModifyDBInstanceInput) SetLicenseModel(v string) *ModifyDBInstanceInput { + s.LicenseModel = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *ModifyDBInstanceInput) SetMasterUserPassword(v string) *ModifyDBInstanceInput { + s.MasterUserPassword = &v + return s +} + +// SetMonitoringInterval sets the MonitoringInterval field's value. +func (s *ModifyDBInstanceInput) SetMonitoringInterval(v int64) *ModifyDBInstanceInput { + s.MonitoringInterval = &v + return s +} + +// SetMonitoringRoleArn sets the MonitoringRoleArn field's value. +func (s *ModifyDBInstanceInput) SetMonitoringRoleArn(v string) *ModifyDBInstanceInput { + s.MonitoringRoleArn = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ModifyDBInstanceInput) SetMultiAZ(v bool) *ModifyDBInstanceInput { + s.MultiAZ = &v + return s +} + +// SetNewDBInstanceIdentifier sets the NewDBInstanceIdentifier field's value. +func (s *ModifyDBInstanceInput) SetNewDBInstanceIdentifier(v string) *ModifyDBInstanceInput { + s.NewDBInstanceIdentifier = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *ModifyDBInstanceInput) SetOptionGroupName(v string) *ModifyDBInstanceInput { + s.OptionGroupName = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *ModifyDBInstanceInput) SetPreferredBackupWindow(v string) *ModifyDBInstanceInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyDBInstanceInput) SetPreferredMaintenanceWindow(v string) *ModifyDBInstanceInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPromotionTier sets the PromotionTier field's value. +func (s *ModifyDBInstanceInput) SetPromotionTier(v int64) *ModifyDBInstanceInput { + s.PromotionTier = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *ModifyDBInstanceInput) SetPubliclyAccessible(v bool) *ModifyDBInstanceInput { + s.PubliclyAccessible = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *ModifyDBInstanceInput) SetStorageType(v string) *ModifyDBInstanceInput { + s.StorageType = &v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *ModifyDBInstanceInput) SetTdeCredentialArn(v string) *ModifyDBInstanceInput { + s.TdeCredentialArn = &v + return s +} + +// SetTdeCredentialPassword sets the TdeCredentialPassword field's value. +func (s *ModifyDBInstanceInput) SetTdeCredentialPassword(v string) *ModifyDBInstanceInput { + s.TdeCredentialPassword = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *ModifyDBInstanceInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBInstanceInput { + s.VpcSecurityGroupIds = v + return s +} + type ModifyDBInstanceOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -15420,6 +19658,12 @@ func (s ModifyDBInstanceOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *ModifyDBInstanceOutput) SetDBInstance(v *DBInstance) *ModifyDBInstanceOutput { + s.DBInstance = v + return s +} + type ModifyDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -15427,13 +19671,13 @@ type ModifyDBParameterGroupInput struct { // // Constraints: // - // Must be the name of an existing DB parameter group + // * Must be the name of an existing DB parameter group // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -15445,7 +19689,7 @@ type ModifyDBParameterGroupInput struct { // // Valid Values (for the application method): immediate | pending-reboot // - // You can use the immediate value with dynamic parameters only. You can use + // You can use the immediate value with dynamic parameters only. You can use // the pending-reboot value for both dynamic and static parameters, and changes // are applied when you reboot the DB instance without failover. // @@ -15479,6 +19723,18 @@ func (s *ModifyDBParameterGroupInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *ModifyDBParameterGroupInput) SetDBParameterGroupName(v string) *ModifyDBParameterGroupInput { + s.DBParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ModifyDBParameterGroupInput) SetParameters(v []*Parameter) *ModifyDBParameterGroupInput { + s.Parameters = v + return s +} + type ModifyDBSnapshotAttributeInput struct { _ struct{} `type:"structure"` @@ -15541,6 +19797,30 @@ func (s *ModifyDBSnapshotAttributeInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *ModifyDBSnapshotAttributeInput) SetAttributeName(v string) *ModifyDBSnapshotAttributeInput { + s.AttributeName = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *ModifyDBSnapshotAttributeInput) SetDBSnapshotIdentifier(v string) *ModifyDBSnapshotAttributeInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetValuesToAdd sets the ValuesToAdd field's value. +func (s *ModifyDBSnapshotAttributeInput) SetValuesToAdd(v []*string) *ModifyDBSnapshotAttributeInput { + s.ValuesToAdd = v + return s +} + +// SetValuesToRemove sets the ValuesToRemove field's value. +func (s *ModifyDBSnapshotAttributeInput) SetValuesToRemove(v []*string) *ModifyDBSnapshotAttributeInput { + s.ValuesToRemove = v + return s +} + type ModifyDBSnapshotAttributeOutput struct { _ struct{} `type:"structure"` @@ -15563,6 +19843,12 @@ func (s ModifyDBSnapshotAttributeOutput) GoString() string { return s.String() } +// SetDBSnapshotAttributesResult sets the DBSnapshotAttributesResult field's value. +func (s *ModifyDBSnapshotAttributeOutput) SetDBSnapshotAttributesResult(v *DBSnapshotAttributesResult) *ModifyDBSnapshotAttributeOutput { + s.DBSnapshotAttributesResult = v + return s +} + type ModifyDBSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -15611,20 +19897,38 @@ func (s *ModifyDBSubnetGroupInput) Validate() error { return nil } +// SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value. +func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupDescription(v string) *ModifyDBSubnetGroupInput { + s.DBSubnetGroupDescription = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupName(v string) *ModifyDBSubnetGroupInput { + s.DBSubnetGroupName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ModifyDBSubnetGroupInput) SetSubnetIds(v []*string) *ModifyDBSubnetGroupInput { + s.SubnetIds = v + return s +} + type ModifyDBSubnetGroupOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSubnetGroup + // * CreateDBSubnetGroup // - // ModifyDBSubnetGroup + // * ModifyDBSubnetGroup // - // DescribeDBSubnetGroups + // * DescribeDBSubnetGroups // - // DeleteDBSubnetGroup + // * DeleteDBSubnetGroup // - // This data type is used as a response element in the DescribeDBSubnetGroups + // This data type is used as a response element in the DescribeDBSubnetGroups // action. DBSubnetGroup *DBSubnetGroup `type:"structure"` } @@ -15639,6 +19943,12 @@ func (s ModifyDBSubnetGroupOutput) GoString() string { return s.String() } +// SetDBSubnetGroup sets the DBSubnetGroup field's value. +func (s *ModifyDBSubnetGroupOutput) SetDBSubnetGroup(v *DBSubnetGroup) *ModifyDBSubnetGroupOutput { + s.DBSubnetGroup = v + return s +} + type ModifyEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -15694,6 +20004,36 @@ func (s *ModifyEventSubscriptionInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *ModifyEventSubscriptionInput) SetEnabled(v bool) *ModifyEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *ModifyEventSubscriptionInput) SetEventCategories(v []*string) *ModifyEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *ModifyEventSubscriptionInput) SetSnsTopicArn(v string) *ModifyEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *ModifyEventSubscriptionInput) SetSourceType(v string) *ModifyEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *ModifyEventSubscriptionInput) SetSubscriptionName(v string) *ModifyEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + type ModifyEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -15712,6 +20052,12 @@ func (s ModifyEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *ModifyEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *ModifyEventSubscriptionOutput { + s.EventSubscription = v + return s +} + type ModifyOptionGroupInput struct { _ struct{} `type:"structure"` @@ -15769,6 +20115,30 @@ func (s *ModifyOptionGroupInput) Validate() error { return nil } +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyOptionGroupInput) SetApplyImmediately(v bool) *ModifyOptionGroupInput { + s.ApplyImmediately = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *ModifyOptionGroupInput) SetOptionGroupName(v string) *ModifyOptionGroupInput { + s.OptionGroupName = &v + return s +} + +// SetOptionsToInclude sets the OptionsToInclude field's value. +func (s *ModifyOptionGroupInput) SetOptionsToInclude(v []*OptionConfiguration) *ModifyOptionGroupInput { + s.OptionsToInclude = v + return s +} + +// SetOptionsToRemove sets the OptionsToRemove field's value. +func (s *ModifyOptionGroupInput) SetOptionsToRemove(v []*string) *ModifyOptionGroupInput { + s.OptionsToRemove = v + return s +} + type ModifyOptionGroupOutput struct { _ struct{} `type:"structure"` @@ -15785,6 +20155,12 @@ func (s ModifyOptionGroupOutput) GoString() string { return s.String() } +// SetOptionGroup sets the OptionGroup field's value. +func (s *ModifyOptionGroupOutput) SetOptionGroup(v *OptionGroup) *ModifyOptionGroupOutput { + s.OptionGroup = v + return s +} + // Option details. type Option struct { _ struct{} `type:"structure"` @@ -15829,6 +20205,60 @@ func (s Option) GoString() string { return s.String() } +// SetDBSecurityGroupMemberships sets the DBSecurityGroupMemberships field's value. +func (s *Option) SetDBSecurityGroupMemberships(v []*DBSecurityGroupMembership) *Option { + s.DBSecurityGroupMemberships = v + return s +} + +// SetOptionDescription sets the OptionDescription field's value. +func (s *Option) SetOptionDescription(v string) *Option { + s.OptionDescription = &v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *Option) SetOptionName(v string) *Option { + s.OptionName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *Option) SetOptionSettings(v []*OptionSetting) *Option { + s.OptionSettings = v + return s +} + +// SetOptionVersion sets the OptionVersion field's value. +func (s *Option) SetOptionVersion(v string) *Option { + s.OptionVersion = &v + return s +} + +// SetPermanent sets the Permanent field's value. +func (s *Option) SetPermanent(v bool) *Option { + s.Permanent = &v + return s +} + +// SetPersistent sets the Persistent field's value. +func (s *Option) SetPersistent(v bool) *Option { + s.Persistent = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Option) SetPort(v int64) *Option { + s.Port = &v + return s +} + +// SetVpcSecurityGroupMemberships sets the VpcSecurityGroupMemberships field's value. +func (s *Option) SetVpcSecurityGroupMemberships(v []*VpcSecurityGroupMembership) *Option { + s.VpcSecurityGroupMemberships = v + return s +} + // A list of all available options type OptionConfiguration struct { _ struct{} `type:"structure"` @@ -15877,6 +20307,42 @@ func (s *OptionConfiguration) Validate() error { return nil } +// SetDBSecurityGroupMemberships sets the DBSecurityGroupMemberships field's value. +func (s *OptionConfiguration) SetDBSecurityGroupMemberships(v []*string) *OptionConfiguration { + s.DBSecurityGroupMemberships = v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *OptionConfiguration) SetOptionName(v string) *OptionConfiguration { + s.OptionName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *OptionConfiguration) SetOptionSettings(v []*OptionSetting) *OptionConfiguration { + s.OptionSettings = v + return s +} + +// SetOptionVersion sets the OptionVersion field's value. +func (s *OptionConfiguration) SetOptionVersion(v string) *OptionConfiguration { + s.OptionVersion = &v + return s +} + +// SetPort sets the Port field's value. +func (s *OptionConfiguration) SetPort(v int64) *OptionConfiguration { + s.Port = &v + return s +} + +// SetVpcSecurityGroupMemberships sets the VpcSecurityGroupMemberships field's value. +func (s *OptionConfiguration) SetVpcSecurityGroupMemberships(v []*string) *OptionConfiguration { + s.VpcSecurityGroupMemberships = v + return s +} + type OptionGroup struct { _ struct{} `type:"structure"` @@ -15921,6 +20387,54 @@ func (s OptionGroup) GoString() string { return s.String() } +// SetAllowsVpcAndNonVpcInstanceMemberships sets the AllowsVpcAndNonVpcInstanceMemberships field's value. +func (s *OptionGroup) SetAllowsVpcAndNonVpcInstanceMemberships(v bool) *OptionGroup { + s.AllowsVpcAndNonVpcInstanceMemberships = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *OptionGroup) SetEngineName(v string) *OptionGroup { + s.EngineName = &v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *OptionGroup) SetMajorEngineVersion(v string) *OptionGroup { + s.MajorEngineVersion = &v + return s +} + +// SetOptionGroupArn sets the OptionGroupArn field's value. +func (s *OptionGroup) SetOptionGroupArn(v string) *OptionGroup { + s.OptionGroupArn = &v + return s +} + +// SetOptionGroupDescription sets the OptionGroupDescription field's value. +func (s *OptionGroup) SetOptionGroupDescription(v string) *OptionGroup { + s.OptionGroupDescription = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *OptionGroup) SetOptionGroupName(v string) *OptionGroup { + s.OptionGroupName = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *OptionGroup) SetOptions(v []*Option) *OptionGroup { + s.Options = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *OptionGroup) SetVpcId(v string) *OptionGroup { + s.VpcId = &v + return s +} + // Provides information on the option groups the DB instance is a member of. type OptionGroupMembership struct { _ struct{} `type:"structure"` @@ -15944,6 +20458,18 @@ func (s OptionGroupMembership) GoString() string { return s.String() } +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *OptionGroupMembership) SetOptionGroupName(v string) *OptionGroupMembership { + s.OptionGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *OptionGroupMembership) SetStatus(v string) *OptionGroupMembership { + s.Status = &v + return s +} + // Available option. type OptionGroupOption struct { _ struct{} `type:"structure"` @@ -16003,6 +20529,84 @@ func (s OptionGroupOption) GoString() string { return s.String() } +// SetDefaultPort sets the DefaultPort field's value. +func (s *OptionGroupOption) SetDefaultPort(v int64) *OptionGroupOption { + s.DefaultPort = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *OptionGroupOption) SetDescription(v string) *OptionGroupOption { + s.Description = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *OptionGroupOption) SetEngineName(v string) *OptionGroupOption { + s.EngineName = &v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *OptionGroupOption) SetMajorEngineVersion(v string) *OptionGroupOption { + s.MajorEngineVersion = &v + return s +} + +// SetMinimumRequiredMinorEngineVersion sets the MinimumRequiredMinorEngineVersion field's value. +func (s *OptionGroupOption) SetMinimumRequiredMinorEngineVersion(v string) *OptionGroupOption { + s.MinimumRequiredMinorEngineVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *OptionGroupOption) SetName(v string) *OptionGroupOption { + s.Name = &v + return s +} + +// SetOptionGroupOptionSettings sets the OptionGroupOptionSettings field's value. +func (s *OptionGroupOption) SetOptionGroupOptionSettings(v []*OptionGroupOptionSetting) *OptionGroupOption { + s.OptionGroupOptionSettings = v + return s +} + +// SetOptionGroupOptionVersions sets the OptionGroupOptionVersions field's value. +func (s *OptionGroupOption) SetOptionGroupOptionVersions(v []*OptionVersion) *OptionGroupOption { + s.OptionGroupOptionVersions = v + return s +} + +// SetOptionsConflictsWith sets the OptionsConflictsWith field's value. +func (s *OptionGroupOption) SetOptionsConflictsWith(v []*string) *OptionGroupOption { + s.OptionsConflictsWith = v + return s +} + +// SetOptionsDependedOn sets the OptionsDependedOn field's value. +func (s *OptionGroupOption) SetOptionsDependedOn(v []*string) *OptionGroupOption { + s.OptionsDependedOn = v + return s +} + +// SetPermanent sets the Permanent field's value. +func (s *OptionGroupOption) SetPermanent(v bool) *OptionGroupOption { + s.Permanent = &v + return s +} + +// SetPersistent sets the Persistent field's value. +func (s *OptionGroupOption) SetPersistent(v bool) *OptionGroupOption { + s.Persistent = &v + return s +} + +// SetPortRequired sets the PortRequired field's value. +func (s *OptionGroupOption) SetPortRequired(v bool) *OptionGroupOption { + s.PortRequired = &v + return s +} + // Option group option settings are used to display settings available for each // option with their default values and other information. These values are // used with the DescribeOptionGroupOptions action. @@ -16039,6 +20643,42 @@ func (s OptionGroupOptionSetting) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *OptionGroupOptionSetting) SetAllowedValues(v string) *OptionGroupOptionSetting { + s.AllowedValues = &v + return s +} + +// SetApplyType sets the ApplyType field's value. +func (s *OptionGroupOptionSetting) SetApplyType(v string) *OptionGroupOptionSetting { + s.ApplyType = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *OptionGroupOptionSetting) SetDefaultValue(v string) *OptionGroupOptionSetting { + s.DefaultValue = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *OptionGroupOptionSetting) SetIsModifiable(v bool) *OptionGroupOptionSetting { + s.IsModifiable = &v + return s +} + +// SetSettingDescription sets the SettingDescription field's value. +func (s *OptionGroupOptionSetting) SetSettingDescription(v string) *OptionGroupOptionSetting { + s.SettingDescription = &v + return s +} + +// SetSettingName sets the SettingName field's value. +func (s *OptionGroupOptionSetting) SetSettingName(v string) *OptionGroupOptionSetting { + s.SettingName = &v + return s +} + // Option settings are the actual settings being applied or configured for that // option. It is used when you modify an option group or describe option groups. // For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER @@ -16085,6 +20725,60 @@ func (s OptionSetting) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *OptionSetting) SetAllowedValues(v string) *OptionSetting { + s.AllowedValues = &v + return s +} + +// SetApplyType sets the ApplyType field's value. +func (s *OptionSetting) SetApplyType(v string) *OptionSetting { + s.ApplyType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *OptionSetting) SetDataType(v string) *OptionSetting { + s.DataType = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *OptionSetting) SetDefaultValue(v string) *OptionSetting { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *OptionSetting) SetDescription(v string) *OptionSetting { + s.Description = &v + return s +} + +// SetIsCollection sets the IsCollection field's value. +func (s *OptionSetting) SetIsCollection(v bool) *OptionSetting { + s.IsCollection = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *OptionSetting) SetIsModifiable(v bool) *OptionSetting { + s.IsModifiable = &v + return s +} + +// SetName sets the Name field's value. +func (s *OptionSetting) SetName(v string) *OptionSetting { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *OptionSetting) SetValue(v string) *OptionSetting { + s.Value = &v + return s +} + // The version for an option. Option group option versions are returned by the // DescribeOptionGroupOptions action. type OptionVersion struct { @@ -16107,9 +20801,21 @@ func (s OptionVersion) GoString() string { return s.String() } +// SetIsDefault sets the IsDefault field's value. +func (s *OptionVersion) SetIsDefault(v bool) *OptionVersion { + s.IsDefault = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *OptionVersion) SetVersion(v string) *OptionVersion { + s.Version = &v + return s +} + // Contains a list of available options for a DB instance // -// This data type is used as a response element in the DescribeOrderableDBInstanceOptions +// This data type is used as a response element in the DescribeOrderableDBInstanceOptions // action. type OrderableDBInstanceOption struct { _ struct{} `type:"structure"` @@ -16162,6 +20868,78 @@ func (s OrderableDBInstanceOption) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *OrderableDBInstanceOption) SetAvailabilityZones(v []*AvailabilityZone) *OrderableDBInstanceOption { + s.AvailabilityZones = v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *OrderableDBInstanceOption) SetDBInstanceClass(v string) *OrderableDBInstanceOption { + s.DBInstanceClass = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *OrderableDBInstanceOption) SetEngine(v string) *OrderableDBInstanceOption { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *OrderableDBInstanceOption) SetEngineVersion(v string) *OrderableDBInstanceOption { + s.EngineVersion = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *OrderableDBInstanceOption) SetLicenseModel(v string) *OrderableDBInstanceOption { + s.LicenseModel = &v + return s +} + +// SetMultiAZCapable sets the MultiAZCapable field's value. +func (s *OrderableDBInstanceOption) SetMultiAZCapable(v bool) *OrderableDBInstanceOption { + s.MultiAZCapable = &v + return s +} + +// SetReadReplicaCapable sets the ReadReplicaCapable field's value. +func (s *OrderableDBInstanceOption) SetReadReplicaCapable(v bool) *OrderableDBInstanceOption { + s.ReadReplicaCapable = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *OrderableDBInstanceOption) SetStorageType(v string) *OrderableDBInstanceOption { + s.StorageType = &v + return s +} + +// SetSupportsEnhancedMonitoring sets the SupportsEnhancedMonitoring field's value. +func (s *OrderableDBInstanceOption) SetSupportsEnhancedMonitoring(v bool) *OrderableDBInstanceOption { + s.SupportsEnhancedMonitoring = &v + return s +} + +// SetSupportsIops sets the SupportsIops field's value. +func (s *OrderableDBInstanceOption) SetSupportsIops(v bool) *OrderableDBInstanceOption { + s.SupportsIops = &v + return s +} + +// SetSupportsStorageEncryption sets the SupportsStorageEncryption field's value. +func (s *OrderableDBInstanceOption) SetSupportsStorageEncryption(v bool) *OrderableDBInstanceOption { + s.SupportsStorageEncryption = &v + return s +} + +// SetVpc sets the Vpc field's value. +func (s *OrderableDBInstanceOption) SetVpc(v bool) *OrderableDBInstanceOption { + s.Vpc = &v + return s +} + // This data type is used as a request parameter in the ModifyDBParameterGroup // and ResetDBParameterGroup actions. // @@ -16213,6 +20991,66 @@ func (s Parameter) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *Parameter) SetAllowedValues(v string) *Parameter { + s.AllowedValues = &v + return s +} + +// SetApplyMethod sets the ApplyMethod field's value. +func (s *Parameter) SetApplyMethod(v string) *Parameter { + s.ApplyMethod = &v + return s +} + +// SetApplyType sets the ApplyType field's value. +func (s *Parameter) SetApplyType(v string) *Parameter { + s.ApplyType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *Parameter) SetDataType(v string) *Parameter { + s.DataType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Parameter) SetDescription(v string) *Parameter { + s.Description = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *Parameter) SetIsModifiable(v bool) *Parameter { + s.IsModifiable = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter { + s.MinimumEngineVersion = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *Parameter) SetParameterName(v string) *Parameter { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *Parameter) SetParameterValue(v string) *Parameter { + s.ParameterValue = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Parameter) SetSource(v string) *Parameter { + s.Source = &v + return s +} + // Provides information about a pending maintenance action for a resource. type PendingMaintenanceAction struct { _ struct{} `type:"structure"` @@ -16256,6 +21094,42 @@ func (s PendingMaintenanceAction) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *PendingMaintenanceAction) SetAction(v string) *PendingMaintenanceAction { + s.Action = &v + return s +} + +// SetAutoAppliedAfterDate sets the AutoAppliedAfterDate field's value. +func (s *PendingMaintenanceAction) SetAutoAppliedAfterDate(v time.Time) *PendingMaintenanceAction { + s.AutoAppliedAfterDate = &v + return s +} + +// SetCurrentApplyDate sets the CurrentApplyDate field's value. +func (s *PendingMaintenanceAction) SetCurrentApplyDate(v time.Time) *PendingMaintenanceAction { + s.CurrentApplyDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PendingMaintenanceAction) SetDescription(v string) *PendingMaintenanceAction { + s.Description = &v + return s +} + +// SetForcedApplyDate sets the ForcedApplyDate field's value. +func (s *PendingMaintenanceAction) SetForcedApplyDate(v time.Time) *PendingMaintenanceAction { + s.ForcedApplyDate = &v + return s +} + +// SetOptInStatus sets the OptInStatus field's value. +func (s *PendingMaintenanceAction) SetOptInStatus(v string) *PendingMaintenanceAction { + s.OptInStatus = &v + return s +} + // This data type is used as a response element in the ModifyDBInstance action. type PendingModifiedValues struct { _ struct{} `type:"structure"` @@ -16317,6 +21191,84 @@ func (s PendingModifiedValues) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *PendingModifiedValues) SetAllocatedStorage(v int64) *PendingModifiedValues { + s.AllocatedStorage = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *PendingModifiedValues) SetBackupRetentionPeriod(v int64) *PendingModifiedValues { + s.BackupRetentionPeriod = &v + return s +} + +// SetCACertificateIdentifier sets the CACertificateIdentifier field's value. +func (s *PendingModifiedValues) SetCACertificateIdentifier(v string) *PendingModifiedValues { + s.CACertificateIdentifier = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *PendingModifiedValues) SetDBInstanceClass(v string) *PendingModifiedValues { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *PendingModifiedValues) SetDBInstanceIdentifier(v string) *PendingModifiedValues { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *PendingModifiedValues) SetDBSubnetGroupName(v string) *PendingModifiedValues { + s.DBSubnetGroupName = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *PendingModifiedValues) SetEngineVersion(v string) *PendingModifiedValues { + s.EngineVersion = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *PendingModifiedValues) SetIops(v int64) *PendingModifiedValues { + s.Iops = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *PendingModifiedValues) SetLicenseModel(v string) *PendingModifiedValues { + s.LicenseModel = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *PendingModifiedValues) SetMasterUserPassword(v string) *PendingModifiedValues { + s.MasterUserPassword = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *PendingModifiedValues) SetMultiAZ(v bool) *PendingModifiedValues { + s.MultiAZ = &v + return s +} + +// SetPort sets the Port field's value. +func (s *PendingModifiedValues) SetPort(v int64) *PendingModifiedValues { + s.Port = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *PendingModifiedValues) SetStorageType(v string) *PendingModifiedValues { + s.StorageType = &v + return s +} + type PromoteReadReplicaDBClusterInput struct { _ struct{} `type:"structure"` @@ -16325,13 +21277,13 @@ type PromoteReadReplicaDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster-replica1 + // Example: my-cluster-replica1 // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -16360,25 +21312,30 @@ func (s *PromoteReadReplicaDBClusterInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *PromoteReadReplicaDBClusterInput) SetDBClusterIdentifier(v string) *PromoteReadReplicaDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + type PromoteReadReplicaDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -16392,6 +21349,12 @@ func (s PromoteReadReplicaDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *PromoteReadReplicaDBClusterOutput) SetDBCluster(v *DBCluster) *PromoteReadReplicaDBClusterOutput { + s.DBCluster = v + return s +} + type PromoteReadReplicaInput struct { _ struct{} `type:"structure"` @@ -16403,22 +21366,22 @@ type PromoteReadReplicaInput struct { // // Constraints: // - // Must be a value from 0 to 8 + // * Must be a value from 0 to 8 BackupRetentionPeriod *int64 `type:"integer"` // The DB instance identifier. This value is stored as a lowercase string. // // Constraints: // - // Must be the identifier for an existing Read Replica DB instance + // * Must be the identifier for an existing Read Replica DB instance // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: mydbinstance + // Example: mydbinstance // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -16426,20 +21389,20 @@ type PromoteReadReplicaInput struct { // The daily time range during which automated backups are created if automated // backups are enabled, using the BackupRetentionPeriod parameter. // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region. To see the time blocks available, see Adjusting the Preferred + // Default: A 30-minute window selected at random from an 8-hour block of time + // per region. To see the time blocks available, see Adjusting the Preferred // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html) // in the Amazon RDS User Guide. // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` } @@ -16466,19 +21429,36 @@ func (s *PromoteReadReplicaInput) Validate() error { return nil } +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *PromoteReadReplicaInput) SetBackupRetentionPeriod(v int64) *PromoteReadReplicaInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *PromoteReadReplicaInput) SetDBInstanceIdentifier(v string) *PromoteReadReplicaInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *PromoteReadReplicaInput) SetPreferredBackupWindow(v string) *PromoteReadReplicaInput { + s.PreferredBackupWindow = &v + return s +} + type PromoteReadReplicaOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -16492,6 +21472,12 @@ func (s PromoteReadReplicaOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *PromoteReadReplicaOutput) SetDBInstance(v *DBInstance) *PromoteReadReplicaOutput { + s.DBInstance = v + return s +} + type PurchaseReservedDBInstancesOfferingInput struct { _ struct{} `type:"structure"` @@ -16539,6 +21525,30 @@ func (s *PurchaseReservedDBInstancesOfferingInput) Validate() error { return nil } +// SetDBInstanceCount sets the DBInstanceCount field's value. +func (s *PurchaseReservedDBInstancesOfferingInput) SetDBInstanceCount(v int64) *PurchaseReservedDBInstancesOfferingInput { + s.DBInstanceCount = &v + return s +} + +// SetReservedDBInstanceId sets the ReservedDBInstanceId field's value. +func (s *PurchaseReservedDBInstancesOfferingInput) SetReservedDBInstanceId(v string) *PurchaseReservedDBInstancesOfferingInput { + s.ReservedDBInstanceId = &v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *PurchaseReservedDBInstancesOfferingInput) SetReservedDBInstancesOfferingId(v string) *PurchaseReservedDBInstancesOfferingInput { + s.ReservedDBInstancesOfferingId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *PurchaseReservedDBInstancesOfferingInput) SetTags(v []*Tag) *PurchaseReservedDBInstancesOfferingInput { + s.Tags = v + return s +} + type PurchaseReservedDBInstancesOfferingOutput struct { _ struct{} `type:"structure"` @@ -16557,6 +21567,12 @@ func (s PurchaseReservedDBInstancesOfferingOutput) GoString() string { return s.String() } +// SetReservedDBInstance sets the ReservedDBInstance field's value. +func (s *PurchaseReservedDBInstancesOfferingOutput) SetReservedDBInstance(v *ReservedDBInstance) *PurchaseReservedDBInstancesOfferingOutput { + s.ReservedDBInstance = v + return s +} + type RebootDBInstanceInput struct { _ struct{} `type:"structure"` @@ -16564,11 +21580,11 @@ type RebootDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -16603,19 +21619,30 @@ func (s *RebootDBInstanceInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *RebootDBInstanceInput) SetDBInstanceIdentifier(v string) *RebootDBInstanceInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetForceFailover sets the ForceFailover field's value. +func (s *RebootDBInstanceInput) SetForceFailover(v bool) *RebootDBInstanceInput { + s.ForceFailover = &v + return s +} + type RebootDBInstanceOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -16629,6 +21656,12 @@ func (s RebootDBInstanceOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *RebootDBInstanceOutput) SetDBInstance(v *DBInstance) *RebootDBInstanceOutput { + s.DBInstance = v + return s +} + // This data type is used as a response element in the DescribeReservedDBInstances // and DescribeReservedDBInstancesOfferings actions. type RecurringCharge struct { @@ -16651,6 +21684,85 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetRecurringChargeAmount sets the RecurringChargeAmount field's value. +func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge { + s.RecurringChargeAmount = &v + return s +} + +// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. +func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { + s.RecurringChargeFrequency = &v + return s +} + +type RemoveRoleFromDBClusterInput struct { + _ struct{} `type:"structure"` + + // The name of the DB cluster to disassociate the IAM role rom. + // + // DBClusterIdentifier is a required field + DBClusterIdentifier *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the IAM role to disassociate from the Aurora + // DB cluster, for example arn:aws:iam::123456789012:role/AuroraAccessRole. + // + // RoleArn is a required field + RoleArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s RemoveRoleFromDBClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveRoleFromDBClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveRoleFromDBClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveRoleFromDBClusterInput"} + if s.DBClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *RemoveRoleFromDBClusterInput) SetDBClusterIdentifier(v string) *RemoveRoleFromDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *RemoveRoleFromDBClusterInput) SetRoleArn(v string) *RemoveRoleFromDBClusterInput { + s.RoleArn = &v + return s +} + +type RemoveRoleFromDBClusterOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveRoleFromDBClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveRoleFromDBClusterOutput) GoString() string { + return s.String() +} + type RemoveSourceIdentifierFromSubscriptionInput struct { _ struct{} `type:"structure"` @@ -16693,6 +21805,18 @@ func (s *RemoveSourceIdentifierFromSubscriptionInput) Validate() error { return nil } +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *RemoveSourceIdentifierFromSubscriptionInput) SetSourceIdentifier(v string) *RemoveSourceIdentifierFromSubscriptionInput { + s.SourceIdentifier = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *RemoveSourceIdentifierFromSubscriptionInput) SetSubscriptionName(v string) *RemoveSourceIdentifierFromSubscriptionInput { + s.SubscriptionName = &v + return s +} + type RemoveSourceIdentifierFromSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -16711,6 +21835,12 @@ func (s RemoveSourceIdentifierFromSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *RemoveSourceIdentifierFromSubscriptionOutput) SetEventSubscription(v *EventSubscription) *RemoveSourceIdentifierFromSubscriptionOutput { + s.EventSubscription = v + return s +} + type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -16753,6 +21883,18 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *RemoveTagsFromResourceInput) SetResourceName(v string) *RemoveTagsFromResourceInput { + s.ResourceName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + type RemoveTagsFromResourceOutput struct { _ struct{} `type:"structure"` } @@ -16828,6 +21970,96 @@ func (s ReservedDBInstance) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedDBInstance) SetCurrencyCode(v string) *ReservedDBInstance { + s.CurrencyCode = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *ReservedDBInstance) SetDBInstanceClass(v string) *ReservedDBInstance { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceCount sets the DBInstanceCount field's value. +func (s *ReservedDBInstance) SetDBInstanceCount(v int64) *ReservedDBInstance { + s.DBInstanceCount = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedDBInstance) SetDuration(v int64) *ReservedDBInstance { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedDBInstance) SetFixedPrice(v float64) *ReservedDBInstance { + s.FixedPrice = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ReservedDBInstance) SetMultiAZ(v bool) *ReservedDBInstance { + s.MultiAZ = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedDBInstance) SetOfferingType(v string) *ReservedDBInstance { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedDBInstance) SetProductDescription(v string) *ReservedDBInstance { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedDBInstance) SetRecurringCharges(v []*RecurringCharge) *ReservedDBInstance { + s.RecurringCharges = v + return s +} + +// SetReservedDBInstanceArn sets the ReservedDBInstanceArn field's value. +func (s *ReservedDBInstance) SetReservedDBInstanceArn(v string) *ReservedDBInstance { + s.ReservedDBInstanceArn = &v + return s +} + +// SetReservedDBInstanceId sets the ReservedDBInstanceId field's value. +func (s *ReservedDBInstance) SetReservedDBInstanceId(v string) *ReservedDBInstance { + s.ReservedDBInstanceId = &v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *ReservedDBInstance) SetReservedDBInstancesOfferingId(v string) *ReservedDBInstance { + s.ReservedDBInstancesOfferingId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReservedDBInstance) SetStartTime(v time.Time) *ReservedDBInstance { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedDBInstance) SetState(v string) *ReservedDBInstance { + s.State = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedDBInstance) SetUsagePrice(v float64) *ReservedDBInstance { + s.UsagePrice = &v + return s +} + // This data type is used as a response element in the DescribeReservedDBInstancesOfferings // action. type ReservedDBInstancesOffering struct { @@ -16874,6 +22106,66 @@ func (s ReservedDBInstancesOffering) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedDBInstancesOffering) SetCurrencyCode(v string) *ReservedDBInstancesOffering { + s.CurrencyCode = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *ReservedDBInstancesOffering) SetDBInstanceClass(v string) *ReservedDBInstancesOffering { + s.DBInstanceClass = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedDBInstancesOffering) SetDuration(v int64) *ReservedDBInstancesOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedDBInstancesOffering) SetFixedPrice(v float64) *ReservedDBInstancesOffering { + s.FixedPrice = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ReservedDBInstancesOffering) SetMultiAZ(v bool) *ReservedDBInstancesOffering { + s.MultiAZ = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedDBInstancesOffering) SetOfferingType(v string) *ReservedDBInstancesOffering { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedDBInstancesOffering) SetProductDescription(v string) *ReservedDBInstancesOffering { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedDBInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedDBInstancesOffering { + s.RecurringCharges = v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *ReservedDBInstancesOffering) SetReservedDBInstancesOfferingId(v string) *ReservedDBInstancesOffering { + s.ReservedDBInstancesOfferingId = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedDBInstancesOffering) SetUsagePrice(v float64) *ReservedDBInstancesOffering { + s.UsagePrice = &v + return s +} + type ResetDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -16916,6 +22208,24 @@ func (s *ResetDBClusterParameterGroupInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *ResetDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *ResetDBClusterParameterGroupInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ResetDBClusterParameterGroupInput) SetParameters(v []*Parameter) *ResetDBClusterParameterGroupInput { + s.Parameters = v + return s +} + +// SetResetAllParameters sets the ResetAllParameters field's value. +func (s *ResetDBClusterParameterGroupInput) SetResetAllParameters(v bool) *ResetDBClusterParameterGroupInput { + s.ResetAllParameters = &v + return s +} + type ResetDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -16923,11 +22233,11 @@ type ResetDBParameterGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -16937,7 +22247,7 @@ type ResetDBParameterGroupInput struct { // subsequent arguments are optional. A maximum of 20 parameters can be modified // in a single request. // - // MySQL + // MySQL // // Valid Values (for Apply method): immediate | pending-reboot // @@ -16945,7 +22255,7 @@ type ResetDBParameterGroupInput struct { // the pending-reboot value for both dynamic and static parameters, and changes // are applied when DB instance reboots. // - // MariaDB + // MariaDB // // Valid Values (for Apply method): immediate | pending-reboot // @@ -16953,7 +22263,7 @@ type ResetDBParameterGroupInput struct { // the pending-reboot value for both dynamic and static parameters, and changes // are applied when DB instance reboots. // - // Oracle + // Oracle // // Valid Values (for Apply method): pending-reboot Parameters []*Parameter `locationNameList:"Parameter" type:"list"` @@ -16988,6 +22298,24 @@ func (s *ResetDBParameterGroupInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *ResetDBParameterGroupInput) SetDBParameterGroupName(v string) *ResetDBParameterGroupInput { + s.DBParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ResetDBParameterGroupInput) SetParameters(v []*Parameter) *ResetDBParameterGroupInput { + s.Parameters = v + return s +} + +// SetResetAllParameters sets the ResetAllParameters field's value. +func (s *ResetDBParameterGroupInput) SetResetAllParameters(v bool) *ResetDBParameterGroupInput { + s.ResetAllParameters = &v + return s +} + // Describes the pending maintenance actions for a resource. type ResourcePendingMaintenanceActions struct { _ struct{} `type:"structure"` @@ -17010,6 +22338,18 @@ func (s ResourcePendingMaintenanceActions) GoString() string { return s.String() } +// SetPendingMaintenanceActionDetails sets the PendingMaintenanceActionDetails field's value. +func (s *ResourcePendingMaintenanceActions) SetPendingMaintenanceActionDetails(v []*PendingMaintenanceAction) *ResourcePendingMaintenanceActions { + s.PendingMaintenanceActionDetails = v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *ResourcePendingMaintenanceActions) SetResourceIdentifier(v string) *ResourcePendingMaintenanceActions { + s.ResourceIdentifier = &v + return s +} + type RestoreDBClusterFromS3Input struct { _ struct{} `type:"structure"` @@ -17024,7 +22364,7 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must be a value from 1 to 35 + // * Must be a value from 1 to 35 BackupRetentionPeriod *int64 `type:"integer"` // A value that indicates that the restored DB cluster should be associated @@ -17036,13 +22376,13 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster1 + // Example: my-cluster1 // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -17052,11 +22392,11 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string"` // A DB subnet group to associate with the restored DB cluster. @@ -17079,7 +22419,7 @@ type RestoreDBClusterFromS3Input struct { // The version number of the database engine to use. // - // Aurora + // Aurora // // Example: 5.6.10a EngineVersion *string `type:"string"` @@ -17109,11 +22449,11 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must be 1 to 16 alphanumeric characters. + // * Must be 1 to 16 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // // MasterUsername is a required field MasterUsername *string `type:"string" required:"true"` @@ -17128,7 +22468,7 @@ type RestoreDBClusterFromS3Input struct { // The port number on which the instances in the restored DB cluster accept // connections. // - // Default: 3306 + // Default: 3306 Port *int64 `type:"integer"` // The daily time range during which automated backups are created if automated @@ -17141,19 +22481,19 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: A 30-minute window selected at random from an 8-hour block of time // per region, occurring on a random day of the week. To see the time blocks @@ -17255,25 +22595,168 @@ func (s *RestoreDBClusterFromS3Input) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *RestoreDBClusterFromS3Input) SetAvailabilityZones(v []*string) *RestoreDBClusterFromS3Input { + s.AvailabilityZones = v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *RestoreDBClusterFromS3Input) SetBackupRetentionPeriod(v int64) *RestoreDBClusterFromS3Input { + s.BackupRetentionPeriod = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *RestoreDBClusterFromS3Input) SetCharacterSetName(v string) *RestoreDBClusterFromS3Input { + s.CharacterSetName = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *RestoreDBClusterFromS3Input) SetDBClusterIdentifier(v string) *RestoreDBClusterFromS3Input { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *RestoreDBClusterFromS3Input) SetDBClusterParameterGroupName(v string) *RestoreDBClusterFromS3Input { + s.DBClusterParameterGroupName = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBClusterFromS3Input) SetDBSubnetGroupName(v string) *RestoreDBClusterFromS3Input { + s.DBSubnetGroupName = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *RestoreDBClusterFromS3Input) SetDatabaseName(v string) *RestoreDBClusterFromS3Input { + s.DatabaseName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RestoreDBClusterFromS3Input) SetEngine(v string) *RestoreDBClusterFromS3Input { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *RestoreDBClusterFromS3Input) SetEngineVersion(v string) *RestoreDBClusterFromS3Input { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *RestoreDBClusterFromS3Input) SetKmsKeyId(v string) *RestoreDBClusterFromS3Input { + s.KmsKeyId = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *RestoreDBClusterFromS3Input) SetMasterUserPassword(v string) *RestoreDBClusterFromS3Input { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *RestoreDBClusterFromS3Input) SetMasterUsername(v string) *RestoreDBClusterFromS3Input { + s.MasterUsername = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBClusterFromS3Input) SetOptionGroupName(v string) *RestoreDBClusterFromS3Input { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBClusterFromS3Input) SetPort(v int64) *RestoreDBClusterFromS3Input { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *RestoreDBClusterFromS3Input) SetPreferredBackupWindow(v string) *RestoreDBClusterFromS3Input { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *RestoreDBClusterFromS3Input) SetPreferredMaintenanceWindow(v string) *RestoreDBClusterFromS3Input { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *RestoreDBClusterFromS3Input) SetS3BucketName(v string) *RestoreDBClusterFromS3Input { + s.S3BucketName = &v + return s +} + +// SetS3IngestionRoleArn sets the S3IngestionRoleArn field's value. +func (s *RestoreDBClusterFromS3Input) SetS3IngestionRoleArn(v string) *RestoreDBClusterFromS3Input { + s.S3IngestionRoleArn = &v + return s +} + +// SetS3Prefix sets the S3Prefix field's value. +func (s *RestoreDBClusterFromS3Input) SetS3Prefix(v string) *RestoreDBClusterFromS3Input { + s.S3Prefix = &v + return s +} + +// SetSourceEngine sets the SourceEngine field's value. +func (s *RestoreDBClusterFromS3Input) SetSourceEngine(v string) *RestoreDBClusterFromS3Input { + s.SourceEngine = &v + return s +} + +// SetSourceEngineVersion sets the SourceEngineVersion field's value. +func (s *RestoreDBClusterFromS3Input) SetSourceEngineVersion(v string) *RestoreDBClusterFromS3Input { + s.SourceEngineVersion = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *RestoreDBClusterFromS3Input) SetStorageEncrypted(v bool) *RestoreDBClusterFromS3Input { + s.StorageEncrypted = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBClusterFromS3Input) SetTags(v []*Tag) *RestoreDBClusterFromS3Input { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreDBClusterFromS3Input) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterFromS3Input { + s.VpcSecurityGroupIds = v + return s +} + type RestoreDBClusterFromS3Output struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -17287,6 +22770,12 @@ func (s RestoreDBClusterFromS3Output) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *RestoreDBClusterFromS3Output) SetDBCluster(v *DBCluster) *RestoreDBClusterFromS3Output { + s.DBCluster = v + return s +} + type RestoreDBClusterFromSnapshotInput struct { _ struct{} `type:"structure"` @@ -17299,13 +22788,13 @@ type RestoreDBClusterFromSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-snapshot-id + // Example: my-snapshot-id // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -17344,11 +22833,12 @@ type RestoreDBClusterFromSnapshotInput struct { // If you do not specify a value for the KmsKeyId parameter, then the following // will occur: // - // If the DB cluster snapshot is encrypted, then the restored DB cluster - // is encrypted using the KMS key that was used to encrypt the DB cluster snapshot. + // * If the DB cluster snapshot is encrypted, then the restored DB cluster + // is encrypted using the KMS key that was used to encrypt the DB cluster + // snapshot. // - // If the DB cluster snapshot is not encrypted, then the restored DB cluster - // is encrypted using the specified encryption key. + // * If the DB cluster snapshot is not encrypted, then the restored DB cluster + // is encrypted using the specified encryption key. KmsKeyId *string `type:"string"` // The name of the option group to use for the restored DB cluster. @@ -17365,11 +22855,11 @@ type RestoreDBClusterFromSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // SnapshotIdentifier is a required field SnapshotIdentifier *string `type:"string" required:"true"` @@ -17410,25 +22900,96 @@ func (s *RestoreDBClusterFromSnapshotInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetAvailabilityZones(v []*string) *RestoreDBClusterFromSnapshotInput { + s.AvailabilityZones = v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetDBClusterIdentifier(v string) *RestoreDBClusterFromSnapshotInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetDBSubnetGroupName(v string) *RestoreDBClusterFromSnapshotInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetDatabaseName(v string) *RestoreDBClusterFromSnapshotInput { + s.DatabaseName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetEngine(v string) *RestoreDBClusterFromSnapshotInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetEngineVersion(v string) *RestoreDBClusterFromSnapshotInput { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetKmsKeyId(v string) *RestoreDBClusterFromSnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetOptionGroupName(v string) *RestoreDBClusterFromSnapshotInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetPort(v int64) *RestoreDBClusterFromSnapshotInput { + s.Port = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetSnapshotIdentifier(v string) *RestoreDBClusterFromSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetTags(v []*Tag) *RestoreDBClusterFromSnapshotInput { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterFromSnapshotInput { + s.VpcSecurityGroupIds = v + return s +} + type RestoreDBClusterFromSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -17442,6 +23003,12 @@ func (s RestoreDBClusterFromSnapshotOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *RestoreDBClusterFromSnapshotOutput) SetDBCluster(v *DBCluster) *RestoreDBClusterFromSnapshotOutput { + s.DBCluster = v + return s +} + type RestoreDBClusterToPointInTimeInput struct { _ struct{} `type:"structure"` @@ -17449,11 +23016,11 @@ type RestoreDBClusterToPointInTimeInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -17474,22 +23041,22 @@ type RestoreDBClusterToPointInTimeInput struct { // the KMS encryption key used to encrypt the new DB cluster, then you can use // the KMS key alias instead of the ARN for the KMS encryption key. // - // You can restore to a new DB cluster and encrypt the new DB cluster with - // a KMS key that is different than the KMS key used to encrypt the source DB + // You can restore to a new DB cluster and encrypt the new DB cluster with a + // KMS key that is different than the KMS key used to encrypt the source DB // cluster. The new DB cluster will be encrypted with the KMS key identified // by the KmsKeyId parameter. // // If you do not specify a value for the KmsKeyId parameter, then the following // will occur: // - // If the DB cluster is encrypted, then the restored DB cluster is encrypted - // using the KMS key that was used to encrypt the source DB cluster. + // * If the DB cluster is encrypted, then the restored DB cluster is encrypted + // using the KMS key that was used to encrypt the source DB cluster. // - // If the DB cluster is not encrypted, then the restored DB cluster is not - // encrypted. + // * If the DB cluster is not encrypted, then the restored DB cluster is + // not encrypted. // - // If DBClusterIdentifier refers to a DB cluster that is note encrypted, - // then the restore request is rejected. + // If DBClusterIdentifier refers to a DB cluster that is note encrypted, then + // the restore request is rejected. KmsKeyId *string `type:"string"` // The name of the option group for the new DB cluster. @@ -17508,24 +23075,24 @@ type RestoreDBClusterToPointInTimeInput struct { // // Constraints: // - // Must be before the latest restorable time for the DB instance + // * Must be before the latest restorable time for the DB instance // - // Cannot be specified if UseLatestRestorableTime parameter is true + // * Cannot be specified if UseLatestRestorableTime parameter is true // - // Example: 2015-03-07T23:45:00Z + // Example: 2015-03-07T23:45:00Z RestoreToTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The identifier of the source DB cluster from which to restore. // // Constraints: // - // Must be the identifier of an existing database instance + // * Must be the identifier of an existing database instance // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // SourceDBClusterIdentifier is a required field SourceDBClusterIdentifier *string `type:"string" required:"true"` @@ -17571,25 +23138,84 @@ func (s *RestoreDBClusterToPointInTimeInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBClusterToPointInTimeInput { + s.DBSubnetGroupName = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetKmsKeyId(v string) *RestoreDBClusterToPointInTimeInput { + s.KmsKeyId = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetOptionGroupName(v string) *RestoreDBClusterToPointInTimeInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetPort(v int64) *RestoreDBClusterToPointInTimeInput { + s.Port = &v + return s +} + +// SetRestoreToTime sets the RestoreToTime field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetRestoreToTime(v time.Time) *RestoreDBClusterToPointInTimeInput { + s.RestoreToTime = &v + return s +} + +// SetSourceDBClusterIdentifier sets the SourceDBClusterIdentifier field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetSourceDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput { + s.SourceDBClusterIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetTags(v []*Tag) *RestoreDBClusterToPointInTimeInput { + s.Tags = v + return s +} + +// SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetUseLatestRestorableTime(v bool) *RestoreDBClusterToPointInTimeInput { + s.UseLatestRestorableTime = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterToPointInTimeInput { + s.VpcSecurityGroupIds = v + return s +} + type RestoreDBClusterToPointInTimeOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -17603,6 +23229,12 @@ func (s RestoreDBClusterToPointInTimeOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *RestoreDBClusterToPointInTimeOutput) SetDBCluster(v *DBCluster) *RestoreDBClusterToPointInTimeOutput { + s.DBCluster = v + return s +} + type RestoreDBInstanceFromDBSnapshotInput struct { _ struct{} `type:"structure"` @@ -17638,34 +23270,34 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 - // for SQL Server) + // * Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 + // for SQL Server) // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-snapshot-id + // Example: my-snapshot-id // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` // The database name for the restored DB instance. // - // This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines. + // This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines. DBName *string `type:"string"` // The identifier for the DB snapshot to restore from. // // Constraints: // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier + // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier // must be the ARN of the shared DB snapshot. // // DBSnapshotIdentifier is a required field @@ -17692,7 +23324,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Constraint: Must be compatible with the engine of the source // - // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee + // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora Engine *string `type:"string"` @@ -17705,7 +23337,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Constraints: Must be an integer greater than 1000. // - // SQL Server + // SQL Server // // Setting the IOPS value for the SQL Server database engine is not supported. Iops *int64 `type:"integer"` @@ -17714,7 +23346,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Default: Same as source. // - // Valid values: license-included | bring-your-own-license | general-public-license + // Valid values: license-included | bring-your-own-license | general-public-license LicenseModel *string `type:"string"` // Specifies if the DB instance is a Multi-AZ deployment. @@ -17745,24 +23377,23 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC: true + // * Default VPC: true // - // VPC: false + // * VPC: false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // Specifies the storage type to be associated with the DB instance. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // A list of tags. @@ -17802,19 +23433,144 @@ func (s *RestoreDBInstanceFromDBSnapshotInput) Validate() error { return nil } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetAutoMinorVersionUpgrade(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetAvailabilityZone(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.AvailabilityZone = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetCopyTagsToSnapshot(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBInstanceClass(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBInstanceIdentifier(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBName = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBSnapshotIdentifier(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBSubnetGroupName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDomain(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDomainIAMRoleName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DomainIAMRoleName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetEngine(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.Engine = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetIops(v int64) *RestoreDBInstanceFromDBSnapshotInput { + s.Iops = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetLicenseModel(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.LicenseModel = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetMultiAZ(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.MultiAZ = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetOptionGroupName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetPort(v int64) *RestoreDBInstanceFromDBSnapshotInput { + s.Port = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetPubliclyAccessible(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.PubliclyAccessible = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetStorageType(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.StorageType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetTags(v []*Tag) *RestoreDBInstanceFromDBSnapshotInput { + s.Tags = v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetTdeCredentialArn(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.TdeCredentialArn = &v + return s +} + +// SetTdeCredentialPassword sets the TdeCredentialPassword field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetTdeCredentialPassword(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.TdeCredentialPassword = &v + return s +} + type RestoreDBInstanceFromDBSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -17828,6 +23584,12 @@ func (s RestoreDBInstanceFromDBSnapshotOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *RestoreDBInstanceFromDBSnapshotOutput) SetDBInstance(v *DBInstance) *RestoreDBInstanceFromDBSnapshotOutput { + s.DBInstance = v + return s +} + type RestoreDBInstanceToPointInTimeInput struct { _ struct{} `type:"structure"` @@ -17862,7 +23624,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // The database name for the restored DB instance. // - // This parameter is not used for the MySQL or MariaDB engines. + // This parameter is not used for the MySQL or MariaDB engines. DBName *string `type:"string"` // The DB subnet group name to use for the new instance. @@ -17886,7 +23648,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraint: Must be compatible with the engine of the source // - // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee + // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora Engine *string `type:"string"` @@ -17895,7 +23657,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: Must be an integer greater than 1000. // - // SQL Server + // SQL Server // // Setting the IOPS value for the SQL Server database engine is not supported. Iops *int64 `type:"integer"` @@ -17904,7 +23666,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Default: Same as source. // - // Valid values: license-included | bring-your-own-license | general-public-license + // Valid values: license-included | bring-your-own-license | general-public-license LicenseModel *string `type:"string"` // Specifies if the DB instance is a Multi-AZ deployment. @@ -17935,15 +23697,14 @@ type RestoreDBInstanceToPointInTimeInput struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC:true + // * Default VPC:true // - // VPC:false + // * VPC:false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // The date and time to restore from. @@ -17952,35 +23713,35 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: // - // Must be before the latest restorable time for the DB instance + // * Must be before the latest restorable time for the DB instance // - // Cannot be specified if UseLatestRestorableTime parameter is true + // * Cannot be specified if UseLatestRestorableTime parameter is true // - // Example: 2009-09-07T23:45:00Z + // Example: 2009-09-07T23:45:00Z RestoreTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The identifier of the source DB instance from which to restore. // // Constraints: // - // Must be the identifier of an existing database instance + // * Must be the identifier of an existing database instance // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // SourceDBInstanceIdentifier is a required field SourceDBInstanceIdentifier *string `type:"string" required:"true"` // Specifies the storage type to be associated with the DB instance. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // A list of tags. @@ -17990,11 +23751,11 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // TargetDBInstanceIdentifier is a required field TargetDBInstanceIdentifier *string `type:"string" required:"true"` @@ -18041,19 +23802,156 @@ func (s *RestoreDBInstanceToPointInTimeInput) Validate() error { return nil } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetAutoMinorVersionUpgrade(v bool) *RestoreDBInstanceToPointInTimeInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetAvailabilityZone(v string) *RestoreDBInstanceToPointInTimeInput { + s.AvailabilityZone = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetCopyTagsToSnapshot(v bool) *RestoreDBInstanceToPointInTimeInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDBInstanceClass(v string) *RestoreDBInstanceToPointInTimeInput { + s.DBInstanceClass = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDBName(v string) *RestoreDBInstanceToPointInTimeInput { + s.DBName = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBInstanceToPointInTimeInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDomain(v string) *RestoreDBInstanceToPointInTimeInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDomainIAMRoleName(v string) *RestoreDBInstanceToPointInTimeInput { + s.DomainIAMRoleName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetEngine(v string) *RestoreDBInstanceToPointInTimeInput { + s.Engine = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetIops(v int64) *RestoreDBInstanceToPointInTimeInput { + s.Iops = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetLicenseModel(v string) *RestoreDBInstanceToPointInTimeInput { + s.LicenseModel = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetMultiAZ(v bool) *RestoreDBInstanceToPointInTimeInput { + s.MultiAZ = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetOptionGroupName(v string) *RestoreDBInstanceToPointInTimeInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetPort(v int64) *RestoreDBInstanceToPointInTimeInput { + s.Port = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetPubliclyAccessible(v bool) *RestoreDBInstanceToPointInTimeInput { + s.PubliclyAccessible = &v + return s +} + +// SetRestoreTime sets the RestoreTime field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetRestoreTime(v time.Time) *RestoreDBInstanceToPointInTimeInput { + s.RestoreTime = &v + return s +} + +// SetSourceDBInstanceIdentifier sets the SourceDBInstanceIdentifier field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetSourceDBInstanceIdentifier(v string) *RestoreDBInstanceToPointInTimeInput { + s.SourceDBInstanceIdentifier = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetStorageType(v string) *RestoreDBInstanceToPointInTimeInput { + s.StorageType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetTags(v []*Tag) *RestoreDBInstanceToPointInTimeInput { + s.Tags = v + return s +} + +// SetTargetDBInstanceIdentifier sets the TargetDBInstanceIdentifier field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetTargetDBInstanceIdentifier(v string) *RestoreDBInstanceToPointInTimeInput { + s.TargetDBInstanceIdentifier = &v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetTdeCredentialArn(v string) *RestoreDBInstanceToPointInTimeInput { + s.TdeCredentialArn = &v + return s +} + +// SetTdeCredentialPassword sets the TdeCredentialPassword field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetTdeCredentialPassword(v string) *RestoreDBInstanceToPointInTimeInput { + s.TdeCredentialPassword = &v + return s +} + +// SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetUseLatestRestorableTime(v bool) *RestoreDBInstanceToPointInTimeInput { + s.UseLatestRestorableTime = &v + return s +} + type RestoreDBInstanceToPointInTimeOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -18067,6 +23965,12 @@ func (s RestoreDBInstanceToPointInTimeOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *RestoreDBInstanceToPointInTimeOutput) SetDBInstance(v *DBInstance) *RestoreDBInstanceToPointInTimeOutput { + s.DBInstance = v + return s +} + type RevokeDBSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -18121,20 +24025,50 @@ func (s *RevokeDBSecurityGroupIngressInput) Validate() error { return nil } +// SetCIDRIP sets the CIDRIP field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetCIDRIP(v string) *RevokeDBSecurityGroupIngressInput { + s.CIDRIP = &v + return s +} + +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetDBSecurityGroupName(v string) *RevokeDBSecurityGroupIngressInput { + s.DBSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupId(v string) *RevokeDBSecurityGroupIngressInput { + s.EC2SecurityGroupId = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *RevokeDBSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *RevokeDBSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + type RevokeDBSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups + // * DescribeDBSecurityGroups // - // AuthorizeDBSecurityGroupIngress + // * AuthorizeDBSecurityGroupIngress // - // CreateDBSecurityGroup + // * CreateDBSecurityGroup // - // RevokeDBSecurityGroupIngress + // * RevokeDBSecurityGroupIngress // - // This data type is used as a response element in the DescribeDBSecurityGroups + // This data type is used as a response element in the DescribeDBSecurityGroups // action. DBSecurityGroup *DBSecurityGroup `type:"structure"` } @@ -18149,6 +24083,12 @@ func (s RevokeDBSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetDBSecurityGroup sets the DBSecurityGroup field's value. +func (s *RevokeDBSecurityGroupIngressOutput) SetDBSecurityGroup(v *DBSecurityGroup) *RevokeDBSecurityGroupIngressOutput { + s.DBSecurityGroup = v + return s +} + // Contains an AWS Region name as the result of a successful call to the DescribeSourceRegions // action. type SourceRegion struct { @@ -18174,6 +24114,24 @@ func (s SourceRegion) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *SourceRegion) SetEndpoint(v string) *SourceRegion { + s.Endpoint = &v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *SourceRegion) SetRegionName(v string) *SourceRegion { + s.RegionName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SourceRegion) SetStatus(v string) *SourceRegion { + s.Status = &v + return s +} + // This data type is used as a response element in the DescribeDBSubnetGroups // action. type Subnet struct { @@ -18181,9 +24139,9 @@ type Subnet struct { // Contains Availability Zone information. // - // This data type is used as an element in the following data type: + // This data type is used as an element in the following data type: // - // OrderableDBInstanceOption + // * OrderableDBInstanceOption SubnetAvailabilityZone *AvailabilityZone `type:"structure"` // Specifies the identifier of the subnet. @@ -18203,6 +24161,24 @@ func (s Subnet) GoString() string { return s.String() } +// SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value. +func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet { + s.SubnetAvailabilityZone = v + return s +} + +// SetSubnetIdentifier sets the SubnetIdentifier field's value. +func (s *Subnet) SetSubnetIdentifier(v string) *Subnet { + s.SubnetIdentifier = &v + return s +} + +// SetSubnetStatus sets the SubnetStatus field's value. +func (s *Subnet) SetSubnetStatus(v string) *Subnet { + s.SubnetStatus = &v + return s +} + // Metadata assigned to an Amazon RDS resource consisting of a key-value pair. type Tag struct { _ struct{} `type:"structure"` @@ -18230,6 +24206,18 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // A time zone associated with a DBInstance or a DBSnapshot. This data type // is an element in the response to the DescribeDBInstances, the DescribeDBSnapshots, // and the DescribeDBEngineVersions actions. @@ -18250,6 +24238,12 @@ func (s Timezone) GoString() string { return s.String() } +// SetTimezoneName sets the TimezoneName field's value. +func (s *Timezone) SetTimezoneName(v string) *Timezone { + s.TimezoneName = &v + return s +} + // The version of the database engine that a DB instance can be upgraded to. type UpgradeTarget struct { _ struct{} `type:"structure"` @@ -18282,6 +24276,36 @@ func (s UpgradeTarget) GoString() string { return s.String() } +// SetAutoUpgrade sets the AutoUpgrade field's value. +func (s *UpgradeTarget) SetAutoUpgrade(v bool) *UpgradeTarget { + s.AutoUpgrade = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpgradeTarget) SetDescription(v string) *UpgradeTarget { + s.Description = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *UpgradeTarget) SetEngine(v string) *UpgradeTarget { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *UpgradeTarget) SetEngineVersion(v string) *UpgradeTarget { + s.EngineVersion = &v + return s +} + +// SetIsMajorVersionUpgrade sets the IsMajorVersionUpgrade field's value. +func (s *UpgradeTarget) SetIsMajorVersionUpgrade(v bool) *UpgradeTarget { + s.IsMajorVersionUpgrade = &v + return s +} + // This data type is used as a response element for queries on VPC security // group membership. type VpcSecurityGroupMembership struct { @@ -18304,6 +24328,18 @@ func (s VpcSecurityGroupMembership) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership { + s.Status = &v + return s +} + +// SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value. +func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership { + s.VpcSecurityGroupId = &v + return s +} + const ( // ApplyMethodImmediate is a ApplyMethod enum value ApplyMethodImmediate = "immediate" diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/service.go b/vendor/github.com/aws/aws-sdk-go/service/rds/service.go index 1082f992a..2cdd3e2fb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/service.go @@ -11,6 +11,7 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/query" ) +// // Amazon Relational Database Service (Amazon RDS) is a web service that makes // it easier to set up, operate, and scale a relational database in the cloud. // It provides cost-efficient, resizeable capacity for an industry-standard @@ -36,23 +37,23 @@ import ( // maintenance window. The reference structure is as follows, and we list following // some related topics from the user guide. // -// Amazon RDS API Reference +// Amazon RDS API Reference // -// For the alphabetical list of API actions, see API Actions (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Operations.html). +// * For the alphabetical list of API actions, see API Actions (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Operations.html). // -// For the alphabetical list of data types, see Data Types (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Types.html). +// * For the alphabetical list of data types, see Data Types (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Types.html). // -// For a list of common query parameters, see Common Parameters (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonParameters.html). +// * For a list of common query parameters, see Common Parameters (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonParameters.html). // -// For descriptions of the error codes, see Common Errors (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonErrors.html). +// * For descriptions of the error codes, see Common Errors (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonErrors.html). // -// Amazon RDS User Guide +// Amazon RDS User Guide // -// For a summary of the Amazon RDS interfaces, see Available RDS Interfaces -// (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html#Welcome.Interfaces). +// * For a summary of the Amazon RDS interfaces, see Available RDS Interfaces +// (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html#Welcome.Interfaces). // -// For more information about how to use the Query API, see Using the Query -// API (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html). +// * For more information about how to use the Query API, see Using the Query +// API (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html). //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type RDS struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go index 33d5614e2..6645fd731 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go @@ -68,8 +68,8 @@ func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeC // and EC2SecurityGroupOwnerId. The Amazon EC2 security group and Amazon Redshift // cluster must be in the same AWS region. // -// If you authorize access to a CIDR/IP address range, specify CIDRIP. For -// an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain +// If you authorize access to a CIDR/IP address range, specify CIDRIP. For an +// overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain // Routing (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // You must also associate the security group with a cluster so that clients @@ -153,7 +153,7 @@ func (c *Redshift) AuthorizeSnapshotAccessRequest(input *AuthorizeSnapshotAccess // // Authorizes the specified AWS customer account to restore the specified snapshot. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -247,7 +247,7 @@ func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) ( // snapshot for a longer period, you can make a manual copy of the snapshot. // Manual snapshots are retained until you delete them. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -466,8 +466,8 @@ func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParame // associate an existing cluster with a parameter group after the cluster is // created by using ModifyCluster. // -// Parameters in the parameter group define specific behavior that applies -// to the databases you create on the cluster. For more information about parameters +// Parameters in the parameter group define specific behavior that applies to +// the databases you create on the cluster. For more information about parameters // and parameter groups, go to Amazon Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -548,7 +548,7 @@ func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurit // Creates a new Amazon Redshift security group. You use security groups to // control access to non-VPC clusters. // -// For information about managing security groups, go to Amazon Redshift Cluster +// For information about managing security groups, go to Amazon Redshift Cluster // Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -629,7 +629,7 @@ func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInpu // Creates a manual snapshot of the specified cluster. The cluster must be in // the available state. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -716,7 +716,7 @@ func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGro // or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) // when creating Amazon Redshift subnet group. // -// For information about subnet groups, go to Amazon Redshift Cluster Subnet +// For information about subnet groups, go to Amazon Redshift Cluster Subnet // Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-cluster-subnet-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -825,8 +825,8 @@ func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscription // send notifications for those ERROR events in the Availability and Backup // categories for the specified clusters. // -// If you specify both the source type and source IDs, such as source type -// = cluster and source identifier = my-cluster-1, notifications will be sent +// If you specify both the source type and source IDs, such as source type = +// cluster and source identifier = my-cluster-1, notifications will be sent // for all the cluster events for my-cluster-1. If you specify a source type // but do not specify a source identifier, you will receive notice of the events // for the objects of that type in your AWS account. If you do not specify either @@ -1109,8 +1109,8 @@ func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrant // master key (CMK) from AWS Key Management Service (AWS KMS) to encrypt copied // snapshots in a destination region. // -// For more information about managing snapshot copy grants, go to Amazon -// Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) +// For more information about managing snapshot copy grants, go to Amazon Redshift +// Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1285,7 +1285,7 @@ func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request // snapshot is being taken, then it's "deleting" once Amazon Redshift begins // deleting the cluster. // -// For more information about managing clusters, go to Amazon Redshift Clusters +// For more information about managing clusters, go to Amazon Redshift Clusters // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. // @@ -1366,7 +1366,7 @@ func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParame // // Deletes a specified Amazon Redshift parameter group. // -// You cannot delete a parameter group if it is associated with a cluster. +// You cannot delete a parameter group if it is associated with a cluster. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1439,11 +1439,11 @@ func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurit // // Deletes an Amazon Redshift security group. // -// You cannot delete a security group that is associated with any clusters. +// You cannot delete a security group that is associated with any clusters. // You cannot delete the default security group. // -// For information about managing security groups, go to Amazon Redshift -// Cluster Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) +// For information about managing security groups, go to Amazon Redshift Cluster +// Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2024,12 +2024,12 @@ func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterP // family name. You can optionally specify a name to retrieve the description // of a specific parameter group. // -// For more information about parameters and parameter groups, go to Amazon +// For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all parameter groups that match any combination of the specified +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all parameter groups that match any combination of the specified // keys and values. For example, if you have owner and environment for tag keys, // and admin and test for tag values, all parameter groups that have any combination // of those values are returned. @@ -2143,7 +2143,7 @@ func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParame // For example, to retrieve parameters that were modified by a user action such // as from ModifyClusterParameterGroup, you can specify source equal to user. // -// For more information about parameters and parameter groups, go to Amazon +// For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -2244,13 +2244,13 @@ func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSe // a security group is specified, the response will contain only information // about only that security group. // -// For information about managing security groups, go to Amazon Redshift Cluster +// For information about managing security groups, go to Amazon Redshift Cluster // Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all security groups that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all security groups that match any combination of the specified keys +// and values. For example, if you have owner and environment for tag keys, // and admin and test for tag values, all security groups that have any combination // of those values are returned. // @@ -2360,17 +2360,16 @@ func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapsho // of all clusters that are owned by you AWS customer account. No information // is returned for snapshots owned by inactive AWS customer accounts. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all snapshots that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, -// and admin and test for tag values, all snapshots that have any combination -// of those values are returned. Only snapshots that you own are returned in -// the response; shared snapshots are not returned with the tag key and tag -// value request parameters. +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all snapshots that match any combination of the specified keys and +// values. For example, if you have owner and environment for tag keys, and +// admin and test for tag values, all snapshots that have any combination of +// those values are returned. Only snapshots that you own are returned in the +// response; shared snapshots are not returned with the tag key and tag value +// request parameters. // -// If both tag keys and values are omitted from the request, snapshots are -// returned regardless of whether they have tag keys or values associated with -// them. +// If both tag keys and values are omitted from the request, snapshots are returned +// regardless of whether they have tag keys or values associated with them. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2472,15 +2471,15 @@ func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubn // about your cluster subnet groups. By default, this operation returns information // about all cluster subnet groups that are defined in you AWS account. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all subnet groups that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all subnet groups that match any combination of the specified keys +// and values. For example, if you have owner and environment for tag keys, // and admin and test for tag values, all subnet groups that have any combination // of those values are returned. // -// If both tag keys and values are omitted from the request, subnet groups -// are returned regardless of whether they have tag keys or values associated -// with them. +// If both tag keys and values are omitted from the request, subnet groups are +// returned regardless of whether they have tag keys or values associated with +// them. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2679,11 +2678,11 @@ func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *r // about managing clusters, go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all clusters that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, -// and admin and test for tag values, all clusters that have any combination -// of those values are returned. +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all clusters that match any combination of the specified keys and +// values. For example, if you have owner and environment for tag keys, and +// admin and test for tag values, all clusters that have any combination of +// those values are returned. // // If both tag keys and values are omitted from the request, clusters are returned // regardless of whether they have tag keys or values associated with them. @@ -2786,7 +2785,7 @@ func (c *Redshift) DescribeDefaultClusterParametersRequest(input *DescribeDefaul // // Returns a list of parameter settings for the specified parameter group family. // -// For more information about parameters and parameter groups, go to Amazon +// For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -3134,11 +3133,11 @@ func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClient // ID is specified, returns information about all the HSM certificates owned // by your AWS customer account. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all HSM client certificates that match any combination of -// the specified keys and values. For example, if you have owner and environment -// for tag keys, and admin and test for tag values, all HSM client certificates -// that have any combination of those values are returned. +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all HSM client certificates that match any combination of the specified +// keys and values. For example, if you have owner and environment for tag keys, +// and admin and test for tag values, all HSM client certificates that have +// any combination of those values are returned. // // If both tag keys and values are omitted from the request, HSM client certificates // are returned regardless of whether they have tag keys or values associated @@ -3244,9 +3243,9 @@ func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurat // If no configuration ID is specified, returns information about all the HSM // configurations owned by your AWS customer account. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all HSM connections that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all HSM connections that match any combination of the specified keys +// and values. For example, if you have owner and environment for tag keys, // and admin and test for tag values, all HSM connections that have any combination // of those values are returned. // @@ -3520,7 +3519,7 @@ func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedN // to purchase. You then use the unique offering ID in you call to PurchaseReservedNodeOffering // to reserve one or more nodes for your Amazon Redshift cluster. // -// For more information about reserved node offerings, go to Purchasing Reserved +// For more information about reserved node offerings, go to Purchasing Reserved // Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) // in the Amazon Redshift Cluster Management Guide. // @@ -3785,8 +3784,8 @@ func (c *Redshift) DescribeSnapshotCopyGrantsRequest(input *DescribeSnapshotCopy // Returns a list of snapshot copy grants owned by the AWS account in the destination // region. // -// For more information about managing snapshot copy grants, go to Amazon -// Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) +// For more information about managing snapshot copy grants, go to Amazon Redshift +// Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3932,24 +3931,23 @@ func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.R // // The following are limitations for DescribeTags: // -// You cannot specify an ARN and a resource-type value together in the same -// request. +// * You cannot specify an ARN and a resource-type value together in the +// same request. // -// You cannot use the MaxRecords and Marker parameters together with the -// ARN parameter. +// * You cannot use the MaxRecords and Marker parameters together with the +// ARN parameter. // -// The MaxRecords parameter can be a range from 10 to 50 results to return -// in a request. +// * The MaxRecords parameter can be a range from 10 to 50 results to return +// in a request. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all resources that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, -// and admin and test for tag values, all resources that have any combination -// of those values are returned. +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all resources that match any combination of the specified keys and +// values. For example, if you have owner and environment for tag keys, and +// admin and test for tag values, all resources that have any combination of +// those values are returned. // -// If both tag keys and values are omitted from the request, resources are -// returned regardless of whether they have tag keys or values associated with -// them. +// If both tag keys and values are omitted from the request, resources are returned +// regardless of whether they have tag keys or values associated with them. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4084,8 +4082,8 @@ func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) ( // Disables the automatic copying of snapshots from one region to another region // for a specified cluster. // -// If your cluster and its snapshots are encrypted using a customer master -// key (CMK) from AWS KMS, use DeleteSnapshotCopyGrant to delete the grant that +// If your cluster and its snapshots are encrypted using a customer master key +// (CMK) from AWS KMS, use DeleteSnapshotCopyGrant to delete the grant that // grants Amazon Redshift permission to the CMK in the destination region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4527,7 +4525,7 @@ func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParame // // Modifies the parameters of a parameter group. // -// For more information about parameters and parameter groups, go to Amazon +// For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -4861,7 +4859,7 @@ func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNo // reserved node offerings. You can call this API by providing a specific reserved // node offering and the number of nodes you want to reserve. // -// For more information about reserved node offerings, go to Purchasing Reserved +// For more information about reserved node offerings, go to Purchasing Reserved // Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) // in the Amazon Redshift Cluster Management Guide. // @@ -5095,7 +5093,7 @@ func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSn // If you restore a cluster into a VPC, you must provide a cluster subnet group // where you want the cluster restored. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -5410,7 +5408,7 @@ func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) // specified snapshot. If the account is currently restoring the snapshot, the // restore will run to completion. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -5528,6 +5526,12 @@ func (s AccountWithRestoreAccess) GoString() string { return s.String() } +// SetAccountId sets the AccountId field's value. +func (s *AccountWithRestoreAccess) SetAccountId(v string) *AccountWithRestoreAccess { + s.AccountId = &v + return s +} + type AuthorizeClusterSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -5573,6 +5577,30 @@ func (s *AuthorizeClusterSecurityGroupIngressInput) Validate() error { return nil } +// SetCIDRIP sets the CIDRIP field's value. +func (s *AuthorizeClusterSecurityGroupIngressInput) SetCIDRIP(v string) *AuthorizeClusterSecurityGroupIngressInput { + s.CIDRIP = &v + return s +} + +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *AuthorizeClusterSecurityGroupIngressInput) SetClusterSecurityGroupName(v string) *AuthorizeClusterSecurityGroupIngressInput { + s.ClusterSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *AuthorizeClusterSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeClusterSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *AuthorizeClusterSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeClusterSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + type AuthorizeClusterSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` @@ -5590,6 +5618,12 @@ func (s AuthorizeClusterSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetClusterSecurityGroup sets the ClusterSecurityGroup field's value. +func (s *AuthorizeClusterSecurityGroupIngressOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *AuthorizeClusterSecurityGroupIngressOutput { + s.ClusterSecurityGroup = v + return s +} + type AuthorizeSnapshotAccessInput struct { _ struct{} `type:"structure"` @@ -5636,6 +5670,24 @@ func (s *AuthorizeSnapshotAccessInput) Validate() error { return nil } +// SetAccountWithRestoreAccess sets the AccountWithRestoreAccess field's value. +func (s *AuthorizeSnapshotAccessInput) SetAccountWithRestoreAccess(v string) *AuthorizeSnapshotAccessInput { + s.AccountWithRestoreAccess = &v + return s +} + +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *AuthorizeSnapshotAccessInput) SetSnapshotClusterIdentifier(v string) *AuthorizeSnapshotAccessInput { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *AuthorizeSnapshotAccessInput) SetSnapshotIdentifier(v string) *AuthorizeSnapshotAccessInput { + s.SnapshotIdentifier = &v + return s +} + type AuthorizeSnapshotAccessOutput struct { _ struct{} `type:"structure"` @@ -5653,6 +5705,12 @@ func (s AuthorizeSnapshotAccessOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *AuthorizeSnapshotAccessOutput) SetSnapshot(v *Snapshot) *AuthorizeSnapshotAccessOutput { + s.Snapshot = v + return s +} + // Describes an availability zone. type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -5671,6 +5729,12 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + // Describes a cluster. type Cluster struct { _ struct{} `type:"structure"` @@ -5719,37 +5783,37 @@ type Cluster struct { // The current state of the cluster. Possible values are the following: // - // available + // * available // - // creating + // * creating // - // deleting + // * deleting // - // final-snapshot + // * final-snapshot // - // hardware-failure + // * hardware-failure // - // incompatible-hsm + // * incompatible-hsm // - // incompatible-network + // * incompatible-network // - // incompatible-parameters + // * incompatible-parameters // - // incompatible-restore + // * incompatible-restore // - // modifying + // * modifying // - // rebooting + // * rebooting // - // renaming + // * renaming // - // resizing + // * resizing // - // rotating-keys + // * rotating-keys // - // storage-full + // * storage-full // - // updating-hsm + // * updating-hsm ClusterStatus *string `type:"string"` // The name of the subnet group that is associated with the cluster. This parameter @@ -5851,6 +5915,204 @@ func (s Cluster) GoString() string { return s.String() } +// SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value. +func (s *Cluster) SetAllowVersionUpgrade(v bool) *Cluster { + s.AllowVersionUpgrade = &v + return s +} + +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *Cluster) SetAutomatedSnapshotRetentionPeriod(v int64) *Cluster { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Cluster) SetAvailabilityZone(v string) *Cluster { + s.AvailabilityZone = &v + return s +} + +// SetClusterCreateTime sets the ClusterCreateTime field's value. +func (s *Cluster) SetClusterCreateTime(v time.Time) *Cluster { + s.ClusterCreateTime = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *Cluster) SetClusterIdentifier(v string) *Cluster { + s.ClusterIdentifier = &v + return s +} + +// SetClusterNodes sets the ClusterNodes field's value. +func (s *Cluster) SetClusterNodes(v []*ClusterNode) *Cluster { + s.ClusterNodes = v + return s +} + +// SetClusterParameterGroups sets the ClusterParameterGroups field's value. +func (s *Cluster) SetClusterParameterGroups(v []*ClusterParameterGroupStatus) *Cluster { + s.ClusterParameterGroups = v + return s +} + +// SetClusterPublicKey sets the ClusterPublicKey field's value. +func (s *Cluster) SetClusterPublicKey(v string) *Cluster { + s.ClusterPublicKey = &v + return s +} + +// SetClusterRevisionNumber sets the ClusterRevisionNumber field's value. +func (s *Cluster) SetClusterRevisionNumber(v string) *Cluster { + s.ClusterRevisionNumber = &v + return s +} + +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *Cluster) SetClusterSecurityGroups(v []*ClusterSecurityGroupMembership) *Cluster { + s.ClusterSecurityGroups = v + return s +} + +// SetClusterSnapshotCopyStatus sets the ClusterSnapshotCopyStatus field's value. +func (s *Cluster) SetClusterSnapshotCopyStatus(v *ClusterSnapshotCopyStatus) *Cluster { + s.ClusterSnapshotCopyStatus = v + return s +} + +// SetClusterStatus sets the ClusterStatus field's value. +func (s *Cluster) SetClusterStatus(v string) *Cluster { + s.ClusterStatus = &v + return s +} + +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *Cluster) SetClusterSubnetGroupName(v string) *Cluster { + s.ClusterSubnetGroupName = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *Cluster) SetClusterVersion(v string) *Cluster { + s.ClusterVersion = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *Cluster) SetDBName(v string) *Cluster { + s.DBName = &v + return s +} + +// SetElasticIpStatus sets the ElasticIpStatus field's value. +func (s *Cluster) SetElasticIpStatus(v *ElasticIpStatus) *Cluster { + s.ElasticIpStatus = v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Cluster) SetEncrypted(v bool) *Cluster { + s.Encrypted = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *Cluster) SetEndpoint(v *Endpoint) *Cluster { + s.Endpoint = v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *Cluster) SetEnhancedVpcRouting(v bool) *Cluster { + s.EnhancedVpcRouting = &v + return s +} + +// SetHsmStatus sets the HsmStatus field's value. +func (s *Cluster) SetHsmStatus(v *HsmStatus) *Cluster { + s.HsmStatus = v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *Cluster) SetIamRoles(v []*ClusterIamRole) *Cluster { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Cluster) SetKmsKeyId(v string) *Cluster { + s.KmsKeyId = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *Cluster) SetMasterUsername(v string) *Cluster { + s.MasterUsername = &v + return s +} + +// SetModifyStatus sets the ModifyStatus field's value. +func (s *Cluster) SetModifyStatus(v string) *Cluster { + s.ModifyStatus = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *Cluster) SetNodeType(v string) *Cluster { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *Cluster) SetNumberOfNodes(v int64) *Cluster { + s.NumberOfNodes = &v + return s +} + +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *Cluster) SetPendingModifiedValues(v *PendingModifiedValues) *Cluster { + s.PendingModifiedValues = v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *Cluster) SetPreferredMaintenanceWindow(v string) *Cluster { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *Cluster) SetPubliclyAccessible(v bool) *Cluster { + s.PubliclyAccessible = &v + return s +} + +// SetRestoreStatus sets the RestoreStatus field's value. +func (s *Cluster) SetRestoreStatus(v *RestoreStatus) *Cluster { + s.RestoreStatus = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Cluster) SetTags(v []*Tag) *Cluster { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Cluster) SetVpcId(v string) *Cluster { + s.VpcId = &v + return s +} + +// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. +func (s *Cluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *Cluster { + s.VpcSecurityGroups = v + return s +} + // An AWS Identity and Access Management (IAM) role that can be used by the // associated Amazon Redshift cluster to access other AWS services. type ClusterIamRole struct { @@ -5861,12 +6123,12 @@ type ClusterIamRole struct { // // The following are possible statuses and descriptions. // - // in-sync: The role is available for use by the cluster. + // * in-sync: The role is available for use by the cluster. // - // adding: The role is in the process of being associated with the cluster. + // * adding: The role is in the process of being associated with the cluster. // - // removing: The role is in the process of being disassociated with the - // cluster. + // * removing: The role is in the process of being disassociated with the + // cluster. ApplyStatus *string `type:"string"` // The Amazon Resource Name (ARN) of the IAM role, for example, arn:aws:iam::123456789012:role/RedshiftCopyUnload. @@ -5883,6 +6145,18 @@ func (s ClusterIamRole) GoString() string { return s.String() } +// SetApplyStatus sets the ApplyStatus field's value. +func (s *ClusterIamRole) SetApplyStatus(v string) *ClusterIamRole { + s.ApplyStatus = &v + return s +} + +// SetIamRoleArn sets the IamRoleArn field's value. +func (s *ClusterIamRole) SetIamRoleArn(v string) *ClusterIamRole { + s.IamRoleArn = &v + return s +} + // The identifier of a node in a cluster. type ClusterNode struct { _ struct{} `type:"structure"` @@ -5907,6 +6181,24 @@ func (s ClusterNode) GoString() string { return s.String() } +// SetNodeRole sets the NodeRole field's value. +func (s *ClusterNode) SetNodeRole(v string) *ClusterNode { + s.NodeRole = &v + return s +} + +// SetPrivateIPAddress sets the PrivateIPAddress field's value. +func (s *ClusterNode) SetPrivateIPAddress(v string) *ClusterNode { + s.PrivateIPAddress = &v + return s +} + +// SetPublicIPAddress sets the PublicIPAddress field's value. +func (s *ClusterNode) SetPublicIPAddress(v string) *ClusterNode { + s.PublicIPAddress = &v + return s +} + // Describes a parameter group. type ClusterParameterGroup struct { _ struct{} `type:"structure"` @@ -5935,6 +6227,30 @@ func (s ClusterParameterGroup) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ClusterParameterGroup) SetDescription(v string) *ClusterParameterGroup { + s.Description = &v + return s +} + +// SetParameterGroupFamily sets the ParameterGroupFamily field's value. +func (s *ClusterParameterGroup) SetParameterGroupFamily(v string) *ClusterParameterGroup { + s.ParameterGroupFamily = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ClusterParameterGroup) SetParameterGroupName(v string) *ClusterParameterGroup { + s.ParameterGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClusterParameterGroup) SetTags(v []*Tag) *ClusterParameterGroup { + s.Tags = v + return s +} + type ClusterParameterGroupNameMessage struct { _ struct{} `type:"structure"` @@ -5957,13 +6273,25 @@ func (s ClusterParameterGroupNameMessage) GoString() string { return s.String() } +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ClusterParameterGroupNameMessage) SetParameterGroupName(v string) *ClusterParameterGroupNameMessage { + s.ParameterGroupName = &v + return s +} + +// SetParameterGroupStatus sets the ParameterGroupStatus field's value. +func (s *ClusterParameterGroupNameMessage) SetParameterGroupStatus(v string) *ClusterParameterGroupNameMessage { + s.ParameterGroupStatus = &v + return s +} + // Describes the status of a parameter group. type ClusterParameterGroupStatus struct { _ struct{} `type:"structure"` // The list of parameter statuses. // - // For more information about parameters and parameter groups, go to Amazon + // For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. ClusterParameterStatusList []*ClusterParameterStatus `type:"list"` @@ -5985,6 +6313,24 @@ func (s ClusterParameterGroupStatus) GoString() string { return s.String() } +// SetClusterParameterStatusList sets the ClusterParameterStatusList field's value. +func (s *ClusterParameterGroupStatus) SetClusterParameterStatusList(v []*ClusterParameterStatus) *ClusterParameterGroupStatus { + s.ClusterParameterStatusList = v + return s +} + +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *ClusterParameterGroupStatus) SetParameterApplyStatus(v string) *ClusterParameterGroupStatus { + s.ParameterApplyStatus = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ClusterParameterGroupStatus) SetParameterGroupName(v string) *ClusterParameterGroupStatus { + s.ParameterGroupName = &v + return s +} + // Describes the status of a parameter group. type ClusterParameterStatus struct { _ struct{} `type:"structure"` @@ -5998,24 +6344,24 @@ type ClusterParameterStatus struct { // // The following are possible statuses and descriptions. // - // in-sync: The parameter value is in sync with the database. + // * in-sync: The parameter value is in sync with the database. // - // pending-reboot: The parameter value will be applied after the cluster - // reboots. + // * pending-reboot: The parameter value will be applied after the cluster + // reboots. // - // applying: The parameter value is being applied to the database. + // * applying: The parameter value is being applied to the database. // - // invalid-parameter: Cannot apply the parameter value because it has an - // invalid value or syntax. + // * invalid-parameter: Cannot apply the parameter value because it has an + // invalid value or syntax. // - // apply-deferred: The parameter contains static property changes. The changes - // are deferred until the cluster reboots. + // * apply-deferred: The parameter contains static property changes. The + // changes are deferred until the cluster reboots. // - // apply-error: Cannot connect to the cluster. The parameter change will - // be applied after the cluster reboots. + // * apply-error: Cannot connect to the cluster. The parameter change will + // be applied after the cluster reboots. // - // unknown-error: Cannot apply the parameter change right now. The change - // will be applied after the cluster reboots. + // * unknown-error: Cannot apply the parameter change right now. The change + // will be applied after the cluster reboots. ParameterApplyStatus *string `type:"string"` // The name of the parameter. @@ -6032,6 +6378,24 @@ func (s ClusterParameterStatus) GoString() string { return s.String() } +// SetParameterApplyErrorDescription sets the ParameterApplyErrorDescription field's value. +func (s *ClusterParameterStatus) SetParameterApplyErrorDescription(v string) *ClusterParameterStatus { + s.ParameterApplyErrorDescription = &v + return s +} + +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *ClusterParameterStatus) SetParameterApplyStatus(v string) *ClusterParameterStatus { + s.ParameterApplyStatus = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *ClusterParameterStatus) SetParameterName(v string) *ClusterParameterStatus { + s.ParameterName = &v + return s +} + // Describes a security group. type ClusterSecurityGroup struct { _ struct{} `type:"structure"` @@ -6064,6 +6428,36 @@ func (s ClusterSecurityGroup) GoString() string { return s.String() } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *ClusterSecurityGroup) SetClusterSecurityGroupName(v string) *ClusterSecurityGroup { + s.ClusterSecurityGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClusterSecurityGroup) SetDescription(v string) *ClusterSecurityGroup { + s.Description = &v + return s +} + +// SetEC2SecurityGroups sets the EC2SecurityGroups field's value. +func (s *ClusterSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *ClusterSecurityGroup { + s.EC2SecurityGroups = v + return s +} + +// SetIPRanges sets the IPRanges field's value. +func (s *ClusterSecurityGroup) SetIPRanges(v []*IPRange) *ClusterSecurityGroup { + s.IPRanges = v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClusterSecurityGroup) SetTags(v []*Tag) *ClusterSecurityGroup { + s.Tags = v + return s +} + // Describes a cluster security group. type ClusterSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -6085,6 +6479,18 @@ func (s ClusterSecurityGroupMembership) GoString() string { return s.String() } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *ClusterSecurityGroupMembership) SetClusterSecurityGroupName(v string) *ClusterSecurityGroupMembership { + s.ClusterSecurityGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ClusterSecurityGroupMembership) SetStatus(v string) *ClusterSecurityGroupMembership { + s.Status = &v + return s +} + // Returns the destination region and retention period that are configured for // cross-region snapshot copy. type ClusterSnapshotCopyStatus struct { @@ -6112,6 +6518,24 @@ func (s ClusterSnapshotCopyStatus) GoString() string { return s.String() } +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *ClusterSnapshotCopyStatus) SetDestinationRegion(v string) *ClusterSnapshotCopyStatus { + s.DestinationRegion = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *ClusterSnapshotCopyStatus) SetRetentionPeriod(v int64) *ClusterSnapshotCopyStatus { + s.RetentionPeriod = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *ClusterSnapshotCopyStatus) SetSnapshotCopyGrantName(v string) *ClusterSnapshotCopyStatus { + s.SnapshotCopyGrantName = &v + return s +} + // Describes a subnet group. type ClusterSubnetGroup struct { _ struct{} `type:"structure"` @@ -6146,6 +6570,42 @@ func (s ClusterSubnetGroup) GoString() string { return s.String() } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *ClusterSubnetGroup) SetClusterSubnetGroupName(v string) *ClusterSubnetGroup { + s.ClusterSubnetGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClusterSubnetGroup) SetDescription(v string) *ClusterSubnetGroup { + s.Description = &v + return s +} + +// SetSubnetGroupStatus sets the SubnetGroupStatus field's value. +func (s *ClusterSubnetGroup) SetSubnetGroupStatus(v string) *ClusterSubnetGroup { + s.SubnetGroupStatus = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *ClusterSubnetGroup) SetSubnets(v []*Subnet) *ClusterSubnetGroup { + s.Subnets = v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClusterSubnetGroup) SetTags(v []*Tag) *ClusterSubnetGroup { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ClusterSubnetGroup) SetVpcId(v string) *ClusterSubnetGroup { + s.VpcId = &v + return s +} + // Describes a cluster version, including the parameter group family and description // of the version. type ClusterVersion struct { @@ -6171,6 +6631,24 @@ func (s ClusterVersion) GoString() string { return s.String() } +// SetClusterParameterGroupFamily sets the ClusterParameterGroupFamily field's value. +func (s *ClusterVersion) SetClusterParameterGroupFamily(v string) *ClusterVersion { + s.ClusterParameterGroupFamily = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *ClusterVersion) SetClusterVersion(v string) *ClusterVersion { + s.ClusterVersion = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClusterVersion) SetDescription(v string) *ClusterVersion { + s.Description = &v + return s +} + type CopyClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -6180,14 +6658,15 @@ type CopyClusterSnapshotInput struct { // // Constraints: // - // Must be the identifier for a valid cluster. + // * Must be the identifier for a valid cluster. SourceSnapshotClusterIdentifier *string `type:"string"` // The identifier for the source snapshot. // // Constraints: // - // Must be the identifier for a valid automated snapshot whose state is available. + // * Must be the identifier for a valid automated snapshot whose state is + // available. // // SourceSnapshotIdentifier is a required field SourceSnapshotIdentifier *string `type:"string" required:"true"` @@ -6196,15 +6675,15 @@ type CopyClusterSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank. + // * Cannot be null, empty, or blank. // - // Must contain from 1 to 255 alphanumeric characters or hyphens. + // * Must contain from 1 to 255 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for the AWS account that is making the request. + // * Must be unique for the AWS account that is making the request. // // TargetSnapshotIdentifier is a required field TargetSnapshotIdentifier *string `type:"string" required:"true"` @@ -6236,6 +6715,24 @@ func (s *CopyClusterSnapshotInput) Validate() error { return nil } +// SetSourceSnapshotClusterIdentifier sets the SourceSnapshotClusterIdentifier field's value. +func (s *CopyClusterSnapshotInput) SetSourceSnapshotClusterIdentifier(v string) *CopyClusterSnapshotInput { + s.SourceSnapshotClusterIdentifier = &v + return s +} + +// SetSourceSnapshotIdentifier sets the SourceSnapshotIdentifier field's value. +func (s *CopyClusterSnapshotInput) SetSourceSnapshotIdentifier(v string) *CopyClusterSnapshotInput { + s.SourceSnapshotIdentifier = &v + return s +} + +// SetTargetSnapshotIdentifier sets the TargetSnapshotIdentifier field's value. +func (s *CopyClusterSnapshotInput) SetTargetSnapshotIdentifier(v string) *CopyClusterSnapshotInput { + s.TargetSnapshotIdentifier = &v + return s +} + type CopyClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -6253,6 +6750,12 @@ func (s CopyClusterSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *CopyClusterSnapshotOutput) SetSnapshot(v *Snapshot) *CopyClusterSnapshotOutput { + s.Snapshot = v + return s +} + type CreateClusterInput struct { _ struct{} `type:"structure"` @@ -6262,8 +6765,8 @@ type CreateClusterInput struct { // If true, major version upgrades can be applied during the maintenance window // to the Amazon Redshift engine that is running on the cluster. // - // When a new major version of the Amazon Redshift engine is released, you - // can request that the service automatically apply upgrades during the maintenance + // When a new major version of the Amazon Redshift engine is released, you can + // request that the service automatically apply upgrades during the maintenance // window to the Amazon Redshift engine that is running on your cluster. // // Default: true @@ -6298,17 +6801,17 @@ type CreateClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // Alphabetic characters must be lowercase. + // * Alphabetic characters must be lowercase. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for all clusters within an AWS account. + // * Must be unique for all clusters within an AWS account. // - // Example: myexamplecluster + // Example: myexamplecluster // // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` @@ -6321,11 +6824,11 @@ type CreateClusterInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens. + // * Must be 1 to 255 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. ClusterParameterGroupName *string `type:"string"` // A list of security groups to be associated with this cluster. @@ -6341,11 +6844,11 @@ type CreateClusterInput struct { // The type of the cluster. When cluster type is specified as // - // single-node, the NumberOfNodes parameter is not required. + // * single-node, the NumberOfNodes parameter is not required. // - // multi-node, the NumberOfNodes parameter is required. + // * multi-node, the NumberOfNodes parameter is required. // - // Valid Values: multi-node | single-node + // Valid Values: multi-node | single-node // // Default: multi-node ClusterType *string `type:"string"` @@ -6362,22 +6865,22 @@ type CreateClusterInput struct { // The name of the first database to be created when the cluster is created. // - // To create additional databases after the cluster is created, connect to - // the cluster with a SQL client and use SQL commands to create a database. - // For more information, go to Create a Database (http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html) + // To create additional databases after the cluster is created, connect to the + // cluster with a SQL client and use SQL commands to create a database. For + // more information, go to Create a Database (http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html) // in the Amazon Redshift Database Developer Guide. // // Default: dev // // Constraints: // - // Must contain 1 to 64 alphanumeric characters. + // * Must contain 1 to 64 alphanumeric characters. // - // Must contain only lowercase letters. + // * Must contain only lowercase letters. // - // Cannot be a word that is reserved by the service. A list of reserved words - // can be found in Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) - // in the Amazon Redshift Database Developer Guide. + // * Cannot be a word that is reserved by the service. A list of reserved + // words can be found in Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) + // in the Amazon Redshift Database Developer Guide. DBName *string `type:"string"` // The Elastic IP (EIP) address for the cluster. @@ -6429,16 +6932,16 @@ type CreateClusterInput struct { // // Constraints: // - // Must be between 8 and 64 characters in length. + // * Must be between 8 and 64 characters in length. // - // Must contain at least one uppercase letter. + // * Must contain at least one uppercase letter. // - // Must contain at least one lowercase letter. + // * Must contain at least one lowercase letter. // - // Must contain one number. + // * Must contain one number. // - // Can be any printable ASCII character (ASCII code 33 to 126) except ' (single - // quote), " (double quote), \, /, @, or space. + // * Can be any printable ASCII character (ASCII code 33 to 126) except ' + // (single quote), " (double quote), \, /, @, or space. // // MasterUserPassword is a required field MasterUserPassword *string `type:"string" required:"true"` @@ -6448,13 +6951,13 @@ type CreateClusterInput struct { // // Constraints: // - // Must be 1 - 128 alphanumeric characters. + // * Must be 1 - 128 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word. A list of reserved words can be found in Reserved - // Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) - // in the Amazon Redshift Database Developer Guide. + // * Cannot be a reserved word. A list of reserved words can be found in + // Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) + // in the Amazon Redshift Database Developer Guide. // // MasterUsername is a required field MasterUsername *string `type:"string" required:"true"` @@ -6499,11 +7002,11 @@ type CreateClusterInput struct { // The weekly time range (in UTC) during which automated cluster maintenance // can occur. // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region, occurring on a random day of the week. For more information - // about the time blocks for each region, see Maintenance Windows (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-maintenance-windows) + // Default: A 30-minute window selected at random from an 8-hour block of time + // per region, occurring on a random day of the week. For more information about + // the time blocks for each region, see Maintenance Windows (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-maintenance-windows) // in Amazon Redshift Cluster Management Guide. // // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun @@ -6556,6 +7059,168 @@ func (s *CreateClusterInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *CreateClusterInput) SetAdditionalInfo(v string) *CreateClusterInput { + s.AdditionalInfo = &v + return s +} + +// SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value. +func (s *CreateClusterInput) SetAllowVersionUpgrade(v bool) *CreateClusterInput { + s.AllowVersionUpgrade = &v + return s +} + +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *CreateClusterInput) SetAutomatedSnapshotRetentionPeriod(v int64) *CreateClusterInput { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateClusterInput) SetAvailabilityZone(v string) *CreateClusterInput { + s.AvailabilityZone = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *CreateClusterInput) SetClusterIdentifier(v string) *CreateClusterInput { + s.ClusterIdentifier = &v + return s +} + +// SetClusterParameterGroupName sets the ClusterParameterGroupName field's value. +func (s *CreateClusterInput) SetClusterParameterGroupName(v string) *CreateClusterInput { + s.ClusterParameterGroupName = &v + return s +} + +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *CreateClusterInput) SetClusterSecurityGroups(v []*string) *CreateClusterInput { + s.ClusterSecurityGroups = v + return s +} + +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *CreateClusterInput) SetClusterSubnetGroupName(v string) *CreateClusterInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetClusterType sets the ClusterType field's value. +func (s *CreateClusterInput) SetClusterType(v string) *CreateClusterInput { + s.ClusterType = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *CreateClusterInput) SetClusterVersion(v string) *CreateClusterInput { + s.ClusterVersion = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *CreateClusterInput) SetDBName(v string) *CreateClusterInput { + s.DBName = &v + return s +} + +// SetElasticIp sets the ElasticIp field's value. +func (s *CreateClusterInput) SetElasticIp(v string) *CreateClusterInput { + s.ElasticIp = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CreateClusterInput) SetEncrypted(v bool) *CreateClusterInput { + s.Encrypted = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *CreateClusterInput) SetEnhancedVpcRouting(v bool) *CreateClusterInput { + s.EnhancedVpcRouting = &v + return s +} + +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *CreateClusterInput) SetHsmClientCertificateIdentifier(v string) *CreateClusterInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *CreateClusterInput) SetHsmConfigurationIdentifier(v string) *CreateClusterInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *CreateClusterInput) SetIamRoles(v []*string) *CreateClusterInput { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateClusterInput) SetKmsKeyId(v string) *CreateClusterInput { + s.KmsKeyId = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *CreateClusterInput) SetMasterUserPassword(v string) *CreateClusterInput { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *CreateClusterInput) SetMasterUsername(v string) *CreateClusterInput { + s.MasterUsername = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *CreateClusterInput) SetNodeType(v string) *CreateClusterInput { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *CreateClusterInput) SetNumberOfNodes(v int64) *CreateClusterInput { + s.NumberOfNodes = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateClusterInput) SetPort(v int64) *CreateClusterInput { + s.Port = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateClusterInput) SetPreferredMaintenanceWindow(v string) *CreateClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateClusterInput) SetPubliclyAccessible(v bool) *CreateClusterInput { + s.PubliclyAccessible = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterInput) SetTags(v []*Tag) *CreateClusterInput { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateClusterInput) SetVpcSecurityGroupIds(v []*string) *CreateClusterInput { + s.VpcSecurityGroupIds = v + return s +} + type CreateClusterOutput struct { _ struct{} `type:"structure"` @@ -6573,6 +7238,12 @@ func (s CreateClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput { + s.Cluster = v + return s +} + type CreateClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -6598,15 +7269,15 @@ type CreateClusterParameterGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens + // * Must be 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique withing your AWS account. + // * Must be unique withing your AWS account. // - // This value is stored as a lower-case string. + // This value is stored as a lower-case string. // // ParameterGroupName is a required field ParameterGroupName *string `type:"string" required:"true"` @@ -6644,6 +7315,30 @@ func (s *CreateClusterParameterGroupInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateClusterParameterGroupInput) SetDescription(v string) *CreateClusterParameterGroupInput { + s.Description = &v + return s +} + +// SetParameterGroupFamily sets the ParameterGroupFamily field's value. +func (s *CreateClusterParameterGroupInput) SetParameterGroupFamily(v string) *CreateClusterParameterGroupInput { + s.ParameterGroupFamily = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *CreateClusterParameterGroupInput) SetParameterGroupName(v string) *CreateClusterParameterGroupInput { + s.ParameterGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterParameterGroupInput) SetTags(v []*Tag) *CreateClusterParameterGroupInput { + s.Tags = v + return s +} + type CreateClusterParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -6661,6 +7356,12 @@ func (s CreateClusterParameterGroupOutput) GoString() string { return s.String() } +// SetClusterParameterGroup sets the ClusterParameterGroup field's value. +func (s *CreateClusterParameterGroupOutput) SetClusterParameterGroup(v *ClusterParameterGroup) *CreateClusterParameterGroupOutput { + s.ClusterParameterGroup = v + return s +} + type CreateClusterSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -6669,13 +7370,14 @@ type CreateClusterSecurityGroupInput struct { // // Constraints: // - // Must contain no more than 255 alphanumeric characters or hyphens. + // * Must contain no more than 255 alphanumeric characters or hyphens. // - // Must not be "Default". + // * Must not be "Default". // - // Must be unique for all security groups that are created by your AWS account. + // * Must be unique for all security groups that are created by your AWS + // account. // - // Example: examplesecuritygroup + // Example: examplesecuritygroup // // ClusterSecurityGroupName is a required field ClusterSecurityGroupName *string `type:"string" required:"true"` @@ -6715,6 +7417,24 @@ func (s *CreateClusterSecurityGroupInput) Validate() error { return nil } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *CreateClusterSecurityGroupInput) SetClusterSecurityGroupName(v string) *CreateClusterSecurityGroupInput { + s.ClusterSecurityGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateClusterSecurityGroupInput) SetDescription(v string) *CreateClusterSecurityGroupInput { + s.Description = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterSecurityGroupInput) SetTags(v []*Tag) *CreateClusterSecurityGroupInput { + s.Tags = v + return s +} + type CreateClusterSecurityGroupOutput struct { _ struct{} `type:"structure"` @@ -6732,6 +7452,12 @@ func (s CreateClusterSecurityGroupOutput) GoString() string { return s.String() } +// SetClusterSecurityGroup sets the ClusterSecurityGroup field's value. +func (s *CreateClusterSecurityGroupOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *CreateClusterSecurityGroupOutput { + s.ClusterSecurityGroup = v + return s +} + type CreateClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -6745,15 +7471,15 @@ type CreateClusterSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-snapshot-id + // Example: my-snapshot-id // // SnapshotIdentifier is a required field SnapshotIdentifier *string `type:"string" required:"true"` @@ -6788,6 +7514,24 @@ func (s *CreateClusterSnapshotInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *CreateClusterSnapshotInput) SetClusterIdentifier(v string) *CreateClusterSnapshotInput { + s.ClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *CreateClusterSnapshotInput) SetSnapshotIdentifier(v string) *CreateClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterSnapshotInput) SetTags(v []*Tag) *CreateClusterSnapshotInput { + s.Tags = v + return s +} + type CreateClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -6805,6 +7549,12 @@ func (s CreateClusterSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *CreateClusterSnapshotOutput) SetSnapshot(v *Snapshot) *CreateClusterSnapshotOutput { + s.Snapshot = v + return s +} + type CreateClusterSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -6813,13 +7563,13 @@ type CreateClusterSubnetGroupInput struct { // // Constraints: // - // Must contain no more than 255 alphanumeric characters or hyphens. + // * Must contain no more than 255 alphanumeric characters or hyphens. // - // Must not be "Default". + // * Must not be "Default". // - // Must be unique for all subnet groups that are created by your AWS account. + // * Must be unique for all subnet groups that are created by your AWS account. // - // Example: examplesubnetgroup + // Example: examplesubnetgroup // // ClusterSubnetGroupName is a required field ClusterSubnetGroupName *string `type:"string" required:"true"` @@ -6868,6 +7618,30 @@ func (s *CreateClusterSubnetGroupInput) Validate() error { return nil } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *CreateClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *CreateClusterSubnetGroupInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateClusterSubnetGroupInput) SetDescription(v string) *CreateClusterSubnetGroupInput { + s.Description = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateClusterSubnetGroupInput) SetSubnetIds(v []*string) *CreateClusterSubnetGroupInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterSubnetGroupInput) SetTags(v []*Tag) *CreateClusterSubnetGroupInput { + s.Tags = v + return s +} + type CreateClusterSubnetGroupOutput struct { _ struct{} `type:"structure"` @@ -6885,6 +7659,12 @@ func (s CreateClusterSubnetGroupOutput) GoString() string { return s.String() } +// SetClusterSubnetGroup sets the ClusterSubnetGroup field's value. +func (s *CreateClusterSubnetGroupOutput) SetClusterSubnetGroup(v *ClusterSubnetGroup) *CreateClusterSubnetGroupOutput { + s.ClusterSubnetGroup = v + return s +} + type CreateEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -6928,21 +7708,21 @@ type CreateEventSubscriptionInput struct { // for all Amazon Redshift objects in your AWS account. You must specify a source // type in order to specify source IDs. // - // Valid values: cluster, cluster-parameter-group, cluster-security-group, - // and cluster-snapshot. + // Valid values: cluster, cluster-parameter-group, cluster-security-group, and + // cluster-snapshot. SourceType *string `type:"string"` // The name of the event subscription to be created. // // Constraints: // - // Cannot be null, empty, or blank. + // * Cannot be null, empty, or blank. // - // Must contain from 1 to 255 alphanumeric characters or hyphens. + // * Must contain from 1 to 255 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // // SubscriptionName is a required field SubscriptionName *string `type:"string" required:"true"` @@ -6977,6 +7757,54 @@ func (s *CreateEventSubscriptionInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *CreateEventSubscriptionInput) SetSeverity(v string) *CreateEventSubscriptionInput { + s.Severity = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceIds sets the SourceIds field's value. +func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput { + s.SourceIds = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput { + s.Tags = v + return s +} + type CreateEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -6994,6 +7822,12 @@ func (s CreateEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput { + s.EventSubscription = v + return s +} + type CreateHsmClientCertificateInput struct { _ struct{} `type:"structure"` @@ -7030,6 +7864,18 @@ func (s *CreateHsmClientCertificateInput) Validate() error { return nil } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *CreateHsmClientCertificateInput) SetHsmClientCertificateIdentifier(v string) *CreateHsmClientCertificateInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateHsmClientCertificateInput) SetTags(v []*Tag) *CreateHsmClientCertificateInput { + s.Tags = v + return s +} + type CreateHsmClientCertificateOutput struct { _ struct{} `type:"structure"` @@ -7049,6 +7895,12 @@ func (s CreateHsmClientCertificateOutput) GoString() string { return s.String() } +// SetHsmClientCertificate sets the HsmClientCertificate field's value. +func (s *CreateHsmClientCertificateOutput) SetHsmClientCertificate(v *HsmClientCertificate) *CreateHsmClientCertificateOutput { + s.HsmClientCertificate = v + return s +} + type CreateHsmConfigurationInput struct { _ struct{} `type:"structure"` @@ -7126,6 +7978,48 @@ func (s *CreateHsmConfigurationInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateHsmConfigurationInput) SetDescription(v string) *CreateHsmConfigurationInput { + s.Description = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *CreateHsmConfigurationInput) SetHsmConfigurationIdentifier(v string) *CreateHsmConfigurationInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetHsmIpAddress sets the HsmIpAddress field's value. +func (s *CreateHsmConfigurationInput) SetHsmIpAddress(v string) *CreateHsmConfigurationInput { + s.HsmIpAddress = &v + return s +} + +// SetHsmPartitionName sets the HsmPartitionName field's value. +func (s *CreateHsmConfigurationInput) SetHsmPartitionName(v string) *CreateHsmConfigurationInput { + s.HsmPartitionName = &v + return s +} + +// SetHsmPartitionPassword sets the HsmPartitionPassword field's value. +func (s *CreateHsmConfigurationInput) SetHsmPartitionPassword(v string) *CreateHsmConfigurationInput { + s.HsmPartitionPassword = &v + return s +} + +// SetHsmServerPublicCertificate sets the HsmServerPublicCertificate field's value. +func (s *CreateHsmConfigurationInput) SetHsmServerPublicCertificate(v string) *CreateHsmConfigurationInput { + s.HsmServerPublicCertificate = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateHsmConfigurationInput) SetTags(v []*Tag) *CreateHsmConfigurationInput { + s.Tags = v + return s +} + type CreateHsmConfigurationOutput struct { _ struct{} `type:"structure"` @@ -7145,6 +8039,12 @@ func (s CreateHsmConfigurationOutput) GoString() string { return s.String() } +// SetHsmConfiguration sets the HsmConfiguration field's value. +func (s *CreateHsmConfigurationOutput) SetHsmConfiguration(v *HsmConfiguration) *CreateHsmConfigurationOutput { + s.HsmConfiguration = v + return s +} + // The result of the CreateSnapshotCopyGrant action. type CreateSnapshotCopyGrantInput struct { _ struct{} `type:"structure"` @@ -7158,15 +8058,15 @@ type CreateSnapshotCopyGrantInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // Alphabetic characters must be lowercase. + // * Alphabetic characters must be lowercase. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for all clusters within an AWS account. + // * Must be unique for all clusters within an AWS account. // // SnapshotCopyGrantName is a required field SnapshotCopyGrantName *string `type:"string" required:"true"` @@ -7198,6 +8098,24 @@ func (s *CreateSnapshotCopyGrantInput) Validate() error { return nil } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateSnapshotCopyGrantInput) SetKmsKeyId(v string) *CreateSnapshotCopyGrantInput { + s.KmsKeyId = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *CreateSnapshotCopyGrantInput) SetSnapshotCopyGrantName(v string) *CreateSnapshotCopyGrantInput { + s.SnapshotCopyGrantName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateSnapshotCopyGrantInput) SetTags(v []*Tag) *CreateSnapshotCopyGrantInput { + s.Tags = v + return s +} + type CreateSnapshotCopyGrantOutput struct { _ struct{} `type:"structure"` @@ -7205,8 +8123,8 @@ type CreateSnapshotCopyGrantOutput struct { // copied snapshots with the specified customer master key (CMK) from AWS KMS // in the destination region. // - // For more information about managing snapshot copy grants, go to Amazon - // Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) + // For more information about managing snapshot copy grants, go to Amazon Redshift + // Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. SnapshotCopyGrant *SnapshotCopyGrant `type:"structure"` } @@ -7221,6 +8139,12 @@ func (s CreateSnapshotCopyGrantOutput) GoString() string { return s.String() } +// SetSnapshotCopyGrant sets the SnapshotCopyGrant field's value. +func (s *CreateSnapshotCopyGrantOutput) SetSnapshotCopyGrant(v *SnapshotCopyGrant) *CreateSnapshotCopyGrantOutput { + s.SnapshotCopyGrant = v + return s +} + // Contains the output from the CreateTags action. type CreateTagsInput struct { _ struct{} `type:"structure"` @@ -7267,6 +8191,18 @@ func (s *CreateTagsInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *CreateTagsInput) SetResourceName(v string) *CreateTagsInput { + s.ResourceName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { + s.Tags = v + return s +} + type CreateTagsOutput struct { _ struct{} `type:"structure"` } @@ -7310,6 +8246,24 @@ func (s DefaultClusterParameters) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DefaultClusterParameters) SetMarker(v string) *DefaultClusterParameters { + s.Marker = &v + return s +} + +// SetParameterGroupFamily sets the ParameterGroupFamily field's value. +func (s *DefaultClusterParameters) SetParameterGroupFamily(v string) *DefaultClusterParameters { + s.ParameterGroupFamily = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DefaultClusterParameters) SetParameters(v []*Parameter) *DefaultClusterParameters { + s.Parameters = v + return s +} + type DeleteClusterInput struct { _ struct{} `type:"structure"` @@ -7317,13 +8271,13 @@ type DeleteClusterInput struct { // // Constraints: // - // Must contain lowercase characters. + // * Must contain lowercase characters. // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` @@ -7334,21 +8288,21 @@ type DeleteClusterInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters. + // * Must be 1 to 255 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. FinalClusterSnapshotIdentifier *string `type:"string"` // Determines whether a final snapshot of the cluster is created before Amazon // Redshift deletes the cluster. If true, a final cluster snapshot is not created. // If false, a final cluster snapshot is created before the cluster is deleted. // - // The FinalClusterSnapshotIdentifier parameter must be specified if SkipFinalClusterSnapshot + // The FinalClusterSnapshotIdentifier parameter must be specified if SkipFinalClusterSnapshot // is false. // - // Default: false + // Default: false SkipFinalClusterSnapshot *bool `type:"boolean"` } @@ -7375,6 +8329,24 @@ func (s *DeleteClusterInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DeleteClusterInput) SetClusterIdentifier(v string) *DeleteClusterInput { + s.ClusterIdentifier = &v + return s +} + +// SetFinalClusterSnapshotIdentifier sets the FinalClusterSnapshotIdentifier field's value. +func (s *DeleteClusterInput) SetFinalClusterSnapshotIdentifier(v string) *DeleteClusterInput { + s.FinalClusterSnapshotIdentifier = &v + return s +} + +// SetSkipFinalClusterSnapshot sets the SkipFinalClusterSnapshot field's value. +func (s *DeleteClusterInput) SetSkipFinalClusterSnapshot(v bool) *DeleteClusterInput { + s.SkipFinalClusterSnapshot = &v + return s +} + type DeleteClusterOutput struct { _ struct{} `type:"structure"` @@ -7392,6 +8364,12 @@ func (s DeleteClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DeleteClusterOutput) SetCluster(v *Cluster) *DeleteClusterOutput { + s.Cluster = v + return s +} + type DeleteClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -7399,9 +8377,9 @@ type DeleteClusterParameterGroupInput struct { // // Constraints: // - // Must be the name of an existing cluster parameter group. + // * Must be the name of an existing cluster parameter group. // - // Cannot delete a default cluster parameter group. + // * Cannot delete a default cluster parameter group. // // ParameterGroupName is a required field ParameterGroupName *string `type:"string" required:"true"` @@ -7430,6 +8408,12 @@ func (s *DeleteClusterParameterGroupInput) Validate() error { return nil } +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *DeleteClusterParameterGroupInput) SetParameterGroupName(v string) *DeleteClusterParameterGroupInput { + s.ParameterGroupName = &v + return s +} + type DeleteClusterParameterGroupOutput struct { _ struct{} `type:"structure"` } @@ -7476,6 +8460,12 @@ func (s *DeleteClusterSecurityGroupInput) Validate() error { return nil } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *DeleteClusterSecurityGroupInput) SetClusterSecurityGroupName(v string) *DeleteClusterSecurityGroupInput { + s.ClusterSecurityGroupName = &v + return s +} + type DeleteClusterSecurityGroupOutput struct { _ struct{} `type:"structure"` } @@ -7532,6 +8522,18 @@ func (s *DeleteClusterSnapshotInput) Validate() error { return nil } +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *DeleteClusterSnapshotInput) SetSnapshotClusterIdentifier(v string) *DeleteClusterSnapshotInput { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *DeleteClusterSnapshotInput) SetSnapshotIdentifier(v string) *DeleteClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + type DeleteClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -7549,6 +8551,12 @@ func (s DeleteClusterSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *DeleteClusterSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteClusterSnapshotOutput { + s.Snapshot = v + return s +} + type DeleteClusterSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -7581,6 +8589,12 @@ func (s *DeleteClusterSubnetGroupInput) Validate() error { return nil } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *DeleteClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *DeleteClusterSubnetGroupInput { + s.ClusterSubnetGroupName = &v + return s +} + type DeleteClusterSubnetGroupOutput struct { _ struct{} `type:"structure"` } @@ -7627,6 +8641,12 @@ func (s *DeleteEventSubscriptionInput) Validate() error { return nil } +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DeleteEventSubscriptionInput) SetSubscriptionName(v string) *DeleteEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + type DeleteEventSubscriptionOutput struct { _ struct{} `type:"structure"` } @@ -7673,6 +8693,12 @@ func (s *DeleteHsmClientCertificateInput) Validate() error { return nil } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *DeleteHsmClientCertificateInput) SetHsmClientCertificateIdentifier(v string) *DeleteHsmClientCertificateInput { + s.HsmClientCertificateIdentifier = &v + return s +} + type DeleteHsmClientCertificateOutput struct { _ struct{} `type:"structure"` } @@ -7719,6 +8745,12 @@ func (s *DeleteHsmConfigurationInput) Validate() error { return nil } +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *DeleteHsmConfigurationInput) SetHsmConfigurationIdentifier(v string) *DeleteHsmConfigurationInput { + s.HsmConfigurationIdentifier = &v + return s +} + type DeleteHsmConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -7766,6 +8798,12 @@ func (s *DeleteSnapshotCopyGrantInput) Validate() error { return nil } +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *DeleteSnapshotCopyGrantInput) SetSnapshotCopyGrantName(v string) *DeleteSnapshotCopyGrantInput { + s.SnapshotCopyGrantName = &v + return s +} + type DeleteSnapshotCopyGrantOutput struct { _ struct{} `type:"structure"` } @@ -7822,6 +8860,18 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *DeleteTagsInput) SetResourceName(v string) *DeleteTagsInput { + s.ResourceName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { + s.TagKeys = v + return s +} + type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -7888,6 +8938,36 @@ func (s DescribeClusterParameterGroupsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterParameterGroupsInput) SetMarker(v string) *DescribeClusterParameterGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterParameterGroupsInput) SetMaxRecords(v int64) *DescribeClusterParameterGroupsInput { + s.MaxRecords = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *DescribeClusterParameterGroupsInput) SetParameterGroupName(v string) *DescribeClusterParameterGroupsInput { + s.ParameterGroupName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClusterParameterGroupsInput) SetTagKeys(v []*string) *DescribeClusterParameterGroupsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClusterParameterGroupsInput) SetTagValues(v []*string) *DescribeClusterParameterGroupsInput { + s.TagValues = v + return s +} + // Contains the output from the DescribeClusterParameterGroups action. type DescribeClusterParameterGroupsOutput struct { _ struct{} `type:"structure"` @@ -7914,6 +8994,18 @@ func (s DescribeClusterParameterGroupsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterParameterGroupsOutput) SetMarker(v string) *DescribeClusterParameterGroupsOutput { + s.Marker = &v + return s +} + +// SetParameterGroups sets the ParameterGroups field's value. +func (s *DescribeClusterParameterGroupsOutput) SetParameterGroups(v []*ClusterParameterGroup) *DescribeClusterParameterGroupsOutput { + s.ParameterGroups = v + return s +} + type DescribeClusterParametersInput struct { _ struct{} `type:"structure"` @@ -7973,6 +9065,30 @@ func (s *DescribeClusterParametersInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterParametersInput) SetMarker(v string) *DescribeClusterParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterParametersInput) SetMaxRecords(v int64) *DescribeClusterParametersInput { + s.MaxRecords = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *DescribeClusterParametersInput) SetParameterGroupName(v string) *DescribeClusterParametersInput { + s.ParameterGroupName = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DescribeClusterParametersInput) SetSource(v string) *DescribeClusterParametersInput { + s.Source = &v + return s +} + // Contains the output from the DescribeClusterParameters action. type DescribeClusterParametersOutput struct { _ struct{} `type:"structure"` @@ -7999,6 +9115,18 @@ func (s DescribeClusterParametersOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterParametersOutput) SetMarker(v string) *DescribeClusterParametersOutput { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeClusterParametersOutput) SetParameters(v []*Parameter) *DescribeClusterParametersOutput { + s.Parameters = v + return s +} + type DescribeClusterSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -8006,7 +9134,7 @@ type DescribeClusterSecurityGroupsInput struct { // You can specify either the Marker parameter or a ClusterSecurityGroupName // parameter, but not both. // - // Example: securitygroup1 + // Example: securitygroup1 ClusterSecurityGroupName *string `type:"string"` // An optional parameter that specifies the starting point to return a set of @@ -8057,6 +9185,36 @@ func (s DescribeClusterSecurityGroupsInput) GoString() string { return s.String() } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *DescribeClusterSecurityGroupsInput) SetClusterSecurityGroupName(v string) *DescribeClusterSecurityGroupsInput { + s.ClusterSecurityGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSecurityGroupsInput) SetMarker(v string) *DescribeClusterSecurityGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterSecurityGroupsInput) SetMaxRecords(v int64) *DescribeClusterSecurityGroupsInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClusterSecurityGroupsInput) SetTagKeys(v []*string) *DescribeClusterSecurityGroupsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClusterSecurityGroupsInput) SetTagValues(v []*string) *DescribeClusterSecurityGroupsInput { + s.TagValues = v + return s +} + type DescribeClusterSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -8081,6 +9239,18 @@ func (s DescribeClusterSecurityGroupsOutput) GoString() string { return s.String() } +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *DescribeClusterSecurityGroupsOutput) SetClusterSecurityGroups(v []*ClusterSecurityGroup) *DescribeClusterSecurityGroupsOutput { + s.ClusterSecurityGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSecurityGroupsOutput) SetMarker(v string) *DescribeClusterSecurityGroupsOutput { + s.Marker = &v + return s +} + type DescribeClusterSnapshotsInput struct { _ struct{} `type:"structure"` @@ -8161,6 +9331,66 @@ func (s DescribeClusterSnapshotsInput) GoString() string { return s.String() } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeClusterSnapshotsInput) SetClusterIdentifier(v string) *DescribeClusterSnapshotsInput { + s.ClusterIdentifier = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeClusterSnapshotsInput) SetEndTime(v time.Time) *DescribeClusterSnapshotsInput { + s.EndTime = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSnapshotsInput) SetMarker(v string) *DescribeClusterSnapshotsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterSnapshotsInput) SetMaxRecords(v int64) *DescribeClusterSnapshotsInput { + s.MaxRecords = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *DescribeClusterSnapshotsInput) SetOwnerAccount(v string) *DescribeClusterSnapshotsInput { + s.OwnerAccount = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *DescribeClusterSnapshotsInput) SetSnapshotIdentifier(v string) *DescribeClusterSnapshotsInput { + s.SnapshotIdentifier = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DescribeClusterSnapshotsInput) SetSnapshotType(v string) *DescribeClusterSnapshotsInput { + s.SnapshotType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeClusterSnapshotsInput) SetStartTime(v time.Time) *DescribeClusterSnapshotsInput { + s.StartTime = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClusterSnapshotsInput) SetTagKeys(v []*string) *DescribeClusterSnapshotsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClusterSnapshotsInput) SetTagValues(v []*string) *DescribeClusterSnapshotsInput { + s.TagValues = v + return s +} + // Contains the output from the DescribeClusterSnapshots action. type DescribeClusterSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -8186,6 +9416,18 @@ func (s DescribeClusterSnapshotsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSnapshotsOutput) SetMarker(v string) *DescribeClusterSnapshotsOutput { + s.Marker = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *DescribeClusterSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeClusterSnapshotsOutput { + s.Snapshots = v + return s +} + type DescribeClusterSubnetGroupsInput struct { _ struct{} `type:"structure"` @@ -8237,6 +9479,36 @@ func (s DescribeClusterSubnetGroupsInput) GoString() string { return s.String() } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *DescribeClusterSubnetGroupsInput) SetClusterSubnetGroupName(v string) *DescribeClusterSubnetGroupsInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSubnetGroupsInput) SetMarker(v string) *DescribeClusterSubnetGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterSubnetGroupsInput) SetMaxRecords(v int64) *DescribeClusterSubnetGroupsInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClusterSubnetGroupsInput) SetTagKeys(v []*string) *DescribeClusterSubnetGroupsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClusterSubnetGroupsInput) SetTagValues(v []*string) *DescribeClusterSubnetGroupsInput { + s.TagValues = v + return s +} + // Contains the output from the DescribeClusterSubnetGroups action. type DescribeClusterSubnetGroupsOutput struct { _ struct{} `type:"structure"` @@ -8262,6 +9534,18 @@ func (s DescribeClusterSubnetGroupsOutput) GoString() string { return s.String() } +// SetClusterSubnetGroups sets the ClusterSubnetGroups field's value. +func (s *DescribeClusterSubnetGroupsOutput) SetClusterSubnetGroups(v []*ClusterSubnetGroup) *DescribeClusterSubnetGroupsOutput { + s.ClusterSubnetGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSubnetGroupsOutput) SetMarker(v string) *DescribeClusterSubnetGroupsOutput { + s.Marker = &v + return s +} + type DescribeClusterVersionsInput struct { _ struct{} `type:"structure"` @@ -8269,11 +9553,11 @@ type DescribeClusterVersionsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens ClusterParameterGroupFamily *string `type:"string"` // The specific cluster version to return. @@ -8309,6 +9593,30 @@ func (s DescribeClusterVersionsInput) GoString() string { return s.String() } +// SetClusterParameterGroupFamily sets the ClusterParameterGroupFamily field's value. +func (s *DescribeClusterVersionsInput) SetClusterParameterGroupFamily(v string) *DescribeClusterVersionsInput { + s.ClusterParameterGroupFamily = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *DescribeClusterVersionsInput) SetClusterVersion(v string) *DescribeClusterVersionsInput { + s.ClusterVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterVersionsInput) SetMarker(v string) *DescribeClusterVersionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterVersionsInput) SetMaxRecords(v int64) *DescribeClusterVersionsInput { + s.MaxRecords = &v + return s +} + // Contains the output from the DescribeClusterVersions action. type DescribeClusterVersionsOutput struct { _ struct{} `type:"structure"` @@ -8334,6 +9642,18 @@ func (s DescribeClusterVersionsOutput) GoString() string { return s.String() } +// SetClusterVersions sets the ClusterVersions field's value. +func (s *DescribeClusterVersionsOutput) SetClusterVersions(v []*ClusterVersion) *DescribeClusterVersionsOutput { + s.ClusterVersions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterVersionsOutput) SetMarker(v string) *DescribeClusterVersionsOutput { + s.Marker = &v + return s +} + type DescribeClustersInput struct { _ struct{} `type:"structure"` @@ -8390,6 +9710,36 @@ func (s DescribeClustersInput) GoString() string { return s.String() } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeClustersInput) SetClusterIdentifier(v string) *DescribeClustersInput { + s.ClusterIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClustersInput) SetMarker(v string) *DescribeClustersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClustersInput) SetMaxRecords(v int64) *DescribeClustersInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClustersInput) SetTagKeys(v []*string) *DescribeClustersInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClustersInput) SetTagValues(v []*string) *DescribeClustersInput { + s.TagValues = v + return s +} + // Contains the output from the DescribeClusters action. type DescribeClustersOutput struct { _ struct{} `type:"structure"` @@ -8415,6 +9765,18 @@ func (s DescribeClustersOutput) GoString() string { return s.String() } +// SetClusters sets the Clusters field's value. +func (s *DescribeClustersOutput) SetClusters(v []*Cluster) *DescribeClustersOutput { + s.Clusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClustersOutput) SetMarker(v string) *DescribeClustersOutput { + s.Marker = &v + return s +} + type DescribeDefaultClusterParametersInput struct { _ struct{} `type:"structure"` @@ -8465,6 +9827,24 @@ func (s *DescribeDefaultClusterParametersInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *DescribeDefaultClusterParametersInput) SetMarker(v string) *DescribeDefaultClusterParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDefaultClusterParametersInput) SetMaxRecords(v int64) *DescribeDefaultClusterParametersInput { + s.MaxRecords = &v + return s +} + +// SetParameterGroupFamily sets the ParameterGroupFamily field's value. +func (s *DescribeDefaultClusterParametersInput) SetParameterGroupFamily(v string) *DescribeDefaultClusterParametersInput { + s.ParameterGroupFamily = &v + return s +} + type DescribeDefaultClusterParametersOutput struct { _ struct{} `type:"structure"` @@ -8482,6 +9862,12 @@ func (s DescribeDefaultClusterParametersOutput) GoString() string { return s.String() } +// SetDefaultClusterParameters sets the DefaultClusterParameters field's value. +func (s *DescribeDefaultClusterParametersOutput) SetDefaultClusterParameters(v *DefaultClusterParameters) *DescribeDefaultClusterParametersOutput { + s.DefaultClusterParameters = v + return s +} + type DescribeEventCategoriesInput struct { _ struct{} `type:"structure"` @@ -8502,6 +9888,12 @@ func (s DescribeEventCategoriesInput) GoString() string { return s.String() } +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput { + s.SourceType = &v + return s +} + type DescribeEventCategoriesOutput struct { _ struct{} `type:"structure"` @@ -8519,6 +9911,12 @@ func (s DescribeEventCategoriesOutput) GoString() string { return s.String() } +// SetEventCategoriesMapList sets the EventCategoriesMapList field's value. +func (s *DescribeEventCategoriesOutput) SetEventCategoriesMapList(v []*EventCategoriesMap) *DescribeEventCategoriesOutput { + s.EventCategoriesMapList = v + return s +} + type DescribeEventSubscriptionsInput struct { _ struct{} `type:"structure"` @@ -8554,6 +9952,24 @@ func (s DescribeEventSubscriptionsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeEventSubscriptionsInput) SetMarker(v string) *DescribeEventSubscriptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventSubscriptionsInput) SetMaxRecords(v int64) *DescribeEventSubscriptionsInput { + s.MaxRecords = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DescribeEventSubscriptionsInput) SetSubscriptionName(v string) *DescribeEventSubscriptionsInput { + s.SubscriptionName = &v + return s +} + type DescribeEventSubscriptionsOutput struct { _ struct{} `type:"structure"` @@ -8578,6 +9994,18 @@ func (s DescribeEventSubscriptionsOutput) GoString() string { return s.String() } +// SetEventSubscriptionsList sets the EventSubscriptionsList field's value. +func (s *DescribeEventSubscriptionsOutput) SetEventSubscriptionsList(v []*EventSubscription) *DescribeEventSubscriptionsOutput { + s.EventSubscriptionsList = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventSubscriptionsOutput) SetMarker(v string) *DescribeEventSubscriptionsOutput { + s.Marker = &v + return s +} + type DescribeEventsInput struct { _ struct{} `type:"structure"` @@ -8619,13 +10047,13 @@ type DescribeEventsInput struct { // // If SourceIdentifier is supplied, SourceType must also be provided. // - // Specify a cluster identifier when SourceType is cluster. + // * Specify a cluster identifier when SourceType is cluster. // - // Specify a cluster security group name when SourceType is cluster-security-group. + // * Specify a cluster security group name when SourceType is cluster-security-group. // - // Specify a cluster parameter group name when SourceType is cluster-parameter-group. + // * Specify a cluster parameter group name when SourceType is cluster-parameter-group. // - // Specify a cluster snapshot identifier when SourceType is cluster-snapshot. + // * Specify a cluster snapshot identifier when SourceType is cluster-snapshot. SourceIdentifier *string `type:"string"` // The event source to retrieve events for. If no value is specified, all events @@ -8635,15 +10063,16 @@ type DescribeEventsInput struct { // // If SourceType is supplied, SourceIdentifier must also be provided. // - // Specify cluster when SourceIdentifier is a cluster identifier. + // * Specify cluster when SourceIdentifier is a cluster identifier. // - // Specify cluster-security-group when SourceIdentifier is a cluster security - // group name. + // * Specify cluster-security-group when SourceIdentifier is a cluster security + // group name. // - // Specify cluster-parameter-group when SourceIdentifier is a cluster parameter - // group name. + // * Specify cluster-parameter-group when SourceIdentifier is a cluster parameter + // group name. // - // Specify cluster-snapshot when SourceIdentifier is a cluster snapshot identifier. + // * Specify cluster-snapshot when SourceIdentifier is a cluster snapshot + // identifier. SourceType *string `type:"string" enum:"SourceType"` // The beginning of the time interval to retrieve events for, specified in ISO @@ -8664,6 +10093,48 @@ func (s DescribeEventsInput) GoString() string { return s.String() } +// SetDuration sets the Duration field's value. +func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput { + s.Duration = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { + s.MaxRecords = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput { + s.SourceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + type DescribeEventsOutput struct { _ struct{} `type:"structure"` @@ -8688,6 +10159,18 @@ func (s DescribeEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { + s.Marker = &v + return s +} + type DescribeHsmClientCertificatesInput struct { _ struct{} `type:"structure"` @@ -8741,6 +10224,36 @@ func (s DescribeHsmClientCertificatesInput) GoString() string { return s.String() } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *DescribeHsmClientCertificatesInput) SetHsmClientCertificateIdentifier(v string) *DescribeHsmClientCertificatesInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeHsmClientCertificatesInput) SetMarker(v string) *DescribeHsmClientCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeHsmClientCertificatesInput) SetMaxRecords(v int64) *DescribeHsmClientCertificatesInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeHsmClientCertificatesInput) SetTagKeys(v []*string) *DescribeHsmClientCertificatesInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeHsmClientCertificatesInput) SetTagValues(v []*string) *DescribeHsmClientCertificatesInput { + s.TagValues = v + return s +} + type DescribeHsmClientCertificatesOutput struct { _ struct{} `type:"structure"` @@ -8767,6 +10280,18 @@ func (s DescribeHsmClientCertificatesOutput) GoString() string { return s.String() } +// SetHsmClientCertificates sets the HsmClientCertificates field's value. +func (s *DescribeHsmClientCertificatesOutput) SetHsmClientCertificates(v []*HsmClientCertificate) *DescribeHsmClientCertificatesOutput { + s.HsmClientCertificates = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeHsmClientCertificatesOutput) SetMarker(v string) *DescribeHsmClientCertificatesOutput { + s.Marker = &v + return s +} + type DescribeHsmConfigurationsInput struct { _ struct{} `type:"structure"` @@ -8820,6 +10345,36 @@ func (s DescribeHsmConfigurationsInput) GoString() string { return s.String() } +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *DescribeHsmConfigurationsInput) SetHsmConfigurationIdentifier(v string) *DescribeHsmConfigurationsInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeHsmConfigurationsInput) SetMarker(v string) *DescribeHsmConfigurationsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeHsmConfigurationsInput) SetMaxRecords(v int64) *DescribeHsmConfigurationsInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeHsmConfigurationsInput) SetTagKeys(v []*string) *DescribeHsmConfigurationsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeHsmConfigurationsInput) SetTagValues(v []*string) *DescribeHsmConfigurationsInput { + s.TagValues = v + return s +} + type DescribeHsmConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -8844,6 +10399,18 @@ func (s DescribeHsmConfigurationsOutput) GoString() string { return s.String() } +// SetHsmConfigurations sets the HsmConfigurations field's value. +func (s *DescribeHsmConfigurationsOutput) SetHsmConfigurations(v []*HsmConfiguration) *DescribeHsmConfigurationsOutput { + s.HsmConfigurations = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeHsmConfigurationsOutput) SetMarker(v string) *DescribeHsmConfigurationsOutput { + s.Marker = &v + return s +} + type DescribeLoggingStatusInput struct { _ struct{} `type:"structure"` @@ -8878,6 +10445,12 @@ func (s *DescribeLoggingStatusInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeLoggingStatusInput) SetClusterIdentifier(v string) *DescribeLoggingStatusInput { + s.ClusterIdentifier = &v + return s +} + type DescribeOrderableClusterOptionsInput struct { _ struct{} `type:"structure"` @@ -8922,6 +10495,30 @@ func (s DescribeOrderableClusterOptionsInput) GoString() string { return s.String() } +// SetClusterVersion sets the ClusterVersion field's value. +func (s *DescribeOrderableClusterOptionsInput) SetClusterVersion(v string) *DescribeOrderableClusterOptionsInput { + s.ClusterVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableClusterOptionsInput) SetMarker(v string) *DescribeOrderableClusterOptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOrderableClusterOptionsInput) SetMaxRecords(v int64) *DescribeOrderableClusterOptionsInput { + s.MaxRecords = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *DescribeOrderableClusterOptionsInput) SetNodeType(v string) *DescribeOrderableClusterOptionsInput { + s.NodeType = &v + return s +} + // Contains the output from the DescribeOrderableClusterOptions action. type DescribeOrderableClusterOptionsOutput struct { _ struct{} `type:"structure"` @@ -8948,6 +10545,18 @@ func (s DescribeOrderableClusterOptionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableClusterOptionsOutput) SetMarker(v string) *DescribeOrderableClusterOptionsOutput { + s.Marker = &v + return s +} + +// SetOrderableClusterOptions sets the OrderableClusterOptions field's value. +func (s *DescribeOrderableClusterOptionsOutput) SetOrderableClusterOptions(v []*OrderableClusterOption) *DescribeOrderableClusterOptionsOutput { + s.OrderableClusterOptions = v + return s +} + type DescribeReservedNodeOfferingsInput struct { _ struct{} `type:"structure"` @@ -8983,6 +10592,24 @@ func (s DescribeReservedNodeOfferingsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedNodeOfferingsInput) SetMarker(v string) *DescribeReservedNodeOfferingsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedNodeOfferingsInput) SetMaxRecords(v int64) *DescribeReservedNodeOfferingsInput { + s.MaxRecords = &v + return s +} + +// SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value. +func (s *DescribeReservedNodeOfferingsInput) SetReservedNodeOfferingId(v string) *DescribeReservedNodeOfferingsInput { + s.ReservedNodeOfferingId = &v + return s +} + type DescribeReservedNodeOfferingsOutput struct { _ struct{} `type:"structure"` @@ -9007,6 +10634,18 @@ func (s DescribeReservedNodeOfferingsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedNodeOfferingsOutput) SetMarker(v string) *DescribeReservedNodeOfferingsOutput { + s.Marker = &v + return s +} + +// SetReservedNodeOfferings sets the ReservedNodeOfferings field's value. +func (s *DescribeReservedNodeOfferingsOutput) SetReservedNodeOfferings(v []*ReservedNodeOffering) *DescribeReservedNodeOfferingsOutput { + s.ReservedNodeOfferings = v + return s +} + type DescribeReservedNodesInput struct { _ struct{} `type:"structure"` @@ -9041,6 +10680,24 @@ func (s DescribeReservedNodesInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedNodesInput) SetMarker(v string) *DescribeReservedNodesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedNodesInput) SetMaxRecords(v int64) *DescribeReservedNodesInput { + s.MaxRecords = &v + return s +} + +// SetReservedNodeId sets the ReservedNodeId field's value. +func (s *DescribeReservedNodesInput) SetReservedNodeId(v string) *DescribeReservedNodesInput { + s.ReservedNodeId = &v + return s +} + type DescribeReservedNodesOutput struct { _ struct{} `type:"structure"` @@ -9065,6 +10722,18 @@ func (s DescribeReservedNodesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedNodesOutput) SetMarker(v string) *DescribeReservedNodesOutput { + s.Marker = &v + return s +} + +// SetReservedNodes sets the ReservedNodes field's value. +func (s *DescribeReservedNodesOutput) SetReservedNodes(v []*ReservedNode) *DescribeReservedNodesOutput { + s.ReservedNodes = v + return s +} + type DescribeResizeInput struct { _ struct{} `type:"structure"` @@ -9101,6 +10770,12 @@ func (s *DescribeResizeInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeResizeInput) SetClusterIdentifier(v string) *DescribeResizeInput { + s.ClusterIdentifier = &v + return s +} + // Describes the result of a cluster resize operation. type DescribeResizeOutput struct { _ struct{} `type:"structure"` @@ -9175,6 +10850,78 @@ func (s DescribeResizeOutput) GoString() string { return s.String() } +// SetAvgResizeRateInMegaBytesPerSecond sets the AvgResizeRateInMegaBytesPerSecond field's value. +func (s *DescribeResizeOutput) SetAvgResizeRateInMegaBytesPerSecond(v float64) *DescribeResizeOutput { + s.AvgResizeRateInMegaBytesPerSecond = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *DescribeResizeOutput) SetElapsedTimeInSeconds(v int64) *DescribeResizeOutput { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value. +func (s *DescribeResizeOutput) SetEstimatedTimeToCompletionInSeconds(v int64) *DescribeResizeOutput { + s.EstimatedTimeToCompletionInSeconds = &v + return s +} + +// SetImportTablesCompleted sets the ImportTablesCompleted field's value. +func (s *DescribeResizeOutput) SetImportTablesCompleted(v []*string) *DescribeResizeOutput { + s.ImportTablesCompleted = v + return s +} + +// SetImportTablesInProgress sets the ImportTablesInProgress field's value. +func (s *DescribeResizeOutput) SetImportTablesInProgress(v []*string) *DescribeResizeOutput { + s.ImportTablesInProgress = v + return s +} + +// SetImportTablesNotStarted sets the ImportTablesNotStarted field's value. +func (s *DescribeResizeOutput) SetImportTablesNotStarted(v []*string) *DescribeResizeOutput { + s.ImportTablesNotStarted = v + return s +} + +// SetProgressInMegaBytes sets the ProgressInMegaBytes field's value. +func (s *DescribeResizeOutput) SetProgressInMegaBytes(v int64) *DescribeResizeOutput { + s.ProgressInMegaBytes = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeResizeOutput) SetStatus(v string) *DescribeResizeOutput { + s.Status = &v + return s +} + +// SetTargetClusterType sets the TargetClusterType field's value. +func (s *DescribeResizeOutput) SetTargetClusterType(v string) *DescribeResizeOutput { + s.TargetClusterType = &v + return s +} + +// SetTargetNodeType sets the TargetNodeType field's value. +func (s *DescribeResizeOutput) SetTargetNodeType(v string) *DescribeResizeOutput { + s.TargetNodeType = &v + return s +} + +// SetTargetNumberOfNodes sets the TargetNumberOfNodes field's value. +func (s *DescribeResizeOutput) SetTargetNumberOfNodes(v int64) *DescribeResizeOutput { + s.TargetNumberOfNodes = &v + return s +} + +// SetTotalResizeDataInMegaBytes sets the TotalResizeDataInMegaBytes field's value. +func (s *DescribeResizeOutput) SetTotalResizeDataInMegaBytes(v int64) *DescribeResizeOutput { + s.TotalResizeDataInMegaBytes = &v + return s +} + // The result of the DescribeSnapshotCopyGrants action. type DescribeSnapshotCopyGrantsInput struct { _ struct{} `type:"structure"` @@ -9186,8 +10933,8 @@ type DescribeSnapshotCopyGrantsInput struct { // by providing the returned marker value in the Marker parameter and retrying // the request. // - // Constraints: You can specify either the SnapshotCopyGrantName parameter - // or the Marker parameter, but not both. + // Constraints: You can specify either the SnapshotCopyGrantName parameter or + // the Marker parameter, but not both. Marker *string `type:"string"` // The maximum number of response records to return in each call. If the number @@ -9230,6 +10977,36 @@ func (s DescribeSnapshotCopyGrantsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetMarker(v string) *DescribeSnapshotCopyGrantsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetMaxRecords(v int64) *DescribeSnapshotCopyGrantsInput { + s.MaxRecords = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetSnapshotCopyGrantName(v string) *DescribeSnapshotCopyGrantsInput { + s.SnapshotCopyGrantName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetTagKeys(v []*string) *DescribeSnapshotCopyGrantsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetTagValues(v []*string) *DescribeSnapshotCopyGrantsInput { + s.TagValues = v + return s +} + type DescribeSnapshotCopyGrantsOutput struct { _ struct{} `type:"structure"` @@ -9240,8 +11017,8 @@ type DescribeSnapshotCopyGrantsOutput struct { // by providing the returned marker value in the Marker parameter and retrying // the request. // - // Constraints: You can specify either the SnapshotCopyGrantName parameter - // or the Marker parameter, but not both. + // Constraints: You can specify either the SnapshotCopyGrantName parameter or + // the Marker parameter, but not both. Marker *string `type:"string"` // The list of SnapshotCopyGrant objects. @@ -9258,6 +11035,18 @@ func (s DescribeSnapshotCopyGrantsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotCopyGrantsOutput) SetMarker(v string) *DescribeSnapshotCopyGrantsOutput { + s.Marker = &v + return s +} + +// SetSnapshotCopyGrants sets the SnapshotCopyGrants field's value. +func (s *DescribeSnapshotCopyGrantsOutput) SetSnapshotCopyGrants(v []*SnapshotCopyGrant) *DescribeSnapshotCopyGrantsOutput { + s.SnapshotCopyGrants = v + return s +} + type DescribeTableRestoreStatusInput struct { _ struct{} `type:"structure"` @@ -9290,6 +11079,30 @@ func (s DescribeTableRestoreStatusInput) GoString() string { return s.String() } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeTableRestoreStatusInput) SetClusterIdentifier(v string) *DescribeTableRestoreStatusInput { + s.ClusterIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTableRestoreStatusInput) SetMarker(v string) *DescribeTableRestoreStatusInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeTableRestoreStatusInput) SetMaxRecords(v int64) *DescribeTableRestoreStatusInput { + s.MaxRecords = &v + return s +} + +// SetTableRestoreRequestId sets the TableRestoreRequestId field's value. +func (s *DescribeTableRestoreStatusInput) SetTableRestoreRequestId(v string) *DescribeTableRestoreStatusInput { + s.TableRestoreRequestId = &v + return s +} + type DescribeTableRestoreStatusOutput struct { _ struct{} `type:"structure"` @@ -9311,6 +11124,18 @@ func (s DescribeTableRestoreStatusOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTableRestoreStatusOutput) SetMarker(v string) *DescribeTableRestoreStatusOutput { + s.Marker = &v + return s +} + +// SetTableRestoreStatusDetails sets the TableRestoreStatusDetails field's value. +func (s *DescribeTableRestoreStatusOutput) SetTableRestoreStatusDetails(v []*TableRestoreStatus) *DescribeTableRestoreStatusOutput { + s.TableRestoreStatusDetails = v + return s +} + type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -9334,27 +11159,27 @@ type DescribeTagsInput struct { // The type of resource with which you want to view tags. Valid resource types // are: // - // Cluster + // * Cluster // - // CIDR/IP + // * CIDR/IP // - // EC2 security group + // * EC2 security group // - // Snapshot + // * Snapshot // - // Cluster security group + // * Cluster security group // - // Subnet group + // * Subnet group // - // HSM connection + // * HSM connection // - // HSM certificate + // * HSM certificate // - // Parameter group + // * Parameter group // - // Snapshot copy grant + // * Snapshot copy grant // - // For more information about Amazon Redshift resource types and constructing + // For more information about Amazon Redshift resource types and constructing // ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) (http://docs.aws.amazon.com/redshift/latest/mgmt/constructing-redshift-arn.html) // in the Amazon Redshift Cluster Management Guide. ResourceType *string `type:"string"` @@ -9386,6 +11211,42 @@ func (s DescribeTagsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTagsInput) SetMarker(v string) *DescribeTagsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeTagsInput) SetMaxRecords(v int64) *DescribeTagsInput { + s.MaxRecords = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *DescribeTagsInput) SetResourceName(v string) *DescribeTagsInput { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DescribeTagsInput) SetResourceType(v string) *DescribeTagsInput { + s.ResourceType = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeTagsInput) SetTagKeys(v []*string) *DescribeTagsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeTagsInput) SetTagValues(v []*string) *DescribeTagsInput { + s.TagValues = v + return s +} + type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -9410,6 +11271,18 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTagsOutput) SetMarker(v string) *DescribeTagsOutput { + s.Marker = &v + return s +} + +// SetTaggedResources sets the TaggedResources field's value. +func (s *DescribeTagsOutput) SetTaggedResources(v []*TaggedResource) *DescribeTagsOutput { + s.TaggedResources = v + return s +} + type DisableLoggingInput struct { _ struct{} `type:"structure"` @@ -9444,6 +11317,12 @@ func (s *DisableLoggingInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DisableLoggingInput) SetClusterIdentifier(v string) *DisableLoggingInput { + s.ClusterIdentifier = &v + return s +} + type DisableSnapshotCopyInput struct { _ struct{} `type:"structure"` @@ -9480,6 +11359,12 @@ func (s *DisableSnapshotCopyInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DisableSnapshotCopyInput) SetClusterIdentifier(v string) *DisableSnapshotCopyInput { + s.ClusterIdentifier = &v + return s +} + type DisableSnapshotCopyOutput struct { _ struct{} `type:"structure"` @@ -9497,6 +11382,12 @@ func (s DisableSnapshotCopyOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DisableSnapshotCopyOutput) SetCluster(v *Cluster) *DisableSnapshotCopyOutput { + s.Cluster = v + return s +} + // Describes an Amazon EC2 security group. type EC2SecurityGroup struct { _ struct{} `type:"structure"` @@ -9525,6 +11416,30 @@ func (s EC2SecurityGroup) GoString() string { return s.String() } +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *EC2SecurityGroup) SetTags(v []*Tag) *EC2SecurityGroup { + s.Tags = v + return s +} + // Describes the status of the elastic IP (EIP) address. type ElasticIpStatus struct { _ struct{} `type:"structure"` @@ -9546,6 +11461,18 @@ func (s ElasticIpStatus) GoString() string { return s.String() } +// SetElasticIp sets the ElasticIp field's value. +func (s *ElasticIpStatus) SetElasticIp(v string) *ElasticIpStatus { + s.ElasticIp = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ElasticIpStatus) SetStatus(v string) *ElasticIpStatus { + s.Status = &v + return s +} + type EnableLoggingInput struct { _ struct{} `type:"structure"` @@ -9553,9 +11480,9 @@ type EnableLoggingInput struct { // // Constraints: // - // Must be in the same region as the cluster + // * Must be in the same region as the cluster // - // The cluster must have read bucket and put object permissions + // * The cluster must have read bucket and put object permissions // // BucketName is a required field BucketName *string `type:"string" required:"true"` @@ -9571,21 +11498,21 @@ type EnableLoggingInput struct { // // Constraints: // - // Cannot exceed 512 characters + // * Cannot exceed 512 characters // - // Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash - // (\), or control characters. The hexadecimal codes for invalid characters - // are: + // * Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash + // (\), or control characters. The hexadecimal codes for invalid characters + // are: // - // x00 to x20 + // x00 to x20 // - // x22 + // x22 // - // x27 + // x27 // - // x5c + // x5c // - // x7f or larger + // x7f or larger S3KeyPrefix *string `type:"string"` } @@ -9615,6 +11542,24 @@ func (s *EnableLoggingInput) Validate() error { return nil } +// SetBucketName sets the BucketName field's value. +func (s *EnableLoggingInput) SetBucketName(v string) *EnableLoggingInput { + s.BucketName = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *EnableLoggingInput) SetClusterIdentifier(v string) *EnableLoggingInput { + s.ClusterIdentifier = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *EnableLoggingInput) SetS3KeyPrefix(v string) *EnableLoggingInput { + s.S3KeyPrefix = &v + return s +} + type EnableSnapshotCopyInput struct { _ struct{} `type:"structure"` @@ -9674,6 +11619,30 @@ func (s *EnableSnapshotCopyInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *EnableSnapshotCopyInput) SetClusterIdentifier(v string) *EnableSnapshotCopyInput { + s.ClusterIdentifier = &v + return s +} + +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *EnableSnapshotCopyInput) SetDestinationRegion(v string) *EnableSnapshotCopyInput { + s.DestinationRegion = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *EnableSnapshotCopyInput) SetRetentionPeriod(v int64) *EnableSnapshotCopyInput { + s.RetentionPeriod = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *EnableSnapshotCopyInput) SetSnapshotCopyGrantName(v string) *EnableSnapshotCopyInput { + s.SnapshotCopyGrantName = &v + return s +} + type EnableSnapshotCopyOutput struct { _ struct{} `type:"structure"` @@ -9691,6 +11660,12 @@ func (s EnableSnapshotCopyOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *EnableSnapshotCopyOutput) SetCluster(v *Cluster) *EnableSnapshotCopyOutput { + s.Cluster = v + return s +} + // Describes a connection endpoint. type Endpoint struct { _ struct{} `type:"structure"` @@ -9712,6 +11687,18 @@ func (s Endpoint) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *Endpoint) SetAddress(v string) *Endpoint { + s.Address = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Endpoint) SetPort(v int64) *Endpoint { + s.Port = &v + return s +} + // Describes an event. type Event struct { _ struct{} `type:"structure"` @@ -9752,6 +11739,48 @@ func (s Event) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *Event) SetDate(v time.Time) *Event { + s.Date = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *Event) SetEventCategories(v []*string) *Event { + s.EventCategories = v + return s +} + +// SetEventId sets the EventId field's value. +func (s *Event) SetEventId(v string) *Event { + s.EventId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Event) SetMessage(v string) *Event { + s.Message = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *Event) SetSeverity(v string) *Event { + s.Severity = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *Event) SetSourceIdentifier(v string) *Event { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *Event) SetSourceType(v string) *Event { + s.SourceType = &v + return s +} + // Describes event categories. type EventCategoriesMap struct { _ struct{} `type:"structure"` @@ -9774,6 +11803,18 @@ func (s EventCategoriesMap) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *EventCategoriesMap) SetEvents(v []*EventInfoMap) *EventCategoriesMap { + s.Events = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *EventCategoriesMap) SetSourceType(v string) *EventCategoriesMap { + s.SourceType = &v + return s +} + // Describes event information. type EventInfoMap struct { _ struct{} `type:"structure"` @@ -9803,6 +11844,30 @@ func (s EventInfoMap) GoString() string { return s.String() } +// SetEventCategories sets the EventCategories field's value. +func (s *EventInfoMap) SetEventCategories(v []*string) *EventInfoMap { + s.EventCategories = v + return s +} + +// SetEventDescription sets the EventDescription field's value. +func (s *EventInfoMap) SetEventDescription(v string) *EventInfoMap { + s.EventDescription = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *EventInfoMap) SetEventId(v string) *EventInfoMap { + s.EventId = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *EventInfoMap) SetSeverity(v string) *EventInfoMap { + s.Severity = &v + return s +} + // Describes event subscriptions. type EventSubscription struct { _ struct{} `type:"structure"` @@ -9845,11 +11910,11 @@ type EventSubscription struct { // // Constraints: // - // Can be one of the following: active | no-permission | topic-not-exist + // * Can be one of the following: active | no-permission | topic-not-exist // - // The status "no-permission" indicates that Amazon Redshift no longer has - // permission to post to the Amazon SNS topic. The status "topic-not-exist" - // indicates that the topic was deleted after the subscription was created. + // * The status "no-permission" indicates that Amazon Redshift no longer + // has permission to post to the Amazon SNS topic. The status "topic-not-exist" + // indicates that the topic was deleted after the subscription was created. Status *string `type:"string"` // The date and time the Amazon Redshift event notification subscription was @@ -9870,6 +11935,72 @@ func (s EventSubscription) GoString() string { return s.String() } +// SetCustSubscriptionId sets the CustSubscriptionId field's value. +func (s *EventSubscription) SetCustSubscriptionId(v string) *EventSubscription { + s.CustSubscriptionId = &v + return s +} + +// SetCustomerAwsId sets the CustomerAwsId field's value. +func (s *EventSubscription) SetCustomerAwsId(v string) *EventSubscription { + s.CustomerAwsId = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventSubscription) SetEnabled(v bool) *EventSubscription { + s.Enabled = &v + return s +} + +// SetEventCategoriesList sets the EventCategoriesList field's value. +func (s *EventSubscription) SetEventCategoriesList(v []*string) *EventSubscription { + s.EventCategoriesList = v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *EventSubscription) SetSeverity(v string) *EventSubscription { + s.Severity = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *EventSubscription) SetSnsTopicArn(v string) *EventSubscription { + s.SnsTopicArn = &v + return s +} + +// SetSourceIdsList sets the SourceIdsList field's value. +func (s *EventSubscription) SetSourceIdsList(v []*string) *EventSubscription { + s.SourceIdsList = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *EventSubscription) SetSourceType(v string) *EventSubscription { + s.SourceType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EventSubscription) SetStatus(v string) *EventSubscription { + s.Status = &v + return s +} + +// SetSubscriptionCreationTime sets the SubscriptionCreationTime field's value. +func (s *EventSubscription) SetSubscriptionCreationTime(v time.Time) *EventSubscription { + s.SubscriptionCreationTime = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *EventSubscription) SetTags(v []*Tag) *EventSubscription { + s.Tags = v + return s +} + // Returns information about an HSM client certificate. The certificate is stored // in a secure Hardware Storage Module (HSM), and used by the Amazon Redshift // cluster to encrypt data files. @@ -9897,6 +12028,24 @@ func (s HsmClientCertificate) GoString() string { return s.String() } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *HsmClientCertificate) SetHsmClientCertificateIdentifier(v string) *HsmClientCertificate { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmClientCertificatePublicKey sets the HsmClientCertificatePublicKey field's value. +func (s *HsmClientCertificate) SetHsmClientCertificatePublicKey(v string) *HsmClientCertificate { + s.HsmClientCertificatePublicKey = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *HsmClientCertificate) SetTags(v []*Tag) *HsmClientCertificate { + s.Tags = v + return s +} + // Returns information about an HSM configuration, which is an object that describes // to Amazon Redshift clusters the information they require to connect to an // HSM where they can store database encryption keys. @@ -9930,6 +12079,36 @@ func (s HsmConfiguration) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *HsmConfiguration) SetDescription(v string) *HsmConfiguration { + s.Description = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *HsmConfiguration) SetHsmConfigurationIdentifier(v string) *HsmConfiguration { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetHsmIpAddress sets the HsmIpAddress field's value. +func (s *HsmConfiguration) SetHsmIpAddress(v string) *HsmConfiguration { + s.HsmIpAddress = &v + return s +} + +// SetHsmPartitionName sets the HsmPartitionName field's value. +func (s *HsmConfiguration) SetHsmPartitionName(v string) *HsmConfiguration { + s.HsmPartitionName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *HsmConfiguration) SetTags(v []*Tag) *HsmConfiguration { + s.Tags = v + return s +} + // Describes the status of changes to HSM settings. type HsmStatus struct { _ struct{} `type:"structure"` @@ -9959,6 +12138,24 @@ func (s HsmStatus) GoString() string { return s.String() } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *HsmStatus) SetHsmClientCertificateIdentifier(v string) *HsmStatus { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *HsmStatus) SetHsmConfigurationIdentifier(v string) *HsmStatus { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *HsmStatus) SetStatus(v string) *HsmStatus { + s.Status = &v + return s +} + // Describes an IP range used in a security group. type IPRange struct { _ struct{} `type:"structure"` @@ -9983,6 +12180,24 @@ func (s IPRange) GoString() string { return s.String() } +// SetCIDRIP sets the CIDRIP field's value. +func (s *IPRange) SetCIDRIP(v string) *IPRange { + s.CIDRIP = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *IPRange) SetStatus(v string) *IPRange { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *IPRange) SetTags(v []*Tag) *IPRange { + s.Tags = v + return s +} + // Describes the status of logging for a cluster. type LoggingStatus struct { _ struct{} `type:"structure"` @@ -10016,6 +12231,42 @@ func (s LoggingStatus) GoString() string { return s.String() } +// SetBucketName sets the BucketName field's value. +func (s *LoggingStatus) SetBucketName(v string) *LoggingStatus { + s.BucketName = &v + return s +} + +// SetLastFailureMessage sets the LastFailureMessage field's value. +func (s *LoggingStatus) SetLastFailureMessage(v string) *LoggingStatus { + s.LastFailureMessage = &v + return s +} + +// SetLastFailureTime sets the LastFailureTime field's value. +func (s *LoggingStatus) SetLastFailureTime(v time.Time) *LoggingStatus { + s.LastFailureTime = &v + return s +} + +// SetLastSuccessfulDeliveryTime sets the LastSuccessfulDeliveryTime field's value. +func (s *LoggingStatus) SetLastSuccessfulDeliveryTime(v time.Time) *LoggingStatus { + s.LastSuccessfulDeliveryTime = &v + return s +} + +// SetLoggingEnabled sets the LoggingEnabled field's value. +func (s *LoggingStatus) SetLoggingEnabled(v bool) *LoggingStatus { + s.LoggingEnabled = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *LoggingStatus) SetS3KeyPrefix(v string) *LoggingStatus { + s.S3KeyPrefix = &v + return s +} + type ModifyClusterIamRolesInput struct { _ struct{} `type:"structure"` @@ -10058,6 +12309,24 @@ func (s *ModifyClusterIamRolesInput) Validate() error { return nil } +// SetAddIamRoles sets the AddIamRoles field's value. +func (s *ModifyClusterIamRolesInput) SetAddIamRoles(v []*string) *ModifyClusterIamRolesInput { + s.AddIamRoles = v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *ModifyClusterIamRolesInput) SetClusterIdentifier(v string) *ModifyClusterIamRolesInput { + s.ClusterIdentifier = &v + return s +} + +// SetRemoveIamRoles sets the RemoveIamRoles field's value. +func (s *ModifyClusterIamRolesInput) SetRemoveIamRoles(v []*string) *ModifyClusterIamRolesInput { + s.RemoveIamRoles = v + return s +} + type ModifyClusterIamRolesOutput struct { _ struct{} `type:"structure"` @@ -10075,6 +12344,12 @@ func (s ModifyClusterIamRolesOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ModifyClusterIamRolesOutput) SetCluster(v *Cluster) *ModifyClusterIamRolesOutput { + s.Cluster = v + return s +} + type ModifyClusterInput struct { _ struct{} `type:"structure"` @@ -10121,32 +12396,32 @@ type ModifyClusterInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens + // * Must be 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens ClusterSecurityGroups []*string `locationNameList:"ClusterSecurityGroupName" type:"list"` // The new cluster type. // - // When you submit your cluster resize request, your existing cluster goes - // into a read-only mode. After Amazon Redshift provisions a new cluster based - // on your resize requirements, there will be outage for a period while the - // old cluster is deleted and your connection is switched to the new cluster. - // You can use DescribeResize to track the progress of the resize request. + // When you submit your cluster resize request, your existing cluster goes into + // a read-only mode. After Amazon Redshift provisions a new cluster based on + // your resize requirements, there will be outage for a period while the old + // cluster is deleted and your connection is switched to the new cluster. You + // can use DescribeResize to track the progress of the resize request. // // Valid Values: multi-node | single-node ClusterType *string `type:"string"` // The new version number of the Amazon Redshift engine to upgrade to. // - // For major version upgrades, if a non-default cluster parameter group is - // currently in use, a new cluster parameter group in the cluster parameter - // group family for the new version must be specified. The new cluster parameter - // group can be the default for that cluster parameter group family. For more - // information about parameters and parameter groups, go to Amazon Redshift - // Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) + // For major version upgrades, if a non-default cluster parameter group is currently + // in use, a new cluster parameter group in the cluster parameter group family + // for the new version must be specified. The new cluster parameter group can + // be the default for that cluster parameter group family. For more information + // about parameters and parameter groups, go to Amazon Redshift Parameter Groups + // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // // Example: 1.0 @@ -10184,41 +12459,41 @@ type ModifyClusterInput struct { // of the request, the MasterUserPassword element exists in the PendingModifiedValues // element of the operation response. // - // Operations never return the password, so this operation provides a way - // to regain access to the master user account for a cluster if the password - // is lost. + // Operations never return the password, so this operation provides a way to + // regain access to the master user account for a cluster if the password is + // lost. // - // Default: Uses existing setting. + // Default: Uses existing setting. // // Constraints: // - // Must be between 8 and 64 characters in length. + // * Must be between 8 and 64 characters in length. // - // Must contain at least one uppercase letter. + // * Must contain at least one uppercase letter. // - // Must contain at least one lowercase letter. + // * Must contain at least one lowercase letter. // - // Must contain one number. + // * Must contain one number. // - // Can be any printable ASCII character (ASCII code 33 to 126) except ' (single - // quote), " (double quote), \, /, @, or space. + // * Can be any printable ASCII character (ASCII code 33 to 126) except ' + // (single quote), " (double quote), \, /, @, or space. MasterUserPassword *string `type:"string"` // The new identifier for the cluster. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // Alphabetic characters must be lowercase. + // * Alphabetic characters must be lowercase. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for all clusters within an AWS account. + // * Must be unique for all clusters within an AWS account. // - // Example: examplecluster + // Example: examplecluster NewClusterIdentifier *string `type:"string"` // The new node type of the cluster. If you specify a new node type, you must @@ -10300,6 +12575,114 @@ func (s *ModifyClusterInput) Validate() error { return nil } +// SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value. +func (s *ModifyClusterInput) SetAllowVersionUpgrade(v bool) *ModifyClusterInput { + s.AllowVersionUpgrade = &v + return s +} + +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *ModifyClusterInput) SetAutomatedSnapshotRetentionPeriod(v int64) *ModifyClusterInput { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *ModifyClusterInput) SetClusterIdentifier(v string) *ModifyClusterInput { + s.ClusterIdentifier = &v + return s +} + +// SetClusterParameterGroupName sets the ClusterParameterGroupName field's value. +func (s *ModifyClusterInput) SetClusterParameterGroupName(v string) *ModifyClusterInput { + s.ClusterParameterGroupName = &v + return s +} + +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *ModifyClusterInput) SetClusterSecurityGroups(v []*string) *ModifyClusterInput { + s.ClusterSecurityGroups = v + return s +} + +// SetClusterType sets the ClusterType field's value. +func (s *ModifyClusterInput) SetClusterType(v string) *ModifyClusterInput { + s.ClusterType = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *ModifyClusterInput) SetClusterVersion(v string) *ModifyClusterInput { + s.ClusterVersion = &v + return s +} + +// SetElasticIp sets the ElasticIp field's value. +func (s *ModifyClusterInput) SetElasticIp(v string) *ModifyClusterInput { + s.ElasticIp = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *ModifyClusterInput) SetEnhancedVpcRouting(v bool) *ModifyClusterInput { + s.EnhancedVpcRouting = &v + return s +} + +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *ModifyClusterInput) SetHsmClientCertificateIdentifier(v string) *ModifyClusterInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *ModifyClusterInput) SetHsmConfigurationIdentifier(v string) *ModifyClusterInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *ModifyClusterInput) SetMasterUserPassword(v string) *ModifyClusterInput { + s.MasterUserPassword = &v + return s +} + +// SetNewClusterIdentifier sets the NewClusterIdentifier field's value. +func (s *ModifyClusterInput) SetNewClusterIdentifier(v string) *ModifyClusterInput { + s.NewClusterIdentifier = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *ModifyClusterInput) SetNodeType(v string) *ModifyClusterInput { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *ModifyClusterInput) SetNumberOfNodes(v int64) *ModifyClusterInput { + s.NumberOfNodes = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *ModifyClusterInput) SetPubliclyAccessible(v bool) *ModifyClusterInput { + s.PubliclyAccessible = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *ModifyClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyClusterInput { + s.VpcSecurityGroupIds = v + return s +} + type ModifyClusterOutput struct { _ struct{} `type:"structure"` @@ -10317,6 +12700,12 @@ func (s ModifyClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ModifyClusterOutput) SetCluster(v *Cluster) *ModifyClusterOutput { + s.Cluster = v + return s +} + type ModifyClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -10364,6 +12753,18 @@ func (s *ModifyClusterParameterGroupInput) Validate() error { return nil } +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ModifyClusterParameterGroupInput) SetParameterGroupName(v string) *ModifyClusterParameterGroupInput { + s.ParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ModifyClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyClusterParameterGroupInput { + s.Parameters = v + return s +} + type ModifyClusterSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -10408,6 +12809,24 @@ func (s *ModifyClusterSubnetGroupInput) Validate() error { return nil } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *ModifyClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *ModifyClusterSubnetGroupInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ModifyClusterSubnetGroupInput) SetDescription(v string) *ModifyClusterSubnetGroupInput { + s.Description = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ModifyClusterSubnetGroupInput) SetSubnetIds(v []*string) *ModifyClusterSubnetGroupInput { + s.SubnetIds = v + return s +} + type ModifyClusterSubnetGroupOutput struct { _ struct{} `type:"structure"` @@ -10425,6 +12844,12 @@ func (s ModifyClusterSubnetGroupOutput) GoString() string { return s.String() } +// SetClusterSubnetGroup sets the ClusterSubnetGroup field's value. +func (s *ModifyClusterSubnetGroupOutput) SetClusterSubnetGroup(v *ClusterSubnetGroup) *ModifyClusterSubnetGroupOutput { + s.ClusterSubnetGroup = v + return s +} + type ModifyEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -10465,8 +12890,8 @@ type ModifyEventSubscriptionInput struct { // for all Amazon Redshift objects in your AWS account. You must specify a source // type in order to specify source IDs. // - // Valid values: cluster, cluster-parameter-group, cluster-security-group, - // and cluster-snapshot. + // Valid values: cluster, cluster-parameter-group, cluster-security-group, and + // cluster-snapshot. SourceType *string `type:"string"` // The name of the modified Amazon Redshift event notification subscription. @@ -10498,6 +12923,48 @@ func (s *ModifyEventSubscriptionInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *ModifyEventSubscriptionInput) SetEnabled(v bool) *ModifyEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *ModifyEventSubscriptionInput) SetEventCategories(v []*string) *ModifyEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *ModifyEventSubscriptionInput) SetSeverity(v string) *ModifyEventSubscriptionInput { + s.Severity = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *ModifyEventSubscriptionInput) SetSnsTopicArn(v string) *ModifyEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceIds sets the SourceIds field's value. +func (s *ModifyEventSubscriptionInput) SetSourceIds(v []*string) *ModifyEventSubscriptionInput { + s.SourceIds = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *ModifyEventSubscriptionInput) SetSourceType(v string) *ModifyEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *ModifyEventSubscriptionInput) SetSubscriptionName(v string) *ModifyEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + type ModifyEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -10515,6 +12982,12 @@ func (s ModifyEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *ModifyEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *ModifyEventSubscriptionOutput { + s.EventSubscription = v + return s +} + type ModifySnapshotCopyRetentionPeriodInput struct { _ struct{} `type:"structure"` @@ -10567,6 +13040,18 @@ func (s *ModifySnapshotCopyRetentionPeriodInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *ModifySnapshotCopyRetentionPeriodInput) SetClusterIdentifier(v string) *ModifySnapshotCopyRetentionPeriodInput { + s.ClusterIdentifier = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *ModifySnapshotCopyRetentionPeriodInput) SetRetentionPeriod(v int64) *ModifySnapshotCopyRetentionPeriodInput { + s.RetentionPeriod = &v + return s +} + type ModifySnapshotCopyRetentionPeriodOutput struct { _ struct{} `type:"structure"` @@ -10584,6 +13069,12 @@ func (s ModifySnapshotCopyRetentionPeriodOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ModifySnapshotCopyRetentionPeriodOutput) SetCluster(v *Cluster) *ModifySnapshotCopyRetentionPeriodOutput { + s.Cluster = v + return s +} + // Describes an orderable cluster option. type OrderableClusterOption struct { _ struct{} `type:"structure"` @@ -10611,6 +13102,30 @@ func (s OrderableClusterOption) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *OrderableClusterOption) SetAvailabilityZones(v []*AvailabilityZone) *OrderableClusterOption { + s.AvailabilityZones = v + return s +} + +// SetClusterType sets the ClusterType field's value. +func (s *OrderableClusterOption) SetClusterType(v string) *OrderableClusterOption { + s.ClusterType = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *OrderableClusterOption) SetClusterVersion(v string) *OrderableClusterOption { + s.ClusterVersion = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *OrderableClusterOption) SetNodeType(v string) *OrderableClusterOption { + s.NodeType = &v + return s +} + // Describes a parameter in a cluster parameter group. type Parameter struct { _ struct{} `type:"structure"` @@ -10659,6 +13174,60 @@ func (s Parameter) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *Parameter) SetAllowedValues(v string) *Parameter { + s.AllowedValues = &v + return s +} + +// SetApplyType sets the ApplyType field's value. +func (s *Parameter) SetApplyType(v string) *Parameter { + s.ApplyType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *Parameter) SetDataType(v string) *Parameter { + s.DataType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Parameter) SetDescription(v string) *Parameter { + s.Description = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *Parameter) SetIsModifiable(v bool) *Parameter { + s.IsModifiable = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter { + s.MinimumEngineVersion = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *Parameter) SetParameterName(v string) *Parameter { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *Parameter) SetParameterValue(v string) *Parameter { + s.ParameterValue = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Parameter) SetSource(v string) *Parameter { + s.Source = &v + return s +} + // Describes cluster attributes that are in a pending state. A change to one // or more the attributes was requested and is in progress or will be applied. type PendingModifiedValues struct { @@ -10711,6 +13280,60 @@ func (s PendingModifiedValues) GoString() string { return s.String() } +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *PendingModifiedValues) SetAutomatedSnapshotRetentionPeriod(v int64) *PendingModifiedValues { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *PendingModifiedValues) SetClusterIdentifier(v string) *PendingModifiedValues { + s.ClusterIdentifier = &v + return s +} + +// SetClusterType sets the ClusterType field's value. +func (s *PendingModifiedValues) SetClusterType(v string) *PendingModifiedValues { + s.ClusterType = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *PendingModifiedValues) SetClusterVersion(v string) *PendingModifiedValues { + s.ClusterVersion = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *PendingModifiedValues) SetEnhancedVpcRouting(v bool) *PendingModifiedValues { + s.EnhancedVpcRouting = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *PendingModifiedValues) SetMasterUserPassword(v string) *PendingModifiedValues { + s.MasterUserPassword = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *PendingModifiedValues) SetNodeType(v string) *PendingModifiedValues { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *PendingModifiedValues) SetNumberOfNodes(v int64) *PendingModifiedValues { + s.NumberOfNodes = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *PendingModifiedValues) SetPubliclyAccessible(v bool) *PendingModifiedValues { + s.PubliclyAccessible = &v + return s +} + type PurchaseReservedNodeOfferingInput struct { _ struct{} `type:"structure"` @@ -10748,6 +13371,18 @@ func (s *PurchaseReservedNodeOfferingInput) Validate() error { return nil } +// SetNodeCount sets the NodeCount field's value. +func (s *PurchaseReservedNodeOfferingInput) SetNodeCount(v int64) *PurchaseReservedNodeOfferingInput { + s.NodeCount = &v + return s +} + +// SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value. +func (s *PurchaseReservedNodeOfferingInput) SetReservedNodeOfferingId(v string) *PurchaseReservedNodeOfferingInput { + s.ReservedNodeOfferingId = &v + return s +} + type PurchaseReservedNodeOfferingOutput struct { _ struct{} `type:"structure"` @@ -10766,6 +13401,12 @@ func (s PurchaseReservedNodeOfferingOutput) GoString() string { return s.String() } +// SetReservedNode sets the ReservedNode field's value. +func (s *PurchaseReservedNodeOfferingOutput) SetReservedNode(v *ReservedNode) *PurchaseReservedNodeOfferingOutput { + s.ReservedNode = v + return s +} + type RebootClusterInput struct { _ struct{} `type:"structure"` @@ -10798,6 +13439,12 @@ func (s *RebootClusterInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RebootClusterInput) SetClusterIdentifier(v string) *RebootClusterInput { + s.ClusterIdentifier = &v + return s +} + type RebootClusterOutput struct { _ struct{} `type:"structure"` @@ -10815,6 +13462,12 @@ func (s RebootClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *RebootClusterOutput) SetCluster(v *Cluster) *RebootClusterOutput { + s.Cluster = v + return s +} + // Describes a recurring charge. type RecurringCharge struct { _ struct{} `type:"structure"` @@ -10837,6 +13490,18 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetRecurringChargeAmount sets the RecurringChargeAmount field's value. +func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge { + s.RecurringChargeAmount = &v + return s +} + +// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. +func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { + s.RecurringChargeFrequency = &v + return s +} + // Describes a reserved node. You can call the DescribeReservedNodeOfferings // API to obtain the available reserved node offerings. type ReservedNode struct { @@ -10878,13 +13543,13 @@ type ReservedNode struct { // // Possible Values: // - // pending-payment-This reserved node has recently been purchased, and the - // sale has been approved, but payment has not yet been confirmed. + // * pending-payment-This reserved node has recently been purchased, and + // the sale has been approved, but payment has not yet been confirmed. // - // active-This reserved node is owned by the caller and is available for - // use. + // * active-This reserved node is owned by the caller and is available for + // use. // - // payment-failed-Payment failed for the purchase attempt. + // * payment-failed-Payment failed for the purchase attempt. State *string `type:"string"` // The hourly rate Amazon Redshift charges you for this reserved node. @@ -10901,6 +13566,78 @@ func (s ReservedNode) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedNode) SetCurrencyCode(v string) *ReservedNode { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedNode) SetDuration(v int64) *ReservedNode { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedNode) SetFixedPrice(v float64) *ReservedNode { + s.FixedPrice = &v + return s +} + +// SetNodeCount sets the NodeCount field's value. +func (s *ReservedNode) SetNodeCount(v int64) *ReservedNode { + s.NodeCount = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *ReservedNode) SetNodeType(v string) *ReservedNode { + s.NodeType = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedNode) SetOfferingType(v string) *ReservedNode { + s.OfferingType = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedNode) SetRecurringCharges(v []*RecurringCharge) *ReservedNode { + s.RecurringCharges = v + return s +} + +// SetReservedNodeId sets the ReservedNodeId field's value. +func (s *ReservedNode) SetReservedNodeId(v string) *ReservedNode { + s.ReservedNodeId = &v + return s +} + +// SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value. +func (s *ReservedNode) SetReservedNodeOfferingId(v string) *ReservedNode { + s.ReservedNodeOfferingId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReservedNode) SetStartTime(v time.Time) *ReservedNode { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedNode) SetState(v string) *ReservedNode { + s.State = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedNode) SetUsagePrice(v float64) *ReservedNode { + s.UsagePrice = &v + return s +} + // Describes a reserved node offering. type ReservedNodeOffering struct { _ struct{} `type:"structure"` @@ -10945,6 +13682,54 @@ func (s ReservedNodeOffering) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedNodeOffering) SetCurrencyCode(v string) *ReservedNodeOffering { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedNodeOffering) SetDuration(v int64) *ReservedNodeOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedNodeOffering) SetFixedPrice(v float64) *ReservedNodeOffering { + s.FixedPrice = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *ReservedNodeOffering) SetNodeType(v string) *ReservedNodeOffering { + s.NodeType = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedNodeOffering) SetOfferingType(v string) *ReservedNodeOffering { + s.OfferingType = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedNodeOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedNodeOffering { + s.RecurringCharges = v + return s +} + +// SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value. +func (s *ReservedNodeOffering) SetReservedNodeOfferingId(v string) *ReservedNodeOffering { + s.ReservedNodeOfferingId = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedNodeOffering) SetUsagePrice(v float64) *ReservedNodeOffering { + s.UsagePrice = &v + return s +} + type ResetClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -10989,6 +13774,24 @@ func (s *ResetClusterParameterGroupInput) Validate() error { return nil } +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ResetClusterParameterGroupInput) SetParameterGroupName(v string) *ResetClusterParameterGroupInput { + s.ParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ResetClusterParameterGroupInput) SetParameters(v []*Parameter) *ResetClusterParameterGroupInput { + s.Parameters = v + return s +} + +// SetResetAllParameters sets the ResetAllParameters field's value. +func (s *ResetClusterParameterGroupInput) SetResetAllParameters(v bool) *ResetClusterParameterGroupInput { + s.ResetAllParameters = &v + return s +} + type RestoreFromClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -11005,8 +13808,7 @@ type RestoreFromClusterSnapshotInput struct { // 0, automated snapshots are disabled. Even if automated snapshots are disabled, // you can still create manual snapshots when you want with CreateClusterSnapshot. // - // Default: The value selected for the cluster from which the snapshot was - // taken. + // Default: The value selected for the cluster from which the snapshot was taken. // // Constraints: Must be a value from 0 to 35. AutomatedSnapshotRetentionPeriod *int64 `type:"integer"` @@ -11022,15 +13824,15 @@ type RestoreFromClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // Alphabetic characters must be lowercase. + // * Alphabetic characters must be lowercase. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for all clusters within an AWS account. + // * Must be unique for all clusters within an AWS account. // // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` @@ -11043,11 +13845,11 @@ type RestoreFromClusterSnapshotInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens. + // * Must be 1 to 255 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. ClusterParameterGroupName *string `type:"string"` // A list of security groups to be associated with this cluster. @@ -11125,10 +13927,10 @@ type RestoreFromClusterSnapshotInput struct { // The weekly time range (in UTC) during which automated cluster maintenance // can occur. // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // - // Default: The value selected for the cluster from which the snapshot was - // taken. For more information about the time blocks for each region, see Maintenance + // Default: The value selected for the cluster from which the snapshot was taken. + // For more information about the time blocks for each region, see Maintenance // Windows (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-maintenance-windows) // in Amazon Redshift Cluster Management Guide. // @@ -11188,6 +13990,138 @@ func (s *RestoreFromClusterSnapshotInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *RestoreFromClusterSnapshotInput) SetAdditionalInfo(v string) *RestoreFromClusterSnapshotInput { + s.AdditionalInfo = &v + return s +} + +// SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value. +func (s *RestoreFromClusterSnapshotInput) SetAllowVersionUpgrade(v bool) *RestoreFromClusterSnapshotInput { + s.AllowVersionUpgrade = &v + return s +} + +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *RestoreFromClusterSnapshotInput) SetAutomatedSnapshotRetentionPeriod(v int64) *RestoreFromClusterSnapshotInput { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *RestoreFromClusterSnapshotInput) SetAvailabilityZone(v string) *RestoreFromClusterSnapshotInput { + s.AvailabilityZone = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetClusterIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.ClusterIdentifier = &v + return s +} + +// SetClusterParameterGroupName sets the ClusterParameterGroupName field's value. +func (s *RestoreFromClusterSnapshotInput) SetClusterParameterGroupName(v string) *RestoreFromClusterSnapshotInput { + s.ClusterParameterGroupName = &v + return s +} + +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *RestoreFromClusterSnapshotInput) SetClusterSecurityGroups(v []*string) *RestoreFromClusterSnapshotInput { + s.ClusterSecurityGroups = v + return s +} + +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *RestoreFromClusterSnapshotInput) SetClusterSubnetGroupName(v string) *RestoreFromClusterSnapshotInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetElasticIp sets the ElasticIp field's value. +func (s *RestoreFromClusterSnapshotInput) SetElasticIp(v string) *RestoreFromClusterSnapshotInput { + s.ElasticIp = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *RestoreFromClusterSnapshotInput) SetEnhancedVpcRouting(v bool) *RestoreFromClusterSnapshotInput { + s.EnhancedVpcRouting = &v + return s +} + +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetHsmClientCertificateIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetHsmConfigurationIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *RestoreFromClusterSnapshotInput) SetIamRoles(v []*string) *RestoreFromClusterSnapshotInput { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *RestoreFromClusterSnapshotInput) SetKmsKeyId(v string) *RestoreFromClusterSnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *RestoreFromClusterSnapshotInput) SetNodeType(v string) *RestoreFromClusterSnapshotInput { + s.NodeType = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *RestoreFromClusterSnapshotInput) SetOwnerAccount(v string) *RestoreFromClusterSnapshotInput { + s.OwnerAccount = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreFromClusterSnapshotInput) SetPort(v int64) *RestoreFromClusterSnapshotInput { + s.Port = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *RestoreFromClusterSnapshotInput) SetPreferredMaintenanceWindow(v string) *RestoreFromClusterSnapshotInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *RestoreFromClusterSnapshotInput) SetPubliclyAccessible(v bool) *RestoreFromClusterSnapshotInput { + s.PubliclyAccessible = &v + return s +} + +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetSnapshotClusterIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetSnapshotIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreFromClusterSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreFromClusterSnapshotInput { + s.VpcSecurityGroupIds = v + return s +} + type RestoreFromClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -11205,6 +14139,12 @@ func (s RestoreFromClusterSnapshotOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *RestoreFromClusterSnapshotOutput) SetCluster(v *Cluster) *RestoreFromClusterSnapshotOutput { + s.Cluster = v + return s +} + // Describes the status of a cluster restore action. Returns null if the cluster // was not created by restoring a snapshot. type RestoreStatus struct { @@ -11243,6 +14183,42 @@ func (s RestoreStatus) GoString() string { return s.String() } +// SetCurrentRestoreRateInMegaBytesPerSecond sets the CurrentRestoreRateInMegaBytesPerSecond field's value. +func (s *RestoreStatus) SetCurrentRestoreRateInMegaBytesPerSecond(v float64) *RestoreStatus { + s.CurrentRestoreRateInMegaBytesPerSecond = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *RestoreStatus) SetElapsedTimeInSeconds(v int64) *RestoreStatus { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value. +func (s *RestoreStatus) SetEstimatedTimeToCompletionInSeconds(v int64) *RestoreStatus { + s.EstimatedTimeToCompletionInSeconds = &v + return s +} + +// SetProgressInMegaBytes sets the ProgressInMegaBytes field's value. +func (s *RestoreStatus) SetProgressInMegaBytes(v int64) *RestoreStatus { + s.ProgressInMegaBytes = &v + return s +} + +// SetSnapshotSizeInMegaBytes sets the SnapshotSizeInMegaBytes field's value. +func (s *RestoreStatus) SetSnapshotSizeInMegaBytes(v int64) *RestoreStatus { + s.SnapshotSizeInMegaBytes = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RestoreStatus) SetStatus(v string) *RestoreStatus { + s.Status = &v + return s +} + type RestoreTableFromClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -11319,6 +14295,54 @@ func (s *RestoreTableFromClusterSnapshotInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetClusterIdentifier(v string) *RestoreTableFromClusterSnapshotInput { + s.ClusterIdentifier = &v + return s +} + +// SetNewTableName sets the NewTableName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetNewTableName(v string) *RestoreTableFromClusterSnapshotInput { + s.NewTableName = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetSnapshotIdentifier(v string) *RestoreTableFromClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// SetSourceDatabaseName sets the SourceDatabaseName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetSourceDatabaseName(v string) *RestoreTableFromClusterSnapshotInput { + s.SourceDatabaseName = &v + return s +} + +// SetSourceSchemaName sets the SourceSchemaName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetSourceSchemaName(v string) *RestoreTableFromClusterSnapshotInput { + s.SourceSchemaName = &v + return s +} + +// SetSourceTableName sets the SourceTableName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetSourceTableName(v string) *RestoreTableFromClusterSnapshotInput { + s.SourceTableName = &v + return s +} + +// SetTargetDatabaseName sets the TargetDatabaseName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetTargetDatabaseName(v string) *RestoreTableFromClusterSnapshotInput { + s.TargetDatabaseName = &v + return s +} + +// SetTargetSchemaName sets the TargetSchemaName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetTargetSchemaName(v string) *RestoreTableFromClusterSnapshotInput { + s.TargetSchemaName = &v + return s +} + type RestoreTableFromClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -11336,6 +14360,12 @@ func (s RestoreTableFromClusterSnapshotOutput) GoString() string { return s.String() } +// SetTableRestoreStatus sets the TableRestoreStatus field's value. +func (s *RestoreTableFromClusterSnapshotOutput) SetTableRestoreStatus(v *TableRestoreStatus) *RestoreTableFromClusterSnapshotOutput { + s.TableRestoreStatus = v + return s +} + type RevokeClusterSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -11386,6 +14416,30 @@ func (s *RevokeClusterSecurityGroupIngressInput) Validate() error { return nil } +// SetCIDRIP sets the CIDRIP field's value. +func (s *RevokeClusterSecurityGroupIngressInput) SetCIDRIP(v string) *RevokeClusterSecurityGroupIngressInput { + s.CIDRIP = &v + return s +} + +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *RevokeClusterSecurityGroupIngressInput) SetClusterSecurityGroupName(v string) *RevokeClusterSecurityGroupIngressInput { + s.ClusterSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *RevokeClusterSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *RevokeClusterSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *RevokeClusterSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *RevokeClusterSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + type RevokeClusterSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` @@ -11403,6 +14457,12 @@ func (s RevokeClusterSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetClusterSecurityGroup sets the ClusterSecurityGroup field's value. +func (s *RevokeClusterSecurityGroupIngressOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *RevokeClusterSecurityGroupIngressOutput { + s.ClusterSecurityGroup = v + return s +} + type RevokeSnapshotAccessInput struct { _ struct{} `type:"structure"` @@ -11449,6 +14509,24 @@ func (s *RevokeSnapshotAccessInput) Validate() error { return nil } +// SetAccountWithRestoreAccess sets the AccountWithRestoreAccess field's value. +func (s *RevokeSnapshotAccessInput) SetAccountWithRestoreAccess(v string) *RevokeSnapshotAccessInput { + s.AccountWithRestoreAccess = &v + return s +} + +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *RevokeSnapshotAccessInput) SetSnapshotClusterIdentifier(v string) *RevokeSnapshotAccessInput { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *RevokeSnapshotAccessInput) SetSnapshotIdentifier(v string) *RevokeSnapshotAccessInput { + s.SnapshotIdentifier = &v + return s +} + type RevokeSnapshotAccessOutput struct { _ struct{} `type:"structure"` @@ -11466,6 +14544,12 @@ func (s RevokeSnapshotAccessOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *RevokeSnapshotAccessOutput) SetSnapshot(v *Snapshot) *RevokeSnapshotAccessOutput { + s.Snapshot = v + return s +} + type RotateEncryptionKeyInput struct { _ struct{} `type:"structure"` @@ -11501,6 +14585,12 @@ func (s *RotateEncryptionKeyInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RotateEncryptionKeyInput) SetClusterIdentifier(v string) *RotateEncryptionKeyInput { + s.ClusterIdentifier = &v + return s +} + type RotateEncryptionKeyOutput struct { _ struct{} `type:"structure"` @@ -11518,6 +14608,12 @@ func (s RotateEncryptionKeyOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *RotateEncryptionKeyOutput) SetCluster(v *Cluster) *RotateEncryptionKeyOutput { + s.Cluster = v + return s +} + // Describes a snapshot. type Snapshot struct { _ struct{} `type:"structure"` @@ -11619,12 +14715,13 @@ type Snapshot struct { // The snapshot status. The value of the status depends on the API operation // used. // - // CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating". + // * CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating". // - // DescribeClusterSnapshots returns status as "creating", "available", "final - // snapshot", or "failed". // - // DeleteClusterSnapshot returns status as "deleted". + // * DescribeClusterSnapshots returns status as "creating", "available", + // "final snapshot", or "failed". + // + // * DeleteClusterSnapshot returns status as "deleted". Status *string `type:"string"` // The list of tags for the cluster snapshot. @@ -11649,12 +14746,186 @@ func (s Snapshot) GoString() string { return s.String() } +// SetAccountsWithRestoreAccess sets the AccountsWithRestoreAccess field's value. +func (s *Snapshot) SetAccountsWithRestoreAccess(v []*AccountWithRestoreAccess) *Snapshot { + s.AccountsWithRestoreAccess = v + return s +} + +// SetActualIncrementalBackupSizeInMegaBytes sets the ActualIncrementalBackupSizeInMegaBytes field's value. +func (s *Snapshot) SetActualIncrementalBackupSizeInMegaBytes(v float64) *Snapshot { + s.ActualIncrementalBackupSizeInMegaBytes = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Snapshot) SetAvailabilityZone(v string) *Snapshot { + s.AvailabilityZone = &v + return s +} + +// SetBackupProgressInMegaBytes sets the BackupProgressInMegaBytes field's value. +func (s *Snapshot) SetBackupProgressInMegaBytes(v float64) *Snapshot { + s.BackupProgressInMegaBytes = &v + return s +} + +// SetClusterCreateTime sets the ClusterCreateTime field's value. +func (s *Snapshot) SetClusterCreateTime(v time.Time) *Snapshot { + s.ClusterCreateTime = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *Snapshot) SetClusterIdentifier(v string) *Snapshot { + s.ClusterIdentifier = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *Snapshot) SetClusterVersion(v string) *Snapshot { + s.ClusterVersion = &v + return s +} + +// SetCurrentBackupRateInMegaBytesPerSecond sets the CurrentBackupRateInMegaBytesPerSecond field's value. +func (s *Snapshot) SetCurrentBackupRateInMegaBytesPerSecond(v float64) *Snapshot { + s.CurrentBackupRateInMegaBytesPerSecond = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *Snapshot) SetDBName(v string) *Snapshot { + s.DBName = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *Snapshot) SetElapsedTimeInSeconds(v int64) *Snapshot { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Snapshot) SetEncrypted(v bool) *Snapshot { + s.Encrypted = &v + return s +} + +// SetEncryptedWithHSM sets the EncryptedWithHSM field's value. +func (s *Snapshot) SetEncryptedWithHSM(v bool) *Snapshot { + s.EncryptedWithHSM = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *Snapshot) SetEnhancedVpcRouting(v bool) *Snapshot { + s.EnhancedVpcRouting = &v + return s +} + +// SetEstimatedSecondsToCompletion sets the EstimatedSecondsToCompletion field's value. +func (s *Snapshot) SetEstimatedSecondsToCompletion(v int64) *Snapshot { + s.EstimatedSecondsToCompletion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Snapshot) SetKmsKeyId(v string) *Snapshot { + s.KmsKeyId = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *Snapshot) SetMasterUsername(v string) *Snapshot { + s.MasterUsername = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *Snapshot) SetNodeType(v string) *Snapshot { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *Snapshot) SetNumberOfNodes(v int64) *Snapshot { + s.NumberOfNodes = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *Snapshot) SetOwnerAccount(v string) *Snapshot { + s.OwnerAccount = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Snapshot) SetPort(v int64) *Snapshot { + s.Port = &v + return s +} + +// SetRestorableNodeTypes sets the RestorableNodeTypes field's value. +func (s *Snapshot) SetRestorableNodeTypes(v []*string) *Snapshot { + s.RestorableNodeTypes = v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *Snapshot) SetSnapshotCreateTime(v time.Time) *Snapshot { + s.SnapshotCreateTime = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *Snapshot) SetSnapshotIdentifier(v string) *Snapshot { + s.SnapshotIdentifier = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *Snapshot) SetSnapshotType(v string) *Snapshot { + s.SnapshotType = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *Snapshot) SetSourceRegion(v string) *Snapshot { + s.SourceRegion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Snapshot) SetStatus(v string) *Snapshot { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Snapshot) SetTags(v []*Tag) *Snapshot { + s.Tags = v + return s +} + +// SetTotalBackupSizeInMegaBytes sets the TotalBackupSizeInMegaBytes field's value. +func (s *Snapshot) SetTotalBackupSizeInMegaBytes(v float64) *Snapshot { + s.TotalBackupSizeInMegaBytes = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Snapshot) SetVpcId(v string) *Snapshot { + s.VpcId = &v + return s +} + // The snapshot copy grant that grants Amazon Redshift permission to encrypt // copied snapshots with the specified customer master key (CMK) from AWS KMS // in the destination region. // -// For more information about managing snapshot copy grants, go to Amazon -// Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) +// For more information about managing snapshot copy grants, go to Amazon Redshift +// Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. type SnapshotCopyGrant struct { _ struct{} `type:"structure"` @@ -11680,6 +14951,24 @@ func (s SnapshotCopyGrant) GoString() string { return s.String() } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *SnapshotCopyGrant) SetKmsKeyId(v string) *SnapshotCopyGrant { + s.KmsKeyId = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *SnapshotCopyGrant) SetSnapshotCopyGrantName(v string) *SnapshotCopyGrant { + s.SnapshotCopyGrantName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SnapshotCopyGrant) SetTags(v []*Tag) *SnapshotCopyGrant { + s.Tags = v + return s +} + // Describes a subnet. type Subnet struct { _ struct{} `type:"structure"` @@ -11704,6 +14993,24 @@ func (s Subnet) GoString() string { return s.String() } +// SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value. +func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet { + s.SubnetAvailabilityZone = v + return s +} + +// SetSubnetIdentifier sets the SubnetIdentifier field's value. +func (s *Subnet) SetSubnetIdentifier(v string) *Subnet { + s.SubnetIdentifier = &v + return s +} + +// SetSubnetStatus sets the SubnetStatus field's value. +func (s *Subnet) SetSubnetStatus(v string) *Subnet { + s.SubnetStatus = &v + return s +} + // Describes the status of a RestoreTableFromClusterSnapshot operation. type TableRestoreStatus struct { _ struct{} `type:"structure"` @@ -11766,6 +15073,90 @@ func (s TableRestoreStatus) GoString() string { return s.String() } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *TableRestoreStatus) SetClusterIdentifier(v string) *TableRestoreStatus { + s.ClusterIdentifier = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *TableRestoreStatus) SetMessage(v string) *TableRestoreStatus { + s.Message = &v + return s +} + +// SetNewTableName sets the NewTableName field's value. +func (s *TableRestoreStatus) SetNewTableName(v string) *TableRestoreStatus { + s.NewTableName = &v + return s +} + +// SetProgressInMegaBytes sets the ProgressInMegaBytes field's value. +func (s *TableRestoreStatus) SetProgressInMegaBytes(v int64) *TableRestoreStatus { + s.ProgressInMegaBytes = &v + return s +} + +// SetRequestTime sets the RequestTime field's value. +func (s *TableRestoreStatus) SetRequestTime(v time.Time) *TableRestoreStatus { + s.RequestTime = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *TableRestoreStatus) SetSnapshotIdentifier(v string) *TableRestoreStatus { + s.SnapshotIdentifier = &v + return s +} + +// SetSourceDatabaseName sets the SourceDatabaseName field's value. +func (s *TableRestoreStatus) SetSourceDatabaseName(v string) *TableRestoreStatus { + s.SourceDatabaseName = &v + return s +} + +// SetSourceSchemaName sets the SourceSchemaName field's value. +func (s *TableRestoreStatus) SetSourceSchemaName(v string) *TableRestoreStatus { + s.SourceSchemaName = &v + return s +} + +// SetSourceTableName sets the SourceTableName field's value. +func (s *TableRestoreStatus) SetSourceTableName(v string) *TableRestoreStatus { + s.SourceTableName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TableRestoreStatus) SetStatus(v string) *TableRestoreStatus { + s.Status = &v + return s +} + +// SetTableRestoreRequestId sets the TableRestoreRequestId field's value. +func (s *TableRestoreStatus) SetTableRestoreRequestId(v string) *TableRestoreStatus { + s.TableRestoreRequestId = &v + return s +} + +// SetTargetDatabaseName sets the TargetDatabaseName field's value. +func (s *TableRestoreStatus) SetTargetDatabaseName(v string) *TableRestoreStatus { + s.TargetDatabaseName = &v + return s +} + +// SetTargetSchemaName sets the TargetSchemaName field's value. +func (s *TableRestoreStatus) SetTargetSchemaName(v string) *TableRestoreStatus { + s.TargetSchemaName = &v + return s +} + +// SetTotalDataInMegaBytes sets the TotalDataInMegaBytes field's value. +func (s *TableRestoreStatus) SetTotalDataInMegaBytes(v int64) *TableRestoreStatus { + s.TotalDataInMegaBytes = &v + return s +} + // A tag consisting of a name/value pair for a resource. type Tag struct { _ struct{} `type:"structure"` @@ -11787,6 +15178,18 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // A tag and its associated resource. type TaggedResource struct { _ struct{} `type:"structure"` @@ -11798,25 +15201,25 @@ type TaggedResource struct { // The type of resource with which the tag is associated. Valid resource types // are: // - // Cluster + // * Cluster // - // CIDR/IP + // * CIDR/IP // - // EC2 security group + // * EC2 security group // - // Snapshot + // * Snapshot // - // Cluster security group + // * Cluster security group // - // Subnet group + // * Subnet group // - // HSM connection + // * HSM connection // - // HSM certificate + // * HSM certificate // - // Parameter group + // * Parameter group // - // For more information about Amazon Redshift resource types and constructing + // For more information about Amazon Redshift resource types and constructing // ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) (http://docs.aws.amazon.com/redshift/latest/mgmt/constructing-redshift-arn.html) // in the Amazon Redshift Cluster Management Guide. ResourceType *string `type:"string"` @@ -11835,6 +15238,24 @@ func (s TaggedResource) GoString() string { return s.String() } +// SetResourceName sets the ResourceName field's value. +func (s *TaggedResource) SetResourceName(v string) *TaggedResource { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaggedResource) SetResourceType(v string) *TaggedResource { + s.ResourceType = &v + return s +} + +// SetTag sets the Tag field's value. +func (s *TaggedResource) SetTag(v *Tag) *TaggedResource { + s.Tag = v + return s +} + // Describes the members of a VPC security group. type VpcSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -11856,6 +15277,18 @@ func (s VpcSecurityGroupMembership) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership { + s.Status = &v + return s +} + +// SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value. +func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership { + s.VpcSecurityGroupId = &v + return s +} + const ( // ParameterApplyTypeStatic is a ParameterApplyType enum value ParameterApplyTypeStatic = "static" diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go index 71f914d26..d43b91259 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go @@ -31,10 +31,10 @@ import ( // If you are a first-time user of Amazon Redshift, we recommend that you begin // by reading the Amazon Redshift Getting Started Guide (http://docs.aws.amazon.com/redshift/latest/gsg/getting-started.html). // -// If you are a database developer, the Amazon Redshift Database Developer -// Guide (http://docs.aws.amazon.com/redshift/latest/dg/welcome.html) explains -// how to design, build, query, and maintain the databases that make up your -// data warehouse. +// If you are a database developer, the Amazon Redshift Database Developer Guide +// (http://docs.aws.amazon.com/redshift/latest/dg/welcome.html) explains how +// to design, build, query, and maintain the databases that make up your data +// warehouse. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type Redshift struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go index 5e836a278..f52b93c4e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go @@ -58,21 +58,19 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste // // Associates an Amazon VPC with a private hosted zone. // -// The VPC and the hosted zone must already exist, and you must have created -// a private hosted zone. You cannot convert a public hosted zone into a private -// hosted zone. +// To perform the association, the VPC and the private hosted zone must already +// exist. You can't convert a public hosted zone into a private hosted zone. // -// Send a POST request to the /Amazon Route 53 API version/hostedzone/hosted -// zone ID/associatevpc resource. The request body must include an XML document -// with a AssociateVPCWithHostedZoneRequest element. The response returns the -// AssociateVPCWithHostedZoneResponse element. +// Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/associatevpc +// resource. The request body must include a document with an AssociateVPCWithHostedZoneRequest +// element. The response contains a ChangeInfo data type that you can use to +// track the progress of the request. // -// If you used different accounts to create the hosted zone and to create -// the Amazon VPCs that you want to associate with the hosted zone, we need -// to update account permissions for you. For more information, see Associating -// Amazon VPCs and Private Hosted Zones That You Create with Different AWS Accounts -// (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zone-private-associate-vpcs-different-accounts.html) -// in the Amazon Route 53 Developer Guide. +// If you want to associate a VPC that was created by using one AWS account +// with a private hosted zone that was created by using a different account, +// the AWS account that created the private hosted zone must first submit a +// CreateVPCAssociationAuthorization request. Then the account that created +// the VPC must submit an AssociateVPCWithHostedZone request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -85,6 +83,10 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste // * NoSuchHostedZone // No hosted zone exists with the ID that you specified. // +// * NotAuthorizedException +// Associating the specified VPC with the specified hosted zone has not been +// authorized. +// // * InvalidVPCId // The hosted zone you are trying to create for your VPC_ID does not belong // to you. Amazon Route 53 returns this error when the VPC specified by VPCId @@ -94,10 +96,15 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste // The input is not valid. // // * PublicZoneVPCAssociation -// The hosted zone specified in HostedZoneId is a public hosted zone. +// You're trying to associate a VPC with a public hosted zone. Amazon Route +// 53 doesn't support associating a VPC with a public hosted zone. // // * ConflictingDomainExists - +// You specified an Amazon VPC that you're already using for another hosted +// zone, and the domain that you specified for one of the hosted zones is a +// subdomain of the domain that you specified for the other hosted zone. For +// example, you can't use the same Amazon VPC for the hosted zones for example.com +// and test.example.com. // // * LimitsExceeded // The limits specified for a resource have been exceeded. @@ -156,7 +163,7 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // Create, change, update, or delete authoritative DNS information on all Amazon // Route 53 servers. Send a POST request to: // -// /2013-04-01/hostedzone/Amazon Route 53 hosted Zone ID/rrset resource. +// /2013-04-01/hostedzone/Amazon Route 53 hosted Zone ID/rrset resource. // // The request body must include a document with a ChangeResourceRecordSetsRequest // element. The request body contains a list of change items, known as a change @@ -166,47 +173,57 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // that Amazon Route 53 never partially implements the intended changes to the // resource record sets in a hosted zone. // -// For example, a change batch request that deletes the CNAMErecord for www.example.com +// For example, a change batch request that deletes the CNAME record for www.example.com // and creates an alias resource record set for www.example.com. Amazon Route // 53 deletes the first resource record set and creates the second resource // record set in a single operation. If either the DELETE or the CREATE action // fails, then both changes (plus any other changes in the batch) fail, and // the original CNAME record continues to exist. // -// Due to the nature of transactional changes, you cannot delete the same -// resource record set more than once in a single change batch. If you attempt -// to delete the same change batch more than once, Amazon Route 53 returns an -// InvalidChangeBatch error. +// Due to the nature of transactional changes, you can't delete the same resource +// record set more than once in a single change batch. If you attempt to delete +// the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch +// error. // -// To create resource record sets for complex routing configurations, use -// either the traffic flow visual editor in the Amazon Route 53 console or the -// API actions for traffic policies and traffic policy instances. Save the configuration +// To create resource record sets for complex routing configurations, use either +// the traffic flow visual editor in the Amazon Route 53 console or the API +// actions for traffic policies and traffic policy instances. Save the configuration // as a traffic policy, then associate the traffic policy with one or more domain // names (such as example.com) or subdomain names (such as www.example.com), // in the same hosted zone or in multiple hosted zones. You can roll back the // updates if the new configuration isn't performing as expected. For more information, // see Using Traffic Flow to Route DNS Traffic (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/traffic-flow.html) -// in the Amazon Route 53 API Reference or Actions on Traffic Policies and Traffic -// Policy Instances (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/actions-on-polices) -// in this guide. +// in the Amazon Route 53 Developer Guide. // -// Use ChangeResourceRecordsSetsRequest to perform the following actions: +// Use ChangeResourceRecordsSetsRequest to perform the following actions: // -// CREATE:Creates a resource record set that has the specified values. +// * CREATE: Creates a resource record set that has the specified values. // -// DELETE: Deletes an existing resource record set that has the specified -// values for Name, Type, Set Identifier (for code latency, weighted, geolocation, -// and failover resource record sets), and TTL (except alias resource record -// sets, for which the TTL is determined by the AWS resource you're routing -// queries to). +// * DELETE: Deletes an existing resource record set that has the applicable +// values for the following elements: // -// UPSERT: If a resource record set does not already exist, AWS creates -// it. If a resource set does exist, Amazon Route 53 updates it with the values -// in the request. Amazon Route 53 can update an existing resource record set -// only when all of the following values match: Name, Type, and Set Identifier -// (for weighted, latency, geolocation, and failover resource record sets). +// Name: required to delete any resource record set // -// In response to a ChangeResourceRecordSets request, the DNS data is changed +// Type: required to delete any resource record set +// +// AliasTarget, DNSName, EvaluateTargetHealth, and HostedZoneId: required to +// delete an alias resource record set +// +// SetIdentifier: required to delete a failover, geolocation, latency, or weighted +// resource record set +// +// TTL: required to delete any resource record set except an alias resource +// record set (For alias resource record sets, the TTL is determined by the +// AWS resource tat you're routing traffic to.) +// +// * UPSERT: If a resource record set does not already exist, AWS creates +// it. If a resource set does exist, Amazon Route 53 updates it with the +// values in the request. Amazon Route 53 can update an existing resource +// record set only when all of the following values match: Name, Type, and +// Set Identifier (for weighted, latency, geolocation, and failover resource +// record sets). +// +// In response to a ChangeResourceRecordSets request, the DNS data is changed // on all Amazon Route 53 DNS servers. Initially, the status of a change is // PENDING, meaning the change has not yet propagated to all the authoritative // Amazon Route 53 DNS servers. When the change is propagated to all hosts, @@ -217,34 +234,9 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // 53 name servers in a few minutes. In rare circumstances, propagation can // take up to 30 minutes. For more information, see GetChange. // -// Note the following limitations on a ChangeResourceRecordSets request: -// -// A request cannot contain more than 100 Change elements. -// -// A request cannot contain more than 1000 ResourceRecord elements. -// -// The sum of the number of characters (including spaces) in all Value elements -// in a request cannot exceed 32,000 characters. -// -// If the value of the Action element in a ChangeResourceRecordSets request -// is UPSERT and the resource record set already exists, Amazon Route 53 automatically -// performs a DELETE request and a CREATE request. When Amazon Route 53 calculates -// the number of characters in the Value elements of a change batch request, -// it adds the number of characters in the Value element of the resource record -// set being deleted and the number of characters in the Value element of the -// resource record set being created. -// -// The same resource cannot be deleted more than once in a single batch. -// -// If the value of the Action element in a ChangeResourceRecordSets request -// is UPSERT and the resource record set already exists, Amazon Route 53 automatically -// performs a DELETE request and a CREATE request. When Amazon Route 53 calculates -// the number of characters in the Value elements of a change batch request, -// it adds the number of characters in the Value element of the resource record -// set being deleted and the number of characters in the Value element of the -// resource record set being created. -// -// For more information on transactional changes, see ChangeResourceRecordSets. +// For information about the limits on a ChangeResourceRecordSets request, see +// Limits (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) +// in the Amazon Route 53 Developer 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 @@ -326,6 +318,12 @@ func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput // ChangeTagsForResource API operation for Amazon Route 53. // +// Adds, edits, or deletes tags for a health check or a hosted zone. +// +// For information about using tags for cost allocation, see Using Cost Allocation +// Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) +// in the AWS Billing and Cost Management 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. @@ -408,35 +406,35 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // Creates a new health check. // // To create a new health check, send a POST request to the /2013-04-01/healthcheck -// resource. The request body must include an XML document with a CreateHealthCheckRequest +// resource. The request body must include a document with a CreateHealthCheckRequest // element. The response returns the CreateHealthCheckResponse element, containing // the health check ID specified when adding health check to a resource record // set. For information about adding health checks to resource record sets, // see ResourceRecordSet$HealthCheckId in ChangeResourceRecordSets. // -// If you are registering Amazon EC2 instances with an Elastic Load Balancing -// (ELB) load balancer, do not create Amazon Route 53 health checks for the -// Amazon EC2 instances. When you register an Amazon EC2 instance with a load -// balancer, you configure settings for an ELB health check, which performs -// a similar function to an Amazon Route 53 health check. +// If you are registering EC2 instances with an Elastic Load Balancing (ELB) +// load balancer, do not create Amazon Route 53 health checks for the EC2 instances. +// When you register an EC2 instance with a load balancer, you configure settings +// for an ELB health check, which performs a similar function to an Amazon Route +// 53 health check. // -// You can associate health checks with failover resource record sets in a -// private hosted zone. Note the following: +// You can associate health checks with failover resource record sets in a private +// hosted zone. Note the following: // -// Amazon Route 53 health checkers are outside the VPC. To check the health -// of an endpoint within a VPC by IP address, you must assign a public IP address -// to the instance in the VPC. +// * Amazon Route 53 health checkers are outside the VPC. To check the health +// of an endpoint within a VPC by IP address, you must assign a public IP +// address to the instance in the VPC. // -// You can configure a health checker to check the health of an external -// resource that the instance relies on, such as a database server. +// * You can configure a health checker to check the health of an external +// resource that the instance relies on, such as a database server. // -// You can create a CloudWatch metric, associate an alarm with the metric, -// and then create a health check that is based on the state of the alarm. For -// example, you might create a CloudWatch metric that checks the status of the -// Amazon EC2 StatusCheckFailed metric, add an alarm to the metric, and then -// create a health check that is based on the state of the alarm. For information -// about creating CloudWatch metrics and alarms by using the CloudWatch console, -// see the Amazon CloudWatch Developer Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html). +// * You can create a CloudWatch metric, associate an alarm with the metric, +// and then create a health check that is based on the state of the alarm. +// For example, you might create a CloudWatch metric that checks the status +// of the Amazon EC2 StatusCheckFailed metric, add an alarm to the metric, +// and then create a health check that is based on the state of the alarm. +// For information about creating CloudWatch metrics and alarms by using +// the CloudWatch console, see the Amazon CloudWatch User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -447,13 +445,15 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // // Returned Error Codes: // * TooManyHealthChecks - +// You have reached the maximum number of active health checks for an AWS account. +// The default limit is 100. To request a higher limit, create a case (http://aws.amazon.com/route53-request) +// with the AWS Support Center. // // * HealthCheckAlreadyExists // The health check you're attempting to create already exists. // -// Amazon Route 53 returns this error when a health check has already been -// created with the specified value for CallerReference. +// Amazon Route 53 returns this error when a health check has already been created +// with the specified value for CallerReference. // // * InvalidInput // The input is not valid. @@ -513,41 +513,42 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // (DNS) routes traffic on the Internet for a domain, such as example.com, and // its subdomains. // -// Public hosted zones cannot be converted to a private hosted zone or vice -// versa. Instead, create a new hosted zone with the same name and create new -// resource record sets. +// Public hosted zones can't be converted to a private hosted zone or vice versa. +// Instead, create a new hosted zone with the same name and create new resource +// record sets. // -// Send a POST request to the /Amazon Route 53 API version/hostedzone resource. -// The request body must include an XML document with a CreateHostedZoneRequest -// element. The response returns the CreateHostedZoneResponse element containing -// metadata about the hosted zone. +// Send a POST request to the /2013-04-01/hostedzone resource. The request body +// must include a document with a CreateHostedZoneRequest element. The response +// returns the CreateHostedZoneResponse element containing metadata about the +// hosted zone. // -// Fore more information about charges for hosted zones, see AmazonAmazon Route -// 53 Pricing (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/pricing/). +// Fore more information about charges for hosted zones, see Amazon Route 53 +// Pricing (http://aws.amazon.com/route53/pricing/). // // Note the following: // -// You cannot create a hosted zone for a top-level domain (TLD). +// * You can't create a hosted zone for a top-level domain (TLD). // -// Amazon Route 53 automatically creates a default SOA record and four NS -// records for the zone. For more information about SOA and NS records, see -// NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html) -// in the Amazon Route 53 Developer Guide. +// * Amazon Route 53 automatically creates a default SOA record and four +// NS records for the zone. For more information about SOA and NS records, +// see NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone +// (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html) +// in the Amazon Route 53 Developer Guide. // -// If your domain is registered with a registrar other than Amazon Route -// 53, you must update the name servers with your registrar to make Amazon Route -// 53 your DNS service. For more information, see Configuring Amazon Route 53 -// as your DNS Service (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/creating-migrating.html) -// in the Amazon Route 53 Developer's Guide. +// * If your domain is registered with a registrar other than Amazon Route +// 53, you must update the name servers with your registrar to make Amazon +// Route 53 your DNS service. For more information, see Configuring Amazon +// Route 53 as your DNS Service (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/creating-migrating.html) +// in the Amazon Route 53 Developer's Guide. // -// After creating a zone, its initial status is PENDING. This means that -// it is not yet available on all DNS servers. The status of the zone changes -// to INSYNC when the NS and SOA records are available on all Amazon Route 53 -// DNS servers. +// After creating a zone, its initial status is PENDING. This means that it +// is not yet available on all DNS servers. The status of the zone changes to +// INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS +// servers. // // When trying to create a hosted zone using a reusable delegation set, specify // an optional DelegationSetId, and Amazon Route 53 would assign those 4 NS -// records for the zone, instead of alloting a new one. +// records for the zone, instead of allotting a new one. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -566,7 +567,7 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // CallerReference. // // * TooManyHostedZones -// This hosted zone cannot be created because the hosted zone limit is exceeded. +// This hosted zone can't be created because the hosted zone limit is exceeded. // To request a limit increase, go to the Amazon Route 53 Contact Us (http://aws.amazon.com/route53-request/) // page. // @@ -586,7 +587,11 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // this error, contact Customer Support. // // * ConflictingDomainExists - +// You specified an Amazon VPC that you're already using for another hosted +// zone, and the domain that you specified for one of the hosted zones is a +// subdomain of the domain that you specified for the other hosted zone. For +// example, you can't use the same Amazon VPC for the hosted zones for example.com +// and test.example.com. // // * NoSuchDelegationSet // A reusable delegation set with the specified ID does not exist. @@ -645,17 +650,16 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // CreateReusableDelegationSet API operation for Amazon Route 53. // -// Creates a delegation set (a group of four anem servers) that can be reused +// Creates a delegation set (a group of four name servers) that can be reused // by multiple hosted zones. If a hosted zoned ID is specified, CreateReusableDelegationSet // marks the delegation set associated with that zone as reusable // -// Send a POST request to the /Amazon Route 53 API version/delegationset resource. -// The request body must include an XML document with a CreateReusableDelegationSetRequest -// element. +// Send a POST request to the /2013-04-01/delegationset resource. The request +// body must include a document with a CreateReusableDelegationSetRequest element. // -// A reusable delegation set cannot be associated with a private hosted zone/ +// A reusable delegation set can't be associated with a private hosted zone/ // -// For more information, including a procedure on how to create and configure +// For more information, including a procedure on how to create and configure // a reusable delegation set (also known as white label name servers), see Configuring // White Label Name Servers (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html). // @@ -675,7 +679,7 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // The limits specified for a resource have been exceeded. // // * HostedZoneNotFound -// The specified HostedZone cannot be found. +// The specified HostedZone can't be found. // // * InvalidArgument // Parameter name and problem. @@ -748,10 +752,10 @@ func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (r // sets for one domain name (such as example.com) or one subdomain name (such // as www.example.com). // -// Send a POST request to the /Amazon Route 53 API version/trafficpolicy resource. -// The request body must include a document with a CreateTrafficPolicyRequest -// element. The response includes the CreateTrafficPolicyResponse element, which -// contains information about the new traffic policy. +// Send a POST request to the /2013-04-01/trafficpolicy resource. The request +// body must include a document with a CreateTrafficPolicyRequest element. The +// response includes the CreateTrafficPolicyResponse element, which contains +// information about the new traffic policy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -834,10 +838,10 @@ func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyI // responds to DNS queries for the domain or subdomain name by using the resource // record sets that CreateTrafficPolicyInstance created. // -// Send a POST request to the /Amazon Route 53 API version/trafficpolicyinstance -// resource. The request body must include a document with a CreateTrafficPolicyRequest -// element. The response returns the CreateTrafficPolicyInstanceResponse element, -// which contains information about the traffic policy instance. +// Send a POST request to the /2013-04-01/trafficpolicyinstance resource. The +// request body must include a document with a CreateTrafficPolicyRequest element. +// The response returns the CreateTrafficPolicyInstanceResponse element, which +// contains information about the traffic policy instance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -924,10 +928,10 @@ func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVe // the limit and need to create another version, you'll need to start a new // traffic policy. // -// Send a POST request to the /Amazon Route 53 version/trafficpolicy/ resource. -// The request body includes a document with a CreateTrafficPolicyVersionRequest -// element. The response returns the CreateTrafficPolicyVersionResponse element, -// which contains information about the new version of the traffic policy. +// Send a POST request to the /2013-04-01/trafficpolicy/ resource. The request +// body includes a document with a CreateTrafficPolicyVersionRequest element. +// The response returns the CreateTrafficPolicyVersionResponse element, which +// contains information about the new version of the traffic policy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -957,6 +961,98 @@ func (c *Route53) CreateTrafficPolicyVersion(input *CreateTrafficPolicyVersionIn return out, err } +const opCreateVPCAssociationAuthorization = "CreateVPCAssociationAuthorization" + +// CreateVPCAssociationAuthorizationRequest generates a "aws/request.Request" representing the +// client's request for the CreateVPCAssociationAuthorization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateVPCAssociationAuthorization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateVPCAssociationAuthorization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateVPCAssociationAuthorizationRequest method. +// req, resp := client.CreateVPCAssociationAuthorizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *Route53) CreateVPCAssociationAuthorizationRequest(input *CreateVPCAssociationAuthorizationInput) (req *request.Request, output *CreateVPCAssociationAuthorizationOutput) { + op := &request.Operation{ + Name: opCreateVPCAssociationAuthorization, + HTTPMethod: "POST", + HTTPPath: "/2013-04-01/hostedzone/{Id}/authorizevpcassociation", + } + + if input == nil { + input = &CreateVPCAssociationAuthorizationInput{} + } + + req = c.newRequest(op, input, output) + output = &CreateVPCAssociationAuthorizationOutput{} + req.Data = output + return +} + +// CreateVPCAssociationAuthorization API operation for Amazon Route 53. +// +// Authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone +// request to associate the VPC with a specified hosted zone that was created +// by a different account. To submit a CreateVPCAssociationAuthorization request, +// you must use the account that created the hosted zone. After you authorize +// the association, use the account that created the VPC to submit an AssociateVPCWithHostedZone +// request. +// +// If you want to associate multiple VPCs that you created by using one account +// with a hosted zone that you created by using a different account, you must +// submit one authorization request for each VPC. +// +// Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation +// resource. The request body must include a document with a CreateVPCAssociationAuthorizationRequest +// element. The response contains information about the authorization. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateVPCAssociationAuthorization for usage and error information. +// +// Returned Error Codes: +// * TooManyVPCAssociationAuthorizations +// You've created the maximum number of authorizations that can be created for +// the specified hosted zone. To authorize another VPC to be associated with +// the hosted zone, submit a DeleteVPCAssociationAuthorization request to remove +// an existing authorization. To get a list of existing authorizations, submit +// a ListVPCAssociationAuthorizations request. +// +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidVPCId +// The hosted zone you are trying to create for your VPC_ID does not belong +// to you. Amazon Route 53 returns this error when the VPC specified by VPCId +// does not belong to you. +// +// * InvalidInput +// The input is not valid. +// +func (c *Route53) CreateVPCAssociationAuthorization(input *CreateVPCAssociationAuthorizationInput) (*CreateVPCAssociationAuthorizationOutput, error) { + req, out := c.CreateVPCAssociationAuthorizationRequest(input) + err := req.Send() + return out, err +} + const opDeleteHealthCheck = "DeleteHealthCheck" // DeleteHealthCheckRequest generates a "aws/request.Request" representing the @@ -1003,15 +1099,14 @@ func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req * // DeleteHealthCheck API operation for Amazon Route 53. // // Deletes a health check. Send a DELETE request to the /2013-04-01/healthcheck/health -// check ID resource. +// check ID resource. // -// Amazon Route 53 does not prevent you from deleting a health check even -// if the health check is associated with one or more resource record sets. -// If you delete a health check and you don't update the associated resource -// record sets, the future status of the health check cannot be predicted and -// may change. This will affect the routing of DNS queries for your DNS failover -// configuration. For more information, see Replacing and Deleting Health Checks -// (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html) +// Amazon Route 53 does not prevent you from deleting a health check even if +// the health check is associated with one or more resource record sets. If +// you delete a health check and you don't update the associated resource record +// sets, the future status of the health check can't be predicted and may change. +// This will affect the routing of DNS queries for your DNS failover configuration. +// For more information, see Replacing and Deleting Health Checks (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html) // in the Amazon Route 53 Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1086,9 +1181,9 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re // DeleteHostedZone API operation for Amazon Route 53. // // Deletes a hosted zone. Send a DELETE request to the /Amazon Route 53 API -// version/hostedzone/hosted zone ID resource. +// version/hostedzone/hosted zone ID resource. // -// Delete a hosted zone only if there are no resource record sets other than +// Delete a hosted zone only if there are no resource record sets other than // the default SOA record and NS resource record sets. If the hosted zone contains // other resource record sets, delete them before deleting the hosted zone. // If you try to delete a hosted zone that contains other resource record sets, @@ -1174,12 +1269,12 @@ func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelega // DeleteReusableDelegationSet API operation for Amazon Route 53. // // Deletes a reusable delegation set. Send a DELETE request to the /2013-04-01/delegationset/delegation -// set ID resource. +// set ID resource. // -// You can delete a reusable delegation set only if there are no associated +// You can delete a reusable delegation set only if there are no associated // hosted zones. // -// To verify that the reusable delegation set is not associated with any hosted +// To verify that the reusable delegation set is not associated with any hosted // zones, run the GetReusableDelegationSet action and specify the ID of the // reusable delegation set that you want to delete. // @@ -1257,8 +1352,7 @@ func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (r // // Deletes a traffic policy. // -// Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy -// resource. +// Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1337,9 +1431,9 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI // Amazon Route 53 created when you created the instance. // // Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy/traffic -// policy instance ID resource. +// policy instance ID resource. // -// In the Amazon Route 53 console, traffic policy instances are known as policy +// In the Amazon Route 53 console, traffic policy instances are known as policy // records. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1369,6 +1463,95 @@ func (c *Route53) DeleteTrafficPolicyInstance(input *DeleteTrafficPolicyInstance return out, err } +const opDeleteVPCAssociationAuthorization = "DeleteVPCAssociationAuthorization" + +// DeleteVPCAssociationAuthorizationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVPCAssociationAuthorization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteVPCAssociationAuthorization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteVPCAssociationAuthorization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteVPCAssociationAuthorizationRequest method. +// req, resp := client.DeleteVPCAssociationAuthorizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *Route53) DeleteVPCAssociationAuthorizationRequest(input *DeleteVPCAssociationAuthorizationInput) (req *request.Request, output *DeleteVPCAssociationAuthorizationOutput) { + op := &request.Operation{ + Name: opDeleteVPCAssociationAuthorization, + HTTPMethod: "POST", + HTTPPath: "/2013-04-01/hostedzone/{Id}/deauthorizevpcassociation", + } + + if input == nil { + input = &DeleteVPCAssociationAuthorizationInput{} + } + + req = c.newRequest(op, input, output) + output = &DeleteVPCAssociationAuthorizationOutput{} + req.Data = output + return +} + +// DeleteVPCAssociationAuthorization API operation for Amazon Route 53. +// +// Removes authorization to submit an AssociateVPCWithHostedZone request to +// associate a specified VPC with a hosted zone that was created by a different +// account. You must use the account that created the hosted zone to submit +// a DeleteVPCAssociationAuthorization request. +// +// Sending this request only prevents the AWS account that created the VPC from +// associating the VPC with the Amazon Route 53 hosted zone in the future. If +// the VPC is already associated with the hosted zone, DeleteVPCAssociationAuthorization +// won't disassociate the VPC from the hosted zone. If you want to delete an +// existing association, use DisassociateVPCFromHostedZone. +// +// Send a DELETE request to the /2013-04-01/hostedzone/hosted zone ID/deauthorizevpcassociation +// resource. The request body must include a document with a DeleteVPCAssociationAuthorizationRequest +// element. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation DeleteVPCAssociationAuthorization for usage and error information. +// +// Returned Error Codes: +// * VPCAssociationAuthorizationNotFound +// The VPC that you specified is not authorized to be associated with the hosted +// zone. +// +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidVPCId +// The hosted zone you are trying to create for your VPC_ID does not belong +// to you. Amazon Route 53 returns this error when the VPC specified by VPCId +// does not belong to you. +// +// * InvalidInput +// The input is not valid. +// +func (c *Route53) DeleteVPCAssociationAuthorization(input *DeleteVPCAssociationAuthorizationInput) (*DeleteVPCAssociationAuthorizationOutput, error) { + req, out := c.DeleteVPCAssociationAuthorizationRequest(input) + err := req.Send() + return out, err +} + const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone" // DisassociateVPCFromHostedZoneRequest generates a "aws/request.Request" representing the @@ -1416,14 +1599,15 @@ func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFro // // Disassociates a VPC from a Amazon Route 53 private hosted zone. // -// Send a POST request to the /Amazon Route 53 API version/hostedzone/hosted -// zone ID/disassociatevpc resource. The request body must include an XML document -// with a DisassociateVPCFromHostedZoneRequest element. The response returns -// the DisassociateVPCFromHostedZoneResponse element. +// You can't disassociate the last VPC from a private hosted zone. // -// You can only disassociate a VPC from a private hosted zone when two or -// more VPCs are associated with that hosted zone. You cannot convert a private -// hosted zone into a public hosted zone. +// Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/disassociatevpc +// resource. The request body must include a document with a DisassociateVPCFromHostedZoneRequest +// element. The response includes a DisassociateVPCFromHostedZoneResponse element. +// +// You can't disassociate a VPC from a private hosted zone when only one VPC +// is associated with the hosted zone. You also can't convert a private hosted +// zone into a public hosted zone. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1445,9 +1629,9 @@ func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFro // The specified VPC and hosted zone are not currently associated. // // * LastVPCAssociation -// Only one VPC is currently associated with the hosted zone. You cannot convert -// a private hosted zone into a public hosted zone by disassociating the last -// VPC from a hosted zone. +// The VPC that you're trying to disassociate from the private hosted zone is +// the last VPC that is associated with the hosted zone. Amazon Route 53 doesn't +// support disassociating the last VPC from a hosted zone. // // * InvalidInput // The input is not valid. @@ -1506,12 +1690,12 @@ func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, // Returns the current status of a change batch request. The status is one of // the following values: // -// PENDING indicates that the changes in this request have not replicated -// to all Amazon Route 53 DNS servers. This is the initial status of all change -// batch requests. +// * PENDING indicates that the changes in this request have not replicated +// to all Amazon Route 53 DNS servers. This is the initial status of all +// change batch requests. // -// INSYNC indicates that the changes have replicated to all Amazon Route -// 53 DNS servers. +// * INSYNC indicates that the changes have replicated to all Amazon Route +// 53 DNS servers. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1522,7 +1706,7 @@ func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, // // Returned Error Codes: // * NoSuchChange - +// A change with the specified change ID does not exist. // // * InvalidInput // The input is not valid. @@ -1533,76 +1717,6 @@ func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) { return out, err } -const opGetChangeDetails = "GetChangeDetails" - -// GetChangeDetailsRequest generates a "aws/request.Request" representing the -// client's request for the GetChangeDetails operation. The "output" return -// value can be used to capture response data after the request's "Send" method -// is called. -// -// See GetChangeDetails for usage and error information. -// -// Creating a request object using this method should be used when you want to inject -// custom logic into the request's lifecycle using a custom handler, or if you want to -// access properties on the request object before or after sending the request. If -// you just want the service response, call the GetChangeDetails method directly -// instead. -// -// Note: You must call the "Send" method on the returned request object in order -// to execute the request. -// -// // Example sending a request using the GetChangeDetailsRequest method. -// req, resp := client.GetChangeDetailsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -func (c *Route53) GetChangeDetailsRequest(input *GetChangeDetailsInput) (req *request.Request, output *GetChangeDetailsOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, GetChangeDetails, has been deprecated") - } - op := &request.Operation{ - Name: opGetChangeDetails, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/changedetails/{Id}", - } - - if input == nil { - input = &GetChangeDetailsInput{} - } - - req = c.newRequest(op, input, output) - output = &GetChangeDetailsOutput{} - req.Data = output - return -} - -// GetChangeDetails API operation for Amazon Route 53. -// -// Returns the status and changes of a change batch request. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon Route 53's -// API operation GetChangeDetails for usage and error information. -// -// Returned Error Codes: -// * NoSuchChange - -// -// * InvalidInput -// The input is not valid. -// -func (c *Route53) GetChangeDetails(input *GetChangeDetailsInput) (*GetChangeDetailsOutput, error) { - req, out := c.GetChangeDetailsRequest(input) - err := req.Send() - return out, err -} - const opGetCheckerIpRanges = "GetCheckerIpRanges" // GetCheckerIpRangesRequest generates a "aws/request.Request" representing the @@ -1781,7 +1895,7 @@ func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *reques // GetHealthCheck API operation for Amazon Route 53. // // Gets information about a specified health check. Send a GET request to the -// /2013-04-01/healthcheck/health check ID resource. For more information about +// /2013-04-01/healthcheck/health check ID resource. For more information about // using the console to perform this operation, see Amazon Route 53 Health Checks // and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // in the Amazon Route 53 Developer Guide. @@ -2059,7 +2173,7 @@ func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request. // // Retrieves the delegation set for a hosted zone, including the four name servers // assigned to the hosted zone. Send a GET request to the /Amazon Route 53 API -// version/hostedzone/hosted zone ID resource. +// version/hostedzone/hosted zone ID resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2192,7 +2306,7 @@ func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSe // GetReusableDelegationSet API operation for Amazon Route 53. // // Retrieves the reusable delegation set. Send a GET request to the /2013-04-01/delegationset/delegation -// set ID resource. +// set ID resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2336,13 +2450,13 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc // Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance // resource. // -// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance +// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance // request, there's a brief delay while Amazon Route 53 creates the resource // record sets that are specified in the traffic policy definition. For more // information, see the State response element. // -// In the Amazon Route 53 console, traffic policy instances are known as -// policy records. +// In the Amazon Route 53 console, traffic policy instances are known as policy +// records. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2427,148 +2541,6 @@ func (c *Route53) GetTrafficPolicyInstanceCount(input *GetTrafficPolicyInstanceC return out, err } -const opListChangeBatchesByHostedZone = "ListChangeBatchesByHostedZone" - -// ListChangeBatchesByHostedZoneRequest generates a "aws/request.Request" representing the -// client's request for the ListChangeBatchesByHostedZone operation. The "output" return -// value can be used to capture response data after the request's "Send" method -// is called. -// -// See ListChangeBatchesByHostedZone for usage and error information. -// -// Creating a request object using this method should be used when you want to inject -// custom logic into the request's lifecycle using a custom handler, or if you want to -// access properties on the request object before or after sending the request. If -// you just want the service response, call the ListChangeBatchesByHostedZone method directly -// instead. -// -// Note: You must call the "Send" method on the returned request object in order -// to execute the request. -// -// // Example sending a request using the ListChangeBatchesByHostedZoneRequest method. -// req, resp := client.ListChangeBatchesByHostedZoneRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -func (c *Route53) ListChangeBatchesByHostedZoneRequest(input *ListChangeBatchesByHostedZoneInput) (req *request.Request, output *ListChangeBatchesByHostedZoneOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, ListChangeBatchesByHostedZone, has been deprecated") - } - op := &request.Operation{ - Name: opListChangeBatchesByHostedZone, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/hostedzone/{Id}/changes", - } - - if input == nil { - input = &ListChangeBatchesByHostedZoneInput{} - } - - req = c.newRequest(op, input, output) - output = &ListChangeBatchesByHostedZoneOutput{} - req.Data = output - return -} - -// ListChangeBatchesByHostedZone API operation for Amazon Route 53. -// -// Gets the list of ChangeBatches in a given time period for a given hosted -// zone. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon Route 53's -// API operation ListChangeBatchesByHostedZone for usage and error information. -// -// Returned Error Codes: -// * NoSuchHostedZone -// No hosted zone exists with the ID that you specified. -// -// * InvalidInput -// The input is not valid. -// -func (c *Route53) ListChangeBatchesByHostedZone(input *ListChangeBatchesByHostedZoneInput) (*ListChangeBatchesByHostedZoneOutput, error) { - req, out := c.ListChangeBatchesByHostedZoneRequest(input) - err := req.Send() - return out, err -} - -const opListChangeBatchesByRRSet = "ListChangeBatchesByRRSet" - -// ListChangeBatchesByRRSetRequest generates a "aws/request.Request" representing the -// client's request for the ListChangeBatchesByRRSet operation. The "output" return -// value can be used to capture response data after the request's "Send" method -// is called. -// -// See ListChangeBatchesByRRSet for usage and error information. -// -// Creating a request object using this method should be used when you want to inject -// custom logic into the request's lifecycle using a custom handler, or if you want to -// access properties on the request object before or after sending the request. If -// you just want the service response, call the ListChangeBatchesByRRSet method directly -// instead. -// -// Note: You must call the "Send" method on the returned request object in order -// to execute the request. -// -// // Example sending a request using the ListChangeBatchesByRRSetRequest method. -// req, resp := client.ListChangeBatchesByRRSetRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -func (c *Route53) ListChangeBatchesByRRSetRequest(input *ListChangeBatchesByRRSetInput) (req *request.Request, output *ListChangeBatchesByRRSetOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, ListChangeBatchesByRRSet, has been deprecated") - } - op := &request.Operation{ - Name: opListChangeBatchesByRRSet, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/hostedzone/{Id}/rrsChanges", - } - - if input == nil { - input = &ListChangeBatchesByRRSetInput{} - } - - req = c.newRequest(op, input, output) - output = &ListChangeBatchesByRRSetOutput{} - req.Data = output - return -} - -// ListChangeBatchesByRRSet API operation for Amazon Route 53. -// -// Gets the list of ChangeBatches in a given time period for a given hosted -// zone and RRSet. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon Route 53's -// API operation ListChangeBatchesByRRSet for usage and error information. -// -// Returned Error Codes: -// * NoSuchHostedZone -// No hosted zone exists with the ID that you specified. -// -// * InvalidInput -// The input is not valid. -// -func (c *Route53) ListChangeBatchesByRRSet(input *ListChangeBatchesByRRSetInput) (*ListChangeBatchesByRRSetOutput, error) { - req, out := c.ListChangeBatchesByRRSetRequest(input) - err := req.Send() - return out, err -} - const opListGeoLocations = "ListGeoLocations" // ListGeoLocationsRequest generates a "aws/request.Request" representing the @@ -2803,27 +2775,27 @@ func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *requ // a HostedZones child element for each hosted zone created by the current AWS // account. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of hosted zones, you can use the maxitems parameter to list them -// in groups of up to 100. The response includes four values that help navigate +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of hosted zones, you can use the maxitems parameter to list them in +// groups of up to 100. The response includes four values that help navigate // from one group of maxitems hosted zones to the next: // -// MaxItemsis the value specified for the maxitems parameter in the request -// that produced the current response. +// * MaxItems is the value specified for the maxitems parameter in the request +// that produced the current response. // -// If the value of IsTruncated in the response is true, there are more hosted -// zones associated with the current AWS account. +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current AWS account. // -// NextMarkeris the hosted zone ID of the next hosted zone that is associated -// with the current AWS account. If you want to list more hosted zones, make -// another call to ListHostedZones, and specify the value of the NextMarker -// element in the marker parameter. +// * NextMarker is the hosted zone ID of the next hosted zone that is associated +// with the current AWS account. If you want to list more hosted zones, make +// another call to ListHostedZones, and specify the value of the NextMarker +// element in the marker parameter. // // If IsTruncated is false, the NextMarker element is omitted from the response. // -// If you're making the second or subsequent call to ListHostedZones, the -// Marker element matches the value that you specified in the marker parameter -// in the previous request. +// * If you're making the second or subsequent call to ListHostedZones, the +// Marker element matches the value that you specified in the marker parameter +// in the previous request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2923,12 +2895,12 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput // a HostedZones child element for each hosted zone created by the current AWS // account. // -// ListHostedZonesByName sorts hosted zones by name with the labels reversed. +// ListHostedZonesByName sorts hosted zones by name with the labels reversed. // For example: // -// com.example.www. +// * com.example.www. // -// Note the trailing dot, which can change the sort order in some circumstances. +// Note the trailing dot, which can change the sort order in some circumstances. // // If the domain name includes escape characters or Punycode, ListHostedZonesByName // alphabetizes the domain name using the escaped or Punycoded value, which @@ -2936,38 +2908,39 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput // create a hosted zone for example.com, specify ex\344mple.com for the domain // name. ListHostedZonesByName alphabetizes it as: // -// com.ex\344mple. +// * com.ex\344mple. // -// The labels are reversed and alphabetized using the escaped value. For -// more information about valid domain name formats, including internationalized +// The labels are reversed and alphabetized using the escaped value. For more +// information about valid domain name formats, including internationalized // domain names, see DNS Domain Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html) // in the Amazon Route 53 Developer Guide. // -// Amazon Route 53 returns up to 100 items in each response. If you have a -// lot of hosted zones, use the MaxItems parameter to list them in groups of -// up to 100. The response includes values that help navigate from one group -// of MaxItems hosted zones to the next: +// Amazon Route 53 returns up to 100 items in each response. If you have a lot +// of hosted zones, use the MaxItems parameter to list them in groups of up +// to 100. The response includes values that help navigate from one group of +// MaxItems hosted zones to the next: // -// The DNSName and HostedZoneId elements in the response contain the values, -// if any, specified for the dnsname and hostedzoneid parameters in the request -// that produced the current response. +// * The DNSName and HostedZoneId elements in the response contain the values, +// if any, specified for the dnsname and hostedzoneid parameters in the request +// that produced the current response. // -// The MaxItems element in the response contains the value, if any, that -// you specified for the maxitems parameter in the request that produced the -// current response. +// * The MaxItems element in the response contains the value, if any, that +// you specified for the maxitems parameter in the request that produced +// the current response. // -// If the value of IsTruncated in the response is true, there are more hosted -// zones associated with the current AWS account. +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current AWS account. // // If IsTruncated is false, this response includes the last hosted zone that -// is associated with the current account. The NextDNSName element and NextHostedZoneId -// elements are omitted from the response. +// is associated with the current account. The NextDNSName element and NextHostedZoneId +// elements are omitted from the response. // -// The NextDNSName and NextHostedZoneId elements in the response contain -// the domain name and the hosted zone ID of the next hosted zone that is associated -// with the current AWS account. If you want to list more hosted zones, make -// another call to ListHostedZonesByName, and specify the value of NextDNSName -// and NextHostedZoneId in the dnsname and hostedzoneid parameters, respectively. +// * The NextDNSName and NextHostedZoneId elements in the response contain +// the domain name and the hosted zone ID of the next hosted zone that is +// associated with the current AWS account. If you want to list more hosted +// zones, make another call to ListHostedZonesByName, and specify the value +// of NextDNSName and NextHostedZoneId in the dnsname and hostedzoneid parameters, +// respectively. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3040,6 +3013,46 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp // ListResourceRecordSets API operation for Amazon Route 53. // +// Lists the resource record sets in a specified hosted zone. +// +// ListResourceRecordSets returns up to 100 resource record sets at a time in +// ASCII order, beginning at a position specified by the name and type elements. +// The action sorts results first by DNS name with the labels reversed, for +// example: +// +// com.example.www. +// +// Note the trailing dot, which can change the sort order in some circumstances. +// +// When multiple records have the same DNS name, the action sorts results by +// the record type. +// +// You can use the name and type elements to adjust the beginning position of +// the list of resource record sets returned: +// +// If you do not specify Name or TypeThe results begin with the first resource +// record set that the hosted zone contains. +// +// If you specify Name but not TypeThe results begin with the first resource +// record set in the list whose name is greater than or equal to Name. +// +// If you specify Type but not NameAmazon Route 53 returns the InvalidInput +// error. +// +// If you specify both Name and TypeThe results begin with the first resource +// record set in the list whose name is greater than or equal to Name, and whose +// type is greater than or equal to Type. +// +// This action returns the most current version of the records. This includes +// records that are PENDING, and that are not yet available on all Amazon Route +// 53 DNS servers. +// +// To ensure that you get an accurate listing of the resource record sets for +// a hosted zone at a point in time, do not submit a ChangeResourceRecordSets +// request while you're paging through the results of a ListResourceRecordSets +// request. If you do, some pages may display results without the latest changes +// while other pages display results with the latest changes. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -3138,8 +3151,8 @@ func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegatio // MaxItems parameter. You can use the Marker parameter to control the delegation // set that the list begins with. // -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. +// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a +// value greater than 100, Amazon Route 53 returns only the first 100. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3203,6 +3216,12 @@ func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // ListTagsForResource API operation for Amazon Route 53. // +// Lists tags for one health check or hosted zone. +// +// For information about using tags for cost allocation, see Using Cost Allocation +// Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) +// in the AWS Billing and Cost Management 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. @@ -3282,6 +3301,12 @@ func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) // ListTagsForResources API operation for Amazon Route 53. // +// Lists tags for up to 10 health checks or hosted zones. +// +// For information about using tags for cost allocation, see Using Cost Allocation +// Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) +// in the AWS Billing and Cost Management 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. @@ -3365,36 +3390,36 @@ func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (r // associated with the current AWS account. Send a GET request to the /Amazon // Route 53 API version/trafficpolicy resource. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policies, you can use the maxitems parameter to list -// them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policies, you can use the maxitems parameter to list them +// in groups of up to 100. // // The response includes three values that help you navigate from one group // of maxitems traffic policies to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policies associated with the current AWS account. +// policies associated with the current AWS account. // -// If IsTruncated is false, this response includes the last traffic policy -// that is associated with the current account. +// If IsTruncated is false, this response includes the last traffic policy that +// is associated with the current account. // -// TrafficPolicyIdMarker +// * TrafficPolicyIdMarker // // If IsTruncated is true, TrafficPolicyIdMarker is the ID of the first traffic -// policy in the next group of MaxItems traffic policies. If you want to list -// more traffic policies, make another call to ListTrafficPolicies, and specify -// the value of the TrafficPolicyIdMarker element from the response in the TrafficPolicyIdMarker -// request parameter. +// policy in the next group of MaxItems traffic policies. If you want to +// list more traffic policies, make another call to ListTrafficPolicies, +// and specify the value of the TrafficPolicyIdMarker element from the response +// in the TrafficPolicyIdMarker request parameter. // // If IsTruncated is false, the TrafficPolicyIdMarker element is omitted from -// the response. +// the response. // -// MaxItems +// * MaxItems // // The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// produced the current response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3461,40 +3486,41 @@ func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInst // Gets information about the traffic policy instances that you created by using // the current AWS account. // -// After you submit an UpdateTrafficPolicyInstance request, there's a brief +// After you submit an UpdateTrafficPolicyInstance request, there's a brief // delay while Amazon Route 53 creates the resource record sets that are specified // in the traffic policy definition. For more information, see the State response // element. // -// Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance +// Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance // resource. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policy instances, you can use the MaxItems parameter to +// list them in groups of up to 100. // -// The response includes five values that help you navigate from one group -// of MaxItems traffic policy instances to the next: +// The response includes five values that help you navigate from one group of +// MaxItems traffic policy instances to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policy instances associated with the current AWS account. +// policy instances associated with the current AWS account. // -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the current account. +// If IsTruncated is false, this response includes the last traffic policy instance +// that is associated with the current account. // -// MaxItems +// * MaxItems // // The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// produced the current response. // -// HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker +// * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker // // If IsTruncated is true, these three values in the response represent the -// first traffic policy instance in the next group of MaxItems traffic policy -// instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstances, -// and specify these values in the corresponding request parameters. +// first traffic policy instance in the next group of MaxItems traffic policy +// instances. To list more traffic policy instances, make another call to +// ListTrafficPolicyInstances, and specify these values in the corresponding +// request parameters. // // If IsTruncated is false, all three elements are omitted from the response. // @@ -3566,42 +3592,43 @@ func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTraff // Gets information about the traffic policy instances that you created in a // specified hosted zone. // -// After you submit an UpdateTrafficPolicyInstance request, there's a brief +// After you submit an UpdateTrafficPolicyInstance request, there's a brief // delay while Amazon Route 53 creates the resource record sets that are specified // in the traffic policy definition. For more information, see the State response // element. // -// Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance +// Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance // resource and include the ID of the hosted zone. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policy instances, you can use the MaxItems parameter to +// list them in groups of up to 100. // -// The response includes four values that help you navigate from one group -// of MaxItems traffic policy instances to the next: +// The response includes four values that help you navigate from one group of +// MaxItems traffic policy instances to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policy instances associated with the current AWS account. +// policy instances associated with the current AWS account. // -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the current account. +// * If IsTruncated is false, this response includes the last traffic policy +// instance that is associated with the current account. // -// MaxItems +// * MaxItems // -// The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// * The value that you specified for the MaxItems parameter in the request +// that produced the current response. // -// TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker +// * TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker // -// If IsTruncated is true, these two values in the response represent the first -// traffic policy instance in the next group of MaxItems traffic policy instances. -// To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByHostedZone, -// and specify these values in the corresponding request parameters. +// * If IsTruncated is true, these two values in the response represent the +// first traffic policy instance in the next group of MaxItems traffic policy +// instances. To list more traffic policy instances, make another call to +// ListTrafficPolicyInstancesByHostedZone, and specify these values in the +// corresponding request parameters. // -// If IsTruncated is false, all three elements are omitted from the response. +// * If IsTruncated is false, all three elements are omitted from the response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3674,40 +3701,40 @@ func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPo // Gets information about the traffic policy instances that you created by using // a specify traffic policy version. // -// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance +// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance // request, there's a brief delay while Amazon Route 53 creates the resource // record sets that are specified in the traffic policy definition. For more // information, see the State response element. // -// Send a GET request to the /Route 53 API version/trafficpolicyinstance resource +// Send a GET request to the /Route 53 API version/trafficpolicyinstance resource // and include the ID and version of the traffic policy. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policy instances, you can use the MaxItems parameter to +// list them in groups of up to 100. // -// The response includes five values that help you navigate from one group -// of MaxItems traffic policy instances to the next: +// The response includes five values that help you navigate from one group of +// MaxItems traffic policy instances to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policy instances associated with the specified traffic policy. +// policy instances associated with the specified traffic policy. // -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the specified traffic policy. +// If IsTruncated is false, this response includes the last traffic policy instance +// that is associated with the specified traffic policy. // -// MaxItems +// * MaxItems // // The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// produced the current response. // -// HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker +// * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker // // If IsTruncated is true, these values in the response represent the first -// traffic policy instance in the next group of MaxItems traffic policy instances. -// To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy, -// and specify these values in the corresponding request parameters. +// traffic policy instance in the next group of MaxItems traffic policy instances. +// To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy, +// and specify these values in the corresponding request parameters. // // If IsTruncated is false, all three elements are omitted from the response. // @@ -3784,35 +3811,35 @@ func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersi // Send a GET request to the /Amazon Route 53 API version/trafficpolicy resource // and specify the ID of the traffic policy for which you want to list versions. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policies, you can use the maxitems parameter to list -// them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policies, you can use the maxitems parameter to list them +// in groups of up to 100. // // The response includes three values that help you navigate from one group -// of maxitemsmaxitems traffic policies to the next: +// of maxitems traffic policies to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policy versions associated with the specified traffic policy. +// policy versions associated with the specified traffic policy. // -// If IsTruncated is false, this response includes the last traffic policy -// version that is associated with the specified traffic policy. +// If IsTruncated is false, this response includes the last traffic policy version +// that is associated with the specified traffic policy. // -// TrafficPolicyVersionMarker +// * TrafficPolicyVersionMarker // // The ID of the next traffic policy version that is associated with the current -// AWS account. If you want to list more traffic policies, make another call -// to ListTrafficPolicyVersions, and specify the value of the TrafficPolicyVersionMarker -// element in the TrafficPolicyVersionMarker request parameter. +// AWS account. If you want to list more traffic policies, make another call +// to ListTrafficPolicyVersions, and specify the value of the TrafficPolicyVersionMarker +// element in the TrafficPolicyVersionMarker request parameter. // // If IsTruncated is false, Amazon Route 53 omits the TrafficPolicyVersionMarker -// element from the response. +// element from the response. // -// MaxItems +// * MaxItems // // The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// produced the current response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3834,6 +3861,96 @@ func (c *Route53) ListTrafficPolicyVersions(input *ListTrafficPolicyVersionsInpu return out, err } +const opListVPCAssociationAuthorizations = "ListVPCAssociationAuthorizations" + +// ListVPCAssociationAuthorizationsRequest generates a "aws/request.Request" representing the +// client's request for the ListVPCAssociationAuthorizations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListVPCAssociationAuthorizations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListVPCAssociationAuthorizations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListVPCAssociationAuthorizationsRequest method. +// req, resp := client.ListVPCAssociationAuthorizationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *Route53) ListVPCAssociationAuthorizationsRequest(input *ListVPCAssociationAuthorizationsInput) (req *request.Request, output *ListVPCAssociationAuthorizationsOutput) { + op := &request.Operation{ + Name: opListVPCAssociationAuthorizations, + HTTPMethod: "GET", + HTTPPath: "/2013-04-01/hostedzone/{Id}/authorizevpcassociation", + } + + if input == nil { + input = &ListVPCAssociationAuthorizationsInput{} + } + + req = c.newRequest(op, input, output) + output = &ListVPCAssociationAuthorizationsOutput{} + req.Data = output + return +} + +// ListVPCAssociationAuthorizations API operation for Amazon Route 53. +// +// Gets a list of the VPCs that were created by other accounts and that can +// be associated with a specified hosted zone because you've submitted one or +// more CreateVPCAssociationAuthorization requests. +// +// Send a GET request to the /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation +// resource. The response to this request includes a VPCs element with a VPC +// child element for each VPC that can be associated with the hosted zone. +// +// Amazon Route 53 returns up to 50 VPCs per page. To return fewer VPCs per +// page, include the MaxResults parameter: +// +// /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs +// per page +// +// If the response includes a NextToken element, there are more VPCs to list. +// To get the next page of VPCs, submit another ListVPCAssociationAuthorizations +// request, and include the value of the NextToken element from the response +// in the NextToken request parameter: +// +// /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs +// per page&NextToken= +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListVPCAssociationAuthorizations for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidInput +// The input is not valid. +// +// * InvalidPaginationToken + +// +func (c *Route53) ListVPCAssociationAuthorizations(input *ListVPCAssociationAuthorizationsInput) (*ListVPCAssociationAuthorizationsOutput, error) { + req, out := c.ListVPCAssociationAuthorizationsRequest(input) + err := req.Send() + return out, err +} + const opTestDNSAnswer = "TestDNSAnswer" // TestDNSAnswerRequest generates a "aws/request.Request" representing the @@ -3879,6 +3996,10 @@ func (c *Route53) TestDNSAnswerRequest(input *TestDNSAnswerInput) (req *request. // TestDNSAnswer API operation for Amazon Route 53. // +// Gets the value that Amazon Route 53 returns in response to a DNS request +// for a specified record name and type. You can optionally specify the IP address +// of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -3946,10 +4067,10 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req * // // Updates an existing health check. // -// Send a POST request to the /Amazon Route 53 API version/healthcheck/health -// check ID resource. The request body must include an XML document with an -// UpdateHealthCheckRequest element. For more information about updating health -// checks, see Creating, Updating, and Deleting Health Checks (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html) +// Send a POST request to the /2013-04-01/healthcheck/health check ID resource. +// The request body must include a document with an UpdateHealthCheckRequest +// element. For more information about updating health checks, see Creating, +// Updating, and Deleting Health Checks (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html) // in the Amazon Route 53 Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3968,7 +4089,8 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req * // The input is not valid. // // * HealthCheckVersionMismatch - +// The value of HealthCheckVersion in the request doesn't match the value of +// HealthCheckVersion in the health check. // func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) { req, out := c.UpdateHealthCheckRequest(input) @@ -4022,7 +4144,7 @@ func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentI // UpdateHostedZoneComment API operation for Amazon Route 53. // // Updates the hosted zone comment. Send a POST request to the /2013-04-01/hostedzone/hosted -// zone ID resource. +// zone ID resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4091,7 +4213,7 @@ func (c *Route53) UpdateTrafficPolicyCommentRequest(input *UpdateTrafficPolicyCo // // Updates the comment for a specified traffic policy version. // -// Send a POST request to the /Amazon Route 53 API version/trafficpolicy/ resource. +// Send a POST request to the /2013-04-01/trafficpolicy/ resource. // // The request body must include a document with an UpdateTrafficPolicyCommentRequest // element. @@ -4168,26 +4290,26 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI // Updates the resource record sets in a specified hosted zone that were created // based on the settings in a specified traffic policy version. // -// Send a POST request to the /Amazon Route 53 API version/trafficpolicyinstance/traffic -// policy ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest +// Send a POST request to the /2013-04-01/trafficpolicyinstance/traffic policy +// ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest // element. // -// When you update a traffic policy instance, Amazon Route 53 continues to -// respond to DNS queries for the root resource record set name (such as example.com) +// When you update a traffic policy instance, Amazon Route 53 continues to respond +// to DNS queries for the root resource record set name (such as example.com) // while it replaces one group of resource record sets with another. Amazon // Route 53 performs the following operations: // -// Amazon Route 53 creates a new group of resource record sets based on the +// Amazon Route 53 creates a new group of resource record sets based on the // specified traffic policy. This is true regardless of how substantial the // differences are between the existing resource record sets and the new resource // record sets. // -// When all of the new resource record sets have been created, Amazon Route +// When all of the new resource record sets have been created, Amazon Route // 53 starts to respond to DNS queries for the root resource record set name // (such as example.com) by using the new resource record sets. // -// Amazon Route 53 deletes the old group of resource record sets that are -// associated with the root resource record set name. +// Amazon Route 53 deletes the old group of resource record sets that are associated +// with the root resource record set name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4279,85 +4401,97 @@ func (s *AlarmIdentifier) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *AlarmIdentifier) SetName(v string) *AlarmIdentifier { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *AlarmIdentifier) SetRegion(v string) *AlarmIdentifier { + s.Region = &v + return s +} + // Alias resource record sets only: Information about the CloudFront distribution, // Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon -// Route 53 resource record set to which you are redirecting queries. The Elastic +// Route 53 resource record set that you're redirecting queries to. The Elastic // Beanstalk environment must have a regionalized subdomain. // // When creating resource record sets for a private hosted zone, note the following: // -// Resource record sets cannot be created for CloudFront distributions in -// a private hosted zone. +// * Resource record sets can't be created for CloudFront distributions in +// a private hosted zone. // -// Creating geolocation alias resource record sets or latency alias resource -// record sets in a private hosted zone is unsupported. +// * Creating geolocation alias resource record sets or latency alias resource +// record sets in a private hosted zone is unsupported. // -// For information about creating failover resource record sets in a private -// hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html). +// * For information about creating failover resource record sets in a private +// hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html). type AliasTarget struct { _ struct{} `type:"structure"` // Alias resource record sets only: The value that you specify depends on where // you want to route queries: // - // A CloudFront distribution: Specify the domain name that CloudFront assigned - // when you created your distribution. + // * A CloudFront distribution: Specify the domain name that CloudFront assigned + // when you created your distribution. // - // Your CloudFront distribution must include an alternate domain name that - // matches the name of the resource record set. For example, if the name of - // the resource record set is acme.example.com, your CloudFront distribution - // must include acme.example.com as one of the alternate domain names. For more - // information, see Using Alternate Domain Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html) - // in the Amazon CloudFront Developer Guide. + // Your CloudFront distribution must include an alternate domain name that matches + // the name of the resource record set. For example, if the name of the resource + // record set is acme.example.com, your CloudFront distribution must include + // acme.example.com as one of the alternate domain names. For more information, + // see Using Alternate Domain Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html) + // in the Amazon CloudFront Developer Guide. // - // Elastic Beanstalk environment: Specify the CNAME attribute for the environment. - // (The environment must have a regionalized domain name.) You can use the following - // methods to get the value of the CNAME attribute: + // * Elastic Beanstalk environment: Specify the CNAME attribute for the environment. + // (The environment must have a regionalized domain name.) You can use the + // following methods to get the value of the CNAME attribute: // - // AWS Managment Console: For information about how to get the value by - // using the console, see Using Custom Domains with Elastic Beanstalk (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) - // in the AWS Elastic Beanstalk Developer Guide. + // AWS Managment Console: For information about how to get the value by using + // the console, see Using Custom Domains with AWS Elastic Beanstalk (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) + // in the AWS Elastic Beanstalk Developer Guide. // - // Elastic Load Balancing API: Use the DescribeEnvironments action to get - // the value of the CNAME attribute. For more information, see DescribeEnvironments - // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/API_DescribeEnvironments.html) - // in the AWS Elastic Beanstalk API Reference. + // Elastic Load Balancing API: Use the DescribeEnvironments action to get the + // value of the CNAME attribute. For more information, see DescribeEnvironments + // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/API_DescribeEnvironments.html) + // in the AWS Elastic Beanstalk API Reference. // - // AWS CLI: Use the describe-environments command to get the value of the - // CNAME attribute. For more information, see describe-environments (http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html) - // in the AWS Command Line Interface Reference. + // AWS CLI: Use the describe-environments command to get the value of the CNAME + // attribute. For more information, see describe-environments (http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html) + // in the AWS Command Line Interface Reference. // - // An ELB load balancer: Specify the DNS name associated with the load - // balancer. Get the DNS name by using the AWS Management Console, the ELB API, - // or the AWS CLI. Use the same method to get values for HostedZoneId and DNSName. - // If you get one value from the console and the other value from the API or - // the CLI, creating the resource record set will fail. + // * An ELB load balancer: Specify the DNS name associated with the load + // balancer. Get the DNS name by using the AWS Management Console, the ELB + // API, or the AWS CLI. Use the same method to get values for HostedZoneId + // and DNSName. If you get one value from the console and the other value + // from the API or the CLI, creating the resource record set will fail. // - // AWS Management Console: Go to the Amazon EC2 page, click Load Balancers - // in the navigation pane, choose the load balancer, choose the Description - // tab, and get the value of the DNS Name field that begins with dualstack. - // Use the same process to get the Hosted Zone ID. See HostedZone$Id. + // AWS Management Console: Go to the EC2 page, click Load Balancers in the navigation + // pane, choose the load balancer, choose the Description tab, and get the + // value of the DNS Name field that begins with dualstack. Use the same process + // to get the Hosted Zone ID. See HostedZone$Id. // - // Elastic Load Balancing API: Use DescribeLoadBalancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/API_DescribeLoadBalancers.html) - // to get the value of CanonicalHostedZoneName. Use the same process to get - // the CanonicalHostedZoneNameId. See HostedZone$Id. + // Elastic Load Balancing API: Use DescribeLoadBalancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/API_DescribeLoadBalancers.html) + // to get the value of CanonicalHostedZoneName. Use the same process to get + // the CanonicalHostedZoneNameId. See HostedZone$Id. // - // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/API_DescribeLoadBalancers.html) - // to get the value of CanonicalHostedZoneName. Use the same process to get - // the CanonicalHostedZoneNameId. See HostedZoneId. + // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/API_DescribeLoadBalancers.html) + // to get the value of CanonicalHostedZoneName. Use the same process to get + // the CanonicalHostedZoneNameId. See HostedZoneId. // - // An Amazon S3 bucket that is configured as a static website: Specify - // the domain name of the Amazon S3 website endpoint in which you created the - // bucket; for example, s3-website-us-east-1.amazonaws.com. For more information - // about valid values, see the table Amazon Simple Storage Service (S3) Website - // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) - // in the Amazon Web Services General Reference. For more information about - // using Amazon S3 buckets for websites, see Hosting a Static Website on Amazon - // S3 (http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) in - // the Amazon Simple Storage Service Developer Guide. + // * An Amazon S3 bucket that is configured as a static website: Specify + // the domain name of the Amazon S3 website endpoint in which you created + // the bucket; for example, s3-website-us-east-1.amazonaws.com. For more + // information about valid values, see the table Amazon Simple Storage Service + // (S3) Website Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) + // in the Amazon Web Services General Reference. For more information about + // using S3 buckets for websites, see Hosting a Static Website on Amazon + // S3 (http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) + // in the Amazon S3 Developer Guide. // - // Another Amazon Route 53 resource record set: Specify the value of the - // Name element for a resource record set in the current hosted zone. + // * Another Amazon Route 53 resource record set: Specify the value of the + // Name element for a resource record set in the current hosted zone. // // DNSName is a required field DNSName *string `type:"string" required:"true"` @@ -4365,78 +4499,77 @@ type AliasTarget struct { // Applies only to alias, weighted alias, latency alias, and failover alias // record sets: If you set the value of EvaluateTargetHealth to true for the // resource record set or sets in an alias, weighted alias, latency alias, or - // failover alias resource record set, and if you specify a value for HealthCheck$Id - // for every resource record set that is referenced by these alias resource + // failover alias resource record set, and if you specify a value for HealthCheck$Id + // for every resource record set that is referenced by these alias resource // record sets, the alias resource record sets inherit the health of the referenced // resource record sets. // - // In this configuration, when Amazon Route 53 receives a DNS query for an - // alias resource record set: + // In this configuration, when Amazon Route 53 receives a DNS query for an alias + // resource record set: // - // Amazon Route 53 looks at the resource record sets that are referenced - // by the alias resource record sets to determine which health checks they're - // using. + // * Amazon Route 53 looks at the resource record sets that are referenced + // by the alias resource record sets to determine which health checks they're + // using. // - // Amazon Route 53 checks the current status of each health check. (Amazon - // Route 53 periodically checks the health of the endpoint that is specified - // in a health check; it doesn't perform the health check when the DNS query - // arrives.) + // * Amazon Route 53 checks the current status of each health check. (Amazon + // Route 53 periodically checks the health of the endpoint that is specified + // in a health check; it doesn't perform the health check when the DNS query + // arrives.) // - // Based on the status of the health checks, Amazon Route 53 determines which - // resource record sets are healthy. Unhealthy resource record sets are immediately - // removed from consideration. In addition, if all of the resource record sets - // that are referenced by an alias resource record set are unhealthy, that alias - // resource record set also is immediately removed from consideration. + // * Based on the status of the health checks, Amazon Route 53 determines + // which resource record sets are healthy. Unhealthy resource record sets + // are immediately removed from consideration. In addition, if all of the + // resource record sets that are referenced by an alias resource record set + // are unhealthy, that alias resource record set also is immediately removed + // from consideration. // - // Based on the configuration of the alias resource record sets (weighted - // alias or latency alias, for example) and the configuration of the resource - // record sets that they reference, Amazon Route 53 chooses a resource record - // set from the healthy resource record sets, and responds to the query. + // * Based on the configuration of the alias resource record sets (weighted + // alias or latency alias, for example) and the configuration of the resource + // record sets that they reference, Amazon Route 53 chooses a resource record + // set from the healthy resource record sets, and responds to the query. // - // Note the following: + // Note the following: // - // You cannot set EvaluateTargetHealth to true when the alias target is a - // CloudFront distribution. + // * You can't set EvaluateTargetHealth to true when the alias target is + // a CloudFront distribution. // - // If the AWS resource that you specify in AliasTarget is a resource record - // set or a group of resource record sets (for example, a group of weighted - // resource record sets), but it is not another alias resource record set, we - // recommend that you associate a health check with all of the resource record - // sets in the alias target.For more information, see What Happens When You - // Omit Health Checks? (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting) - // in the Amazon Route 53 Developer Guide. + // * If the AWS resource that you specify in AliasTarget is a resource record + // set or a group of resource record sets (for example, a group of weighted + // resource record sets), but it is not another alias resource record set, + // we recommend that you associate a health check with all of the resource + // record sets in the alias target.For more information, see What Happens + // When You Omit Health Checks? (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting) + // in the Amazon Route 53 Developer Guide. // - // If you specify an Elastic Beanstalk environment in HostedZoneId and DNSName, - // and if the environment contains an ELB load balancer, Elastic Load Balancing - // routes queries only to the healthy Amazon EC2 instances that are registered - // with the load balancer. (An environment automatically contains an ELB load - // balancer if it includes more than one Amazon EC2 instance.) If you set EvaluateTargetHealth - // to true and either no Amazon EC2 instances are healthy or the load balancer - // itself is unhealthy, Amazon Route 53 routes queries to other available resources - // that are healthy, if any. + // * If you specify an Elastic Beanstalk environment in HostedZoneId and + // DNSName, and if the environment contains an ELB load balancer, Elastic + // Load Balancing routes queries only to the healthy Amazon EC2 instances + // that are registered with the load balancer. (An environment automatically + // contains an ELB load balancer if it includes more than one EC2 instance.) + // If you set EvaluateTargetHealth to true and either no EC2 instances are + // healthy or the load balancer itself is unhealthy, Amazon Route 53 routes + // queries to other available resources that are healthy, if any. // - // If the environment contains a single Amazon EC2 instance, there are no special - // requirements. + // If the environment contains a single EC2 instance, there are no special requirements. // - // If you specify an ELB load balancer in AliasTarget , Elastic Load Balancing - // routes queries only to the healthy Amazon EC2 instances that are registered - // with the load balancer. If no Amazon EC2 instances are healthy or if the - // load balancer itself is unhealthy, and if EvaluateTargetHealth is true for - // the corresponding alias resource record set, Amazon Route 53 routes queries - // to other resources. When you create a load balancer, you configure settings - // for Elastic Load Balancing health checks; they're not Amazon Route 53 health - // checks, but they perform a similar function. Do not create Amazon Route 53 - // health checks for the Amazon EC2 instances that you register with an ELB - // load balancer. + // * If you specify an ELB load balancer in AliasTarget, Elastic Load Balancing + // routes queries only to the healthy EC2 instances that are registered with + // the load balancer. If no EC2 instances are healthy or if the load balancer + // itself is unhealthy, and if EvaluateTargetHealth is true for the corresponding + // alias resource record set, Amazon Route 53 routes queries to other resources. + // When you create a load balancer, you configure settings for Elastic Load + // Balancing health checks; they're not Amazon Route 53 health checks, but + // they perform a similar function. Do not create Amazon Route 53 health + // checks for the EC2 instances that you register with an ELB load balancer. // - // For more information, see How Health Checks Work in More Complex Amazon - // Route 53 Configurations (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html) - // in the Amazon Route 53 Developers Guide. + // For more information, see How Health Checks Work in More Complex Amazon Route + // 53 Configurations (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html) + // in the Amazon Route 53 Developers Guide. // - // We recommend that you set EvaluateTargetHealth to true only when you have - // enough idle capacity to handle the failure of one or more endpoints. + // * We recommend that you set EvaluateTargetHealth to true only when you + // have enough idle capacity to handle the failure of one or more endpoints. // - // For more information and examples, see Amazon Route 53 Health Checks and + // For more information and examples, see Amazon Route 53 Health Checks and // DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // in the Amazon Route 53 Developer Guide. // @@ -4446,42 +4579,41 @@ type AliasTarget struct { // Alias resource records sets only: The value used depends on where the queries // are routed: // - // A CloudFront distribution Specify Z2FDTNDATAQYW2. + // A CloudFront distributionSpecify Z2FDTNDATAQYW2. // - // Alias resource record sets for CloudFront cannot be created in a private - // zone. + // Alias resource record sets for CloudFront can't be created in a private zone. // - // Elastic Beanstalk environment Specify the hosted zone ID for the region - // in which you created the environment. The environment must have a regionalized + // Elastic Beanstalk environmentSpecify the hosted zone ID for the region in + // which you created the environment. The environment must have a regionalized // subdomain. For a list of regions and the corresponding hosted zone IDs, see - // AWS Elastic Beanstalk (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) - // in the Regions and Endpoints chapter of the AWSk General Reference. + // AWS Elastic Beanstalk (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) + // in the Regions and Endpoints chapter of the Amazon Web Services General Reference. // - // ELB load balancer Specify the value of the hosted zone ID for the load - // balancer. Use the following methods to get the hosted zone ID: + // ELB load balancerSpecify the value of the hosted zone ID for the load balancer. + // Use the following methods to get the hosted zone ID: // - // AWS Management Console: Go to the Amazon EC2; page, click Load Balancers - // in the navigation pane, select the load balancer, and get the value of the - // Hosted Zone ID field on the Description tab. Use the same process to get - // the DNS Name. See HostedZone$Name. + // AWS Management Console: Go to the Amazon EC2 page, click Load Balancers in + // the navigation pane, select the load balancer, and get the value of the Hosted + // Zone ID field on the Description tab. Use the same process to get the value + // of DNS Name. See HostedZone$Name. // - // Elastic Load Balancing API: Use DescribeLoadBalancers to get the value - // of CanonicalHostedZoneNameID. Use the same process to get the CanonicalHostedZoneName. + // Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of + // CanonicalHostedZoneNameID. Use the same process to get the CanonicalHostedZoneName. // See HostedZone$Name. // - // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) - // to get the value of CanonicalHostedZoneNameID. Use the same process to get + // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) + // to get the value of CanonicalHostedZoneNameID. Use the same process to get // the CanonicalHostedZoneName. See HostedZone$Name. // - // An Amazon S3 bucket configured as a static website Specify the hosted - // zone ID for the Amazon S3 website endpoint in which you created the bucket. - // For more information about valid values, see the table Amazon S3 (S3) Website + // An Amazon S3 bucket configured as a static websiteSpecify the hosted zone + // ID for the Amazon S3 website endpoint in which you created the bucket. For + // more information about valid values, see the table Amazon S3 (S3) Website // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) // in the Amazon Web Services General Reference. // - // Another Amazon Route 53 resource record set in your hosted zone Specify - // the hosted zone ID of your hosted zone. (An alias resource record set cannot - // reference a resource record set in a different hosted zone.) + // Another Amazon Route 53 resource record set in your hosted zoneSpecify the + // hosted zone ID of your hosted zone. (An alias resource record set can't reference + // a resource record set in a different hosted zone.) // // HostedZoneId is a required field HostedZoneId *string `type:"string" required:"true"` @@ -4516,24 +4648,43 @@ func (s *AliasTarget) Validate() error { return nil } -// A complex type that contains information about the VPC and the hosted zone -// that you want to associate. +// SetDNSName sets the DNSName field's value. +func (s *AliasTarget) SetDNSName(v string) *AliasTarget { + s.DNSName = &v + return s +} + +// SetEvaluateTargetHealth sets the EvaluateTargetHealth field's value. +func (s *AliasTarget) SetEvaluateTargetHealth(v bool) *AliasTarget { + s.EvaluateTargetHealth = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *AliasTarget) SetHostedZoneId(v string) *AliasTarget { + s.HostedZoneId = &v + return s +} + +// A complex type that contains information about the request to associate a +// VPC with a private hosted zone. type AssociateVPCWithHostedZoneInput struct { _ struct{} `locationName:"AssociateVPCWithHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` // Optional: A comment about the association request. Comment *string `type:"string"` - // The ID of the hosted zone you want to associate your VPC with. + // The ID of the private hosted zone that you want to associate an Amazon VPC + // with. // - // Note that you cannot associate a VPC with a hosted zone that doesn't have + // Note that you can't associate a VPC with a hosted zone that doesn't have // an existing VPC association. // // HostedZoneId is a required field HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // A complex type containing information about the Amazon VPC that you're associating - // with the specified hosted zone. + // A complex type that contains information about the VPC that you want to associate + // with a private hosted zone. // // VPC is a required field VPC *VPC `type:"structure" required:"true"` @@ -4570,7 +4721,26 @@ func (s *AssociateVPCWithHostedZoneInput) Validate() error { return nil } -// A complex type that contains the response information for the hosted zone. +// SetComment sets the Comment field's value. +func (s *AssociateVPCWithHostedZoneInput) SetComment(v string) *AssociateVPCWithHostedZoneInput { + s.Comment = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *AssociateVPCWithHostedZoneInput) SetHostedZoneId(v string) *AssociateVPCWithHostedZoneInput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *AssociateVPCWithHostedZoneInput) SetVPC(v *VPC) *AssociateVPCWithHostedZoneInput { + s.VPC = v + return s +} + +// A complex type that contains the response information for the AssociateVPCWithHostedZone +// request. type AssociateVPCWithHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -4590,33 +4760,39 @@ func (s AssociateVPCWithHostedZoneOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *AssociateVPCWithHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *AssociateVPCWithHostedZoneOutput { + s.ChangeInfo = v + return s +} + // The information for each resource record set that you want to change. type Change struct { _ struct{} `type:"structure"` // The action to perform: // - // CREATE: Creates a resource record set that has the specified values. + // * CREATE: Creates a resource record set that has the specified values. // - // DELETE: Deletes a existing resource record set that has the specified - // values for Name, Type, SetIdentifier (for latency, weighted, geolocation, - // and failover resource record sets), and TTL (except alias resource record - // sets, for which the TTL is determined by the AWS resource that you're routing - // DNS queries to). + // * DELETE: Deletes a existing resource record set that has the specified + // values for Name, Type, SetIdentifier (for latency, weighted, geolocation, + // and failover resource record sets), and TTL (except alias resource record + // sets, for which the TTL is determined by the AWS resource that you're + // routing DNS queries to). // - // To delete the resource record set that is associated with a traffic policy - // instance, use DeleteTrafficPolicyInstance . Amazon Route 53will delete the - // resource record set automatically. If you delete the resource record set - // by using ChangeResourceRecordSets, Amazon Route 53 doesn't automatically - // delete the traffic policy instance, and you'll continue to be charged for - // it even though it's no longer in use. + // To delete the resource record set that is associated with a traffic policy + // instance, use DeleteTrafficPolicyInstance. Amazon Route 53will delete + // the resource record set automatically. If you delete the resource record + // set by using ChangeResourceRecordSets, Amazon Route 53 doesn't automatically + // delete the traffic policy instance, and you'll continue to be charged + // for it even though it's no longer in use. // - // UPSERT: If a resource record set does not already exist, Amazon Route - // 53 creates it. If a resource record set does exist, Amazon Route 53 updates - // it with the values in the request. Amazon Route 53 can update an existing - // resource record set only when all of the following values match: Name, Type, - // and SetIdentifier (for weighted, latency, geolocation, and failover resource - // record sets). + // * UPSERT: If a resource record set does not already exist, Amazon Route + // 53 creates it. If a resource record set does exist, Amazon Route 53 updates + // it with the values in the request. Amazon Route 53 can update an existing + // resource record set only when all of the following values match: Name, + // Type, and SetIdentifier (for weighted, latency, geolocation, and failover + // resource record sets). // // Action is a required field Action *string `type:"string" required:"true" enum:"ChangeAction"` @@ -4658,6 +4834,18 @@ func (s *Change) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *Change) SetAction(v string) *Change { + s.Action = &v + return s +} + +// SetResourceRecordSet sets the ResourceRecordSet field's value. +func (s *Change) SetResourceRecordSet(v *ResourceRecordSet) *Change { + s.ResourceRecordSet = v + return s +} + // The information for a change request. type ChangeBatch struct { _ struct{} `type:"structure"` @@ -4707,52 +4895,16 @@ func (s *ChangeBatch) Validate() error { return nil } -// A complex type that lists the changes and information for a ChangeBatch. -type ChangeBatchRecord struct { - _ struct{} `deprecated:"true" type:"structure"` - - // A list of changes made in the ChangeBatch. - Changes []*Change `locationNameList:"Change" min:"1" type:"list"` - - // A complex type that describes change information about changes made to your - // hosted zone. - // - // This element contains an ID that you use when performing a GetChange action - // to get detailed information about the change. - Comment *string `type:"string"` - - // The ID of the request. Use this ID to track when the change has completed - // across all Amazon Route 53 DNS servers. - // - // Id is a required field - Id *string `type:"string" required:"true"` - - // The current state of the request. PENDING indicates that this request has - // not yet been applied to all Amazon Route 53 DNS servers. - // - // Valid Values: PENDING | INSYNC - // - // Status is a required field - Status *string `type:"string" required:"true" enum:"ChangeStatus"` - - // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, - // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). - // The Z after the time indicates that the time is listed in Coordinated Universal - // Time (UTC). - SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The AWS account ID attached to the changes. - Submitter *string `type:"string"` +// SetChanges sets the Changes field's value. +func (s *ChangeBatch) SetChanges(v []*Change) *ChangeBatch { + s.Changes = v + return s } -// String returns the string representation -func (s ChangeBatchRecord) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ChangeBatchRecord) GoString() string { - return s.String() +// SetComment sets the Comment field's value. +func (s *ChangeBatch) SetComment(v string) *ChangeBatch { + s.Comment = &v + return s } // A complex type that describes change information about changes made to your @@ -4796,6 +4948,30 @@ func (s ChangeInfo) GoString() string { return s.String() } +// SetComment sets the Comment field's value. +func (s *ChangeInfo) SetComment(v string) *ChangeInfo { + s.Comment = &v + return s +} + +// SetId sets the Id field's value. +func (s *ChangeInfo) SetId(v string) *ChangeInfo { + s.Id = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ChangeInfo) SetStatus(v string) *ChangeInfo { + s.Status = &v + return s +} + +// SetSubmittedAt sets the SubmittedAt field's value. +func (s *ChangeInfo) SetSubmittedAt(v time.Time) *ChangeInfo { + s.SubmittedAt = &v + return s +} + // A complex type that contains change information for the resource record set. type ChangeResourceRecordSetsInput struct { _ struct{} `locationName:"ChangeResourceRecordSetsRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -4843,6 +5019,18 @@ func (s *ChangeResourceRecordSetsInput) Validate() error { return nil } +// SetChangeBatch sets the ChangeBatch field's value. +func (s *ChangeResourceRecordSetsInput) SetChangeBatch(v *ChangeBatch) *ChangeResourceRecordSetsInput { + s.ChangeBatch = v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ChangeResourceRecordSetsInput) SetHostedZoneId(v string) *ChangeResourceRecordSetsInput { + s.HostedZoneId = &v + return s +} + // A complex type containing the response for the request. type ChangeResourceRecordSetsOutput struct { _ struct{} `type:"structure"` @@ -4867,6 +5055,12 @@ func (s ChangeResourceRecordSetsOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *ChangeResourceRecordSetsOutput) SetChangeInfo(v *ChangeInfo) *ChangeResourceRecordSetsOutput { + s.ChangeInfo = v + return s +} + // A complex type that contains information about the tags that you want to // add, edit, or delete. type ChangeTagsForResourceInput struct { @@ -4890,9 +5084,9 @@ type ChangeTagsForResourceInput struct { // The type of the resource. // - // The resource type for health checks is healthcheck. + // * The resource type for health checks is healthcheck. // - // The resource type for hosted zones is hostedzone. + // * The resource type for hosted zones is hostedzone. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` @@ -4930,6 +5124,30 @@ func (s *ChangeTagsForResourceInput) Validate() error { return nil } +// SetAddTags sets the AddTags field's value. +func (s *ChangeTagsForResourceInput) SetAddTags(v []*Tag) *ChangeTagsForResourceInput { + s.AddTags = v + return s +} + +// SetRemoveTagKeys sets the RemoveTagKeys field's value. +func (s *ChangeTagsForResourceInput) SetRemoveTagKeys(v []*string) *ChangeTagsForResourceInput { + s.RemoveTagKeys = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ChangeTagsForResourceInput) SetResourceId(v string) *ChangeTagsForResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ChangeTagsForResourceInput) SetResourceType(v string) *ChangeTagsForResourceInput { + s.ResourceType = &v + return s +} + // Empty response for the request. type ChangeTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -4959,7 +5177,7 @@ type CloudWatchAlarmConfiguration struct { // For the metric that the CloudWatch alarm is associated with, a complex type // that contains information about the dimensions for the metric.For information, // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference ( http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) - // in the Amazon CloudWatch Developer Guide. + // in the Amazon CloudWatch User Guide. Dimensions []*Dimension `locationNameList:"Dimension" type:"list"` // For the metric that the CloudWatch alarm is associated with, the number of @@ -4975,7 +5193,7 @@ type CloudWatchAlarmConfiguration struct { // The namespace of the metric that the alarm is associated with. For more information, // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) - // in the Amazon CloudWatch Developer Guide. + // in the Amazon CloudWatch User Guide. // // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` @@ -5009,6 +5227,54 @@ func (s CloudWatchAlarmConfiguration) GoString() string { return s.String() } +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *CloudWatchAlarmConfiguration) SetComparisonOperator(v string) *CloudWatchAlarmConfiguration { + s.ComparisonOperator = &v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *CloudWatchAlarmConfiguration) SetDimensions(v []*Dimension) *CloudWatchAlarmConfiguration { + s.Dimensions = v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *CloudWatchAlarmConfiguration) SetEvaluationPeriods(v int64) *CloudWatchAlarmConfiguration { + s.EvaluationPeriods = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *CloudWatchAlarmConfiguration) SetMetricName(v string) *CloudWatchAlarmConfiguration { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *CloudWatchAlarmConfiguration) SetNamespace(v string) *CloudWatchAlarmConfiguration { + s.Namespace = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *CloudWatchAlarmConfiguration) SetPeriod(v int64) *CloudWatchAlarmConfiguration { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *CloudWatchAlarmConfiguration) SetStatistic(v string) *CloudWatchAlarmConfiguration { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *CloudWatchAlarmConfiguration) SetThreshold(v float64) *CloudWatchAlarmConfiguration { + s.Threshold = &v + return s +} + // A complex type that contains the health check request information. type CreateHealthCheckInput struct { _ struct{} `locationName:"CreateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5061,6 +5327,18 @@ func (s *CreateHealthCheckInput) Validate() error { return nil } +// SetCallerReference sets the CallerReference field's value. +func (s *CreateHealthCheckInput) SetCallerReference(v string) *CreateHealthCheckInput { + s.CallerReference = &v + return s +} + +// SetHealthCheckConfig sets the HealthCheckConfig field's value. +func (s *CreateHealthCheckInput) SetHealthCheckConfig(v *HealthCheckConfig) *CreateHealthCheckInput { + s.HealthCheckConfig = v + return s +} + // A complex type containing the response information for the new health check. type CreateHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -5086,6 +5364,18 @@ func (s CreateHealthCheckOutput) GoString() string { return s.String() } +// SetHealthCheck sets the HealthCheck field's value. +func (s *CreateHealthCheckOutput) SetHealthCheck(v *HealthCheck) *CreateHealthCheckOutput { + s.HealthCheck = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateHealthCheckOutput) SetLocation(v string) *CreateHealthCheckOutput { + s.Location = &v + return s +} + // A complex type containing the hosted zone request information. type CreateHostedZoneInput struct { _ struct{} `locationName:"CreateHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5104,11 +5394,11 @@ type CreateHostedZoneInput struct { // you created it. For more information about reusable delegation sets, see // CreateReusableDelegationSet. // - // Type String + // TypeString // - // Default None + // DefaultNone // - // Parent CreatedHostedZoneRequest + // ParentCreatedHostedZoneRequest DelegationSetId *string `type:"string"` // (Optional) A complex type that contains an optional comment about your hosted @@ -5131,7 +5421,7 @@ type CreateHostedZoneInput struct { Name *string `type:"string" required:"true"` // The VPC that you want your hosted zone to be associated with. By providing - // this parameter, your newly created hosted cannot be resolved anywhere other + // this parameter, your newly created hosted can't be resolved anywhere other // than the given VPC. VPC *VPC `type:"structure"` } @@ -5170,6 +5460,36 @@ func (s *CreateHostedZoneInput) Validate() error { return nil } +// SetCallerReference sets the CallerReference field's value. +func (s *CreateHostedZoneInput) SetCallerReference(v string) *CreateHostedZoneInput { + s.CallerReference = &v + return s +} + +// SetDelegationSetId sets the DelegationSetId field's value. +func (s *CreateHostedZoneInput) SetDelegationSetId(v string) *CreateHostedZoneInput { + s.DelegationSetId = &v + return s +} + +// SetHostedZoneConfig sets the HostedZoneConfig field's value. +func (s *CreateHostedZoneInput) SetHostedZoneConfig(v *HostedZoneConfig) *CreateHostedZoneInput { + s.HostedZoneConfig = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateHostedZoneInput) SetName(v string) *CreateHostedZoneInput { + s.Name = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *CreateHostedZoneInput) SetVPC(v *VPC) *CreateHostedZoneInput { + s.VPC = v + return s +} + // A complex type containing the response information for the hosted zone. type CreateHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -5194,6 +5514,8 @@ type CreateHostedZoneOutput struct { // Location is a required field Location *string `location:"header" locationName:"Location" type:"string" required:"true"` + // A complex type that contains information about an Amazon VPC that you associated + // with this hosted zone. VPC *VPC `type:"structure"` } @@ -5207,6 +5529,36 @@ func (s CreateHostedZoneOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *CreateHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *CreateHostedZoneOutput { + s.ChangeInfo = v + return s +} + +// SetDelegationSet sets the DelegationSet field's value. +func (s *CreateHostedZoneOutput) SetDelegationSet(v *DelegationSet) *CreateHostedZoneOutput { + s.DelegationSet = v + return s +} + +// SetHostedZone sets the HostedZone field's value. +func (s *CreateHostedZoneOutput) SetHostedZone(v *HostedZone) *CreateHostedZoneOutput { + s.HostedZone = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateHostedZoneOutput) SetLocation(v string) *CreateHostedZoneOutput { + s.Location = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *CreateHostedZoneOutput) SetVPC(v *VPC) *CreateHostedZoneOutput { + s.VPC = v + return s +} + type CreateReusableDelegationSetInput struct { _ struct{} `locationName:"CreateReusableDelegationSetRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5250,6 +5602,18 @@ func (s *CreateReusableDelegationSetInput) Validate() error { return nil } +// SetCallerReference sets the CallerReference field's value. +func (s *CreateReusableDelegationSetInput) SetCallerReference(v string) *CreateReusableDelegationSetInput { + s.CallerReference = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *CreateReusableDelegationSetInput) SetHostedZoneId(v string) *CreateReusableDelegationSetInput { + s.HostedZoneId = &v + return s +} + type CreateReusableDelegationSetOutput struct { _ struct{} `type:"structure"` @@ -5258,7 +5622,7 @@ type CreateReusableDelegationSetOutput struct { // DelegationSet is a required field DelegationSet *DelegationSet `type:"structure" required:"true"` - // The unique URL representing the new reusbale delegation set. + // The unique URL representing the new reusable delegation set. // // Location is a required field Location *string `location:"header" locationName:"Location" type:"string" required:"true"` @@ -5274,6 +5638,18 @@ func (s CreateReusableDelegationSetOutput) GoString() string { return s.String() } +// SetDelegationSet sets the DelegationSet field's value. +func (s *CreateReusableDelegationSetOutput) SetDelegationSet(v *DelegationSet) *CreateReusableDelegationSetOutput { + s.DelegationSet = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateReusableDelegationSetOutput) SetLocation(v string) *CreateReusableDelegationSetOutput { + s.Location = &v + return s +} + // A complex type that contains information about the traffic policy that you // want to create. type CreateTrafficPolicyInput struct { @@ -5283,8 +5659,7 @@ type CreateTrafficPolicyInput struct { Comment *string `type:"string"` // The definition of this traffic policy in JSON format. For more information, - // see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/api-policies-traffic-policy-document-format.html) - // in the Amazon Route 53 API Reference. + // see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html). // // Document is a required field Document *string `type:"string" required:"true"` @@ -5321,6 +5696,24 @@ func (s *CreateTrafficPolicyInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *CreateTrafficPolicyInput) SetComment(v string) *CreateTrafficPolicyInput { + s.Comment = &v + return s +} + +// SetDocument sets the Document field's value. +func (s *CreateTrafficPolicyInput) SetDocument(v string) *CreateTrafficPolicyInput { + s.Document = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTrafficPolicyInput) SetName(v string) *CreateTrafficPolicyInput { + s.Name = &v + return s +} + // A complex type that contains information about the resource record sets that // you want to create based on a specified traffic policy. type CreateTrafficPolicyInstanceInput struct { @@ -5396,6 +5789,36 @@ func (s *CreateTrafficPolicyInstanceInput) Validate() error { return nil } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *CreateTrafficPolicyInstanceInput) SetHostedZoneId(v string) *CreateTrafficPolicyInstanceInput { + s.HostedZoneId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTrafficPolicyInstanceInput) SetName(v string) *CreateTrafficPolicyInstanceInput { + s.Name = &v + return s +} + +// SetTTL sets the TTL field's value. +func (s *CreateTrafficPolicyInstanceInput) SetTTL(v int64) *CreateTrafficPolicyInstanceInput { + s.TTL = &v + return s +} + +// SetTrafficPolicyId sets the TrafficPolicyId field's value. +func (s *CreateTrafficPolicyInstanceInput) SetTrafficPolicyId(v string) *CreateTrafficPolicyInstanceInput { + s.TrafficPolicyId = &v + return s +} + +// SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value. +func (s *CreateTrafficPolicyInstanceInput) SetTrafficPolicyVersion(v int64) *CreateTrafficPolicyInstanceInput { + s.TrafficPolicyVersion = &v + return s +} + // A complex type that contains the response information for the CreateTrafficPolicyInstance // request. type CreateTrafficPolicyInstanceOutput struct { @@ -5422,11 +5845,25 @@ func (s CreateTrafficPolicyInstanceOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateTrafficPolicyInstanceOutput) SetLocation(v string) *CreateTrafficPolicyInstanceOutput { + s.Location = &v + return s +} + +// SetTrafficPolicyInstance sets the TrafficPolicyInstance field's value. +func (s *CreateTrafficPolicyInstanceOutput) SetTrafficPolicyInstance(v *TrafficPolicyInstance) *CreateTrafficPolicyInstanceOutput { + s.TrafficPolicyInstance = v + return s +} + // A complex type that contains the response information for the CreateTrafficPolicy // request. type CreateTrafficPolicyOutput struct { _ struct{} `type:"structure"` + // A unique URL that represents a new traffic policy. + // // Location is a required field Location *string `location:"header" locationName:"Location" type:"string" required:"true"` @@ -5446,6 +5883,18 @@ func (s CreateTrafficPolicyOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateTrafficPolicyOutput) SetLocation(v string) *CreateTrafficPolicyOutput { + s.Location = &v + return s +} + +// SetTrafficPolicy sets the TrafficPolicy field's value. +func (s *CreateTrafficPolicyOutput) SetTrafficPolicy(v *TrafficPolicy) *CreateTrafficPolicyOutput { + s.TrafficPolicy = v + return s +} + // A complex type that contains information about the traffic policy for which // you want to create a new version. type CreateTrafficPolicyVersionInput struct { @@ -5494,11 +5943,31 @@ func (s *CreateTrafficPolicyVersionInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *CreateTrafficPolicyVersionInput) SetComment(v string) *CreateTrafficPolicyVersionInput { + s.Comment = &v + return s +} + +// SetDocument sets the Document field's value. +func (s *CreateTrafficPolicyVersionInput) SetDocument(v string) *CreateTrafficPolicyVersionInput { + s.Document = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateTrafficPolicyVersionInput) SetId(v string) *CreateTrafficPolicyVersionInput { + s.Id = &v + return s +} + // A complex type that contains the response information for the CreateTrafficPolicyVersion // request. type CreateTrafficPolicyVersionOutput struct { _ struct{} `type:"structure"` + // A unique URL that represents a new traffic policy version. + // // Location is a required field Location *string `location:"header" locationName:"Location" type:"string" required:"true"` @@ -5519,12 +5988,130 @@ func (s CreateTrafficPolicyVersionOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateTrafficPolicyVersionOutput) SetLocation(v string) *CreateTrafficPolicyVersionOutput { + s.Location = &v + return s +} + +// SetTrafficPolicy sets the TrafficPolicy field's value. +func (s *CreateTrafficPolicyVersionOutput) SetTrafficPolicy(v *TrafficPolicy) *CreateTrafficPolicyVersionOutput { + s.TrafficPolicy = v + return s +} + +// A complex type that contains information about the request to authorize associating +// a VPC with your private hosted zone. Authorization is only required when +// a private hosted zone and a VPC were created by using different accounts. +type CreateVPCAssociationAuthorizationInput struct { + _ struct{} `locationName:"CreateVPCAssociationAuthorizationRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` + + // The ID of the private hosted zone that you want to authorize associating + // a VPC with. + // + // HostedZoneId is a required field + HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // A complex type that contains the VPC ID and region for the VPC that you want + // to authorize associating with your hosted zone. + // + // VPC is a required field + VPC *VPC `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateVPCAssociationAuthorizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVPCAssociationAuthorizationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVPCAssociationAuthorizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVPCAssociationAuthorizationInput"} + if s.HostedZoneId == nil { + invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) + } + if s.VPC == nil { + invalidParams.Add(request.NewErrParamRequired("VPC")) + } + if s.VPC != nil { + if err := s.VPC.Validate(); err != nil { + invalidParams.AddNested("VPC", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *CreateVPCAssociationAuthorizationInput) SetHostedZoneId(v string) *CreateVPCAssociationAuthorizationInput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *CreateVPCAssociationAuthorizationInput) SetVPC(v *VPC) *CreateVPCAssociationAuthorizationInput { + s.VPC = v + return s +} + +// A complex type that contains the response information from a CreateVPCAssociationAuthorization +// request. +type CreateVPCAssociationAuthorizationOutput struct { + _ struct{} `type:"structure"` + + // The ID of the hosted zone that you authorized associating a VPC with. + // + // HostedZoneId is a required field + HostedZoneId *string `type:"string" required:"true"` + + // The VPC that you authorized associating with a hosted zone. + // + // VPC is a required field + VPC *VPC `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateVPCAssociationAuthorizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVPCAssociationAuthorizationOutput) GoString() string { + return s.String() +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *CreateVPCAssociationAuthorizationOutput) SetHostedZoneId(v string) *CreateVPCAssociationAuthorizationOutput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *CreateVPCAssociationAuthorizationOutput) SetVPC(v *VPC) *CreateVPCAssociationAuthorizationOutput { + s.VPC = v + return s +} + // A complex type that describes the name servers for this hosted zone. type DelegationSet struct { _ struct{} `type:"structure"` + // A unique string that identifies the request, and that allows you to retry + // failed CreateReusableDelegationSet requests without the risk of executing + // the operation twice. You must use a unique CallerReference string every time + // you submit a CreateReusableDelegationSet request. CallerReference can be + // any unique string, for example, a date/time stamp. CallerReference *string `min:"1" type:"string"` + // The ID that Amazon Route 53 assigns to a reusable delegation set. Id *string `type:"string"` // A complex type that contains a list of the authoritative name servers for @@ -5544,11 +6131,31 @@ func (s DelegationSet) GoString() string { return s.String() } +// SetCallerReference sets the CallerReference field's value. +func (s *DelegationSet) SetCallerReference(v string) *DelegationSet { + s.CallerReference = &v + return s +} + +// SetId sets the Id field's value. +func (s *DelegationSet) SetId(v string) *DelegationSet { + s.Id = &v + return s +} + +// SetNameServers sets the NameServers field's value. +func (s *DelegationSet) SetNameServers(v []*string) *DelegationSet { + s.NameServers = v + return s +} + // This action deletes a health check. Send a DELETE request to the /2013-04-01/DeleteHealthCheckRequest // resource. type DeleteHealthCheckInput struct { _ struct{} `type:"structure"` + // The ID of the health check that you want to delete. + // // HealthCheckId is a required field HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` } @@ -5576,6 +6183,12 @@ func (s *DeleteHealthCheckInput) Validate() error { return nil } +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *DeleteHealthCheckInput) SetHealthCheckId(v string) *DeleteHealthCheckInput { + s.HealthCheckId = &v + return s +} + // An empty element. type DeleteHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -5625,6 +6238,12 @@ func (s *DeleteHostedZoneInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteHostedZoneInput) SetId(v string) *DeleteHostedZoneInput { + s.Id = &v + return s +} + // A complex type containing the response information for the request. type DeleteHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -5646,6 +6265,12 @@ func (s DeleteHostedZoneOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *DeleteHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *DeleteHostedZoneOutput { + s.ChangeInfo = v + return s +} + // A complex type containing the information for the delete request. type DeleteReusableDelegationSetInput struct { _ struct{} `type:"structure"` @@ -5679,6 +6304,12 @@ func (s *DeleteReusableDelegationSetInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteReusableDelegationSetInput) SetId(v string) *DeleteReusableDelegationSetInput { + s.Id = &v + return s +} + // An empty element. type DeleteReusableDelegationSetOutput struct { _ struct{} `type:"structure"` @@ -5738,6 +6369,18 @@ func (s *DeleteTrafficPolicyInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteTrafficPolicyInput) SetId(v string) *DeleteTrafficPolicyInput { + s.Id = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *DeleteTrafficPolicyInput) SetVersion(v int64) *DeleteTrafficPolicyInput { + s.Version = &v + return s +} + // A complex type that contains information about the traffic policy instance // that you want to delete. type DeleteTrafficPolicyInstanceInput struct { @@ -5745,8 +6388,8 @@ type DeleteTrafficPolicyInstanceInput struct { // The ID of the traffic policy instance that you want to delete. // - // When you delete a traffic policy instance, Amazon Route 53 also deletes - // all of the resource record sets that were created when you created the traffic + // When you delete a traffic policy instance, Amazon Route 53 also deletes all + // of the resource record sets that were created when you created the traffic // policy instance. // // Id is a required field @@ -5776,6 +6419,12 @@ func (s *DeleteTrafficPolicyInstanceInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteTrafficPolicyInstanceInput) SetId(v string) *DeleteTrafficPolicyInstanceInput { + s.Id = &v + return s +} + // An empty element. type DeleteTrafficPolicyInstanceOutput struct { _ struct{} `type:"structure"` @@ -5806,6 +6455,85 @@ func (s DeleteTrafficPolicyOutput) GoString() string { return s.String() } +// A complex type that contains information about the request to remove authorization +// to associate a VPC that was created by one AWS account with a hosted zone +// that was created with a different AWS account. +type DeleteVPCAssociationAuthorizationInput struct { + _ struct{} `locationName:"DeleteVPCAssociationAuthorizationRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` + + // When removing authorization to associate a VPC that was created by one AWS + // account with a hosted zone that was created with a different AWS account, + // the ID of the hosted zone. + // + // HostedZoneId is a required field + HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // When removing authorization to associate a VPC that was created by one AWS + // account with a hosted zone that was created with a different AWS account, + // a complex type that includes the ID and region of the VPC. + // + // VPC is a required field + VPC *VPC `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteVPCAssociationAuthorizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVPCAssociationAuthorizationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVPCAssociationAuthorizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVPCAssociationAuthorizationInput"} + if s.HostedZoneId == nil { + invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) + } + if s.VPC == nil { + invalidParams.Add(request.NewErrParamRequired("VPC")) + } + if s.VPC != nil { + if err := s.VPC.Validate(); err != nil { + invalidParams.AddNested("VPC", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *DeleteVPCAssociationAuthorizationInput) SetHostedZoneId(v string) *DeleteVPCAssociationAuthorizationInput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *DeleteVPCAssociationAuthorizationInput) SetVPC(v *VPC) *DeleteVPCAssociationAuthorizationInput { + s.VPC = v + return s +} + +// Empty response for the request. +type DeleteVPCAssociationAuthorizationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteVPCAssociationAuthorizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVPCAssociationAuthorizationOutput) GoString() string { + return s.String() +} + // For the metric that the CloudWatch alarm is associated with, a complex type // that contains information about one dimension. type Dimension struct { @@ -5834,21 +6562,32 @@ func (s Dimension) GoString() string { return s.String() } -// A complex type that contains information about the VPC and the hosted zone -// that you want to disassociate. +// SetName sets the Name field's value. +func (s *Dimension) SetName(v string) *Dimension { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Dimension) SetValue(v string) *Dimension { + s.Value = &v + return s +} + +// A complex type that contains information about the VPC that you want to disassociate +// from a specified private hosted zone. type DisassociateVPCFromHostedZoneInput struct { _ struct{} `locationName:"DisassociateVPCFromHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` // Optional: A comment about the disassociation request. Comment *string `type:"string"` - // The ID of the VPC that you want to disassociate from an Amazon Route 53 hosted - // zone. + // The ID of the private hosted zone that you want to disassociate a VPC from. // // HostedZoneId is a required field HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // A complex type containing information about the Amazon VPC that you're disassociating + // A complex type that contains information about the VPC that you're disassociating // from the specified hosted zone. // // VPC is a required field @@ -5886,12 +6625,31 @@ func (s *DisassociateVPCFromHostedZoneInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *DisassociateVPCFromHostedZoneInput) SetComment(v string) *DisassociateVPCFromHostedZoneInput { + s.Comment = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *DisassociateVPCFromHostedZoneInput) SetHostedZoneId(v string) *DisassociateVPCFromHostedZoneInput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *DisassociateVPCFromHostedZoneInput) SetVPC(v *VPC) *DisassociateVPCFromHostedZoneInput { + s.VPC = v + return s +} + // A complex type that contains the response information for the disassociate // request. type DisassociateVPCFromHostedZoneOutput struct { _ struct{} `type:"structure"` - // A complex type that describes the changes made to your hosted zone. + // A complex type that describes the changes made to the specified private hosted + // zone. // // ChangeInfo is a required field ChangeInfo *ChangeInfo `type:"structure" required:"true"` @@ -5907,6 +6665,12 @@ func (s DisassociateVPCFromHostedZoneOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *DisassociateVPCFromHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *DisassociateVPCFromHostedZoneOutput { + s.ChangeInfo = v + return s +} + // A complex type that contains information about a geo location. type GeoLocation struct { _ struct{} `type:"structure"` @@ -5956,6 +6720,24 @@ func (s *GeoLocation) Validate() error { return nil } +// SetContinentCode sets the ContinentCode field's value. +func (s *GeoLocation) SetContinentCode(v string) *GeoLocation { + s.ContinentCode = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *GeoLocation) SetCountryCode(v string) *GeoLocation { + s.CountryCode = &v + return s +} + +// SetSubdivisionCode sets the SubdivisionCode field's value. +func (s *GeoLocation) SetSubdivisionCode(v string) *GeoLocation { + s.SubdivisionCode = &v + return s +} + // A complex type that contains the codes and full continent, country, and subdivision // names for the specified geolocation code. type GeoLocationDetails struct { @@ -5992,60 +6774,40 @@ func (s GeoLocationDetails) GoString() string { return s.String() } -// The input for a GetChangeDetails request. -type GetChangeDetailsInput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The ID of the change batch. This is the value that you specified in the change - // ID parameter when you submitted the request. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` +// SetContinentCode sets the ContinentCode field's value. +func (s *GeoLocationDetails) SetContinentCode(v string) *GeoLocationDetails { + s.ContinentCode = &v + return s } -// String returns the string representation -func (s GetChangeDetailsInput) String() string { - return awsutil.Prettify(s) +// SetContinentName sets the ContinentName field's value. +func (s *GeoLocationDetails) SetContinentName(v string) *GeoLocationDetails { + s.ContinentName = &v + return s } -// GoString returns the string representation -func (s GetChangeDetailsInput) GoString() string { - return s.String() +// SetCountryCode sets the CountryCode field's value. +func (s *GeoLocationDetails) SetCountryCode(v string) *GeoLocationDetails { + s.CountryCode = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetChangeDetailsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetChangeDetailsInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCountryName sets the CountryName field's value. +func (s *GeoLocationDetails) SetCountryName(v string) *GeoLocationDetails { + s.CountryName = &v + return s } -// A complex type that contains the ChangeBatchRecord element. -type GetChangeDetailsOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // A complex type that contains information about the specified change batch, - // including the change batch ID, the status of the change, and the contained - // changes. - // - // ChangeBatchRecord is a required field - ChangeBatchRecord *ChangeBatchRecord `deprecated:"true" type:"structure" required:"true"` +// SetSubdivisionCode sets the SubdivisionCode field's value. +func (s *GeoLocationDetails) SetSubdivisionCode(v string) *GeoLocationDetails { + s.SubdivisionCode = &v + return s } -// String returns the string representation -func (s GetChangeDetailsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetChangeDetailsOutput) GoString() string { - return s.String() +// SetSubdivisionName sets the SubdivisionName field's value. +func (s *GeoLocationDetails) SetSubdivisionName(v string) *GeoLocationDetails { + s.SubdivisionName = &v + return s } // The input for a GetChange request. @@ -6083,6 +6845,12 @@ func (s *GetChangeInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetChangeInput) SetId(v string) *GetChangeInput { + s.Id = &v + return s +} + // A complex type that contains the ChangeInfo element. type GetChangeOutput struct { _ struct{} `type:"structure"` @@ -6103,6 +6871,12 @@ func (s GetChangeOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *GetChangeOutput) SetChangeInfo(v *ChangeInfo) *GetChangeOutput { + s.ChangeInfo = v + return s +} + // Empty request. type GetCheckerIpRangesInput struct { _ struct{} `type:"structure"` @@ -6139,25 +6913,31 @@ func (s GetCheckerIpRangesOutput) GoString() string { return s.String() } +// SetCheckerIpRanges sets the CheckerIpRanges field's value. +func (s *GetCheckerIpRangesOutput) SetCheckerIpRanges(v []*string) *GetCheckerIpRangesOutput { + s.CheckerIpRanges = v + return s +} + // A complex type that contains information about the request to get a geo location. type GetGeoLocationInput struct { _ struct{} `type:"structure"` - // Amazon Route 53 supports the following contintent codes: + // Amazon Route 53 supports the following continent codes: // - // AF: Africa + // * AF: Africa // - // AN: Antarctica + // * AN: Antarctica // - // AS: Asia + // * AS: Asia // - // EU: Europe + // * EU: Europe // - // OC: Oceania + // * OC: Oceania // - // NA: North America + // * NA: North America // - // SA: South America + // * SA: South America ContinentCode *string `location:"querystring" locationName:"continentcode" min:"2" type:"string"` // Amazon Route 53 uses the two-letter country codes that are specified in ISO @@ -6200,6 +6980,24 @@ func (s *GetGeoLocationInput) Validate() error { return nil } +// SetContinentCode sets the ContinentCode field's value. +func (s *GetGeoLocationInput) SetContinentCode(v string) *GetGeoLocationInput { + s.ContinentCode = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *GetGeoLocationInput) SetCountryCode(v string) *GetGeoLocationInput { + s.CountryCode = &v + return s +} + +// SetSubdivisionCode sets the SubdivisionCode field's value. +func (s *GetGeoLocationInput) SetSubdivisionCode(v string) *GetGeoLocationInput { + s.SubdivisionCode = &v + return s +} + // A complex type that contains the response information for the specified geolocation // code. type GetGeoLocationOutput struct { @@ -6222,6 +7020,12 @@ func (s GetGeoLocationOutput) GoString() string { return s.String() } +// SetGeoLocationDetails sets the GeoLocationDetails field's value. +func (s *GetGeoLocationOutput) SetGeoLocationDetails(v *GeoLocationDetails) *GetGeoLocationOutput { + s.GeoLocationDetails = v + return s +} + // To retrieve a count of all your health checks, send a GET request to the // /2013-04-01/healthcheckcount resource. type GetHealthCheckCountInput struct { @@ -6258,6 +7062,12 @@ func (s GetHealthCheckCountOutput) GoString() string { return s.String() } +// SetHealthCheckCount sets the HealthCheckCount field's value. +func (s *GetHealthCheckCountOutput) SetHealthCheckCount(v int64) *GetHealthCheckCountOutput { + s.HealthCheckCount = &v + return s +} + // This action gets information about a specified health check. // // Send a GET request to the /Amazon Route 53 API version/gethealthcheckrequest @@ -6302,6 +7112,12 @@ func (s *GetHealthCheckInput) Validate() error { return nil } +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *GetHealthCheckInput) SetHealthCheckId(v string) *GetHealthCheckInput { + s.HealthCheckId = &v + return s +} + // This action gets the reason that a specified health check failed most recently. // // To get the reason for the last failure of a health check, send a GET request @@ -6345,6 +7161,12 @@ func (s *GetHealthCheckLastFailureReasonInput) Validate() error { return nil } +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *GetHealthCheckLastFailureReasonInput) SetHealthCheckId(v string) *GetHealthCheckLastFailureReasonInput { + s.HealthCheckId = &v + return s +} + // A complex type that contains the response to a GetHealthCheckLastFailureReason // request. type GetHealthCheckLastFailureReasonOutput struct { @@ -6367,6 +7189,12 @@ func (s GetHealthCheckLastFailureReasonOutput) GoString() string { return s.String() } +// SetHealthCheckObservations sets the HealthCheckObservations field's value. +func (s *GetHealthCheckLastFailureReasonOutput) SetHealthCheckObservations(v []*HealthCheckObservation) *GetHealthCheckLastFailureReasonOutput { + s.HealthCheckObservations = v + return s +} + // A complex type that contains the response to a GetHealthCheck request. type GetHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -6388,6 +7216,12 @@ func (s GetHealthCheckOutput) GoString() string { return s.String() } +// SetHealthCheck sets the HealthCheck field's value. +func (s *GetHealthCheckOutput) SetHealthCheck(v *HealthCheck) *GetHealthCheckOutput { + s.HealthCheck = v + return s +} + // A complex type that contains information about the request to get health // check status for a health check. type GetHealthCheckStatusInput struct { @@ -6410,25 +7244,26 @@ type GetHealthCheckStatusInput struct { // want Amazon Route 53 to base the choice in part on the status of a health // check. Configuring health checks only makes sense in the following configurations: // - // You're checking the health of the resource record sets in a weighted, - // latency, geolocation, or failover resource record set, and you specify health - // check IDs for all of the resource record sets. If the health check for one - // resource record set specifies an endpoint that is not healthy, Amazon Route - // 53 stops responding to queries using the value for that resource record set. + // * You're checking the health of the resource record sets in a weighted, + // latency, geolocation, or failover resource record set, and you specify + // health check IDs for all of the resource record sets. If the health check + // for one resource record set specifies an endpoint that is not healthy, + // Amazon Route 53 stops responding to queries using the value for that resource + // record set. // - // You set EvaluateTargetHealth to true for the resource record sets in an - // alias, weighted alias, latency alias, geolocation alias, or failover alias - // resource record set, and you specify health check IDs for all of the resource - // record sets that are referenced by the alias resource record sets. For more - // information about this configuration, see EvaluateTargetHealth. + // * You set EvaluateTargetHealth to true for the resource record sets in + // an alias, weighted alias, latency alias, geolocation alias, or failover + // alias resource record set, and you specify health check IDs for all of + // the resource record sets that are referenced by the alias resource record + // sets. For more information about this configuration, see EvaluateTargetHealth. // // Amazon Route 53 doesn't check the health of the endpoint specified in the - // resource record set, for example, the endpoint specified by the IP address - // in the Value element. When you add a HealthCheckId element to a resource - // record set, Amazon Route 53 checks the health of the endpoint that you specified - // in the health check. + // resource record set, for example, the endpoint specified by the IP address + // in the Value element. When you add a HealthCheckId element to a resource + // record set, Amazon Route 53 checks the health of the endpoint that you + // specified in the health check. // - // For geolocation resource record sets, if an endpoint is unhealthy, Amazon + // For geolocation resource record sets, if an endpoint is unhealthy, Amazon // Route 53 looks for a resource record set for the larger, associated geographic // region. For example, suppose you have resource record sets for a state in // the United States, for the United States, for North America, and for all @@ -6445,10 +7280,10 @@ type GetHealthCheckStatusInput struct { // server (such as us-east-1-www.example.com), not the name of the resource // record sets (example.com). // - // In this configuration, if you create a health check for which the value - // of FullyQualifiedDomainName matches the name of the resource record sets - // and then associate the health check with those resource record sets, health - // check results will be unpredictable. + // In this configuration, if you create a health check for which the value of + // FullyQualifiedDomainName matches the name of the resource record sets and + // then associate the health check with those resource record sets, health check + // results will be unpredictable. // // HealthCheckId is a required field HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` @@ -6477,6 +7312,12 @@ func (s *GetHealthCheckStatusInput) Validate() error { return nil } +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *GetHealthCheckStatusInput) SetHealthCheckId(v string) *GetHealthCheckStatusInput { + s.HealthCheckId = &v + return s +} + // A complex type that contains the response to a GetHealthCheck request. type GetHealthCheckStatusOutput struct { _ struct{} `type:"structure"` @@ -6498,6 +7339,12 @@ func (s GetHealthCheckStatusOutput) GoString() string { return s.String() } +// SetHealthCheckObservations sets the HealthCheckObservations field's value. +func (s *GetHealthCheckStatusOutput) SetHealthCheckObservations(v []*HealthCheckObservation) *GetHealthCheckStatusOutput { + s.HealthCheckObservations = v + return s +} + // To retrieve a count of all your hosted zones, send a GET request to the /2013-04-01/hostedzonecount // resource. type GetHostedZoneCountInput struct { @@ -6535,6 +7382,12 @@ func (s GetHostedZoneCountOutput) GoString() string { return s.String() } +// SetHostedZoneCount sets the HostedZoneCount field's value. +func (s *GetHostedZoneCountOutput) SetHostedZoneCount(v int64) *GetHostedZoneCountOutput { + s.HostedZoneCount = &v + return s +} + // The input for a GetHostedZone request. type GetHostedZoneInput struct { _ struct{} `type:"structure"` @@ -6569,6 +7422,12 @@ func (s *GetHostedZoneInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetHostedZoneInput) SetId(v string) *GetHostedZoneInput { + s.Id = &v + return s +} + // A complex type containing the response information for the hosted zone. type GetHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -6596,6 +7455,24 @@ func (s GetHostedZoneOutput) GoString() string { return s.String() } +// SetDelegationSet sets the DelegationSet field's value. +func (s *GetHostedZoneOutput) SetDelegationSet(v *DelegationSet) *GetHostedZoneOutput { + s.DelegationSet = v + return s +} + +// SetHostedZone sets the HostedZone field's value. +func (s *GetHostedZoneOutput) SetHostedZone(v *HostedZone) *GetHostedZoneOutput { + s.HostedZone = v + return s +} + +// SetVPCs sets the VPCs field's value. +func (s *GetHostedZoneOutput) SetVPCs(v []*VPC) *GetHostedZoneOutput { + s.VPCs = v + return s +} + // The input for a GetReusableDelegationSet request. type GetReusableDelegationSetInput struct { _ struct{} `type:"structure"` @@ -6630,6 +7507,12 @@ func (s *GetReusableDelegationSetInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetReusableDelegationSetInput) SetId(v string) *GetReusableDelegationSetInput { + s.Id = &v + return s +} + // A complex type that contains the response to the GetReusableDelegationSet // request. type GetReusableDelegationSetOutput struct { @@ -6651,6 +7534,12 @@ func (s GetReusableDelegationSetOutput) GoString() string { return s.String() } +// SetDelegationSet sets the DelegationSet field's value. +func (s *GetReusableDelegationSetOutput) SetDelegationSet(v *DelegationSet) *GetReusableDelegationSetOutput { + s.DelegationSet = v + return s +} + // Gets information about a specific traffic policy version. To get the information, // send a GET request to the /2013-04-01/trafficpolicy resource, and specify // the ID and the version of the traffic policy. @@ -6698,6 +7587,18 @@ func (s *GetTrafficPolicyInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetTrafficPolicyInput) SetId(v string) *GetTrafficPolicyInput { + s.Id = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetTrafficPolicyInput) SetVersion(v int64) *GetTrafficPolicyInput { + s.Version = &v + return s +} + // To retrieve a count of all your traffic policy instances, send a GET request // to the /2013-04-01/trafficpolicyinstancecount resource. type GetTrafficPolicyInstanceCountInput struct { @@ -6736,10 +7637,16 @@ func (s GetTrafficPolicyInstanceCountOutput) GoString() string { return s.String() } +// SetTrafficPolicyInstanceCount sets the TrafficPolicyInstanceCount field's value. +func (s *GetTrafficPolicyInstanceCountOutput) SetTrafficPolicyInstanceCount(v int64) *GetTrafficPolicyInstanceCountOutput { + s.TrafficPolicyInstanceCount = &v + return s +} + // Gets information about a specified traffic policy instance. // // To get information about a traffic policy instance, send a GET request to -// the /Amazon Route 53 API version/trafficpolicyinstance/Id resource. +// the /Amazon Route 53 API version/trafficpolicyinstance/Id resource. type GetTrafficPolicyInstanceInput struct { _ struct{} `type:"structure"` @@ -6772,6 +7679,12 @@ func (s *GetTrafficPolicyInstanceInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetTrafficPolicyInstanceInput) SetId(v string) *GetTrafficPolicyInstanceInput { + s.Id = &v + return s +} + // A complex type that contains information about the resource record sets that // Amazon Route 53 created based on a specified traffic policy. type GetTrafficPolicyInstanceOutput struct { @@ -6793,6 +7706,12 @@ func (s GetTrafficPolicyInstanceOutput) GoString() string { return s.String() } +// SetTrafficPolicyInstance sets the TrafficPolicyInstance field's value. +func (s *GetTrafficPolicyInstanceOutput) SetTrafficPolicyInstance(v *TrafficPolicyInstance) *GetTrafficPolicyInstanceOutput { + s.TrafficPolicyInstance = v + return s +} + // A complex type that contains the response information for the request. type GetTrafficPolicyOutput struct { _ struct{} `type:"structure"` @@ -6813,6 +7732,12 @@ func (s GetTrafficPolicyOutput) GoString() string { return s.String() } +// SetTrafficPolicy sets the TrafficPolicy field's value. +func (s *GetTrafficPolicyOutput) SetTrafficPolicy(v *TrafficPolicy) *GetTrafficPolicyOutput { + s.TrafficPolicy = v + return s +} + // A complex type that contains information about one health check that is associated // with the current AWS account. type HealthCheck struct { @@ -6858,6 +7783,36 @@ func (s HealthCheck) GoString() string { return s.String() } +// SetCallerReference sets the CallerReference field's value. +func (s *HealthCheck) SetCallerReference(v string) *HealthCheck { + s.CallerReference = &v + return s +} + +// SetCloudWatchAlarmConfiguration sets the CloudWatchAlarmConfiguration field's value. +func (s *HealthCheck) SetCloudWatchAlarmConfiguration(v *CloudWatchAlarmConfiguration) *HealthCheck { + s.CloudWatchAlarmConfiguration = v + return s +} + +// SetHealthCheckConfig sets the HealthCheckConfig field's value. +func (s *HealthCheck) SetHealthCheckConfig(v *HealthCheckConfig) *HealthCheck { + s.HealthCheckConfig = v + return s +} + +// SetHealthCheckVersion sets the HealthCheckVersion field's value. +func (s *HealthCheck) SetHealthCheckVersion(v int64) *HealthCheck { + s.HealthCheckVersion = &v + return s +} + +// SetId sets the Id field's value. +func (s *HealthCheck) SetId(v string) *HealthCheck { + s.Id = &v + return s +} + // A complex type that contains information about the health check. type HealthCheckConfig struct { _ struct{} `type:"structure"` @@ -6877,11 +7832,11 @@ type HealthCheckConfig struct { // allows the endpoint to respond to HTTPS health check requests with the applicable // SSL/TLS certificate. // - // Some endpoints require that HTTPS requests include the host name in the - // client_hello message. If you don't enable SNI, the status of the health check - // will be SSL alert handshake_failure. A health check can also have that status - // for other reasons. If SNI is enabled and you're still getting the error, - // check the SSL/TLS configuration on your endpoint and confirm that your certificate + // Some endpoints require that HTTPS requests include the host name in the client_hello + // message. If you don't enable SNI, the status of the health check will be + // SSL alert handshake_failure. A health check can also have that status for + // other reasons. If SNI is enabled and you're still getting the error, check + // the SSL/TLS configuration on your endpoint and confirm that your certificate // is valid. // // The SSL/TLS certificate on your endpoint includes a domain name in the Common @@ -6903,7 +7858,7 @@ type HealthCheckConfig struct { // Amazon Route 53 behavior depends on whether you specify a value for IPAddress. // - // If you specify IPAddress: + // If you specifyIPAddress: // // The value that you want Amazon Route 53 to pass in the Host header in all // health checks except TCP health checks. This is typically the fully qualified @@ -6911,28 +7866,28 @@ type HealthCheckConfig struct { // Route 53 checks the health of an endpoint, here is how it constructs the // Host header: // - // If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for Type, - // Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint - // in the Host header. + // * If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for + // Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to + // the endpoint in the Host header. // - // If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH for - // Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the - // endpoint in the Host header. + // * If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH + // for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName + // to the endpoint in the Host header. // - // If you specify another value for Port and any value except TCP for Type, - // Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in the - // Host header. + // * If you specify another value for Port and any value except TCP for Type, + // Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in + // the Host header. // - // If you don't specify a value for FullyQualifiedDomainName, Amazon Route - // 53 substitutes the value of IPAddress in the Host header in each of the preceding + // If you don't specify a value for FullyQualifiedDomainName, Amazon Route 53 + // substitutes the value of IPAddress in the Host header in each of the preceding // cases. // - // If you don't specify IPAddress: + // If you don't specifyIPAddress: // - // If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS - // request to the domain that you specify in FullyQualifiedDomainName at the - // interval you specify in RequestInterval. Using an IP address that DNS returns, - // Amazon Route 53 then checks the health of the endpoint. + // If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request + // to the domain that you specify in FullyQualifiedDomainName at the interval + // you specify in RequestInterval. Using an IP address that DNS returns, Amazon + // Route 53 then checks the health of the endpoint. // // If you want to check the health of weighted, latency, or failover resource // record sets and you choose to specify the endpoint only by FullyQualifiedDomainName, @@ -6942,12 +7897,12 @@ type HealthCheckConfig struct { // domain name of the server (such as us-east-1-www.example.com), not the name // of the resource record sets (www.example.com). // - // In this configuration, if you create a health check for which the value - // of FullyQualifiedDomainName matches the name of the resource record sets - // and you then associate the health check with those resource record sets, - // health check results will be unpredictable. + // In this configuration, if you create a health check for which the value of + // FullyQualifiedDomainName matches the name of the resource record sets and + // you then associate the health check with those resource record sets, health + // check results will be unpredictable. // - // In addition, if the value that you specify for Type is HTTP, HTTPS, HTTP_STR_MATCH, + // In addition, if the value that you specify for Type is HTTP, HTTPS, HTTP_STR_MATCH, // or HTTPS_STR_MATCH, Amazon Route 53 passes the value of FullyQualifiedDomainName // in the Host header, as it does when you specify a value for IPAddress. If // the value of Type is TCP, Amazon Route 53 doesn't pass a Host header. @@ -6961,11 +7916,11 @@ type HealthCheckConfig struct { // // Note the following: // - // If you specify a number greater than the number of child health checks, - // Amazon Route 53 always considers this health check to be unhealthy. + // * If you specify a number greater than the number of child health checks, + // Amazon Route 53 always considers this health check to be unhealthy. // - // If you specify 0, Amazon Route 53 always considers this health check to - // be healthy. + // * If you specify 0, Amazon Route 53 always considers this health check + // to be healthy. HealthThreshold *int64 `type:"integer"` // The IPv4 IP address of the endpoint on which you want Amazon Route 53 to @@ -6975,17 +7930,17 @@ type HealthCheckConfig struct { // Using an IP address that DNS returns, Amazon Route 53 then checks the health // of the endpoint. // - // If the endpoint is an Amazon EC2 instance, we recommend that you create - // an Elastic IP address, associate it with your Amazon EC2 instance, and specify - // the Elastic IP address for IPAddress. This ensures that the IP address of - // your instance will never change. + // If the endpoint is an EC2 instance, we recommend that you create an Elastic + // IP address, associate it with your EC2 instance, and specify the Elastic + // IP address for IPAddress. This ensures that the IP address of your instance + // will never change. // // For more information, see HealthCheckConfig$FullyQualifiedDomainName. // - // Contraints: Amazon Route 53 cannot check the health of endpoints for which - // the IP address is in local, private, non-routable, or multicast ranges. For - // more information about IP addresses for which you cannot create health checks, - // see RFC 5735, Special Use IPv4 Addresses (https://tools.ietf.org/html/rfc5735) + // Constraints: Amazon Route 53 can't check the health of endpoints for which + // the IP address is in local, private, non-routable, or \ multicast ranges. + // For more information about IP addresses for which you can't create health + // checks, see RFC 5735, Special Use IPv4 Addresses (https://tools.ietf.org/html/rfc5735) // and RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space (https://tools.ietf.org/html/rfc6598). // // When the value of Type is CALCULATED or CLOUDWATCH_METRIC, omit IPAddress. @@ -6994,14 +7949,14 @@ type HealthCheckConfig struct { // When CloudWatch has insufficient data about the metric to determine the alarm // state, the status that you want Amazon Route 53 to assign to the health check: // - // Healthy: Amazon Route 53 considers the health check to be healthy. + // * Healthy: Amazon Route 53 considers the health check to be healthy. // - // Unhealthy: Amazon Route 53 considers the health check to be unhealthy. + // * Unhealthy: Amazon Route 53 considers the health check to be unhealthy. // - // LastKnownStatus: Amazon Route 53uses the status of the health check from - // the last time CloudWatch had sufficient data to determine the alarm state. - // For new health checks that have no last known status, the default status - // for the health check is healthy. + // * LastKnownStatus: Amazon Route 53uses the status of the health check + // from the last time CloudWatch had sufficient data to determine the alarm + // state. For new health checks that have no last known status, the default + // status for the health check is healthy. InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"` // Specify whether you want Amazon Route 53 to invert the status of a health @@ -7013,8 +7968,7 @@ type HealthCheckConfig struct { // checkers in multiple AWS regions and your endpoint, and to display CloudWatch // latency graphs on the Health Checks page in the Amazon Route 53 console. // - // You can't change the value of MeasureLatency after you create a health - // check. + // You can't change the value of MeasureLatency after you create a health check. MeasureLatency *bool `type:"boolean"` // The port on the endpoint on which you want Amazon Route 53 to perform health @@ -7029,8 +7983,7 @@ type HealthCheckConfig struct { // from your endpoint and the time that it sends the next health-check request. // Each Amazon Route 53 health checker makes requests at this interval. // - // You can't change the value of RequestInterval after you create a health - // check. + // You can't change the value of RequestInterval after you create a health check. RequestInterval *int64 `min:"10" type:"integer"` // The path, if any, that you want Amazon Route 53 to request when performing @@ -7051,45 +8004,46 @@ type HealthCheckConfig struct { // The type of health check that you want to create, which indicates how Amazon // Route 53 determines whether an endpoint is healthy. // - // You can't change the value of Type after you create a health check. + // You can't change the value of Type after you create a health check. // - // You can create the following types of health checks: + // You can create the following types of health checks: // - // HTTP: Amazon Route 53 tries to establish a TCP connection. If successful, - // Amazon Route 53 submits an HTTP request and waits for an HTTP status code - // of 200 or greater and less than 400. + // * HTTP: Amazon Route 53 tries to establish a TCP connection. If successful, + // Amazon Route 53 submits an HTTP request and waits for an HTTP status code + // of 200 or greater and less than 400. // - // HTTPS: Amazon Route 53 tries to establish a TCP connection. If successful, - // Amazon Route 53 submits an HTTPS request and waits for an HTTP status code - // of 200 or greater and less than 400. + // * HTTPS: Amazon Route 53 tries to establish a TCP connection. If successful, + // Amazon Route 53 submits an HTTPS request and waits for an HTTP status + // code of 200 or greater and less than 400. // - // If you specify HTTPS for the value of Type, the endpoint must support TLS - // v1.0 or later. + // If you specify HTTPS for the value of Type, the endpoint must support TLS + // v1.0 or later. // - // HTTP_STR_MATCH: Amazon Route 53 tries to establish a TCP connection. - // If successful, Amazon Route 53 submits an HTTP request and searches the first - // 5,120 bytes of the response body for the string that you specify in SearchString. + // * HTTP_STR_MATCH: Amazon Route 53 tries to establish a TCP connection. + // If successful, Amazon Route 53 submits an HTTP request and searches the + // first 5,120 bytes of the response body for the string that you specify + // in SearchString. // - // HTTPS_STR_MATCH: Amazon Route 53 tries to establish a TCP connection. - // If successful, Amazon Route 53 submits an HTTPS request and searches the - // first 5,120 bytes of the response body for the string that you specify in - // SearchString. + // * HTTPS_STR_MATCH: Amazon Route 53 tries to establish a TCP connection. + // If successful, Amazon Route 53 submits an HTTPS request and searches the + // first 5,120 bytes of the response body for the string that you specify + // in SearchString. // - // TCP: Amazon Route 53 tries to establish a TCP connection. + // * TCP: Amazon Route 53 tries to establish a TCP connection. // - // CLOUDWATCH_METRIC: The health check is associated with a CloudWatch alarm. - // If the state of the alarm is OK, the health check is considered healthy. - // If the state is ALARM, the health check is considered unhealthy. If CloudWatch - // doesn't have sufficient data to determine whether the state is OK or ALARM, - // the health check status depends on the setting for InsufficientDataHealthStatus: - // Healthy, Unhealthy, or LastKnownStatus. + // * CLOUDWATCH_METRIC: The health check is associated with a CloudWatch + // alarm. If the state of the alarm is OK, the health check is considered + // healthy. If the state is ALARM, the health check is considered unhealthy. + // If CloudWatch doesn't have sufficient data to determine whether the state + // is OK or ALARM, the health check status depends on the setting for InsufficientDataHealthStatus: + // Healthy, Unhealthy, or LastKnownStatus. // - // CALCULATED: For health checks that monitor the status of other health - // checks, Amazon Route 53 adds up the number of health checks that Amazon Route - // 53 health checkers consider to be healthy and compares that number with the - // value of HealthThreshold. + // * CALCULATED: For health checks that monitor the status of other health + // checks, Amazon Route 53 adds up the number of health checks that Amazon + // Route 53 health checkers consider to be healthy and compares that number + // with the value of HealthThreshold. // - // For more information about how Amazon Route 53 determines whether an endpoint + // For more information about how Amazon Route 53 determines whether an endpoint // is healthy, see the introduction to this topic. // // Type is a required field @@ -7136,6 +8090,102 @@ func (s *HealthCheckConfig) Validate() error { return nil } +// SetAlarmIdentifier sets the AlarmIdentifier field's value. +func (s *HealthCheckConfig) SetAlarmIdentifier(v *AlarmIdentifier) *HealthCheckConfig { + s.AlarmIdentifier = v + return s +} + +// SetChildHealthChecks sets the ChildHealthChecks field's value. +func (s *HealthCheckConfig) SetChildHealthChecks(v []*string) *HealthCheckConfig { + s.ChildHealthChecks = v + return s +} + +// SetEnableSNI sets the EnableSNI field's value. +func (s *HealthCheckConfig) SetEnableSNI(v bool) *HealthCheckConfig { + s.EnableSNI = &v + return s +} + +// SetFailureThreshold sets the FailureThreshold field's value. +func (s *HealthCheckConfig) SetFailureThreshold(v int64) *HealthCheckConfig { + s.FailureThreshold = &v + return s +} + +// SetFullyQualifiedDomainName sets the FullyQualifiedDomainName field's value. +func (s *HealthCheckConfig) SetFullyQualifiedDomainName(v string) *HealthCheckConfig { + s.FullyQualifiedDomainName = &v + return s +} + +// SetHealthThreshold sets the HealthThreshold field's value. +func (s *HealthCheckConfig) SetHealthThreshold(v int64) *HealthCheckConfig { + s.HealthThreshold = &v + return s +} + +// SetIPAddress sets the IPAddress field's value. +func (s *HealthCheckConfig) SetIPAddress(v string) *HealthCheckConfig { + s.IPAddress = &v + return s +} + +// SetInsufficientDataHealthStatus sets the InsufficientDataHealthStatus field's value. +func (s *HealthCheckConfig) SetInsufficientDataHealthStatus(v string) *HealthCheckConfig { + s.InsufficientDataHealthStatus = &v + return s +} + +// SetInverted sets the Inverted field's value. +func (s *HealthCheckConfig) SetInverted(v bool) *HealthCheckConfig { + s.Inverted = &v + return s +} + +// SetMeasureLatency sets the MeasureLatency field's value. +func (s *HealthCheckConfig) SetMeasureLatency(v bool) *HealthCheckConfig { + s.MeasureLatency = &v + return s +} + +// SetPort sets the Port field's value. +func (s *HealthCheckConfig) SetPort(v int64) *HealthCheckConfig { + s.Port = &v + return s +} + +// SetRegions sets the Regions field's value. +func (s *HealthCheckConfig) SetRegions(v []*string) *HealthCheckConfig { + s.Regions = v + return s +} + +// SetRequestInterval sets the RequestInterval field's value. +func (s *HealthCheckConfig) SetRequestInterval(v int64) *HealthCheckConfig { + s.RequestInterval = &v + return s +} + +// SetResourcePath sets the ResourcePath field's value. +func (s *HealthCheckConfig) SetResourcePath(v string) *HealthCheckConfig { + s.ResourcePath = &v + return s +} + +// SetSearchString sets the SearchString field's value. +func (s *HealthCheckConfig) SetSearchString(v string) *HealthCheckConfig { + s.SearchString = &v + return s +} + +// SetType sets the Type field's value. +func (s *HealthCheckConfig) SetType(v string) *HealthCheckConfig { + s.Type = &v + return s +} + // A complex type that contains the last failure reason as reported by one Amazon // Route 53 health checker. type HealthCheckObservation struct { @@ -7164,6 +8214,24 @@ func (s HealthCheckObservation) GoString() string { return s.String() } +// SetIPAddress sets the IPAddress field's value. +func (s *HealthCheckObservation) SetIPAddress(v string) *HealthCheckObservation { + s.IPAddress = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *HealthCheckObservation) SetRegion(v string) *HealthCheckObservation { + s.Region = &v + return s +} + +// SetStatusReport sets the StatusReport field's value. +func (s *HealthCheckObservation) SetStatusReport(v *StatusReport) *HealthCheckObservation { + s.StatusReport = v + return s +} + // A complex type that contains general information about the hosted zone. type HostedZone struct { _ struct{} `type:"structure"` @@ -7208,6 +8276,36 @@ func (s HostedZone) GoString() string { return s.String() } +// SetCallerReference sets the CallerReference field's value. +func (s *HostedZone) SetCallerReference(v string) *HostedZone { + s.CallerReference = &v + return s +} + +// SetConfig sets the Config field's value. +func (s *HostedZone) SetConfig(v *HostedZoneConfig) *HostedZone { + s.Config = v + return s +} + +// SetId sets the Id field's value. +func (s *HostedZone) SetId(v string) *HostedZone { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *HostedZone) SetName(v string) *HostedZone { + s.Name = &v + return s +} + +// SetResourceRecordSetCount sets the ResourceRecordSetCount field's value. +func (s *HostedZone) SetResourceRecordSetCount(v int64) *HostedZone { + s.ResourceRecordSetCount = &v + return s +} + // A complex type that contains an optional comment about your hosted zone. // If you don't want to specify a comment, omit both the HostedZoneConfig and // Comment elements. @@ -7231,211 +8329,16 @@ func (s HostedZoneConfig) GoString() string { return s.String() } -// The input for a ListChangeBatchesByHostedZone request. -type ListChangeBatchesByHostedZoneInput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The end of the time period you want to see changes for. - // - // EndDate is a required field - EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"` - - // The ID of the hosted zone that you want to see changes for. - // - // HostedZoneId is a required field - HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The page marker. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The maximum number of items on a page. - MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"` - - // The start of the time period you want to see changes for. - // - // StartDate is a required field - StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"` +// SetComment sets the Comment field's value. +func (s *HostedZoneConfig) SetComment(v string) *HostedZoneConfig { + s.Comment = &v + return s } -// String returns the string representation -func (s ListChangeBatchesByHostedZoneInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByHostedZoneInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListChangeBatchesByHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByHostedZoneInput"} - if s.EndDate == nil { - invalidParams.Add(request.NewErrParamRequired("EndDate")) - } - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.StartDate == nil { - invalidParams.Add(request.NewErrParamRequired("StartDate")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type containing the response information for the request. -type ListChangeBatchesByHostedZoneOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The change batches within the given hosted zone and time period. - // - // ChangeBatchRecords is a required field - ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"` - - // A flag that indicates if there are more change batches to list. - IsTruncated *bool `type:"boolean"` - - // For the second and subsequent calls to ListHostedZones, Marker is the value - // that you specified for the marker parameter in the request that produced - // the current response. - // - // Marker is a required field - Marker *string `type:"string" required:"true"` - - // The value that you specified for the maxitems parameter in the call to ListHostedZones - // that produced the current response. - // - // MaxItems is a required field - MaxItems *string `type:"string" required:"true"` - - // The next page marker. - NextMarker *string `type:"string"` -} - -// String returns the string representation -func (s ListChangeBatchesByHostedZoneOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByHostedZoneOutput) GoString() string { - return s.String() -} - -// The input for a ListChangeBatchesByRRSet request. -type ListChangeBatchesByRRSetInput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The end of the time period you want to see changes for. - // - // EndDate is a required field - EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"` - - // The ID of the hosted zone that you want to see changes for. - // - // HostedZoneId is a required field - HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The page marker. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The maximum number of items on a page. - MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"` - - // The name of the RRSet that you want to see changes for. - // - // Name is a required field - Name *string `location:"querystring" locationName:"rrSet_name" type:"string" required:"true"` - - // The identifier of the RRSet that you want to see changes for. - SetIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"` - - // The start of the time period you want to see changes for. - // - // StartDate is a required field - StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"` - - // The type of the RRSet that you want to see changes for. - // - // Type is a required field - Type *string `location:"querystring" locationName:"type" type:"string" required:"true" enum:"RRType"` -} - -// String returns the string representation -func (s ListChangeBatchesByRRSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByRRSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListChangeBatchesByRRSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByRRSetInput"} - if s.EndDate == nil { - invalidParams.Add(request.NewErrParamRequired("EndDate")) - } - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1)) - } - if s.StartDate == nil { - invalidParams.Add(request.NewErrParamRequired("StartDate")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for a ListChangeBatchesByRRSet request. -type ListChangeBatchesByRRSetOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The change batches within the given hosted zone and time period. - // - // ChangeBatchRecords is a required field - ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"` - - // A flag that indicates if there are more change batches to list. - IsTruncated *bool `type:"boolean"` - - // The page marker. - // - // Marker is a required field - Marker *string `type:"string" required:"true"` - - // The maximum number of items on a page. - // - // MaxItems is a required field - MaxItems *string `type:"string" required:"true"` - - // The next page marker. - NextMarker *string `type:"string"` -} - -// String returns the string representation -func (s ListChangeBatchesByRRSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByRRSetOutput) GoString() string { - return s.String() +// SetPrivateZone sets the PrivateZone field's value. +func (s *HostedZoneConfig) SetPrivateZone(v bool) *HostedZoneConfig { + s.PrivateZone = &v + return s } // To get a list of geographic locations that Amazon Route 53 supports for geolocation, @@ -7472,8 +8375,8 @@ type ListGeoLocationsInput struct { // from the previous response has a value, enter that value in StartCountryCode // to return the next page of results. // - // Amazon Route 53 uses the two-letter country codes that are specified in - // ISO standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). + // Amazon Route 53 uses the two-letter country codes that are specified in ISO + // standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). StartCountryCode *string `location:"querystring" locationName:"startcountrycode" min:"1" type:"string"` // The code for the subdivision (for example, state or province) with which @@ -7516,6 +8419,30 @@ func (s *ListGeoLocationsInput) Validate() error { return nil } +// SetMaxItems sets the MaxItems field's value. +func (s *ListGeoLocationsInput) SetMaxItems(v string) *ListGeoLocationsInput { + s.MaxItems = &v + return s +} + +// SetStartContinentCode sets the StartContinentCode field's value. +func (s *ListGeoLocationsInput) SetStartContinentCode(v string) *ListGeoLocationsInput { + s.StartContinentCode = &v + return s +} + +// SetStartCountryCode sets the StartCountryCode field's value. +func (s *ListGeoLocationsInput) SetStartCountryCode(v string) *ListGeoLocationsInput { + s.StartCountryCode = &v + return s +} + +// SetStartSubdivisionCode sets the StartSubdivisionCode field's value. +func (s *ListGeoLocationsInput) SetStartSubdivisionCode(v string) *ListGeoLocationsInput { + s.StartSubdivisionCode = &v + return s +} + // A complex type containing the response information for the request. type ListGeoLocationsOutput struct { _ struct{} `type:"structure"` @@ -7542,17 +8469,17 @@ type ListGeoLocationsOutput struct { // If IsTruncated is true, you can make a follow-up request to display more // locations. Enter the value of NextContinentCode in the StartContinentCode - // parameter in another GET ListGeoLocations request. + // parameter in another GETListGeoLocations request. NextContinentCode *string `min:"2" type:"string"` // If IsTruncated is true, you can make a follow-up request to display more // locations. Enter the value of NextCountryCode in the StartCountryCode parameter - // in another GET ListGeoLocations request. + // in another GETListGeoLocations request. NextCountryCode *string `min:"1" type:"string"` // If IsTruncated is true, you can make a follow-up request to display more // locations. Enter the value of NextSubdivisionCode in the StartSubdivisionCode - // parameter in another GET ListGeoLocations request. + // parameter in another GETListGeoLocations request. NextSubdivisionCode *string `min:"1" type:"string"` } @@ -7566,6 +8493,42 @@ func (s ListGeoLocationsOutput) GoString() string { return s.String() } +// SetGeoLocationDetailsList sets the GeoLocationDetailsList field's value. +func (s *ListGeoLocationsOutput) SetGeoLocationDetailsList(v []*GeoLocationDetails) *ListGeoLocationsOutput { + s.GeoLocationDetailsList = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListGeoLocationsOutput) SetIsTruncated(v bool) *ListGeoLocationsOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListGeoLocationsOutput) SetMaxItems(v string) *ListGeoLocationsOutput { + s.MaxItems = &v + return s +} + +// SetNextContinentCode sets the NextContinentCode field's value. +func (s *ListGeoLocationsOutput) SetNextContinentCode(v string) *ListGeoLocationsOutput { + s.NextContinentCode = &v + return s +} + +// SetNextCountryCode sets the NextCountryCode field's value. +func (s *ListGeoLocationsOutput) SetNextCountryCode(v string) *ListGeoLocationsOutput { + s.NextCountryCode = &v + return s +} + +// SetNextSubdivisionCode sets the NextSubdivisionCode field's value. +func (s *ListGeoLocationsOutput) SetNextSubdivisionCode(v string) *ListGeoLocationsOutput { + s.NextSubdivisionCode = &v + return s +} + // To retrieve a list of your health checks, send a GET request to the /2013-04-01/healthcheck // resource. The response to this request includes a HealthChecks element with // zero or more HealthCheck child elements. By default, the list of health checks @@ -7573,8 +8536,8 @@ func (s ListGeoLocationsOutput) GoString() string { // is displayed by using the MaxItems parameter. You can use the Marker parameter // to control the health check that the list begins with. // -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. +// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a +// value greater than 100, Amazon Route 53 returns only the first 100. type ListHealthChecksInput struct { _ struct{} `type:"structure"` @@ -7591,15 +8554,15 @@ type ListHealthChecksInput struct { // For example, suppose you specify 10 for maxitems and the current AWS account // has 51 health checks. In the response, ListHealthChecks sets ListHealthChecksResponse$IsTruncated // to true and includes the ListHealthChecksResponse$NextMarker element. To - // access the second and subsequent pages, you resend the GET ListHealthChecks + // access the second and subsequent pages, you resend the GETListHealthChecks // request, add the ListHealthChecksResponse$Marker parameter to the request, // and specify the value of the ListHealthChecksResponse$NextMarker element // from the previous response. On the last (sixth) page of the response, which // contains only one HealthCheck element: // - // The value of ListHealthChecksResponse$IsTruncated is false. + // * The value of ListHealthChecksResponse$IsTruncated is false. // - // ListHealthChecksResponse$NextMarker is omitted. + // * ListHealthChecksResponse$NextMarker is omitted. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` } @@ -7613,6 +8576,18 @@ func (s ListHealthChecksInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListHealthChecksInput) SetMarker(v string) *ListHealthChecksInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHealthChecksInput) SetMaxItems(v string) *ListHealthChecksInput { + s.MaxItems = &v + return s +} + // A complex type that contains the response to a ListHealthChecks request. type ListHealthChecksOutput struct { _ struct{} `type:"structure"` @@ -7661,13 +8636,43 @@ func (s ListHealthChecksOutput) GoString() string { return s.String() } +// SetHealthChecks sets the HealthChecks field's value. +func (s *ListHealthChecksOutput) SetHealthChecks(v []*HealthCheck) *ListHealthChecksOutput { + s.HealthChecks = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListHealthChecksOutput) SetIsTruncated(v bool) *ListHealthChecksOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListHealthChecksOutput) SetMarker(v string) *ListHealthChecksOutput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHealthChecksOutput) SetMaxItems(v string) *ListHealthChecksOutput { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListHealthChecksOutput) SetNextMarker(v string) *ListHealthChecksOutput { + s.NextMarker = &v + return s +} + // To retrieve a list of your public and private hosted zones in ASCII order // by domain name, send a GET request to the /Amazon Route 53 API version/hostedzonesbyname // resource. The response to this request includes a HostedZone child element // for each hosted zone that was created by the current AWS account. ListHostedZonesByName // sorts hosted zones by name with the labels reversed, for example: // -// com.example.www. +// com.example.www. // // Note the trailing dot, which can change the sort order in some circumstances. // @@ -7681,31 +8686,32 @@ func (s ListHealthChecksOutput) GoString() string { // domain names, see DNS Domain Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html) // in the Amazon Route 53 Developer Guide. // -// Amazon Route 53 returns up to 100 items in each response. If you have a -// lot of hosted zones, you can use the MaxItems parameter to list them in groups +// Amazon Route 53 returns up to 100 items in each response. If you have a lot +// of hosted zones, you can use the MaxItems parameter to list them in groups // of up to 100. The response includes values that help you navigate from one // group of MaxItems hosted zones to the next: // -// The DNSName and HostedZoneId elements in the response contain the values, -// if any, that you specified for the dnsname and hostedzoneid parameters in -// the request that produced the current response. +// * The DNSName and HostedZoneId elements in the response contain the values, +// if any, that you specified for the dnsname and hostedzoneid parameters +// in the request that produced the current response. // -// The MaxItems element in the response contains the value, if any, that -// you specified for the maxitems parameter in the request that produced the -// current response. +// * The MaxItems element in the response contains the value, if any, that +// you specified for the maxitems parameter in the request that produced +// the current response. // -// If the value of IsTruncated in the response is true, there are more hosted -// zones associated with the current Amazon Route 53 account. +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current Amazon Route 53 account. // // If IsTruncated is false, this response includes the last hosted zone that -// is associated with the current account. The NextDNSName element and NextHostedZoneId -// elements are omitted from the response. +// is associated with the current account. The NextDNSName element and NextHostedZoneId +// elements are omitted from the response. // -// The NextDNSName and NextHostedZoneId elements in the response contain -// the domain name and the hosted zone ID of the next hosted zone that is associated -// with the current AWS account. If you want to list more hosted zones, make -// another call to ListHostedZonesByName, and specify the value of NextDNSName -// and NextHostedZoneId in the dnsname and hostedzoneid parameters, respectively. +// * The NextDNSName and NextHostedZoneId elements in the response contain +// the domain name and the hosted zone ID of the next hosted zone that is +// associated with the current AWS account. If you want to list more hosted +// zones, make another call to ListHostedZonesByName, and specify the value +// of NextDNSName and NextHostedZoneId in the dnsname and hostedzoneid parameters, +// respectively. type ListHostedZonesByNameInput struct { _ struct{} `type:"structure"` @@ -7746,6 +8752,24 @@ func (s ListHostedZonesByNameInput) GoString() string { return s.String() } +// SetDNSName sets the DNSName field's value. +func (s *ListHostedZonesByNameInput) SetDNSName(v string) *ListHostedZonesByNameInput { + s.DNSName = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListHostedZonesByNameInput) SetHostedZoneId(v string) *ListHostedZonesByNameInput { + s.HostedZoneId = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHostedZonesByNameInput) SetMaxItems(v string) *ListHostedZonesByNameInput { + s.MaxItems = &v + return s +} + // A complex type that contains the response information for the request. type ListHostedZonesByNameOutput struct { _ struct{} `type:"structure"` @@ -7806,38 +8830,83 @@ func (s ListHostedZonesByNameOutput) GoString() string { return s.String() } +// SetDNSName sets the DNSName field's value. +func (s *ListHostedZonesByNameOutput) SetDNSName(v string) *ListHostedZonesByNameOutput { + s.DNSName = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListHostedZonesByNameOutput) SetHostedZoneId(v string) *ListHostedZonesByNameOutput { + s.HostedZoneId = &v + return s +} + +// SetHostedZones sets the HostedZones field's value. +func (s *ListHostedZonesByNameOutput) SetHostedZones(v []*HostedZone) *ListHostedZonesByNameOutput { + s.HostedZones = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListHostedZonesByNameOutput) SetIsTruncated(v bool) *ListHostedZonesByNameOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHostedZonesByNameOutput) SetMaxItems(v string) *ListHostedZonesByNameOutput { + s.MaxItems = &v + return s +} + +// SetNextDNSName sets the NextDNSName field's value. +func (s *ListHostedZonesByNameOutput) SetNextDNSName(v string) *ListHostedZonesByNameOutput { + s.NextDNSName = &v + return s +} + +// SetNextHostedZoneId sets the NextHostedZoneId field's value. +func (s *ListHostedZonesByNameOutput) SetNextHostedZoneId(v string) *ListHostedZonesByNameOutput { + s.NextHostedZoneId = &v + return s +} + // To retrieve a list of your public and private hosted zones, send a GET request // to the /2013-04-01/hostedzone resource. The response to this request includes // a HostedZone child element for each hosted zone that was created by the current // AWS account. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of hosted zones, you can use the maxitems parameter to list them -// in groups of up to 100. The response includes four values that help you navigate +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of hosted zones, you can use the maxitems parameter to list them in +// groups of up to 100. The response includes four values that help you navigate // from one group of maxitems hosted zones to the next: // -// MaxItems is the value that you specified for the maxitems parameter in -// the request that produced the current response. +// * MaxItems is the value that you specified for the maxitems parameter +// in the request that produced the current response. // -// If the value of IsTruncated in the response is true, there are more hosted -// zones associated with the current AWS account. +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current AWS account. // // If IsTruncated is false, this response includes the last hosted zone that -// is associated with the current account. +// is associated with the current account. // -// NextMarker is the hosted zone ID of the next hosted zone that is associated -// with the current AWS account. If you want to list more hosted zones, make -// another call to ListHostedZones, and specify the value of the NextMarker -// element in the marker parameter. +// * NextMarker is the hosted zone ID of the next hosted zone that is associated +// with the current AWS account. If you want to list more hosted zones, make +// another call to ListHostedZones, and specify the value of the NextMarker +// element in the marker parameter. // // If IsTruncated is false, the NextMarker element is omitted from the response. // -// If you're making the second or subsequent call to ListHostedZones, the -// Marker element matches the value that you specified in the marker parameter -// in the previous request. +// * If you're making the second or subsequent call to ListHostedZones, the +// Marker element matches the value that you specified in the marker parameter +// in the previous request. type ListHostedZonesInput struct { _ struct{} `type:"structure"` + // If you're using reusable delegation sets and you want to list all of the + // hosted zones that are associated with a reusable delegation set, specify + // the ID of that reusable delegation set. DelegationSetId *string `location:"querystring" locationName:"delegationsetid" type:"string"` // (Optional) If you have more hosted zones than the value of maxitems, ListHostedZones @@ -7867,6 +8936,24 @@ func (s ListHostedZonesInput) GoString() string { return s.String() } +// SetDelegationSetId sets the DelegationSetId field's value. +func (s *ListHostedZonesInput) SetDelegationSetId(v string) *ListHostedZonesInput { + s.DelegationSetId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListHostedZonesInput) SetMarker(v string) *ListHostedZonesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHostedZonesInput) SetMaxItems(v string) *ListHostedZonesInput { + s.MaxItems = &v + return s +} + type ListHostedZonesOutput struct { _ struct{} `type:"structure"` @@ -7914,6 +9001,36 @@ func (s ListHostedZonesOutput) GoString() string { return s.String() } +// SetHostedZones sets the HostedZones field's value. +func (s *ListHostedZonesOutput) SetHostedZones(v []*HostedZone) *ListHostedZonesOutput { + s.HostedZones = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListHostedZonesOutput) SetIsTruncated(v bool) *ListHostedZonesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListHostedZonesOutput) SetMarker(v string) *ListHostedZonesOutput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHostedZonesOutput) SetMaxItems(v string) *ListHostedZonesOutput { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListHostedZonesOutput) SetNextMarker(v string) *ListHostedZonesOutput { + s.NextMarker = &v + return s +} + // The input for a ListResourceRecordSets request. type ListResourceRecordSetsInput struct { _ struct{} `type:"structure"` @@ -7947,20 +9064,20 @@ type ListResourceRecordSetsInput struct { // Valid values for basic resource record sets: A | AAAA | CNAME | MX | NAPTR // | NS | PTR | SOA | SPF | SRV | TXT // - // Values for weighted, latency, geo, and failover resource record sets: A - // | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT + // Values for weighted, latency, geo, and failover resource record sets: A | + // AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT // // Values for alias resource record sets: // - // CloudFront distribution: A + // * CloudFront distribution: A or AAAA // - // Elastic Beanstalk environment that has a regionalized subdomain: A + // * Elastic Beanstalk environment that has a regionalized subdomain: A // - // ELB load balancer: A | AAAA + // * ELB load balancer: A | AAAA // - // Amazon S3 bucket: A + // * Amazon S3 bucket: A // - // Constraint: Specifying type without specifying name returns an InvalidInput + // Constraint: Specifying type without specifying name returns an InvalidInput // error. StartRecordType *string `location:"querystring" locationName:"type" type:"string" enum:"RRType"` } @@ -7991,6 +9108,36 @@ func (s *ListResourceRecordSetsInput) Validate() error { return nil } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListResourceRecordSetsInput) SetHostedZoneId(v string) *ListResourceRecordSetsInput { + s.HostedZoneId = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListResourceRecordSetsInput) SetMaxItems(v string) *ListResourceRecordSetsInput { + s.MaxItems = &v + return s +} + +// SetStartRecordIdentifier sets the StartRecordIdentifier field's value. +func (s *ListResourceRecordSetsInput) SetStartRecordIdentifier(v string) *ListResourceRecordSetsInput { + s.StartRecordIdentifier = &v + return s +} + +// SetStartRecordName sets the StartRecordName field's value. +func (s *ListResourceRecordSetsInput) SetStartRecordName(v string) *ListResourceRecordSetsInput { + s.StartRecordName = &v + return s +} + +// SetStartRecordType sets the StartRecordType field's value. +func (s *ListResourceRecordSetsInput) SetStartRecordType(v string) *ListResourceRecordSetsInput { + s.StartRecordType = &v + return s +} + // A complex type that contains list information for the resource record set. type ListResourceRecordSetsOutput struct { _ struct{} `type:"structure"` @@ -8038,6 +9185,42 @@ func (s ListResourceRecordSetsOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListResourceRecordSetsOutput) SetIsTruncated(v bool) *ListResourceRecordSetsOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListResourceRecordSetsOutput) SetMaxItems(v string) *ListResourceRecordSetsOutput { + s.MaxItems = &v + return s +} + +// SetNextRecordIdentifier sets the NextRecordIdentifier field's value. +func (s *ListResourceRecordSetsOutput) SetNextRecordIdentifier(v string) *ListResourceRecordSetsOutput { + s.NextRecordIdentifier = &v + return s +} + +// SetNextRecordName sets the NextRecordName field's value. +func (s *ListResourceRecordSetsOutput) SetNextRecordName(v string) *ListResourceRecordSetsOutput { + s.NextRecordName = &v + return s +} + +// SetNextRecordType sets the NextRecordType field's value. +func (s *ListResourceRecordSetsOutput) SetNextRecordType(v string) *ListResourceRecordSetsOutput { + s.NextRecordType = &v + return s +} + +// SetResourceRecordSets sets the ResourceRecordSets field's value. +func (s *ListResourceRecordSetsOutput) SetResourceRecordSets(v []*ResourceRecordSet) *ListResourceRecordSetsOutput { + s.ResourceRecordSets = v + return s +} + // To retrieve a list of your reusable delegation sets, send a GET request to // the /2013-04-01/delegationset resource. The response to this request includes // a DelegationSets element with zero or more DelegationSet child elements. @@ -8046,8 +9229,8 @@ func (s ListResourceRecordSetsOutput) GoString() string { // MaxItems parameter. You can use the Marker parameter to control the delegation // set that the list begins with. // -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. +// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a +// value greater than 100, Amazon Route 53 returns only the first 100. type ListReusableDelegationSetsInput struct { _ struct{} `type:"structure"` @@ -8071,6 +9254,18 @@ func (s ListReusableDelegationSetsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListReusableDelegationSetsInput) SetMarker(v string) *ListReusableDelegationSetsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListReusableDelegationSetsInput) SetMaxItems(v string) *ListReusableDelegationSetsInput { + s.MaxItems = &v + return s +} + // A complex type that contains information about the reusable delegation sets // that are associated with the current AWS account. type ListReusableDelegationSetsOutput struct { @@ -8120,6 +9315,36 @@ func (s ListReusableDelegationSetsOutput) GoString() string { return s.String() } +// SetDelegationSets sets the DelegationSets field's value. +func (s *ListReusableDelegationSetsOutput) SetDelegationSets(v []*DelegationSet) *ListReusableDelegationSetsOutput { + s.DelegationSets = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListReusableDelegationSetsOutput) SetIsTruncated(v bool) *ListReusableDelegationSetsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListReusableDelegationSetsOutput) SetMarker(v string) *ListReusableDelegationSetsOutput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListReusableDelegationSetsOutput) SetMaxItems(v string) *ListReusableDelegationSetsOutput { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListReusableDelegationSetsOutput) SetNextMarker(v string) *ListReusableDelegationSetsOutput { + s.NextMarker = &v + return s +} + // A complex type containing information about a request for a list of the tags // that are associated with an individual resource. type ListTagsForResourceInput struct { @@ -8132,9 +9357,9 @@ type ListTagsForResourceInput struct { // The type of the resource. // - // The resource type for health checks is healthcheck. + // * The resource type for health checks is healthcheck. // - // The resource type for hosted zones is hostedzone. + // * The resource type for hosted zones is hostedzone. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` @@ -8166,6 +9391,18 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *ListTagsForResourceInput) SetResourceId(v string) *ListTagsForResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListTagsForResourceInput) SetResourceType(v string) *ListTagsForResourceInput { + s.ResourceType = &v + return s +} + // A complex type that contains information about the health checks or hosted // zones for which you want to list tags. type ListTagsForResourceOutput struct { @@ -8187,6 +9424,12 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetResourceTagSet sets the ResourceTagSet field's value. +func (s *ListTagsForResourceOutput) SetResourceTagSet(v *ResourceTagSet) *ListTagsForResourceOutput { + s.ResourceTagSet = v + return s +} + // A complex type that contains information about the health checks or hosted // zones for which you want to list tags. type ListTagsForResourcesInput struct { @@ -8200,9 +9443,9 @@ type ListTagsForResourcesInput struct { // The type of the resources. // - // The resource type for health checks is healthcheck. + // * The resource type for health checks is healthcheck. // - // The resource type for hosted zones is hostedzone. + // * The resource type for hosted zones is hostedzone. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` @@ -8237,6 +9480,18 @@ func (s *ListTagsForResourcesInput) Validate() error { return nil } +// SetResourceIds sets the ResourceIds field's value. +func (s *ListTagsForResourcesInput) SetResourceIds(v []*string) *ListTagsForResourcesInput { + s.ResourceIds = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListTagsForResourcesInput) SetResourceType(v string) *ListTagsForResourcesInput { + s.ResourceType = &v + return s +} + // A complex type containing tags for the specified resources. type ListTagsForResourcesOutput struct { _ struct{} `type:"structure"` @@ -8257,6 +9512,12 @@ func (s ListTagsForResourcesOutput) GoString() string { return s.String() } +// SetResourceTagSets sets the ResourceTagSets field's value. +func (s *ListTagsForResourcesOutput) SetResourceTagSets(v []*ResourceTagSet) *ListTagsForResourcesOutput { + s.ResourceTagSets = v + return s +} + // A complex type that contains the information about the request to list the // traffic policies that are associated with the current AWS account. type ListTrafficPoliciesInput struct { @@ -8292,6 +9553,18 @@ func (s ListTrafficPoliciesInput) GoString() string { return s.String() } +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPoliciesInput) SetMaxItems(v string) *ListTrafficPoliciesInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyIdMarker sets the TrafficPolicyIdMarker field's value. +func (s *ListTrafficPoliciesInput) SetTrafficPolicyIdMarker(v string) *ListTrafficPoliciesInput { + s.TrafficPolicyIdMarker = &v + return s +} + // A complex type that contains the response information for the request. type ListTrafficPoliciesOutput struct { _ struct{} `type:"structure"` @@ -8335,6 +9608,30 @@ func (s ListTrafficPoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPoliciesOutput) SetIsTruncated(v bool) *ListTrafficPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPoliciesOutput) SetMaxItems(v string) *ListTrafficPoliciesOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyIdMarker sets the TrafficPolicyIdMarker field's value. +func (s *ListTrafficPoliciesOutput) SetTrafficPolicyIdMarker(v string) *ListTrafficPoliciesOutput { + s.TrafficPolicyIdMarker = &v + return s +} + +// SetTrafficPolicySummaries sets the TrafficPolicySummaries field's value. +func (s *ListTrafficPoliciesOutput) SetTrafficPolicySummaries(v []*TrafficPolicySummary) *ListTrafficPoliciesOutput { + s.TrafficPolicySummaries = v + return s +} + // A request for the traffic policy instances that you created in a specified // hosted zone. type ListTrafficPolicyInstancesByHostedZoneInput struct { @@ -8402,6 +9699,30 @@ func (s *ListTrafficPolicyInstancesByHostedZoneInput) Validate() error { return nil } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneInput) SetHostedZoneId(v string) *ListTrafficPolicyInstancesByHostedZoneInput { + s.HostedZoneId = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneInput) SetMaxItems(v string) *ListTrafficPolicyInstancesByHostedZoneInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneInput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesByHostedZoneInput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneInput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesByHostedZoneInput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + // A complex type that contains the response information for the request. type ListTrafficPolicyInstancesByHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -8449,6 +9770,36 @@ func (s ListTrafficPolicyInstancesByHostedZoneOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetIsTruncated(v bool) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetMaxItems(v string) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + +// SetTrafficPolicyInstances sets the TrafficPolicyInstances field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetTrafficPolicyInstances(v []*TrafficPolicyInstance) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.TrafficPolicyInstances = v + return s +} + // A complex type that contains the information about the request to list your // traffic policy instances. type ListTrafficPolicyInstancesByPolicyInput struct { @@ -8540,6 +9891,42 @@ func (s *ListTrafficPolicyInstancesByPolicyInput) Validate() error { return nil } +// SetHostedZoneIdMarker sets the HostedZoneIdMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetHostedZoneIdMarker(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.HostedZoneIdMarker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetMaxItems(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyId sets the TrafficPolicyId field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetTrafficPolicyId(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.TrafficPolicyId = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + +// SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetTrafficPolicyVersion(v int64) *ListTrafficPolicyInstancesByPolicyInput { + s.TrafficPolicyVersion = &v + return s +} + // A complex type that contains the response information for the request. type ListTrafficPolicyInstancesByPolicyOutput struct { _ struct{} `type:"structure"` @@ -8592,6 +9979,42 @@ func (s ListTrafficPolicyInstancesByPolicyOutput) GoString() string { return s.String() } +// SetHostedZoneIdMarker sets the HostedZoneIdMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetHostedZoneIdMarker(v string) *ListTrafficPolicyInstancesByPolicyOutput { + s.HostedZoneIdMarker = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetIsTruncated(v bool) *ListTrafficPolicyInstancesByPolicyOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetMaxItems(v string) *ListTrafficPolicyInstancesByPolicyOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesByPolicyOutput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesByPolicyOutput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + +// SetTrafficPolicyInstances sets the TrafficPolicyInstances field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetTrafficPolicyInstances(v []*TrafficPolicyInstance) *ListTrafficPolicyInstancesByPolicyOutput { + s.TrafficPolicyInstances = v + return s +} + // A complex type that contains the information about the request to list your // traffic policy instances. type ListTrafficPolicyInstancesInput struct { @@ -8599,12 +10022,12 @@ type ListTrafficPolicyInstancesInput struct { // For the first request to ListTrafficPolicyInstances, omit this value. // - // If the value of IsTruncated in the previous response was true, you have - // more traffic policy instances. To get the next group of MaxItems traffic - // policy instances, submit another ListTrafficPolicyInstances request. For - // the value of HostedZoneIdMarker, specify the value of HostedZoneIdMarker - // from the previous response, which is the hosted zone ID of the first traffic - // policy instance in the next group of MaxItems traffic policy instances. + // If the value of IsTruncated in the previous response was true, you have more + // traffic policy instances. To get the next group of MaxItems traffic policy + // instances, submit another ListTrafficPolicyInstances request. For the value + // of HostedZoneIdMarker, specify the value of HostedZoneIdMarker from the previous + // response, which is the hosted zone ID of the first traffic policy instance + // in the next group of MaxItems traffic policy instances. // // If the value of IsTruncated in the previous response was false, there are // no more traffic policy instances to get. @@ -8649,6 +10072,30 @@ func (s ListTrafficPolicyInstancesInput) GoString() string { return s.String() } +// SetHostedZoneIdMarker sets the HostedZoneIdMarker field's value. +func (s *ListTrafficPolicyInstancesInput) SetHostedZoneIdMarker(v string) *ListTrafficPolicyInstancesInput { + s.HostedZoneIdMarker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesInput) SetMaxItems(v string) *ListTrafficPolicyInstancesInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesInput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesInput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesInput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesInput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + // A complex type that contains the response information for the request. type ListTrafficPolicyInstancesOutput struct { _ struct{} `type:"structure"` @@ -8701,6 +10148,42 @@ func (s ListTrafficPolicyInstancesOutput) GoString() string { return s.String() } +// SetHostedZoneIdMarker sets the HostedZoneIdMarker field's value. +func (s *ListTrafficPolicyInstancesOutput) SetHostedZoneIdMarker(v string) *ListTrafficPolicyInstancesOutput { + s.HostedZoneIdMarker = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPolicyInstancesOutput) SetIsTruncated(v bool) *ListTrafficPolicyInstancesOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesOutput) SetMaxItems(v string) *ListTrafficPolicyInstancesOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesOutput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesOutput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesOutput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesOutput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + +// SetTrafficPolicyInstances sets the TrafficPolicyInstances field's value. +func (s *ListTrafficPolicyInstancesOutput) SetTrafficPolicyInstances(v []*TrafficPolicyInstance) *ListTrafficPolicyInstancesOutput { + s.TrafficPolicyInstances = v + return s +} + // A complex type that contains the information about the request to list your // traffic policies. type ListTrafficPolicyVersionsInput struct { @@ -8756,6 +10239,24 @@ func (s *ListTrafficPolicyVersionsInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ListTrafficPolicyVersionsInput) SetId(v string) *ListTrafficPolicyVersionsInput { + s.Id = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyVersionsInput) SetMaxItems(v string) *ListTrafficPolicyVersionsInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyVersionMarker sets the TrafficPolicyVersionMarker field's value. +func (s *ListTrafficPolicyVersionsInput) SetTrafficPolicyVersionMarker(v string) *ListTrafficPolicyVersionsInput { + s.TrafficPolicyVersionMarker = &v + return s +} + // A complex type that contains the response information for the request. type ListTrafficPolicyVersionsOutput struct { _ struct{} `type:"structure"` @@ -8801,22 +10302,164 @@ func (s ListTrafficPolicyVersionsOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPolicyVersionsOutput) SetIsTruncated(v bool) *ListTrafficPolicyVersionsOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyVersionsOutput) SetMaxItems(v string) *ListTrafficPolicyVersionsOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicies sets the TrafficPolicies field's value. +func (s *ListTrafficPolicyVersionsOutput) SetTrafficPolicies(v []*TrafficPolicy) *ListTrafficPolicyVersionsOutput { + s.TrafficPolicies = v + return s +} + +// SetTrafficPolicyVersionMarker sets the TrafficPolicyVersionMarker field's value. +func (s *ListTrafficPolicyVersionsOutput) SetTrafficPolicyVersionMarker(v string) *ListTrafficPolicyVersionsOutput { + s.TrafficPolicyVersionMarker = &v + return s +} + +// A complex type that contains information about that can be associated with +// your hosted zone. +type ListVPCAssociationAuthorizationsInput struct { + _ struct{} `type:"structure"` + + // The ID of the hosted zone for which you want a list of VPCs that can be associated + // with the hosted zone. + // + // HostedZoneId is a required field + HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // Optional: An integer that specifies the maximum number of VPCs that you want + // Amazon Route 53 to return. + MaxResults *string `location:"querystring" locationName:"maxresults" type:"string"` + + // Optional: If a response includes a NextToken element, there are more VPCs + // that can be associated with the specified hosted zone. To get the next page + // of results, submit another request, and include the value of the NextToken + // element in from the response in the NextToken parameter in another ListVPCAssociationAuthorizations + // request. + NextToken *string `location:"querystring" locationName:"nexttoken" type:"string"` +} + +// String returns the string representation +func (s ListVPCAssociationAuthorizationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListVPCAssociationAuthorizationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListVPCAssociationAuthorizationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVPCAssociationAuthorizationsInput"} + if s.HostedZoneId == nil { + invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListVPCAssociationAuthorizationsInput) SetHostedZoneId(v string) *ListVPCAssociationAuthorizationsInput { + s.HostedZoneId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListVPCAssociationAuthorizationsInput) SetMaxResults(v string) *ListVPCAssociationAuthorizationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVPCAssociationAuthorizationsInput) SetNextToken(v string) *ListVPCAssociationAuthorizationsInput { + s.NextToken = &v + return s +} + +// A complex type that contains the response information for the request. +type ListVPCAssociationAuthorizationsOutput struct { + _ struct{} `type:"structure"` + + // The ID of the hosted zone that you can associate the listed VPCs with. + // + // HostedZoneId is a required field + HostedZoneId *string `type:"string" required:"true"` + + // When the response includes a NextToken element, there are more VPCs that + // can be associated with the specified hosted zone. To get the next page of + // VPCs, submit another ListVPCAssociationAuthorizations request, and include + // the value of the NextToken element from the response in the NextToken request + // parameter: + // + // /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs + // per page&NextToken= + NextToken *string `type:"string"` + + // The list of VPCs that are authorized to be associated with the specified + // hosted zone. + // + // VPCs is a required field + VPCs []*VPC `locationNameList:"VPC" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s ListVPCAssociationAuthorizationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListVPCAssociationAuthorizationsOutput) GoString() string { + return s.String() +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListVPCAssociationAuthorizationsOutput) SetHostedZoneId(v string) *ListVPCAssociationAuthorizationsOutput { + s.HostedZoneId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVPCAssociationAuthorizationsOutput) SetNextToken(v string) *ListVPCAssociationAuthorizationsOutput { + s.NextToken = &v + return s +} + +// SetVPCs sets the VPCs field's value. +func (s *ListVPCAssociationAuthorizationsOutput) SetVPCs(v []*VPC) *ListVPCAssociationAuthorizationsOutput { + s.VPCs = v + return s +} + // Information specific to the resource record. // -// If you are creating an alias resource record set, omit ResourceRecord. +// If you are creating an alias resource record set, omit ResourceRecord. type ResourceRecord struct { _ struct{} `type:"structure"` // The current or new DNS record value, not to exceed 4,000 characters. In the // case of a DELETE action, if the current value does not match the actual value, // an error is returned. For descriptions about how to format Value for different - // record types, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DeveloperGuide/ResourceRecordTypes.html) + // record types, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html) // in the Amazon Route 53 Developer Guide. // // You can specify more than one value for all record types except CNAME and // SOA. // - // If you are creating an alias resource record set, omit Value. + // If you are creating an alias resource record set, omit Value. // // Value is a required field Value *string `type:"string" required:"true"` @@ -8845,27 +10488,33 @@ func (s *ResourceRecord) Validate() error { return nil } +// SetValue sets the Value field's value. +func (s *ResourceRecord) SetValue(v string) *ResourceRecord { + s.Value = &v + return s +} + // Information about the resource record set to create or delete. type ResourceRecordSet struct { _ struct{} `type:"structure"` // Alias resource record sets only: Information about the CloudFront distribution, - // Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon - // Route 53 resource record set to which you are redirecting queries. The Elastic - // Beanstalk environment must have a regionalized subdomain. + // AWS Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or + // Amazon Route 53 resource record set to which you are redirecting queries. + // The AWS Elastic Beanstalk environment must have a regionalized subdomain. // // If you're creating resource records sets for a private hosted zone, note // the following: // - // You can't create alias resource record sets for CloudFront distributions - // in a private hosted zone. + // * You can't create alias resource record sets for CloudFront distributions + // in a private hosted zone. // - // Creating geolocation alias resource record sets or latency alias resource - // record sets in a private hosted zone is unsupported. + // * Creating geolocation alias resource record sets or latency alias resource + // record sets in a private hosted zone is unsupported. // - // For information about creating failover resource record sets in a private - // hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) - // in the Amazon Route 53 Developer Guide. + // * For information about creating failover resource record sets in a private + // hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) + // in the Amazon Route 53 Developer Guide. AliasTarget *AliasTarget `type:"structure"` // Failover resource record sets only: To configure failover, you add the Failover @@ -8878,26 +10527,26 @@ type ResourceRecordSet struct { // Except where noted, the following failover behaviors assume that you have // included the HealthCheckId element in both resource record sets: // - // When the primary resource record set is healthy, Amazon Route 53 responds - // to DNS queries with the applicable value from the primary resource record - // set regardless of the health of the secondary resource record set. + // * When the primary resource record set is healthy, Amazon Route 53 responds + // to DNS queries with the applicable value from the primary resource record + // set regardless of the health of the secondary resource record set. // - // When the primary resource record set is unhealthy and the secondary resource - // record set is healthy, Amazon Route 53 responds to DNS queries with the applicable - // value from the secondary resource record set. + // * When the primary resource record set is unhealthy and the secondary + // resource record set is healthy, Amazon Route 53 responds to DNS queries + // with the applicable value from the secondary resource record set. // - // When the secondary resource record set is unhealthy, Amazon Route 53 responds - // to DNS queries with the applicable value from the primary resource record - // set regardless of the health of the primary resource record set. + // * When the secondary resource record set is unhealthy, Amazon Route 53 + // responds to DNS queries with the applicable value from the primary resource + // record set regardless of the health of the primary resource record set. // - // If you omit the HealthCheckId element for the secondary resource record - // set, and if the primary resource record set is unhealthy, Amazon Route 53 - // always responds to DNS queries with the applicable value from the secondary - // resource record set. This is true regardless of the health of the associated - // endpoint. + // * If you omit the HealthCheckId element for the secondary resource record + // set, and if the primary resource record set is unhealthy, Amazon Route + // 53 always responds to DNS queries with the applicable value from the secondary + // resource record set. This is true regardless of the health of the associated + // endpoint. // - // You cannot create non-failover resource record sets that have the same - // values for the Name and Type elements as failover resource record sets. + // You can't create non-failover resource record sets that have the same values + // for the Name and Type elements as failover resource record sets. // // For failover alias resource record sets, you must also include the EvaluateTargetHealth // element and set the value to true. @@ -8905,11 +10554,11 @@ type ResourceRecordSet struct { // For more information about configuring failover for Amazon Route 53, see // the following topics in the Amazon Route 53 Developer Guide: // - // Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) + // * Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // - // Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) + // * Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) // - // Valid values: PRIMARY | SECONDARY + // Valid values: PRIMARY | SECONDARY Failover *string `type:"string" enum:"ResourceRecordSetFailover"` // Geo location resource record sets only: A complex type that lets you control @@ -8918,23 +10567,23 @@ type ResourceRecordSet struct { // to a web server with an IP address of 192.0.2.111, create a resource record // set with a Type of A and a ContinentCode of AF. // - // Creating geolocation and geolocation alias resource record sets in private + // Creating geolocation and geolocation alias resource record sets in private // hosted zones is not supported. // - // If you create separate resource record sets for overlapping geographic - // regions (for example, one resource record set for a continent and one for - // a country on the same continent), priority goes to the smallest geographic - // region. This allows you to route most queries for a continent to one resource - // and to route queries for a country on that continent to a different resource. + // If you create separate resource record sets for overlapping geographic regions + // (for example, one resource record set for a continent and one for a country + // on the same continent), priority goes to the smallest geographic region. + // This allows you to route most queries for a continent to one resource and + // to route queries for a country on that continent to a different resource. // - // You cannot create two geolocation resource record sets that specify the - // same geographic location. + // You can't create two geolocation resource record sets that specify the same + // geographic location. // - // The value * in the CountryCode element matches all geographic locations - // that aren't specified in other geolocation resource record sets that have - // the same values for the Name and Type elements. + // The value * in the CountryCode element matches all geographic locations that + // aren't specified in other geolocation resource record sets that have the + // same values for the Name and Type elements. // - // Geolocation works by mapping IP addresses to locations. However, some IP + // Geolocation works by mapping IP addresses to locations. However, some IP // addresses aren't mapped to geographic locations, so even if you create geolocation // resource record sets that cover all seven continents, Amazon Route 53 will // receive some DNS queries from locations that it can't identify. We recommend @@ -8944,7 +10593,7 @@ type ResourceRecordSet struct { // aren't mapped to a location. If you don't create a * resource record set, // Amazon Route 53 returns a "no answer" response for queries from those locations. // - // You cannot create non-geolocation resource record sets that have the same + // You can't create non-geolocation resource record sets that have the same // values for the Name and Type elements as geolocation resource record sets. GeoLocation *GeoLocation `type:"structure"` @@ -8955,41 +10604,43 @@ type ResourceRecordSet struct { // Amazon Route 53 determines whether a resource record set is healthy based // on one of the following: // - // By periodically sending a request to the endpoint that is specified in - // the health check + // * By periodically sending a request to the endpoint that is specified + // in the health check // - // By aggregating the status of a specified group of health checks (calculated - // health checks) + // * By aggregating the status of a specified group of health checks (calculated + // health checks) // - // By determining the current state of a CloudWatch alarm (CloudWatch metric - // health checks) + // * By determining the current state of a CloudWatch alarm (CloudWatch metric + // health checks) // - // For information about how Amazon Route 53 determines whether a health - // check is healthy, see CreateHealthCheck. + // For information about how Amazon Route 53 determines whether a health check + // is healthy, see CreateHealthCheck. // // The HealthCheckId element is only useful when Amazon Route 53 is choosing // between two or more resource record sets to respond to a DNS query, and you // want Amazon Route 53 to base the choice in part on the status of a health // check. Configuring health checks only makes sense in the following configurations: // - // You're checking the health of the resource record sets in a weighted, - // latency, geolocation, or failover resource record set, and you specify health - // check IDs for all of the resource record sets. If the health check for one - // resource record set specifies an endpoint that is not healthy, Amazon Route - // 53 stops responding to queries using the value for that resource record set. + // * You're checking the health of the resource record sets in a weighted, + // latency, geolocation, or failover resource record set, and you specify + // health check IDs for all of the resource record sets. If the health check + // for one resource record set specifies an endpoint that is not healthy, + // Amazon Route 53 stops responding to queries using the value for that resource + // record set. // - // You set EvaluateTargetHealth to true for the resource record sets in an - // alias, weighted alias, latency alias, geolocation alias, or failover alias - // resource record set, and you specify health check IDs for all of the resource - // record sets that are referenced by the alias resource record sets. + // * You set EvaluateTargetHealth to true for the resource record sets in + // an alias, weighted alias, latency alias, geolocation alias, or failover + // alias resource record set, and you specify health check IDs for all of + // the resource record sets that are referenced by the alias resource record + // sets. // - // Amazon Route 53 doesn't check the health of the endpoint specified in - // the resource record set, for example, the endpoint specified by the IP address + // Amazon Route 53 doesn't check the health of the endpoint specified in the + // resource record set, for example, the endpoint specified by the IP address // in the Value element. When you add a HealthCheckId element to a resource // record set, Amazon Route 53 checks the health of the endpoint that you specified // in the health check. // - // For geolocation resource record sets, if an endpoint is unhealthy, Amazon + // For geolocation resource record sets, if an endpoint is unhealthy, Amazon // Route 53 looks for a resource record set for the larger, associated geographic // region. For example, suppose you have resource record sets for a state in // the United States, for the United States, for North America, and for all @@ -9006,17 +10657,17 @@ type ResourceRecordSet struct { // server (such as us-east-1-www.example.com), not the name of the resource // record sets (example.com). // - // n this configuration, if you create a health check for which the value - // of FullyQualifiedDomainName matches the name of the resource record sets - // and then associate the health check with those resource record sets, health - // check results will be unpredictable. + // n this configuration, if you create a health check for which the value of + // FullyQualifiedDomainName matches the name of the resource record sets and + // then associate the health check with those resource record sets, health check + // results will be unpredictable. // - // For more informaiton, see the following topics in the Amazon Route 53 Developer + // For more information, see the following topics in the Amazon Route 53 Developer // Guide: // - // Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) + // * Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // - // Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) + // * Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) HealthCheckId *string `type:"string"` // The name of the domain you want to perform the action on. @@ -9035,58 +10686,60 @@ type ResourceRecordSet struct { // You can use the asterisk (*) wildcard to replace the leftmost label in a // domain name. For example, *.example.com. Note the following: // - // The * must replace the entire label. For example, you can't specify *prod.example.com - // or prod*.example.com. + // * The * must replace the entire label. For example, you can't specify + // *prod.example.com or prod*.example.com. // - // The * can't replace any of the middle labels, for example, marketing.*.example.com. + // * The * can't replace any of the middle labels, for example, marketing.*.example.com. // - // If you include * in any position other than the leftmost label in a domain - // name, DNS treats it as an * character (ASCII 42), not as a wildcard. + // * If you include * in any position other than the leftmost label in a + // domain name, DNS treats it as an * character (ASCII 42), not as a wildcard. // - // You can't use the * wildcard for resource records sets that have a type - // of NS. + // You can't use the * wildcard for resource records sets that have a type of + // NS. // - // You can use the * wildcard as the leftmost label in a domain name, for - // example, *.example.com. You cannot use an * for one of the middle labels, - // for example, marketing.*.example.com. In addition, the * must replace the - // entire label; for example, you can't specify prod*.example.com. + // You can use the * wildcard as the leftmost label in a domain name, for example, + // *.example.com. You can't use an * for one of the middle labels, for example, + // marketing.*.example.com. In addition, the * must replace the entire label; + // for example, you can't specify prod*.example.com. // // Name is a required field Name *string `type:"string" required:"true"` - // Latency-based resource record sets only: The Amazon EC2 region where the + // Latency-based resource record sets only: The Amazon EC2 Region where the // resource that is specified in this resource record set resides. The resource - // typically is an AWS resource, such as an Amazon EC2 instance or an ELB load - // balancer, and is referred to by an IP address or a DNS domain name, depending - // on the record type. + // typically is an AWS resource, such as an EC2 instance or an ELB load balancer, + // and is referred to by an IP address or a DNS domain name, depending on the + // record type. // - // Creating latency and latency alias resource record sets in private hosted + // Creating latency and latency alias resource record sets in private hosted // zones is not supported. // - // When Amazon Route 53 receives a DNS query for a domain name and type for + // When Amazon Route 53 receives a DNS query for a domain name and type for // which you have created latency resource record sets, Amazon Route 53 selects // the latency resource record set that has the lowest latency between the end - // user and the associated Amazon EC2 region. Amazon Route 53 then returns the + // user and the associated Amazon EC2 Region. Amazon Route 53 then returns the // value that is associated with the selected resource record set. // // Note the following: // - // You can only specify one ResourceRecord per latency resource record set. + // * You can only specify one ResourceRecord per latency resource record + // set. // - // You can only create one latency resource record set for each Amazon EC2 - // region. + // * You can only create one latency resource record set for each Amazon + // EC2 Region. // - // You are not required to create latency resource record sets for all Amazon - // EC2 regions. Amazon Route 53 will choose the region with the best latency - // from among the regions for which you create latency resource record sets. + // * You are not required to create latency resource record sets for all + // Amazon EC2 Regions. Amazon Route 53 will choose the region with the best + // latency from among the regions for which you create latency resource record + // sets. // - // You cannot create non-latency resource record sets that have the same - // values for the Name and Type elements as latency resource record sets. + // * You can't create non-latency resource record sets that have the same + // values for the Name and Type elements as latency resource record sets. Region *string `min:"1" type:"string" enum:"ResourceRecordSetRegion"` // Information about the resource records to act upon. // - // If you are creating an alias resource record set, omit ResourceRecords. + // If you are creating an alias resource record set, omit ResourceRecords. ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" min:"1" type:"list"` // Weighted, Latency, Geo, and Failover resource record sets only: An identifier @@ -9098,24 +10751,35 @@ type ResourceRecordSet struct { // The resource record cache time to live (TTL), in seconds. Note the following: // - // If you're creating an alias resource record set, omit TTL. Amazon Route - // 53 uses the value of TTL for the alias target. + // * If you're creating an alias resource record set, omit TTL. Amazon Route + // 53 uses the value of TTL for the alias target. // - // If you're associating this resource record set with a health check (if - // you're adding a HealthCheckId element), we recommend that you specify a TTL - // of 60 seconds or less so clients respond quickly to changes in health status. + // * If you're associating this resource record set with a health check (if + // you're adding a HealthCheckId element), we recommend that you specify + // a TTL of 60 seconds or less so clients respond quickly to changes in health + // status. // - // All of the resource record sets in a group of weighted, latency, geolocation, - // or failover resource record sets must have the same value for TTL. + // * All of the resource record sets in a group of weighted, latency, geolocation, + // or failover resource record sets must have the same value for TTL. // - // If a group of weighted resource record sets includes one or more weighted - // alias resource record sets for which the alias target is an ELB load balancer, - // we recommend that you specify a TTL of 60 seconds for all of the non-alias - // weighted resource record sets that have the same name and type. Values other - // than 60 seconds (the TTL for load balancers) will change the effect of the - // values that you specify for Weight. + // * If a group of weighted resource record sets includes one or more weighted + // alias resource record sets for which the alias target is an ELB load balancer, + // we recommend that you specify a TTL of 60 seconds for all of the non-alias + // weighted resource record sets that have the same name and type. Values + // other than 60 seconds (the TTL for load balancers) will change the effect + // of the values that you specify for Weight. TTL *int64 `type:"long"` + // When you create a traffic policy instance, Amazon Route 53 automatically + // creates a resource record set. TrafficPolicyInstanceId is the ID of the traffic + // policy instance that Amazon Route 53 created this resource record set for. + // + // To delete the resource record set that is associated with a traffic policy + // instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the + // resource record set automatically. If you delete the resource record set + // by using ChangeResourceRecordSets, Amazon Route 53 doesn't automatically + // delete the traffic policy instance, and you'll continue to be charged for + // it even though it's no longer in use. TrafficPolicyInstanceId *string `type:"string"` // The DNS record type. For information about different record types and how @@ -9125,33 +10789,38 @@ type ResourceRecordSet struct { // Valid values for basic resource record sets: A | AAAA | CNAME | MX | NAPTR // | NS | PTR | SOA | SPF | SRV | TXT // - // Values for weighted, latency, geolocation, and failover resource record - // sets: A | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT. When creating - // a group of weighted, latency, geolocation, or failover resource record sets, - // specify the same value for all of the resource record sets in the group. + // Values for weighted, latency, geolocation, and failover resource record sets: + // A | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT. When creating a group + // of weighted, latency, geolocation, or failover resource record sets, specify + // the same value for all of the resource record sets in the group. // - // SPF records were formerly used to verify the identity of the sender of - // email messages. However, we no longer recommend that you create resource - // record sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework + // SPF records were formerly used to verify the identity of the sender of email + // messages. However, we no longer recommend that you create resource record + // sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework // (SPF) for Authorizing Use of Domains in Email, Version 1, has been updated // to say, "...[I]ts existence and mechanism defined in [RFC4408] have led to // some interoperability issues. Accordingly, its use is no longer appropriate // for SPF version 1; implementations are not to use it." In RFC 7208, see section // 14.1, The SPF DNS Record Type (http://tools.ietf.org/html/rfc7208#section-14.1). // - // Values for alias resource record sets: + // Values for alias resource record sets: // - // CloudFront distributions: A + // * CloudFront distributions:A // - // Elastic Beanstalk environment that has a regionalized subdomain: A + // If IPv6 is enabled for the distribution, create two resource record sets + // to route traffic to your distribution, one with a value of A and one with + // a value of AAAA. // - // ELB load balancers: A | AAAA + // * AWS Elastic Beanstalk environment that has a regionalized subdomain: + // A // - // Amazon S3 buckets: A + // * ELB load balancers:A | AAAA // - // Another resource record set in this hosted zone: Specify the type of - // the resource record set for which you're creating the alias. Specify any - // value except NS or SOA. + // * Amazon S3 buckets:A + // + // * Another resource record set in this hosted zone: Specify the type of + // the resource record set for which you're creating the alias. Specify any + // value except NS or SOA. // // Type is a required field Type *string `type:"string" required:"true" enum:"RRType"` @@ -9164,29 +10833,31 @@ type ResourceRecordSet struct { // 53 then responds to queries based on the ratio of a resource's weight to // the total. Note the following: // - // You must specify a value for the Weight element for every weighted resource - // record set. + // * You must specify a value for the Weight element for every weighted resource + // record set. // - // You can only specify one ResourceRecord per weighted resource record set. + // * You can only specify one ResourceRecord per weighted resource record + // set. // - // You cannot create latency, failover, or geolocation resource record sets - // that have the same values for the Name and Type elements as weighted resource - // record sets. + // * You can't create latency, failover, or geolocation resource record sets + // that have the same values for the Name and Type elements as weighted resource + // record sets. // - // You can create a maximum of 100 weighted resource record sets that have - // the same values for the Name and Type elements. + // * You can create a maximum of 100 weighted resource record sets that have + // the same values for the Name and Type elements. // - // For weighted (but not weighted alias) resource record sets, if you set - // Weight to 0 for a resource record set, Amazon Route 53 never responds to - // queries with the applicable value for that resource record set. However, - // if you set Weight to 0 for all resource record sets that have the same combination - // of DNS name and type, traffic is routed to all resources with equal probability. + // * For weighted (but not weighted alias) resource record sets, if you set + // Weight to 0 for a resource record set, Amazon Route 53 never responds + // to queries with the applicable value for that resource record set. However, + // if you set Weight to 0 for all resource record sets that have the same + // combination of DNS name and type, traffic is routed to all resources with + // equal probability. // // The effect of setting Weight to 0 is different when you associate health - // checks with weighted resource record sets. For more information, see Options - // for Configuring Amazon Route 53 Active-Active and Active-Passive Failover - // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html) - // in the Amazon Route 53 Developer Guide. + // checks with weighted resource record sets. For more information, see Options + // for Configuring Amazon Route 53 Active-Active and Active-Passive Failover + // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html) + // in the Amazon Route 53 Developer Guide. Weight *int64 `type:"long"` } @@ -9245,6 +10916,78 @@ func (s *ResourceRecordSet) Validate() error { return nil } +// SetAliasTarget sets the AliasTarget field's value. +func (s *ResourceRecordSet) SetAliasTarget(v *AliasTarget) *ResourceRecordSet { + s.AliasTarget = v + return s +} + +// SetFailover sets the Failover field's value. +func (s *ResourceRecordSet) SetFailover(v string) *ResourceRecordSet { + s.Failover = &v + return s +} + +// SetGeoLocation sets the GeoLocation field's value. +func (s *ResourceRecordSet) SetGeoLocation(v *GeoLocation) *ResourceRecordSet { + s.GeoLocation = v + return s +} + +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *ResourceRecordSet) SetHealthCheckId(v string) *ResourceRecordSet { + s.HealthCheckId = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResourceRecordSet) SetName(v string) *ResourceRecordSet { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *ResourceRecordSet) SetRegion(v string) *ResourceRecordSet { + s.Region = &v + return s +} + +// SetResourceRecords sets the ResourceRecords field's value. +func (s *ResourceRecordSet) SetResourceRecords(v []*ResourceRecord) *ResourceRecordSet { + s.ResourceRecords = v + return s +} + +// SetSetIdentifier sets the SetIdentifier field's value. +func (s *ResourceRecordSet) SetSetIdentifier(v string) *ResourceRecordSet { + s.SetIdentifier = &v + return s +} + +// SetTTL sets the TTL field's value. +func (s *ResourceRecordSet) SetTTL(v int64) *ResourceRecordSet { + s.TTL = &v + return s +} + +// SetTrafficPolicyInstanceId sets the TrafficPolicyInstanceId field's value. +func (s *ResourceRecordSet) SetTrafficPolicyInstanceId(v string) *ResourceRecordSet { + s.TrafficPolicyInstanceId = &v + return s +} + +// SetType sets the Type field's value. +func (s *ResourceRecordSet) SetType(v string) *ResourceRecordSet { + s.Type = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *ResourceRecordSet) SetWeight(v int64) *ResourceRecordSet { + s.Weight = &v + return s +} + // A complex type containing a resource and its associated tags. type ResourceTagSet struct { _ struct{} `type:"structure"` @@ -9254,9 +10997,9 @@ type ResourceTagSet struct { // The type of the resource. // - // The resource type for health checks is healthcheck. + // * The resource type for health checks is healthcheck. // - // The resource type for hosted zones is hostedzone. + // * The resource type for hosted zones is hostedzone. ResourceType *string `type:"string" enum:"TagResourceType"` // The tags associated with the specified resource. @@ -9273,6 +11016,24 @@ func (s ResourceTagSet) GoString() string { return s.String() } +// SetResourceId sets the ResourceId field's value. +func (s *ResourceTagSet) SetResourceId(v string) *ResourceTagSet { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ResourceTagSet) SetResourceType(v string) *ResourceTagSet { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ResourceTagSet) SetTags(v []*Tag) *ResourceTagSet { + s.Tags = v + return s +} + // A complex type that contains the status that one Amazon Route 53 health checker // reports and the time of the health check. type StatusReport struct { @@ -9299,6 +11060,18 @@ func (s StatusReport) GoString() string { return s.String() } +// SetCheckedTime sets the CheckedTime field's value. +func (s *StatusReport) SetCheckedTime(v time.Time) *StatusReport { + s.CheckedTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StatusReport) SetStatus(v string) *StatusReport { + s.Status = &v + return s +} + // A complex type that contains information about a tag that you want to add // or edit for the specified health check or hosted zone. type Tag struct { @@ -9306,25 +11079,25 @@ type Tag struct { // The value of Key depends on the operation that you want to perform: // - // Add a tag to a health check or hosted zone: Key is the name that you - // want to give the new tag. + // * Add a tag to a health check or hosted zone: Key is the name that you + // want to give the new tag. // - // Edit a tag: Key is the name of the tag whose Value element you want to - // remove. + // * Edit a tag: Key is the name of the tag whose Value element you want + // to remove. // - // Delete a key: Key is the name of the tag you want to remove. + // * Delete a key: Key is the name of the tag you want to remove. // - // Give a name to a health check: Edit the default Name tag. In the Amazon - // Route 53 console, the list of your health checks includes a Name column that - // lets you see the name that you've given to each health check. + // * Give a name to a health check: Edit the default Name tag. In the Amazon + // Route 53 console, the list of your health checks includes a Name column + // that lets you see the name that you've given to each health check. Key *string `type:"string"` // The value of Value depends on the operation that you want to perform: // - // Add a tag to a health check or hosted zone: Value is the value that you - // want to give the new tag. + // * Add a tag to a health check or hosted zone: Value is the value that + // you want to give the new tag. // - // Edit a tag: Value is the new value that you want to assign the tag. + // * Edit a tag: Value is the new value that you want to assign the tag. Value *string `type:"string"` } @@ -9338,30 +11111,40 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Gets the value that Amazon Route 53 returns in response to a DNS request // for a specified record name and type. You can optionally specify the IP address // of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask. // -// Parameters +// Parameters // -// hostedzoneid The ID of the hosted zone that you want Amazon Route 53 to -// simulate a query for. +// hostedzoneidThe ID of the hosted zone that you want Amazon Route 53 to simulate +// a query for. // -// recordname The name of the resource record set that you want Amazon Route +// recordnameThe name of the resource record set that you want Amazon Route // 53 to simulate a query for. // -// recordtype The type of the resource record set. +// recordtypeThe type of the resource record set. // -// resolverip (optional) If you want to simulate a request from a specific -// DNS resolver, specify the IP address for that resolver. If you omit this -// value, TestDNSAnswer uses the IP address of a DNS resolver in the AWS US -// East region. +// resolverip (optional)If you want to simulate a request from a specific DNS +// resolver, specify the IP address for that resolver. If you omit this value, +// TestDNSAnswer uses the IP address of a DNS resolver in the AWS US East region. // -// edns0clientsubnetip (optional) If the resolver that you specified for -// resolverip supports EDNS0, specify the IP address of a client in the applicable -// location. +// edns0clientsubnetip (optional)If the resolver that you specified for resolverip +// supports EDNS0, specify the IP address of a client in the applicable location. // -// edns0clientsubnetmask (optional) If you specify an IP address for edns0clientsubnetip, +// edns0clientsubnetmask (optional)If you specify an IP address for edns0clientsubnetip, // you can optionally specify the number of bits of the IP address that you // want the checking tool to include in the DNS query. For example, if you specify // 192.0.2.44 for edns0clientsubnetip and 24 for edns0clientsubnetmask, the @@ -9370,19 +11153,37 @@ func (s Tag) GoString() string { type TestDNSAnswerInput struct { _ struct{} `type:"structure"` + // If the resolver that you specified for resolverip supports EDNS0, specify + // the IP address of a client in the applicable location. EDNS0ClientSubnetIP *string `location:"querystring" locationName:"edns0clientsubnetip" type:"string"` + // If you specify an IP address for edns0clientsubnetip, you can optionally + // specify the number of bits of the IP address that you want the checking tool + // to include in the DNS query. For example, if you specify 192.0.2.44 for edns0clientsubnetip + // and 24 for edns0clientsubnetmask, the checking tool will simulate a request + // from 192.0.2.0/24. The default value is 24 bits. EDNS0ClientSubnetMask *string `location:"querystring" locationName:"edns0clientsubnetmask" type:"string"` + // The ID of the hosted zone that you want Amazon Route 53 to simulate a query + // for. + // // HostedZoneId is a required field HostedZoneId *string `location:"querystring" locationName:"hostedzoneid" type:"string" required:"true"` + // The name of the resource record set that you want Amazon Route 53 to simulate + // a query for. + // // RecordName is a required field RecordName *string `location:"querystring" locationName:"recordname" type:"string" required:"true"` + // The type of the resource record set. + // // RecordType is a required field RecordType *string `location:"querystring" locationName:"recordtype" type:"string" required:"true" enum:"RRType"` + // If you want to simulate a request from a specific DNS resolver, specify the + // IP address for that resolver. If you omit this value, TestDnsAnswer uses + // the IP address of a DNS resolver in the AWS US East region. ResolverIP *string `location:"querystring" locationName:"resolverip" type:"string"` } @@ -9415,6 +11216,42 @@ func (s *TestDNSAnswerInput) Validate() error { return nil } +// SetEDNS0ClientSubnetIP sets the EDNS0ClientSubnetIP field's value. +func (s *TestDNSAnswerInput) SetEDNS0ClientSubnetIP(v string) *TestDNSAnswerInput { + s.EDNS0ClientSubnetIP = &v + return s +} + +// SetEDNS0ClientSubnetMask sets the EDNS0ClientSubnetMask field's value. +func (s *TestDNSAnswerInput) SetEDNS0ClientSubnetMask(v string) *TestDNSAnswerInput { + s.EDNS0ClientSubnetMask = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *TestDNSAnswerInput) SetHostedZoneId(v string) *TestDNSAnswerInput { + s.HostedZoneId = &v + return s +} + +// SetRecordName sets the RecordName field's value. +func (s *TestDNSAnswerInput) SetRecordName(v string) *TestDNSAnswerInput { + s.RecordName = &v + return s +} + +// SetRecordType sets the RecordType field's value. +func (s *TestDNSAnswerInput) SetRecordType(v string) *TestDNSAnswerInput { + s.RecordType = &v + return s +} + +// SetResolverIP sets the ResolverIP field's value. +func (s *TestDNSAnswerInput) SetResolverIP(v string) *TestDNSAnswerInput { + s.ResolverIP = &v + return s +} + // A complex type that contains the response to a TestDNSAnswer request. type TestDNSAnswerOutput struct { _ struct{} `type:"structure"` @@ -9466,23 +11303,76 @@ func (s TestDNSAnswerOutput) GoString() string { return s.String() } +// SetNameserver sets the Nameserver field's value. +func (s *TestDNSAnswerOutput) SetNameserver(v string) *TestDNSAnswerOutput { + s.Nameserver = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *TestDNSAnswerOutput) SetProtocol(v string) *TestDNSAnswerOutput { + s.Protocol = &v + return s +} + +// SetRecordData sets the RecordData field's value. +func (s *TestDNSAnswerOutput) SetRecordData(v []*string) *TestDNSAnswerOutput { + s.RecordData = v + return s +} + +// SetRecordName sets the RecordName field's value. +func (s *TestDNSAnswerOutput) SetRecordName(v string) *TestDNSAnswerOutput { + s.RecordName = &v + return s +} + +// SetRecordType sets the RecordType field's value. +func (s *TestDNSAnswerOutput) SetRecordType(v string) *TestDNSAnswerOutput { + s.RecordType = &v + return s +} + +// SetResponseCode sets the ResponseCode field's value. +func (s *TestDNSAnswerOutput) SetResponseCode(v string) *TestDNSAnswerOutput { + s.ResponseCode = &v + return s +} + +// A complex type that contains settings for a traffic policy. type TrafficPolicy struct { _ struct{} `type:"structure"` + // The comment that you specify in the CreateTrafficPolicy request, if any. Comment *string `type:"string"` + // The definition of a traffic policy in JSON format. You specify the JSON document + // to use for a new traffic policy in the CreateTrafficPolicy request. For more + // information about the JSON format, see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html). + // // Document is a required field Document *string `type:"string" required:"true"` + // The ID that Amazon Route 53 assigned to a traffic policy when you created + // it. + // // Id is a required field Id *string `type:"string" required:"true"` + // The name that you specified when you created the traffic policy. + // // Name is a required field Name *string `type:"string" required:"true"` + // The DNS type of the resource record sets that Amazon Route 53 creates when + // you use a traffic policy to create a traffic policy instance. + // // Type is a required field Type *string `type:"string" required:"true" enum:"RRType"` + // The version number that Amazon Route 53 assigns to a traffic policy. For + // a new traffic policy, the value of Version is always 1. + // // Version is a required field Version *int64 `min:"1" type:"integer" required:"true"` } @@ -9497,33 +11387,106 @@ func (s TrafficPolicy) GoString() string { return s.String() } +// SetComment sets the Comment field's value. +func (s *TrafficPolicy) SetComment(v string) *TrafficPolicy { + s.Comment = &v + return s +} + +// SetDocument sets the Document field's value. +func (s *TrafficPolicy) SetDocument(v string) *TrafficPolicy { + s.Document = &v + return s +} + +// SetId sets the Id field's value. +func (s *TrafficPolicy) SetId(v string) *TrafficPolicy { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *TrafficPolicy) SetName(v string) *TrafficPolicy { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *TrafficPolicy) SetType(v string) *TrafficPolicy { + s.Type = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *TrafficPolicy) SetVersion(v int64) *TrafficPolicy { + s.Version = &v + return s +} + +// A complex type that contains settings for the new traffic policy instance. type TrafficPolicyInstance struct { _ struct{} `type:"structure"` + // The ID of the hosted zone that Amazon Route 53 created resource record sets + // in. + // // HostedZoneId is a required field HostedZoneId *string `type:"string" required:"true"` + // The ID that Amazon Route 53 assigned to the new traffic policy instance. + // // Id is a required field Id *string `type:"string" required:"true"` + // If State is Failed, an explanation of the reason for the failure. If State + // is another value, Message is empty. + // // Message is a required field Message *string `type:"string" required:"true"` + // The DNS name, such as www.example.com, for which Amazon Route 53 responds + // to queries by using the resource record sets that are associated with this + // traffic policy instance. + // // Name is a required field Name *string `type:"string" required:"true"` + // The value of State is one of the following values: + // + // AppliedAmazon Route 53 has finished creating resource record sets, and changes + // have propagated to all Amazon Route 53 edge locations. + // + // CreatingAmazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance + // to confirm that the CreateTrafficPolicyInstance request completed successfully. + // + // FailedAmazon Route 53 wasn't able to create or update the resource record + // sets. When the value of State is Failed, see Message for an explanation of + // what caused the request to fail. + // // State is a required field State *string `type:"string" required:"true"` + // The TTL that Amazon Route 53 assigned to all of the resource record sets + // that it created in the specified hosted zone. + // // TTL is a required field TTL *int64 `type:"long" required:"true"` + // The ID of the traffic policy that Amazon Route 53 used to create resource + // record sets in the specified hosted zone. + // // TrafficPolicyId is a required field TrafficPolicyId *string `type:"string" required:"true"` + // The DNS type that Amazon Route 53 assigned to all of the resource record + // sets that it created for this traffic policy instance. + // // TrafficPolicyType is a required field TrafficPolicyType *string `type:"string" required:"true" enum:"RRType"` + // The version of the traffic policy that Amazon Route 53 used to create resource + // record sets in the specified hosted zone. + // // TrafficPolicyVersion is a required field TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"` } @@ -9538,21 +11501,89 @@ func (s TrafficPolicyInstance) GoString() string { return s.String() } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *TrafficPolicyInstance) SetHostedZoneId(v string) *TrafficPolicyInstance { + s.HostedZoneId = &v + return s +} + +// SetId sets the Id field's value. +func (s *TrafficPolicyInstance) SetId(v string) *TrafficPolicyInstance { + s.Id = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *TrafficPolicyInstance) SetMessage(v string) *TrafficPolicyInstance { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *TrafficPolicyInstance) SetName(v string) *TrafficPolicyInstance { + s.Name = &v + return s +} + +// SetState sets the State field's value. +func (s *TrafficPolicyInstance) SetState(v string) *TrafficPolicyInstance { + s.State = &v + return s +} + +// SetTTL sets the TTL field's value. +func (s *TrafficPolicyInstance) SetTTL(v int64) *TrafficPolicyInstance { + s.TTL = &v + return s +} + +// SetTrafficPolicyId sets the TrafficPolicyId field's value. +func (s *TrafficPolicyInstance) SetTrafficPolicyId(v string) *TrafficPolicyInstance { + s.TrafficPolicyId = &v + return s +} + +// SetTrafficPolicyType sets the TrafficPolicyType field's value. +func (s *TrafficPolicyInstance) SetTrafficPolicyType(v string) *TrafficPolicyInstance { + s.TrafficPolicyType = &v + return s +} + +// SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value. +func (s *TrafficPolicyInstance) SetTrafficPolicyVersion(v int64) *TrafficPolicyInstance { + s.TrafficPolicyVersion = &v + return s +} + +// A complex type that contains information about the latest version of one +// traffic policy that is associated with the current AWS account. type TrafficPolicySummary struct { _ struct{} `type:"structure"` + // The ID that Amazon Route 53 assigned to the traffic policy when you created + // it. + // // Id is a required field Id *string `type:"string" required:"true"` + // The version number of the latest version of the traffic policy. + // // LatestVersion is a required field LatestVersion *int64 `min:"1" type:"integer" required:"true"` + // The name that you specified for the traffic policy when you created it. + // // Name is a required field Name *string `type:"string" required:"true"` + // The number of traffic policies that are associated with the current AWS account. + // // TrafficPolicyCount is a required field TrafficPolicyCount *int64 `min:"1" type:"integer" required:"true"` + // The DNS type of the resource record sets that Amazon Route 53 creates when + // you use a traffic policy to create a traffic policy instance. + // // Type is a required field Type *string `type:"string" required:"true" enum:"RRType"` } @@ -9567,6 +11598,36 @@ func (s TrafficPolicySummary) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *TrafficPolicySummary) SetId(v string) *TrafficPolicySummary { + s.Id = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *TrafficPolicySummary) SetLatestVersion(v int64) *TrafficPolicySummary { + s.LatestVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *TrafficPolicySummary) SetName(v string) *TrafficPolicySummary { + s.Name = &v + return s +} + +// SetTrafficPolicyCount sets the TrafficPolicyCount field's value. +func (s *TrafficPolicySummary) SetTrafficPolicyCount(v int64) *TrafficPolicySummary { + s.TrafficPolicyCount = &v + return s +} + +// SetType sets the Type field's value. +func (s *TrafficPolicySummary) SetType(v string) *TrafficPolicySummary { + s.Type = &v + return s +} + // A complex type that contains the health check request information. type UpdateHealthCheckInput struct { _ struct{} `locationName:"UpdateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -9585,11 +11646,11 @@ type UpdateHealthCheckInput struct { // allows the endpoint to respond to HTTPS health check requests with the applicable // SSL/TLS certificate. // - // Some endpoints require that HTTPS requests include the host name in the - // client_hello message. If you don't enable SNI, the status of the health check - // will be SSL alert handshake_failure. A health check can also have that status - // for other reasons. If SNI is enabled and you're still getting the error, - // check the SSL/TLS configuration on your endpoint and confirm that your certificate + // Some endpoints require that HTTPS requests include the host name in the client_hello + // message. If you don't enable SNI, the status of the health check will be + // SSL alert handshake_failure. A health check can also have that status for + // other reasons. If SNI is enabled and you're still getting the error, check + // the SSL/TLS configuration on your endpoint and confirm that your certificate // is valid. // // The SSL/TLS certificate on your endpoint includes a domain name in the Common @@ -9611,11 +11672,11 @@ type UpdateHealthCheckInput struct { // Amazon Route 53 behavior depends on whether you specify a value for IPAddress. // - // If a health check already has a value for IPAddress, you can change the - // value. However, you can't update an existing health check to add or remove - // the value of IPAddress. + // If a health check already has a value for IPAddress, you can change the value. + // However, you can't update an existing health check to add or remove the value + // of IPAddress. // - // If you specify IPAddress: + // If you specifyIPAddress: // // The value that you want Amazon Route 53 to pass in the Host header in all // health checks except TCP health checks. This is typically the fully qualified @@ -9623,28 +11684,28 @@ type UpdateHealthCheckInput struct { // checks. When Amazon Route 53 checks the health of an endpoint, here is how // it constructs the Host header: // - // If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for Type, - // Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint - // in the Host header. + // * If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for + // Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to + // the endpoint in the Host header. // - // If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH for - // Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the - // endpoint in the Host header. + // * If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH + // for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName + // to the endpoint in the Host header. // - // If you specify another value for Port and any value except TCP for Type, - // Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in - // the Host header. + // * If you specify another value for Port and any value except TCP for Type, + // Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in + // the Host header. // - // If you don't specify a value for FullyQualifiedDomainName, Amazon Route - // 53 substitutes the value of IPAddress in the Host header in each of the above + // If you don't specify a value for FullyQualifiedDomainName, Amazon Route 53 + // substitutes the value of IPAddress in the Host header in each of the above // cases. // - // If you don't specify IPAddress: + // If you don't specifyIPAddress: // - // If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS - // request to the domain that you specify in FullyQualifiedDomainName at the - // interval you specify in RequestInterval. Using an IP address that DNS returns, - // Amazon Route 53 then checks the health of the endpoint. + // If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request + // to the domain that you specify in FullyQualifiedDomainName at the interval + // you specify in RequestInterval. Using an IP address that DNS returns, Amazon + // Route 53 then checks the health of the endpoint. // // If you want to check the health of weighted, latency, or failover resource // record sets and you choose to specify the endpoint only by FullyQualifiedDomainName, @@ -9654,11 +11715,11 @@ type UpdateHealthCheckInput struct { // domain name of the server (such as us-east-1-www.example.com), not the name // of the resource record sets (www.example.com). // - // In this configuration, if the value of FullyQualifiedDomainName matches - // the name of the resource record sets and you then associate the health check + // In this configuration, if the value of FullyQualifiedDomainName matches the + // name of the resource record sets and you then associate the health check // with those resource record sets, health check results will be unpredictable. // - // In addition, if the value of Type is HTTP, HTTPS, HTTP_STR_MATCH, or HTTPS_STR_MATCH, + // In addition, if the value of Type is HTTP, HTTPS, HTTP_STR_MATCH, or HTTPS_STR_MATCH, // Amazon Route 53 passes the value of FullyQualifiedDomainName in the Host // header, as it does when you specify a value for IPAddress. If the value of // Type is TCP, Amazon Route 53 doesn't pass a Host header. @@ -9674,19 +11735,19 @@ type UpdateHealthCheckInput struct { // A sequential counter that Amazon Route 53 sets to 1 when you create a health // check and increments by 1 each time you update settings for the health check. // - // We recommend that you use GetHealthCheck or ListHealthChecks to get the - // current value of HealthCheckVersion for the health check that you want to - // update, and that you include that value in your UpdateHealthCheck request. - // This prevents Amazon Route 53 from overwriting an intervening update: + // We recommend that you use GetHealthCheck or ListHealthChecks to get the current + // value of HealthCheckVersion for the health check that you want to update, + // and that you include that value in your UpdateHealthCheck request. This prevents + // Amazon Route 53 from overwriting an intervening update: // - // f the value in the UpdateHealthCheck request matches the value of HealthCheckVersion - // in the health check, Amazon Route 53 updates the health check with the new - // settings. + // * f the value in the UpdateHealthCheck request matches the value of HealthCheckVersion + // in the health check, Amazon Route 53 updates the health check with the + // new settings. // - // If the value of HealthCheckVersion in the health check is greater, the - // health check was changed after you got the version number. Amazon Route 53 - // does not update the health check, and it returns a HealthCheckVersionMismatch - // error. + // * If the value of HealthCheckVersion in the health check is greater, the + // health check was changed after you got the version number. Amazon Route + // 53 does not update the health check, and it returns a HealthCheckVersionMismatch + // error. HealthCheckVersion *int64 `min:"1" type:"long"` // The number of child health checks that are associated with a CALCULATED health @@ -9697,11 +11758,11 @@ type UpdateHealthCheckInput struct { // // Note the following: // - // If you specify a number greater than the number of child health checks, - // Amazon Route 53 always considers this health check to be unhealthy. + // * If you specify a number greater than the number of child health checks, + // Amazon Route 53 always considers this health check to be unhealthy. // - // If you specify 0, Amazon Route 53 always considers this health check to - // be healthy. + // * If you specify 0, Amazon Route 53 always considers this health check + // to be healthy. HealthThreshold *int64 `type:"integer"` // The IPv4 IP address of the endpoint on which you want Amazon Route 53 to @@ -9711,20 +11772,30 @@ type UpdateHealthCheckInput struct { // Using an IP address that DNS returns, Amazon Route 53 then checks the health // of the endpoint. // - // f the endpoint is an Amazon EC2 instance, we recommend that you create an - // Elastic IP address, associate it with your Amazon EC2 instance, and specify - // the Elastic IP address for IPAddress. This ensures that the IP address of - // your instance never changes. For more information, see Elastic IP Addresses - // (EIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) + // f the endpoint is an EC2 instance, we recommend that you create an Elastic + // IP address, associate it with your EC2 instance, and specify the Elastic + // IP address for IPAddress. This ensures that the IP address of your instance + // never changes. For more information, see Elastic IP Addresses (EIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon EC2 User Guide for Linux Instances. // - // If a health check already has a value for IPAddress, you can change the - // value. However, you can't update an existing health check to add or remove - // the value of IPAddress. + // If a health check already has a value for IPAddress, you can change the value. + // However, you can't update an existing health check to add or remove the value + // of IPAddress. // - // For more information, see UpdateHealthCheckRequest$FullyQualifiedDomainName. + // For more information, see UpdateHealthCheckRequest$FullyQualifiedDomainName. IPAddress *string `type:"string"` + // When CloudWatch has insufficient data about the metric to determine the alarm + // state, the status that you want Amazon Route 53 to assign to the health check: + // + // * Healthy: Amazon Route 53 considers the health check to be healthy. + // + // * Unhealthy: Amazon Route 53 considers the health check to be unhealthy. + // + // * LastKnownStatus: Amazon Route 53 uses the status of the health check + // from the last time CloudWatch had sufficient data to determine the alarm + // state. For new health checks that have no last known status, the default + // status for the health check is healthy. InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"` // Specify whether you want Amazon Route 53 to invert the status of a health @@ -9796,6 +11867,96 @@ func (s *UpdateHealthCheckInput) Validate() error { return nil } +// SetAlarmIdentifier sets the AlarmIdentifier field's value. +func (s *UpdateHealthCheckInput) SetAlarmIdentifier(v *AlarmIdentifier) *UpdateHealthCheckInput { + s.AlarmIdentifier = v + return s +} + +// SetChildHealthChecks sets the ChildHealthChecks field's value. +func (s *UpdateHealthCheckInput) SetChildHealthChecks(v []*string) *UpdateHealthCheckInput { + s.ChildHealthChecks = v + return s +} + +// SetEnableSNI sets the EnableSNI field's value. +func (s *UpdateHealthCheckInput) SetEnableSNI(v bool) *UpdateHealthCheckInput { + s.EnableSNI = &v + return s +} + +// SetFailureThreshold sets the FailureThreshold field's value. +func (s *UpdateHealthCheckInput) SetFailureThreshold(v int64) *UpdateHealthCheckInput { + s.FailureThreshold = &v + return s +} + +// SetFullyQualifiedDomainName sets the FullyQualifiedDomainName field's value. +func (s *UpdateHealthCheckInput) SetFullyQualifiedDomainName(v string) *UpdateHealthCheckInput { + s.FullyQualifiedDomainName = &v + return s +} + +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *UpdateHealthCheckInput) SetHealthCheckId(v string) *UpdateHealthCheckInput { + s.HealthCheckId = &v + return s +} + +// SetHealthCheckVersion sets the HealthCheckVersion field's value. +func (s *UpdateHealthCheckInput) SetHealthCheckVersion(v int64) *UpdateHealthCheckInput { + s.HealthCheckVersion = &v + return s +} + +// SetHealthThreshold sets the HealthThreshold field's value. +func (s *UpdateHealthCheckInput) SetHealthThreshold(v int64) *UpdateHealthCheckInput { + s.HealthThreshold = &v + return s +} + +// SetIPAddress sets the IPAddress field's value. +func (s *UpdateHealthCheckInput) SetIPAddress(v string) *UpdateHealthCheckInput { + s.IPAddress = &v + return s +} + +// SetInsufficientDataHealthStatus sets the InsufficientDataHealthStatus field's value. +func (s *UpdateHealthCheckInput) SetInsufficientDataHealthStatus(v string) *UpdateHealthCheckInput { + s.InsufficientDataHealthStatus = &v + return s +} + +// SetInverted sets the Inverted field's value. +func (s *UpdateHealthCheckInput) SetInverted(v bool) *UpdateHealthCheckInput { + s.Inverted = &v + return s +} + +// SetPort sets the Port field's value. +func (s *UpdateHealthCheckInput) SetPort(v int64) *UpdateHealthCheckInput { + s.Port = &v + return s +} + +// SetRegions sets the Regions field's value. +func (s *UpdateHealthCheckInput) SetRegions(v []*string) *UpdateHealthCheckInput { + s.Regions = v + return s +} + +// SetResourcePath sets the ResourcePath field's value. +func (s *UpdateHealthCheckInput) SetResourcePath(v string) *UpdateHealthCheckInput { + s.ResourcePath = &v + return s +} + +// SetSearchString sets the SearchString field's value. +func (s *UpdateHealthCheckInput) SetSearchString(v string) *UpdateHealthCheckInput { + s.SearchString = &v + return s +} + type UpdateHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -9816,6 +11977,12 @@ func (s UpdateHealthCheckOutput) GoString() string { return s.String() } +// SetHealthCheck sets the HealthCheck field's value. +func (s *UpdateHealthCheckOutput) SetHealthCheck(v *HealthCheck) *UpdateHealthCheckOutput { + s.HealthCheck = v + return s +} + // A complex type that contains the hosted zone request information. type UpdateHostedZoneCommentInput struct { _ struct{} `locationName:"UpdateHostedZoneCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -9853,6 +12020,18 @@ func (s *UpdateHostedZoneCommentInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *UpdateHostedZoneCommentInput) SetComment(v string) *UpdateHostedZoneCommentInput { + s.Comment = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateHostedZoneCommentInput) SetId(v string) *UpdateHostedZoneCommentInput { + s.Id = &v + return s +} + // A complex type that contains the response to the UpdateHostedZoneCommentRequest. type UpdateHostedZoneCommentOutput struct { _ struct{} `type:"structure"` @@ -9873,6 +12052,12 @@ func (s UpdateHostedZoneCommentOutput) GoString() string { return s.String() } +// SetHostedZone sets the HostedZone field's value. +func (s *UpdateHostedZoneCommentOutput) SetHostedZone(v *HostedZone) *UpdateHostedZoneCommentOutput { + s.HostedZone = v + return s +} + // A complex type that contains information about the traffic policy for which // you want to update the comment. type UpdateTrafficPolicyCommentInput struct { @@ -9927,6 +12112,24 @@ func (s *UpdateTrafficPolicyCommentInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *UpdateTrafficPolicyCommentInput) SetComment(v string) *UpdateTrafficPolicyCommentInput { + s.Comment = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateTrafficPolicyCommentInput) SetId(v string) *UpdateTrafficPolicyCommentInput { + s.Id = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *UpdateTrafficPolicyCommentInput) SetVersion(v int64) *UpdateTrafficPolicyCommentInput { + s.Version = &v + return s +} + // A complex type that contains the response information for the traffic policy. type UpdateTrafficPolicyCommentOutput struct { _ struct{} `type:"structure"` @@ -9947,6 +12150,12 @@ func (s UpdateTrafficPolicyCommentOutput) GoString() string { return s.String() } +// SetTrafficPolicy sets the TrafficPolicy field's value. +func (s *UpdateTrafficPolicyCommentOutput) SetTrafficPolicy(v *TrafficPolicy) *UpdateTrafficPolicyCommentOutput { + s.TrafficPolicy = v + return s +} + // A complex type that contains information about the resource record sets that // you want to update based on a specified traffic policy instance. type UpdateTrafficPolicyInstanceInput struct { @@ -10011,6 +12220,30 @@ func (s *UpdateTrafficPolicyInstanceInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *UpdateTrafficPolicyInstanceInput) SetId(v string) *UpdateTrafficPolicyInstanceInput { + s.Id = &v + return s +} + +// SetTTL sets the TTL field's value. +func (s *UpdateTrafficPolicyInstanceInput) SetTTL(v int64) *UpdateTrafficPolicyInstanceInput { + s.TTL = &v + return s +} + +// SetTrafficPolicyId sets the TrafficPolicyId field's value. +func (s *UpdateTrafficPolicyInstanceInput) SetTrafficPolicyId(v string) *UpdateTrafficPolicyInstanceInput { + s.TrafficPolicyId = &v + return s +} + +// SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value. +func (s *UpdateTrafficPolicyInstanceInput) SetTrafficPolicyVersion(v int64) *UpdateTrafficPolicyInstanceInput { + s.TrafficPolicyVersion = &v + return s +} + // A complex type that contains information about the resource record sets that // Amazon Route 53 created based on a specified traffic policy. type UpdateTrafficPolicyInstanceOutput struct { @@ -10032,12 +12265,22 @@ func (s UpdateTrafficPolicyInstanceOutput) GoString() string { return s.String() } +// SetTrafficPolicyInstance sets the TrafficPolicyInstance field's value. +func (s *UpdateTrafficPolicyInstanceOutput) SetTrafficPolicyInstance(v *TrafficPolicyInstance) *UpdateTrafficPolicyInstanceOutput { + s.TrafficPolicyInstance = v + return s +} + +// A complex type that contains information about an Amazon VPC that is associated +// with a private hosted zone. type VPC struct { _ struct{} `type:"structure"` - // A VPC ID + // The ID of an Amazon VPC. VPCId *string `type:"string"` + // The region in which you created the VPC that you want to associate with the + // specified Amazon Route 53 hosted zone. VPCRegion *string `min:"1" type:"string" enum:"VPCRegion"` } @@ -10064,6 +12307,18 @@ func (s *VPC) Validate() error { return nil } +// SetVPCId sets the VPCId field's value. +func (s *VPC) SetVPCId(v string) *VPC { + s.VPCId = &v + return s +} + +// SetVPCRegion sets the VPCRegion field's value. +func (s *VPC) SetVPCRegion(v string) *VPC { + s.VPCRegion = &v + return s +} + const ( // ChangeActionCreate is a ChangeAction enum value ChangeActionCreate = "CREATE" @@ -10087,6 +12342,9 @@ const ( // CloudWatchRegionUsEast1 is a CloudWatchRegion enum value CloudWatchRegionUsEast1 = "us-east-1" + // CloudWatchRegionUsEast2 is a CloudWatchRegion enum value + CloudWatchRegionUsEast2 = "us-east-2" + // CloudWatchRegionUsWest1 is a CloudWatchRegion enum value CloudWatchRegionUsWest1 = "us-west-1" @@ -10132,7 +12390,7 @@ const ( ComparisonOperatorLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold" ) -// An Amazon EC2 region that you want Amazon Route 53 to use to perform health +// An Amazon EC2 Region that you want Amazon Route 53 to use to perform health // checks. const ( // HealthCheckRegionUsEast1 is a HealthCheckRegion enum value @@ -10241,6 +12499,9 @@ const ( // ResourceRecordSetRegionUsEast1 is a ResourceRecordSetRegion enum value ResourceRecordSetRegionUsEast1 = "us-east-1" + // ResourceRecordSetRegionUsEast2 is a ResourceRecordSetRegion enum value + ResourceRecordSetRegionUsEast2 = "us-east-2" + // ResourceRecordSetRegionUsWest1 is a ResourceRecordSetRegion enum value ResourceRecordSetRegionUsWest1 = "us-west-1" @@ -10304,6 +12565,9 @@ const ( // VPCRegionUsEast1 is a VPCRegion enum value VPCRegionUsEast1 = "us-east-1" + // VPCRegionUsEast2 is a VPCRegion enum value + VPCRegionUsEast2 = "us-east-2" + // VPCRegionUsWest1 is a VPCRegion enum value VPCRegionUsWest1 = "us-west-1" diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go index 3ac043725..8ee05865b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go @@ -3826,6 +3826,12 @@ func (s AbortIncompleteMultipartUpload) GoString() string { return s.String() } +// SetDaysAfterInitiation sets the DaysAfterInitiation field's value. +func (s *AbortIncompleteMultipartUpload) SetDaysAfterInitiation(v int64) *AbortIncompleteMultipartUpload { + s.DaysAfterInitiation = &v + return s +} + type AbortMultipartUploadInput struct { _ struct{} `type:"structure"` @@ -3877,6 +3883,30 @@ func (s *AbortMultipartUploadInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *AbortMultipartUploadInput) SetBucket(v string) *AbortMultipartUploadInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *AbortMultipartUploadInput) SetKey(v string) *AbortMultipartUploadInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *AbortMultipartUploadInput) SetRequestPayer(v string) *AbortMultipartUploadInput { + s.RequestPayer = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *AbortMultipartUploadInput) SetUploadId(v string) *AbortMultipartUploadInput { + s.UploadId = &v + return s +} + type AbortMultipartUploadOutput struct { _ struct{} `type:"structure"` @@ -3895,6 +3925,12 @@ func (s AbortMultipartUploadOutput) GoString() string { return s.String() } +// SetRequestCharged sets the RequestCharged field's value. +func (s *AbortMultipartUploadOutput) SetRequestCharged(v string) *AbortMultipartUploadOutput { + s.RequestCharged = &v + return s +} + type AccelerateConfiguration struct { _ struct{} `type:"structure"` @@ -3912,6 +3948,12 @@ func (s AccelerateConfiguration) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *AccelerateConfiguration) SetStatus(v string) *AccelerateConfiguration { + s.Status = &v + return s +} + type AccessControlPolicy struct { _ struct{} `type:"structure"` @@ -3951,6 +3993,18 @@ func (s *AccessControlPolicy) Validate() error { return nil } +// SetGrants sets the Grants field's value. +func (s *AccessControlPolicy) SetGrants(v []*Grant) *AccessControlPolicy { + s.Grants = v + return s +} + +// SetOwner sets the Owner field's value. +func (s *AccessControlPolicy) SetOwner(v *Owner) *AccessControlPolicy { + s.Owner = v + return s +} + type Bucket struct { _ struct{} `type:"structure"` @@ -3971,6 +4025,18 @@ func (s Bucket) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *Bucket) SetCreationDate(v time.Time) *Bucket { + s.CreationDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *Bucket) SetName(v string) *Bucket { + s.Name = &v + return s +} + type BucketLifecycleConfiguration struct { _ struct{} `type:"structure"` @@ -4011,6 +4077,12 @@ func (s *BucketLifecycleConfiguration) Validate() error { return nil } +// SetRules sets the Rules field's value. +func (s *BucketLifecycleConfiguration) SetRules(v []*LifecycleRule) *BucketLifecycleConfiguration { + s.Rules = v + return s +} + type BucketLoggingStatus struct { _ struct{} `type:"structure"` @@ -4042,6 +4114,12 @@ func (s *BucketLoggingStatus) Validate() error { return nil } +// SetLoggingEnabled sets the LoggingEnabled field's value. +func (s *BucketLoggingStatus) SetLoggingEnabled(v *LoggingEnabled) *BucketLoggingStatus { + s.LoggingEnabled = v + return s +} + type CORSConfiguration struct { _ struct{} `type:"structure"` @@ -4082,6 +4160,12 @@ func (s *CORSConfiguration) Validate() error { return nil } +// SetCORSRules sets the CORSRules field's value. +func (s *CORSConfiguration) SetCORSRules(v []*CORSRule) *CORSConfiguration { + s.CORSRules = v + return s +} + type CORSRule struct { _ struct{} `type:"structure"` @@ -4135,6 +4219,36 @@ func (s *CORSRule) Validate() error { return nil } +// SetAllowedHeaders sets the AllowedHeaders field's value. +func (s *CORSRule) SetAllowedHeaders(v []*string) *CORSRule { + s.AllowedHeaders = v + return s +} + +// SetAllowedMethods sets the AllowedMethods field's value. +func (s *CORSRule) SetAllowedMethods(v []*string) *CORSRule { + s.AllowedMethods = v + return s +} + +// SetAllowedOrigins sets the AllowedOrigins field's value. +func (s *CORSRule) SetAllowedOrigins(v []*string) *CORSRule { + s.AllowedOrigins = v + return s +} + +// SetExposeHeaders sets the ExposeHeaders field's value. +func (s *CORSRule) SetExposeHeaders(v []*string) *CORSRule { + s.ExposeHeaders = v + return s +} + +// SetMaxAgeSeconds sets the MaxAgeSeconds field's value. +func (s *CORSRule) SetMaxAgeSeconds(v int64) *CORSRule { + s.MaxAgeSeconds = &v + return s +} + type CloudFunctionConfiguration struct { _ struct{} `type:"structure"` @@ -4162,6 +4276,36 @@ func (s CloudFunctionConfiguration) GoString() string { return s.String() } +// SetCloudFunction sets the CloudFunction field's value. +func (s *CloudFunctionConfiguration) SetCloudFunction(v string) *CloudFunctionConfiguration { + s.CloudFunction = &v + return s +} + +// SetEvent sets the Event field's value. +func (s *CloudFunctionConfiguration) SetEvent(v string) *CloudFunctionConfiguration { + s.Event = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *CloudFunctionConfiguration) SetEvents(v []*string) *CloudFunctionConfiguration { + s.Events = v + return s +} + +// SetId sets the Id field's value. +func (s *CloudFunctionConfiguration) SetId(v string) *CloudFunctionConfiguration { + s.Id = &v + return s +} + +// SetInvocationRole sets the InvocationRole field's value. +func (s *CloudFunctionConfiguration) SetInvocationRole(v string) *CloudFunctionConfiguration { + s.InvocationRole = &v + return s +} + type CommonPrefix struct { _ struct{} `type:"structure"` @@ -4178,6 +4322,12 @@ func (s CommonPrefix) GoString() string { return s.String() } +// SetPrefix sets the Prefix field's value. +func (s *CommonPrefix) SetPrefix(v string) *CommonPrefix { + s.Prefix = &v + return s +} + type CompleteMultipartUploadInput struct { _ struct{} `type:"structure" payload:"MultipartUpload"` @@ -4231,6 +4381,36 @@ func (s *CompleteMultipartUploadInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *CompleteMultipartUploadInput) SetBucket(v string) *CompleteMultipartUploadInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CompleteMultipartUploadInput) SetKey(v string) *CompleteMultipartUploadInput { + s.Key = &v + return s +} + +// SetMultipartUpload sets the MultipartUpload field's value. +func (s *CompleteMultipartUploadInput) SetMultipartUpload(v *CompletedMultipartUpload) *CompleteMultipartUploadInput { + s.MultipartUpload = v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *CompleteMultipartUploadInput) SetRequestPayer(v string) *CompleteMultipartUploadInput { + s.RequestPayer = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartUploadInput { + s.UploadId = &v + return s +} + type CompleteMultipartUploadOutput struct { _ struct{} `type:"structure"` @@ -4273,6 +4453,60 @@ func (s CompleteMultipartUploadOutput) GoString() string { return s.String() } +// SetBucket sets the Bucket field's value. +func (s *CompleteMultipartUploadOutput) SetBucket(v string) *CompleteMultipartUploadOutput { + s.Bucket = &v + return s +} + +// SetETag sets the ETag field's value. +func (s *CompleteMultipartUploadOutput) SetETag(v string) *CompleteMultipartUploadOutput { + s.ETag = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *CompleteMultipartUploadOutput) SetExpiration(v string) *CompleteMultipartUploadOutput { + s.Expiration = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CompleteMultipartUploadOutput) SetKey(v string) *CompleteMultipartUploadOutput { + s.Key = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CompleteMultipartUploadOutput) SetLocation(v string) *CompleteMultipartUploadOutput { + s.Location = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *CompleteMultipartUploadOutput) SetRequestCharged(v string) *CompleteMultipartUploadOutput { + s.RequestCharged = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CompleteMultipartUploadOutput) SetSSEKMSKeyId(v string) *CompleteMultipartUploadOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CompleteMultipartUploadOutput) SetServerSideEncryption(v string) *CompleteMultipartUploadOutput { + s.ServerSideEncryption = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *CompleteMultipartUploadOutput) SetVersionId(v string) *CompleteMultipartUploadOutput { + s.VersionId = &v + return s +} + type CompletedMultipartUpload struct { _ struct{} `type:"structure"` @@ -4289,6 +4523,12 @@ func (s CompletedMultipartUpload) GoString() string { return s.String() } +// SetParts sets the Parts field's value. +func (s *CompletedMultipartUpload) SetParts(v []*CompletedPart) *CompletedMultipartUpload { + s.Parts = v + return s +} + type CompletedPart struct { _ struct{} `type:"structure"` @@ -4310,6 +4550,18 @@ func (s CompletedPart) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CompletedPart) SetETag(v string) *CompletedPart { + s.ETag = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *CompletedPart) SetPartNumber(v int64) *CompletedPart { + s.PartNumber = &v + return s +} + type Condition struct { _ struct{} `type:"structure"` @@ -4340,6 +4592,18 @@ func (s Condition) GoString() string { return s.String() } +// SetHttpErrorCodeReturnedEquals sets the HttpErrorCodeReturnedEquals field's value. +func (s *Condition) SetHttpErrorCodeReturnedEquals(v string) *Condition { + s.HttpErrorCodeReturnedEquals = &v + return s +} + +// SetKeyPrefixEquals sets the KeyPrefixEquals field's value. +func (s *Condition) SetKeyPrefixEquals(v string) *Condition { + s.KeyPrefixEquals = &v + return s +} + type CopyObjectInput struct { _ struct{} `type:"structure"` @@ -4495,6 +4759,192 @@ func (s *CopyObjectInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput { + s.ACL = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput { + s.Bucket = &v + return s +} + +// SetCacheControl sets the CacheControl field's value. +func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput { + s.ContentLanguage = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput { + s.ContentType = &v + return s +} + +// SetCopySource sets the CopySource field's value. +func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput { + s.CopySource = &v + return s +} + +// SetCopySourceIfMatch sets the CopySourceIfMatch field's value. +func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput { + s.CopySourceIfMatch = &v + return s +} + +// SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value. +func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput { + s.CopySourceIfModifiedSince = &v + return s +} + +// SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value. +func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput { + s.CopySourceIfNoneMatch = &v + return s +} + +// SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value. +func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput { + s.CopySourceIfUnmodifiedSince = &v + return s +} + +// SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value. +func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput { + s.CopySourceSSECustomerAlgorithm = &v + return s +} + +// SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value. +func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput { + s.CopySourceSSECustomerKey = &v + return s +} + +// SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value. +func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput { + s.CopySourceSSECustomerKeyMD5 = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput { + s.Expires = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput { + s.GrantWriteACP = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CopyObjectInput) SetKey(v string) *CopyObjectInput { + s.Key = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput { + s.Metadata = v + return s +} + +// SetMetadataDirective sets the MetadataDirective field's value. +func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput { + s.MetadataDirective = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *CopyObjectInput) SetSSECustomerAlgorithm(v string) *CopyObjectInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *CopyObjectInput) SetSSECustomerKeyMD5(v string) *CopyObjectInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CopyObjectInput) SetSSEKMSKeyId(v string) *CopyObjectInput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CopyObjectInput) SetServerSideEncryption(v string) *CopyObjectInput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *CopyObjectInput) SetStorageClass(v string) *CopyObjectInput { + s.StorageClass = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput { + s.WebsiteRedirectLocation = &v + return s +} + type CopyObjectOutput struct { _ struct{} `type:"structure" payload:"CopyObjectResult"` @@ -4541,6 +4991,60 @@ func (s CopyObjectOutput) GoString() string { return s.String() } +// SetCopyObjectResult sets the CopyObjectResult field's value. +func (s *CopyObjectOutput) SetCopyObjectResult(v *CopyObjectResult) *CopyObjectOutput { + s.CopyObjectResult = v + return s +} + +// SetCopySourceVersionId sets the CopySourceVersionId field's value. +func (s *CopyObjectOutput) SetCopySourceVersionId(v string) *CopyObjectOutput { + s.CopySourceVersionId = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *CopyObjectOutput) SetExpiration(v string) *CopyObjectOutput { + s.Expiration = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *CopyObjectOutput) SetRequestCharged(v string) *CopyObjectOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *CopyObjectOutput) SetSSECustomerAlgorithm(v string) *CopyObjectOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *CopyObjectOutput) SetSSECustomerKeyMD5(v string) *CopyObjectOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CopyObjectOutput) SetSSEKMSKeyId(v string) *CopyObjectOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CopyObjectOutput) SetServerSideEncryption(v string) *CopyObjectOutput { + s.ServerSideEncryption = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *CopyObjectOutput) SetVersionId(v string) *CopyObjectOutput { + s.VersionId = &v + return s +} + type CopyObjectResult struct { _ struct{} `type:"structure"` @@ -4559,6 +5063,18 @@ func (s CopyObjectResult) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CopyObjectResult) SetETag(v string) *CopyObjectResult { + s.ETag = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *CopyObjectResult) SetLastModified(v time.Time) *CopyObjectResult { + s.LastModified = &v + return s +} + type CopyPartResult struct { _ struct{} `type:"structure"` @@ -4579,6 +5095,18 @@ func (s CopyPartResult) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CopyPartResult) SetETag(v string) *CopyPartResult { + s.ETag = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *CopyPartResult) SetLastModified(v time.Time) *CopyPartResult { + s.LastModified = &v + return s +} + type CreateBucketConfiguration struct { _ struct{} `type:"structure"` @@ -4597,6 +5125,12 @@ func (s CreateBucketConfiguration) GoString() string { return s.String() } +// SetLocationConstraint sets the LocationConstraint field's value. +func (s *CreateBucketConfiguration) SetLocationConstraint(v string) *CreateBucketConfiguration { + s.LocationConstraint = &v + return s +} + type CreateBucketInput struct { _ struct{} `type:"structure" payload:"CreateBucketConfiguration"` @@ -4648,6 +5182,54 @@ func (s *CreateBucketInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *CreateBucketInput) SetACL(v string) *CreateBucketInput { + s.ACL = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *CreateBucketInput) SetBucket(v string) *CreateBucketInput { + s.Bucket = &v + return s +} + +// SetCreateBucketConfiguration sets the CreateBucketConfiguration field's value. +func (s *CreateBucketInput) SetCreateBucketConfiguration(v *CreateBucketConfiguration) *CreateBucketInput { + s.CreateBucketConfiguration = v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *CreateBucketInput) SetGrantFullControl(v string) *CreateBucketInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *CreateBucketInput) SetGrantRead(v string) *CreateBucketInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *CreateBucketInput) SetGrantReadACP(v string) *CreateBucketInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWrite sets the GrantWrite field's value. +func (s *CreateBucketInput) SetGrantWrite(v string) *CreateBucketInput { + s.GrantWrite = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput { + s.GrantWriteACP = &v + return s +} + type CreateBucketOutput struct { _ struct{} `type:"structure"` @@ -4664,6 +5246,12 @@ func (s CreateBucketOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateBucketOutput) SetLocation(v string) *CreateBucketOutput { + s.Location = &v + return s +} + type CreateMultipartUploadInput struct { _ struct{} `type:"structure"` @@ -4780,6 +5368,138 @@ func (s *CreateMultipartUploadInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *CreateMultipartUploadInput) SetACL(v string) *CreateMultipartUploadInput { + s.ACL = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *CreateMultipartUploadInput) SetBucket(v string) *CreateMultipartUploadInput { + s.Bucket = &v + return s +} + +// SetCacheControl sets the CacheControl field's value. +func (s *CreateMultipartUploadInput) SetCacheControl(v string) *CreateMultipartUploadInput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *CreateMultipartUploadInput) SetContentDisposition(v string) *CreateMultipartUploadInput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *CreateMultipartUploadInput) SetContentEncoding(v string) *CreateMultipartUploadInput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *CreateMultipartUploadInput) SetContentLanguage(v string) *CreateMultipartUploadInput { + s.ContentLanguage = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *CreateMultipartUploadInput) SetContentType(v string) *CreateMultipartUploadInput { + s.ContentType = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *CreateMultipartUploadInput) SetExpires(v time.Time) *CreateMultipartUploadInput { + s.Expires = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *CreateMultipartUploadInput) SetGrantFullControl(v string) *CreateMultipartUploadInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *CreateMultipartUploadInput) SetGrantRead(v string) *CreateMultipartUploadInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *CreateMultipartUploadInput) SetGrantReadACP(v string) *CreateMultipartUploadInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *CreateMultipartUploadInput) SetGrantWriteACP(v string) *CreateMultipartUploadInput { + s.GrantWriteACP = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CreateMultipartUploadInput) SetKey(v string) *CreateMultipartUploadInput { + s.Key = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *CreateMultipartUploadInput) SetMetadata(v map[string]*string) *CreateMultipartUploadInput { + s.Metadata = v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *CreateMultipartUploadInput) SetRequestPayer(v string) *CreateMultipartUploadInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *CreateMultipartUploadInput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *CreateMultipartUploadInput) SetSSECustomerKey(v string) *CreateMultipartUploadInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *CreateMultipartUploadInput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CreateMultipartUploadInput) SetSSEKMSKeyId(v string) *CreateMultipartUploadInput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CreateMultipartUploadInput) SetServerSideEncryption(v string) *CreateMultipartUploadInput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *CreateMultipartUploadInput) SetStorageClass(v string) *CreateMultipartUploadInput { + s.StorageClass = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *CreateMultipartUploadInput) SetWebsiteRedirectLocation(v string) *CreateMultipartUploadInput { + s.WebsiteRedirectLocation = &v + return s +} + type CreateMultipartUploadOutput struct { _ struct{} `type:"structure"` @@ -4832,6 +5552,66 @@ func (s CreateMultipartUploadOutput) GoString() string { return s.String() } +// SetAbortDate sets the AbortDate field's value. +func (s *CreateMultipartUploadOutput) SetAbortDate(v time.Time) *CreateMultipartUploadOutput { + s.AbortDate = &v + return s +} + +// SetAbortRuleId sets the AbortRuleId field's value. +func (s *CreateMultipartUploadOutput) SetAbortRuleId(v string) *CreateMultipartUploadOutput { + s.AbortRuleId = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *CreateMultipartUploadOutput) SetBucket(v string) *CreateMultipartUploadOutput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CreateMultipartUploadOutput) SetKey(v string) *CreateMultipartUploadOutput { + s.Key = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *CreateMultipartUploadOutput) SetRequestCharged(v string) *CreateMultipartUploadOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *CreateMultipartUploadOutput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *CreateMultipartUploadOutput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CreateMultipartUploadOutput) SetSSEKMSKeyId(v string) *CreateMultipartUploadOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CreateMultipartUploadOutput) SetServerSideEncryption(v string) *CreateMultipartUploadOutput { + s.ServerSideEncryption = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CreateMultipartUploadOutput) SetUploadId(v string) *CreateMultipartUploadOutput { + s.UploadId = &v + return s +} + type Delete struct { _ struct{} `type:"structure"` @@ -4876,6 +5656,18 @@ func (s *Delete) Validate() error { return nil } +// SetObjects sets the Objects field's value. +func (s *Delete) SetObjects(v []*ObjectIdentifier) *Delete { + s.Objects = v + return s +} + +// SetQuiet sets the Quiet field's value. +func (s *Delete) SetQuiet(v bool) *Delete { + s.Quiet = &v + return s +} + type DeleteBucketCorsInput struct { _ struct{} `type:"structure"` @@ -4906,6 +5698,12 @@ func (s *DeleteBucketCorsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketCorsInput) SetBucket(v string) *DeleteBucketCorsInput { + s.Bucket = &v + return s +} + type DeleteBucketCorsOutput struct { _ struct{} `type:"structure"` } @@ -4950,6 +5748,12 @@ func (s *DeleteBucketInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketInput) SetBucket(v string) *DeleteBucketInput { + s.Bucket = &v + return s +} + type DeleteBucketLifecycleInput struct { _ struct{} `type:"structure"` @@ -4980,6 +5784,12 @@ func (s *DeleteBucketLifecycleInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketLifecycleInput) SetBucket(v string) *DeleteBucketLifecycleInput { + s.Bucket = &v + return s +} + type DeleteBucketLifecycleOutput struct { _ struct{} `type:"structure"` } @@ -5038,6 +5848,12 @@ func (s *DeleteBucketPolicyInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketPolicyInput) SetBucket(v string) *DeleteBucketPolicyInput { + s.Bucket = &v + return s +} + type DeleteBucketPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5082,6 +5898,12 @@ func (s *DeleteBucketReplicationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketReplicationInput) SetBucket(v string) *DeleteBucketReplicationInput { + s.Bucket = &v + return s +} + type DeleteBucketReplicationOutput struct { _ struct{} `type:"structure"` } @@ -5126,6 +5948,12 @@ func (s *DeleteBucketTaggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketTaggingInput) SetBucket(v string) *DeleteBucketTaggingInput { + s.Bucket = &v + return s +} + type DeleteBucketTaggingOutput struct { _ struct{} `type:"structure"` } @@ -5170,6 +5998,12 @@ func (s *DeleteBucketWebsiteInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketWebsiteInput) SetBucket(v string) *DeleteBucketWebsiteInput { + s.Bucket = &v + return s +} + type DeleteBucketWebsiteOutput struct { _ struct{} `type:"structure"` } @@ -5213,6 +6047,36 @@ func (s DeleteMarkerEntry) GoString() string { return s.String() } +// SetIsLatest sets the IsLatest field's value. +func (s *DeleteMarkerEntry) SetIsLatest(v bool) *DeleteMarkerEntry { + s.IsLatest = &v + return s +} + +// SetKey sets the Key field's value. +func (s *DeleteMarkerEntry) SetKey(v string) *DeleteMarkerEntry { + s.Key = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *DeleteMarkerEntry) SetLastModified(v time.Time) *DeleteMarkerEntry { + s.LastModified = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *DeleteMarkerEntry) SetOwner(v *Owner) *DeleteMarkerEntry { + s.Owner = v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeleteMarkerEntry) SetVersionId(v string) *DeleteMarkerEntry { + s.VersionId = &v + return s +} + type DeleteObjectInput struct { _ struct{} `type:"structure"` @@ -5265,6 +6129,36 @@ func (s *DeleteObjectInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteObjectInput) SetBucket(v string) *DeleteObjectInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *DeleteObjectInput) SetKey(v string) *DeleteObjectInput { + s.Key = &v + return s +} + +// SetMFA sets the MFA field's value. +func (s *DeleteObjectInput) SetMFA(v string) *DeleteObjectInput { + s.MFA = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *DeleteObjectInput) SetRequestPayer(v string) *DeleteObjectInput { + s.RequestPayer = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeleteObjectInput) SetVersionId(v string) *DeleteObjectInput { + s.VersionId = &v + return s +} + type DeleteObjectOutput struct { _ struct{} `type:"structure"` @@ -5291,6 +6185,24 @@ func (s DeleteObjectOutput) GoString() string { return s.String() } +// SetDeleteMarker sets the DeleteMarker field's value. +func (s *DeleteObjectOutput) SetDeleteMarker(v bool) *DeleteObjectOutput { + s.DeleteMarker = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *DeleteObjectOutput) SetRequestCharged(v string) *DeleteObjectOutput { + s.RequestCharged = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeleteObjectOutput) SetVersionId(v string) *DeleteObjectOutput { + s.VersionId = &v + return s +} + type DeleteObjectsInput struct { _ struct{} `type:"structure" payload:"Delete"` @@ -5342,6 +6254,30 @@ func (s *DeleteObjectsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteObjectsInput) SetBucket(v string) *DeleteObjectsInput { + s.Bucket = &v + return s +} + +// SetDelete sets the Delete field's value. +func (s *DeleteObjectsInput) SetDelete(v *Delete) *DeleteObjectsInput { + s.Delete = v + return s +} + +// SetMFA sets the MFA field's value. +func (s *DeleteObjectsInput) SetMFA(v string) *DeleteObjectsInput { + s.MFA = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *DeleteObjectsInput) SetRequestPayer(v string) *DeleteObjectsInput { + s.RequestPayer = &v + return s +} + type DeleteObjectsOutput struct { _ struct{} `type:"structure"` @@ -5364,6 +6300,24 @@ func (s DeleteObjectsOutput) GoString() string { return s.String() } +// SetDeleted sets the Deleted field's value. +func (s *DeleteObjectsOutput) SetDeleted(v []*DeletedObject) *DeleteObjectsOutput { + s.Deleted = v + return s +} + +// SetErrors sets the Errors field's value. +func (s *DeleteObjectsOutput) SetErrors(v []*Error) *DeleteObjectsOutput { + s.Errors = v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *DeleteObjectsOutput) SetRequestCharged(v string) *DeleteObjectsOutput { + s.RequestCharged = &v + return s +} + type DeletedObject struct { _ struct{} `type:"structure"` @@ -5386,6 +6340,30 @@ func (s DeletedObject) GoString() string { return s.String() } +// SetDeleteMarker sets the DeleteMarker field's value. +func (s *DeletedObject) SetDeleteMarker(v bool) *DeletedObject { + s.DeleteMarker = &v + return s +} + +// SetDeleteMarkerVersionId sets the DeleteMarkerVersionId field's value. +func (s *DeletedObject) SetDeleteMarkerVersionId(v string) *DeletedObject { + s.DeleteMarkerVersionId = &v + return s +} + +// SetKey sets the Key field's value. +func (s *DeletedObject) SetKey(v string) *DeletedObject { + s.Key = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeletedObject) SetVersionId(v string) *DeletedObject { + s.VersionId = &v + return s +} + type Destination struct { _ struct{} `type:"structure"` @@ -5422,6 +6400,18 @@ func (s *Destination) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *Destination) SetBucket(v string) *Destination { + s.Bucket = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *Destination) SetStorageClass(v string) *Destination { + s.StorageClass = &v + return s +} + type Error struct { _ struct{} `type:"structure"` @@ -5444,6 +6434,30 @@ func (s Error) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *Error) SetCode(v string) *Error { + s.Code = &v + return s +} + +// SetKey sets the Key field's value. +func (s *Error) SetKey(v string) *Error { + s.Key = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Error) SetMessage(v string) *Error { + s.Message = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *Error) SetVersionId(v string) *Error { + s.VersionId = &v + return s +} + type ErrorDocument struct { _ struct{} `type:"structure"` @@ -5479,6 +6493,12 @@ func (s *ErrorDocument) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *ErrorDocument) SetKey(v string) *ErrorDocument { + s.Key = &v + return s +} + // Container for key value pair that defines the criteria for the filter rule. type FilterRule struct { _ struct{} `type:"structure"` @@ -5487,7 +6507,6 @@ type FilterRule struct { // the filtering rule applies. Maximum prefix length can be up to 1,024 characters. // Overlapping prefixes and suffixes are not supported. For more information, // go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - // in the Amazon Simple Storage Service Developer Guide. Name *string `type:"string" enum:"FilterRuleName"` Value *string `type:"string"` @@ -5503,6 +6522,18 @@ func (s FilterRule) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *FilterRule) SetName(v string) *FilterRule { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *FilterRule) SetValue(v string) *FilterRule { + s.Value = &v + return s +} + type GetBucketAccelerateConfigurationInput struct { _ struct{} `type:"structure"` @@ -5535,6 +6566,12 @@ func (s *GetBucketAccelerateConfigurationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketAccelerateConfigurationInput) SetBucket(v string) *GetBucketAccelerateConfigurationInput { + s.Bucket = &v + return s +} + type GetBucketAccelerateConfigurationOutput struct { _ struct{} `type:"structure"` @@ -5552,6 +6589,12 @@ func (s GetBucketAccelerateConfigurationOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *GetBucketAccelerateConfigurationOutput) SetStatus(v string) *GetBucketAccelerateConfigurationOutput { + s.Status = &v + return s +} + type GetBucketAclInput struct { _ struct{} `type:"structure"` @@ -5582,6 +6625,12 @@ func (s *GetBucketAclInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketAclInput) SetBucket(v string) *GetBucketAclInput { + s.Bucket = &v + return s +} + type GetBucketAclOutput struct { _ struct{} `type:"structure"` @@ -5601,6 +6650,18 @@ func (s GetBucketAclOutput) GoString() string { return s.String() } +// SetGrants sets the Grants field's value. +func (s *GetBucketAclOutput) SetGrants(v []*Grant) *GetBucketAclOutput { + s.Grants = v + return s +} + +// SetOwner sets the Owner field's value. +func (s *GetBucketAclOutput) SetOwner(v *Owner) *GetBucketAclOutput { + s.Owner = v + return s +} + type GetBucketCorsInput struct { _ struct{} `type:"structure"` @@ -5631,6 +6692,12 @@ func (s *GetBucketCorsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketCorsInput) SetBucket(v string) *GetBucketCorsInput { + s.Bucket = &v + return s +} + type GetBucketCorsOutput struct { _ struct{} `type:"structure"` @@ -5647,6 +6714,12 @@ func (s GetBucketCorsOutput) GoString() string { return s.String() } +// SetCORSRules sets the CORSRules field's value. +func (s *GetBucketCorsOutput) SetCORSRules(v []*CORSRule) *GetBucketCorsOutput { + s.CORSRules = v + return s +} + type GetBucketLifecycleConfigurationInput struct { _ struct{} `type:"structure"` @@ -5677,6 +6750,12 @@ func (s *GetBucketLifecycleConfigurationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketLifecycleConfigurationInput) SetBucket(v string) *GetBucketLifecycleConfigurationInput { + s.Bucket = &v + return s +} + type GetBucketLifecycleConfigurationOutput struct { _ struct{} `type:"structure"` @@ -5693,6 +6772,12 @@ func (s GetBucketLifecycleConfigurationOutput) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *GetBucketLifecycleConfigurationOutput) SetRules(v []*LifecycleRule) *GetBucketLifecycleConfigurationOutput { + s.Rules = v + return s +} + type GetBucketLifecycleInput struct { _ struct{} `type:"structure"` @@ -5723,6 +6808,12 @@ func (s *GetBucketLifecycleInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketLifecycleInput) SetBucket(v string) *GetBucketLifecycleInput { + s.Bucket = &v + return s +} + type GetBucketLifecycleOutput struct { _ struct{} `type:"structure"` @@ -5739,6 +6830,12 @@ func (s GetBucketLifecycleOutput) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *GetBucketLifecycleOutput) SetRules(v []*Rule) *GetBucketLifecycleOutput { + s.Rules = v + return s +} + type GetBucketLocationInput struct { _ struct{} `type:"structure"` @@ -5769,6 +6866,12 @@ func (s *GetBucketLocationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketLocationInput) SetBucket(v string) *GetBucketLocationInput { + s.Bucket = &v + return s +} + type GetBucketLocationOutput struct { _ struct{} `type:"structure"` @@ -5785,6 +6888,12 @@ func (s GetBucketLocationOutput) GoString() string { return s.String() } +// SetLocationConstraint sets the LocationConstraint field's value. +func (s *GetBucketLocationOutput) SetLocationConstraint(v string) *GetBucketLocationOutput { + s.LocationConstraint = &v + return s +} + type GetBucketLoggingInput struct { _ struct{} `type:"structure"` @@ -5815,6 +6924,12 @@ func (s *GetBucketLoggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketLoggingInput) SetBucket(v string) *GetBucketLoggingInput { + s.Bucket = &v + return s +} + type GetBucketLoggingOutput struct { _ struct{} `type:"structure"` @@ -5831,6 +6946,12 @@ func (s GetBucketLoggingOutput) GoString() string { return s.String() } +// SetLoggingEnabled sets the LoggingEnabled field's value. +func (s *GetBucketLoggingOutput) SetLoggingEnabled(v *LoggingEnabled) *GetBucketLoggingOutput { + s.LoggingEnabled = v + return s +} + type GetBucketNotificationConfigurationRequest struct { _ struct{} `type:"structure"` @@ -5863,6 +6984,12 @@ func (s *GetBucketNotificationConfigurationRequest) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketNotificationConfigurationRequest) SetBucket(v string) *GetBucketNotificationConfigurationRequest { + s.Bucket = &v + return s +} + type GetBucketPolicyInput struct { _ struct{} `type:"structure"` @@ -5893,6 +7020,12 @@ func (s *GetBucketPolicyInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput { + s.Bucket = &v + return s +} + type GetBucketPolicyOutput struct { _ struct{} `type:"structure" payload:"Policy"` @@ -5910,6 +7043,12 @@ func (s GetBucketPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetBucketPolicyOutput) SetPolicy(v string) *GetBucketPolicyOutput { + s.Policy = &v + return s +} + type GetBucketReplicationInput struct { _ struct{} `type:"structure"` @@ -5940,6 +7079,12 @@ func (s *GetBucketReplicationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketReplicationInput) SetBucket(v string) *GetBucketReplicationInput { + s.Bucket = &v + return s +} + type GetBucketReplicationOutput struct { _ struct{} `type:"structure" payload:"ReplicationConfiguration"` @@ -5958,6 +7103,12 @@ func (s GetBucketReplicationOutput) GoString() string { return s.String() } +// SetReplicationConfiguration sets the ReplicationConfiguration field's value. +func (s *GetBucketReplicationOutput) SetReplicationConfiguration(v *ReplicationConfiguration) *GetBucketReplicationOutput { + s.ReplicationConfiguration = v + return s +} + type GetBucketRequestPaymentInput struct { _ struct{} `type:"structure"` @@ -5988,6 +7139,12 @@ func (s *GetBucketRequestPaymentInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketRequestPaymentInput) SetBucket(v string) *GetBucketRequestPaymentInput { + s.Bucket = &v + return s +} + type GetBucketRequestPaymentOutput struct { _ struct{} `type:"structure"` @@ -6005,6 +7162,12 @@ func (s GetBucketRequestPaymentOutput) GoString() string { return s.String() } +// SetPayer sets the Payer field's value. +func (s *GetBucketRequestPaymentOutput) SetPayer(v string) *GetBucketRequestPaymentOutput { + s.Payer = &v + return s +} + type GetBucketTaggingInput struct { _ struct{} `type:"structure"` @@ -6035,6 +7198,12 @@ func (s *GetBucketTaggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketTaggingInput) SetBucket(v string) *GetBucketTaggingInput { + s.Bucket = &v + return s +} + type GetBucketTaggingOutput struct { _ struct{} `type:"structure"` @@ -6052,6 +7221,12 @@ func (s GetBucketTaggingOutput) GoString() string { return s.String() } +// SetTagSet sets the TagSet field's value. +func (s *GetBucketTaggingOutput) SetTagSet(v []*Tag) *GetBucketTaggingOutput { + s.TagSet = v + return s +} + type GetBucketVersioningInput struct { _ struct{} `type:"structure"` @@ -6082,6 +7257,12 @@ func (s *GetBucketVersioningInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketVersioningInput) SetBucket(v string) *GetBucketVersioningInput { + s.Bucket = &v + return s +} + type GetBucketVersioningOutput struct { _ struct{} `type:"structure"` @@ -6104,6 +7285,18 @@ func (s GetBucketVersioningOutput) GoString() string { return s.String() } +// SetMFADelete sets the MFADelete field's value. +func (s *GetBucketVersioningOutput) SetMFADelete(v string) *GetBucketVersioningOutput { + s.MFADelete = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetBucketVersioningOutput) SetStatus(v string) *GetBucketVersioningOutput { + s.Status = &v + return s +} + type GetBucketWebsiteInput struct { _ struct{} `type:"structure"` @@ -6134,6 +7327,12 @@ func (s *GetBucketWebsiteInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketWebsiteInput) SetBucket(v string) *GetBucketWebsiteInput { + s.Bucket = &v + return s +} + type GetBucketWebsiteOutput struct { _ struct{} `type:"structure"` @@ -6156,6 +7355,30 @@ func (s GetBucketWebsiteOutput) GoString() string { return s.String() } +// SetErrorDocument sets the ErrorDocument field's value. +func (s *GetBucketWebsiteOutput) SetErrorDocument(v *ErrorDocument) *GetBucketWebsiteOutput { + s.ErrorDocument = v + return s +} + +// SetIndexDocument sets the IndexDocument field's value. +func (s *GetBucketWebsiteOutput) SetIndexDocument(v *IndexDocument) *GetBucketWebsiteOutput { + s.IndexDocument = v + return s +} + +// SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value. +func (s *GetBucketWebsiteOutput) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *GetBucketWebsiteOutput { + s.RedirectAllRequestsTo = v + return s +} + +// SetRoutingRules sets the RoutingRules field's value. +func (s *GetBucketWebsiteOutput) SetRoutingRules(v []*RoutingRule) *GetBucketWebsiteOutput { + s.RoutingRules = v + return s +} + type GetObjectAclInput struct { _ struct{} `type:"structure"` @@ -6204,6 +7427,30 @@ func (s *GetObjectAclInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetObjectAclInput) SetBucket(v string) *GetObjectAclInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *GetObjectAclInput) SetKey(v string) *GetObjectAclInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *GetObjectAclInput) SetRequestPayer(v string) *GetObjectAclInput { + s.RequestPayer = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectAclInput) SetVersionId(v string) *GetObjectAclInput { + s.VersionId = &v + return s +} + type GetObjectAclOutput struct { _ struct{} `type:"structure"` @@ -6227,6 +7474,24 @@ func (s GetObjectAclOutput) GoString() string { return s.String() } +// SetGrants sets the Grants field's value. +func (s *GetObjectAclOutput) SetGrants(v []*Grant) *GetObjectAclOutput { + s.Grants = v + return s +} + +// SetOwner sets the Owner field's value. +func (s *GetObjectAclOutput) SetOwner(v *Owner) *GetObjectAclOutput { + s.Owner = v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *GetObjectAclOutput) SetRequestCharged(v string) *GetObjectAclOutput { + s.RequestCharged = &v + return s +} + type GetObjectInput struct { _ struct{} `type:"structure"` @@ -6333,6 +7598,120 @@ func (s *GetObjectInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetObjectInput) SetBucket(v string) *GetObjectInput { + s.Bucket = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *GetObjectInput) SetIfMatch(v string) *GetObjectInput { + s.IfMatch = &v + return s +} + +// SetIfModifiedSince sets the IfModifiedSince field's value. +func (s *GetObjectInput) SetIfModifiedSince(v time.Time) *GetObjectInput { + s.IfModifiedSince = &v + return s +} + +// SetIfNoneMatch sets the IfNoneMatch field's value. +func (s *GetObjectInput) SetIfNoneMatch(v string) *GetObjectInput { + s.IfNoneMatch = &v + return s +} + +// SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value. +func (s *GetObjectInput) SetIfUnmodifiedSince(v time.Time) *GetObjectInput { + s.IfUnmodifiedSince = &v + return s +} + +// SetKey sets the Key field's value. +func (s *GetObjectInput) SetKey(v string) *GetObjectInput { + s.Key = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *GetObjectInput) SetPartNumber(v int64) *GetObjectInput { + s.PartNumber = &v + return s +} + +// SetRange sets the Range field's value. +func (s *GetObjectInput) SetRange(v string) *GetObjectInput { + s.Range = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *GetObjectInput) SetRequestPayer(v string) *GetObjectInput { + s.RequestPayer = &v + return s +} + +// SetResponseCacheControl sets the ResponseCacheControl field's value. +func (s *GetObjectInput) SetResponseCacheControl(v string) *GetObjectInput { + s.ResponseCacheControl = &v + return s +} + +// SetResponseContentDisposition sets the ResponseContentDisposition field's value. +func (s *GetObjectInput) SetResponseContentDisposition(v string) *GetObjectInput { + s.ResponseContentDisposition = &v + return s +} + +// SetResponseContentEncoding sets the ResponseContentEncoding field's value. +func (s *GetObjectInput) SetResponseContentEncoding(v string) *GetObjectInput { + s.ResponseContentEncoding = &v + return s +} + +// SetResponseContentLanguage sets the ResponseContentLanguage field's value. +func (s *GetObjectInput) SetResponseContentLanguage(v string) *GetObjectInput { + s.ResponseContentLanguage = &v + return s +} + +// SetResponseContentType sets the ResponseContentType field's value. +func (s *GetObjectInput) SetResponseContentType(v string) *GetObjectInput { + s.ResponseContentType = &v + return s +} + +// SetResponseExpires sets the ResponseExpires field's value. +func (s *GetObjectInput) SetResponseExpires(v time.Time) *GetObjectInput { + s.ResponseExpires = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *GetObjectInput) SetSSECustomerAlgorithm(v string) *GetObjectInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *GetObjectInput) SetSSECustomerKey(v string) *GetObjectInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *GetObjectInput) SetSSECustomerKeyMD5(v string) *GetObjectInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectInput) SetVersionId(v string) *GetObjectInput { + s.VersionId = &v + return s +} + type GetObjectOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -6445,6 +7824,168 @@ func (s GetObjectOutput) GoString() string { return s.String() } +// SetAcceptRanges sets the AcceptRanges field's value. +func (s *GetObjectOutput) SetAcceptRanges(v string) *GetObjectOutput { + s.AcceptRanges = &v + return s +} + +// SetBody sets the Body field's value. +func (s *GetObjectOutput) SetBody(v io.ReadCloser) *GetObjectOutput { + s.Body = v + return s +} + +// SetCacheControl sets the CacheControl field's value. +func (s *GetObjectOutput) SetCacheControl(v string) *GetObjectOutput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *GetObjectOutput) SetContentDisposition(v string) *GetObjectOutput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *GetObjectOutput) SetContentEncoding(v string) *GetObjectOutput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *GetObjectOutput) SetContentLanguage(v string) *GetObjectOutput { + s.ContentLanguage = &v + return s +} + +// SetContentLength sets the ContentLength field's value. +func (s *GetObjectOutput) SetContentLength(v int64) *GetObjectOutput { + s.ContentLength = &v + return s +} + +// SetContentRange sets the ContentRange field's value. +func (s *GetObjectOutput) SetContentRange(v string) *GetObjectOutput { + s.ContentRange = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetObjectOutput) SetContentType(v string) *GetObjectOutput { + s.ContentType = &v + return s +} + +// SetDeleteMarker sets the DeleteMarker field's value. +func (s *GetObjectOutput) SetDeleteMarker(v bool) *GetObjectOutput { + s.DeleteMarker = &v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetObjectOutput) SetETag(v string) *GetObjectOutput { + s.ETag = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *GetObjectOutput) SetExpiration(v string) *GetObjectOutput { + s.Expiration = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *GetObjectOutput) SetExpires(v string) *GetObjectOutput { + s.Expires = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *GetObjectOutput) SetLastModified(v time.Time) *GetObjectOutput { + s.LastModified = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *GetObjectOutput) SetMetadata(v map[string]*string) *GetObjectOutput { + s.Metadata = v + return s +} + +// SetMissingMeta sets the MissingMeta field's value. +func (s *GetObjectOutput) SetMissingMeta(v int64) *GetObjectOutput { + s.MissingMeta = &v + return s +} + +// SetPartsCount sets the PartsCount field's value. +func (s *GetObjectOutput) SetPartsCount(v int64) *GetObjectOutput { + s.PartsCount = &v + return s +} + +// SetReplicationStatus sets the ReplicationStatus field's value. +func (s *GetObjectOutput) SetReplicationStatus(v string) *GetObjectOutput { + s.ReplicationStatus = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *GetObjectOutput) SetRequestCharged(v string) *GetObjectOutput { + s.RequestCharged = &v + return s +} + +// SetRestore sets the Restore field's value. +func (s *GetObjectOutput) SetRestore(v string) *GetObjectOutput { + s.Restore = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *GetObjectOutput) SetSSECustomerAlgorithm(v string) *GetObjectOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *GetObjectOutput) SetSSECustomerKeyMD5(v string) *GetObjectOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *GetObjectOutput) SetSSEKMSKeyId(v string) *GetObjectOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *GetObjectOutput) SetServerSideEncryption(v string) *GetObjectOutput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *GetObjectOutput) SetStorageClass(v string) *GetObjectOutput { + s.StorageClass = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectOutput) SetVersionId(v string) *GetObjectOutput { + s.VersionId = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput { + s.WebsiteRedirectLocation = &v + return s +} + type GetObjectTorrentInput struct { _ struct{} `type:"structure"` @@ -6490,6 +8031,24 @@ func (s *GetObjectTorrentInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetObjectTorrentInput) SetBucket(v string) *GetObjectTorrentInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *GetObjectTorrentInput) SetKey(v string) *GetObjectTorrentInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *GetObjectTorrentInput) SetRequestPayer(v string) *GetObjectTorrentInput { + s.RequestPayer = &v + return s +} + type GetObjectTorrentOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -6510,6 +8069,18 @@ func (s GetObjectTorrentOutput) GoString() string { return s.String() } +// SetBody sets the Body field's value. +func (s *GetObjectTorrentOutput) SetBody(v io.ReadCloser) *GetObjectTorrentOutput { + s.Body = v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *GetObjectTorrentOutput) SetRequestCharged(v string) *GetObjectTorrentOutput { + s.RequestCharged = &v + return s +} + type Grant struct { _ struct{} `type:"structure"` @@ -6544,6 +8115,18 @@ func (s *Grant) Validate() error { return nil } +// SetGrantee sets the Grantee field's value. +func (s *Grant) SetGrantee(v *Grantee) *Grant { + s.Grantee = v + return s +} + +// SetPermission sets the Permission field's value. +func (s *Grant) SetPermission(v string) *Grant { + s.Permission = &v + return s +} + type Grantee struct { _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"` @@ -6588,6 +8171,36 @@ func (s *Grantee) Validate() error { return nil } +// SetDisplayName sets the DisplayName field's value. +func (s *Grantee) SetDisplayName(v string) *Grantee { + s.DisplayName = &v + return s +} + +// SetEmailAddress sets the EmailAddress field's value. +func (s *Grantee) SetEmailAddress(v string) *Grantee { + s.EmailAddress = &v + return s +} + +// SetID sets the ID field's value. +func (s *Grantee) SetID(v string) *Grantee { + s.ID = &v + return s +} + +// SetType sets the Type field's value. +func (s *Grantee) SetType(v string) *Grantee { + s.Type = &v + return s +} + +// SetURI sets the URI field's value. +func (s *Grantee) SetURI(v string) *Grantee { + s.URI = &v + return s +} + type HeadBucketInput struct { _ struct{} `type:"structure"` @@ -6618,6 +8231,12 @@ func (s *HeadBucketInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *HeadBucketInput) SetBucket(v string) *HeadBucketInput { + s.Bucket = &v + return s +} + type HeadBucketOutput struct { _ struct{} `type:"structure"` } @@ -6721,6 +8340,84 @@ func (s *HeadObjectInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *HeadObjectInput) SetBucket(v string) *HeadObjectInput { + s.Bucket = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *HeadObjectInput) SetIfMatch(v string) *HeadObjectInput { + s.IfMatch = &v + return s +} + +// SetIfModifiedSince sets the IfModifiedSince field's value. +func (s *HeadObjectInput) SetIfModifiedSince(v time.Time) *HeadObjectInput { + s.IfModifiedSince = &v + return s +} + +// SetIfNoneMatch sets the IfNoneMatch field's value. +func (s *HeadObjectInput) SetIfNoneMatch(v string) *HeadObjectInput { + s.IfNoneMatch = &v + return s +} + +// SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value. +func (s *HeadObjectInput) SetIfUnmodifiedSince(v time.Time) *HeadObjectInput { + s.IfUnmodifiedSince = &v + return s +} + +// SetKey sets the Key field's value. +func (s *HeadObjectInput) SetKey(v string) *HeadObjectInput { + s.Key = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *HeadObjectInput) SetPartNumber(v int64) *HeadObjectInput { + s.PartNumber = &v + return s +} + +// SetRange sets the Range field's value. +func (s *HeadObjectInput) SetRange(v string) *HeadObjectInput { + s.Range = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *HeadObjectInput) SetRequestPayer(v string) *HeadObjectInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *HeadObjectInput) SetSSECustomerAlgorithm(v string) *HeadObjectInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *HeadObjectInput) SetSSECustomerKey(v string) *HeadObjectInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *HeadObjectInput) SetSSECustomerKeyMD5(v string) *HeadObjectInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *HeadObjectInput) SetVersionId(v string) *HeadObjectInput { + s.VersionId = &v + return s +} + type HeadObjectOutput struct { _ struct{} `type:"structure"` @@ -6827,6 +8524,156 @@ func (s HeadObjectOutput) GoString() string { return s.String() } +// SetAcceptRanges sets the AcceptRanges field's value. +func (s *HeadObjectOutput) SetAcceptRanges(v string) *HeadObjectOutput { + s.AcceptRanges = &v + return s +} + +// SetCacheControl sets the CacheControl field's value. +func (s *HeadObjectOutput) SetCacheControl(v string) *HeadObjectOutput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *HeadObjectOutput) SetContentDisposition(v string) *HeadObjectOutput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *HeadObjectOutput) SetContentEncoding(v string) *HeadObjectOutput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *HeadObjectOutput) SetContentLanguage(v string) *HeadObjectOutput { + s.ContentLanguage = &v + return s +} + +// SetContentLength sets the ContentLength field's value. +func (s *HeadObjectOutput) SetContentLength(v int64) *HeadObjectOutput { + s.ContentLength = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *HeadObjectOutput) SetContentType(v string) *HeadObjectOutput { + s.ContentType = &v + return s +} + +// SetDeleteMarker sets the DeleteMarker field's value. +func (s *HeadObjectOutput) SetDeleteMarker(v bool) *HeadObjectOutput { + s.DeleteMarker = &v + return s +} + +// SetETag sets the ETag field's value. +func (s *HeadObjectOutput) SetETag(v string) *HeadObjectOutput { + s.ETag = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *HeadObjectOutput) SetExpiration(v string) *HeadObjectOutput { + s.Expiration = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *HeadObjectOutput) SetExpires(v string) *HeadObjectOutput { + s.Expires = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *HeadObjectOutput) SetLastModified(v time.Time) *HeadObjectOutput { + s.LastModified = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *HeadObjectOutput) SetMetadata(v map[string]*string) *HeadObjectOutput { + s.Metadata = v + return s +} + +// SetMissingMeta sets the MissingMeta field's value. +func (s *HeadObjectOutput) SetMissingMeta(v int64) *HeadObjectOutput { + s.MissingMeta = &v + return s +} + +// SetPartsCount sets the PartsCount field's value. +func (s *HeadObjectOutput) SetPartsCount(v int64) *HeadObjectOutput { + s.PartsCount = &v + return s +} + +// SetReplicationStatus sets the ReplicationStatus field's value. +func (s *HeadObjectOutput) SetReplicationStatus(v string) *HeadObjectOutput { + s.ReplicationStatus = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *HeadObjectOutput) SetRequestCharged(v string) *HeadObjectOutput { + s.RequestCharged = &v + return s +} + +// SetRestore sets the Restore field's value. +func (s *HeadObjectOutput) SetRestore(v string) *HeadObjectOutput { + s.Restore = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *HeadObjectOutput) SetSSECustomerAlgorithm(v string) *HeadObjectOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *HeadObjectOutput) SetSSECustomerKeyMD5(v string) *HeadObjectOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *HeadObjectOutput) SetSSEKMSKeyId(v string) *HeadObjectOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *HeadObjectOutput) SetServerSideEncryption(v string) *HeadObjectOutput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *HeadObjectOutput) SetStorageClass(v string) *HeadObjectOutput { + s.StorageClass = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *HeadObjectOutput) SetVersionId(v string) *HeadObjectOutput { + s.VersionId = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *HeadObjectOutput) SetWebsiteRedirectLocation(v string) *HeadObjectOutput { + s.WebsiteRedirectLocation = &v + return s +} + type IndexDocument struct { _ struct{} `type:"structure"` @@ -6862,6 +8709,12 @@ func (s *IndexDocument) Validate() error { return nil } +// SetSuffix sets the Suffix field's value. +func (s *IndexDocument) SetSuffix(v string) *IndexDocument { + s.Suffix = &v + return s +} + type Initiator struct { _ struct{} `type:"structure"` @@ -6883,6 +8736,18 @@ func (s Initiator) GoString() string { return s.String() } +// SetDisplayName sets the DisplayName field's value. +func (s *Initiator) SetDisplayName(v string) *Initiator { + s.DisplayName = &v + return s +} + +// SetID sets the ID field's value. +func (s *Initiator) SetID(v string) *Initiator { + s.ID = &v + return s +} + // Container for object key name prefix and suffix filtering rules. type KeyFilter struct { _ struct{} `type:"structure"` @@ -6902,6 +8767,12 @@ func (s KeyFilter) GoString() string { return s.String() } +// SetFilterRules sets the FilterRules field's value. +func (s *KeyFilter) SetFilterRules(v []*FilterRule) *KeyFilter { + s.FilterRules = v + return s +} + // Container for specifying the AWS Lambda notification configuration. type LambdaFunctionConfiguration struct { _ struct{} `type:"structure"` @@ -6911,7 +8782,6 @@ type LambdaFunctionConfiguration struct { // Container for object key name filtering rules. For information about key // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - // in the Amazon Simple Storage Service Developer Guide. Filter *NotificationConfigurationFilter `type:"structure"` // Optional unique identifier for configurations in a notification configuration. @@ -6951,6 +8821,30 @@ func (s *LambdaFunctionConfiguration) Validate() error { return nil } +// SetEvents sets the Events field's value. +func (s *LambdaFunctionConfiguration) SetEvents(v []*string) *LambdaFunctionConfiguration { + s.Events = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *LambdaFunctionConfiguration) SetFilter(v *NotificationConfigurationFilter) *LambdaFunctionConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *LambdaFunctionConfiguration) SetId(v string) *LambdaFunctionConfiguration { + s.Id = &v + return s +} + +// SetLambdaFunctionArn sets the LambdaFunctionArn field's value. +func (s *LambdaFunctionConfiguration) SetLambdaFunctionArn(v string) *LambdaFunctionConfiguration { + s.LambdaFunctionArn = &v + return s +} + type LifecycleConfiguration struct { _ struct{} `type:"structure"` @@ -6991,6 +8885,12 @@ func (s *LifecycleConfiguration) Validate() error { return nil } +// SetRules sets the Rules field's value. +func (s *LifecycleConfiguration) SetRules(v []*Rule) *LifecycleConfiguration { + s.Rules = v + return s +} + type LifecycleExpiration struct { _ struct{} `type:"structure"` @@ -7019,6 +8919,24 @@ func (s LifecycleExpiration) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration { + s.Date = &v + return s +} + +// SetDays sets the Days field's value. +func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration { + s.Days = &v + return s +} + +// SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value. +func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration { + s.ExpiredObjectDeleteMarker = &v + return s +} + type LifecycleRule struct { _ struct{} `type:"structure"` @@ -7080,6 +8998,54 @@ func (s *LifecycleRule) Validate() error { return nil } +// SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value. +func (s *LifecycleRule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *LifecycleRule { + s.AbortIncompleteMultipartUpload = v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *LifecycleRule) SetExpiration(v *LifecycleExpiration) *LifecycleRule { + s.Expiration = v + return s +} + +// SetID sets the ID field's value. +func (s *LifecycleRule) SetID(v string) *LifecycleRule { + s.ID = &v + return s +} + +// SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value. +func (s *LifecycleRule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *LifecycleRule { + s.NoncurrentVersionExpiration = v + return s +} + +// SetNoncurrentVersionTransitions sets the NoncurrentVersionTransitions field's value. +func (s *LifecycleRule) SetNoncurrentVersionTransitions(v []*NoncurrentVersionTransition) *LifecycleRule { + s.NoncurrentVersionTransitions = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *LifecycleRule) SetPrefix(v string) *LifecycleRule { + s.Prefix = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *LifecycleRule) SetStatus(v string) *LifecycleRule { + s.Status = &v + return s +} + +// SetTransitions sets the Transitions field's value. +func (s *LifecycleRule) SetTransitions(v []*Transition) *LifecycleRule { + s.Transitions = v + return s +} + type ListBucketsInput struct { _ struct{} `type:"structure"` } @@ -7112,6 +9078,18 @@ func (s ListBucketsOutput) GoString() string { return s.String() } +// SetBuckets sets the Buckets field's value. +func (s *ListBucketsOutput) SetBuckets(v []*Bucket) *ListBucketsOutput { + s.Buckets = v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ListBucketsOutput) SetOwner(v *Owner) *ListBucketsOutput { + s.Owner = v + return s +} + type ListMultipartUploadsInput struct { _ struct{} `type:"structure"` @@ -7171,6 +9149,48 @@ func (s *ListMultipartUploadsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListMultipartUploadsInput) SetBucket(v string) *ListMultipartUploadsInput { + s.Bucket = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListMultipartUploadsInput) SetDelimiter(v string) *ListMultipartUploadsInput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListMultipartUploadsInput) SetEncodingType(v string) *ListMultipartUploadsInput { + s.EncodingType = &v + return s +} + +// SetKeyMarker sets the KeyMarker field's value. +func (s *ListMultipartUploadsInput) SetKeyMarker(v string) *ListMultipartUploadsInput { + s.KeyMarker = &v + return s +} + +// SetMaxUploads sets the MaxUploads field's value. +func (s *ListMultipartUploadsInput) SetMaxUploads(v int64) *ListMultipartUploadsInput { + s.MaxUploads = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListMultipartUploadsInput) SetPrefix(v string) *ListMultipartUploadsInput { + s.Prefix = &v + return s +} + +// SetUploadIdMarker sets the UploadIdMarker field's value. +func (s *ListMultipartUploadsInput) SetUploadIdMarker(v string) *ListMultipartUploadsInput { + s.UploadIdMarker = &v + return s +} + type ListMultipartUploadsOutput struct { _ struct{} `type:"structure"` @@ -7225,6 +9245,78 @@ func (s ListMultipartUploadsOutput) GoString() string { return s.String() } +// SetBucket sets the Bucket field's value. +func (s *ListMultipartUploadsOutput) SetBucket(v string) *ListMultipartUploadsOutput { + s.Bucket = &v + return s +} + +// SetCommonPrefixes sets the CommonPrefixes field's value. +func (s *ListMultipartUploadsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListMultipartUploadsOutput { + s.CommonPrefixes = v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListMultipartUploadsOutput) SetDelimiter(v string) *ListMultipartUploadsOutput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListMultipartUploadsOutput) SetEncodingType(v string) *ListMultipartUploadsOutput { + s.EncodingType = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListMultipartUploadsOutput) SetIsTruncated(v bool) *ListMultipartUploadsOutput { + s.IsTruncated = &v + return s +} + +// SetKeyMarker sets the KeyMarker field's value. +func (s *ListMultipartUploadsOutput) SetKeyMarker(v string) *ListMultipartUploadsOutput { + s.KeyMarker = &v + return s +} + +// SetMaxUploads sets the MaxUploads field's value. +func (s *ListMultipartUploadsOutput) SetMaxUploads(v int64) *ListMultipartUploadsOutput { + s.MaxUploads = &v + return s +} + +// SetNextKeyMarker sets the NextKeyMarker field's value. +func (s *ListMultipartUploadsOutput) SetNextKeyMarker(v string) *ListMultipartUploadsOutput { + s.NextKeyMarker = &v + return s +} + +// SetNextUploadIdMarker sets the NextUploadIdMarker field's value. +func (s *ListMultipartUploadsOutput) SetNextUploadIdMarker(v string) *ListMultipartUploadsOutput { + s.NextUploadIdMarker = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListMultipartUploadsOutput) SetPrefix(v string) *ListMultipartUploadsOutput { + s.Prefix = &v + return s +} + +// SetUploadIdMarker sets the UploadIdMarker field's value. +func (s *ListMultipartUploadsOutput) SetUploadIdMarker(v string) *ListMultipartUploadsOutput { + s.UploadIdMarker = &v + return s +} + +// SetUploads sets the Uploads field's value. +func (s *ListMultipartUploadsOutput) SetUploads(v []*MultipartUpload) *ListMultipartUploadsOutput { + s.Uploads = v + return s +} + type ListObjectVersionsInput struct { _ struct{} `type:"structure"` @@ -7279,6 +9371,48 @@ func (s *ListObjectVersionsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListObjectVersionsInput) SetBucket(v string) *ListObjectVersionsInput { + s.Bucket = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectVersionsInput) SetDelimiter(v string) *ListObjectVersionsInput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectVersionsInput) SetEncodingType(v string) *ListObjectVersionsInput { + s.EncodingType = &v + return s +} + +// SetKeyMarker sets the KeyMarker field's value. +func (s *ListObjectVersionsInput) SetKeyMarker(v string) *ListObjectVersionsInput { + s.KeyMarker = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectVersionsInput) SetMaxKeys(v int64) *ListObjectVersionsInput { + s.MaxKeys = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectVersionsInput) SetPrefix(v string) *ListObjectVersionsInput { + s.Prefix = &v + return s +} + +// SetVersionIdMarker sets the VersionIdMarker field's value. +func (s *ListObjectVersionsInput) SetVersionIdMarker(v string) *ListObjectVersionsInput { + s.VersionIdMarker = &v + return s +} + type ListObjectVersionsOutput struct { _ struct{} `type:"structure"` @@ -7328,6 +9462,84 @@ func (s ListObjectVersionsOutput) GoString() string { return s.String() } +// SetCommonPrefixes sets the CommonPrefixes field's value. +func (s *ListObjectVersionsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectVersionsOutput { + s.CommonPrefixes = v + return s +} + +// SetDeleteMarkers sets the DeleteMarkers field's value. +func (s *ListObjectVersionsOutput) SetDeleteMarkers(v []*DeleteMarkerEntry) *ListObjectVersionsOutput { + s.DeleteMarkers = v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectVersionsOutput) SetDelimiter(v string) *ListObjectVersionsOutput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectVersionsOutput) SetEncodingType(v string) *ListObjectVersionsOutput { + s.EncodingType = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListObjectVersionsOutput) SetIsTruncated(v bool) *ListObjectVersionsOutput { + s.IsTruncated = &v + return s +} + +// SetKeyMarker sets the KeyMarker field's value. +func (s *ListObjectVersionsOutput) SetKeyMarker(v string) *ListObjectVersionsOutput { + s.KeyMarker = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectVersionsOutput) SetMaxKeys(v int64) *ListObjectVersionsOutput { + s.MaxKeys = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListObjectVersionsOutput) SetName(v string) *ListObjectVersionsOutput { + s.Name = &v + return s +} + +// SetNextKeyMarker sets the NextKeyMarker field's value. +func (s *ListObjectVersionsOutput) SetNextKeyMarker(v string) *ListObjectVersionsOutput { + s.NextKeyMarker = &v + return s +} + +// SetNextVersionIdMarker sets the NextVersionIdMarker field's value. +func (s *ListObjectVersionsOutput) SetNextVersionIdMarker(v string) *ListObjectVersionsOutput { + s.NextVersionIdMarker = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectVersionsOutput) SetPrefix(v string) *ListObjectVersionsOutput { + s.Prefix = &v + return s +} + +// SetVersionIdMarker sets the VersionIdMarker field's value. +func (s *ListObjectVersionsOutput) SetVersionIdMarker(v string) *ListObjectVersionsOutput { + s.VersionIdMarker = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ListObjectVersionsOutput) SetVersions(v []*ObjectVersion) *ListObjectVersionsOutput { + s.Versions = v + return s +} + type ListObjectsInput struct { _ struct{} `type:"structure"` @@ -7384,6 +9596,48 @@ func (s *ListObjectsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListObjectsInput) SetBucket(v string) *ListObjectsInput { + s.Bucket = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectsInput) SetDelimiter(v string) *ListObjectsInput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectsInput) SetEncodingType(v string) *ListObjectsInput { + s.EncodingType = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListObjectsInput) SetMarker(v string) *ListObjectsInput { + s.Marker = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectsInput) SetMaxKeys(v int64) *ListObjectsInput { + s.MaxKeys = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectsInput) SetPrefix(v string) *ListObjectsInput { + s.Prefix = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *ListObjectsInput) SetRequestPayer(v string) *ListObjectsInput { + s.RequestPayer = &v + return s +} + type ListObjectsOutput struct { _ struct{} `type:"structure"` @@ -7428,6 +9682,66 @@ func (s ListObjectsOutput) GoString() string { return s.String() } +// SetCommonPrefixes sets the CommonPrefixes field's value. +func (s *ListObjectsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsOutput { + s.CommonPrefixes = v + return s +} + +// SetContents sets the Contents field's value. +func (s *ListObjectsOutput) SetContents(v []*Object) *ListObjectsOutput { + s.Contents = v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectsOutput) SetDelimiter(v string) *ListObjectsOutput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectsOutput) SetEncodingType(v string) *ListObjectsOutput { + s.EncodingType = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListObjectsOutput) SetIsTruncated(v bool) *ListObjectsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListObjectsOutput) SetMarker(v string) *ListObjectsOutput { + s.Marker = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectsOutput) SetMaxKeys(v int64) *ListObjectsOutput { + s.MaxKeys = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListObjectsOutput) SetName(v string) *ListObjectsOutput { + s.Name = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListObjectsOutput) SetNextMarker(v string) *ListObjectsOutput { + s.NextMarker = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectsOutput) SetPrefix(v string) *ListObjectsOutput { + s.Prefix = &v + return s +} + type ListObjectsV2Input struct { _ struct{} `type:"structure"` @@ -7492,6 +9806,60 @@ func (s *ListObjectsV2Input) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListObjectsV2Input) SetBucket(v string) *ListObjectsV2Input { + s.Bucket = &v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListObjectsV2Input) SetContinuationToken(v string) *ListObjectsV2Input { + s.ContinuationToken = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectsV2Input) SetDelimiter(v string) *ListObjectsV2Input { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectsV2Input) SetEncodingType(v string) *ListObjectsV2Input { + s.EncodingType = &v + return s +} + +// SetFetchOwner sets the FetchOwner field's value. +func (s *ListObjectsV2Input) SetFetchOwner(v bool) *ListObjectsV2Input { + s.FetchOwner = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectsV2Input) SetMaxKeys(v int64) *ListObjectsV2Input { + s.MaxKeys = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectsV2Input) SetPrefix(v string) *ListObjectsV2Input { + s.Prefix = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *ListObjectsV2Input) SetRequestPayer(v string) *ListObjectsV2Input { + s.RequestPayer = &v + return s +} + +// SetStartAfter sets the StartAfter field's value. +func (s *ListObjectsV2Input) SetStartAfter(v string) *ListObjectsV2Input { + s.StartAfter = &v + return s +} + type ListObjectsV2Output struct { _ struct{} `type:"structure"` @@ -7553,6 +9921,78 @@ func (s ListObjectsV2Output) GoString() string { return s.String() } +// SetCommonPrefixes sets the CommonPrefixes field's value. +func (s *ListObjectsV2Output) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsV2Output { + s.CommonPrefixes = v + return s +} + +// SetContents sets the Contents field's value. +func (s *ListObjectsV2Output) SetContents(v []*Object) *ListObjectsV2Output { + s.Contents = v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListObjectsV2Output) SetContinuationToken(v string) *ListObjectsV2Output { + s.ContinuationToken = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectsV2Output) SetDelimiter(v string) *ListObjectsV2Output { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectsV2Output) SetEncodingType(v string) *ListObjectsV2Output { + s.EncodingType = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListObjectsV2Output) SetIsTruncated(v bool) *ListObjectsV2Output { + s.IsTruncated = &v + return s +} + +// SetKeyCount sets the KeyCount field's value. +func (s *ListObjectsV2Output) SetKeyCount(v int64) *ListObjectsV2Output { + s.KeyCount = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectsV2Output) SetMaxKeys(v int64) *ListObjectsV2Output { + s.MaxKeys = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListObjectsV2Output) SetName(v string) *ListObjectsV2Output { + s.Name = &v + return s +} + +// SetNextContinuationToken sets the NextContinuationToken field's value. +func (s *ListObjectsV2Output) SetNextContinuationToken(v string) *ListObjectsV2Output { + s.NextContinuationToken = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectsV2Output) SetPrefix(v string) *ListObjectsV2Output { + s.Prefix = &v + return s +} + +// SetStartAfter sets the StartAfter field's value. +func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output { + s.StartAfter = &v + return s +} + type ListPartsInput struct { _ struct{} `type:"structure"` @@ -7613,6 +10053,42 @@ func (s *ListPartsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListPartsInput) SetBucket(v string) *ListPartsInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ListPartsInput) SetKey(v string) *ListPartsInput { + s.Key = &v + return s +} + +// SetMaxParts sets the MaxParts field's value. +func (s *ListPartsInput) SetMaxParts(v int64) *ListPartsInput { + s.MaxParts = &v + return s +} + +// SetPartNumberMarker sets the PartNumberMarker field's value. +func (s *ListPartsInput) SetPartNumberMarker(v int64) *ListPartsInput { + s.PartNumberMarker = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *ListPartsInput) SetRequestPayer(v string) *ListPartsInput { + s.RequestPayer = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *ListPartsInput) SetUploadId(v string) *ListPartsInput { + s.UploadId = &v + return s +} + type ListPartsOutput struct { _ struct{} `type:"structure"` @@ -7671,6 +10147,90 @@ func (s ListPartsOutput) GoString() string { return s.String() } +// SetAbortDate sets the AbortDate field's value. +func (s *ListPartsOutput) SetAbortDate(v time.Time) *ListPartsOutput { + s.AbortDate = &v + return s +} + +// SetAbortRuleId sets the AbortRuleId field's value. +func (s *ListPartsOutput) SetAbortRuleId(v string) *ListPartsOutput { + s.AbortRuleId = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *ListPartsOutput) SetBucket(v string) *ListPartsOutput { + s.Bucket = &v + return s +} + +// SetInitiator sets the Initiator field's value. +func (s *ListPartsOutput) SetInitiator(v *Initiator) *ListPartsOutput { + s.Initiator = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListPartsOutput) SetIsTruncated(v bool) *ListPartsOutput { + s.IsTruncated = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ListPartsOutput) SetKey(v string) *ListPartsOutput { + s.Key = &v + return s +} + +// SetMaxParts sets the MaxParts field's value. +func (s *ListPartsOutput) SetMaxParts(v int64) *ListPartsOutput { + s.MaxParts = &v + return s +} + +// SetNextPartNumberMarker sets the NextPartNumberMarker field's value. +func (s *ListPartsOutput) SetNextPartNumberMarker(v int64) *ListPartsOutput { + s.NextPartNumberMarker = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ListPartsOutput) SetOwner(v *Owner) *ListPartsOutput { + s.Owner = v + return s +} + +// SetPartNumberMarker sets the PartNumberMarker field's value. +func (s *ListPartsOutput) SetPartNumberMarker(v int64) *ListPartsOutput { + s.PartNumberMarker = &v + return s +} + +// SetParts sets the Parts field's value. +func (s *ListPartsOutput) SetParts(v []*Part) *ListPartsOutput { + s.Parts = v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *ListPartsOutput) SetRequestCharged(v string) *ListPartsOutput { + s.RequestCharged = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *ListPartsOutput) SetStorageClass(v string) *ListPartsOutput { + s.StorageClass = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *ListPartsOutput) SetUploadId(v string) *ListPartsOutput { + s.UploadId = &v + return s +} + type LoggingEnabled struct { _ struct{} `type:"structure"` @@ -7719,6 +10279,24 @@ func (s *LoggingEnabled) Validate() error { return nil } +// SetTargetBucket sets the TargetBucket field's value. +func (s *LoggingEnabled) SetTargetBucket(v string) *LoggingEnabled { + s.TargetBucket = &v + return s +} + +// SetTargetGrants sets the TargetGrants field's value. +func (s *LoggingEnabled) SetTargetGrants(v []*TargetGrant) *LoggingEnabled { + s.TargetGrants = v + return s +} + +// SetTargetPrefix sets the TargetPrefix field's value. +func (s *LoggingEnabled) SetTargetPrefix(v string) *LoggingEnabled { + s.TargetPrefix = &v + return s +} + type MultipartUpload struct { _ struct{} `type:"structure"` @@ -7750,6 +10328,42 @@ func (s MultipartUpload) GoString() string { return s.String() } +// SetInitiated sets the Initiated field's value. +func (s *MultipartUpload) SetInitiated(v time.Time) *MultipartUpload { + s.Initiated = &v + return s +} + +// SetInitiator sets the Initiator field's value. +func (s *MultipartUpload) SetInitiator(v *Initiator) *MultipartUpload { + s.Initiator = v + return s +} + +// SetKey sets the Key field's value. +func (s *MultipartUpload) SetKey(v string) *MultipartUpload { + s.Key = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *MultipartUpload) SetOwner(v *Owner) *MultipartUpload { + s.Owner = v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *MultipartUpload) SetStorageClass(v string) *MultipartUpload { + s.StorageClass = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *MultipartUpload) SetUploadId(v string) *MultipartUpload { + s.UploadId = &v + return s +} + // Specifies when noncurrent object versions expire. Upon expiration, Amazon // S3 permanently deletes the noncurrent object versions. You set this lifecycle // configuration action on a bucket that has versioning enabled (or suspended) @@ -7761,8 +10375,7 @@ type NoncurrentVersionExpiration struct { // Specifies the number of days an object is noncurrent before Amazon S3 can // perform the associated action. For information about the noncurrent days // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent - // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in - // the Amazon Simple Storage Service Developer Guide. + // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) NoncurrentDays *int64 `type:"integer"` } @@ -7776,6 +10389,12 @@ func (s NoncurrentVersionExpiration) GoString() string { return s.String() } +// SetNoncurrentDays sets the NoncurrentDays field's value. +func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVersionExpiration { + s.NoncurrentDays = &v + return s +} + // Container for the transition rule that describes when noncurrent objects // transition to the STANDARD_IA or GLACIER storage class. If your bucket is // versioning-enabled (or versioning is suspended), you can set this action @@ -7787,8 +10406,7 @@ type NoncurrentVersionTransition struct { // Specifies the number of days an object is noncurrent before Amazon S3 can // perform the associated action. For information about the noncurrent days // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent - // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in - // the Amazon Simple Storage Service Developer Guide. + // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) NoncurrentDays *int64 `type:"integer"` // The class of storage used to store the object. @@ -7805,6 +10423,18 @@ func (s NoncurrentVersionTransition) GoString() string { return s.String() } +// SetNoncurrentDays sets the NoncurrentDays field's value. +func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition { + s.NoncurrentDays = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition { + s.StorageClass = &v + return s +} + // Container for specifying the notification configuration of the bucket. If // this element is empty, notifications are turned off on the bucket. type NotificationConfiguration struct { @@ -7867,6 +10497,24 @@ func (s *NotificationConfiguration) Validate() error { return nil } +// SetLambdaFunctionConfigurations sets the LambdaFunctionConfigurations field's value. +func (s *NotificationConfiguration) SetLambdaFunctionConfigurations(v []*LambdaFunctionConfiguration) *NotificationConfiguration { + s.LambdaFunctionConfigurations = v + return s +} + +// SetQueueConfigurations sets the QueueConfigurations field's value. +func (s *NotificationConfiguration) SetQueueConfigurations(v []*QueueConfiguration) *NotificationConfiguration { + s.QueueConfigurations = v + return s +} + +// SetTopicConfigurations sets the TopicConfigurations field's value. +func (s *NotificationConfiguration) SetTopicConfigurations(v []*TopicConfiguration) *NotificationConfiguration { + s.TopicConfigurations = v + return s +} + type NotificationConfigurationDeprecated struct { _ struct{} `type:"structure"` @@ -7887,9 +10535,26 @@ func (s NotificationConfigurationDeprecated) GoString() string { return s.String() } +// SetCloudFunctionConfiguration sets the CloudFunctionConfiguration field's value. +func (s *NotificationConfigurationDeprecated) SetCloudFunctionConfiguration(v *CloudFunctionConfiguration) *NotificationConfigurationDeprecated { + s.CloudFunctionConfiguration = v + return s +} + +// SetQueueConfiguration sets the QueueConfiguration field's value. +func (s *NotificationConfigurationDeprecated) SetQueueConfiguration(v *QueueConfigurationDeprecated) *NotificationConfigurationDeprecated { + s.QueueConfiguration = v + return s +} + +// SetTopicConfiguration sets the TopicConfiguration field's value. +func (s *NotificationConfigurationDeprecated) SetTopicConfiguration(v *TopicConfigurationDeprecated) *NotificationConfigurationDeprecated { + s.TopicConfiguration = v + return s +} + // Container for object key name filtering rules. For information about key // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) -// in the Amazon Simple Storage Service Developer Guide. type NotificationConfigurationFilter struct { _ struct{} `type:"structure"` @@ -7907,6 +10572,12 @@ func (s NotificationConfigurationFilter) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *NotificationConfigurationFilter) SetKey(v *KeyFilter) *NotificationConfigurationFilter { + s.Key = v + return s +} + type Object struct { _ struct{} `type:"structure"` @@ -7934,6 +10605,42 @@ func (s Object) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *Object) SetETag(v string) *Object { + s.ETag = &v + return s +} + +// SetKey sets the Key field's value. +func (s *Object) SetKey(v string) *Object { + s.Key = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *Object) SetLastModified(v time.Time) *Object { + s.LastModified = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *Object) SetOwner(v *Owner) *Object { + s.Owner = v + return s +} + +// SetSize sets the Size field's value. +func (s *Object) SetSize(v int64) *Object { + s.Size = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *Object) SetStorageClass(v string) *Object { + s.StorageClass = &v + return s +} + type ObjectIdentifier struct { _ struct{} `type:"structure"` @@ -7972,6 +10679,18 @@ func (s *ObjectIdentifier) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *ObjectIdentifier) SetKey(v string) *ObjectIdentifier { + s.Key = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *ObjectIdentifier) SetVersionId(v string) *ObjectIdentifier { + s.VersionId = &v + return s +} + type ObjectVersion struct { _ struct{} `type:"structure"` @@ -8009,6 +10728,54 @@ func (s ObjectVersion) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *ObjectVersion) SetETag(v string) *ObjectVersion { + s.ETag = &v + return s +} + +// SetIsLatest sets the IsLatest field's value. +func (s *ObjectVersion) SetIsLatest(v bool) *ObjectVersion { + s.IsLatest = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ObjectVersion) SetKey(v string) *ObjectVersion { + s.Key = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *ObjectVersion) SetLastModified(v time.Time) *ObjectVersion { + s.LastModified = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ObjectVersion) SetOwner(v *Owner) *ObjectVersion { + s.Owner = v + return s +} + +// SetSize sets the Size field's value. +func (s *ObjectVersion) SetSize(v int64) *ObjectVersion { + s.Size = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *ObjectVersion) SetStorageClass(v string) *ObjectVersion { + s.StorageClass = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *ObjectVersion) SetVersionId(v string) *ObjectVersion { + s.VersionId = &v + return s +} + type Owner struct { _ struct{} `type:"structure"` @@ -8027,6 +10794,18 @@ func (s Owner) GoString() string { return s.String() } +// SetDisplayName sets the DisplayName field's value. +func (s *Owner) SetDisplayName(v string) *Owner { + s.DisplayName = &v + return s +} + +// SetID sets the ID field's value. +func (s *Owner) SetID(v string) *Owner { + s.ID = &v + return s +} + type Part struct { _ struct{} `type:"structure"` @@ -8054,6 +10833,30 @@ func (s Part) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *Part) SetETag(v string) *Part { + s.ETag = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *Part) SetLastModified(v time.Time) *Part { + s.LastModified = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *Part) SetPartNumber(v int64) *Part { + s.PartNumber = &v + return s +} + +// SetSize sets the Size field's value. +func (s *Part) SetSize(v int64) *Part { + s.Size = &v + return s +} + type PutBucketAccelerateConfigurationInput struct { _ struct{} `type:"structure" payload:"AccelerateConfiguration"` @@ -8094,6 +10897,18 @@ func (s *PutBucketAccelerateConfigurationInput) Validate() error { return nil } +// SetAccelerateConfiguration sets the AccelerateConfiguration field's value. +func (s *PutBucketAccelerateConfigurationInput) SetAccelerateConfiguration(v *AccelerateConfiguration) *PutBucketAccelerateConfigurationInput { + s.AccelerateConfiguration = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutBucketAccelerateConfigurationInput) SetBucket(v string) *PutBucketAccelerateConfigurationInput { + s.Bucket = &v + return s +} + type PutBucketAccelerateConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -8164,6 +10979,54 @@ func (s *PutBucketAclInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *PutBucketAclInput) SetACL(v string) *PutBucketAclInput { + s.ACL = &v + return s +} + +// SetAccessControlPolicy sets the AccessControlPolicy field's value. +func (s *PutBucketAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutBucketAclInput { + s.AccessControlPolicy = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutBucketAclInput) SetBucket(v string) *PutBucketAclInput { + s.Bucket = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *PutBucketAclInput) SetGrantFullControl(v string) *PutBucketAclInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *PutBucketAclInput) SetGrantRead(v string) *PutBucketAclInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *PutBucketAclInput) SetGrantReadACP(v string) *PutBucketAclInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWrite sets the GrantWrite field's value. +func (s *PutBucketAclInput) SetGrantWrite(v string) *PutBucketAclInput { + s.GrantWrite = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *PutBucketAclInput) SetGrantWriteACP(v string) *PutBucketAclInput { + s.GrantWriteACP = &v + return s +} + type PutBucketAclOutput struct { _ struct{} `type:"structure"` } @@ -8219,6 +11082,18 @@ func (s *PutBucketCorsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketCorsInput) SetBucket(v string) *PutBucketCorsInput { + s.Bucket = &v + return s +} + +// SetCORSConfiguration sets the CORSConfiguration field's value. +func (s *PutBucketCorsInput) SetCORSConfiguration(v *CORSConfiguration) *PutBucketCorsInput { + s.CORSConfiguration = v + return s +} + type PutBucketCorsOutput struct { _ struct{} `type:"structure"` } @@ -8270,6 +11145,18 @@ func (s *PutBucketLifecycleConfigurationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketLifecycleConfigurationInput) SetBucket(v string) *PutBucketLifecycleConfigurationInput { + s.Bucket = &v + return s +} + +// SetLifecycleConfiguration sets the LifecycleConfiguration field's value. +func (s *PutBucketLifecycleConfigurationInput) SetLifecycleConfiguration(v *BucketLifecycleConfiguration) *PutBucketLifecycleConfigurationInput { + s.LifecycleConfiguration = v + return s +} + type PutBucketLifecycleConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -8321,6 +11208,18 @@ func (s *PutBucketLifecycleInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketLifecycleInput) SetBucket(v string) *PutBucketLifecycleInput { + s.Bucket = &v + return s +} + +// SetLifecycleConfiguration sets the LifecycleConfiguration field's value. +func (s *PutBucketLifecycleInput) SetLifecycleConfiguration(v *LifecycleConfiguration) *PutBucketLifecycleInput { + s.LifecycleConfiguration = v + return s +} + type PutBucketLifecycleOutput struct { _ struct{} `type:"structure"` } @@ -8376,6 +11275,18 @@ func (s *PutBucketLoggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketLoggingInput) SetBucket(v string) *PutBucketLoggingInput { + s.Bucket = &v + return s +} + +// SetBucketLoggingStatus sets the BucketLoggingStatus field's value. +func (s *PutBucketLoggingInput) SetBucketLoggingStatus(v *BucketLoggingStatus) *PutBucketLoggingInput { + s.BucketLoggingStatus = v + return s +} + type PutBucketLoggingOutput struct { _ struct{} `type:"structure"` } @@ -8434,6 +11345,18 @@ func (s *PutBucketNotificationConfigurationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketNotificationConfigurationInput) SetBucket(v string) *PutBucketNotificationConfigurationInput { + s.Bucket = &v + return s +} + +// SetNotificationConfiguration sets the NotificationConfiguration field's value. +func (s *PutBucketNotificationConfigurationInput) SetNotificationConfiguration(v *NotificationConfiguration) *PutBucketNotificationConfigurationInput { + s.NotificationConfiguration = v + return s +} + type PutBucketNotificationConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -8484,6 +11407,18 @@ func (s *PutBucketNotificationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketNotificationInput) SetBucket(v string) *PutBucketNotificationInput { + s.Bucket = &v + return s +} + +// SetNotificationConfiguration sets the NotificationConfiguration field's value. +func (s *PutBucketNotificationInput) SetNotificationConfiguration(v *NotificationConfigurationDeprecated) *PutBucketNotificationInput { + s.NotificationConfiguration = v + return s +} + type PutBucketNotificationOutput struct { _ struct{} `type:"structure"` } @@ -8536,6 +11471,18 @@ func (s *PutBucketPolicyInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketPolicyInput) SetBucket(v string) *PutBucketPolicyInput { + s.Bucket = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *PutBucketPolicyInput) SetPolicy(v string) *PutBucketPolicyInput { + s.Policy = &v + return s +} + type PutBucketPolicyOutput struct { _ struct{} `type:"structure"` } @@ -8594,6 +11541,18 @@ func (s *PutBucketReplicationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketReplicationInput) SetBucket(v string) *PutBucketReplicationInput { + s.Bucket = &v + return s +} + +// SetReplicationConfiguration sets the ReplicationConfiguration field's value. +func (s *PutBucketReplicationInput) SetReplicationConfiguration(v *ReplicationConfiguration) *PutBucketReplicationInput { + s.ReplicationConfiguration = v + return s +} + type PutBucketReplicationOutput struct { _ struct{} `type:"structure"` } @@ -8649,6 +11608,18 @@ func (s *PutBucketRequestPaymentInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketRequestPaymentInput) SetBucket(v string) *PutBucketRequestPaymentInput { + s.Bucket = &v + return s +} + +// SetRequestPaymentConfiguration sets the RequestPaymentConfiguration field's value. +func (s *PutBucketRequestPaymentInput) SetRequestPaymentConfiguration(v *RequestPaymentConfiguration) *PutBucketRequestPaymentInput { + s.RequestPaymentConfiguration = v + return s +} + type PutBucketRequestPaymentOutput struct { _ struct{} `type:"structure"` } @@ -8704,6 +11675,18 @@ func (s *PutBucketTaggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketTaggingInput) SetBucket(v string) *PutBucketTaggingInput { + s.Bucket = &v + return s +} + +// SetTagging sets the Tagging field's value. +func (s *PutBucketTaggingInput) SetTagging(v *Tagging) *PutBucketTaggingInput { + s.Tagging = v + return s +} + type PutBucketTaggingOutput struct { _ struct{} `type:"structure"` } @@ -8758,6 +11741,24 @@ func (s *PutBucketVersioningInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketVersioningInput) SetBucket(v string) *PutBucketVersioningInput { + s.Bucket = &v + return s +} + +// SetMFA sets the MFA field's value. +func (s *PutBucketVersioningInput) SetMFA(v string) *PutBucketVersioningInput { + s.MFA = &v + return s +} + +// SetVersioningConfiguration sets the VersioningConfiguration field's value. +func (s *PutBucketVersioningInput) SetVersioningConfiguration(v *VersioningConfiguration) *PutBucketVersioningInput { + s.VersioningConfiguration = v + return s +} + type PutBucketVersioningOutput struct { _ struct{} `type:"structure"` } @@ -8813,6 +11814,18 @@ func (s *PutBucketWebsiteInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketWebsiteInput) SetBucket(v string) *PutBucketWebsiteInput { + s.Bucket = &v + return s +} + +// SetWebsiteConfiguration sets the WebsiteConfiguration field's value. +func (s *PutBucketWebsiteInput) SetWebsiteConfiguration(v *WebsiteConfiguration) *PutBucketWebsiteInput { + s.WebsiteConfiguration = v + return s +} + type PutBucketWebsiteOutput struct { _ struct{} `type:"structure"` } @@ -8901,6 +11914,72 @@ func (s *PutObjectAclInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *PutObjectAclInput) SetACL(v string) *PutObjectAclInput { + s.ACL = &v + return s +} + +// SetAccessControlPolicy sets the AccessControlPolicy field's value. +func (s *PutObjectAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutObjectAclInput { + s.AccessControlPolicy = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutObjectAclInput) SetBucket(v string) *PutObjectAclInput { + s.Bucket = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *PutObjectAclInput) SetGrantFullControl(v string) *PutObjectAclInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *PutObjectAclInput) SetGrantRead(v string) *PutObjectAclInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *PutObjectAclInput) SetGrantReadACP(v string) *PutObjectAclInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWrite sets the GrantWrite field's value. +func (s *PutObjectAclInput) SetGrantWrite(v string) *PutObjectAclInput { + s.GrantWrite = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *PutObjectAclInput) SetGrantWriteACP(v string) *PutObjectAclInput { + s.GrantWriteACP = &v + return s +} + +// SetKey sets the Key field's value. +func (s *PutObjectAclInput) SetKey(v string) *PutObjectAclInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *PutObjectAclInput) SetRequestPayer(v string) *PutObjectAclInput { + s.RequestPayer = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *PutObjectAclInput) SetVersionId(v string) *PutObjectAclInput { + s.VersionId = &v + return s +} + type PutObjectAclOutput struct { _ struct{} `type:"structure"` @@ -8919,6 +11998,12 @@ func (s PutObjectAclOutput) GoString() string { return s.String() } +// SetRequestCharged sets the RequestCharged field's value. +func (s *PutObjectAclOutput) SetRequestCharged(v string) *PutObjectAclOutput { + s.RequestCharged = &v + return s +} + type PutObjectInput struct { _ struct{} `type:"structure" payload:"Body"` @@ -9046,6 +12131,150 @@ func (s *PutObjectInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *PutObjectInput) SetACL(v string) *PutObjectInput { + s.ACL = &v + return s +} + +// SetBody sets the Body field's value. +func (s *PutObjectInput) SetBody(v io.ReadSeeker) *PutObjectInput { + s.Body = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutObjectInput) SetBucket(v string) *PutObjectInput { + s.Bucket = &v + return s +} + +// SetCacheControl sets the CacheControl field's value. +func (s *PutObjectInput) SetCacheControl(v string) *PutObjectInput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *PutObjectInput) SetContentDisposition(v string) *PutObjectInput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *PutObjectInput) SetContentEncoding(v string) *PutObjectInput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *PutObjectInput) SetContentLanguage(v string) *PutObjectInput { + s.ContentLanguage = &v + return s +} + +// SetContentLength sets the ContentLength field's value. +func (s *PutObjectInput) SetContentLength(v int64) *PutObjectInput { + s.ContentLength = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *PutObjectInput) SetContentType(v string) *PutObjectInput { + s.ContentType = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *PutObjectInput) SetExpires(v time.Time) *PutObjectInput { + s.Expires = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *PutObjectInput) SetGrantFullControl(v string) *PutObjectInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *PutObjectInput) SetGrantRead(v string) *PutObjectInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *PutObjectInput) SetGrantReadACP(v string) *PutObjectInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *PutObjectInput) SetGrantWriteACP(v string) *PutObjectInput { + s.GrantWriteACP = &v + return s +} + +// SetKey sets the Key field's value. +func (s *PutObjectInput) SetKey(v string) *PutObjectInput { + s.Key = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *PutObjectInput) SetMetadata(v map[string]*string) *PutObjectInput { + s.Metadata = v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *PutObjectInput) SetRequestPayer(v string) *PutObjectInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *PutObjectInput) SetSSECustomerAlgorithm(v string) *PutObjectInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *PutObjectInput) SetSSECustomerKey(v string) *PutObjectInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *PutObjectInput) SetSSECustomerKeyMD5(v string) *PutObjectInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *PutObjectInput) SetSSEKMSKeyId(v string) *PutObjectInput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *PutObjectInput) SetServerSideEncryption(v string) *PutObjectInput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *PutObjectInput) SetStorageClass(v string) *PutObjectInput { + s.StorageClass = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *PutObjectInput) SetWebsiteRedirectLocation(v string) *PutObjectInput { + s.WebsiteRedirectLocation = &v + return s +} + type PutObjectOutput struct { _ struct{} `type:"structure"` @@ -9092,6 +12321,54 @@ func (s PutObjectOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *PutObjectOutput) SetETag(v string) *PutObjectOutput { + s.ETag = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *PutObjectOutput) SetExpiration(v string) *PutObjectOutput { + s.Expiration = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *PutObjectOutput) SetRequestCharged(v string) *PutObjectOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *PutObjectOutput) SetSSECustomerAlgorithm(v string) *PutObjectOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *PutObjectOutput) SetSSECustomerKeyMD5(v string) *PutObjectOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *PutObjectOutput) SetSSEKMSKeyId(v string) *PutObjectOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *PutObjectOutput) SetServerSideEncryption(v string) *PutObjectOutput { + s.ServerSideEncryption = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput { + s.VersionId = &v + return s +} + // Container for specifying an configuration when you want Amazon S3 to publish // events to an Amazon Simple Queue Service (Amazon SQS) queue. type QueueConfiguration struct { @@ -9102,7 +12379,6 @@ type QueueConfiguration struct { // Container for object key name filtering rules. For information about key // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - // in the Amazon Simple Storage Service Developer Guide. Filter *NotificationConfigurationFilter `type:"structure"` // Optional unique identifier for configurations in a notification configuration. @@ -9142,6 +12418,30 @@ func (s *QueueConfiguration) Validate() error { return nil } +// SetEvents sets the Events field's value. +func (s *QueueConfiguration) SetEvents(v []*string) *QueueConfiguration { + s.Events = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *QueueConfiguration) SetFilter(v *NotificationConfigurationFilter) *QueueConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *QueueConfiguration) SetId(v string) *QueueConfiguration { + s.Id = &v + return s +} + +// SetQueueArn sets the QueueArn field's value. +func (s *QueueConfiguration) SetQueueArn(v string) *QueueConfiguration { + s.QueueArn = &v + return s +} + type QueueConfigurationDeprecated struct { _ struct{} `type:"structure"` @@ -9167,6 +12467,30 @@ func (s QueueConfigurationDeprecated) GoString() string { return s.String() } +// SetEvent sets the Event field's value. +func (s *QueueConfigurationDeprecated) SetEvent(v string) *QueueConfigurationDeprecated { + s.Event = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *QueueConfigurationDeprecated) SetEvents(v []*string) *QueueConfigurationDeprecated { + s.Events = v + return s +} + +// SetId sets the Id field's value. +func (s *QueueConfigurationDeprecated) SetId(v string) *QueueConfigurationDeprecated { + s.Id = &v + return s +} + +// SetQueue sets the Queue field's value. +func (s *QueueConfigurationDeprecated) SetQueue(v string) *QueueConfigurationDeprecated { + s.Queue = &v + return s +} + type Redirect struct { _ struct{} `type:"structure"` @@ -9205,6 +12529,36 @@ func (s Redirect) GoString() string { return s.String() } +// SetHostName sets the HostName field's value. +func (s *Redirect) SetHostName(v string) *Redirect { + s.HostName = &v + return s +} + +// SetHttpRedirectCode sets the HttpRedirectCode field's value. +func (s *Redirect) SetHttpRedirectCode(v string) *Redirect { + s.HttpRedirectCode = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Redirect) SetProtocol(v string) *Redirect { + s.Protocol = &v + return s +} + +// SetReplaceKeyPrefixWith sets the ReplaceKeyPrefixWith field's value. +func (s *Redirect) SetReplaceKeyPrefixWith(v string) *Redirect { + s.ReplaceKeyPrefixWith = &v + return s +} + +// SetReplaceKeyWith sets the ReplaceKeyWith field's value. +func (s *Redirect) SetReplaceKeyWith(v string) *Redirect { + s.ReplaceKeyWith = &v + return s +} + type RedirectAllRequestsTo struct { _ struct{} `type:"structure"` @@ -9241,6 +12595,18 @@ func (s *RedirectAllRequestsTo) Validate() error { return nil } +// SetHostName sets the HostName field's value. +func (s *RedirectAllRequestsTo) SetHostName(v string) *RedirectAllRequestsTo { + s.HostName = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *RedirectAllRequestsTo) SetProtocol(v string) *RedirectAllRequestsTo { + s.Protocol = &v + return s +} + // Container for replication rules. You can add as many as 1,000 rules. Total // replication configuration size can be up to 2 MB. type ReplicationConfiguration struct { @@ -9295,6 +12661,18 @@ func (s *ReplicationConfiguration) Validate() error { return nil } +// SetRole sets the Role field's value. +func (s *ReplicationConfiguration) SetRole(v string) *ReplicationConfiguration { + s.Role = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *ReplicationConfiguration) SetRules(v []*ReplicationRule) *ReplicationConfiguration { + s.Rules = v + return s +} + type ReplicationRule struct { _ struct{} `type:"structure"` @@ -9351,6 +12729,30 @@ func (s *ReplicationRule) Validate() error { return nil } +// SetDestination sets the Destination field's value. +func (s *ReplicationRule) SetDestination(v *Destination) *ReplicationRule { + s.Destination = v + return s +} + +// SetID sets the ID field's value. +func (s *ReplicationRule) SetID(v string) *ReplicationRule { + s.ID = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ReplicationRule) SetPrefix(v string) *ReplicationRule { + s.Prefix = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReplicationRule) SetStatus(v string) *ReplicationRule { + s.Status = &v + return s +} + type RequestPaymentConfiguration struct { _ struct{} `type:"structure"` @@ -9383,6 +12785,12 @@ func (s *RequestPaymentConfiguration) Validate() error { return nil } +// SetPayer sets the Payer field's value. +func (s *RequestPaymentConfiguration) SetPayer(v string) *RequestPaymentConfiguration { + s.Payer = &v + return s +} + type RestoreObjectInput struct { _ struct{} `type:"structure" payload:"RestoreRequest"` @@ -9437,6 +12845,36 @@ func (s *RestoreObjectInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *RestoreObjectInput) SetBucket(v string) *RestoreObjectInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *RestoreObjectInput) SetKey(v string) *RestoreObjectInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *RestoreObjectInput) SetRequestPayer(v string) *RestoreObjectInput { + s.RequestPayer = &v + return s +} + +// SetRestoreRequest sets the RestoreRequest field's value. +func (s *RestoreObjectInput) SetRestoreRequest(v *RestoreRequest) *RestoreObjectInput { + s.RestoreRequest = v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *RestoreObjectInput) SetVersionId(v string) *RestoreObjectInput { + s.VersionId = &v + return s +} + type RestoreObjectOutput struct { _ struct{} `type:"structure"` @@ -9455,6 +12893,12 @@ func (s RestoreObjectOutput) GoString() string { return s.String() } +// SetRequestCharged sets the RequestCharged field's value. +func (s *RestoreObjectOutput) SetRequestCharged(v string) *RestoreObjectOutput { + s.RequestCharged = &v + return s +} + type RestoreRequest struct { _ struct{} `type:"structure"` @@ -9487,6 +12931,12 @@ func (s *RestoreRequest) Validate() error { return nil } +// SetDays sets the Days field's value. +func (s *RestoreRequest) SetDays(v int64) *RestoreRequest { + s.Days = &v + return s +} + type RoutingRule struct { _ struct{} `type:"structure"` @@ -9527,6 +12977,18 @@ func (s *RoutingRule) Validate() error { return nil } +// SetCondition sets the Condition field's value. +func (s *RoutingRule) SetCondition(v *Condition) *RoutingRule { + s.Condition = v + return s +} + +// SetRedirect sets the Redirect field's value. +func (s *RoutingRule) SetRedirect(v *Redirect) *RoutingRule { + s.Redirect = v + return s +} + type Rule struct { _ struct{} `type:"structure"` @@ -9593,6 +13055,54 @@ func (s *Rule) Validate() error { return nil } +// SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value. +func (s *Rule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *Rule { + s.AbortIncompleteMultipartUpload = v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *Rule) SetExpiration(v *LifecycleExpiration) *Rule { + s.Expiration = v + return s +} + +// SetID sets the ID field's value. +func (s *Rule) SetID(v string) *Rule { + s.ID = &v + return s +} + +// SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value. +func (s *Rule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *Rule { + s.NoncurrentVersionExpiration = v + return s +} + +// SetNoncurrentVersionTransition sets the NoncurrentVersionTransition field's value. +func (s *Rule) SetNoncurrentVersionTransition(v *NoncurrentVersionTransition) *Rule { + s.NoncurrentVersionTransition = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *Rule) SetPrefix(v string) *Rule { + s.Prefix = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Rule) SetStatus(v string) *Rule { + s.Status = &v + return s +} + +// SetTransition sets the Transition field's value. +func (s *Rule) SetTransition(v *Transition) *Rule { + s.Transition = v + return s +} + type Tag struct { _ struct{} `type:"structure"` @@ -9636,6 +13146,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + type Tagging struct { _ struct{} `type:"structure"` @@ -9676,6 +13198,12 @@ func (s *Tagging) Validate() error { return nil } +// SetTagSet sets the TagSet field's value. +func (s *Tagging) SetTagSet(v []*Tag) *Tagging { + s.TagSet = v + return s +} + type TargetGrant struct { _ struct{} `type:"structure"` @@ -9710,6 +13238,18 @@ func (s *TargetGrant) Validate() error { return nil } +// SetGrantee sets the Grantee field's value. +func (s *TargetGrant) SetGrantee(v *Grantee) *TargetGrant { + s.Grantee = v + return s +} + +// SetPermission sets the Permission field's value. +func (s *TargetGrant) SetPermission(v string) *TargetGrant { + s.Permission = &v + return s +} + // Container for specifying the configuration when you want Amazon S3 to publish // events to an Amazon Simple Notification Service (Amazon SNS) topic. type TopicConfiguration struct { @@ -9720,7 +13260,6 @@ type TopicConfiguration struct { // Container for object key name filtering rules. For information about key // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - // in the Amazon Simple Storage Service Developer Guide. Filter *NotificationConfigurationFilter `type:"structure"` // Optional unique identifier for configurations in a notification configuration. @@ -9760,6 +13299,30 @@ func (s *TopicConfiguration) Validate() error { return nil } +// SetEvents sets the Events field's value. +func (s *TopicConfiguration) SetEvents(v []*string) *TopicConfiguration { + s.Events = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *TopicConfiguration) SetFilter(v *NotificationConfigurationFilter) *TopicConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *TopicConfiguration) SetId(v string) *TopicConfiguration { + s.Id = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *TopicConfiguration) SetTopicArn(v string) *TopicConfiguration { + s.TopicArn = &v + return s +} + type TopicConfigurationDeprecated struct { _ struct{} `type:"structure"` @@ -9787,6 +13350,30 @@ func (s TopicConfigurationDeprecated) GoString() string { return s.String() } +// SetEvent sets the Event field's value. +func (s *TopicConfigurationDeprecated) SetEvent(v string) *TopicConfigurationDeprecated { + s.Event = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *TopicConfigurationDeprecated) SetEvents(v []*string) *TopicConfigurationDeprecated { + s.Events = v + return s +} + +// SetId sets the Id field's value. +func (s *TopicConfigurationDeprecated) SetId(v string) *TopicConfigurationDeprecated { + s.Id = &v + return s +} + +// SetTopic sets the Topic field's value. +func (s *TopicConfigurationDeprecated) SetTopic(v string) *TopicConfigurationDeprecated { + s.Topic = &v + return s +} + type Transition struct { _ struct{} `type:"structure"` @@ -9812,6 +13399,24 @@ func (s Transition) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *Transition) SetDate(v time.Time) *Transition { + s.Date = &v + return s +} + +// SetDays sets the Days field's value. +func (s *Transition) SetDays(v int64) *Transition { + s.Days = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *Transition) SetStorageClass(v string) *Transition { + s.StorageClass = &v + return s +} + type UploadPartCopyInput struct { _ struct{} `type:"structure"` @@ -9932,6 +13537,108 @@ func (s *UploadPartCopyInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *UploadPartCopyInput) SetBucket(v string) *UploadPartCopyInput { + s.Bucket = &v + return s +} + +// SetCopySource sets the CopySource field's value. +func (s *UploadPartCopyInput) SetCopySource(v string) *UploadPartCopyInput { + s.CopySource = &v + return s +} + +// SetCopySourceIfMatch sets the CopySourceIfMatch field's value. +func (s *UploadPartCopyInput) SetCopySourceIfMatch(v string) *UploadPartCopyInput { + s.CopySourceIfMatch = &v + return s +} + +// SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value. +func (s *UploadPartCopyInput) SetCopySourceIfModifiedSince(v time.Time) *UploadPartCopyInput { + s.CopySourceIfModifiedSince = &v + return s +} + +// SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value. +func (s *UploadPartCopyInput) SetCopySourceIfNoneMatch(v string) *UploadPartCopyInput { + s.CopySourceIfNoneMatch = &v + return s +} + +// SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value. +func (s *UploadPartCopyInput) SetCopySourceIfUnmodifiedSince(v time.Time) *UploadPartCopyInput { + s.CopySourceIfUnmodifiedSince = &v + return s +} + +// SetCopySourceRange sets the CopySourceRange field's value. +func (s *UploadPartCopyInput) SetCopySourceRange(v string) *UploadPartCopyInput { + s.CopySourceRange = &v + return s +} + +// SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value. +func (s *UploadPartCopyInput) SetCopySourceSSECustomerAlgorithm(v string) *UploadPartCopyInput { + s.CopySourceSSECustomerAlgorithm = &v + return s +} + +// SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value. +func (s *UploadPartCopyInput) SetCopySourceSSECustomerKey(v string) *UploadPartCopyInput { + s.CopySourceSSECustomerKey = &v + return s +} + +// SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value. +func (s *UploadPartCopyInput) SetCopySourceSSECustomerKeyMD5(v string) *UploadPartCopyInput { + s.CopySourceSSECustomerKeyMD5 = &v + return s +} + +// SetKey sets the Key field's value. +func (s *UploadPartCopyInput) SetKey(v string) *UploadPartCopyInput { + s.Key = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *UploadPartCopyInput) SetPartNumber(v int64) *UploadPartCopyInput { + s.PartNumber = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *UploadPartCopyInput) SetRequestPayer(v string) *UploadPartCopyInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *UploadPartCopyInput) SetSSECustomerAlgorithm(v string) *UploadPartCopyInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *UploadPartCopyInput) SetSSECustomerKey(v string) *UploadPartCopyInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *UploadPartCopyInput) SetSSECustomerKeyMD5(v string) *UploadPartCopyInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadPartCopyInput) SetUploadId(v string) *UploadPartCopyInput { + s.UploadId = &v + return s +} + type UploadPartCopyOutput struct { _ struct{} `type:"structure" payload:"CopyPartResult"` @@ -9974,6 +13681,48 @@ func (s UploadPartCopyOutput) GoString() string { return s.String() } +// SetCopyPartResult sets the CopyPartResult field's value. +func (s *UploadPartCopyOutput) SetCopyPartResult(v *CopyPartResult) *UploadPartCopyOutput { + s.CopyPartResult = v + return s +} + +// SetCopySourceVersionId sets the CopySourceVersionId field's value. +func (s *UploadPartCopyOutput) SetCopySourceVersionId(v string) *UploadPartCopyOutput { + s.CopySourceVersionId = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *UploadPartCopyOutput) SetRequestCharged(v string) *UploadPartCopyOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *UploadPartCopyOutput) SetSSECustomerAlgorithm(v string) *UploadPartCopyOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *UploadPartCopyOutput) SetSSECustomerKeyMD5(v string) *UploadPartCopyOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *UploadPartCopyOutput) SetSSEKMSKeyId(v string) *UploadPartCopyOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *UploadPartCopyOutput) SetServerSideEncryption(v string) *UploadPartCopyOutput { + s.ServerSideEncryption = &v + return s +} + type UploadPartInput struct { _ struct{} `type:"structure" payload:"Body"` @@ -10063,6 +13812,66 @@ func (s *UploadPartInput) Validate() error { return nil } +// SetBody sets the Body field's value. +func (s *UploadPartInput) SetBody(v io.ReadSeeker) *UploadPartInput { + s.Body = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *UploadPartInput) SetBucket(v string) *UploadPartInput { + s.Bucket = &v + return s +} + +// SetContentLength sets the ContentLength field's value. +func (s *UploadPartInput) SetContentLength(v int64) *UploadPartInput { + s.ContentLength = &v + return s +} + +// SetKey sets the Key field's value. +func (s *UploadPartInput) SetKey(v string) *UploadPartInput { + s.Key = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *UploadPartInput) SetPartNumber(v int64) *UploadPartInput { + s.PartNumber = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *UploadPartInput) SetRequestPayer(v string) *UploadPartInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *UploadPartInput) SetSSECustomerAlgorithm(v string) *UploadPartInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *UploadPartInput) SetSSECustomerKey(v string) *UploadPartInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *UploadPartInput) SetSSECustomerKeyMD5(v string) *UploadPartInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadPartInput) SetUploadId(v string) *UploadPartInput { + s.UploadId = &v + return s +} + type UploadPartOutput struct { _ struct{} `type:"structure"` @@ -10102,6 +13911,42 @@ func (s UploadPartOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *UploadPartOutput) SetETag(v string) *UploadPartOutput { + s.ETag = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *UploadPartOutput) SetRequestCharged(v string) *UploadPartOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *UploadPartOutput) SetSSECustomerAlgorithm(v string) *UploadPartOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *UploadPartOutput) SetSSECustomerKeyMD5(v string) *UploadPartOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *UploadPartOutput) SetSSEKMSKeyId(v string) *UploadPartOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *UploadPartOutput) SetServerSideEncryption(v string) *UploadPartOutput { + s.ServerSideEncryption = &v + return s +} + type VersioningConfiguration struct { _ struct{} `type:"structure"` @@ -10124,6 +13969,18 @@ func (s VersioningConfiguration) GoString() string { return s.String() } +// SetMFADelete sets the MFADelete field's value. +func (s *VersioningConfiguration) SetMFADelete(v string) *VersioningConfiguration { + s.MFADelete = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *VersioningConfiguration) SetStatus(v string) *VersioningConfiguration { + s.Status = &v + return s +} + type WebsiteConfiguration struct { _ struct{} `type:"structure"` @@ -10181,6 +14038,30 @@ func (s *WebsiteConfiguration) Validate() error { return nil } +// SetErrorDocument sets the ErrorDocument field's value. +func (s *WebsiteConfiguration) SetErrorDocument(v *ErrorDocument) *WebsiteConfiguration { + s.ErrorDocument = v + return s +} + +// SetIndexDocument sets the IndexDocument field's value. +func (s *WebsiteConfiguration) SetIndexDocument(v *IndexDocument) *WebsiteConfiguration { + s.IndexDocument = v + return s +} + +// SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value. +func (s *WebsiteConfiguration) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *WebsiteConfiguration { + s.RedirectAllRequestsTo = v + return s +} + +// SetRoutingRules sets the RoutingRules field's value. +func (s *WebsiteConfiguration) SetRoutingRules(v []*RoutingRule) *WebsiteConfiguration { + s.RoutingRules = v + return s +} + const ( // BucketAccelerateStatusEnabled is a BucketAccelerateStatus enum value BucketAccelerateStatusEnabled = "Enabled" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/api.go b/vendor/github.com/aws/aws-sdk-go/service/ses/api.go index 679af7f7e..46b3d234e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/api.go @@ -79,11 +79,11 @@ func (c *SES) CloneReceiptRuleSetRequest(input *CloneReceiptRuleSetInput) (req * // Indicates that the provided receipt rule set does not exist. // // * AlreadyExists -// Indicates that a resource could not be created due to a naming conflict. +// Indicates that a resource could not be created because of a naming conflict. // // * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // func (c *SES) CloneReceiptRuleSet(input *CloneReceiptRuleSetInput) (*CloneReceiptRuleSetOutput, error) { req, out := c.CloneReceiptRuleSetRequest(input) @@ -91,6 +91,174 @@ func (c *SES) CloneReceiptRuleSet(input *CloneReceiptRuleSetInput) (*CloneReceip return out, err } +const opCreateConfigurationSet = "CreateConfigurationSet" + +// CreateConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfigurationSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateConfigurationSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateConfigurationSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateConfigurationSetRequest method. +// req, resp := client.CreateConfigurationSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *SES) CreateConfigurationSetRequest(input *CreateConfigurationSetInput) (req *request.Request, output *CreateConfigurationSetOutput) { + op := &request.Operation{ + Name: opCreateConfigurationSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateConfigurationSetInput{} + } + + req = c.newRequest(op, input, output) + output = &CreateConfigurationSetOutput{} + req.Data = output + return +} + +// CreateConfigurationSet API operation for Amazon Simple Email Service. +// +// Creates a configuration set. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation CreateConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ConfigurationSetAlreadyExists +// Indicates that the configuration set could not be created because of a naming +// conflict. +// +// * InvalidConfigurationSet +// Indicates that the configuration set is invalid. See the error message for +// details. +// +// * LimitExceeded +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// +func (c *SES) CreateConfigurationSet(input *CreateConfigurationSetInput) (*CreateConfigurationSetOutput, error) { + req, out := c.CreateConfigurationSetRequest(input) + err := req.Send() + return out, err +} + +const opCreateConfigurationSetEventDestination = "CreateConfigurationSetEventDestination" + +// CreateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfigurationSetEventDestination operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateConfigurationSetEventDestination for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateConfigurationSetEventDestination method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateConfigurationSetEventDestinationRequest method. +// req, resp := client.CreateConfigurationSetEventDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *SES) CreateConfigurationSetEventDestinationRequest(input *CreateConfigurationSetEventDestinationInput) (req *request.Request, output *CreateConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opCreateConfigurationSetEventDestination, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateConfigurationSetEventDestinationInput{} + } + + req = c.newRequest(op, input, output) + output = &CreateConfigurationSetEventDestinationOutput{} + req.Data = output + return +} + +// CreateConfigurationSetEventDestination API operation for Amazon Simple Email Service. +// +// Creates a configuration set event destination. +// +// When you create or update an event destination, you must provide one, and +// only one, destination. The destination can be either Amazon CloudWatch or +// Amazon Kinesis Firehose. +// +// An event destination is the AWS service to which Amazon SES publishes the +// email sending events associated with a configuration set. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation CreateConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ConfigurationSetDoesNotExist +// Indicates that the configuration set does not exist. +// +// * EventDestinationAlreadyExists +// Indicates that the event destination could not be created because of a naming +// conflict. +// +// * InvalidCloudWatchDestination +// Indicates that the Amazon CloudWatch destination is invalid. See the error +// message for details. +// +// * InvalidFirehoseDestination +// Indicates that the Amazon Kinesis Firehose destination is invalid. See the +// error message for details. +// +// * LimitExceeded +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// +func (c *SES) CreateConfigurationSetEventDestination(input *CreateConfigurationSetEventDestinationInput) (*CreateConfigurationSetEventDestinationOutput, error) { + req, out := c.CreateConfigurationSetEventDestinationRequest(input) + err := req.Send() + return out, err +} + const opCreateReceiptFilter = "CreateReceiptFilter" // CreateReceiptFilterRequest generates a "aws/request.Request" representing the @@ -138,8 +306,8 @@ func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req * // // Creates a new IP address filter. // -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). +// For information about setting up IP address filters, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). // // This action is throttled at one request per second. // @@ -152,11 +320,11 @@ func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req * // // Returned Error Codes: // * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // // * AlreadyExists -// Indicates that a resource could not be created due to a naming conflict. +// Indicates that a resource could not be created because of a naming conflict. // func (c *SES) CreateReceiptFilter(input *CreateReceiptFilterInput) (*CreateReceiptFilterOutput, error) { req, out := c.CreateReceiptFilterRequest(input) @@ -242,7 +410,7 @@ func (c *SES) CreateReceiptRuleRequest(input *CreateReceiptRuleInput) (req *requ // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // // * AlreadyExists -// Indicates that a resource could not be created due to a naming conflict. +// Indicates that a resource could not be created because of a naming conflict. // // * RuleDoesNotExist // Indicates that the provided receipt rule does not exist. @@ -251,8 +419,8 @@ func (c *SES) CreateReceiptRuleRequest(input *CreateReceiptRuleInput) (req *requ // Indicates that the provided receipt rule set does not exist. // // * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // func (c *SES) CreateReceiptRule(input *CreateReceiptRuleInput) (*CreateReceiptRuleOutput, error) { req, out := c.CreateReceiptRuleRequest(input) @@ -321,11 +489,11 @@ func (c *SES) CreateReceiptRuleSetRequest(input *CreateReceiptRuleSetInput) (req // // Returned Error Codes: // * AlreadyExists -// Indicates that a resource could not be created due to a naming conflict. +// Indicates that a resource could not be created because of a naming conflict. // // * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // func (c *SES) CreateReceiptRuleSet(input *CreateReceiptRuleSetInput) (*CreateReceiptRuleSetOutput, error) { req, out := c.CreateReceiptRuleSetRequest(input) @@ -333,6 +501,148 @@ func (c *SES) CreateReceiptRuleSet(input *CreateReceiptRuleSetInput) (*CreateRec return out, err } +const opDeleteConfigurationSet = "DeleteConfigurationSet" + +// DeleteConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConfigurationSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteConfigurationSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteConfigurationSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteConfigurationSetRequest method. +// req, resp := client.DeleteConfigurationSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *SES) DeleteConfigurationSetRequest(input *DeleteConfigurationSetInput) (req *request.Request, output *DeleteConfigurationSetOutput) { + op := &request.Operation{ + Name: opDeleteConfigurationSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteConfigurationSetInput{} + } + + req = c.newRequest(op, input, output) + output = &DeleteConfigurationSetOutput{} + req.Data = output + return +} + +// DeleteConfigurationSet API operation for Amazon Simple Email Service. +// +// Deletes a configuration set. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ConfigurationSetDoesNotExist +// Indicates that the configuration set does not exist. +// +func (c *SES) DeleteConfigurationSet(input *DeleteConfigurationSetInput) (*DeleteConfigurationSetOutput, error) { + req, out := c.DeleteConfigurationSetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteConfigurationSetEventDestination = "DeleteConfigurationSetEventDestination" + +// DeleteConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConfigurationSetEventDestination operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteConfigurationSetEventDestination for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteConfigurationSetEventDestination method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteConfigurationSetEventDestinationRequest method. +// req, resp := client.DeleteConfigurationSetEventDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *SES) DeleteConfigurationSetEventDestinationRequest(input *DeleteConfigurationSetEventDestinationInput) (req *request.Request, output *DeleteConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opDeleteConfigurationSetEventDestination, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteConfigurationSetEventDestinationInput{} + } + + req = c.newRequest(op, input, output) + output = &DeleteConfigurationSetEventDestinationOutput{} + req.Data = output + return +} + +// DeleteConfigurationSetEventDestination API operation for Amazon Simple Email Service. +// +// Deletes a configuration set event destination. +// +// Configuration set event destinations are associated with configuration sets, +// which enable you to publish email sending events. For information about using +// configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ConfigurationSetDoesNotExist +// Indicates that the configuration set does not exist. +// +// * EventDestinationDoesNotExist +// Indicates that the event destination does not exist. +// +func (c *SES) DeleteConfigurationSetEventDestination(input *DeleteConfigurationSetEventDestinationInput) (*DeleteConfigurationSetEventDestinationOutput, error) { + req, out := c.DeleteConfigurationSetEventDestinationRequest(input) + err := req.Send() + return out, err +} + const opDeleteIdentity = "DeleteIdentity" // DeleteIdentityRequest generates a "aws/request.Request" representing the @@ -444,10 +754,10 @@ func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req // (an email address or a domain). This API returns successfully even if a policy // with the specified name does not exist. // -// This API is for the identity owner only. If you have not verified the identity, +// This API is for the identity owner only. If you have not verified the identity, // this API will return an error. // -// Sending authorization is a feature that enables an identity owner to authorize +// Sending authorization is a feature that enables an identity owner to authorize // other senders to use its identities. For information about using sending // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // @@ -645,9 +955,9 @@ func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req // // Deletes the specified receipt rule set and all of the receipt rules it contains. // -// The currently active rule set cannot be deleted. +// The currently active rule set cannot be deleted. // -// For information about managing receipt rule sets, see the Amazon SES Developer +// For information about managing receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. @@ -718,10 +1028,10 @@ func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddres // // Deletes the specified email address from the list of verified addresses. // -// The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 +// The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 // release of Domain Verification. The DeleteIdentity action is now preferred. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -800,6 +1110,75 @@ func (c *SES) DescribeActiveReceiptRuleSet(input *DescribeActiveReceiptRuleSetIn return out, err } +const opDescribeConfigurationSet = "DescribeConfigurationSet" + +// DescribeConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the DescribeConfigurationSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeConfigurationSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeConfigurationSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeConfigurationSetRequest method. +// req, resp := client.DescribeConfigurationSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *SES) DescribeConfigurationSetRequest(input *DescribeConfigurationSetInput) (req *request.Request, output *DescribeConfigurationSetOutput) { + op := &request.Operation{ + Name: opDescribeConfigurationSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeConfigurationSetInput{} + } + + req = c.newRequest(op, input, output) + output = &DescribeConfigurationSetOutput{} + req.Data = output + return +} + +// DescribeConfigurationSet API operation for Amazon Simple Email Service. +// +// Returns the details of the specified configuration set. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DescribeConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ConfigurationSetDoesNotExist +// Indicates that the configuration set does not exist. +// +func (c *SES) DescribeConfigurationSet(input *DescribeConfigurationSetInput) (*DescribeConfigurationSetOutput, error) { + req, out := c.DescribeConfigurationSetRequest(input) + err := req.Send() + return out, err +} + const opDescribeReceiptRule = "DescribeReceiptRule" // DescribeReceiptRuleRequest generates a "aws/request.Request" representing the @@ -994,16 +1373,16 @@ func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesI // This action takes a list of identities as input and returns the following // information for each: // -// Whether Easy DKIM signing is enabled or disabled. +// * Whether Easy DKIM signing is enabled or disabled. // -// A set of DKIM tokens that represent the identity. If the identity is an -// email address, the tokens represent the domain of that address. +// * A set of DKIM tokens that represent the identity. If the identity is +// an email address, the tokens represent the domain of that address. // -// Whether Amazon SES has successfully verified the DKIM tokens published -// in the domain's DNS. This information is only returned for domain name identities, -// not for email addresses. +// * Whether Amazon SES has successfully verified the DKIM tokens published +// in the domain's DNS. This information is only returned for domain name +// identities, not for email addresses. // -// This action is throttled at one request per second and can only get DKIM +// This action is throttled at one request per second and can only get DKIM // attributes for up to 100 identities at a time. // // For more information about creating DNS records using DKIM tokens, go to @@ -1135,8 +1514,8 @@ func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotific // This action is throttled at one request per second and can only get notification // attributes for up to 100 identities at a time. // -// For more information about using notifications with Amazon SES, see the -// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// For more information about using notifications with Amazon SES, see the Amazon +// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1200,10 +1579,10 @@ func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req * // names to policy contents. You can retrieve a maximum of 20 policies at a // time. // -// This API is for the identity owner only. If you have not verified the identity, +// This API is for the identity owner only. If you have not verified the identity, // this API will return an error. // -// Sending authorization is a feature that enables an identity owner to authorize +// Sending authorization is a feature that enables an identity owner to authorize // other senders to use its identities. For information about using sending // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // @@ -1410,6 +1789,71 @@ func (c *SES) GetSendStatistics(input *GetSendStatisticsInput) (*GetSendStatisti return out, err } +const opListConfigurationSets = "ListConfigurationSets" + +// ListConfigurationSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListConfigurationSets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListConfigurationSets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListConfigurationSets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListConfigurationSetsRequest method. +// req, resp := client.ListConfigurationSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *SES) ListConfigurationSetsRequest(input *ListConfigurationSetsInput) (req *request.Request, output *ListConfigurationSetsOutput) { + op := &request.Operation{ + Name: opListConfigurationSets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListConfigurationSetsInput{} + } + + req = c.newRequest(op, input, output) + output = &ListConfigurationSetsOutput{} + req.Data = output + return +} + +// ListConfigurationSets API operation for Amazon Simple Email Service. +// +// Lists the configuration sets associated with your AWS account. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second and can return up to 50 +// configuration sets at a time. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation ListConfigurationSets for usage and error information. +func (c *SES) ListConfigurationSets(input *ListConfigurationSetsInput) (*ListConfigurationSetsOutput, error) { + req, out := c.ListConfigurationSetsRequest(input) + err := req.Send() + return out, err +} + const opListIdentities = "ListIdentities" // ListIdentitiesRequest generates a "aws/request.Request" representing the @@ -1552,10 +1996,10 @@ func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req // given identity (an email address or a domain). This API returns only a list. // If you want the actual policy content, you can use GetIdentityPolicies. // -// This API is for the identity owner only. If you have not verified the identity, +// This API is for the identity owner only. If you have not verified the identity, // this API will return an error. // -// Sending authorization is a feature that enables an identity owner to authorize +// Sending authorization is a feature that enables an identity owner to authorize // other senders to use its identities. For information about using sending // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // @@ -1751,10 +2195,10 @@ func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddresse // // Returns a list containing all of the email addresses that have been verified. // -// The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 +// The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 // release of Domain Verification. The ListIdentities action is now preferred. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1816,10 +2260,10 @@ func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *requ // Adds or updates a sending authorization policy for the specified identity // (an email address or a domain). // -// This API is for the identity owner only. If you have not verified the identity, +// This API is for the identity owner only. If you have not verified the identity, // this API will return an error. // -// Sending authorization is a feature that enables an identity owner to authorize +// Sending authorization is a feature that enables an identity owner to authorize // other senders to use its identities. For information about using sending // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // @@ -1890,11 +2334,11 @@ func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (r // // Reorders the receipt rules within a receipt rule set. // -// All of the rules in the rule set must be represented in this request. That +// All of the rules in the rule set must be represented in this request. That // is, this API will return an error if the reorder request doesn't explicitly // position all of the rules. // -// For information about managing receipt rule sets, see the Amazon SES Developer +// For information about managing receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. @@ -1968,10 +2412,10 @@ func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, o // through Amazon SES. You can only use this API on an email up to 24 hours // after you receive it. // -// You cannot use this API to send generic bounces for mail that was not received +// You cannot use this API to send generic bounces for mail that was not received // by Amazon SES. // -// For information about receiving email through Amazon SES, see the Amazon +// For information about receiving email through Amazon SES, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). // // This action is throttled at one request per second. @@ -2044,25 +2488,26 @@ func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, out // // There are several important points to know about SendEmail: // -// You can only send email from verified email addresses and domains; otherwise, -// you will get an "Email address not verified" error. If your account is still -// in the Amazon SES sandbox, you must also verify every recipient email address -// except for the recipients provided by the Amazon SES mailbox simulator. For -// more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). +// * You can only send email from verified email addresses and domains; otherwise, +// you will get an "Email address not verified" error. If your account is +// still in the Amazon SES sandbox, you must also verify every recipient +// email address except for the recipients provided by the Amazon SES mailbox +// simulator. For more information, go to the Amazon SES Developer Guide +// (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). // -// The total size of the message cannot exceed 10 MB. This includes any attachments -// that are part of the message. +// * The total size of the message cannot exceed 10 MB. This includes any +// attachments that are part of the message. // -// Amazon SES has a limit on the total number of recipients per message. -// The combined number of To:, CC: and BCC: email addresses cannot exceed 50. -// If you need to send an email message to a larger audience, you can divide -// your recipient list into groups of 50 or fewer, and then call Amazon SES -// repeatedly to send the message to each group. +// * Amazon SES has a limit on the total number of recipients per message. +// The combined number of To:, CC: and BCC: email addresses cannot exceed +// 50. If you need to send an email message to a larger audience, you can +// divide your recipient list into groups of 50 or fewer, and then call Amazon +// SES repeatedly to send the message to each group. // -// For every message that you send, the total number of recipients (To:, -// CC: and BCC:) is counted against your sending quota - the maximum number -// of emails you can send in a 24-hour period. For information about your sending -// quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). +// * For every message that you send, the total number of recipients (To:, +// CC: and BCC:) is counted against your sending quota - the maximum number +// of emails you can send in a 24-hour period. For information about your +// sending quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2082,6 +2527,9 @@ func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, out // about editing the custom MAIL FROM domain settings for an identity, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-edit.html). // +// * ConfigurationSetDoesNotExist +// Indicates that the configuration set does not exist. +// func (c *SES) SendEmail(input *SendEmailInput) (*SendEmailOutput, error) { req, out := c.SendEmailRequest(input) err := req.Send() @@ -2140,55 +2588,56 @@ func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Reques // // There are several important points to know about SendRawEmail: // -// You can only send email from verified email addresses and domains; otherwise, -// you will get an "Email address not verified" error. If your account is still -// in the Amazon SES sandbox, you must also verify every recipient email address -// except for the recipients provided by the Amazon SES mailbox simulator. For -// more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). +// * You can only send email from verified email addresses and domains; otherwise, +// you will get an "Email address not verified" error. If your account is +// still in the Amazon SES sandbox, you must also verify every recipient +// email address except for the recipients provided by the Amazon SES mailbox +// simulator. For more information, go to the Amazon SES Developer Guide +// (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). // -// The total size of the message cannot exceed 10 MB. This includes any attachments -// that are part of the message. +// * The total size of the message cannot exceed 10 MB. This includes any +// attachments that are part of the message. // -// Amazon SES has a limit on the total number of recipients per message. -// The combined number of To:, CC: and BCC: email addresses cannot exceed 50. -// If you need to send an email message to a larger audience, you can divide -// your recipient list into groups of 50 or fewer, and then call Amazon SES -// repeatedly to send the message to each group. +// * Amazon SES has a limit on the total number of recipients per message. +// The combined number of To:, CC: and BCC: email addresses cannot exceed +// 50. If you need to send an email message to a larger audience, you can +// divide your recipient list into groups of 50 or fewer, and then call Amazon +// SES repeatedly to send the message to each group. // -// The To:, CC:, and BCC: headers in the raw message can contain a group -// list. Note that each recipient in a group list counts towards the 50-recipient -// limit. +// * The To:, CC:, and BCC: headers in the raw message can contain a group +// list. Note that each recipient in a group list counts towards the 50-recipient +// limit. // -// Amazon SES overrides any Message-ID and Date headers you provide. +// * Amazon SES overrides any Message-ID and Date headers you provide. // -// For every message that you send, the total number of recipients (To:, -// CC: and BCC:) is counted against your sending quota - the maximum number -// of emails you can send in a 24-hour period. For information about your sending -// quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). +// * For every message that you send, the total number of recipients (To:, +// CC: and BCC:) is counted against your sending quota - the maximum number +// of emails you can send in a 24-hour period. For information about your +// sending quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). // -// If you are using sending authorization to send on behalf of another user, -// SendRawEmail enables you to specify the cross-account identity for the email's -// "Source," "From," and "Return-Path" parameters in one of two ways: you can -// pass optional parameters SourceArn, FromArn, and/or ReturnPathArn to the -// API, or you can include the following X-headers in the header of your raw -// email: +// * If you are using sending authorization to send on behalf of another +// user, SendRawEmail enables you to specify the cross-account identity for +// the email's "Source," "From," and "Return-Path" parameters in one of two +// ways: you can pass optional parameters SourceArn, FromArn, and/or ReturnPathArn +// to the API, or you can include the following X-headers in the header of +// your raw email: // -// X-SES-SOURCE-ARN +// X-SES-SOURCE-ARN // -// X-SES-FROM-ARN +// X-SES-FROM-ARN // -// X-SES-RETURN-PATH-ARN +// X-SES-RETURN-PATH-ARN // -// Do not include these X-headers in the DKIM signature, because they are -// removed by Amazon SES before sending the email. +// Do not include these X-headers in the DKIM signature, because they are removed +// by Amazon SES before sending the email. // -// For the most common sending authorization use case, we recommend that you -// specify the SourceIdentityArn and do not specify either the FromIdentityArn -// or ReturnPathIdentityArn. (The same note applies to the corresponding X-headers.) -// If you only specify the SourceIdentityArn, Amazon SES will simply set the -// "From" address and the "Return Path" address to the identity specified in -// SourceIdentityArn. For more information about sending authorization, see -// the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). +// For the most common sending authorization use case, we recommend that you +// specify the SourceIdentityArn and do not specify either the FromIdentityArn +// or ReturnPathIdentityArn. (The same note applies to the corresponding +// X-headers.) If you only specify the SourceIdentityArn, Amazon SES will +// simply set the "From" address and the "Return Path" address to the identity +// specified in SourceIdentityArn. For more information about sending authorization, +// see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2208,6 +2657,9 @@ func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Reques // about editing the custom MAIL FROM domain settings for an identity, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-edit.html). // +// * ConfigurationSetDoesNotExist +// Indicates that the configuration set does not exist. +// func (c *SES) SendRawEmail(input *SendRawEmailInput) (*SendRawEmailOutput, error) { req, out := c.SendRawEmailRequest(input) err := req.Send() @@ -2261,10 +2713,10 @@ func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput // // Sets the specified receipt rule set as the active receipt rule set. // -// To disable your email-receiving through Amazon SES completely, you can -// call this API with RuleSetName set to null. +// To disable your email-receiving through Amazon SES completely, you can call +// this API with RuleSetName set to null. // -// For information about managing receipt rule sets, see the Amazon SES Developer +// For information about managing receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. @@ -2333,16 +2785,16 @@ func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) // // Enables or disables Easy DKIM signing of email sent from an identity: // -// If Easy DKIM signing is enabled for a domain name identity (e.g., example.com), -// then Amazon SES will DKIM-sign all email sent by addresses under that domain -// name (e.g., user@example.com). +// * If Easy DKIM signing is enabled for a domain name identity (e.g., example.com), +// then Amazon SES will DKIM-sign all email sent by addresses under that +// domain name (e.g., user@example.com). // -// If Easy DKIM signing is enabled for an email address, then Amazon SES -// will DKIM-sign all email sent by that email address. +// * If Easy DKIM signing is enabled for an email address, then Amazon SES +// will DKIM-sign all email sent by that email address. // -// For email addresses (e.g., user@example.com), you can only enable Easy -// DKIM signing if the corresponding domain (e.g., example.com) has been set -// up for Easy DKIM using the AWS Console or the VerifyDomainDkim action. +// For email addresses (e.g., user@example.com), you can only enable Easy DKIM +// signing if the corresponding domain (e.g., example.com) has been set up for +// Easy DKIM using the AWS Console or the VerifyDomainDkim action. // // This action is throttled at one request per second. // @@ -2411,13 +2863,13 @@ func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeed // forwarding can only be disabled when Amazon Simple Notification Service (Amazon // SNS) topics are specified for both bounces and complaints. // -// Feedback forwarding does not apply to delivery notifications. Delivery -// notifications are only available through Amazon SNS. +// Feedback forwarding does not apply to delivery notifications. Delivery notifications +// are only available through Amazon SNS. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // -// For more information about using notifications with Amazon SES, see the -// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// For more information about using notifications with Amazon SES, see the Amazon +// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2482,8 +2934,8 @@ func (c *SES) SetIdentityHeadersInNotificationsEnabledRequest(input *SetIdentity // // This action is throttled at one request per second. // -// For more information about using notifications with Amazon SES, see the -// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// For more information about using notifications with Amazon SES, see the Amazon +// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2545,12 +2997,12 @@ func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainI // Enables or disables the custom MAIL FROM domain setup for a verified identity // (an email address or a domain). // -// To send emails using the specified MAIL FROM domain, you must add an MX -// record to your MAIL FROM domain's DNS settings. If you want your emails to -// pass Sender Policy Framework (SPF) checks, you must also add or update an -// SPF record. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-set.html). +// To send emails using the specified MAIL FROM domain, you must add an MX record +// to your MAIL FROM domain's DNS settings. If you want your emails to pass +// Sender Policy Framework (SPF) checks, you must also add or update an SPF +// record. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-set.html). // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2614,10 +3066,10 @@ func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotification // bounce, complaint, and/or delivery notifications for emails sent with that // identity as the Source. // -// Unless feedback forwarding is enabled, you must specify Amazon SNS topics +// Unless feedback forwarding is enabled, you must specify Amazon SNS topics // for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // For more information about feedback notification, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). @@ -2706,6 +3158,92 @@ func (c *SES) SetReceiptRulePosition(input *SetReceiptRulePositionInput) (*SetRe return out, err } +const opUpdateConfigurationSetEventDestination = "UpdateConfigurationSetEventDestination" + +// UpdateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConfigurationSetEventDestination operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateConfigurationSetEventDestination for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateConfigurationSetEventDestination method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateConfigurationSetEventDestinationRequest method. +// req, resp := client.UpdateConfigurationSetEventDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +func (c *SES) UpdateConfigurationSetEventDestinationRequest(input *UpdateConfigurationSetEventDestinationInput) (req *request.Request, output *UpdateConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opUpdateConfigurationSetEventDestination, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateConfigurationSetEventDestinationInput{} + } + + req = c.newRequest(op, input, output) + output = &UpdateConfigurationSetEventDestinationOutput{} + req.Data = output + return +} + +// UpdateConfigurationSetEventDestination API operation for Amazon Simple Email Service. +// +// Updates the event destination of a configuration set. +// +// When you create or update an event destination, you must provide one, and +// only one, destination. The destination can be either Amazon CloudWatch or +// Amazon Kinesis Firehose. +// +// Event destinations are associated with configuration sets, which enable you +// to publish email sending events to Amazon CloudWatch or Amazon Kinesis Firehose. +// For information about using configuration sets, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation UpdateConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ConfigurationSetDoesNotExist +// Indicates that the configuration set does not exist. +// +// * EventDestinationDoesNotExist +// Indicates that the event destination does not exist. +// +// * InvalidCloudWatchDestination +// Indicates that the Amazon CloudWatch destination is invalid. See the error +// message for details. +// +// * InvalidFirehoseDestination +// Indicates that the Amazon Kinesis Firehose destination is invalid. See the +// error message for details. +// +func (c *SES) UpdateConfigurationSetEventDestination(input *UpdateConfigurationSetEventDestinationInput) (*UpdateConfigurationSetEventDestinationOutput, error) { + req, out := c.UpdateConfigurationSetEventDestinationRequest(input) + err := req.Send() + return out, err +} + const opUpdateReceiptRule = "UpdateReceiptRule" // UpdateReceiptRuleRequest generates a "aws/request.Request" representing the @@ -2790,8 +3328,8 @@ func (c *SES) UpdateReceiptRuleRequest(input *UpdateReceiptRuleInput) (req *requ // Indicates that the provided receipt rule does not exist. // // * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // func (c *SES) UpdateReceiptRule(input *UpdateReceiptRuleInput) (*UpdateReceiptRuleOutput, error) { req, out := c.UpdateReceiptRuleRequest(input) @@ -2983,10 +3521,10 @@ func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *re // Verifies an email address. This action causes a confirmation email message // to be sent to the specified address. // -// The VerifyEmailAddress action is deprecated as of the May 15, 2012 release +// The VerifyEmailAddress action is deprecated as of the May 15, 2012 release // of Domain Verification. The VerifyEmailIdentity action is now preferred. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3109,6 +3647,18 @@ func (s *AddHeaderAction) Validate() error { return nil } +// SetHeaderName sets the HeaderName field's value. +func (s *AddHeaderAction) SetHeaderName(v string) *AddHeaderAction { + s.HeaderName = &v + return s +} + +// SetHeaderValue sets the HeaderValue field's value. +func (s *AddHeaderAction) SetHeaderValue(v string) *AddHeaderAction { + s.HeaderValue = &v + return s +} + // Represents the body of the message. You can specify text, HTML, or both. // If you use both, then the message should display correctly in the widest // variety of email clients. @@ -3155,6 +3705,18 @@ func (s *Body) Validate() error { return nil } +// SetHtml sets the Html field's value. +func (s *Body) SetHtml(v *Content) *Body { + s.Html = v + return s +} + +// SetText sets the Text field's value. +func (s *Body) SetText(v *Content) *Body { + s.Text = v + return s +} + // When included in a receipt rule, this action rejects the received email by // returning a bounce response to the sender and, optionally, publishes a notification // to Amazon Simple Notification Service (Amazon SNS). @@ -3219,6 +3781,36 @@ func (s *BounceAction) Validate() error { return nil } +// SetMessage sets the Message field's value. +func (s *BounceAction) SetMessage(v string) *BounceAction { + s.Message = &v + return s +} + +// SetSender sets the Sender field's value. +func (s *BounceAction) SetSender(v string) *BounceAction { + s.Sender = &v + return s +} + +// SetSmtpReplyCode sets the SmtpReplyCode field's value. +func (s *BounceAction) SetSmtpReplyCode(v string) *BounceAction { + s.SmtpReplyCode = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *BounceAction) SetStatusCode(v string) *BounceAction { + s.StatusCode = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *BounceAction) SetTopicArn(v string) *BounceAction { + s.TopicArn = &v + return s +} + // Recipient-related information to include in the Delivery Status Notification // (DSN) when an email that Amazon SES receives on your behalf bounces. // @@ -3275,6 +3867,30 @@ func (s *BouncedRecipientInfo) Validate() error { return nil } +// SetBounceType sets the BounceType field's value. +func (s *BouncedRecipientInfo) SetBounceType(v string) *BouncedRecipientInfo { + s.BounceType = &v + return s +} + +// SetRecipient sets the Recipient field's value. +func (s *BouncedRecipientInfo) SetRecipient(v string) *BouncedRecipientInfo { + s.Recipient = &v + return s +} + +// SetRecipientArn sets the RecipientArn field's value. +func (s *BouncedRecipientInfo) SetRecipientArn(v string) *BouncedRecipientInfo { + s.RecipientArn = &v + return s +} + +// SetRecipientDsnFields sets the RecipientDsnFields field's value. +func (s *BouncedRecipientInfo) SetRecipientDsnFields(v *RecipientDsnFields) *BouncedRecipientInfo { + s.RecipientDsnFields = v + return s +} + // Represents a request to create a receipt rule set by cloning an existing // one. You use receipt rule sets to receive email with Amazon SES. For more // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). @@ -3288,12 +3904,12 @@ type CloneReceiptRuleSetInput struct { // The name of the rule set to create. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. // // RuleSetName is a required field RuleSetName *string `type:"string" required:"true"` @@ -3325,6 +3941,18 @@ func (s *CloneReceiptRuleSetInput) Validate() error { return nil } +// SetOriginalRuleSetName sets the OriginalRuleSetName field's value. +func (s *CloneReceiptRuleSetInput) SetOriginalRuleSetName(v string) *CloneReceiptRuleSetInput { + s.OriginalRuleSetName = &v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *CloneReceiptRuleSetInput) SetRuleSetName(v string) *CloneReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type CloneReceiptRuleSetOutput struct { _ struct{} `type:"structure"` @@ -3340,11 +3968,201 @@ func (s CloneReceiptRuleSetOutput) GoString() string { return s.String() } +// Contains information associated with an Amazon CloudWatch event destination +// to which email sending events are published. +// +// Event destinations, such as Amazon CloudWatch, are associated with configuration +// sets, which enable you to publish email sending events. For information about +// using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type CloudWatchDestination struct { + _ struct{} `type:"structure"` + + // A list of dimensions upon which to categorize your emails when you publish + // email sending events to Amazon CloudWatch. + // + // DimensionConfigurations is a required field + DimensionConfigurations []*CloudWatchDimensionConfiguration `type:"list" required:"true"` +} + +// String returns the string representation +func (s CloudWatchDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloudWatchDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchDestination"} + if s.DimensionConfigurations == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionConfigurations")) + } + if s.DimensionConfigurations != nil { + for i, v := range s.DimensionConfigurations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DimensionConfigurations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDimensionConfigurations sets the DimensionConfigurations field's value. +func (s *CloudWatchDestination) SetDimensionConfigurations(v []*CloudWatchDimensionConfiguration) *CloudWatchDestination { + s.DimensionConfigurations = v + return s +} + +// Contains the dimension configuration to use when you publish email sending +// events to Amazon CloudWatch. +// +// For information about publishing email sending events to Amazon CloudWatch, +// see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type CloudWatchDimensionConfiguration struct { + _ struct{} `type:"structure"` + + // The default value of the dimension that is published to Amazon CloudWatch + // if you do not provide the value of the dimension when you send an email. + // The default value must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 256 characters. + // + // DefaultDimensionValue is a required field + DefaultDimensionValue *string `type:"string" required:"true"` + + // The name of an Amazon CloudWatch dimension associated with an email sending + // metric. The name must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 256 characters. + // + // DimensionName is a required field + DimensionName *string `type:"string" required:"true"` + + // The place where Amazon SES finds the value of a dimension to publish to Amazon + // CloudWatch. If you want Amazon SES to use the message tags that you specify + // using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail + // API, choose messageTag. If you want Amazon SES to use your own email headers, + // choose emailHeader. + // + // DimensionValueSource is a required field + DimensionValueSource *string `type:"string" required:"true" enum:"DimensionValueSource"` +} + +// String returns the string representation +func (s CloudWatchDimensionConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchDimensionConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloudWatchDimensionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchDimensionConfiguration"} + if s.DefaultDimensionValue == nil { + invalidParams.Add(request.NewErrParamRequired("DefaultDimensionValue")) + } + if s.DimensionName == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionName")) + } + if s.DimensionValueSource == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionValueSource")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefaultDimensionValue sets the DefaultDimensionValue field's value. +func (s *CloudWatchDimensionConfiguration) SetDefaultDimensionValue(v string) *CloudWatchDimensionConfiguration { + s.DefaultDimensionValue = &v + return s +} + +// SetDimensionName sets the DimensionName field's value. +func (s *CloudWatchDimensionConfiguration) SetDimensionName(v string) *CloudWatchDimensionConfiguration { + s.DimensionName = &v + return s +} + +// SetDimensionValueSource sets the DimensionValueSource field's value. +func (s *CloudWatchDimensionConfiguration) SetDimensionValueSource(v string) *CloudWatchDimensionConfiguration { + s.DimensionValueSource = &v + return s +} + +// The name of the configuration set. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type ConfigurationSet struct { + _ struct{} `type:"structure"` + + // The name of the configuration set. The name must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 64 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ConfigurationSet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigurationSet) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConfigurationSet) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfigurationSet"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *ConfigurationSet) SetName(v string) *ConfigurationSet { + s.Name = &v + return s +} + // Represents textual data, plus an optional character set specification. // -// By default, the text must be 7-bit ASCII, due to the constraints of the -// SMTP protocol. If the text must contain any other characters, then you must -// also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS. +// By default, the text must be 7-bit ASCII, due to the constraints of the SMTP +// protocol. If the text must contain any other characters, then you must also +// specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS. type Content struct { _ struct{} `type:"structure"` @@ -3380,6 +4198,157 @@ func (s *Content) Validate() error { return nil } +// SetCharset sets the Charset field's value. +func (s *Content) SetCharset(v string) *Content { + s.Charset = &v + return s +} + +// SetData sets the Data field's value. +func (s *Content) SetData(v string) *Content { + s.Data = &v + return s +} + +// Represents a request to create a configuration set event destination. A configuration +// set event destination, which can be either Amazon CloudWatch or Amazon Kinesis +// Firehose, describes an AWS service in which Amazon SES publishes the email +// sending events associated with a configuration set. For information about +// using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type CreateConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set to which to apply the event destination. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` + + // An object that describes the AWS service to which Amazon SES will publish + // the email sending events associated with the specified configuration set. + // + // EventDestination is a required field + EventDestination *EventDestination `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateConfigurationSetEventDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationSetEventDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConfigurationSetEventDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConfigurationSetEventDestinationInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.EventDestination == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestination")) + } + if s.EventDestination != nil { + if err := s.EventDestination.Validate(); err != nil { + invalidParams.AddNested("EventDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *CreateConfigurationSetEventDestinationInput) SetConfigurationSetName(v string) *CreateConfigurationSetEventDestinationInput { + s.ConfigurationSetName = &v + return s +} + +// SetEventDestination sets the EventDestination field's value. +func (s *CreateConfigurationSetEventDestinationInput) SetEventDestination(v *EventDestination) *CreateConfigurationSetEventDestinationInput { + s.EventDestination = v + return s +} + +// An empty element returned on a successful request. +type CreateConfigurationSetEventDestinationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateConfigurationSetEventDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationSetEventDestinationOutput) GoString() string { + return s.String() +} + +// Represents a request to create a configuration set. Configuration sets enable +// you to publish email sending events. For information about using configuration +// sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type CreateConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // A data structure that contains the name of the configuration set. + // + // ConfigurationSet is a required field + ConfigurationSet *ConfigurationSet `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateConfigurationSetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationSetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConfigurationSetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConfigurationSetInput"} + if s.ConfigurationSet == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSet")) + } + if s.ConfigurationSet != nil { + if err := s.ConfigurationSet.Validate(); err != nil { + invalidParams.AddNested("ConfigurationSet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSet sets the ConfigurationSet field's value. +func (s *CreateConfigurationSetInput) SetConfigurationSet(v *ConfigurationSet) *CreateConfigurationSetInput { + s.ConfigurationSet = v + return s +} + +// An empty element returned on a successful request. +type CreateConfigurationSetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateConfigurationSetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationSetOutput) GoString() string { + return s.String() +} + // Represents a request to create a new IP address filter. You use IP address // filters when you receive email with Amazon SES. For more information, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). @@ -3421,6 +4390,12 @@ func (s *CreateReceiptFilterInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *CreateReceiptFilterInput) SetFilter(v *ReceiptFilter) *CreateReceiptFilterInput { + s.Filter = v + return s +} + // An empty element returned on a successful request. type CreateReceiptFilterOutput struct { _ struct{} `type:"structure"` @@ -3490,6 +4465,24 @@ func (s *CreateReceiptRuleInput) Validate() error { return nil } +// SetAfter sets the After field's value. +func (s *CreateReceiptRuleInput) SetAfter(v string) *CreateReceiptRuleInput { + s.After = &v + return s +} + +// SetRule sets the Rule field's value. +func (s *CreateReceiptRuleInput) SetRule(v *ReceiptRule) *CreateReceiptRuleInput { + s.Rule = v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *CreateReceiptRuleInput) SetRuleSetName(v string) *CreateReceiptRuleInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type CreateReceiptRuleOutput struct { _ struct{} `type:"structure"` @@ -3513,12 +4506,12 @@ type CreateReceiptRuleSetInput struct { // The name of the rule set to create. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. // // RuleSetName is a required field RuleSetName *string `type:"string" required:"true"` @@ -3547,6 +4540,12 @@ func (s *CreateReceiptRuleSetInput) Validate() error { return nil } +// SetRuleSetName sets the RuleSetName field's value. +func (s *CreateReceiptRuleSetInput) SetRuleSetName(v string) *CreateReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type CreateReceiptRuleSetOutput struct { _ struct{} `type:"structure"` @@ -3562,6 +4561,133 @@ func (s CreateReceiptRuleSetOutput) GoString() string { return s.String() } +// Represents a request to delete a configuration set event destination. Configuration +// set event destinations are associated with configuration sets, which enable +// you to publish email sending events. For information about using configuration +// sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type DeleteConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set from which to delete the event destination. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` + + // The name of the event destination to delete. + // + // EventDestinationName is a required field + EventDestinationName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteConfigurationSetEventDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConfigurationSetEventDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConfigurationSetEventDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationSetEventDestinationInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.EventDestinationName == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *DeleteConfigurationSetEventDestinationInput) SetConfigurationSetName(v string) *DeleteConfigurationSetEventDestinationInput { + s.ConfigurationSetName = &v + return s +} + +// SetEventDestinationName sets the EventDestinationName field's value. +func (s *DeleteConfigurationSetEventDestinationInput) SetEventDestinationName(v string) *DeleteConfigurationSetEventDestinationInput { + s.EventDestinationName = &v + return s +} + +// An empty element returned on a successful request. +type DeleteConfigurationSetEventDestinationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteConfigurationSetEventDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConfigurationSetEventDestinationOutput) GoString() string { + return s.String() +} + +// Represents a request to delete a configuration set. Configuration sets enable +// you to publish email sending events. For information about using configuration +// sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type DeleteConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set to delete. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteConfigurationSetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConfigurationSetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConfigurationSetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationSetInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *DeleteConfigurationSetInput) SetConfigurationSetName(v string) *DeleteConfigurationSetInput { + s.ConfigurationSetName = &v + return s +} + +// An empty element returned on a successful request. +type DeleteConfigurationSetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteConfigurationSetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConfigurationSetOutput) GoString() string { + return s.String() +} + // Represents a request to delete one of your Amazon SES identities (an email // address or domain). type DeleteIdentityInput struct { @@ -3596,6 +4722,12 @@ func (s *DeleteIdentityInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *DeleteIdentityInput) SetIdentity(v string) *DeleteIdentityInput { + s.Identity = &v + return s +} + // An empty element returned on a successful request. type DeleteIdentityOutput struct { _ struct{} `type:"structure"` @@ -3662,6 +4794,18 @@ func (s *DeleteIdentityPolicyInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *DeleteIdentityPolicyInput) SetIdentity(v string) *DeleteIdentityPolicyInput { + s.Identity = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteIdentityPolicyInput) SetPolicyName(v string) *DeleteIdentityPolicyInput { + s.PolicyName = &v + return s +} + // An empty element returned on a successful request. type DeleteIdentityPolicyOutput struct { _ struct{} `type:"structure"` @@ -3712,6 +4856,12 @@ func (s *DeleteReceiptFilterInput) Validate() error { return nil } +// SetFilterName sets the FilterName field's value. +func (s *DeleteReceiptFilterInput) SetFilterName(v string) *DeleteReceiptFilterInput { + s.FilterName = &v + return s +} + // An empty element returned on a successful request. type DeleteReceiptFilterOutput struct { _ struct{} `type:"structure"` @@ -3770,6 +4920,18 @@ func (s *DeleteReceiptRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *DeleteReceiptRuleInput) SetRuleName(v string) *DeleteReceiptRuleInput { + s.RuleName = &v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *DeleteReceiptRuleInput) SetRuleSetName(v string) *DeleteReceiptRuleInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type DeleteReceiptRuleOutput struct { _ struct{} `type:"structure"` @@ -3820,6 +4982,12 @@ func (s *DeleteReceiptRuleSetInput) Validate() error { return nil } +// SetRuleSetName sets the RuleSetName field's value. +func (s *DeleteReceiptRuleSetInput) SetRuleSetName(v string) *DeleteReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type DeleteReceiptRuleSetOutput struct { _ struct{} `type:"structure"` @@ -3869,6 +5037,12 @@ func (s *DeleteVerifiedEmailAddressInput) Validate() error { return nil } +// SetEmailAddress sets the EmailAddress field's value. +func (s *DeleteVerifiedEmailAddressInput) SetEmailAddress(v string) *DeleteVerifiedEmailAddressInput { + s.EmailAddress = &v + return s +} + type DeleteVerifiedEmailAddressOutput struct { _ struct{} `type:"structure"` } @@ -3924,6 +5098,104 @@ func (s DescribeActiveReceiptRuleSetOutput) GoString() string { return s.String() } +// SetMetadata sets the Metadata field's value. +func (s *DescribeActiveReceiptRuleSetOutput) SetMetadata(v *ReceiptRuleSetMetadata) *DescribeActiveReceiptRuleSetOutput { + s.Metadata = v + return s +} + +// SetRules sets the Rules field's value. +func (s *DescribeActiveReceiptRuleSetOutput) SetRules(v []*ReceiptRule) *DescribeActiveReceiptRuleSetOutput { + s.Rules = v + return s +} + +// Represents a request to return the details of a configuration set. Configuration +// sets enable you to publish email sending events. For information about using +// configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type DescribeConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // A list of configuration set attributes to return. + ConfigurationSetAttributeNames []*string `type:"list"` + + // The name of the configuration set to describe. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeConfigurationSetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConfigurationSetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeConfigurationSetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationSetInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetAttributeNames sets the ConfigurationSetAttributeNames field's value. +func (s *DescribeConfigurationSetInput) SetConfigurationSetAttributeNames(v []*string) *DescribeConfigurationSetInput { + s.ConfigurationSetAttributeNames = v + return s +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *DescribeConfigurationSetInput) SetConfigurationSetName(v string) *DescribeConfigurationSetInput { + s.ConfigurationSetName = &v + return s +} + +// Represents the details of a configuration set. Configuration sets enable +// you to publish email sending events. For information about using configuration +// sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type DescribeConfigurationSetOutput struct { + _ struct{} `type:"structure"` + + // The configuration set object associated with the specified configuration + // set. + ConfigurationSet *ConfigurationSet `type:"structure"` + + // A list of event destinations associated with the configuration set. + EventDestinations []*EventDestination `type:"list"` +} + +// String returns the string representation +func (s DescribeConfigurationSetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConfigurationSetOutput) GoString() string { + return s.String() +} + +// SetConfigurationSet sets the ConfigurationSet field's value. +func (s *DescribeConfigurationSetOutput) SetConfigurationSet(v *ConfigurationSet) *DescribeConfigurationSetOutput { + s.ConfigurationSet = v + return s +} + +// SetEventDestinations sets the EventDestinations field's value. +func (s *DescribeConfigurationSetOutput) SetEventDestinations(v []*EventDestination) *DescribeConfigurationSetOutput { + s.EventDestinations = v + return s +} + // Represents a request to return the details of a receipt rule. You use receipt // rules to receive email with Amazon SES. For more information, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). @@ -3967,6 +5239,18 @@ func (s *DescribeReceiptRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *DescribeReceiptRuleInput) SetRuleName(v string) *DescribeReceiptRuleInput { + s.RuleName = &v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *DescribeReceiptRuleInput) SetRuleSetName(v string) *DescribeReceiptRuleInput { + s.RuleSetName = &v + return s +} + // Represents the details of a receipt rule. type DescribeReceiptRuleOutput struct { _ struct{} `type:"structure"` @@ -3987,6 +5271,12 @@ func (s DescribeReceiptRuleOutput) GoString() string { return s.String() } +// SetRule sets the Rule field's value. +func (s *DescribeReceiptRuleOutput) SetRule(v *ReceiptRule) *DescribeReceiptRuleOutput { + s.Rule = v + return s +} + // Represents a request to return the details of a receipt rule set. You use // receipt rule sets to receive email with Amazon SES. For more information, // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). @@ -4022,6 +5312,12 @@ func (s *DescribeReceiptRuleSetInput) Validate() error { return nil } +// SetRuleSetName sets the RuleSetName field's value. +func (s *DescribeReceiptRuleSetInput) SetRuleSetName(v string) *DescribeReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // Represents the details of the specified receipt rule set. type DescribeReceiptRuleSetOutput struct { _ struct{} `type:"structure"` @@ -4044,10 +5340,22 @@ func (s DescribeReceiptRuleSetOutput) GoString() string { return s.String() } +// SetMetadata sets the Metadata field's value. +func (s *DescribeReceiptRuleSetOutput) SetMetadata(v *ReceiptRuleSetMetadata) *DescribeReceiptRuleSetOutput { + s.Metadata = v + return s +} + +// SetRules sets the Rules field's value. +func (s *DescribeReceiptRuleSetOutput) SetRules(v []*ReceiptRule) *DescribeReceiptRuleSetOutput { + s.Rules = v + return s +} + // Represents the destination of the message, consisting of To:, CC:, and BCC: // fields. // -// By default, the string must be 7-bit ASCII. If the text must contain any +// By default, the string must be 7-bit ASCII. If the text must contain any // other characters, then you must use MIME encoded-word syntax (RFC 2047) instead // of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. // For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047). @@ -4074,6 +5382,134 @@ func (s Destination) GoString() string { return s.String() } +// SetBccAddresses sets the BccAddresses field's value. +func (s *Destination) SetBccAddresses(v []*string) *Destination { + s.BccAddresses = v + return s +} + +// SetCcAddresses sets the CcAddresses field's value. +func (s *Destination) SetCcAddresses(v []*string) *Destination { + s.CcAddresses = v + return s +} + +// SetToAddresses sets the ToAddresses field's value. +func (s *Destination) SetToAddresses(v []*string) *Destination { + s.ToAddresses = v + return s +} + +// Contains information about the event destination to which the specified email +// sending events are published. +// +// When you create or update an event destination, you must provide one, and +// only one, destination. The destination can be either Amazon CloudWatch or +// Amazon Kinesis Firehose. +// +// Event destinations are associated with configuration sets, which enable you +// to publish email sending events to Amazon CloudWatch or Amazon Kinesis Firehose. +// For information about using configuration sets, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type EventDestination struct { + _ struct{} `type:"structure"` + + // An object that contains the names, default values, and sources of the dimensions + // associated with an Amazon CloudWatch event destination. + CloudWatchDestination *CloudWatchDestination `type:"structure"` + + // Sets whether Amazon SES publishes events to this destination when you send + // an email with the associated configuration set. Set to true to enable publishing + // to this destination; set to false to prevent publishing to this destination. + // The default value is false. + Enabled *bool `type:"boolean"` + + // An object that contains the delivery stream ARN and the IAM role ARN associated + // with an Amazon Kinesis Firehose event destination. + KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"` + + // The type of email sending events to publish to the event destination. + // + // MatchingEventTypes is a required field + MatchingEventTypes []*string `type:"list" required:"true"` + + // The name of the event destination. The name must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 64 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s EventDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EventDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EventDestination"} + if s.MatchingEventTypes == nil { + invalidParams.Add(request.NewErrParamRequired("MatchingEventTypes")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.CloudWatchDestination != nil { + if err := s.CloudWatchDestination.Validate(); err != nil { + invalidParams.AddNested("CloudWatchDestination", err.(request.ErrInvalidParams)) + } + } + if s.KinesisFirehoseDestination != nil { + if err := s.KinesisFirehoseDestination.Validate(); err != nil { + invalidParams.AddNested("KinesisFirehoseDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCloudWatchDestination sets the CloudWatchDestination field's value. +func (s *EventDestination) SetCloudWatchDestination(v *CloudWatchDestination) *EventDestination { + s.CloudWatchDestination = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventDestination) SetEnabled(v bool) *EventDestination { + s.Enabled = &v + return s +} + +// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value. +func (s *EventDestination) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *EventDestination { + s.KinesisFirehoseDestination = v + return s +} + +// SetMatchingEventTypes sets the MatchingEventTypes field's value. +func (s *EventDestination) SetMatchingEventTypes(v []*string) *EventDestination { + s.MatchingEventTypes = v + return s +} + +// SetName sets the Name field's value. +func (s *EventDestination) SetName(v string) *EventDestination { + s.Name = &v + return s +} + // Additional X-headers to include in the Delivery Status Notification (DSN) // when an email that Amazon SES receives on your behalf bounces. // @@ -4121,6 +5557,18 @@ func (s *ExtensionField) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *ExtensionField) SetName(v string) *ExtensionField { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ExtensionField) SetValue(v string) *ExtensionField { + s.Value = &v + return s +} + // Represents a request for the status of Amazon SES Easy DKIM signing for an // identity. For domain identities, this request also returns the DKIM tokens // that are required for Easy DKIM signing, and whether Amazon SES successfully @@ -4159,6 +5607,12 @@ func (s *GetIdentityDkimAttributesInput) Validate() error { return nil } +// SetIdentities sets the Identities field's value. +func (s *GetIdentityDkimAttributesInput) SetIdentities(v []*string) *GetIdentityDkimAttributesInput { + s.Identities = v + return s +} + // Represents the status of Amazon SES Easy DKIM signing for an identity. For // domain identities, this response also contains the DKIM tokens that are required // for Easy DKIM signing, and whether Amazon SES successfully verified that @@ -4182,6 +5636,12 @@ func (s GetIdentityDkimAttributesOutput) GoString() string { return s.String() } +// SetDkimAttributes sets the DkimAttributes field's value. +func (s *GetIdentityDkimAttributesOutput) SetDkimAttributes(v map[string]*IdentityDkimAttributes) *GetIdentityDkimAttributesOutput { + s.DkimAttributes = v + return s +} + // Represents a request to return the Amazon SES custom MAIL FROM attributes // for a list of identities. For information about using a custom MAIL FROM // domain, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html). @@ -4217,6 +5677,12 @@ func (s *GetIdentityMailFromDomainAttributesInput) Validate() error { return nil } +// SetIdentities sets the Identities field's value. +func (s *GetIdentityMailFromDomainAttributesInput) SetIdentities(v []*string) *GetIdentityMailFromDomainAttributesInput { + s.Identities = v + return s +} + // Represents the custom MAIL FROM attributes for a list of identities. type GetIdentityMailFromDomainAttributesOutput struct { _ struct{} `type:"structure"` @@ -4237,6 +5703,12 @@ func (s GetIdentityMailFromDomainAttributesOutput) GoString() string { return s.String() } +// SetMailFromDomainAttributes sets the MailFromDomainAttributes field's value. +func (s *GetIdentityMailFromDomainAttributesOutput) SetMailFromDomainAttributes(v map[string]*IdentityMailFromDomainAttributes) *GetIdentityMailFromDomainAttributesOutput { + s.MailFromDomainAttributes = v + return s +} + // Represents a request to return the notification attributes for a list of // identities you verified with Amazon SES. For information about Amazon SES // notifications, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). @@ -4274,6 +5746,12 @@ func (s *GetIdentityNotificationAttributesInput) Validate() error { return nil } +// SetIdentities sets the Identities field's value. +func (s *GetIdentityNotificationAttributesInput) SetIdentities(v []*string) *GetIdentityNotificationAttributesInput { + s.Identities = v + return s +} + // Represents the notification attributes for a list of identities. type GetIdentityNotificationAttributesOutput struct { _ struct{} `type:"structure"` @@ -4294,6 +5772,12 @@ func (s GetIdentityNotificationAttributesOutput) GoString() string { return s.String() } +// SetNotificationAttributes sets the NotificationAttributes field's value. +func (s *GetIdentityNotificationAttributesOutput) SetNotificationAttributes(v map[string]*IdentityNotificationAttributes) *GetIdentityNotificationAttributesOutput { + s.NotificationAttributes = v + return s +} + // Represents a request to return the requested sending authorization policies // for an identity. Sending authorization is an Amazon SES feature that enables // you to authorize other senders to use your identities. For information, see @@ -4344,6 +5828,18 @@ func (s *GetIdentityPoliciesInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *GetIdentityPoliciesInput) SetIdentity(v string) *GetIdentityPoliciesInput { + s.Identity = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *GetIdentityPoliciesInput) SetPolicyNames(v []*string) *GetIdentityPoliciesInput { + s.PolicyNames = v + return s +} + // Represents the requested sending authorization policies. type GetIdentityPoliciesOutput struct { _ struct{} `type:"structure"` @@ -4364,6 +5860,12 @@ func (s GetIdentityPoliciesOutput) GoString() string { return s.String() } +// SetPolicies sets the Policies field's value. +func (s *GetIdentityPoliciesOutput) SetPolicies(v map[string]*string) *GetIdentityPoliciesOutput { + s.Policies = v + return s +} + // Represents a request to return the Amazon SES verification status of a list // of identities. For domain identities, this request also returns the verification // token. For information about verifying identities with Amazon SES, see the @@ -4400,6 +5902,12 @@ func (s *GetIdentityVerificationAttributesInput) Validate() error { return nil } +// SetIdentities sets the Identities field's value. +func (s *GetIdentityVerificationAttributesInput) SetIdentities(v []*string) *GetIdentityVerificationAttributesInput { + s.Identities = v + return s +} + // The Amazon SES verification status of a list of identities. For domain identities, // this response also contains the verification token. type GetIdentityVerificationAttributesOutput struct { @@ -4421,6 +5929,12 @@ func (s GetIdentityVerificationAttributesOutput) GoString() string { return s.String() } +// SetVerificationAttributes sets the VerificationAttributes field's value. +func (s *GetIdentityVerificationAttributesOutput) SetVerificationAttributes(v map[string]*IdentityVerificationAttributes) *GetIdentityVerificationAttributesOutput { + s.VerificationAttributes = v + return s +} + type GetSendQuotaInput struct { _ struct{} `type:"structure"` } @@ -4447,8 +5961,8 @@ type GetSendQuotaOutput struct { // The maximum number of emails that Amazon SES can accept from the user's account // per second. // - // The rate at which Amazon SES accepts the user's messages might be less - // than the maximum send rate. + // The rate at which Amazon SES accepts the user's messages might be less than + // the maximum send rate. MaxSendRate *float64 `type:"double"` // The number of emails sent during the previous 24 hours. @@ -4465,6 +5979,24 @@ func (s GetSendQuotaOutput) GoString() string { return s.String() } +// SetMax24HourSend sets the Max24HourSend field's value. +func (s *GetSendQuotaOutput) SetMax24HourSend(v float64) *GetSendQuotaOutput { + s.Max24HourSend = &v + return s +} + +// SetMaxSendRate sets the MaxSendRate field's value. +func (s *GetSendQuotaOutput) SetMaxSendRate(v float64) *GetSendQuotaOutput { + s.MaxSendRate = &v + return s +} + +// SetSentLast24Hours sets the SentLast24Hours field's value. +func (s *GetSendQuotaOutput) SetSentLast24Hours(v float64) *GetSendQuotaOutput { + s.SentLast24Hours = &v + return s +} + type GetSendStatisticsInput struct { _ struct{} `type:"structure"` } @@ -4498,11 +6030,18 @@ func (s GetSendStatisticsOutput) GoString() string { return s.String() } +// SetSendDataPoints sets the SendDataPoints field's value. +func (s *GetSendStatisticsOutput) SetSendDataPoints(v []*SendDataPoint) *GetSendStatisticsOutput { + s.SendDataPoints = v + return s +} + // Represents the DKIM attributes of a verified email address or a domain. type IdentityDkimAttributes struct { _ struct{} `type:"structure"` // True if DKIM signing is enabled for email sent from the identity; false otherwise. + // The default value is true. // // DkimEnabled is a required field DkimEnabled *bool `type:"boolean" required:"true"` @@ -4537,6 +6076,24 @@ func (s IdentityDkimAttributes) GoString() string { return s.String() } +// SetDkimEnabled sets the DkimEnabled field's value. +func (s *IdentityDkimAttributes) SetDkimEnabled(v bool) *IdentityDkimAttributes { + s.DkimEnabled = &v + return s +} + +// SetDkimTokens sets the DkimTokens field's value. +func (s *IdentityDkimAttributes) SetDkimTokens(v []*string) *IdentityDkimAttributes { + s.DkimTokens = v + return s +} + +// SetDkimVerificationStatus sets the DkimVerificationStatus field's value. +func (s *IdentityDkimAttributes) SetDkimVerificationStatus(v string) *IdentityDkimAttributes { + s.DkimVerificationStatus = &v + return s +} + // Represents the custom MAIL FROM domain attributes of a verified identity // (email address or domain). type IdentityMailFromDomainAttributes struct { @@ -4580,6 +6137,24 @@ func (s IdentityMailFromDomainAttributes) GoString() string { return s.String() } +// SetBehaviorOnMXFailure sets the BehaviorOnMXFailure field's value. +func (s *IdentityMailFromDomainAttributes) SetBehaviorOnMXFailure(v string) *IdentityMailFromDomainAttributes { + s.BehaviorOnMXFailure = &v + return s +} + +// SetMailFromDomain sets the MailFromDomain field's value. +func (s *IdentityMailFromDomainAttributes) SetMailFromDomain(v string) *IdentityMailFromDomainAttributes { + s.MailFromDomain = &v + return s +} + +// SetMailFromDomainStatus sets the MailFromDomainStatus field's value. +func (s *IdentityMailFromDomainAttributes) SetMailFromDomainStatus(v string) *IdentityMailFromDomainAttributes { + s.MailFromDomainStatus = &v + return s +} + // Represents the notification attributes of an identity, including whether // an identity has Amazon Simple Notification Service (Amazon SNS) topics set // for bounce, complaint, and/or delivery notifications, and whether feedback @@ -4642,6 +6217,48 @@ func (s IdentityNotificationAttributes) GoString() string { return s.String() } +// SetBounceTopic sets the BounceTopic field's value. +func (s *IdentityNotificationAttributes) SetBounceTopic(v string) *IdentityNotificationAttributes { + s.BounceTopic = &v + return s +} + +// SetComplaintTopic sets the ComplaintTopic field's value. +func (s *IdentityNotificationAttributes) SetComplaintTopic(v string) *IdentityNotificationAttributes { + s.ComplaintTopic = &v + return s +} + +// SetDeliveryTopic sets the DeliveryTopic field's value. +func (s *IdentityNotificationAttributes) SetDeliveryTopic(v string) *IdentityNotificationAttributes { + s.DeliveryTopic = &v + return s +} + +// SetForwardingEnabled sets the ForwardingEnabled field's value. +func (s *IdentityNotificationAttributes) SetForwardingEnabled(v bool) *IdentityNotificationAttributes { + s.ForwardingEnabled = &v + return s +} + +// SetHeadersInBounceNotificationsEnabled sets the HeadersInBounceNotificationsEnabled field's value. +func (s *IdentityNotificationAttributes) SetHeadersInBounceNotificationsEnabled(v bool) *IdentityNotificationAttributes { + s.HeadersInBounceNotificationsEnabled = &v + return s +} + +// SetHeadersInComplaintNotificationsEnabled sets the HeadersInComplaintNotificationsEnabled field's value. +func (s *IdentityNotificationAttributes) SetHeadersInComplaintNotificationsEnabled(v bool) *IdentityNotificationAttributes { + s.HeadersInComplaintNotificationsEnabled = &v + return s +} + +// SetHeadersInDeliveryNotificationsEnabled sets the HeadersInDeliveryNotificationsEnabled field's value. +func (s *IdentityNotificationAttributes) SetHeadersInDeliveryNotificationsEnabled(v bool) *IdentityNotificationAttributes { + s.HeadersInDeliveryNotificationsEnabled = &v + return s +} + // Represents the verification attributes of a single identity. type IdentityVerificationAttributes struct { _ struct{} `type:"structure"` @@ -4666,6 +6283,79 @@ func (s IdentityVerificationAttributes) GoString() string { return s.String() } +// SetVerificationStatus sets the VerificationStatus field's value. +func (s *IdentityVerificationAttributes) SetVerificationStatus(v string) *IdentityVerificationAttributes { + s.VerificationStatus = &v + return s +} + +// SetVerificationToken sets the VerificationToken field's value. +func (s *IdentityVerificationAttributes) SetVerificationToken(v string) *IdentityVerificationAttributes { + s.VerificationToken = &v + return s +} + +// Contains the delivery stream ARN and the IAM role ARN associated with an +// Amazon Kinesis Firehose event destination. +// +// Event destinations, such as Amazon Kinesis Firehose, are associated with +// configuration sets, which enable you to publish email sending events. For +// information about using configuration sets, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type KinesisFirehoseDestination struct { + _ struct{} `type:"structure"` + + // The ARN of the Amazon Kinesis Firehose stream to which to publish email sending + // events. + // + // DeliveryStreamARN is a required field + DeliveryStreamARN *string `type:"string" required:"true"` + + // The ARN of the IAM role under which Amazon SES publishes email sending events + // to the Amazon Kinesis Firehose stream. + // + // IAMRoleARN is a required field + IAMRoleARN *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisFirehoseDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisFirehoseDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisFirehoseDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseDestination"} + if s.DeliveryStreamARN == nil { + invalidParams.Add(request.NewErrParamRequired("DeliveryStreamARN")) + } + if s.IAMRoleARN == nil { + invalidParams.Add(request.NewErrParamRequired("IAMRoleARN")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeliveryStreamARN sets the DeliveryStreamARN field's value. +func (s *KinesisFirehoseDestination) SetDeliveryStreamARN(v string) *KinesisFirehoseDestination { + s.DeliveryStreamARN = &v + return s +} + +// SetIAMRoleARN sets the IAMRoleARN field's value. +func (s *KinesisFirehoseDestination) SetIAMRoleARN(v string) *KinesisFirehoseDestination { + s.IAMRoleARN = &v + return s +} + // When included in a receipt rule, this action calls an AWS Lambda function // and, optionally, publishes a notification to Amazon Simple Notification Service // (Amazon SNS). @@ -4694,10 +6384,10 @@ type LambdaAction struct { // The default value is Event. For information about AWS Lambda invocation types, // see the AWS Lambda Developer Guide (http://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html). // - // There is a 30-second timeout on RequestResponse invocations. You should - // use Event invocation in most cases. Use RequestResponse only when you want - // to make a mail flow decision, such as whether to stop the receipt rule or - // the receipt rule set. + // There is a 30-second timeout on RequestResponse invocations. You should use + // Event invocation in most cases. Use RequestResponse only when you want to + // make a mail flow decision, such as whether to stop the receipt rule or the + // receipt rule set. InvocationType *string `type:"string" enum:"InvocationType"` // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the @@ -4730,6 +6420,97 @@ func (s *LambdaAction) Validate() error { return nil } +// SetFunctionArn sets the FunctionArn field's value. +func (s *LambdaAction) SetFunctionArn(v string) *LambdaAction { + s.FunctionArn = &v + return s +} + +// SetInvocationType sets the InvocationType field's value. +func (s *LambdaAction) SetInvocationType(v string) *LambdaAction { + s.InvocationType = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *LambdaAction) SetTopicArn(v string) *LambdaAction { + s.TopicArn = &v + return s +} + +// Represents a request to list the configuration sets associated with your +// AWS account. Configuration sets enable you to publish email sending events. +// For information about using configuration sets, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type ListConfigurationSetsInput struct { + _ struct{} `type:"structure"` + + // The number of configuration sets to return. + MaxItems *int64 `type:"integer"` + + // A token returned from a previous call to ListConfigurationSets to indicate + // the position of the configuration set in the configuration set list. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListConfigurationSetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConfigurationSetsInput) GoString() string { + return s.String() +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListConfigurationSetsInput) SetMaxItems(v int64) *ListConfigurationSetsInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationSetsInput) SetNextToken(v string) *ListConfigurationSetsInput { + s.NextToken = &v + return s +} + +// A list of configuration sets associated with your AWS account. Configuration +// sets enable you to publish email sending events. For information about using +// configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type ListConfigurationSetsOutput struct { + _ struct{} `type:"structure"` + + // A list of configuration sets. + ConfigurationSets []*ConfigurationSet `type:"list"` + + // A token indicating that there are additional configuration sets available + // to be listed. Pass this token to successive calls of ListConfigurationSets. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListConfigurationSetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConfigurationSetsOutput) GoString() string { + return s.String() +} + +// SetConfigurationSets sets the ConfigurationSets field's value. +func (s *ListConfigurationSetsOutput) SetConfigurationSets(v []*ConfigurationSet) *ListConfigurationSetsOutput { + s.ConfigurationSets = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationSetsOutput) SetNextToken(v string) *ListConfigurationSetsOutput { + s.NextToken = &v + return s +} + // Represents a request to return a list of all identities (email addresses // and domains) that you have attempted to verify under your AWS account, regardless // of verification status. @@ -4757,6 +6538,24 @@ func (s ListIdentitiesInput) GoString() string { return s.String() } +// SetIdentityType sets the IdentityType field's value. +func (s *ListIdentitiesInput) SetIdentityType(v string) *ListIdentitiesInput { + s.IdentityType = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListIdentitiesInput) SetMaxItems(v int64) *ListIdentitiesInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentitiesInput) SetNextToken(v string) *ListIdentitiesInput { + s.NextToken = &v + return s +} + // A list of all identities that you have attempted to verify under your AWS // account, regardless of verification status. type ListIdentitiesOutput struct { @@ -4781,6 +6580,18 @@ func (s ListIdentitiesOutput) GoString() string { return s.String() } +// SetIdentities sets the Identities field's value. +func (s *ListIdentitiesOutput) SetIdentities(v []*string) *ListIdentitiesOutput { + s.Identities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentitiesOutput) SetNextToken(v string) *ListIdentitiesOutput { + s.NextToken = &v + return s +} + // Represents a request to return a list of sending authorization policies that // are attached to an identity. Sending authorization is an Amazon SES feature // that enables you to authorize other senders to use your identities. For information, @@ -4821,6 +6632,12 @@ func (s *ListIdentityPoliciesInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *ListIdentityPoliciesInput) SetIdentity(v string) *ListIdentityPoliciesInput { + s.Identity = &v + return s +} + // A list of names of sending authorization policies that apply to an identity. type ListIdentityPoliciesOutput struct { _ struct{} `type:"structure"` @@ -4841,7 +6658,13 @@ func (s ListIdentityPoliciesOutput) GoString() string { return s.String() } -// : Represents a request to list the IP address filters that exist under your +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListIdentityPoliciesOutput) SetPolicyNames(v []*string) *ListIdentityPoliciesOutput { + s.PolicyNames = v + return s +} + +// Represents a request to list the IP address filters that exist under your // AWS account. You use IP address filters when you receive email with Amazon // SES. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). type ListReceiptFiltersInput struct { @@ -4877,6 +6700,12 @@ func (s ListReceiptFiltersOutput) GoString() string { return s.String() } +// SetFilters sets the Filters field's value. +func (s *ListReceiptFiltersOutput) SetFilters(v []*ReceiptFilter) *ListReceiptFiltersOutput { + s.Filters = v + return s +} + // Represents a request to list the receipt rule sets that exist under your // AWS account. You use receipt rule sets to receive email with Amazon SES. // For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). @@ -4898,6 +6727,12 @@ func (s ListReceiptRuleSetsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListReceiptRuleSetsInput) SetNextToken(v string) *ListReceiptRuleSetsInput { + s.NextToken = &v + return s +} + // A list of receipt rule sets that exist under your AWS account. type ListReceiptRuleSetsOutput struct { _ struct{} `type:"structure"` @@ -4922,6 +6757,18 @@ func (s ListReceiptRuleSetsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListReceiptRuleSetsOutput) SetNextToken(v string) *ListReceiptRuleSetsOutput { + s.NextToken = &v + return s +} + +// SetRuleSets sets the RuleSets field's value. +func (s *ListReceiptRuleSetsOutput) SetRuleSets(v []*ReceiptRuleSetMetadata) *ListReceiptRuleSetsOutput { + s.RuleSets = v + return s +} + type ListVerifiedEmailAddressesInput struct { _ struct{} `type:"structure"` } @@ -4955,6 +6802,12 @@ func (s ListVerifiedEmailAddressesOutput) GoString() string { return s.String() } +// SetVerifiedEmailAddresses sets the VerifiedEmailAddresses field's value. +func (s *ListVerifiedEmailAddressesOutput) SetVerifiedEmailAddresses(v []*string) *ListVerifiedEmailAddressesOutput { + s.VerifiedEmailAddresses = v + return s +} + // Represents the message to be sent, composed of a subject and a body. type Message struct { _ struct{} `type:"structure"` @@ -5007,6 +6860,18 @@ func (s *Message) Validate() error { return nil } +// SetBody sets the Body field's value. +func (s *Message) SetBody(v *Body) *Message { + s.Body = v + return s +} + +// SetSubject sets the Subject field's value. +func (s *Message) SetSubject(v *Content) *Message { + s.Subject = v + return s +} + // Message-related information to include in the Delivery Status Notification // (DSN) when an email that Amazon SES receives on your behalf bounces. // @@ -5063,6 +6928,92 @@ func (s *MessageDsn) Validate() error { return nil } +// SetArrivalDate sets the ArrivalDate field's value. +func (s *MessageDsn) SetArrivalDate(v time.Time) *MessageDsn { + s.ArrivalDate = &v + return s +} + +// SetExtensionFields sets the ExtensionFields field's value. +func (s *MessageDsn) SetExtensionFields(v []*ExtensionField) *MessageDsn { + s.ExtensionFields = v + return s +} + +// SetReportingMta sets the ReportingMta field's value. +func (s *MessageDsn) SetReportingMta(v string) *MessageDsn { + s.ReportingMta = &v + return s +} + +// Contains the name and value of a tag that you can provide to SendEmail or +// SendRawEmail to apply to an email. +// +// Message tags, which you use with configuration sets, enable you to publish +// email sending events. For information about using configuration sets, see +// the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type MessageTag struct { + _ struct{} `type:"structure"` + + // The name of the tag. The name must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 256 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The value of the tag. The value must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 256 characters. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s MessageTag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MessageTag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MessageTag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MessageTag"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *MessageTag) SetName(v string) *MessageTag { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MessageTag) SetValue(v string) *MessageTag { + s.Value = &v + return s +} + // Represents a request to add or update a sending authorization policy for // an identity. Sending authorization is an Amazon SES feature that enables // you to authorize other senders to use your identities. For information, see @@ -5081,8 +7032,8 @@ type PutIdentityPolicyInput struct { // The text of the policy in JSON format. The policy cannot exceed 4 KB. // - // For information about the syntax of sending authorization policies, see - // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html). + // For information about the syntax of sending authorization policies, see the + // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html). // // Policy is a required field Policy *string `min:"1" type:"string" required:"true"` @@ -5131,6 +7082,24 @@ func (s *PutIdentityPolicyInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *PutIdentityPolicyInput) SetIdentity(v string) *PutIdentityPolicyInput { + s.Identity = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *PutIdentityPolicyInput) SetPolicy(v string) *PutIdentityPolicyInput { + s.Policy = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutIdentityPolicyInput) SetPolicyName(v string) *PutIdentityPolicyInput { + s.PolicyName = &v + return s +} + // An empty element returned on a successful request. type PutIdentityPolicyOutput struct { _ struct{} `type:"structure"` @@ -5160,10 +7129,10 @@ type RawMessage struct { // X-headers in the raw message to specify the "Source," "From," and "Return-Path" // addresses. For more information, see the documentation for SendRawEmail. // - // Do not include these X-headers in the DKIM signature, because they are - // removed by Amazon SES before sending the email. + // Do not include these X-headers in the DKIM signature, because they are removed + // by Amazon SES before sending the email. // - // For more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html). + // For more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html). // // Data is automatically base64 encoded/decoded by the SDK. // @@ -5194,6 +7163,12 @@ func (s *RawMessage) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *RawMessage) SetData(v []byte) *RawMessage { + s.Data = v + return s +} + // An action that Amazon SES can take when it receives an email on behalf of // one or more email addresses or domains that you own. An instance of this // data type can represent only one action. @@ -5286,11 +7261,53 @@ func (s *ReceiptAction) Validate() error { return nil } +// SetAddHeaderAction sets the AddHeaderAction field's value. +func (s *ReceiptAction) SetAddHeaderAction(v *AddHeaderAction) *ReceiptAction { + s.AddHeaderAction = v + return s +} + +// SetBounceAction sets the BounceAction field's value. +func (s *ReceiptAction) SetBounceAction(v *BounceAction) *ReceiptAction { + s.BounceAction = v + return s +} + +// SetLambdaAction sets the LambdaAction field's value. +func (s *ReceiptAction) SetLambdaAction(v *LambdaAction) *ReceiptAction { + s.LambdaAction = v + return s +} + +// SetS3Action sets the S3Action field's value. +func (s *ReceiptAction) SetS3Action(v *S3Action) *ReceiptAction { + s.S3Action = v + return s +} + +// SetSNSAction sets the SNSAction field's value. +func (s *ReceiptAction) SetSNSAction(v *SNSAction) *ReceiptAction { + s.SNSAction = v + return s +} + +// SetStopAction sets the StopAction field's value. +func (s *ReceiptAction) SetStopAction(v *StopAction) *ReceiptAction { + s.StopAction = v + return s +} + +// SetWorkmailAction sets the WorkmailAction field's value. +func (s *ReceiptAction) SetWorkmailAction(v *WorkmailAction) *ReceiptAction { + s.WorkmailAction = v + return s +} + // A receipt IP address filter enables you to specify whether to accept or reject // mail originating from an IP address or range of IP addresses. // -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). +// For information about setting up IP address filters, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). type ReceiptFilter struct { _ struct{} `type:"structure"` @@ -5302,12 +7319,12 @@ type ReceiptFilter struct { // The name of the IP address filter. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. // // Name is a required field Name *string `type:"string" required:"true"` @@ -5344,11 +7361,23 @@ func (s *ReceiptFilter) Validate() error { return nil } +// SetIpFilter sets the IpFilter field's value. +func (s *ReceiptFilter) SetIpFilter(v *ReceiptIpFilter) *ReceiptFilter { + s.IpFilter = v + return s +} + +// SetName sets the Name field's value. +func (s *ReceiptFilter) SetName(v string) *ReceiptFilter { + s.Name = &v + return s +} + // A receipt IP address filter enables you to specify whether to accept or reject // mail originating from an IP address or range of IP addresses. // -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). +// For information about setting up IP address filters, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). type ReceiptIpFilter struct { _ struct{} `type:"structure"` @@ -5392,6 +7421,18 @@ func (s *ReceiptIpFilter) Validate() error { return nil } +// SetCidr sets the Cidr field's value. +func (s *ReceiptIpFilter) SetCidr(v string) *ReceiptIpFilter { + s.Cidr = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *ReceiptIpFilter) SetPolicy(v string) *ReceiptIpFilter { + s.Policy = &v + return s +} + // Receipt rules enable you to specify which actions Amazon SES should take // when it receives mail on behalf of one or more email addresses or domains // that you own. @@ -5415,12 +7456,12 @@ type ReceiptRule struct { // The name of the receipt rule. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. // // Name is a required field Name *string `type:"string" required:"true"` @@ -5474,6 +7515,42 @@ func (s *ReceiptRule) Validate() error { return nil } +// SetActions sets the Actions field's value. +func (s *ReceiptRule) SetActions(v []*ReceiptAction) *ReceiptRule { + s.Actions = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *ReceiptRule) SetEnabled(v bool) *ReceiptRule { + s.Enabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *ReceiptRule) SetName(v string) *ReceiptRule { + s.Name = &v + return s +} + +// SetRecipients sets the Recipients field's value. +func (s *ReceiptRule) SetRecipients(v []*string) *ReceiptRule { + s.Recipients = v + return s +} + +// SetScanEnabled sets the ScanEnabled field's value. +func (s *ReceiptRule) SetScanEnabled(v bool) *ReceiptRule { + s.ScanEnabled = &v + return s +} + +// SetTlsPolicy sets the TlsPolicy field's value. +func (s *ReceiptRule) SetTlsPolicy(v string) *ReceiptRule { + s.TlsPolicy = &v + return s +} + // Information about a receipt rule set. // // A receipt rule set is a collection of rules that specify what Amazon SES @@ -5489,12 +7566,12 @@ type ReceiptRuleSetMetadata struct { // The name of the receipt rule set. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. Name *string `type:"string"` } @@ -5508,6 +7585,18 @@ func (s ReceiptRuleSetMetadata) GoString() string { return s.String() } +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ReceiptRuleSetMetadata) SetCreatedTimestamp(v time.Time) *ReceiptRuleSetMetadata { + s.CreatedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *ReceiptRuleSetMetadata) SetName(v string) *ReceiptRuleSetMetadata { + s.Name = &v + return s +} + // Recipient-related information to include in the Delivery Status Notification // (DSN) when an email that Amazon SES receives on your behalf bounces. // @@ -5537,7 +7626,7 @@ type RecipientDsnFields struct { // Either FinalRecipient or the recipient in BouncedRecipientInfo must be a // recipient of the original bounced message. // - // Do not prepend the FinalRecipient email address with rfc 822;, as described + // Do not prepend the FinalRecipient email address with rfc 822;, as described // in RFC 3798 (https://tools.ietf.org/html/rfc3798). FinalRecipient *string `type:"string"` @@ -5594,6 +7683,48 @@ func (s *RecipientDsnFields) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *RecipientDsnFields) SetAction(v string) *RecipientDsnFields { + s.Action = &v + return s +} + +// SetDiagnosticCode sets the DiagnosticCode field's value. +func (s *RecipientDsnFields) SetDiagnosticCode(v string) *RecipientDsnFields { + s.DiagnosticCode = &v + return s +} + +// SetExtensionFields sets the ExtensionFields field's value. +func (s *RecipientDsnFields) SetExtensionFields(v []*ExtensionField) *RecipientDsnFields { + s.ExtensionFields = v + return s +} + +// SetFinalRecipient sets the FinalRecipient field's value. +func (s *RecipientDsnFields) SetFinalRecipient(v string) *RecipientDsnFields { + s.FinalRecipient = &v + return s +} + +// SetLastAttemptDate sets the LastAttemptDate field's value. +func (s *RecipientDsnFields) SetLastAttemptDate(v time.Time) *RecipientDsnFields { + s.LastAttemptDate = &v + return s +} + +// SetRemoteMta sets the RemoteMta field's value. +func (s *RecipientDsnFields) SetRemoteMta(v string) *RecipientDsnFields { + s.RemoteMta = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RecipientDsnFields) SetStatus(v string) *RecipientDsnFields { + s.Status = &v + return s +} + // Represents a request to reorder the receipt rules within a receipt rule set. // You use receipt rule sets to receive email with Amazon SES. For more information, // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). @@ -5638,6 +7769,18 @@ func (s *ReorderReceiptRuleSetInput) Validate() error { return nil } +// SetRuleNames sets the RuleNames field's value. +func (s *ReorderReceiptRuleSetInput) SetRuleNames(v []*string) *ReorderReceiptRuleSetInput { + s.RuleNames = v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *ReorderReceiptRuleSetInput) SetRuleSetName(v string) *ReorderReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type ReorderReceiptRuleSetOutput struct { _ struct{} `type:"structure"` @@ -5662,10 +7805,10 @@ func (s ReorderReceiptRuleSetOutput) GoString() string { // account, Amazon SES must have permission to access those resources. For information // about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// When you save your emails to an Amazon S3 bucket, the maximum email size +// When you save your emails to an Amazon S3 bucket, the maximum email size // (including headers) is 30 MB. Emails larger than that will bounce. // -// For information about specifying Amazon S3 actions in receipt rules, see +// For information about specifying Amazon S3 actions in receipt rules, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-s3.html). type S3Action struct { _ struct{} `type:"structure"` @@ -5679,23 +7822,23 @@ type S3Action struct { // before saving them to the Amazon S3 bucket. You can use the default master // key or a custom master key you created in AWS KMS as follows: // - // To use the default master key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. - // For example, if your AWS account ID is 123456789012 and you want to use the - // default master key in the US West (Oregon) region, the ARN of the default - // master key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. If - // you use the default master key, you don't need to perform any extra steps - // to give Amazon SES permission to use the key. + // * To use the default master key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. + // For example, if your AWS account ID is 123456789012 and you want to use + // the default master key in the US West (Oregon) region, the ARN of the + // default master key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. + // If you use the default master key, you don't need to perform any extra + // steps to give Amazon SES permission to use the key. // - // To use a custom master key you created in AWS KMS, provide the ARN of - // the master key and ensure that you add a statement to your key's policy to - // give Amazon SES permission to use it. For more information about giving permissions, - // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). + // * To use a custom master key you created in AWS KMS, provide the ARN of + // the master key and ensure that you add a statement to your key's policy + // to give Amazon SES permission to use it. For more information about giving + // permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // - // For more information about key policies, see the AWS KMS Developer Guide + // For more information about key policies, see the AWS KMS Developer Guide // (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html). If // you do not specify a master key, Amazon SES will not encrypt your emails. // - // Your mail is encrypted by Amazon SES using the Amazon S3 encryption client + // Your mail is encrypted by Amazon SES using the Amazon S3 encryption client // before the mail is submitted to Amazon S3 for storage. It is not encrypted // using Amazon S3 server-side encryption. This means that you must use the // Amazon S3 encryption client to decrypt the email after retrieving it from @@ -5741,6 +7884,30 @@ func (s *S3Action) Validate() error { return nil } +// SetBucketName sets the BucketName field's value. +func (s *S3Action) SetBucketName(v string) *S3Action { + s.BucketName = &v + return s +} + +// SetKmsKeyArn sets the KmsKeyArn field's value. +func (s *S3Action) SetKmsKeyArn(v string) *S3Action { + s.KmsKeyArn = &v + return s +} + +// SetObjectKeyPrefix sets the ObjectKeyPrefix field's value. +func (s *S3Action) SetObjectKeyPrefix(v string) *S3Action { + s.ObjectKeyPrefix = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *S3Action) SetTopicArn(v string) *S3Action { + s.TopicArn = &v + return s +} + // When included in a receipt rule, this action publishes a notification to // Amazon Simple Notification Service (Amazon SNS). This action includes a complete // copy of the email content in the Amazon SNS notifications. Amazon SNS notifications @@ -5753,11 +7920,11 @@ func (s *S3Action) Validate() error { // to access it. For information about giving permissions, see the Amazon SES // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// You can only publish emails that are 150 KB or less (including the header) +// You can only publish emails that are 150 KB or less (including the header) // to Amazon SNS. Larger emails will bounce. If you anticipate emails larger // than 150 KB, use the S3 action instead. // -// For information about using a receipt rule to publish an Amazon SNS notification, +// For information about using a receipt rule to publish an Amazon SNS notification, // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-sns.html). type SNSAction struct { _ struct{} `type:"structure"` @@ -5800,6 +7967,18 @@ func (s *SNSAction) Validate() error { return nil } +// SetEncoding sets the Encoding field's value. +func (s *SNSAction) SetEncoding(v string) *SNSAction { + s.Encoding = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *SNSAction) SetTopicArn(v string) *SNSAction { + s.TopicArn = &v + return s +} + // Represents a request to send a bounce message to the sender of an email you // received through Amazon SES. type SendBounceInput struct { @@ -5883,6 +8062,42 @@ func (s *SendBounceInput) Validate() error { return nil } +// SetBounceSender sets the BounceSender field's value. +func (s *SendBounceInput) SetBounceSender(v string) *SendBounceInput { + s.BounceSender = &v + return s +} + +// SetBounceSenderArn sets the BounceSenderArn field's value. +func (s *SendBounceInput) SetBounceSenderArn(v string) *SendBounceInput { + s.BounceSenderArn = &v + return s +} + +// SetBouncedRecipientInfoList sets the BouncedRecipientInfoList field's value. +func (s *SendBounceInput) SetBouncedRecipientInfoList(v []*BouncedRecipientInfo) *SendBounceInput { + s.BouncedRecipientInfoList = v + return s +} + +// SetExplanation sets the Explanation field's value. +func (s *SendBounceInput) SetExplanation(v string) *SendBounceInput { + s.Explanation = &v + return s +} + +// SetMessageDsn sets the MessageDsn field's value. +func (s *SendBounceInput) SetMessageDsn(v *MessageDsn) *SendBounceInput { + s.MessageDsn = v + return s +} + +// SetOriginalMessageId sets the OriginalMessageId field's value. +func (s *SendBounceInput) SetOriginalMessageId(v string) *SendBounceInput { + s.OriginalMessageId = &v + return s +} + // Represents a unique message ID. type SendBounceOutput struct { _ struct{} `type:"structure"` @@ -5901,6 +8116,12 @@ func (s SendBounceOutput) GoString() string { return s.String() } +// SetMessageId sets the MessageId field's value. +func (s *SendBounceOutput) SetMessageId(v string) *SendBounceOutput { + s.MessageId = &v + return s +} + // Represents sending statistics data. Each SendDataPoint contains statistics // for a 15-minute period of sending activity. type SendDataPoint struct { @@ -5912,7 +8133,7 @@ type SendDataPoint struct { // Number of unwanted emails that were rejected by recipients. Complaints *int64 `type:"long"` - // Number of emails that have been enqueued for sending. + // Number of emails that have been sent. DeliveryAttempts *int64 `type:"long"` // Number of emails rejected by Amazon SES. @@ -5932,11 +8153,44 @@ func (s SendDataPoint) GoString() string { return s.String() } +// SetBounces sets the Bounces field's value. +func (s *SendDataPoint) SetBounces(v int64) *SendDataPoint { + s.Bounces = &v + return s +} + +// SetComplaints sets the Complaints field's value. +func (s *SendDataPoint) SetComplaints(v int64) *SendDataPoint { + s.Complaints = &v + return s +} + +// SetDeliveryAttempts sets the DeliveryAttempts field's value. +func (s *SendDataPoint) SetDeliveryAttempts(v int64) *SendDataPoint { + s.DeliveryAttempts = &v + return s +} + +// SetRejects sets the Rejects field's value. +func (s *SendDataPoint) SetRejects(v int64) *SendDataPoint { + s.Rejects = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *SendDataPoint) SetTimestamp(v time.Time) *SendDataPoint { + s.Timestamp = &v + return s +} + // Represents a request to send a single formatted email using Amazon SES. For // more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-formatted.html). type SendEmailInput struct { _ struct{} `type:"structure"` + // The name of the configuration set to use when you send an email using SendEmail. + ConfigurationSetName *string `type:"string"` + // The destination for this email, composed of To:, CC:, and BCC: fields. // // Destination is a required field @@ -5978,12 +8232,12 @@ type SendEmailInput struct { // with Amazon SES. For information about verifying identities, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). // - // If you are sending on behalf of another user and have been permitted to - // do so by a sending authorization policy, then you must also specify the SourceArn + // If you are sending on behalf of another user and have been permitted to do + // so by a sending authorization policy, then you must also specify the SourceArn // parameter. For more information about sending authorization, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // - // In all cases, the email address must be 7-bit ASCII. If the text must contain + // In all cases, the email address must be 7-bit ASCII. If the text must contain // any other characters, then you must use MIME encoded-word syntax (RFC 2047) // instead of a literal string. MIME encoded-word syntax uses the following // form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047 @@ -6004,6 +8258,11 @@ type SendEmailInput struct { // For more information about sending authorization, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). SourceArn *string `type:"string"` + + // A list of tags, in the form of name/value pairs, to apply to an email that + // you send using SendEmail. Tags correspond to characteristics of the email + // that you define, so that you can publish email sending events. + Tags []*MessageTag `type:"list"` } // String returns the string representation @@ -6033,6 +8292,16 @@ func (s *SendEmailInput) Validate() error { invalidParams.AddNested("Message", err.(request.ErrInvalidParams)) } } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -6040,6 +8309,60 @@ func (s *SendEmailInput) Validate() error { return nil } +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *SendEmailInput) SetConfigurationSetName(v string) *SendEmailInput { + s.ConfigurationSetName = &v + return s +} + +// SetDestination sets the Destination field's value. +func (s *SendEmailInput) SetDestination(v *Destination) *SendEmailInput { + s.Destination = v + return s +} + +// SetMessage sets the Message field's value. +func (s *SendEmailInput) SetMessage(v *Message) *SendEmailInput { + s.Message = v + return s +} + +// SetReplyToAddresses sets the ReplyToAddresses field's value. +func (s *SendEmailInput) SetReplyToAddresses(v []*string) *SendEmailInput { + s.ReplyToAddresses = v + return s +} + +// SetReturnPath sets the ReturnPath field's value. +func (s *SendEmailInput) SetReturnPath(v string) *SendEmailInput { + s.ReturnPath = &v + return s +} + +// SetReturnPathArn sets the ReturnPathArn field's value. +func (s *SendEmailInput) SetReturnPathArn(v string) *SendEmailInput { + s.ReturnPathArn = &v + return s +} + +// SetSource sets the Source field's value. +func (s *SendEmailInput) SetSource(v string) *SendEmailInput { + s.Source = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *SendEmailInput) SetSourceArn(v string) *SendEmailInput { + s.SourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SendEmailInput) SetTags(v []*MessageTag) *SendEmailInput { + s.Tags = v + return s +} + // Represents a unique message ID. type SendEmailOutput struct { _ struct{} `type:"structure"` @@ -6060,11 +8383,20 @@ func (s SendEmailOutput) GoString() string { return s.String() } +// SetMessageId sets the MessageId field's value. +func (s *SendEmailOutput) SetMessageId(v string) *SendEmailOutput { + s.MessageId = &v + return s +} + // Represents a request to send a single raw email using Amazon SES. For more // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html). type SendRawEmailInput struct { _ struct{} `type:"structure"` + // The name of the configuration set to use when you send an email using SendRawEmail. + ConfigurationSetName *string `type:"string"` + // A list of destinations for the message, consisting of To:, CC:, and BCC: // addresses. Destinations []*string `type:"list"` @@ -6077,22 +8409,22 @@ type SendRawEmailInput struct { // in the raw message of the email. If you use both the FromArn parameter and // the corresponding X-header, Amazon SES uses the value of the FromArn parameter. // - // For information about when to use this parameter, see the description of + // For information about when to use this parameter, see the description of // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html). FromArn *string `type:"string"` // The raw text of the message. The client is responsible for ensuring the following: // - // Message must contain a header and a body, separated by a blank line. + // * Message must contain a header and a body, separated by a blank line. // - // All required header fields must be present. + // * All required header fields must be present. // - // Each part of a multipart MIME message must be formatted properly. + // * Each part of a multipart MIME message must be formatted properly. // - // MIME content types must be among those supported by Amazon SES. For more - // information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html). + // * MIME content types must be among those supported by Amazon SES. For + // more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html). // - // Must be base64-encoded. + // * Must be base64-encoded. // // RawMessage is a required field RawMessage *RawMessage `type:"structure" required:"true"` @@ -6111,7 +8443,7 @@ type SendRawEmailInput struct { // and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn // parameter. // - // For information about when to use this parameter, see the description of + // For information about when to use this parameter, see the description of // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html). ReturnPathArn *string `type:"string"` @@ -6119,12 +8451,12 @@ type SendRawEmailInput struct { // you must specify a "From" address in the raw text of the message. (You can // also specify both.) // - // By default, the string must be 7-bit ASCII. If the text must contain any + // By default, the string must be 7-bit ASCII. If the text must contain any // other characters, then you must use MIME encoded-word syntax (RFC 2047) instead // of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. // For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047). // - // If you specify the Source parameter and have feedback forwarding enabled, + // If you specify the Source parameter and have feedback forwarding enabled, // then bounces and complaints will be sent to this email address. This takes // precedence over any Return-Path header that you might include in the raw // text of the message. @@ -6144,9 +8476,14 @@ type SendRawEmailInput struct { // and the corresponding X-header, Amazon SES uses the value of the SourceArn // parameter. // - // For information about when to use this parameter, see the description of + // For information about when to use this parameter, see the description of // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html). SourceArn *string `type:"string"` + + // A list of tags, in the form of name/value pairs, to apply to an email that + // you send using SendRawEmail. Tags correspond to characteristics of the email + // that you define, so that you can publish email sending events. + Tags []*MessageTag `type:"list"` } // String returns the string representation @@ -6170,6 +8507,16 @@ func (s *SendRawEmailInput) Validate() error { invalidParams.AddNested("RawMessage", err.(request.ErrInvalidParams)) } } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -6177,6 +8524,54 @@ func (s *SendRawEmailInput) Validate() error { return nil } +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *SendRawEmailInput) SetConfigurationSetName(v string) *SendRawEmailInput { + s.ConfigurationSetName = &v + return s +} + +// SetDestinations sets the Destinations field's value. +func (s *SendRawEmailInput) SetDestinations(v []*string) *SendRawEmailInput { + s.Destinations = v + return s +} + +// SetFromArn sets the FromArn field's value. +func (s *SendRawEmailInput) SetFromArn(v string) *SendRawEmailInput { + s.FromArn = &v + return s +} + +// SetRawMessage sets the RawMessage field's value. +func (s *SendRawEmailInput) SetRawMessage(v *RawMessage) *SendRawEmailInput { + s.RawMessage = v + return s +} + +// SetReturnPathArn sets the ReturnPathArn field's value. +func (s *SendRawEmailInput) SetReturnPathArn(v string) *SendRawEmailInput { + s.ReturnPathArn = &v + return s +} + +// SetSource sets the Source field's value. +func (s *SendRawEmailInput) SetSource(v string) *SendRawEmailInput { + s.Source = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *SendRawEmailInput) SetSourceArn(v string) *SendRawEmailInput { + s.SourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SendRawEmailInput) SetTags(v []*MessageTag) *SendRawEmailInput { + s.Tags = v + return s +} + // Represents a unique message ID. type SendRawEmailOutput struct { _ struct{} `type:"structure"` @@ -6197,6 +8592,12 @@ func (s SendRawEmailOutput) GoString() string { return s.String() } +// SetMessageId sets the MessageId field's value. +func (s *SendRawEmailOutput) SetMessageId(v string) *SendRawEmailOutput { + s.MessageId = &v + return s +} + // Represents a request to set a receipt rule set as the active receipt rule // set. You use receipt rule sets to receive email with Amazon SES. For more // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). @@ -6218,6 +8619,12 @@ func (s SetActiveReceiptRuleSetInput) GoString() string { return s.String() } +// SetRuleSetName sets the RuleSetName field's value. +func (s *SetActiveReceiptRuleSetInput) SetRuleSetName(v string) *SetActiveReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type SetActiveReceiptRuleSetOutput struct { _ struct{} `type:"structure"` @@ -6277,6 +8684,18 @@ func (s *SetIdentityDkimEnabledInput) Validate() error { return nil } +// SetDkimEnabled sets the DkimEnabled field's value. +func (s *SetIdentityDkimEnabledInput) SetDkimEnabled(v bool) *SetIdentityDkimEnabledInput { + s.DkimEnabled = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *SetIdentityDkimEnabledInput) SetIdentity(v string) *SetIdentityDkimEnabledInput { + s.Identity = &v + return s +} + // An empty element returned on a successful request. type SetIdentityDkimEnabledOutput struct { _ struct{} `type:"structure"` @@ -6341,6 +8760,18 @@ func (s *SetIdentityFeedbackForwardingEnabledInput) Validate() error { return nil } +// SetForwardingEnabled sets the ForwardingEnabled field's value. +func (s *SetIdentityFeedbackForwardingEnabledInput) SetForwardingEnabled(v bool) *SetIdentityFeedbackForwardingEnabledInput { + s.ForwardingEnabled = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *SetIdentityFeedbackForwardingEnabledInput) SetIdentity(v string) *SetIdentityFeedbackForwardingEnabledInput { + s.Identity = &v + return s +} + // An empty element returned on a successful request. type SetIdentityFeedbackForwardingEnabledOutput struct { _ struct{} `type:"structure"` @@ -6414,6 +8845,24 @@ func (s *SetIdentityHeadersInNotificationsEnabledInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *SetIdentityHeadersInNotificationsEnabledInput) SetEnabled(v bool) *SetIdentityHeadersInNotificationsEnabledInput { + s.Enabled = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *SetIdentityHeadersInNotificationsEnabledInput) SetIdentity(v string) *SetIdentityHeadersInNotificationsEnabledInput { + s.Identity = &v + return s +} + +// SetNotificationType sets the NotificationType field's value. +func (s *SetIdentityHeadersInNotificationsEnabledInput) SetNotificationType(v string) *SetIdentityHeadersInNotificationsEnabledInput { + s.NotificationType = &v + return s +} + // An empty element returned on a successful request. type SetIdentityHeadersInNotificationsEnabledOutput struct { _ struct{} `type:"structure"` @@ -6484,6 +8933,24 @@ func (s *SetIdentityMailFromDomainInput) Validate() error { return nil } +// SetBehaviorOnMXFailure sets the BehaviorOnMXFailure field's value. +func (s *SetIdentityMailFromDomainInput) SetBehaviorOnMXFailure(v string) *SetIdentityMailFromDomainInput { + s.BehaviorOnMXFailure = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *SetIdentityMailFromDomainInput) SetIdentity(v string) *SetIdentityMailFromDomainInput { + s.Identity = &v + return s +} + +// SetMailFromDomain sets the MailFromDomain field's value. +func (s *SetIdentityMailFromDomainInput) SetMailFromDomain(v string) *SetIdentityMailFromDomainInput { + s.MailFromDomain = &v + return s +} + // An empty element returned on a successful request. type SetIdentityMailFromDomainOutput struct { _ struct{} `type:"structure"` @@ -6551,6 +9018,24 @@ func (s *SetIdentityNotificationTopicInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *SetIdentityNotificationTopicInput) SetIdentity(v string) *SetIdentityNotificationTopicInput { + s.Identity = &v + return s +} + +// SetNotificationType sets the NotificationType field's value. +func (s *SetIdentityNotificationTopicInput) SetNotificationType(v string) *SetIdentityNotificationTopicInput { + s.NotificationType = &v + return s +} + +// SetSnsTopic sets the SnsTopic field's value. +func (s *SetIdentityNotificationTopicInput) SetSnsTopic(v string) *SetIdentityNotificationTopicInput { + s.SnsTopic = &v + return s +} + // An empty element returned on a successful request. type SetIdentityNotificationTopicOutput struct { _ struct{} `type:"structure"` @@ -6612,6 +9097,24 @@ func (s *SetReceiptRulePositionInput) Validate() error { return nil } +// SetAfter sets the After field's value. +func (s *SetReceiptRulePositionInput) SetAfter(v string) *SetReceiptRulePositionInput { + s.After = &v + return s +} + +// SetRuleName sets the RuleName field's value. +func (s *SetReceiptRulePositionInput) SetRuleName(v string) *SetReceiptRulePositionInput { + s.RuleName = &v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *SetReceiptRulePositionInput) SetRuleSetName(v string) *SetReceiptRulePositionInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type SetReceiptRulePositionOutput struct { _ struct{} `type:"structure"` @@ -6671,6 +9174,94 @@ func (s *StopAction) Validate() error { return nil } +// SetScope sets the Scope field's value. +func (s *StopAction) SetScope(v string) *StopAction { + s.Scope = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *StopAction) SetTopicArn(v string) *StopAction { + s.TopicArn = &v + return s +} + +// Represents a request to update the event destination of a configuration set. +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +type UpdateConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to update. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` + + // The event destination object that you want to apply to the specified configuration + // set. + // + // EventDestination is a required field + EventDestination *EventDestination `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateConfigurationSetEventDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConfigurationSetEventDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateConfigurationSetEventDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationSetEventDestinationInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.EventDestination == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestination")) + } + if s.EventDestination != nil { + if err := s.EventDestination.Validate(); err != nil { + invalidParams.AddNested("EventDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *UpdateConfigurationSetEventDestinationInput) SetConfigurationSetName(v string) *UpdateConfigurationSetEventDestinationInput { + s.ConfigurationSetName = &v + return s +} + +// SetEventDestination sets the EventDestination field's value. +func (s *UpdateConfigurationSetEventDestinationInput) SetEventDestination(v *EventDestination) *UpdateConfigurationSetEventDestinationInput { + s.EventDestination = v + return s +} + +// An empty element returned on a successful request. +type UpdateConfigurationSetEventDestinationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateConfigurationSetEventDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConfigurationSetEventDestinationOutput) GoString() string { + return s.String() +} + // Represents a request to update a receipt rule. You use receipt rules to receive // email with Amazon SES. For more information, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). @@ -6719,6 +9310,18 @@ func (s *UpdateReceiptRuleInput) Validate() error { return nil } +// SetRule sets the Rule field's value. +func (s *UpdateReceiptRuleInput) SetRule(v *ReceiptRule) *UpdateReceiptRuleInput { + s.Rule = v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *UpdateReceiptRuleInput) SetRuleSetName(v string) *UpdateReceiptRuleInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. type UpdateReceiptRuleOutput struct { _ struct{} `type:"structure"` @@ -6769,6 +9372,12 @@ func (s *VerifyDomainDkimInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *VerifyDomainDkimInput) SetDomain(v string) *VerifyDomainDkimInput { + s.Domain = &v + return s +} + // Returns CNAME records that you must publish to the DNS server of your domain // to set up Easy DKIM with Amazon SES. type VerifyDomainDkimOutput struct { @@ -6800,6 +9409,12 @@ func (s VerifyDomainDkimOutput) GoString() string { return s.String() } +// SetDkimTokens sets the DkimTokens field's value. +func (s *VerifyDomainDkimOutput) SetDkimTokens(v []*string) *VerifyDomainDkimOutput { + s.DkimTokens = v + return s +} + // Represents a request to begin Amazon SES domain verification and to generate // the TXT records that you must publish to the DNS server of your domain to // complete the verification. For information about domain verification, see @@ -6836,6 +9451,12 @@ func (s *VerifyDomainIdentityInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *VerifyDomainIdentityInput) SetDomain(v string) *VerifyDomainIdentityInput { + s.Domain = &v + return s +} + // Returns a TXT record that you must publish to the DNS server of your domain // to complete domain verification with Amazon SES. type VerifyDomainIdentityOutput struct { @@ -6858,6 +9479,12 @@ func (s VerifyDomainIdentityOutput) GoString() string { return s.String() } +// SetVerificationToken sets the VerificationToken field's value. +func (s *VerifyDomainIdentityOutput) SetVerificationToken(v string) *VerifyDomainIdentityOutput { + s.VerificationToken = &v + return s +} + // Represents a request to begin email address verification with Amazon SES. // For information about email address verification, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html). @@ -6893,6 +9520,12 @@ func (s *VerifyEmailAddressInput) Validate() error { return nil } +// SetEmailAddress sets the EmailAddress field's value. +func (s *VerifyEmailAddressInput) SetEmailAddress(v string) *VerifyEmailAddressInput { + s.EmailAddress = &v + return s +} + type VerifyEmailAddressOutput struct { _ struct{} `type:"structure"` } @@ -6942,6 +9575,12 @@ func (s *VerifyEmailIdentityInput) Validate() error { return nil } +// SetEmailAddress sets the EmailAddress field's value. +func (s *VerifyEmailIdentityInput) SetEmailAddress(v string) *VerifyEmailIdentityInput { + s.EmailAddress = &v + return s +} + // An empty element returned on a successful request. type VerifyEmailIdentityOutput struct { _ struct{} `type:"structure"` @@ -7005,6 +9644,18 @@ func (s *WorkmailAction) Validate() error { return nil } +// SetOrganizationArn sets the OrganizationArn field's value. +func (s *WorkmailAction) SetOrganizationArn(v string) *WorkmailAction { + s.OrganizationArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *WorkmailAction) SetTopicArn(v string) *WorkmailAction { + s.TopicArn = &v + return s +} + const ( // BehaviorOnMXFailureUseDefaultValue is a BehaviorOnMXFailure enum value BehaviorOnMXFailureUseDefaultValue = "UseDefaultValue" @@ -7033,6 +9684,11 @@ const ( BounceTypeTemporaryFailure = "TemporaryFailure" ) +const ( + // ConfigurationSetAttributeEventDestinations is a ConfigurationSetAttribute enum value + ConfigurationSetAttributeEventDestinations = "eventDestinations" +) + const ( // CustomMailFromStatusPending is a CustomMailFromStatus enum value CustomMailFromStatusPending = "Pending" @@ -7047,6 +9703,14 @@ const ( CustomMailFromStatusTemporaryFailure = "TemporaryFailure" ) +const ( + // DimensionValueSourceMessageTag is a DimensionValueSource enum value + DimensionValueSourceMessageTag = "messageTag" + + // DimensionValueSourceEmailHeader is a DimensionValueSource enum value + DimensionValueSourceEmailHeader = "emailHeader" +) + const ( // DsnActionFailed is a DsnAction enum value DsnActionFailed = "failed" @@ -7064,6 +9728,23 @@ const ( DsnActionExpanded = "expanded" ) +const ( + // EventTypeSend is a EventType enum value + EventTypeSend = "send" + + // EventTypeReject is a EventType enum value + EventTypeReject = "reject" + + // EventTypeBounce is a EventType enum value + EventTypeBounce = "bounce" + + // EventTypeComplaint is a EventType enum value + EventTypeComplaint = "complaint" + + // EventTypeDelivery is a EventType enum value + EventTypeDelivery = "delivery" +) + const ( // IdentityTypeEmailAddress is a IdentityType enum value IdentityTypeEmailAddress = "EmailAddress" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/service.go b/vendor/github.com/aws/aws-sdk-go/service/ses/service.go index 2952ac131..3b32e9e6e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/service.go @@ -15,7 +15,7 @@ import ( // documentation is intended to be used in conjunction with the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/Welcome.html). // -// For a list of Amazon SES endpoints to use in service requests, see Regions +// For a list of Amazon SES endpoints to use in service requests, see Regions // and Amazon SES (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html) // in the Amazon SES Developer Guide. //The service client's operations are safe to be used concurrently. diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go index 59524fe6f..2080f4c9a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go @@ -63,16 +63,16 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu // round trips and latencies. This enables Amazon SimpleDB to optimize requests, // which generally yields better throughput. // -// If you specify BatchDeleteAttributes without attributes or values, all -// the attributes for the item are deleted. +// If you specify BatchDeleteAttributes without attributes or values, all the +// attributes for the item are deleted. // // BatchDeleteAttributes is an idempotent operation; running it multiple times // on the same item or attribute doesn't result in an error. // -// The BatchDeleteAttributes operation succeeds or fails in its entirety. -// There are no partial deletes. You can execute multiple BatchDeleteAttributes -// operations and other operations in parallel. However, large numbers of concurrent -// BatchDeleteAttributes calls can result in Service Unavailable (503) responses. +// The BatchDeleteAttributes operation succeeds or fails in its entirety. There +// are no partial deletes. You can execute multiple BatchDeleteAttributes operations +// and other operations in parallel. However, large numbers of concurrent BatchDeleteAttributes +// calls can result in Service Unavailable (503) responses. // // This operation is vulnerable to exceeding the maximum URL size when making // a REST request using the HTTP GET method. @@ -80,8 +80,9 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu // This operation does not support conditions using Expected.X.Name, Expected.X.Value, // or Expected.X.Exists. // -// The following limitations are enforced for this operation: 1 MB request -// size 25 item limit per BatchDeleteAttributes operation +// The following limitations are enforced for this operation: 1 MB request size +// +// 25 item limit per BatchDeleteAttributes operation // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -148,7 +149,7 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re // latencies, enabling Amazon SimpleDB to optimize requests and generally produce // better throughput. // -// The client may specify the item name with the Item.X.ItemName parameter. +// The client may specify the item name with the Item.X.ItemName parameter. // The client may specify new attributes using a combination of the Item.X.Attribute.Y.Name // and Item.X.Attribute.Y.Value parameters. The client may specify the first // attribute for the first item using the parameters Item.0.Attribute.0.Name @@ -156,13 +157,13 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re // item by the parameters Item.0.Attribute.1.Name and Item.0.Attribute.1.Value, // and so on. // -// Attributes are uniquely identified within an item by their name/value combination. +// Attributes are uniquely identified within an item by their name/value combination. // For example, a single item can have the attributes { "first_name", "first_value" // } and { "first_name", "second_value" }. However, it cannot have two attribute // instances where both the Item.X.Attribute.Y.Name and Item.X.Attribute.Y.Value // are the same. // -// Optionally, the requester can supply the Replace parameter for each individual +// Optionally, the requester can supply the Replace parameter for each individual // value. Setting this value to true will cause the new attribute values to // replace the existing attribute values. For example, if an item I has the // attributes { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requester does @@ -170,19 +171,21 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re // true, the final attributes of the item will be { 'a', '1' } and { 'b', '4' // }, replacing the previous values of the 'b' attribute with the new value. // -// You cannot specify an empty string as an item or as an attribute name. -// The BatchPutAttributes operation succeeds or fails in its entirety. There -// are no partial puts. This operation is vulnerable to exceeding the maximum -// URL size when making a REST request using the HTTP GET method. This operation -// does not support conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists. -// You can execute multiple BatchPutAttributes operations and other operations +// You cannot specify an empty string as an item or as an attribute name. The +// BatchPutAttributes operation succeeds or fails in its entirety. There are +// no partial puts. This operation is vulnerable to exceeding the maximum URL size when making +// a REST request using the HTTP GET method. This operation does not support +// conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists. +// You can execute multiple BatchPutAttributes operations and other operations // in parallel. However, large numbers of concurrent BatchPutAttributes calls // can result in Service Unavailable (503) responses. // -// The following limitations are enforced for this operation: 256 attribute -// name-value pairs per item 1 MB request size 1 billion attributes per domain -// 10 GB of total user data storage per domain 25 item limit per BatchPutAttributes -// operation +// The following limitations are enforced for this operation: 256 attribute +// name-value pairs per item +// 1 MB request size +// 1 billion attributes per domain +// 10 GB of total user data storage per domain +// 25 item limit per BatchPutAttributes operation // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -276,11 +279,10 @@ func (c *SimpleDB) CreateDomainRequest(input *CreateDomainInput) (req *request.R // unique among the domains associated with the Access Key ID provided in the // request. The CreateDomain operation may take 10 or more seconds to complete. // -// CreateDomain is an idempotent operation; running it multiple times using -// the same domain name will not result in an error response. The client can -// create up to 100 domains per account. +// CreateDomain is an idempotent operation; running it multiple times using +// the same domain name will not result in an error response. The client can create up to 100 domains per account. // -// If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/ +// If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/ // (http://aws.amazon.com/contact-us/simpledb-limit-request/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -356,13 +358,12 @@ func (c *SimpleDB) DeleteAttributesRequest(input *DeleteAttributesInput) (req *r // Deletes one or more attributes associated with an item. If all attributes // of the item are deleted, the item is deleted. // -// If DeleteAttributes is called without being passed any attributes or values -// specified, all the attributes for the item are deleted. DeleteAttributes -// is an idempotent operation; running it multiple times on the same item or -// attribute does not result in an error response. +// If DeleteAttributes is called without being passed any attributes or values +// specified, all the attributes for the item are deleted. DeleteAttributes is an idempotent operation; running it multiple times on +// the same item or attribute does not result in an error response. // -// Because Amazon SimpleDB makes multiple copies of item data and uses an -// eventual consistency update model, performing a GetAttributes or Select operation +// Because Amazon SimpleDB makes multiple copies of item data and uses an eventual +// consistency update model, performing a GetAttributes or Select operation // (read) immediately after a DeleteAttributes or PutAttributes operation (write) // might not return updated item data. // @@ -443,7 +444,7 @@ func (c *SimpleDB) DeleteDomainRequest(input *DeleteDomainInput) (req *request.R // in the domain are deleted as well. The DeleteDomain operation might take // 10 or more seconds to complete. // -// Running DeleteDomain on a domain that does not exist or running the function +// Running DeleteDomain on a domain that does not exist or running the function // multiple times using the same domain name will not result in an error response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -581,11 +582,11 @@ func (c *SimpleDB) GetAttributesRequest(input *GetAttributesInput) (req *request // the attributes returned can be limited to one or more attributes by specifying // an attribute name parameter. // -// If the item does not exist on the replica that was accessed for this operation, +// If the item does not exist on the replica that was accessed for this operation, // an empty set is returned. The system does not return an error as it cannot // guarantee the item does not exist on other replicas. // -// If GetAttributes is called without being passed any attribute names, all +// If GetAttributes is called without being passed any attribute names, all // the attributes for the item are returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -767,12 +768,12 @@ func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request // by the parameters Attribute.0.Name and Attribute.0.Value, the second attribute // by the parameters Attribute.1.Name and Attribute.1.Value, and so on. // -// Attributes are uniquely identified in an item by their name/value combination. +// Attributes are uniquely identified in an item by their name/value combination. // For example, a single item can have the attributes { "first_name", "first_value" // } and { "first_name", second_value" }. However, it cannot have two attribute // instances where both the Attribute.X.Name and Attribute.X.Value are the same. // -// Optionally, the requestor can supply the Replace parameter for each individual +// Optionally, the requestor can supply the Replace parameter for each individual // attribute. Setting this value to true causes the new attribute value to replace // the existing attribute value(s). For example, if an item has the attributes // { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requestor calls PutAttributes @@ -780,18 +781,18 @@ func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request // the final attributes of the item are changed to { 'a', '1' } and { 'b', '4' // }, which replaces the previous values of the 'b' attribute with the new value. // -// Using PutAttributes to replace attribute values that do not exist will -// not result in an error response. You cannot specify an empty string as -// an attribute name. +// Using PutAttributes to replace attribute values that do not exist will not +// result in an error response. You cannot specify an empty string as an attribute name. // -// Because Amazon SimpleDB makes multiple copies of client data and uses an +// Because Amazon SimpleDB makes multiple copies of client data and uses an // eventual consistency update model, an immediate GetAttributes or Select operation // (read) immediately after a PutAttributes or DeleteAttributes operation (write) // might not return the updated data. // -// The following limitations are enforced for this operation: 256 total attribute -// name-value pairs per item One billion attributes per domain 10 GB of total -// user data storage per domain +// The following limitations are enforced for this operation: 256 total attribute +// name-value pairs per item +// One billion attributes per domain +// 10 GB of total user data storage per domain // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -882,13 +883,13 @@ func (c *SimpleDB) SelectRequest(input *SelectInput) (req *request.Request, outp // The Select operation returns a set of attributes for ItemNames that match // the select expression. Select is similar to the standard SQL SELECT statement. // -// The total size of the response cannot exceed 1 MB in total size. Amazon -// SimpleDB automatically adjusts the number of items returned per page to enforce -// this limit. For example, if the client asks to retrieve 2500 items, but each -// individual item is 10 kB in size, the system returns 100 items and an appropriate -// NextToken so the client can access the next page of results. +// The total size of the response cannot exceed 1 MB in total size. Amazon SimpleDB +// automatically adjusts the number of items returned per page to enforce this +// limit. For example, if the client asks to retrieve 2500 items, but each individual +// item is 10 kB in size, the system returns 100 items and an appropriate NextToken +// so the client can access the next page of results. // -// For information on how to construct select expressions, see Using Select +// For information on how to construct select expressions, see Using Select // to Create Amazon SimpleDB Queries in the Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -986,6 +987,30 @@ func (s Attribute) GoString() string { return s.String() } +// SetAlternateNameEncoding sets the AlternateNameEncoding field's value. +func (s *Attribute) SetAlternateNameEncoding(v string) *Attribute { + s.AlternateNameEncoding = &v + return s +} + +// SetAlternateValueEncoding sets the AlternateValueEncoding field's value. +func (s *Attribute) SetAlternateValueEncoding(v string) *Attribute { + s.AlternateValueEncoding = &v + return s +} + +// SetName sets the Name field's value. +func (s *Attribute) SetName(v string) *Attribute { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Attribute) SetValue(v string) *Attribute { + s.Value = &v + return s +} + type BatchDeleteAttributesInput struct { _ struct{} `type:"structure"` @@ -1036,6 +1061,18 @@ func (s *BatchDeleteAttributesInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *BatchDeleteAttributesInput) SetDomainName(v string) *BatchDeleteAttributesInput { + s.DomainName = &v + return s +} + +// SetItems sets the Items field's value. +func (s *BatchDeleteAttributesInput) SetItems(v []*DeletableItem) *BatchDeleteAttributesInput { + s.Items = v + return s +} + type BatchDeleteAttributesOutput struct { _ struct{} `type:"structure"` } @@ -1100,6 +1137,18 @@ func (s *BatchPutAttributesInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *BatchPutAttributesInput) SetDomainName(v string) *BatchPutAttributesInput { + s.DomainName = &v + return s +} + +// SetItems sets the Items field's value. +func (s *BatchPutAttributesInput) SetItems(v []*ReplaceableItem) *BatchPutAttributesInput { + s.Items = v + return s +} + type BatchPutAttributesOutput struct { _ struct{} `type:"structure"` } @@ -1147,6 +1196,12 @@ func (s *CreateDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput { + s.DomainName = &v + return s +} + type CreateDomainOutput struct { _ struct{} `type:"structure"` } @@ -1196,6 +1251,18 @@ func (s *DeletableAttribute) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeletableAttribute) SetName(v string) *DeletableAttribute { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DeletableAttribute) SetValue(v string) *DeletableAttribute { + s.Value = &v + return s +} + type DeletableItem struct { _ struct{} `type:"structure"` @@ -1238,6 +1305,18 @@ func (s *DeletableItem) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *DeletableItem) SetAttributes(v []*DeletableAttribute) *DeletableItem { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *DeletableItem) SetName(v string) *DeletableItem { + s.Name = &v + return s +} + type DeleteAttributesInput struct { _ struct{} `type:"structure"` @@ -1298,6 +1377,30 @@ func (s *DeleteAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *DeleteAttributesInput) SetAttributes(v []*DeletableAttribute) *DeleteAttributesInput { + s.Attributes = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DeleteAttributesInput) SetDomainName(v string) *DeleteAttributesInput { + s.DomainName = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *DeleteAttributesInput) SetExpected(v *UpdateCondition) *DeleteAttributesInput { + s.Expected = v + return s +} + +// SetItemName sets the ItemName field's value. +func (s *DeleteAttributesInput) SetItemName(v string) *DeleteAttributesInput { + s.ItemName = &v + return s +} + type DeleteAttributesOutput struct { _ struct{} `type:"structure"` } @@ -1344,6 +1447,12 @@ func (s *DeleteDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteDomainInput) SetDomainName(v string) *DeleteDomainInput { + s.DomainName = &v + return s +} + type DeleteDomainOutput struct { _ struct{} `type:"structure"` } @@ -1390,6 +1499,12 @@ func (s *DomainMetadataInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DomainMetadataInput) SetDomainName(v string) *DomainMetadataInput { + s.DomainName = &v + return s +} + type DomainMetadataOutput struct { _ struct{} `type:"structure"` @@ -1425,6 +1540,48 @@ func (s DomainMetadataOutput) GoString() string { return s.String() } +// SetAttributeNameCount sets the AttributeNameCount field's value. +func (s *DomainMetadataOutput) SetAttributeNameCount(v int64) *DomainMetadataOutput { + s.AttributeNameCount = &v + return s +} + +// SetAttributeNamesSizeBytes sets the AttributeNamesSizeBytes field's value. +func (s *DomainMetadataOutput) SetAttributeNamesSizeBytes(v int64) *DomainMetadataOutput { + s.AttributeNamesSizeBytes = &v + return s +} + +// SetAttributeValueCount sets the AttributeValueCount field's value. +func (s *DomainMetadataOutput) SetAttributeValueCount(v int64) *DomainMetadataOutput { + s.AttributeValueCount = &v + return s +} + +// SetAttributeValuesSizeBytes sets the AttributeValuesSizeBytes field's value. +func (s *DomainMetadataOutput) SetAttributeValuesSizeBytes(v int64) *DomainMetadataOutput { + s.AttributeValuesSizeBytes = &v + return s +} + +// SetItemCount sets the ItemCount field's value. +func (s *DomainMetadataOutput) SetItemCount(v int64) *DomainMetadataOutput { + s.ItemCount = &v + return s +} + +// SetItemNamesSizeBytes sets the ItemNamesSizeBytes field's value. +func (s *DomainMetadataOutput) SetItemNamesSizeBytes(v int64) *DomainMetadataOutput { + s.ItemNamesSizeBytes = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *DomainMetadataOutput) SetTimestamp(v int64) *DomainMetadataOutput { + s.Timestamp = &v + return s +} + type GetAttributesInput struct { _ struct{} `type:"structure"` @@ -1432,9 +1589,7 @@ type GetAttributesInput struct { AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` // Determines whether or not strong consistency should be enforced when data - // is read from SimpleDB. If true, any data previously written to SimpleDB will - // be returned. Otherwise, results will be consistent eventually, and the client - // may not see data that was written immediately before your read. + // is read from SimpleDB. If true ConsistentRead *bool `type:"boolean"` // The name of the domain in which to perform the operation. @@ -1474,6 +1629,30 @@ func (s *GetAttributesInput) Validate() error { return nil } +// SetAttributeNames sets the AttributeNames field's value. +func (s *GetAttributesInput) SetAttributeNames(v []*string) *GetAttributesInput { + s.AttributeNames = v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *GetAttributesInput) SetConsistentRead(v bool) *GetAttributesInput { + s.ConsistentRead = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *GetAttributesInput) SetDomainName(v string) *GetAttributesInput { + s.DomainName = &v + return s +} + +// SetItemName sets the ItemName field's value. +func (s *GetAttributesInput) SetItemName(v string) *GetAttributesInput { + s.ItemName = &v + return s +} + type GetAttributesOutput struct { _ struct{} `type:"structure"` @@ -1491,6 +1670,12 @@ func (s GetAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetAttributesOutput) SetAttributes(v []*Attribute) *GetAttributesOutput { + s.Attributes = v + return s +} + type Item struct { _ struct{} `type:"structure"` @@ -1517,6 +1702,24 @@ func (s Item) GoString() string { return s.String() } +// SetAlternateNameEncoding sets the AlternateNameEncoding field's value. +func (s *Item) SetAlternateNameEncoding(v string) *Item { + s.AlternateNameEncoding = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *Item) SetAttributes(v []*Attribute) *Item { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *Item) SetName(v string) *Item { + s.Name = &v + return s +} + type ListDomainsInput struct { _ struct{} `type:"structure"` @@ -1539,6 +1742,18 @@ func (s ListDomainsInput) GoString() string { return s.String() } +// SetMaxNumberOfDomains sets the MaxNumberOfDomains field's value. +func (s *ListDomainsInput) SetMaxNumberOfDomains(v int64) *ListDomainsInput { + s.MaxNumberOfDomains = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDomainsInput) SetNextToken(v string) *ListDomainsInput { + s.NextToken = &v + return s +} + type ListDomainsOutput struct { _ struct{} `type:"structure"` @@ -1546,7 +1761,7 @@ type ListDomainsOutput struct { DomainNames []*string `locationNameList:"DomainName" type:"list" flattened:"true"` // An opaque token indicating that there are more domains than the specified - // MaxNumberOfDomains still available. + // MaxNumberOfDomains NextToken *string `type:"string"` } @@ -1560,6 +1775,18 @@ func (s ListDomainsOutput) GoString() string { return s.String() } +// SetDomainNames sets the DomainNames field's value. +func (s *ListDomainsOutput) SetDomainNames(v []*string) *ListDomainsOutput { + s.DomainNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDomainsOutput) SetNextToken(v string) *ListDomainsOutput { + s.NextToken = &v + return s +} + type PutAttributesInput struct { _ struct{} `type:"structure"` @@ -1623,6 +1850,30 @@ func (s *PutAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *PutAttributesInput) SetAttributes(v []*ReplaceableAttribute) *PutAttributesInput { + s.Attributes = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *PutAttributesInput) SetDomainName(v string) *PutAttributesInput { + s.DomainName = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *PutAttributesInput) SetExpected(v *UpdateCondition) *PutAttributesInput { + s.Expected = v + return s +} + +// SetItemName sets the ItemName field's value. +func (s *PutAttributesInput) SetItemName(v string) *PutAttributesInput { + s.ItemName = &v + return s +} + type PutAttributesOutput struct { _ struct{} `type:"structure"` } @@ -1646,7 +1897,7 @@ type ReplaceableAttribute struct { Name *string `type:"string" required:"true"` // A flag specifying whether or not to replace the attribute/value pair or to - // add a new attribute/value pair. The default setting is false. + // add a new attribute/value pair. The default setting is false Replace *bool `type:"boolean"` // The value of the replaceable attribute. @@ -1681,6 +1932,24 @@ func (s *ReplaceableAttribute) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *ReplaceableAttribute) SetName(v string) *ReplaceableAttribute { + s.Name = &v + return s +} + +// SetReplace sets the Replace field's value. +func (s *ReplaceableAttribute) SetReplace(v bool) *ReplaceableAttribute { + s.Replace = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ReplaceableAttribute) SetValue(v string) *ReplaceableAttribute { + s.Value = &v + return s +} + type ReplaceableItem struct { _ struct{} `type:"structure"` @@ -1731,16 +2000,26 @@ func (s *ReplaceableItem) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *ReplaceableItem) SetAttributes(v []*ReplaceableAttribute) *ReplaceableItem { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *ReplaceableItem) SetName(v string) *ReplaceableItem { + s.Name = &v + return s +} + type SelectInput struct { _ struct{} `type:"structure"` // Determines whether or not strong consistency should be enforced when data - // is read from SimpleDB. If true, any data previously written to SimpleDB will - // be returned. Otherwise, results will be consistent eventually, and the client - // may not see data that was written immediately before your read. + // is read from SimpleDB. If true ConsistentRead *bool `type:"boolean"` - // A string informing Amazon SimpleDB where to start the next list of ItemNames. + // A string informing Amazon SimpleDB where to start the next list of ItemNames NextToken *string `type:"string"` // The expression used to query the domain. @@ -1772,14 +2051,31 @@ func (s *SelectInput) Validate() error { return nil } +// SetConsistentRead sets the ConsistentRead field's value. +func (s *SelectInput) SetConsistentRead(v bool) *SelectInput { + s.ConsistentRead = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SelectInput) SetNextToken(v string) *SelectInput { + s.NextToken = &v + return s +} + +// SetSelectExpression sets the SelectExpression field's value. +func (s *SelectInput) SetSelectExpression(v string) *SelectInput { + s.SelectExpression = &v + return s +} + type SelectOutput struct { _ struct{} `type:"structure"` // A list of items that match the select expression. Items []*Item `locationNameList:"Item" type:"list" flattened:"true"` - // An opaque token indicating that more items than MaxNumberOfItems were matched, - // the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds. + // An opaque token indicating that more items than MaxNumberOfItems NextToken *string `type:"string"` } @@ -1793,6 +2089,18 @@ func (s SelectOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *SelectOutput) SetItems(v []*Item) *SelectOutput { + s.Items = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SelectOutput) SetNextToken(v string) *SelectOutput { + s.NextToken = &v + return s +} + // Specifies the conditions under which data should be updated. If an update // condition is specified for a request, the data will only be updated if the // condition is satisfied. For example, if an attribute with a specific name @@ -1824,3 +2132,21 @@ func (s UpdateCondition) String() string { func (s UpdateCondition) GoString() string { return s.String() } + +// SetExists sets the Exists field's value. +func (s *UpdateCondition) SetExists(v bool) *UpdateCondition { + s.Exists = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateCondition) SetName(v string) *UpdateCondition { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *UpdateCondition) SetValue(v string) *UpdateCondition { + s.Value = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go index 196047620..0b7c48f8b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go @@ -25,8 +25,8 @@ import ( // functionality within Amazon's proven computing environment, are able to scale // instantly, and pay only for what they use. // -// Visit http://aws.amazon.com/simpledb/ (http://aws.amazon.com/simpledb/) -// for more information. +// Visit http://aws.amazon.com/simpledb/ (http://aws.amazon.com/simpledb/) for +// more information. //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type SimpleDB struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/api.go b/vendor/github.com/aws/aws-sdk-go/service/sns/api.go index 8b2592f1b..7f75ab7bf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/api.go @@ -2572,6 +2572,30 @@ func (s *AddPermissionInput) Validate() error { return nil } +// SetAWSAccountId sets the AWSAccountId field's value. +func (s *AddPermissionInput) SetAWSAccountId(v []*string) *AddPermissionInput { + s.AWSAccountId = v + return s +} + +// SetActionName sets the ActionName field's value. +func (s *AddPermissionInput) SetActionName(v []*string) *AddPermissionInput { + s.ActionName = v + return s +} + +// SetLabel sets the Label field's value. +func (s *AddPermissionInput) SetLabel(v string) *AddPermissionInput { + s.Label = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *AddPermissionInput) SetTopicArn(v string) *AddPermissionInput { + s.TopicArn = &v + return s +} + type AddPermissionOutput struct { _ struct{} `type:"structure"` } @@ -2619,17 +2643,23 @@ func (s *CheckIfPhoneNumberIsOptedOutInput) Validate() error { return nil } +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *CheckIfPhoneNumberIsOptedOutInput) SetPhoneNumber(v string) *CheckIfPhoneNumberIsOptedOutInput { + s.PhoneNumber = &v + return s +} + // The response from the CheckIfPhoneNumberIsOptedOut action. type CheckIfPhoneNumberIsOptedOutOutput struct { _ struct{} `type:"structure"` // Indicates whether the phone number is opted out: // - // true – The phone number is opted out, meaning you cannot publish SMS - // messages to it. + // * true – The phone number is opted out, meaning you cannot publish SMS + // messages to it. // - // false – The phone number is opted in, meaning you can publish SMS messages - // to it. + // * false – The phone number is opted in, meaning you can publish SMS messages + // to it. IsOptedOut *bool `locationName:"isOptedOut" type:"boolean"` } @@ -2643,6 +2673,12 @@ func (s CheckIfPhoneNumberIsOptedOutOutput) GoString() string { return s.String() } +// SetIsOptedOut sets the IsOptedOut field's value. +func (s *CheckIfPhoneNumberIsOptedOutOutput) SetIsOptedOut(v bool) *CheckIfPhoneNumberIsOptedOutOutput { + s.IsOptedOut = &v + return s +} + // Input for ConfirmSubscription action. type ConfirmSubscriptionInput struct { _ struct{} `type:"structure"` @@ -2690,6 +2726,24 @@ func (s *ConfirmSubscriptionInput) Validate() error { return nil } +// SetAuthenticateOnUnsubscribe sets the AuthenticateOnUnsubscribe field's value. +func (s *ConfirmSubscriptionInput) SetAuthenticateOnUnsubscribe(v string) *ConfirmSubscriptionInput { + s.AuthenticateOnUnsubscribe = &v + return s +} + +// SetToken sets the Token field's value. +func (s *ConfirmSubscriptionInput) SetToken(v string) *ConfirmSubscriptionInput { + s.Token = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *ConfirmSubscriptionInput) SetTopicArn(v string) *ConfirmSubscriptionInput { + s.TopicArn = &v + return s +} + // Response for ConfirmSubscriptions action. type ConfirmSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -2708,6 +2762,12 @@ func (s ConfirmSubscriptionOutput) GoString() string { return s.String() } +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *ConfirmSubscriptionOutput) SetSubscriptionArn(v string) *ConfirmSubscriptionOutput { + s.SubscriptionArn = &v + return s +} + // Input for CreatePlatformApplication action. type CreatePlatformApplicationInput struct { _ struct{} `type:"structure"` @@ -2760,6 +2820,24 @@ func (s *CreatePlatformApplicationInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *CreatePlatformApplicationInput) SetAttributes(v map[string]*string) *CreatePlatformApplicationInput { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePlatformApplicationInput) SetName(v string) *CreatePlatformApplicationInput { + s.Name = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *CreatePlatformApplicationInput) SetPlatform(v string) *CreatePlatformApplicationInput { + s.Platform = &v + return s +} + // Response from CreatePlatformApplication action. type CreatePlatformApplicationOutput struct { _ struct{} `type:"structure"` @@ -2778,6 +2856,12 @@ func (s CreatePlatformApplicationOutput) GoString() string { return s.String() } +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *CreatePlatformApplicationOutput) SetPlatformApplicationArn(v string) *CreatePlatformApplicationOutput { + s.PlatformApplicationArn = &v + return s +} + // Input for CreatePlatformEndpoint action. type CreatePlatformEndpointInput struct { _ struct{} `type:"structure"` @@ -2831,6 +2915,30 @@ func (s *CreatePlatformEndpointInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *CreatePlatformEndpointInput) SetAttributes(v map[string]*string) *CreatePlatformEndpointInput { + s.Attributes = v + return s +} + +// SetCustomUserData sets the CustomUserData field's value. +func (s *CreatePlatformEndpointInput) SetCustomUserData(v string) *CreatePlatformEndpointInput { + s.CustomUserData = &v + return s +} + +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *CreatePlatformEndpointInput) SetPlatformApplicationArn(v string) *CreatePlatformEndpointInput { + s.PlatformApplicationArn = &v + return s +} + +// SetToken sets the Token field's value. +func (s *CreatePlatformEndpointInput) SetToken(v string) *CreatePlatformEndpointInput { + s.Token = &v + return s +} + // Response from CreateEndpoint action. type CreatePlatformEndpointOutput struct { _ struct{} `type:"structure"` @@ -2849,6 +2957,12 @@ func (s CreatePlatformEndpointOutput) GoString() string { return s.String() } +// SetEndpointArn sets the EndpointArn field's value. +func (s *CreatePlatformEndpointOutput) SetEndpointArn(v string) *CreatePlatformEndpointOutput { + s.EndpointArn = &v + return s +} + // Input for CreateTopic action. type CreateTopicInput struct { _ struct{} `type:"structure"` @@ -2886,6 +3000,12 @@ func (s *CreateTopicInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *CreateTopicInput) SetName(v string) *CreateTopicInput { + s.Name = &v + return s +} + // Response from CreateTopic action. type CreateTopicOutput struct { _ struct{} `type:"structure"` @@ -2904,6 +3024,12 @@ func (s CreateTopicOutput) GoString() string { return s.String() } +// SetTopicArn sets the TopicArn field's value. +func (s *CreateTopicOutput) SetTopicArn(v string) *CreateTopicOutput { + s.TopicArn = &v + return s +} + // Input for DeleteEndpoint action. type DeleteEndpointInput struct { _ struct{} `type:"structure"` @@ -2937,6 +3063,12 @@ func (s *DeleteEndpointInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *DeleteEndpointInput) SetEndpointArn(v string) *DeleteEndpointInput { + s.EndpointArn = &v + return s +} + type DeleteEndpointOutput struct { _ struct{} `type:"structure"` } @@ -2984,6 +3116,12 @@ func (s *DeletePlatformApplicationInput) Validate() error { return nil } +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *DeletePlatformApplicationInput) SetPlatformApplicationArn(v string) *DeletePlatformApplicationInput { + s.PlatformApplicationArn = &v + return s +} + type DeletePlatformApplicationOutput struct { _ struct{} `type:"structure"` } @@ -3030,6 +3168,12 @@ func (s *DeleteTopicInput) Validate() error { return nil } +// SetTopicArn sets the TopicArn field's value. +func (s *DeleteTopicInput) SetTopicArn(v string) *DeleteTopicInput { + s.TopicArn = &v + return s +} + type DeleteTopicOutput struct { _ struct{} `type:"structure"` } @@ -3065,6 +3209,18 @@ func (s Endpoint) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *Endpoint) SetAttributes(v map[string]*string) *Endpoint { + s.Attributes = v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *Endpoint) SetEndpointArn(v string) *Endpoint { + s.EndpointArn = &v + return s +} + // Input for GetEndpointAttributes action. type GetEndpointAttributesInput struct { _ struct{} `type:"structure"` @@ -3098,24 +3254,30 @@ func (s *GetEndpointAttributesInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *GetEndpointAttributesInput) SetEndpointArn(v string) *GetEndpointAttributesInput { + s.EndpointArn = &v + return s +} + // Response from GetEndpointAttributes of the EndpointArn. type GetEndpointAttributesOutput struct { _ struct{} `type:"structure"` // Attributes include the following: // - // CustomUserData -- arbitrary user data to associate with the endpoint. - // Amazon SNS does not use this data. The data must be in UTF-8 format and less - // than 2KB. + // * CustomUserData -- arbitrary user data to associate with the endpoint. + // Amazon SNS does not use this data. The data must be in UTF-8 format and + // less than 2KB. // - // Enabled -- flag that enables/disables delivery to the endpoint. Amazon - // SNS will set this to false when a notification service indicates to Amazon - // SNS that the endpoint is invalid. Users can set it back to true, typically - // after updating Token. + // * Enabled -- flag that enables/disables delivery to the endpoint. Amazon + // SNS will set this to false when a notification service indicates to Amazon + // SNS that the endpoint is invalid. Users can set it back to true, typically + // after updating Token. // - // Token -- device token, also referred to as a registration id, for an - // app and mobile device. This is returned from the notification service when - // an app and mobile device are registered with the notification service. + // * Token -- device token, also referred to as a registration id, for an + // app and mobile device. This is returned from the notification service + // when an app and mobile device are registered with the notification service. Attributes map[string]*string `type:"map"` } @@ -3129,6 +3291,12 @@ func (s GetEndpointAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetEndpointAttributesOutput) SetAttributes(v map[string]*string) *GetEndpointAttributesOutput { + s.Attributes = v + return s +} + // Input for GetPlatformApplicationAttributes action. type GetPlatformApplicationAttributesInput struct { _ struct{} `type:"structure"` @@ -3162,24 +3330,30 @@ func (s *GetPlatformApplicationAttributesInput) Validate() error { return nil } +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *GetPlatformApplicationAttributesInput) SetPlatformApplicationArn(v string) *GetPlatformApplicationAttributesInput { + s.PlatformApplicationArn = &v + return s +} + // Response for GetPlatformApplicationAttributes action. type GetPlatformApplicationAttributesOutput struct { _ struct{} `type:"structure"` // Attributes include the following: // - // EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications - // should be sent. + // * EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications + // should be sent. // - // EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications - // should be sent. + // * EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications + // should be sent. // - // EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications - // should be sent. + // * EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications + // should be sent. // - // EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications - // should be sent upon Direct Publish delivery failure (permanent) to one of - // the application's endpoints. + // * EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications + // should be sent upon Direct Publish delivery failure (permanent) to one + // of the application's endpoints. Attributes map[string]*string `type:"map"` } @@ -3193,6 +3367,12 @@ func (s GetPlatformApplicationAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetPlatformApplicationAttributesOutput) SetAttributes(v map[string]*string) *GetPlatformApplicationAttributesOutput { + s.Attributes = v + return s +} + // The input for the GetSMSAttributes request. type GetSMSAttributesInput struct { _ struct{} `type:"structure"` @@ -3216,6 +3396,12 @@ func (s GetSMSAttributesInput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetSMSAttributesInput) SetAttributes(v []*string) *GetSMSAttributesInput { + s.Attributes = v + return s +} + // The response from the GetSMSAttributes request. type GetSMSAttributesOutput struct { _ struct{} `type:"structure"` @@ -3234,6 +3420,12 @@ func (s GetSMSAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetSMSAttributesOutput) SetAttributes(v map[string]*string) *GetSMSAttributesOutput { + s.Attributes = v + return s +} + // Input for GetSubscriptionAttributes. type GetSubscriptionAttributesInput struct { _ struct{} `type:"structure"` @@ -3267,6 +3459,12 @@ func (s *GetSubscriptionAttributesInput) Validate() error { return nil } +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *GetSubscriptionAttributesInput) SetSubscriptionArn(v string) *GetSubscriptionAttributesInput { + s.SubscriptionArn = &v + return s +} + // Response for GetSubscriptionAttributes action. type GetSubscriptionAttributesOutput struct { _ struct{} `type:"structure"` @@ -3274,21 +3472,21 @@ type GetSubscriptionAttributesOutput struct { // A map of the subscription's attributes. Attributes in this map include the // following: // - // SubscriptionArn -- the subscription's ARN + // * SubscriptionArn -- the subscription's ARN // - // TopicArn -- the topic ARN that the subscription is associated with + // * TopicArn -- the topic ARN that the subscription is associated with // - // Owner -- the AWS account ID of the subscription's owner + // * Owner -- the AWS account ID of the subscription's owner // - // ConfirmationWasAuthenticated -- true if the subscription confirmation - // request was authenticated + // * ConfirmationWasAuthenticated -- true if the subscription confirmation + // request was authenticated // - // DeliveryPolicy -- the JSON serialization of the subscription's delivery - // policy + // * DeliveryPolicy -- the JSON serialization of the subscription's delivery + // policy // - // EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery - // policy that takes into account the topic delivery policy and account system - // defaults + // * EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery + // policy that takes into account the topic delivery policy and account system + // defaults Attributes map[string]*string `type:"map"` } @@ -3302,6 +3500,12 @@ func (s GetSubscriptionAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetSubscriptionAttributesOutput) SetAttributes(v map[string]*string) *GetSubscriptionAttributesOutput { + s.Attributes = v + return s +} + // Input for GetTopicAttributes action. type GetTopicAttributesInput struct { _ struct{} `type:"structure"` @@ -3335,33 +3539,40 @@ func (s *GetTopicAttributesInput) Validate() error { return nil } +// SetTopicArn sets the TopicArn field's value. +func (s *GetTopicAttributesInput) SetTopicArn(v string) *GetTopicAttributesInput { + s.TopicArn = &v + return s +} + // Response for GetTopicAttributes action. type GetTopicAttributesOutput struct { _ struct{} `type:"structure"` // A map of the topic's attributes. Attributes in this map include the following: // - // TopicArn -- the topic's ARN + // * TopicArn -- the topic's ARN // - // Owner -- the AWS account ID of the topic's owner + // * Owner -- the AWS account ID of the topic's owner // - // Policy -- the JSON serialization of the topic's access control policy + // * Policy -- the JSON serialization of the topic's access control policy // - // DisplayName -- the human-readable name used in the "From" field for notifications - // to email and email-json endpoints + // * DisplayName -- the human-readable name used in the "From" field for + // notifications to email and email-json endpoints // - // SubscriptionsPending -- the number of subscriptions pending confirmation - // on this topic + // * SubscriptionsPending -- the number of subscriptions pending confirmation + // on this topic // - // SubscriptionsConfirmed -- the number of confirmed subscriptions on this - // topic + // * SubscriptionsConfirmed -- the number of confirmed subscriptions on this + // topic // - // SubscriptionsDeleted -- the number of deleted subscriptions on this topic + // * SubscriptionsDeleted -- the number of deleted subscriptions on this + // topic // - // DeliveryPolicy -- the JSON serialization of the topic's delivery policy + // * DeliveryPolicy -- the JSON serialization of the topic's delivery policy // - // EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery - // policy that takes into account system defaults + // * EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery + // policy that takes into account system defaults Attributes map[string]*string `type:"map"` } @@ -3375,6 +3586,12 @@ func (s GetTopicAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetTopicAttributesOutput) SetAttributes(v map[string]*string) *GetTopicAttributesOutput { + s.Attributes = v + return s +} + // Input for ListEndpointsByPlatformApplication action. type ListEndpointsByPlatformApplicationInput struct { _ struct{} `type:"structure"` @@ -3413,6 +3630,18 @@ func (s *ListEndpointsByPlatformApplicationInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointsByPlatformApplicationInput) SetNextToken(v string) *ListEndpointsByPlatformApplicationInput { + s.NextToken = &v + return s +} + +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *ListEndpointsByPlatformApplicationInput) SetPlatformApplicationArn(v string) *ListEndpointsByPlatformApplicationInput { + s.PlatformApplicationArn = &v + return s +} + // Response for ListEndpointsByPlatformApplication action. type ListEndpointsByPlatformApplicationOutput struct { _ struct{} `type:"structure"` @@ -3435,6 +3664,18 @@ func (s ListEndpointsByPlatformApplicationOutput) GoString() string { return s.String() } +// SetEndpoints sets the Endpoints field's value. +func (s *ListEndpointsByPlatformApplicationOutput) SetEndpoints(v []*Endpoint) *ListEndpointsByPlatformApplicationOutput { + s.Endpoints = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointsByPlatformApplicationOutput) SetNextToken(v string) *ListEndpointsByPlatformApplicationOutput { + s.NextToken = &v + return s +} + // The input for the ListPhoneNumbersOptedOut action. type ListPhoneNumbersOptedOutInput struct { _ struct{} `type:"structure"` @@ -3455,6 +3696,12 @@ func (s ListPhoneNumbersOptedOutInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersOptedOutInput) SetNextToken(v string) *ListPhoneNumbersOptedOutInput { + s.NextToken = &v + return s +} + // The response from the ListPhoneNumbersOptedOut action. type ListPhoneNumbersOptedOutOutput struct { _ struct{} `type:"structure"` @@ -3478,6 +3725,18 @@ func (s ListPhoneNumbersOptedOutOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersOptedOutOutput) SetNextToken(v string) *ListPhoneNumbersOptedOutOutput { + s.NextToken = &v + return s +} + +// SetPhoneNumbers sets the PhoneNumbers field's value. +func (s *ListPhoneNumbersOptedOutOutput) SetPhoneNumbers(v []*string) *ListPhoneNumbersOptedOutOutput { + s.PhoneNumbers = v + return s +} + // Input for ListPlatformApplications action. type ListPlatformApplicationsInput struct { _ struct{} `type:"structure"` @@ -3497,6 +3756,12 @@ func (s ListPlatformApplicationsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPlatformApplicationsInput) SetNextToken(v string) *ListPlatformApplicationsInput { + s.NextToken = &v + return s +} + // Response for ListPlatformApplications action. type ListPlatformApplicationsOutput struct { _ struct{} `type:"structure"` @@ -3519,6 +3784,18 @@ func (s ListPlatformApplicationsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPlatformApplicationsOutput) SetNextToken(v string) *ListPlatformApplicationsOutput { + s.NextToken = &v + return s +} + +// SetPlatformApplications sets the PlatformApplications field's value. +func (s *ListPlatformApplicationsOutput) SetPlatformApplications(v []*PlatformApplication) *ListPlatformApplicationsOutput { + s.PlatformApplications = v + return s +} + // Input for ListSubscriptionsByTopic action. type ListSubscriptionsByTopicInput struct { _ struct{} `type:"structure"` @@ -3555,6 +3832,18 @@ func (s *ListSubscriptionsByTopicInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListSubscriptionsByTopicInput) SetNextToken(v string) *ListSubscriptionsByTopicInput { + s.NextToken = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *ListSubscriptionsByTopicInput) SetTopicArn(v string) *ListSubscriptionsByTopicInput { + s.TopicArn = &v + return s +} + // Response for ListSubscriptionsByTopic action. type ListSubscriptionsByTopicOutput struct { _ struct{} `type:"structure"` @@ -3577,6 +3866,18 @@ func (s ListSubscriptionsByTopicOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListSubscriptionsByTopicOutput) SetNextToken(v string) *ListSubscriptionsByTopicOutput { + s.NextToken = &v + return s +} + +// SetSubscriptions sets the Subscriptions field's value. +func (s *ListSubscriptionsByTopicOutput) SetSubscriptions(v []*Subscription) *ListSubscriptionsByTopicOutput { + s.Subscriptions = v + return s +} + // Input for ListSubscriptions action. type ListSubscriptionsInput struct { _ struct{} `type:"structure"` @@ -3595,6 +3896,12 @@ func (s ListSubscriptionsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListSubscriptionsInput) SetNextToken(v string) *ListSubscriptionsInput { + s.NextToken = &v + return s +} + // Response for ListSubscriptions action type ListSubscriptionsOutput struct { _ struct{} `type:"structure"` @@ -3617,6 +3924,18 @@ func (s ListSubscriptionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListSubscriptionsOutput) SetNextToken(v string) *ListSubscriptionsOutput { + s.NextToken = &v + return s +} + +// SetSubscriptions sets the Subscriptions field's value. +func (s *ListSubscriptionsOutput) SetSubscriptions(v []*Subscription) *ListSubscriptionsOutput { + s.Subscriptions = v + return s +} + type ListTopicsInput struct { _ struct{} `type:"structure"` @@ -3634,6 +3953,12 @@ func (s ListTopicsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTopicsInput) SetNextToken(v string) *ListTopicsInput { + s.NextToken = &v + return s +} + // Response for ListTopics action. type ListTopicsOutput struct { _ struct{} `type:"structure"` @@ -3656,6 +3981,18 @@ func (s ListTopicsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTopicsOutput) SetNextToken(v string) *ListTopicsOutput { + s.NextToken = &v + return s +} + +// SetTopics sets the Topics field's value. +func (s *ListTopicsOutput) SetTopics(v []*Topic) *ListTopicsOutput { + s.Topics = v + return s +} + // The user-specified message attribute value. For string data types, the value // attribute has the same restrictions on the content as the message body. For // more information, see Publish (http://docs.aws.amazon.com/sns/latest/api/API_Publish.html). @@ -3708,6 +4045,24 @@ func (s *MessageAttributeValue) Validate() error { return nil } +// SetBinaryValue sets the BinaryValue field's value. +func (s *MessageAttributeValue) SetBinaryValue(v []byte) *MessageAttributeValue { + s.BinaryValue = v + return s +} + +// SetDataType sets the DataType field's value. +func (s *MessageAttributeValue) SetDataType(v string) *MessageAttributeValue { + s.DataType = &v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *MessageAttributeValue) SetStringValue(v string) *MessageAttributeValue { + s.StringValue = &v + return s +} + // Input for the OptInPhoneNumber action. type OptInPhoneNumberInput struct { _ struct{} `type:"structure"` @@ -3741,6 +4096,12 @@ func (s *OptInPhoneNumberInput) Validate() error { return nil } +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *OptInPhoneNumberInput) SetPhoneNumber(v string) *OptInPhoneNumberInput { + s.PhoneNumber = &v + return s +} + // The response for the OptInPhoneNumber action. type OptInPhoneNumberOutput struct { _ struct{} `type:"structure"` @@ -3777,6 +4138,18 @@ func (s PlatformApplication) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *PlatformApplication) SetAttributes(v map[string]*string) *PlatformApplication { + s.Attributes = v + return s +} + +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *PlatformApplication) SetPlatformApplicationArn(v string) *PlatformApplication { + s.PlatformApplicationArn = &v + return s +} + // Input for Publish action. type PublishInput struct { _ struct{} `type:"structure"` @@ -3786,37 +4159,37 @@ type PublishInput struct { // If you want to send the same message to all transport protocols, include // the text of the message as a String value. // - // If you want to send different messages for each transport protocol, set - // the value of the MessageStructure parameter to json and use a JSON object - // for the Message parameter. + // If you want to send different messages for each transport protocol, set the + // value of the MessageStructure parameter to json and use a JSON object for + // the Message parameter. // // Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size // (262144 bytes, not 262144 characters). // // JSON-specific constraints: // - // Keys in the JSON object that correspond to supported transport protocols - // must have simple JSON string values. + // * Keys in the JSON object that correspond to supported transport protocols + // must have simple JSON string values. // - // The values will be parsed (unescaped) before they are used in outgoing - // messages. + // * The values will be parsed (unescaped) before they are used in outgoing + // messages. // - // Outbound notifications are JSON encoded (meaning that the characters will - // be reescaped for sending). + // * Outbound notifications are JSON encoded (meaning that the characters + // will be reescaped for sending). // - // Values have a minimum length of 0 (the empty string, "", is allowed). + // * Values have a minimum length of 0 (the empty string, "", is allowed). // - // Values have a maximum length bounded by the overall message size (so, - // including multiple protocols may limit message sizes). + // * Values have a maximum length bounded by the overall message size (so, + // including multiple protocols may limit message sizes). // - // Non-string values will cause the key to be ignored. + // * Non-string values will cause the key to be ignored. // - // Keys that do not correspond to supported transport protocols are ignored. + // * Keys that do not correspond to supported transport protocols are ignored. // - // Duplicate keys are not allowed. + // * Duplicate keys are not allowed. // - // Failure to parse or validate any key or value in the message will cause - // the Publish call to return an error (no partial delivery). + // * Failure to parse or validate any key or value in the message will cause + // the Publish call to return an error (no partial delivery). // // Message is a required field Message *string `type:"string" required:"true"` @@ -3829,13 +4202,13 @@ type PublishInput struct { // message to your SMS subscribers and a longer message to your email subscribers. // If you set MessageStructure to json, the value of the Message parameter must: // - // be a syntactically valid JSON object; and + // * be a syntactically valid JSON object; and // - // contain at least a top-level JSON key of "default" with a value that is - // a string. + // * contain at least a top-level JSON key of "default" with a value that + // is a string. // - // You can define other top-level keys that define the message you want to - // send to a specific transport protocol (e.g., "http"). + // You can define other top-level keys that define the message you want to send + // to a specific transport protocol (e.g., "http"). // // For information about sending different messages for each protocol using // the AWS Management Console, go to Create Different Messages for Each Protocol @@ -3906,6 +4279,48 @@ func (s *PublishInput) Validate() error { return nil } +// SetMessage sets the Message field's value. +func (s *PublishInput) SetMessage(v string) *PublishInput { + s.Message = &v + return s +} + +// SetMessageAttributes sets the MessageAttributes field's value. +func (s *PublishInput) SetMessageAttributes(v map[string]*MessageAttributeValue) *PublishInput { + s.MessageAttributes = v + return s +} + +// SetMessageStructure sets the MessageStructure field's value. +func (s *PublishInput) SetMessageStructure(v string) *PublishInput { + s.MessageStructure = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *PublishInput) SetPhoneNumber(v string) *PublishInput { + s.PhoneNumber = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *PublishInput) SetSubject(v string) *PublishInput { + s.Subject = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *PublishInput) SetTargetArn(v string) *PublishInput { + s.TargetArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *PublishInput) SetTopicArn(v string) *PublishInput { + s.TopicArn = &v + return s +} + // Response for Publish action. type PublishOutput struct { _ struct{} `type:"structure"` @@ -3926,6 +4341,12 @@ func (s PublishOutput) GoString() string { return s.String() } +// SetMessageId sets the MessageId field's value. +func (s *PublishOutput) SetMessageId(v string) *PublishOutput { + s.MessageId = &v + return s +} + // Input for RemovePermission action. type RemovePermissionInput struct { _ struct{} `type:"structure"` @@ -3967,6 +4388,18 @@ func (s *RemovePermissionInput) Validate() error { return nil } +// SetLabel sets the Label field's value. +func (s *RemovePermissionInput) SetLabel(v string) *RemovePermissionInput { + s.Label = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *RemovePermissionInput) SetTopicArn(v string) *RemovePermissionInput { + s.TopicArn = &v + return s +} + type RemovePermissionOutput struct { _ struct{} `type:"structure"` } @@ -3987,18 +4420,18 @@ type SetEndpointAttributesInput struct { // A map of the endpoint attributes. Attributes in this map include the following: // - // CustomUserData -- arbitrary user data to associate with the endpoint. - // Amazon SNS does not use this data. The data must be in UTF-8 format and less - // than 2KB. + // * CustomUserData -- arbitrary user data to associate with the endpoint. + // Amazon SNS does not use this data. The data must be in UTF-8 format and + // less than 2KB. // - // Enabled -- flag that enables/disables delivery to the endpoint. Amazon - // SNS will set this to false when a notification service indicates to Amazon - // SNS that the endpoint is invalid. Users can set it back to true, typically - // after updating Token. + // * Enabled -- flag that enables/disables delivery to the endpoint. Amazon + // SNS will set this to false when a notification service indicates to Amazon + // SNS that the endpoint is invalid. Users can set it back to true, typically + // after updating Token. // - // Token -- device token, also referred to as a registration id, for an - // app and mobile device. This is returned from the notification service when - // an app and mobile device are registered with the notification service. + // * Token -- device token, also referred to as a registration id, for an + // app and mobile device. This is returned from the notification service + // when an app and mobile device are registered with the notification service. // // Attributes is a required field Attributes map[string]*string `type:"map" required:"true"` @@ -4035,6 +4468,18 @@ func (s *SetEndpointAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *SetEndpointAttributesInput) SetAttributes(v map[string]*string) *SetEndpointAttributesInput { + s.Attributes = v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *SetEndpointAttributesInput) SetEndpointArn(v string) *SetEndpointAttributesInput { + s.EndpointArn = &v + return s +} + type SetEndpointAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4056,35 +4501,37 @@ type SetPlatformApplicationAttributesInput struct { // A map of the platform application attributes. Attributes in this map include // the following: // - // PlatformCredential -- The credential received from the notification service. - // For APNS/APNS_SANDBOX, PlatformCredential is private key. For GCM, PlatformCredential - // is "API key". For ADM, PlatformCredential is "client secret". + // * PlatformCredential -- The credential received from the notification + // service. For APNS/APNS_SANDBOX, PlatformCredential is private key. For + // GCM, PlatformCredential is "API key". For ADM, PlatformCredential is "client + // secret". // - // PlatformPrincipal -- The principal received from the notification service. - // For APNS/APNS_SANDBOX, PlatformPrincipal is SSL certificate. For GCM, PlatformPrincipal - // is not applicable. For ADM, PlatformPrincipal is "client id". + // * PlatformPrincipal -- The principal received from the notification service. + // For APNS/APNS_SANDBOX, PlatformPrincipal is SSL certificate. For GCM, + // PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is "client + // id". // - // EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications - // should be sent. + // * EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications + // should be sent. // - // EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications - // should be sent. + // * EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications + // should be sent. // - // EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications - // should be sent. + // * EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications + // should be sent. // - // EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications - // should be sent upon Direct Publish delivery failure (permanent) to one of - // the application's endpoints. + // * EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications + // should be sent upon Direct Publish delivery failure (permanent) to one + // of the application's endpoints. // - // SuccessFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write - // access to use CloudWatch Logs on your behalf. + // * SuccessFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write + // access to use CloudWatch Logs on your behalf. // - // FailureFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write - // access to use CloudWatch Logs on your behalf. + // * FailureFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write + // access to use CloudWatch Logs on your behalf. // - // SuccessFeedbackSampleRate -- Sample rate percentage (0-100) of successfully - // delivered messages. + // * SuccessFeedbackSampleRate -- Sample rate percentage (0-100) of successfully + // delivered messages. // // Attributes is a required field Attributes map[string]*string `type:"map" required:"true"` @@ -4121,6 +4568,18 @@ func (s *SetPlatformApplicationAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *SetPlatformApplicationAttributesInput) SetAttributes(v map[string]*string) *SetPlatformApplicationAttributesInput { + s.Attributes = v + return s +} + +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *SetPlatformApplicationAttributesInput) SetPlatformApplicationArn(v string) *SetPlatformApplicationAttributesInput { + s.PlatformApplicationArn = &v + return s +} + type SetPlatformApplicationAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4142,69 +4601,69 @@ type SetSMSAttributesInput struct { // The default settings for sending SMS messages from your account. You can // set values for the following attribute names: // - // MonthlySpendLimit – The maximum amount in USD that you are willing to spend + // MonthlySpendLimit – The maximum amount in USD that you are willing to spend // each month to send SMS messages. When Amazon SNS determines that sending // an SMS message would incur a cost that exceeds this limit, it stops sending // SMS messages within minutes. // - // Amazon SNS stops sending SMS messages within minutes of the limit being - // crossed. During that interval, if you continue to send SMS messages, you - // will incur costs that exceed your limit. + // Amazon SNS stops sending SMS messages within minutes of the limit being crossed. + // During that interval, if you continue to send SMS messages, you will incur + // costs that exceed your limit. // - // By default, the spend limit is set to the maximum allowed by Amazon SNS. + // By default, the spend limit is set to the maximum allowed by Amazon SNS. // If you want to exceed the maximum, contact AWS Support (https://aws.amazon.com/premiumsupport/) // or your AWS sales representative for a service limit increase. // - // DeliveryStatusIAMRole – The ARN of the IAM role that allows Amazon SNS - // to write logs about SMS deliveries in CloudWatch Logs. For each SMS message + // DeliveryStatusIAMRole – The ARN of the IAM role that allows Amazon SNS to + // write logs about SMS deliveries in CloudWatch Logs. For each SMS message // that you send, Amazon SNS writes a log that includes the message price, the // success or failure status, the reason for failure (if the message failed), // the message dwell time, and other information. // - // DeliveryStatusSuccessSamplingRate – The percentage of successful SMS deliveries + // DeliveryStatusSuccessSamplingRate – The percentage of successful SMS deliveries // for which Amazon SNS will write logs in CloudWatch Logs. The value can be // an integer from 0 - 100. For example, to write logs only for failed deliveries, // set this value to 0. To write logs for 10% of your successful deliveries, // set it to 10. // - // DefaultSenderID – A string, such as your business brand, that is displayed + // DefaultSenderID – A string, such as your business brand, that is displayed // as the sender on the receiving device. Support for sender IDs varies by country. // The sender ID can be 1 - 11 alphanumeric characters, and it must contain // at least one letter. // - // DefaultSMSType – The type of SMS message that you will send by default. - // You can assign the following values: + // DefaultSMSType – The type of SMS message that you will send by default. You + // can assign the following values: // - // Promotional – (Default) Noncritical messages, such as marketing messages. - // Amazon SNS optimizes the message delivery to incur the lowest cost. + // * Promotional – (Default) Noncritical messages, such as marketing messages. + // Amazon SNS optimizes the message delivery to incur the lowest cost. // - // Transactional – Critical messages that support customer transactions, - // such as one-time passcodes for multi-factor authentication. Amazon SNS optimizes - // the message delivery to achieve the highest reliability. + // * Transactional – Critical messages that support customer transactions, + // such as one-time passcodes for multi-factor authentication. Amazon SNS + // optimizes the message delivery to achieve the highest reliability. // - // UsageReportS3Bucket – The name of the Amazon S3 bucket to receive daily - // SMS usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage + // UsageReportS3Bucket – The name of the Amazon S3 bucket to receive daily SMS + // usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage // report as a CSV file to the bucket. The report includes the following information // for each SMS message that was successfully delivered by your account: // - // Time that the message was published (in UTC) + // * Time that the message was published (in UTC) // - // Message ID + // * Message ID // - // Destination phone number + // * Destination phone number // - // Message type + // * Message type // - // Delivery status + // * Delivery status // - // Message price (in USD) + // * Message price (in USD) // - // Part number (a message is split into multiple parts if it is too long - // for a single message) + // * Part number (a message is split into multiple parts if it is too long + // for a single message) // - // Total number of parts + // * Total number of parts // - // To receive the report, the bucket must have a policy that allows the Amazon + // To receive the report, the bucket must have a policy that allows the Amazon // SNS service principle to perform the s3:PutObject and s3:GetBucketLocation // actions. // @@ -4239,6 +4698,12 @@ func (s *SetSMSAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *SetSMSAttributesInput) SetAttributes(v map[string]*string) *SetSMSAttributesInput { + s.Attributes = v + return s +} + // The response for the SetSMSAttributes action. type SetSMSAttributesOutput struct { _ struct{} `type:"structure"` @@ -4301,6 +4766,24 @@ func (s *SetSubscriptionAttributesInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *SetSubscriptionAttributesInput) SetAttributeName(v string) *SetSubscriptionAttributesInput { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *SetSubscriptionAttributesInput) SetAttributeValue(v string) *SetSubscriptionAttributesInput { + s.AttributeValue = &v + return s +} + +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *SetSubscriptionAttributesInput) SetSubscriptionArn(v string) *SetSubscriptionAttributesInput { + s.SubscriptionArn = &v + return s +} + type SetSubscriptionAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4362,6 +4845,24 @@ func (s *SetTopicAttributesInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *SetTopicAttributesInput) SetAttributeName(v string) *SetTopicAttributesInput { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *SetTopicAttributesInput) SetAttributeValue(v string) *SetTopicAttributesInput { + s.AttributeValue = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *SetTopicAttributesInput) SetTopicArn(v string) *SetTopicAttributesInput { + s.TopicArn = &v + return s +} + type SetTopicAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4382,43 +4883,43 @@ type SubscribeInput struct { // The endpoint that you want to receive notifications. Endpoints vary by protocol: // - // For the http protocol, the endpoint is an URL beginning with "http://" + // * For the http protocol, the endpoint is an URL beginning with "http://" // - // For the https protocol, the endpoint is a URL beginning with "https://" + // * For the https protocol, the endpoint is a URL beginning with "https://" // - // For the email protocol, the endpoint is an email address + // * For the email protocol, the endpoint is an email address // - // For the email-json protocol, the endpoint is an email address + // * For the email-json protocol, the endpoint is an email address // - // For the sms protocol, the endpoint is a phone number of an SMS-enabled - // device + // * For the sms protocol, the endpoint is a phone number of an SMS-enabled + // device // - // For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue + // * For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue // - // For the application protocol, the endpoint is the EndpointArn of a mobile - // app and device. + // * For the application protocol, the endpoint is the EndpointArn of a mobile + // app and device. // - // For the lambda protocol, the endpoint is the ARN of an AWS Lambda function. + // * For the lambda protocol, the endpoint is the ARN of an AWS Lambda function. Endpoint *string `type:"string"` // The protocol you want to use. Supported protocols include: // - // http -- delivery of JSON-encoded message via HTTP POST + // * http -- delivery of JSON-encoded message via HTTP POST // - // https -- delivery of JSON-encoded message via HTTPS POST + // * https -- delivery of JSON-encoded message via HTTPS POST // - // email -- delivery of message via SMTP + // * email -- delivery of message via SMTP // - // email-json -- delivery of JSON-encoded message via SMTP + // * email-json -- delivery of JSON-encoded message via SMTP // - // sms -- delivery of message via SMS + // * sms -- delivery of message via SMS // - // sqs -- delivery of JSON-encoded message to an Amazon SQS queue + // * sqs -- delivery of JSON-encoded message to an Amazon SQS queue // - // application -- delivery of JSON-encoded message to an EndpointArn for - // a mobile app and device. + // * application -- delivery of JSON-encoded message to an EndpointArn for + // a mobile app and device. // - // lambda -- delivery of JSON-encoded message to an AWS Lambda function. + // * lambda -- delivery of JSON-encoded message to an AWS Lambda function. // // Protocol is a required field Protocol *string `type:"string" required:"true"` @@ -4455,6 +4956,24 @@ func (s *SubscribeInput) Validate() error { return nil } +// SetEndpoint sets the Endpoint field's value. +func (s *SubscribeInput) SetEndpoint(v string) *SubscribeInput { + s.Endpoint = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *SubscribeInput) SetProtocol(v string) *SubscribeInput { + s.Protocol = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *SubscribeInput) SetTopicArn(v string) *SubscribeInput { + s.TopicArn = &v + return s +} + // Response for Subscribe action. type SubscribeOutput struct { _ struct{} `type:"structure"` @@ -4474,6 +4993,12 @@ func (s SubscribeOutput) GoString() string { return s.String() } +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *SubscribeOutput) SetSubscriptionArn(v string) *SubscribeOutput { + s.SubscriptionArn = &v + return s +} + // A wrapper type for the attributes of an Amazon SNS subscription. type Subscription struct { _ struct{} `type:"structure"` @@ -4504,6 +5029,36 @@ func (s Subscription) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *Subscription) SetEndpoint(v string) *Subscription { + s.Endpoint = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *Subscription) SetOwner(v string) *Subscription { + s.Owner = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Subscription) SetProtocol(v string) *Subscription { + s.Protocol = &v + return s +} + +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *Subscription) SetSubscriptionArn(v string) *Subscription { + s.SubscriptionArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *Subscription) SetTopicArn(v string) *Subscription { + s.TopicArn = &v + return s +} + // A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a // topic's attributes, use GetTopicAttributes. type Topic struct { @@ -4523,6 +5078,12 @@ func (s Topic) GoString() string { return s.String() } +// SetTopicArn sets the TopicArn field's value. +func (s *Topic) SetTopicArn(v string) *Topic { + s.TopicArn = &v + return s +} + // Input for Unsubscribe action. type UnsubscribeInput struct { _ struct{} `type:"structure"` @@ -4556,6 +5117,12 @@ func (s *UnsubscribeInput) Validate() error { return nil } +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *UnsubscribeInput) SetSubscriptionArn(v string) *UnsubscribeInput { + s.SubscriptionArn = &v + return s +} + type UnsubscribeOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go index 78acaf7d9..e9a0f43c1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go @@ -67,15 +67,19 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // For more information about these permissions, see Shared Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) // in the Amazon SQS Developer Guide. // -// AddPermission writes an Amazon SQS-generated policy. If you want to write +// AddPermission writes an Amazon SQS-generated policy. If you want to write // your own policy, use SetQueueAttributes to upload your policy. For more information // about writing your own policy, see Using The Access Policy Language (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AccessPolicyLanguage.html) // in the Amazon SQS Developer Guide. // -// Some API actions take lists of parameters. These lists are specified using +// Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -158,8 +162,8 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // to call ChangeMessageVisibility to extend the visibility timeout to a maximum // of 12 hours. If you try to extend beyond 12 hours, the request will be rejected. // -// There is a 120,000 limit for the number of inflight messages per queue. -// Messages are inflight after they have been received from the queue by a consuming +// There is a 120,000 limit for the number of inflight messages per queue. Messages +// are inflight after they have been received from the queue by a consuming // component, but have not yet been deleted from the queue. If you reach the // 120,000 limit, you will receive an OverLimit error message from Amazon SQS. // To help avoid reaching the limit, you should delete the messages from the @@ -247,14 +251,18 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // individually in the response. You can send up to 10 ChangeMessageVisibility // requests with each ChangeMessageVisibilityBatch action. // -// Because the batch request can result in a combination of successful and -// unsuccessful actions, you should check for batch errors even when the call -// returns an HTTP status code of 200. +// Because the batch request can result in a combination of successful and unsuccessful +// actions, you should check for batch errors even when the call returns an +// HTTP status code of 200. // // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -267,13 +275,13 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // Batch request contains more number of entries than permissible. // // * AWS.SimpleQueueService.EmptyBatchRequest -// Batch request does not contain an entry. +// Batch request doesn't contain an entry. // // * AWS.SimpleQueueService.BatchEntryIdsNotDistinct // Two or more batch entries have the same Id in the request. // // * AWS.SimpleQueueService.InvalidBatchEntryId -// The Id of a batch entry in a batch request does not abide by the specification. +// The Id of a batch entry in a batch request doesn't abide by the specification. // func (c *SQS) ChangeMessageVisibilityBatch(input *ChangeMessageVisibilityBatchInput) (*ChangeMessageVisibilityBatchOutput, error) { req, out := c.ChangeMessageVisibilityBatchRequest(input) @@ -326,29 +334,46 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // CreateQueue API operation for Amazon Simple Queue Service. // -// Creates a new queue, or returns the URL of an existing one. When you request -// CreateQueue, you provide a name for the queue. To successfully create a new -// queue, you must provide a name that is unique within the scope of your own -// queues. +// Creates a new standard or FIFO queue or returns the URL of an existing queue. +// You can pass one or more attributes in the request. // -// If you delete a queue, you must wait at least 60 seconds before creating -// a queue with the same name. +// * If you don't specify the FifoQueue attribute, Amazon SQS creates a standard +// queue. // -// You may pass one or more attributes in the request. If you do not provide -// a value for any attribute, the queue will have the default value for that -// attribute. +// You can't change the queue type after you create it and you can't convert +// an existing standard queue into a FIFO queue. You must either create a +// new FIFO queue for your application or delete your existing standard queue +// and recreate it as a FIFO queue. For more information, see Moving From +// a Standard Queue to a FIFO Queue (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-moving.html) +// in the Amazon SQS Developer Guide. // -// Use GetQueueUrl to get a queue's URL. GetQueueUrl requires only the QueueName -// parameter. +// * If you don't provide a value for an attribute, the queue is created +// with the default value for the attribute. // -// If you provide the name of an existing queue, along with the exact names -// and values of all the queue's attributes, CreateQueue returns the queue URL -// for the existing queue. If the queue name, attribute names, or attribute -// values do not match an existing queue, CreateQueue returns an error. +// * If you delete a queue, you must wait at least 60 seconds before creating +// a queue with the same name. // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, -// a parameter list with two elements looks like this: +// To successfully create a new queue, you must provide a queue name that adheres +// to the limits related to queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/limits-queues.html) +// and is unique within the scope of your queues. +// +// To get the queue URL, use the GetQueueUrl action. GetQueueUrl requires only +// the QueueName parameter. +// +// * If you provide the name of an existing queue along with the exact names +// and values of all the queue's attributes, CreateQueue returns the queue +// URL for the existing queue. +// +// * If the queue name, attribute names, or attribute values don't match +// an existing queue, CreateQueue returns an error. +// +// Some API actions take lists of parameters. Specify these lists using the +// param.n notation. Values of n are integers starting from 1. The following +// is an example of a parameter list with two elements: +// +// &Attribute.1=this +// +// &Attribute.2=that // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -427,15 +452,14 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ // If you leave a message in the queue for longer than the queue's configured // retention period, Amazon SQS automatically deletes it. // -// The receipt handle is associated with a specific instance of receiving -// the message. If you receive a message more than once, the receipt handle -// you get each time you receive the message is different. When you request -// DeleteMessage, if you don't provide the most recently received receipt handle -// for the message, the request will still succeed, but the message might not -// be deleted. +// The receipt handle is associated with a specific instance of receiving the +// message. If you receive a message more than once, the receipt handle you +// get each time you receive the message is different. When you request DeleteMessage, +// if you don't provide the most recently received receipt handle for the message, +// the request will still succeed, but the message might not be deleted. // -// It is possible you will receive a message even after you have deleted -// it. This might happen on rare occasions if one of the servers storing a copy +// It is possible you will receive a message even after you have deleted it. +// This might happen on rare occasions if one of the servers storing a copy // of the message is unavailable when you request to delete the message. The // copy remains on the server and might be returned to you again on a subsequent // receive request. You should create your system to be idempotent so that receiving @@ -510,14 +534,18 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re // of DeleteMessage. The result of the delete action on each message is reported // individually in the response. // -// Because the batch request can result in a combination of successful and -// unsuccessful actions, you should check for batch errors even when the call -// returns an HTTP status code of 200. +// Because the batch request can result in a combination of successful and unsuccessful +// actions, you should check for batch errors even when the call returns an +// HTTP status code of 200. // -// Some API actions take lists of parameters. These lists are specified using +// Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -530,13 +558,13 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re // Batch request contains more number of entries than permissible. // // * AWS.SimpleQueueService.EmptyBatchRequest -// Batch request does not contain an entry. +// Batch request doesn't contain an entry. // // * AWS.SimpleQueueService.BatchEntryIdsNotDistinct // Two or more batch entries have the same Id in the request. // // * AWS.SimpleQueueService.InvalidBatchEntryId -// The Id of a batch entry in a batch request does not abide by the specification. +// The Id of a batch entry in a batch request doesn't abide by the specification. // func (c *SQS) DeleteMessageBatch(input *DeleteMessageBatchInput) (*DeleteMessageBatchOutput, error) { req, out := c.DeleteMessageBatchRequest(input) @@ -592,20 +620,19 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, // DeleteQueue API operation for Amazon Simple Queue Service. // // Deletes the queue specified by the queue URL, regardless of whether the queue -// is empty. If the specified queue does not exist, Amazon SQS returns a successful +// is empty. If the specified queue doesn't exist, Amazon SQS returns a successful // response. // -// Use DeleteQueue with care; once you delete your queue, any messages in -// the queue are no longer available. +// Use DeleteQueue with care; once you delete your queue, any messages in the +// queue are no longer available. // -// When you delete a queue, the deletion process takes up to 60 seconds. -// Requests you send involving that queue during the 60 seconds might succeed. -// For example, a SendMessage request might succeed, but after the 60 seconds, -// the queue and that message you sent no longer exist. Also, when you delete -// a queue, you must wait at least 60 seconds before creating a queue with the -// same name. +// When you delete a queue, the deletion process takes up to 60 seconds. Requests +// you send involving that queue during the 60 seconds might succeed. For example, +// a SendMessage request might succeed, but after the 60 seconds, the queue +// and that message you sent no longer exist. Also, when you delete a queue, +// you must wait at least 60 seconds before creating a queue with the same name. // -// We reserve the right to delete queues that have had no activity for more +// We reserve the right to delete queues that have had no activity for more // than 30 days. For more information, see How Amazon SQS Queues Work (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSConcepts.html) // in the Amazon SQS Developer Guide. // @@ -672,6 +699,10 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -681,7 +712,7 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re // // Returned Error Codes: // * InvalidAttributeName -// The attribute referred to does not exist. +// The attribute referred to doesn't exist. // func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttributesOutput, error) { req, out := c.GetQueueAttributesRequest(input) @@ -737,10 +768,10 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // Returns the URL of an existing queue. This action provides a simple way to // retrieve the URL of an Amazon SQS queue. // -// To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId +// To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId // parameter to specify the account ID of the queue's owner. The queue's owner // must grant you permission to access the queue. For more information about -// shared queue access, see AddPermission or go to Shared Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) +// shared queue access, see AddPermission or see Shared Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) // in the Amazon SQS Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -752,7 +783,7 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // // Returned Error Codes: // * AWS.SimpleQueueService.NonExistentQueue -// The queue referred to does not exist. +// The queue referred to doesn't exist. // func (c *SQS) GetQueueUrl(input *GetQueueUrlInput) (*GetQueueUrlOutput, error) { req, out := c.GetQueueUrlRequest(input) @@ -809,7 +840,8 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue // configured with a dead letter queue. // // For more information about using dead letter queues, see Using Amazon SQS -// Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). +// Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) +// in the Amazon SQS Developer 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 @@ -820,7 +852,7 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue // // Returned Error Codes: // * AWS.SimpleQueueService.NonExistentQueue -// The queue referred to does not exist. +// The queue referred to doesn't exist. // func (c *SQS) ListDeadLetterSourceQueues(input *ListDeadLetterSourceQueuesInput) (*ListDeadLetterSourceQueuesOutput, error) { req, out := c.ListDeadLetterSourceQueuesRequest(input) @@ -938,14 +970,14 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // // Deletes the messages in a queue specified by the queue URL. // -// When you use the PurgeQueue API, the deleted messages in the queue cannot +// When you use the PurgeQueue API, the deleted messages in the queue can't // be retrieved. // // When you purge a queue, the message deletion process takes up to 60 seconds. // All messages sent to the queue before calling PurgeQueue will be deleted; -// messages sent to the queue while it is being purged may be deleted. While +// messages sent to the queue while it is being purged might be deleted. While // the queue is being purged, messages sent to the queue before PurgeQueue was -// called may be received, but will be deleted within the next minute. +// called might be received, but will be deleted within the next minute. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -956,7 +988,7 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // // Returned Error Codes: // * AWS.SimpleQueueService.NonExistentQueue -// The queue referred to does not exist. +// The queue referred to doesn't exist. // // * AWS.SimpleQueueService.PurgeQueueInProgress // Indicates that the specified queue previously received a PurgeQueue request @@ -1019,7 +1051,7 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re // parameter. For more information, see Amazon SQS Long Poll (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html) // in the Amazon SQS Developer Guide. // -// Short poll is the default behavior where a weighted random set of machines +// Short poll is the default behavior where a weighted random set of machines // is sampled on a ReceiveMessage call. This means only the messages on the // sampled machines are returned. If the number of messages in the queue is // small (less than 1000), it is likely you will get fewer messages than you @@ -1027,35 +1059,40 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re // is extremely small, you might not receive any messages in a particular ReceiveMessage // response; in which case you should repeat the request. // -// For each message returned, the response includes the following: +// For each message returned, the response includes the following: // -// Message body +// * Message body // -// MD5 digest of the message body. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html -// (http://www.faqs.org/rfcs/rfc1321.html). +// * MD5 digest of the message body. For information about MD5, see RFC1321 +// (https://www.ietf.org/rfc/rfc1321.txt). // -// Message ID you received when you sent the message to the queue. +// * Message ID you received when you sent the message to the queue. // -// Receipt handle. +// * Receipt handle. // -// Message attributes. +// * Message attributes. // -// MD5 digest of the message attributes. +// * MD5 digest of the message attributes. // -// The receipt handle is the identifier you must provide when deleting the -// message. For more information, see Queue and Message Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html) +// The receipt handle is the identifier you must provide when deleting the message. +// For more information, see Queue and Message Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html) // in the Amazon SQS Developer Guide. // -// You can provide the VisibilityTimeout parameter in your request, which -// will be applied to the messages that Amazon SQS returns in the response. -// If you do not include the parameter, the overall visibility timeout for the -// queue is used for the returned messages. For more information, see Visibility -// Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) +// You can provide the VisibilityTimeout parameter in your request, which will +// be applied to the messages that Amazon SQS returns in the response. If you +// don't include the parameter, the overall visibility timeout for the queue +// is used for the returned messages. For more information, see Visibility Timeout +// (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) // in the Amazon SQS Developer Guide. // -// Going forward, new attributes might be added. If you are writing code -// that calls this action, we recommend that you structure your code so that -// it can handle new attributes gracefully. +// A message that is not deleted or a message whose visibility is not extended +// before the visibility timeout expires counts as a failed receive. Depending +// on the configuration of the queue, the message might be sent to the dead +// letter queue. +// +// Going forward, new attributes might be added. If you are writing code that +// calls this action, we recommend that you structure your code so that it can +// handle new attributes gracefully. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1184,18 +1221,16 @@ func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, // SendMessage API operation for Amazon Simple Queue Service. // -// Delivers a message to the specified queue. With Amazon SQS, you now have -// the ability to send large payload messages that are up to 256KB (262,144 -// bytes) in size. To send large payloads, you must use an AWS SDK that supports -// SigV4 signing. To verify whether SigV4 is supported for an AWS SDK, check -// the SDK release notes. +// Delivers a message to the specified queue. // -// The following list shows the characters (in Unicode) allowed in your message, -// according to the W3C XML specification. For more information, go to http://www.w3.org/TR/REC-xml/#charsets -// (http://www.w3.org/TR/REC-xml/#charsets) If you send any characters not included -// in the list, your request will be rejected. +// The following list shows the characters (in Unicode) that are allowed in +// your message, according to the W3C XML specification: // -// #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF] +// #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF] +// +// For more information, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). +// If you send any characters that aren't included in this list, your request +// will be rejected. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1263,32 +1298,38 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // SendMessageBatch API operation for Amazon Simple Queue Service. // // Delivers up to ten messages to the specified queue. This is a batch version -// of SendMessage. The result of the send action on each message is reported -// individually in the response. The maximum allowed individual message size -// is 256 KB (262,144 bytes). +// of SendMessage. For a FIFO queue, multiple messages within a single batch +// are enqueued in the order they are sent. // -// The maximum total payload size (i.e., the sum of all a batch's individual -// message lengths) is also 256 KB (262,144 bytes). +// The result of sending each message is reported individually in the response. +// Because the batch request can result in a combination of successful and unsuccessful +// actions, you should check for batch errors even when the call returns an +// HTTP status code of 200. // -// If the DelaySeconds parameter is not specified for an entry, the default -// for the queue is used. +// The maximum allowed individual message size and the maximum total payload +// size (the sum of the individual lengths of all of the batched messages) are +// both 256 KB (262,144 bytes). // // The following list shows the characters (in Unicode) that are allowed in -// your message, according to the W3C XML specification. For more information, -// go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). -// If you send any characters that are not included in the list, your request -// will be rejected. +// your message, according to the W3C XML specification: // // #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF] // -// Because the batch request can result in a combination of successful and -// unsuccessful actions, you should check for batch errors even when the call -// returns an HTTP status code of 200. +// For more information, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). +// If you send any characters that aren't included in this list, your request +// will be rejected. // -// Some API actions take lists of parameters. These lists are specified using +// If you don't specify the DelaySeconds parameter for an entry, Amazon SQS +// uses the default for the queue. +// +// Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1301,7 +1342,7 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // Batch request contains more number of entries than permissible. // // * AWS.SimpleQueueService.EmptyBatchRequest -// Batch request does not contain an entry. +// Batch request doesn't contain an entry. // // * AWS.SimpleQueueService.BatchEntryIdsNotDistinct // Two or more batch entries have the same Id in the request. @@ -1310,7 +1351,7 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // The length of all the messages put together is more than the limit. // // * AWS.SimpleQueueService.InvalidBatchEntryId -// The Id of a batch entry in a batch request does not abide by the specification. +// The Id of a batch entry in a batch request doesn't abide by the specification. // // * AWS.SimpleQueueService.UnsupportedOperation // Error code 400. Unsupported operation. @@ -1373,9 +1414,9 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // to propagate throughout the SQS system. Changes made to the MessageRetentionPeriod // attribute can take up to 15 minutes. // -// Going forward, new attributes might be added. If you are writing code that -// calls this action, we recommend that you structure your code so that it can -// handle new attributes gracefully. +// In the future, new attributes might be added. When you write code that calls +// this action, we recommend structuring your code so that it can handle new +// attributes gracefully. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1386,7 +1427,7 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // // Returned Error Codes: // * InvalidAttributeName -// The attribute referred to does not exist. +// The attribute referred to doesn't exist. // func (c *SQS) SetQueueAttributes(input *SetQueueAttributesInput) (*SetQueueAttributesOutput, error) { req, out := c.SetQueueAttributesRequest(input) @@ -1466,6 +1507,30 @@ func (s *AddPermissionInput) Validate() error { return nil } +// SetAWSAccountIds sets the AWSAccountIds field's value. +func (s *AddPermissionInput) SetAWSAccountIds(v []*string) *AddPermissionInput { + s.AWSAccountIds = v + return s +} + +// SetActions sets the Actions field's value. +func (s *AddPermissionInput) SetActions(v []*string) *AddPermissionInput { + s.Actions = v + return s +} + +// SetLabel sets the Label field's value. +func (s *AddPermissionInput) SetLabel(v string) *AddPermissionInput { + s.Label = &v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *AddPermissionInput) SetQueueUrl(v string) *AddPermissionInput { + s.QueueUrl = &v + return s +} + type AddPermissionOutput struct { _ struct{} `type:"structure"` } @@ -1514,6 +1579,30 @@ func (s BatchResultErrorEntry) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *BatchResultErrorEntry) SetCode(v string) *BatchResultErrorEntry { + s.Code = &v + return s +} + +// SetId sets the Id field's value. +func (s *BatchResultErrorEntry) SetId(v string) *BatchResultErrorEntry { + s.Id = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *BatchResultErrorEntry) SetMessage(v string) *BatchResultErrorEntry { + s.Message = &v + return s +} + +// SetSenderFault sets the SenderFault field's value. +func (s *BatchResultErrorEntry) SetSenderFault(v bool) *BatchResultErrorEntry { + s.SenderFault = &v + return s +} + type ChangeMessageVisibilityBatchInput struct { _ struct{} `type:"structure"` @@ -1567,6 +1656,18 @@ func (s *ChangeMessageVisibilityBatchInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *ChangeMessageVisibilityBatchInput) SetEntries(v []*ChangeMessageVisibilityBatchRequestEntry) *ChangeMessageVisibilityBatchInput { + s.Entries = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *ChangeMessageVisibilityBatchInput) SetQueueUrl(v string) *ChangeMessageVisibilityBatchInput { + s.QueueUrl = &v + return s +} + // For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry // tag if the message succeeds or a BatchResultErrorEntry tag if the message // fails. @@ -1594,16 +1695,30 @@ func (s ChangeMessageVisibilityBatchOutput) GoString() string { return s.String() } +// SetFailed sets the Failed field's value. +func (s *ChangeMessageVisibilityBatchOutput) SetFailed(v []*BatchResultErrorEntry) *ChangeMessageVisibilityBatchOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *ChangeMessageVisibilityBatchOutput) SetSuccessful(v []*ChangeMessageVisibilityBatchResultEntry) *ChangeMessageVisibilityBatchOutput { + s.Successful = v + return s +} + // Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch. // -// All of the following parameters are list parameters that must be prefixed +// All of the following parameters are list parameters that must be prefixed // with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value // starting with 1. For example, a parameter list for this action might look // like this: // +// &ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2 // +// &ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=Your_Receipt_Handle // -// Your_Receipt_Handle]]> +// &ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45 type ChangeMessageVisibilityBatchRequestEntry struct { _ struct{} `type:"structure"` @@ -1649,6 +1764,24 @@ func (s *ChangeMessageVisibilityBatchRequestEntry) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ChangeMessageVisibilityBatchRequestEntry) SetId(v string) *ChangeMessageVisibilityBatchRequestEntry { + s.Id = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *ChangeMessageVisibilityBatchRequestEntry) SetReceiptHandle(v string) *ChangeMessageVisibilityBatchRequestEntry { + s.ReceiptHandle = &v + return s +} + +// SetVisibilityTimeout sets the VisibilityTimeout field's value. +func (s *ChangeMessageVisibilityBatchRequestEntry) SetVisibilityTimeout(v int64) *ChangeMessageVisibilityBatchRequestEntry { + s.VisibilityTimeout = &v + return s +} + // Encloses the id of an entry in ChangeMessageVisibilityBatch. type ChangeMessageVisibilityBatchResultEntry struct { _ struct{} `type:"structure"` @@ -1669,6 +1802,12 @@ func (s ChangeMessageVisibilityBatchResultEntry) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *ChangeMessageVisibilityBatchResultEntry) SetId(v string) *ChangeMessageVisibilityBatchResultEntry { + s.Id = &v + return s +} + type ChangeMessageVisibilityInput struct { _ struct{} `type:"structure"` @@ -1721,6 +1860,24 @@ func (s *ChangeMessageVisibilityInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *ChangeMessageVisibilityInput) SetQueueUrl(v string) *ChangeMessageVisibilityInput { + s.QueueUrl = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *ChangeMessageVisibilityInput) SetReceiptHandle(v string) *ChangeMessageVisibilityInput { + s.ReceiptHandle = &v + return s +} + +// SetVisibilityTimeout sets the VisibilityTimeout field's value. +func (s *ChangeMessageVisibilityInput) SetVisibilityTimeout(v int64) *ChangeMessageVisibilityInput { + s.VisibilityTimeout = &v + return s +} + type ChangeMessageVisibilityOutput struct { _ struct{} `type:"structure"` } @@ -1741,44 +1898,94 @@ type CreateQueueInput struct { // A map of attributes with their corresponding values. // // The following lists the names, descriptions, and values of the special request - // parameters the CreateQueue action uses: + // parameters that the CreateQueue action uses: // - // DelaySeconds - The time in seconds that the delivery of all messages in - // the queue will be delayed. An integer from 0 to 900 (15 minutes). The default - // for this attribute is 0 (zero). + // * DelaySeconds - The number of seconds for which the delivery of all messages + // in the queue is delayed. An integer from 0 to 900 (15 minutes). The default + // is 0 (zero). // - // MaximumMessageSize - The limit of how many bytes a message can contain before - // Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes - // (256 KiB). The default for this attribute is 262144 (256 KiB). + // * MaximumMessageSize - The limit of how many bytes a message can contain + // before Amazon SQS rejects it. An integer from 1,024 bytes (1 KiB) up to + // 262,144 bytes (256 KiB). The default is 262,144 (256 KiB). // - // MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. - // Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The - // default for this attribute is 345600 (4 days). + // * MessageRetentionPeriod - The number of seconds for which Amazon SQS + // retains a message. An integer representing seconds, from 60 (1 minute) + // to 120,9600 (14 days). The default is 345,600 (4 days). // - // Policy - The queue's policy. A valid AWS policy. For more information about - // policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) - // in the Amazon IAM User Guide. + // * Policy - The queue's policy. A valid AWS policy. For more information + // about policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) + // in the Amazon IAM User Guide. // - // ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call - // will wait for a message to arrive. An integer from 0 to 20 (seconds). The - // default for this attribute is 0. + // * ReceiveMessageWaitTimeSeconds - The number of seconds for which a ReceiveMessage + // action will wait for a message to arrive. An integer from 0 to 20 (seconds). + // The default is 0. // - // RedrivePolicy - The parameters for dead letter queue functionality of the - // source queue. For more information about RedrivePolicy and dead letter queues, - // see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) - // in the Amazon SQS Developer Guide. + // * RedrivePolicy - The parameters for the dead letter queue functionality + // of the source queue. For more information about the redrive policy and + // dead letter queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) + // in the Amazon SQS Developer Guide. // - // VisibilityTimeout - The visibility timeout for the queue. An integer from - // 0 to 43200 (12 hours). The default for this attribute is 30. For more information - // about visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) - // in the Amazon SQS Developer Guide. + // The dead letter queue of a FIFO queue must also be a FIFO queue. Similarly, + // the dead letter queue of a standard queue must also be a standard queue. // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, + // * VisibilityTimeout - The visibility timeout for the queue. An integer + // from 0 to 43200 (12 hours). The default is 30. For more information about + // the visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) + // in the Amazon SQS Developer Guide. + // + // The following attributes apply only to FIFO (first-in-first-out) queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): + // + // * FifoQueue - Designates a queue as FIFO. You can provide this attribute + // only during queue creation; you can't change it for an existing queue. + // When you set this attribute, you must provide a MessageGroupId explicitly. + // + // For more information, see FIFO Queue Logic (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic) + // in the Amazon SQS Developer Guide. + // + // * ContentBasedDeduplication - Enables content-based deduplication. For + // more information, see Exactly-Once Processing (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. + // + // Every message must have a unique MessageDeduplicationId, + // + // You may provide a MessageDeduplicationId explicitly. + // + // If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication + // for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId + // using the body of the message (but not the attributes of the message). + // + // + // If you don't provide a MessageDeduplicationId and the queue doesn't have + // ContentBasedDeduplication set, the action fails with an error. + // + // If the queue has ContentBasedDeduplication set, your MessageDeduplicationId + // overrides the generated one. + // + // When ContentBasedDeduplication is in effect, messages with identical content + // sent within the deduplication interval are treated as duplicates and only + // one copy of the message is delivered. + // + // You can also use ContentBasedDeduplication for messages with identical content + // to be treated as duplicates. + // + // If you send one message with ContentBasedDeduplication enabled and then another + // message with a MessageDeduplicationId that is the same as the one generated + // for the first MessageDeduplicationId, the two messages are treated as + // duplicates and only one copy of the message is delivered. + // + // Any other valid special request parameters that are specified (such as ApproximateNumberOfMessages, + // ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, // CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored. Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` - // The name for the queue to be created. + // The name of the new queue. The following limits apply to this name: + // + // * A queue name can have up to 80 characters. + // + // * The following are accepted: alphanumeric chatacters, hyphens (-), and + // underscores (_). + // + // * A FIFO queue name must end with the .fifo suffix. // // Queue names are case-sensitive. // @@ -1809,6 +2016,18 @@ func (s *CreateQueueInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *CreateQueueInput) SetAttributes(v map[string]*string) *CreateQueueInput { + s.Attributes = v + return s +} + +// SetQueueName sets the QueueName field's value. +func (s *CreateQueueInput) SetQueueName(v string) *CreateQueueInput { + s.QueueName = &v + return s +} + // Returns the QueueUrl element of the created queue. type CreateQueueOutput struct { _ struct{} `type:"structure"` @@ -1827,6 +2046,12 @@ func (s CreateQueueOutput) GoString() string { return s.String() } +// SetQueueUrl sets the QueueUrl field's value. +func (s *CreateQueueOutput) SetQueueUrl(v string) *CreateQueueOutput { + s.QueueUrl = &v + return s +} + type DeleteMessageBatchInput struct { _ struct{} `type:"structure"` @@ -1879,9 +2104,21 @@ func (s *DeleteMessageBatchInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *DeleteMessageBatchInput) SetEntries(v []*DeleteMessageBatchRequestEntry) *DeleteMessageBatchInput { + s.Entries = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *DeleteMessageBatchInput) SetQueueUrl(v string) *DeleteMessageBatchInput { + s.QueueUrl = &v + return s +} + // For each message in the batch, the response contains a DeleteMessageBatchResultEntry // tag if the message is deleted or a BatchResultErrorEntry tag if the message -// cannot be deleted. +// can't be deleted. type DeleteMessageBatchOutput struct { _ struct{} `type:"structure"` @@ -1906,6 +2143,18 @@ func (s DeleteMessageBatchOutput) GoString() string { return s.String() } +// SetFailed sets the Failed field's value. +func (s *DeleteMessageBatchOutput) SetFailed(v []*BatchResultErrorEntry) *DeleteMessageBatchOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *DeleteMessageBatchOutput) SetSuccessful(v []*DeleteMessageBatchResultEntry) *DeleteMessageBatchOutput { + s.Successful = v + return s +} + // Encloses a receipt handle and an identifier for it. type DeleteMessageBatchRequestEntry struct { _ struct{} `type:"structure"` @@ -1949,6 +2198,18 @@ func (s *DeleteMessageBatchRequestEntry) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteMessageBatchRequestEntry) SetId(v string) *DeleteMessageBatchRequestEntry { + s.Id = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *DeleteMessageBatchRequestEntry) SetReceiptHandle(v string) *DeleteMessageBatchRequestEntry { + s.ReceiptHandle = &v + return s +} + // Encloses the id an entry in DeleteMessageBatch. type DeleteMessageBatchResultEntry struct { _ struct{} `type:"structure"` @@ -1969,6 +2230,12 @@ func (s DeleteMessageBatchResultEntry) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *DeleteMessageBatchResultEntry) SetId(v string) *DeleteMessageBatchResultEntry { + s.Id = &v + return s +} + type DeleteMessageInput struct { _ struct{} `type:"structure"` @@ -2011,6 +2278,18 @@ func (s *DeleteMessageInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *DeleteMessageInput) SetQueueUrl(v string) *DeleteMessageInput { + s.QueueUrl = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *DeleteMessageInput) SetReceiptHandle(v string) *DeleteMessageInput { + s.ReceiptHandle = &v + return s +} + type DeleteMessageOutput struct { _ struct{} `type:"structure"` } @@ -2059,6 +2338,12 @@ func (s *DeleteQueueInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *DeleteQueueInput) SetQueueUrl(v string) *DeleteQueueInput { + s.QueueUrl = &v + return s +} + type DeleteQueueOutput struct { _ struct{} `type:"structure"` } @@ -2076,57 +2361,70 @@ func (s DeleteQueueOutput) GoString() string { type GetQueueAttributesInput struct { _ struct{} `type:"structure"` - // A list of attributes to retrieve information for. The following attributes - // are supported: + // A list of attributes for which to retrieve information. // - // All - returns all values. - // - // ApproximateNumberOfMessages - returns the approximate number of visible - // messages in a queue. For more information, see Resources Required to Process - // Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) - // in the Amazon SQS Developer Guide. - // - // ApproximateNumberOfMessagesNotVisible - returns the approximate number of - // messages that are not timed-out and not deleted. For more information, see - // Resources Required to Process Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) - // in the Amazon SQS Developer Guide. - // - // VisibilityTimeout - returns the visibility timeout for the queue. For more - // information about visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) - // in the Amazon SQS Developer Guide. - // - // CreatedTimestamp - returns the time when the queue was created (epoch time - // in seconds). - // - // LastModifiedTimestamp - returns the time when the queue was last changed - // (epoch time in seconds). - // - // Policy - returns the queue's policy. - // - // MaximumMessageSize - returns the limit of how many bytes a message can contain - // before Amazon SQS rejects it. - // - // MessageRetentionPeriod - returns the number of seconds Amazon SQS retains - // a message. - // - // QueueArn - returns the queue's Amazon resource name (ARN). - // - // ApproximateNumberOfMessagesDelayed - returns the approximate number of messages - // that are pending to be added to the queue. - // - // DelaySeconds - returns the default delay on the queue in seconds. - // - // ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage - // call will wait for a message to arrive. - // - // RedrivePolicy - returns the parameters for dead letter queue functionality - // of the source queue. For more information about RedrivePolicy and dead letter - // queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) - // in the Amazon SQS Developer Guide. - // - // Going forward, new attributes might be added. If you are writing code that + // Going forward, new attributes might be added. If you are writing code that // calls this action, we recommend that you structure your code so that it can // handle new attributes gracefully. + // + // The following attributes are supported: + // + // * All - Returns all values. + // + // * ApproximateNumberOfMessages - Returns the approximate number of visible + // messages in a queue. For more information, see Resources Required to Process + // Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) + // in the Amazon SQS Developer Guide. + // + // * ApproximateNumberOfMessagesDelayed - Returns the approximate number + // of messages that are waiting to be added to the queue. + // + // * ApproximateNumberOfMessagesNotVisible - Returns the approximate number + // of messages that have not timed-out and are not deleted. For more information, + // see Resources Required to Process Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) + // in the Amazon SQS Developer Guide. + // + // * CreatedTimestamp - Returns the time when the queue was created in seconds + // (epoch time). + // + // * DelaySeconds - Returns the default delay on the queue in seconds. + // + // * LastModifiedTimestamp - Returns the time when the queue was last changed + // in seconds (epoch time). + // + // * MaximumMessageSize - Returns the limit of how many bytes a message can + // contain before Amazon SQS rejects it. + // + // * MessageRetentionPeriod - Returns the number of seconds for which Amazon + // SQS retains a message. + // + // * Policy - Returns the policy of the queue. + // + // * QueueArn - Returns the Amazon resource name (ARN) of the queue. + // + // * ReceiveMessageWaitTimeSeconds - Returns the number of seconds for which + // ReceiveMessage call will wait for a message to arrive. + // + // * RedrivePolicy - Returns the parameters for dead letter queue functionality + // of the source queue. For more information about the redrive policy and + // dead letter queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) + // in the Amazon SQS Developer Guide. + // + // * VisibilityTimeout - Returns the visibility timeout for the queue. For + // more information about the visibility timeout, see Visibility Timeout + // (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) + // in the Amazon SQS Developer Guide. + // + // The following attributes apply only to FIFO (first-in-first-out) queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): + // + // * FifoQueue - Returns whether the queue is FIFO. For more information, + // see FIFO Queue Logic (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic) + // in the Amazon SQS Developer Guide. + // + // * ContentBasedDeduplication - Returns whether content-based deduplication + // is enabled for the queue. For more information, see Exactly-Once Processing + // (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` // The URL of the Amazon SQS queue to take action on. @@ -2160,6 +2458,18 @@ func (s *GetQueueAttributesInput) Validate() error { return nil } +// SetAttributeNames sets the AttributeNames field's value. +func (s *GetQueueAttributesInput) SetAttributeNames(v []*string) *GetQueueAttributesInput { + s.AttributeNames = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *GetQueueAttributesInput) SetQueueUrl(v string) *GetQueueAttributesInput { + s.QueueUrl = &v + return s +} + // A list of returned queue attributes. type GetQueueAttributesOutput struct { _ struct{} `type:"structure"` @@ -2178,6 +2488,12 @@ func (s GetQueueAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetQueueAttributesOutput) SetAttributes(v map[string]*string) *GetQueueAttributesOutput { + s.Attributes = v + return s +} + type GetQueueUrlInput struct { _ struct{} `type:"structure"` @@ -2216,6 +2532,18 @@ func (s *GetQueueUrlInput) Validate() error { return nil } +// SetQueueName sets the QueueName field's value. +func (s *GetQueueUrlInput) SetQueueName(v string) *GetQueueUrlInput { + s.QueueName = &v + return s +} + +// SetQueueOwnerAWSAccountId sets the QueueOwnerAWSAccountId field's value. +func (s *GetQueueUrlInput) SetQueueOwnerAWSAccountId(v string) *GetQueueUrlInput { + s.QueueOwnerAWSAccountId = &v + return s +} + // For more information, see Responses (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/UnderstandingResponses.html) // in the Amazon SQS Developer Guide. type GetQueueUrlOutput struct { @@ -2235,6 +2563,12 @@ func (s GetQueueUrlOutput) GoString() string { return s.String() } +// SetQueueUrl sets the QueueUrl field's value. +func (s *GetQueueUrlOutput) SetQueueUrl(v string) *GetQueueUrlOutput { + s.QueueUrl = &v + return s +} + type ListDeadLetterSourceQueuesInput struct { _ struct{} `type:"structure"` @@ -2269,6 +2603,12 @@ func (s *ListDeadLetterSourceQueuesInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *ListDeadLetterSourceQueuesInput) SetQueueUrl(v string) *ListDeadLetterSourceQueuesInput { + s.QueueUrl = &v + return s +} + // A list of your dead letter source queues. type ListDeadLetterSourceQueuesOutput struct { _ struct{} `type:"structure"` @@ -2290,6 +2630,12 @@ func (s ListDeadLetterSourceQueuesOutput) GoString() string { return s.String() } +// SetQueueUrls sets the QueueUrls field's value. +func (s *ListDeadLetterSourceQueuesOutput) SetQueueUrls(v []*string) *ListDeadLetterSourceQueuesOutput { + s.QueueUrls = v + return s +} + type ListQueuesInput struct { _ struct{} `type:"structure"` @@ -2310,6 +2656,12 @@ func (s ListQueuesInput) GoString() string { return s.String() } +// SetQueueNamePrefix sets the QueueNamePrefix field's value. +func (s *ListQueuesInput) SetQueueNamePrefix(v string) *ListQueuesInput { + s.QueueNamePrefix = &v + return s +} + // A list of your queues. type ListQueuesOutput struct { _ struct{} `type:"structure"` @@ -2328,6 +2680,12 @@ func (s ListQueuesOutput) GoString() string { return s.String() } +// SetQueueUrls sets the QueueUrls field's value. +func (s *ListQueuesOutput) SetQueueUrls(v []*string) *ListQueuesOutput { + s.QueueUrls = v + return s +} + // An Amazon SQS message. type Message struct { _ struct{} `type:"structure"` @@ -2347,11 +2705,12 @@ type Message struct { // An MD5 digest of the non-URL-encoded message attribute string. This can be // used to verify that Amazon SQS received the message correctly. Amazon SQS // first URL decodes the message before creating the MD5 digest. For information - // about MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // about MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageAttributes *string `type:"string"` // Each message attribute consists of a Name, Type, and Value. For more information, - // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV). + // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV) + // in the Amazon SQS Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` // A unique identifier for the message. Message IDs are considered unique across @@ -2374,9 +2733,51 @@ func (s Message) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *Message) SetAttributes(v map[string]*string) *Message { + s.Attributes = v + return s +} + +// SetBody sets the Body field's value. +func (s *Message) SetBody(v string) *Message { + s.Body = &v + return s +} + +// SetMD5OfBody sets the MD5OfBody field's value. +func (s *Message) SetMD5OfBody(v string) *Message { + s.MD5OfBody = &v + return s +} + +// SetMD5OfMessageAttributes sets the MD5OfMessageAttributes field's value. +func (s *Message) SetMD5OfMessageAttributes(v string) *Message { + s.MD5OfMessageAttributes = &v + return s +} + +// SetMessageAttributes sets the MessageAttributes field's value. +func (s *Message) SetMessageAttributes(v map[string]*MessageAttributeValue) *Message { + s.MessageAttributes = v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *Message) SetMessageId(v string) *Message { + s.MessageId = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *Message) SetReceiptHandle(v string) *Message { + s.ReceiptHandle = &v + return s +} + // The user-specified message attribute value. For string data types, the value // attribute has the same restrictions on the content as the message body. For -// more information, see SendMessage (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html). +// more information, see SendMessage. // // Name, type, and value must not be empty or null. In addition, the message // body should not be empty or null. All parts of the message attribute, including @@ -2398,7 +2799,8 @@ type MessageAttributeValue struct { // Binary. For the Number data type, you must use StringValue. // // You can also append custom labels. For more information, see Message Attribute - // Data Types (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes). + // Data Types (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes) + // in the Amazon SQS Developer Guide. // // DataType is a required field DataType *string `type:"string" required:"true"` @@ -2407,7 +2809,7 @@ type MessageAttributeValue struct { StringListValues []*string `locationName:"StringListValue" locationNameList:"StringListValue" type:"list" flattened:"true"` // Strings are Unicode with UTF8 binary encoding. For a list of code values, - // see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // see ASCII Printable Characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). StringValue *string `type:"string"` } @@ -2434,6 +2836,36 @@ func (s *MessageAttributeValue) Validate() error { return nil } +// SetBinaryListValues sets the BinaryListValues field's value. +func (s *MessageAttributeValue) SetBinaryListValues(v [][]byte) *MessageAttributeValue { + s.BinaryListValues = v + return s +} + +// SetBinaryValue sets the BinaryValue field's value. +func (s *MessageAttributeValue) SetBinaryValue(v []byte) *MessageAttributeValue { + s.BinaryValue = v + return s +} + +// SetDataType sets the DataType field's value. +func (s *MessageAttributeValue) SetDataType(v string) *MessageAttributeValue { + s.DataType = &v + return s +} + +// SetStringListValues sets the StringListValues field's value. +func (s *MessageAttributeValue) SetStringListValues(v []*string) *MessageAttributeValue { + s.StringListValues = v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *MessageAttributeValue) SetStringValue(v string) *MessageAttributeValue { + s.StringValue = &v + return s +} + type PurgeQueueInput struct { _ struct{} `type:"structure"` @@ -2469,6 +2901,12 @@ func (s *PurgeQueueInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *PurgeQueueInput) SetQueueUrl(v string) *PurgeQueueInput { + s.QueueUrl = &v + return s +} + type PurgeQueueOutput struct { _ struct{} `type:"structure"` } @@ -2489,29 +2927,68 @@ type ReceiveMessageInput struct { // A list of attributes that need to be returned along with each message. These // attributes include: // - // All - returns all values. + // * All - Returns all values. // - // ApproximateFirstReceiveTimestamp - returns the time when the message was - // first received from the queue (epoch time in milliseconds). + // * ApproximateFirstReceiveTimestamp - Returns the time the message was + // first received from the queue (epoch time in milliseconds). // - // ApproximateReceiveCount - returns the number of times a message has been - // received from the queue but not deleted. + // * ApproximateReceiveCount - Returns the number of times a message has + // been received from the queue but not deleted. // - // SenderId - returns the AWS account number (or the IP address, if anonymous - // access is allowed) of the sender. + // * SenderId // - // SentTimestamp - returns the time when the message was sent to the queue - // (epoch time in milliseconds). + // For an IAM user, returns the IAM user ID, for example ABCDEFGHI1JKLMNOPQ23R. // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, - // CreatedTimestamp, DelaySeconds, LastModifiedTimestamp, MaximumMessageSize, - // MessageRetentionPeriod, Policy, QueueArn, ReceiveMessageWaitTimeSeconds, - // RedrivePolicy, and VisibilityTimeout) will be ignored. + // For an IAM role, returns the IAM role ID, for example ABCDE1F2GH3I4JK5LMNOP:i-a123b456. + // + // * SentTimestamp - Returns the time the message was sent to the queue (epoch + // time in milliseconds). + // + // * MessageDeduplicationId - Returns the value provided by the sender that + // calls the SendMessage action. + // + // * MessageGroupId - Returns the value provided by the sender that calls + // the SendMessage action. Messages with the same MessageGroupId are returned + // in sequence. + // + // * SequenceNumber - Returns the value provided by Amazon SQS. + // + // Any other valid special request parameters (such as the following) that are + // specified are ignored: + // + // * ApproximateNumberOfMessages + // + // * ApproximateNumberOfMessagesDelayed + // + // * ApproximateNumberOfMessagesNotVisible + // + // * CreatedTimestamp + // + // * ContentBasedDeduplication + // + // * DelaySeconds + // + // * LastModifiedTimestamp + // + // * MaximumMessageSize + // + // * MessageRetentionPeriod + // + // * Policy + // + // * QueueArn, + // + // * ReceiveMessageWaitTimeSeconds + // + // * RedrivePolicy + // + // * FifoQueue + // + // * VisibilityTimeout AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` // The maximum number of messages to return. Amazon SQS never returns more messages - // than this value but may return fewer. Values can be from 1 to 10. Default + // than this value but might return fewer. Values can be from 1 to 10. Default // is 1. // // All of the messages are not necessarily returned. @@ -2522,7 +2999,7 @@ type ReceiveMessageInput struct { // hyphen (-), and period (.). The name must not start or end with a period, // and it should not have successive periods. The name is case sensitive and // must be unique among all attribute names for the message. The name can be - // up to 256 characters long. The name cannot start with "AWS." or "Amazon." + // up to 256 characters long. The name can't start with "AWS." or "Amazon." // (or any variations in casing), because these prefixes are reserved for use // by Amazon Web Services. // @@ -2539,6 +3016,62 @@ type ReceiveMessageInput struct { // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The token used for deduplication of ReceiveMessage calls. If a networking + // issue occurs after a ReceiveMessage action, and instead of a response you + // receive a generic error, you can retry the same action with an identical + // ReceiveRequestAttemptId to retrieve the same set of messages, even if their + // visibility timeout has not yet expired. + // + // * You can use ReceiveRequestAttemptId only for 5 minutes after a ReceiveMessage + // action. + // + // * When you set FifoQueue, a caller of the ReceiveMessage action can provide + // a ReceiveRequestAttemptId explicitly. + // + // * If a caller of the ReceiveMessage action doesn't provide a ReceiveRequestAttemptId, + // Amazon SQS generates a ReceiveRequestAttemptId. + // + // * You can retry the ReceiveMessage action with the same ReceiveRequestAttemptId + // if none of the messages have been modified (deleted or had their visibility + // changes). + // + // * During a visibility timeout, subsequent calls with the same ReceiveRequestAttemptId + // return the same messages and receipt handles. If a retry occurs within + // the deduplication interval, it resets the visibility timeout. For more + // information, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) + // in the Amazon Simple Queue Service Developer Guide. + // + // If a caller of the ReceiveMessage action is still processing messages when + // the visibility timeout expires and messages become visible, another worker + // reading from the same queue can receive the same messages and therefore + // process duplicates. Also, if a reader whose message processing time is + // longer than the visibility timeout tries to delete the processed messages, + // the action fails with an error. + // + // To mitigate this effect, ensure that your application observes a safe threshold + // before the visibility timeout expires and extend the visibility timeout + // as necessary. + // + // * While messages with a particular MessageGroupId are invisible, no more + // messages belonging to the same MessageGroupId are returned until the visibility + // timeout expires. You can still receive messages with another MessageGroupId + // as long as it is also visible. + // + // * If a caller of ReceiveMessage can't track the ReceiveRequestAttemptId, + // no retries will work until the original visibility timeout expires. As + // a result, delays might occur but the messages in the queue will remain + // in a strict order. + // + // The length of ReceiveRequestAttemptId is 128 characters. ReceiveRequestAttemptId + // can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using ReceiveRequestAttemptId, see Using the ReceiveRequestAttemptId + // Request Parameter (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-receiverequestattemptid-request-parameter) + // in the Amazon Simple Queue Service Developer Guide. + ReceiveRequestAttemptId *string `type:"string"` + // The duration (in seconds) that the received messages are hidden from subsequent // retrieve requests after being retrieved by a ReceiveMessage request. VisibilityTimeout *int64 `type:"integer"` @@ -2572,6 +3105,48 @@ func (s *ReceiveMessageInput) Validate() error { return nil } +// SetAttributeNames sets the AttributeNames field's value. +func (s *ReceiveMessageInput) SetAttributeNames(v []*string) *ReceiveMessageInput { + s.AttributeNames = v + return s +} + +// SetMaxNumberOfMessages sets the MaxNumberOfMessages field's value. +func (s *ReceiveMessageInput) SetMaxNumberOfMessages(v int64) *ReceiveMessageInput { + s.MaxNumberOfMessages = &v + return s +} + +// SetMessageAttributeNames sets the MessageAttributeNames field's value. +func (s *ReceiveMessageInput) SetMessageAttributeNames(v []*string) *ReceiveMessageInput { + s.MessageAttributeNames = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *ReceiveMessageInput) SetQueueUrl(v string) *ReceiveMessageInput { + s.QueueUrl = &v + return s +} + +// SetReceiveRequestAttemptId sets the ReceiveRequestAttemptId field's value. +func (s *ReceiveMessageInput) SetReceiveRequestAttemptId(v string) *ReceiveMessageInput { + s.ReceiveRequestAttemptId = &v + return s +} + +// SetVisibilityTimeout sets the VisibilityTimeout field's value. +func (s *ReceiveMessageInput) SetVisibilityTimeout(v int64) *ReceiveMessageInput { + s.VisibilityTimeout = &v + return s +} + +// SetWaitTimeSeconds sets the WaitTimeSeconds field's value. +func (s *ReceiveMessageInput) SetWaitTimeSeconds(v int64) *ReceiveMessageInput { + s.WaitTimeSeconds = &v + return s +} + // A list of received messages. type ReceiveMessageOutput struct { _ struct{} `type:"structure"` @@ -2590,6 +3165,12 @@ func (s ReceiveMessageOutput) GoString() string { return s.String() } +// SetMessages sets the Messages field's value. +func (s *ReceiveMessageOutput) SetMessages(v []*Message) *ReceiveMessageOutput { + s.Messages = v + return s +} + type RemovePermissionInput struct { _ struct{} `type:"structure"` @@ -2633,6 +3214,18 @@ func (s *RemovePermissionInput) Validate() error { return nil } +// SetLabel sets the Label field's value. +func (s *RemovePermissionInput) SetLabel(v string) *RemovePermissionInput { + s.Label = &v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *RemovePermissionInput) SetQueueUrl(v string) *RemovePermissionInput { + s.QueueUrl = &v + return s +} + type RemovePermissionOutput struct { _ struct{} `type:"structure"` } @@ -2699,6 +3292,18 @@ func (s *SendMessageBatchInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *SendMessageBatchInput) SetEntries(v []*SendMessageBatchRequestEntry) *SendMessageBatchInput { + s.Entries = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *SendMessageBatchInput) SetQueueUrl(v string) *SendMessageBatchInput { + s.QueueUrl = &v + return s +} + // For each message in the batch, the response contains a SendMessageBatchResultEntry // tag if the message succeeds or a BatchResultErrorEntry tag if the message // fails. @@ -2727,11 +3332,29 @@ func (s SendMessageBatchOutput) GoString() string { return s.String() } +// SetFailed sets the Failed field's value. +func (s *SendMessageBatchOutput) SetFailed(v []*BatchResultErrorEntry) *SendMessageBatchOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *SendMessageBatchOutput) SetSuccessful(v []*SendMessageBatchResultEntry) *SendMessageBatchOutput { + s.Successful = v + return s +} + // Contains the details of a single Amazon SQS message along with a Id. type SendMessageBatchRequestEntry struct { _ struct{} `type:"structure"` - // The number of seconds for which the message has to be delayed. + // The number of seconds (0 to 900 - 15 minutes) to delay a specific message. + // Messages with a positive DelaySeconds value become available for processing + // after the delay time is finished. If you don't specify a value, the default + // value for the queue applies. + // + // When you set FifoQueue, you can't set DelaySeconds per message. You can set + // this parameter only on a queue level. DelaySeconds *int64 `type:"integer"` // An identifier for the message in this batch. This is used to communicate @@ -2742,13 +3365,90 @@ type SendMessageBatchRequestEntry struct { Id *string `type:"string" required:"true"` // Each message attribute consists of a Name, Type, and Value. For more information, - // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV). + // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV) + // in the Amazon SQS Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` // Body of the message. // // MessageBody is a required field MessageBody *string `type:"string" required:"true"` + + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The token used for deduplication of messages within a 5-minute minimum deduplication + // interval. If a message with a particular MessageDeduplicationId is sent successfully, + // subsequent messages with the same MessageDeduplicationId are accepted successfully + // but aren't delivered. For more information, see Exactly-Once Processing + // (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. + // + // * Every message must have a unique MessageDeduplicationId, + // + // You may provide a MessageDeduplicationId explicitly. + // + // If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication + // for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId + // using the body of the message (but not the attributes of the message). + // + // + // If you don't provide a MessageDeduplicationId and the queue doesn't have + // ContentBasedDeduplication set, the action fails with an error. + // + // If the queue has ContentBasedDeduplication set, your MessageDeduplicationId + // overrides the generated one. + // + // * When ContentBasedDeduplication is in effect, messages with identical + // content sent within the deduplication interval are treated as duplicates + // and only one copy of the message is delivered. + // + // * You can also use ContentBasedDeduplication for messages with identical + // content to be treated as duplicates. + // + // * If you send one message with ContentBasedDeduplication enabled and then + // another message with a MessageDeduplicationId that is the same as the + // one generated for the first MessageDeduplicationId, the two messages are + // treated as duplicates and only one copy of the message is delivered. + // + // The MessageDeduplicationId is available to the recipient of the message (this + // can be useful for troubleshooting delivery issues). + // + // If a message is sent successfully but the acknowledgement is lost and the + // message is resent with the same MessageDeduplicationId after the deduplication + // interval, Amazon SQS can't detect duplicate messages. + // + // The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId + // can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagededuplicationid-property) + // in the Amazon Simple Queue Service Developer Guide. + MessageDeduplicationId *string `type:"string"` + + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The tag that specifies that a message belongs to a specific message group. + // Messages that belong to the same message group are processed in a FIFO manner + // (however, messages in different message groups might be processed out of + // order). To interleave multiple ordered streams within a single queue, use + // MessageGroupId values (for example, session data for multiple users). In + // this scenario, multiple readers can process the queue, but the session data + // of each user is processed in a FIFO fashion. + // + // * You must associate a non-empty MessageGroupId with a message. If you + // don't provide a MessageGroupId, the action fails. + // + // * ReceiveMessage might return messages with multiple MessageGroupId values. + // For each MessageGroupId, the messages are sorted by time sent. The caller + // can't specify a MessageGroupId. + // + // The length of MessageGroupId is 128 characters. Valid values are alphanumeric + // characters and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using MessageGroupId, see Using the MessageGroupId + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagegroupid-property) + // in the Amazon Simple Queue Service Developer Guide. + MessageGroupId *string `type:"string"` } // String returns the string representation @@ -2787,6 +3487,42 @@ func (s *SendMessageBatchRequestEntry) Validate() error { return nil } +// SetDelaySeconds sets the DelaySeconds field's value. +func (s *SendMessageBatchRequestEntry) SetDelaySeconds(v int64) *SendMessageBatchRequestEntry { + s.DelaySeconds = &v + return s +} + +// SetId sets the Id field's value. +func (s *SendMessageBatchRequestEntry) SetId(v string) *SendMessageBatchRequestEntry { + s.Id = &v + return s +} + +// SetMessageAttributes sets the MessageAttributes field's value. +func (s *SendMessageBatchRequestEntry) SetMessageAttributes(v map[string]*MessageAttributeValue) *SendMessageBatchRequestEntry { + s.MessageAttributes = v + return s +} + +// SetMessageBody sets the MessageBody field's value. +func (s *SendMessageBatchRequestEntry) SetMessageBody(v string) *SendMessageBatchRequestEntry { + s.MessageBody = &v + return s +} + +// SetMessageDeduplicationId sets the MessageDeduplicationId field's value. +func (s *SendMessageBatchRequestEntry) SetMessageDeduplicationId(v string) *SendMessageBatchRequestEntry { + s.MessageDeduplicationId = &v + return s +} + +// SetMessageGroupId sets the MessageGroupId field's value. +func (s *SendMessageBatchRequestEntry) SetMessageGroupId(v string) *SendMessageBatchRequestEntry { + s.MessageGroupId = &v + return s +} + // Encloses a message ID for successfully enqueued message of a SendMessageBatch. type SendMessageBatchResultEntry struct { _ struct{} `type:"structure"` @@ -2799,13 +3535,13 @@ type SendMessageBatchResultEntry struct { // An MD5 digest of the non-URL-encoded message attribute string. This can be // used to verify that Amazon SQS received the message batch correctly. Amazon // SQS first URL decodes the message before creating the MD5 digest. For information - // about MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // about MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageAttributes *string `type:"string"` // An MD5 digest of the non-URL-encoded message body string. This can be used // to verify that Amazon SQS received the message correctly. Amazon SQS first // URL decodes the message before creating the MD5 digest. For information about - // MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). // // MD5OfMessageBody is a required field MD5OfMessageBody *string `type:"string" required:"true"` @@ -2814,6 +3550,14 @@ type SendMessageBatchResultEntry struct { // // MessageId is a required field MessageId *string `type:"string" required:"true"` + + // This element applies only to FIFO (first-in-first-out) queues. + // + // A large, non-consecutive number that Amazon SQS assigns to each message. + // + // The length of SequenceNumber is 128 bits. As SequenceNumber continues to + // increase for a particular MessageGroupId. + SequenceNumber *string `type:"string"` } // String returns the string representation @@ -2826,6 +3570,36 @@ func (s SendMessageBatchResultEntry) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *SendMessageBatchResultEntry) SetId(v string) *SendMessageBatchResultEntry { + s.Id = &v + return s +} + +// SetMD5OfMessageAttributes sets the MD5OfMessageAttributes field's value. +func (s *SendMessageBatchResultEntry) SetMD5OfMessageAttributes(v string) *SendMessageBatchResultEntry { + s.MD5OfMessageAttributes = &v + return s +} + +// SetMD5OfMessageBody sets the MD5OfMessageBody field's value. +func (s *SendMessageBatchResultEntry) SetMD5OfMessageBody(v string) *SendMessageBatchResultEntry { + s.MD5OfMessageBody = &v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *SendMessageBatchResultEntry) SetMessageId(v string) *SendMessageBatchResultEntry { + s.MessageId = &v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *SendMessageBatchResultEntry) SetSequenceNumber(v string) *SendMessageBatchResultEntry { + s.SequenceNumber = &v + return s +} + type SendMessageInput struct { _ struct{} `type:"structure"` @@ -2833,18 +3607,98 @@ type SendMessageInput struct { // Messages with a positive DelaySeconds value become available for processing // after the delay time is finished. If you don't specify a value, the default // value for the queue applies. + // + // When you set FifoQueue, you can't set DelaySeconds per message. You can set + // this parameter only on a queue level. DelaySeconds *int64 `type:"integer"` // Each message attribute consists of a Name, Type, and Value. For more information, - // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV). + // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV) + // in the Amazon SQS Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` // The message to send. String maximum 256 KB in size. For a list of allowed - // characters, see the preceding important note. + // characters, see the preceding note. // // MessageBody is a required field MessageBody *string `type:"string" required:"true"` + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The token used for deduplication of sent messages. If a message with a particular + // MessageDeduplicationId is sent successfully, any messages sent with the same + // MessageDeduplicationId are accepted successfully but aren't delivered during + // the 5-minute deduplication interval. For more information, see Exactly-Once + // Processing (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. + // + // * Every message must have a unique MessageDeduplicationId, + // + // You may provide a MessageDeduplicationId explicitly. + // + // If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication + // for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId + // using the body of the message (but not the attributes of the message). + // + // + // If you don't provide a MessageDeduplicationId and the queue doesn't have + // ContentBasedDeduplication set, the action fails with an error. + // + // If the queue has ContentBasedDeduplication set, your MessageDeduplicationId + // overrides the generated one. + // + // * When ContentBasedDeduplication is in effect, messages with identical + // content sent within the deduplication interval are treated as duplicates + // and only one copy of the message is delivered. + // + // * You can also use ContentBasedDeduplication for messages with identical + // content to be treated as duplicates. + // + // * If you send one message with ContentBasedDeduplication enabled and then + // another message with a MessageDeduplicationId that is the same as the + // one generated for the first MessageDeduplicationId, the two messages are + // treated as duplicates and only one copy of the message is delivered. + // + // The MessageDeduplicationId is available to the recipient of the message (this + // can be useful for troubleshooting delivery issues). + // + // If a message is sent successfully but the acknowledgdment is lost and the + // message is resent with the same MessageDeduplicationId after the deduplication + // interval, Amazon SQS can't detect duplicate messages. + // + // The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId + // can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagededuplicationid-property) + // in the Amazon Simple Queue Service Developer Guide. + MessageDeduplicationId *string `type:"string"` + + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The tag that specifies that a message belongs to a specific message group. + // Messages that belong to the same message group are processed in a FIFO manner + // (however, messages in different message groups might be processed out of + // order). To interleave multiple ordered streams within a single queue, use + // MessageGroupId values (for example, session data for multiple users). In + // this scenario, multiple readers can process the queue, but the session data + // of each user is processed in a FIFO fashion. + // + // * You must associate a non-empty MessageGroupId with a message. If you + // don't provide a MessageGroupId, the action fails. + // + // * ReceiveMessage might return messages with multiple MessageGroupId values. + // For each MessageGroupId, the messages are sorted by time sent. The caller + // can't specify a MessageGroupId. + // + // The length of MessageGroupId is 128 characters. Valid values are alphanumeric + // characters and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using MessageGroupId, see Using the MessageGroupId + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagegroupid-property) + // in the Amazon Simple Queue Service Developer Guide. + MessageGroupId *string `type:"string"` + // The URL of the Amazon SQS queue to take action on. // // Queue URLs are case-sensitive. @@ -2889,6 +3743,42 @@ func (s *SendMessageInput) Validate() error { return nil } +// SetDelaySeconds sets the DelaySeconds field's value. +func (s *SendMessageInput) SetDelaySeconds(v int64) *SendMessageInput { + s.DelaySeconds = &v + return s +} + +// SetMessageAttributes sets the MessageAttributes field's value. +func (s *SendMessageInput) SetMessageAttributes(v map[string]*MessageAttributeValue) *SendMessageInput { + s.MessageAttributes = v + return s +} + +// SetMessageBody sets the MessageBody field's value. +func (s *SendMessageInput) SetMessageBody(v string) *SendMessageInput { + s.MessageBody = &v + return s +} + +// SetMessageDeduplicationId sets the MessageDeduplicationId field's value. +func (s *SendMessageInput) SetMessageDeduplicationId(v string) *SendMessageInput { + s.MessageDeduplicationId = &v + return s +} + +// SetMessageGroupId sets the MessageGroupId field's value. +func (s *SendMessageInput) SetMessageGroupId(v string) *SendMessageInput { + s.MessageGroupId = &v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *SendMessageInput) SetQueueUrl(v string) *SendMessageInput { + s.QueueUrl = &v + return s +} + // The MD5OfMessageBody and MessageId elements. type SendMessageOutput struct { _ struct{} `type:"structure"` @@ -2896,19 +3786,27 @@ type SendMessageOutput struct { // An MD5 digest of the non-URL-encoded message attribute string. This can be // used to verify that Amazon SQS received the message correctly. Amazon SQS // first URL decodes the message before creating the MD5 digest. For information - // about MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // about MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageAttributes *string `type:"string"` // An MD5 digest of the non-URL-encoded message body string. This can be used // to verify that Amazon SQS received the message correctly. Amazon SQS first // URL decodes the message before creating the MD5 digest. For information about - // MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageBody *string `type:"string"` // An element containing the message ID of the message sent to the queue. For // more information, see Queue and Message Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html) // in the Amazon SQS Developer Guide. MessageId *string `type:"string"` + + // This element applies only to FIFO (first-in-first-out) queues. + // + // A large, non-consecutive number that Amazon SQS assigns to each message. + // + // The length of SequenceNumber is 128 bits. SequenceNumber continues to increase + // for a particular MessageGroupId. + SequenceNumber *string `type:"string"` } // String returns the string representation @@ -2921,45 +3819,107 @@ func (s SendMessageOutput) GoString() string { return s.String() } +// SetMD5OfMessageAttributes sets the MD5OfMessageAttributes field's value. +func (s *SendMessageOutput) SetMD5OfMessageAttributes(v string) *SendMessageOutput { + s.MD5OfMessageAttributes = &v + return s +} + +// SetMD5OfMessageBody sets the MD5OfMessageBody field's value. +func (s *SendMessageOutput) SetMD5OfMessageBody(v string) *SendMessageOutput { + s.MD5OfMessageBody = &v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *SendMessageOutput) SetMessageId(v string) *SendMessageOutput { + s.MessageId = &v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *SendMessageOutput) SetSequenceNumber(v string) *SendMessageOutput { + s.SequenceNumber = &v + return s +} + type SetQueueAttributesInput struct { _ struct{} `type:"structure"` // A map of attributes to set. // // The following lists the names, descriptions, and values of the special request - // parameters the SetQueueAttributes action uses: + // parameters that the SetQueueAttributes action uses: // - // DelaySeconds - The time in seconds that the delivery of all messages in - // the queue will be delayed. An integer from 0 to 900 (15 minutes). The default - // for this attribute is 0 (zero). + // * DelaySeconds - The number of seconds for which the delivery of all messages + // in the queue is delayed. An integer from 0 to 900 (15 minutes). The default + // is 0 (zero). // - // MaximumMessageSize - The limit of how many bytes a message can contain before - // Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes - // (256 KiB). The default for this attribute is 262144 (256 KiB). + // * MaximumMessageSize - The limit of how many bytes a message can contain + // before Amazon SQS rejects it. An integer from 1,024 bytes (1 KiB) up to + // 262,144 bytes (256 KiB). The default is 262,144 (256 KiB). // - // MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. - // Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The - // default for this attribute is 345600 (4 days). + // * MessageRetentionPeriod - The number of seconds for which Amazon SQS + // retains a message. An integer representing seconds, from 60 (1 minute) + // to 120,9600 (14 days). The default is 345,600 (4 days). // - // Policy - The queue's policy. A valid AWS policy. For more information about - // policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) - // in the Amazon IAM User Guide. + // * Policy - The queue's policy. A valid AWS policy. For more information + // about policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) + // in the Amazon IAM User Guide. // - // ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call - // will wait for a message to arrive. An integer from 0 to 20 (seconds). The - // default for this attribute is 0. + // * ReceiveMessageWaitTimeSeconds - The number of seconds for which a ReceiveMessage + // action will wait for a message to arrive. An integer from 0 to 20 (seconds). + // The default is 0. // - // VisibilityTimeout - The visibility timeout for the queue. An integer from - // 0 to 43200 (12 hours). The default for this attribute is 30. For more information - // about visibility timeout, see Visibility Timeout in the Amazon SQS Developer - // Guide. + // * RedrivePolicy - The parameters for the dead letter queue functionality + // of the source queue. For more information about the redrive policy and + // dead letter queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) + // in the Amazon SQS Developer Guide. // - // RedrivePolicy - The parameters for dead letter queue functionality of the - // source queue. For more information about RedrivePolicy and dead letter queues, - // see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide. + // The dead letter queue of a FIFO queue must also be a FIFO queue. Similarly, + // the dead letter queue of a standard queue must also be a standard queue. // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, + // * VisibilityTimeout - The visibility timeout for the queue. An integer + // from 0 to 43200 (12 hours). The default is 30. For more information about + // the visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) + // in the Amazon SQS Developer Guide. + // + // The following attribute applies only to FIFO (first-in-first-out) queues + // (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): + // + // * ContentBasedDeduplication - Enables content-based deduplication. For + // more information, see Exactly-Once Processing (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. + // + // Every message must have a unique MessageDeduplicationId, + // + // You may provide a MessageDeduplicationId explicitly. + // + // If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication + // for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId + // using the body of the message (but not the attributes of the message). + // + // + // If you don't provide a MessageDeduplicationId and the queue doesn't have + // ContentBasedDeduplication set, the action fails with an error. + // + // If the queue has ContentBasedDeduplication set, your MessageDeduplicationId + // overrides the generated one. + // + // When ContentBasedDeduplication is in effect, messages with identical content + // sent within the deduplication interval are treated as duplicates and only + // one copy of the message is delivered. + // + // You can also use ContentBasedDeduplication for messages with identical content + // to be treated as duplicates. + // + // If you send one message with ContentBasedDeduplication enabled and then another + // message with a MessageDeduplicationId that is the same as the one generated + // for the first MessageDeduplicationId, the two messages are treated as + // duplicates and only one copy of the message is delivered. + // + // Any other valid special request parameters that are specified (such as ApproximateNumberOfMessages, + // ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, // CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored. // // Attributes is a required field @@ -2999,6 +3959,18 @@ func (s *SetQueueAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *SetQueueAttributesInput) SetAttributes(v map[string]*string) *SetQueueAttributesInput { + s.Attributes = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *SetQueueAttributesInput) SetQueueUrl(v string) *SetQueueAttributesInput { + s.QueueUrl = &v + return s +} + type SetQueueAttributesOutput struct { _ struct{} `type:"structure"` } @@ -3014,6 +3986,32 @@ func (s SetQueueAttributesOutput) GoString() string { } const ( + // MessageSystemAttributeNameSenderId is a MessageSystemAttributeName enum value + MessageSystemAttributeNameSenderId = "SenderId" + + // MessageSystemAttributeNameSentTimestamp is a MessageSystemAttributeName enum value + MessageSystemAttributeNameSentTimestamp = "SentTimestamp" + + // MessageSystemAttributeNameApproximateReceiveCount is a MessageSystemAttributeName enum value + MessageSystemAttributeNameApproximateReceiveCount = "ApproximateReceiveCount" + + // MessageSystemAttributeNameApproximateFirstReceiveTimestamp is a MessageSystemAttributeName enum value + MessageSystemAttributeNameApproximateFirstReceiveTimestamp = "ApproximateFirstReceiveTimestamp" + + // MessageSystemAttributeNameSequenceNumber is a MessageSystemAttributeName enum value + MessageSystemAttributeNameSequenceNumber = "SequenceNumber" + + // MessageSystemAttributeNameMessageDeduplicationId is a MessageSystemAttributeName enum value + MessageSystemAttributeNameMessageDeduplicationId = "MessageDeduplicationId" + + // MessageSystemAttributeNameMessageGroupId is a MessageSystemAttributeName enum value + MessageSystemAttributeNameMessageGroupId = "MessageGroupId" +) + +const ( + // QueueAttributeNameAll is a QueueAttributeName enum value + QueueAttributeNameAll = "All" + // QueueAttributeNamePolicy is a QueueAttributeName enum value QueueAttributeNamePolicy = "Policy" @@ -3052,4 +4050,10 @@ const ( // QueueAttributeNameRedrivePolicy is a QueueAttributeName enum value QueueAttributeNameRedrivePolicy = "RedrivePolicy" + + // QueueAttributeNameFifoQueue is a QueueAttributeName enum value + QueueAttributeNameFifoQueue = "FifoQueue" + + // QueueAttributeNameContentBasedDeduplication is a QueueAttributeName enum value + QueueAttributeNameContentBasedDeduplication = "ContentBasedDeduplication" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go index aaf456caa..8751dc7ae 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go @@ -20,31 +20,39 @@ import ( // between distributed components of your applications that perform different // tasks without losing messages or requiring each component to be always available. // -// Helpful Links: +// Topics // -// Current WSDL (2012-11-05) (http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl) +// * // -// Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html) +// * // -// Amazon SQS product page (http://aws.amazon.com/sqs/) +// * CommonParameters // -// Using Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html) +// * CommonErrors // -// Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) +// Helpful Links // -// Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region) +// * Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html) // -// We also provide SDKs that enable you to access Amazon SQS from your preferred +// * Amazon SQS product page (http://aws.amazon.com/sqs/) +// +// * Using Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html) +// +// * Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) +// +// * Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region) +// +// We also provide SDKs that enable you to access Amazon SQS from your preferred // programming language. The SDKs contain functionality that automatically takes // care of tasks such as: // -// Cryptographically signing your service requests +// * Cryptographically signing your service requests // -// Retrying requests +// * Retrying requests // -// Handling error responses +// * Handling error responses // -// For a list of available SDKs, go to Tools for Amazon Web Services (http://aws.amazon.com/tools/). +// For a list of available SDKs, see Tools for Amazon Web Services (http://aws.amazon.com/tools/). //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type SQS struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go index 040b5d613..5b0cf821d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go @@ -66,7 +66,7 @@ func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // and Value=Production, Pre-Production, or Test. Each resource can have a maximum // of 10 tags. // -// We recommend that you devise a set of tag keys that meets your needs for +// We recommend that you devise a set of tag keys that meets your needs for // each resource type. Using a consistent set of tag keys makes it easier for // you to manage your resources. You can search and filter the resources based // on the tags you add. Tags don't have any semantic meaning to Amazon EC2 and @@ -2252,6 +2252,60 @@ func (s Activation) GoString() string { return s.String() } +// SetActivationId sets the ActivationId field's value. +func (s *Activation) SetActivationId(v string) *Activation { + s.ActivationId = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *Activation) SetCreatedDate(v time.Time) *Activation { + s.CreatedDate = &v + return s +} + +// SetDefaultInstanceName sets the DefaultInstanceName field's value. +func (s *Activation) SetDefaultInstanceName(v string) *Activation { + s.DefaultInstanceName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Activation) SetDescription(v string) *Activation { + s.Description = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *Activation) SetExpirationDate(v time.Time) *Activation { + s.ExpirationDate = &v + return s +} + +// SetExpired sets the Expired field's value. +func (s *Activation) SetExpired(v bool) *Activation { + s.Expired = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *Activation) SetIamRole(v string) *Activation { + s.IamRole = &v + return s +} + +// SetRegistrationLimit sets the RegistrationLimit field's value. +func (s *Activation) SetRegistrationLimit(v int64) *Activation { + s.RegistrationLimit = &v + return s +} + +// SetRegistrationsCount sets the RegistrationsCount field's value. +func (s *Activation) SetRegistrationsCount(v int64) *Activation { + s.RegistrationsCount = &v + return s +} + type AddTagsToResourceInput struct { _ struct{} `type:"structure"` @@ -2312,6 +2366,24 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsToResourceInput) SetResourceId(v string) *AddTagsToResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *AddTagsToResourceInput) SetResourceType(v string) *AddTagsToResourceInput { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + type AddTagsToResourceOutput struct { _ struct{} `type:"structure"` } @@ -2347,6 +2419,18 @@ func (s Association) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *Association) SetInstanceId(v string) *Association { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *Association) SetName(v string) *Association { + s.Name = &v + return s +} + // Describes the parameters for a document. type AssociationDescription struct { _ struct{} `type:"structure"` @@ -2377,6 +2461,36 @@ func (s AssociationDescription) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *AssociationDescription) SetDate(v time.Time) *AssociationDescription { + s.Date = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociationDescription) SetInstanceId(v string) *AssociationDescription { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssociationDescription) SetName(v string) *AssociationDescription { + s.Name = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *AssociationDescription) SetParameters(v map[string][]*string) *AssociationDescription { + s.Parameters = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AssociationDescription) SetStatus(v *AssociationStatus) *AssociationDescription { + s.Status = v + return s +} + // Describes a filter. type AssociationFilter struct { _ struct{} `type:"structure"` @@ -2421,6 +2535,18 @@ func (s *AssociationFilter) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *AssociationFilter) SetKey(v string) *AssociationFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AssociationFilter) SetValue(v string) *AssociationFilter { + s.Value = &v + return s +} + // Describes an association status. type AssociationStatus struct { _ struct{} `type:"structure"` @@ -2473,6 +2599,30 @@ func (s *AssociationStatus) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *AssociationStatus) SetAdditionalInfo(v string) *AssociationStatus { + s.AdditionalInfo = &v + return s +} + +// SetDate sets the Date field's value. +func (s *AssociationStatus) SetDate(v time.Time) *AssociationStatus { + s.Date = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *AssociationStatus) SetMessage(v string) *AssociationStatus { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssociationStatus) SetName(v string) *AssociationStatus { + s.Name = &v + return s +} + type CancelCommandInput struct { _ struct{} `type:"structure"` @@ -2516,6 +2666,18 @@ func (s *CancelCommandInput) Validate() error { return nil } +// SetCommandId sets the CommandId field's value. +func (s *CancelCommandInput) SetCommandId(v string) *CancelCommandInput { + s.CommandId = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *CancelCommandInput) SetInstanceIds(v []*string) *CancelCommandInput { + s.InstanceIds = v + return s +} + // Whether or not the command was successfully canceled. There is no guarantee // that a request can be canceled. type CancelCommandOutput struct { @@ -2590,6 +2752,78 @@ func (s Command) GoString() string { return s.String() } +// SetCommandId sets the CommandId field's value. +func (s *Command) SetCommandId(v string) *Command { + s.CommandId = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *Command) SetComment(v string) *Command { + s.Comment = &v + return s +} + +// SetDocumentName sets the DocumentName field's value. +func (s *Command) SetDocumentName(v string) *Command { + s.DocumentName = &v + return s +} + +// SetExpiresAfter sets the ExpiresAfter field's value. +func (s *Command) SetExpiresAfter(v time.Time) *Command { + s.ExpiresAfter = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *Command) SetInstanceIds(v []*string) *Command { + s.InstanceIds = v + return s +} + +// SetNotificationConfig sets the NotificationConfig field's value. +func (s *Command) SetNotificationConfig(v *NotificationConfig) *Command { + s.NotificationConfig = v + return s +} + +// SetOutputS3BucketName sets the OutputS3BucketName field's value. +func (s *Command) SetOutputS3BucketName(v string) *Command { + s.OutputS3BucketName = &v + return s +} + +// SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value. +func (s *Command) SetOutputS3KeyPrefix(v string) *Command { + s.OutputS3KeyPrefix = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *Command) SetParameters(v map[string][]*string) *Command { + s.Parameters = v + return s +} + +// SetRequestedDateTime sets the RequestedDateTime field's value. +func (s *Command) SetRequestedDateTime(v time.Time) *Command { + s.RequestedDateTime = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *Command) SetServiceRole(v string) *Command { + s.ServiceRole = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Command) SetStatus(v string) *Command { + s.Status = &v + return s +} + // Describes a command filter. type CommandFilter struct { _ struct{} `type:"structure"` @@ -2634,6 +2868,18 @@ func (s *CommandFilter) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *CommandFilter) SetKey(v string) *CommandFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *CommandFilter) SetValue(v string) *CommandFilter { + s.Value = &v + return s +} + // An invocation is copy of a command sent to a specific instance. A command // can apply to one or more instances. A command invocation applies to one instance. // For example, if a user executes SendCommand against three instances, then @@ -2685,6 +2931,66 @@ func (s CommandInvocation) GoString() string { return s.String() } +// SetCommandId sets the CommandId field's value. +func (s *CommandInvocation) SetCommandId(v string) *CommandInvocation { + s.CommandId = &v + return s +} + +// SetCommandPlugins sets the CommandPlugins field's value. +func (s *CommandInvocation) SetCommandPlugins(v []*CommandPlugin) *CommandInvocation { + s.CommandPlugins = v + return s +} + +// SetComment sets the Comment field's value. +func (s *CommandInvocation) SetComment(v string) *CommandInvocation { + s.Comment = &v + return s +} + +// SetDocumentName sets the DocumentName field's value. +func (s *CommandInvocation) SetDocumentName(v string) *CommandInvocation { + s.DocumentName = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CommandInvocation) SetInstanceId(v string) *CommandInvocation { + s.InstanceId = &v + return s +} + +// SetNotificationConfig sets the NotificationConfig field's value. +func (s *CommandInvocation) SetNotificationConfig(v *NotificationConfig) *CommandInvocation { + s.NotificationConfig = v + return s +} + +// SetRequestedDateTime sets the RequestedDateTime field's value. +func (s *CommandInvocation) SetRequestedDateTime(v time.Time) *CommandInvocation { + s.RequestedDateTime = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *CommandInvocation) SetServiceRole(v string) *CommandInvocation { + s.ServiceRole = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CommandInvocation) SetStatus(v string) *CommandInvocation { + s.Status = &v + return s +} + +// SetTraceOutput sets the TraceOutput field's value. +func (s *CommandInvocation) SetTraceOutput(v string) *CommandInvocation { + s.TraceOutput = &v + return s +} + // Describes plugin details. type CommandPlugin struct { _ struct{} `type:"structure"` @@ -2729,6 +3035,54 @@ func (s CommandPlugin) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *CommandPlugin) SetName(v string) *CommandPlugin { + s.Name = &v + return s +} + +// SetOutput sets the Output field's value. +func (s *CommandPlugin) SetOutput(v string) *CommandPlugin { + s.Output = &v + return s +} + +// SetOutputS3BucketName sets the OutputS3BucketName field's value. +func (s *CommandPlugin) SetOutputS3BucketName(v string) *CommandPlugin { + s.OutputS3BucketName = &v + return s +} + +// SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value. +func (s *CommandPlugin) SetOutputS3KeyPrefix(v string) *CommandPlugin { + s.OutputS3KeyPrefix = &v + return s +} + +// SetResponseCode sets the ResponseCode field's value. +func (s *CommandPlugin) SetResponseCode(v int64) *CommandPlugin { + s.ResponseCode = &v + return s +} + +// SetResponseFinishDateTime sets the ResponseFinishDateTime field's value. +func (s *CommandPlugin) SetResponseFinishDateTime(v time.Time) *CommandPlugin { + s.ResponseFinishDateTime = &v + return s +} + +// SetResponseStartDateTime sets the ResponseStartDateTime field's value. +func (s *CommandPlugin) SetResponseStartDateTime(v time.Time) *CommandPlugin { + s.ResponseStartDateTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CommandPlugin) SetStatus(v string) *CommandPlugin { + s.Status = &v + return s +} + type CreateActivationInput struct { _ struct{} `type:"structure"` @@ -2781,6 +3135,36 @@ func (s *CreateActivationInput) Validate() error { return nil } +// SetDefaultInstanceName sets the DefaultInstanceName field's value. +func (s *CreateActivationInput) SetDefaultInstanceName(v string) *CreateActivationInput { + s.DefaultInstanceName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateActivationInput) SetDescription(v string) *CreateActivationInput { + s.Description = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *CreateActivationInput) SetExpirationDate(v time.Time) *CreateActivationInput { + s.ExpirationDate = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *CreateActivationInput) SetIamRole(v string) *CreateActivationInput { + s.IamRole = &v + return s +} + +// SetRegistrationLimit sets the RegistrationLimit field's value. +func (s *CreateActivationInput) SetRegistrationLimit(v int64) *CreateActivationInput { + s.RegistrationLimit = &v + return s +} + type CreateActivationOutput struct { _ struct{} `type:"structure"` @@ -2803,6 +3187,18 @@ func (s CreateActivationOutput) GoString() string { return s.String() } +// SetActivationCode sets the ActivationCode field's value. +func (s *CreateActivationOutput) SetActivationCode(v string) *CreateActivationOutput { + s.ActivationCode = &v + return s +} + +// SetActivationId sets the ActivationId field's value. +func (s *CreateActivationOutput) SetActivationId(v string) *CreateActivationOutput { + s.ActivationId = &v + return s +} + type CreateAssociationBatchInput struct { _ struct{} `type:"structure"` @@ -2835,6 +3231,12 @@ func (s *CreateAssociationBatchInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *CreateAssociationBatchInput) SetEntries(v []*CreateAssociationBatchRequestEntry) *CreateAssociationBatchInput { + s.Entries = v + return s +} + type CreateAssociationBatchOutput struct { _ struct{} `type:"structure"` @@ -2855,6 +3257,18 @@ func (s CreateAssociationBatchOutput) GoString() string { return s.String() } +// SetFailed sets the Failed field's value. +func (s *CreateAssociationBatchOutput) SetFailed(v []*FailedCreateAssociation) *CreateAssociationBatchOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *CreateAssociationBatchOutput) SetSuccessful(v []*AssociationDescription) *CreateAssociationBatchOutput { + s.Successful = v + return s +} + // Describes the association of an SSM document and an instance. type CreateAssociationBatchRequestEntry struct { _ struct{} `type:"structure"` @@ -2879,6 +3293,24 @@ func (s CreateAssociationBatchRequestEntry) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *CreateAssociationBatchRequestEntry) SetInstanceId(v string) *CreateAssociationBatchRequestEntry { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAssociationBatchRequestEntry) SetName(v string) *CreateAssociationBatchRequestEntry { + s.Name = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateAssociationBatchRequestEntry) SetParameters(v map[string][]*string) *CreateAssociationBatchRequestEntry { + s.Parameters = v + return s +} + type CreateAssociationInput struct { _ struct{} `type:"structure"` @@ -2922,6 +3354,24 @@ func (s *CreateAssociationInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *CreateAssociationInput) SetInstanceId(v string) *CreateAssociationInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAssociationInput) SetName(v string) *CreateAssociationInput { + s.Name = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateAssociationInput) SetParameters(v map[string][]*string) *CreateAssociationInput { + s.Parameters = v + return s +} + type CreateAssociationOutput struct { _ struct{} `type:"structure"` @@ -2939,6 +3389,12 @@ func (s CreateAssociationOutput) GoString() string { return s.String() } +// SetAssociationDescription sets the AssociationDescription field's value. +func (s *CreateAssociationOutput) SetAssociationDescription(v *AssociationDescription) *CreateAssociationOutput { + s.AssociationDescription = v + return s +} + type CreateDocumentInput struct { _ struct{} `type:"structure"` @@ -2982,6 +3438,18 @@ func (s *CreateDocumentInput) Validate() error { return nil } +// SetContent sets the Content field's value. +func (s *CreateDocumentInput) SetContent(v string) *CreateDocumentInput { + s.Content = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDocumentInput) SetName(v string) *CreateDocumentInput { + s.Name = &v + return s +} + type CreateDocumentOutput struct { _ struct{} `type:"structure"` @@ -2999,6 +3467,12 @@ func (s CreateDocumentOutput) GoString() string { return s.String() } +// SetDocumentDescription sets the DocumentDescription field's value. +func (s *CreateDocumentOutput) SetDocumentDescription(v *DocumentDescription) *CreateDocumentOutput { + s.DocumentDescription = v + return s +} + type DeleteActivationInput struct { _ struct{} `type:"structure"` @@ -3031,6 +3505,12 @@ func (s *DeleteActivationInput) Validate() error { return nil } +// SetActivationId sets the ActivationId field's value. +func (s *DeleteActivationInput) SetActivationId(v string) *DeleteActivationInput { + s.ActivationId = &v + return s +} + type DeleteActivationOutput struct { _ struct{} `type:"structure"` } @@ -3085,6 +3565,18 @@ func (s *DeleteAssociationInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *DeleteAssociationInput) SetInstanceId(v string) *DeleteAssociationInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeleteAssociationInput) SetName(v string) *DeleteAssociationInput { + s.Name = &v + return s +} + type DeleteAssociationOutput struct { _ struct{} `type:"structure"` } @@ -3131,6 +3623,12 @@ func (s *DeleteDocumentInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeleteDocumentInput) SetName(v string) *DeleteDocumentInput { + s.Name = &v + return s +} + type DeleteDocumentOutput struct { _ struct{} `type:"structure"` } @@ -3178,6 +3676,12 @@ func (s *DeregisterManagedInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *DeregisterManagedInstanceInput) SetInstanceId(v string) *DeregisterManagedInstanceInput { + s.InstanceId = &v + return s +} + type DeregisterManagedInstanceOutput struct { _ struct{} `type:"structure"` } @@ -3213,6 +3717,18 @@ func (s DescribeActivationsFilter) GoString() string { return s.String() } +// SetFilterKey sets the FilterKey field's value. +func (s *DescribeActivationsFilter) SetFilterKey(v string) *DescribeActivationsFilter { + s.FilterKey = &v + return s +} + +// SetFilterValues sets the FilterValues field's value. +func (s *DescribeActivationsFilter) SetFilterValues(v []*string) *DescribeActivationsFilter { + s.FilterValues = v + return s +} + type DescribeActivationsInput struct { _ struct{} `type:"structure"` @@ -3251,6 +3767,24 @@ func (s *DescribeActivationsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeActivationsInput) SetFilters(v []*DescribeActivationsFilter) *DescribeActivationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeActivationsInput) SetMaxResults(v int64) *DescribeActivationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeActivationsInput) SetNextToken(v string) *DescribeActivationsInput { + s.NextToken = &v + return s +} + type DescribeActivationsOutput struct { _ struct{} `type:"structure"` @@ -3272,6 +3806,18 @@ func (s DescribeActivationsOutput) GoString() string { return s.String() } +// SetActivationList sets the ActivationList field's value. +func (s *DescribeActivationsOutput) SetActivationList(v []*Activation) *DescribeActivationsOutput { + s.ActivationList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeActivationsOutput) SetNextToken(v string) *DescribeActivationsOutput { + s.NextToken = &v + return s +} + type DescribeAssociationInput struct { _ struct{} `type:"structure"` @@ -3312,6 +3858,18 @@ func (s *DescribeAssociationInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeAssociationInput) SetInstanceId(v string) *DescribeAssociationInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeAssociationInput) SetName(v string) *DescribeAssociationInput { + s.Name = &v + return s +} + type DescribeAssociationOutput struct { _ struct{} `type:"structure"` @@ -3329,6 +3887,12 @@ func (s DescribeAssociationOutput) GoString() string { return s.String() } +// SetAssociationDescription sets the AssociationDescription field's value. +func (s *DescribeAssociationOutput) SetAssociationDescription(v *AssociationDescription) *DescribeAssociationOutput { + s.AssociationDescription = v + return s +} + type DescribeDocumentInput struct { _ struct{} `type:"structure"` @@ -3361,6 +3925,12 @@ func (s *DescribeDocumentInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DescribeDocumentInput) SetName(v string) *DescribeDocumentInput { + s.Name = &v + return s +} + type DescribeDocumentOutput struct { _ struct{} `type:"structure"` @@ -3378,6 +3948,12 @@ func (s DescribeDocumentOutput) GoString() string { return s.String() } +// SetDocument sets the Document field's value. +func (s *DescribeDocumentOutput) SetDocument(v *DocumentDescription) *DescribeDocumentOutput { + s.Document = v + return s +} + type DescribeDocumentPermissionInput struct { _ struct{} `type:"structure"` @@ -3418,6 +3994,18 @@ func (s *DescribeDocumentPermissionInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DescribeDocumentPermissionInput) SetName(v string) *DescribeDocumentPermissionInput { + s.Name = &v + return s +} + +// SetPermissionType sets the PermissionType field's value. +func (s *DescribeDocumentPermissionInput) SetPermissionType(v string) *DescribeDocumentPermissionInput { + s.PermissionType = &v + return s +} + type DescribeDocumentPermissionOutput struct { _ struct{} `type:"structure"` @@ -3436,6 +4024,12 @@ func (s DescribeDocumentPermissionOutput) GoString() string { return s.String() } +// SetAccountIds sets the AccountIds field's value. +func (s *DescribeDocumentPermissionOutput) SetAccountIds(v []*string) *DescribeDocumentPermissionOutput { + s.AccountIds = v + return s +} + type DescribeInstanceInformationInput struct { _ struct{} `type:"structure"` @@ -3488,6 +4082,24 @@ func (s *DescribeInstanceInformationInput) Validate() error { return nil } +// SetInstanceInformationFilterList sets the InstanceInformationFilterList field's value. +func (s *DescribeInstanceInformationInput) SetInstanceInformationFilterList(v []*InstanceInformationFilter) *DescribeInstanceInformationInput { + s.InstanceInformationFilterList = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstanceInformationInput) SetMaxResults(v int64) *DescribeInstanceInformationInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceInformationInput) SetNextToken(v string) *DescribeInstanceInformationInput { + s.NextToken = &v + return s +} + type DescribeInstanceInformationOutput struct { _ struct{} `type:"structure"` @@ -3509,6 +4121,18 @@ func (s DescribeInstanceInformationOutput) GoString() string { return s.String() } +// SetInstanceInformationList sets the InstanceInformationList field's value. +func (s *DescribeInstanceInformationOutput) SetInstanceInformationList(v []*InstanceInformation) *DescribeInstanceInformationOutput { + s.InstanceInformationList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceInformationOutput) SetNextToken(v string) *DescribeInstanceInformationOutput { + s.NextToken = &v + return s +} + // Describes an SSM document. type DocumentDescription struct { _ struct{} `type:"structure"` @@ -3521,12 +4145,12 @@ type DocumentDescription struct { // The Sha256 or Sha1 hash created by the system when the document was created. // - // Sha1 hashes have been deprecated. + // Sha1 hashes have been deprecated. Hash *string `type:"string"` // Sha256 or Sha1. // - // Sha1 hashes have been deprecated. + // Sha1 hashes have been deprecated. HashType *string `type:"string" enum:"DocumentHashType"` // The name of the SSM document. @@ -3558,6 +4182,66 @@ func (s DocumentDescription) GoString() string { return s.String() } +// SetCreatedDate sets the CreatedDate field's value. +func (s *DocumentDescription) SetCreatedDate(v time.Time) *DocumentDescription { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DocumentDescription) SetDescription(v string) *DocumentDescription { + s.Description = &v + return s +} + +// SetHash sets the Hash field's value. +func (s *DocumentDescription) SetHash(v string) *DocumentDescription { + s.Hash = &v + return s +} + +// SetHashType sets the HashType field's value. +func (s *DocumentDescription) SetHashType(v string) *DocumentDescription { + s.HashType = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentDescription) SetName(v string) *DocumentDescription { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *DocumentDescription) SetOwner(v string) *DocumentDescription { + s.Owner = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DocumentDescription) SetParameters(v []*DocumentParameter) *DocumentDescription { + s.Parameters = v + return s +} + +// SetPlatformTypes sets the PlatformTypes field's value. +func (s *DocumentDescription) SetPlatformTypes(v []*string) *DocumentDescription { + s.PlatformTypes = v + return s +} + +// SetSha1 sets the Sha1 field's value. +func (s *DocumentDescription) SetSha1(v string) *DocumentDescription { + s.Sha1 = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DocumentDescription) SetStatus(v string) *DocumentDescription { + s.Status = &v + return s +} + // Describes a filter. type DocumentFilter struct { _ struct{} `type:"structure"` @@ -3602,6 +4286,18 @@ func (s *DocumentFilter) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *DocumentFilter) SetKey(v string) *DocumentFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DocumentFilter) SetValue(v string) *DocumentFilter { + s.Value = &v + return s +} + // Describes the name of an SSM document. type DocumentIdentifier struct { _ struct{} `type:"structure"` @@ -3626,6 +4322,24 @@ func (s DocumentIdentifier) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *DocumentIdentifier) SetName(v string) *DocumentIdentifier { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *DocumentIdentifier) SetOwner(v string) *DocumentIdentifier { + s.Owner = &v + return s +} + +// SetPlatformTypes sets the PlatformTypes field's value. +func (s *DocumentIdentifier) SetPlatformTypes(v []*string) *DocumentIdentifier { + s.PlatformTypes = v + return s +} + // Parameters specified in the SSM document that execute on the server when // the command is run. type DocumentParameter struct { @@ -3656,6 +4370,30 @@ func (s DocumentParameter) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *DocumentParameter) SetDefaultValue(v string) *DocumentParameter { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DocumentParameter) SetDescription(v string) *DocumentParameter { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentParameter) SetName(v string) *DocumentParameter { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *DocumentParameter) SetType(v string) *DocumentParameter { + s.Type = &v + return s +} + // Describes a failed association. type FailedCreateAssociation struct { _ struct{} `type:"structure"` @@ -3680,6 +4418,24 @@ func (s FailedCreateAssociation) GoString() string { return s.String() } +// SetEntry sets the Entry field's value. +func (s *FailedCreateAssociation) SetEntry(v *CreateAssociationBatchRequestEntry) *FailedCreateAssociation { + s.Entry = v + return s +} + +// SetFault sets the Fault field's value. +func (s *FailedCreateAssociation) SetFault(v string) *FailedCreateAssociation { + s.Fault = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *FailedCreateAssociation) SetMessage(v string) *FailedCreateAssociation { + s.Message = &v + return s +} + type GetDocumentInput struct { _ struct{} `type:"structure"` @@ -3712,6 +4468,12 @@ func (s *GetDocumentInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *GetDocumentInput) SetName(v string) *GetDocumentInput { + s.Name = &v + return s +} + type GetDocumentOutput struct { _ struct{} `type:"structure"` @@ -3732,6 +4494,18 @@ func (s GetDocumentOutput) GoString() string { return s.String() } +// SetContent sets the Content field's value. +func (s *GetDocumentOutput) SetContent(v string) *GetDocumentOutput { + s.Content = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetDocumentOutput) SetName(v string) *GetDocumentOutput { + s.Name = &v + return s +} + // Describes a filter for a specific list of instances. type InstanceInformation struct { _ struct{} `type:"structure"` @@ -3793,6 +4567,96 @@ func (s InstanceInformation) GoString() string { return s.String() } +// SetActivationId sets the ActivationId field's value. +func (s *InstanceInformation) SetActivationId(v string) *InstanceInformation { + s.ActivationId = &v + return s +} + +// SetAgentVersion sets the AgentVersion field's value. +func (s *InstanceInformation) SetAgentVersion(v string) *InstanceInformation { + s.AgentVersion = &v + return s +} + +// SetComputerName sets the ComputerName field's value. +func (s *InstanceInformation) SetComputerName(v string) *InstanceInformation { + s.ComputerName = &v + return s +} + +// SetIPAddress sets the IPAddress field's value. +func (s *InstanceInformation) SetIPAddress(v string) *InstanceInformation { + s.IPAddress = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *InstanceInformation) SetIamRole(v string) *InstanceInformation { + s.IamRole = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceInformation) SetInstanceId(v string) *InstanceInformation { + s.InstanceId = &v + return s +} + +// SetIsLatestVersion sets the IsLatestVersion field's value. +func (s *InstanceInformation) SetIsLatestVersion(v bool) *InstanceInformation { + s.IsLatestVersion = &v + return s +} + +// SetLastPingDateTime sets the LastPingDateTime field's value. +func (s *InstanceInformation) SetLastPingDateTime(v time.Time) *InstanceInformation { + s.LastPingDateTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceInformation) SetName(v string) *InstanceInformation { + s.Name = &v + return s +} + +// SetPingStatus sets the PingStatus field's value. +func (s *InstanceInformation) SetPingStatus(v string) *InstanceInformation { + s.PingStatus = &v + return s +} + +// SetPlatformName sets the PlatformName field's value. +func (s *InstanceInformation) SetPlatformName(v string) *InstanceInformation { + s.PlatformName = &v + return s +} + +// SetPlatformType sets the PlatformType field's value. +func (s *InstanceInformation) SetPlatformType(v string) *InstanceInformation { + s.PlatformType = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *InstanceInformation) SetPlatformVersion(v string) *InstanceInformation { + s.PlatformVersion = &v + return s +} + +// SetRegistrationDate sets the RegistrationDate field's value. +func (s *InstanceInformation) SetRegistrationDate(v time.Time) *InstanceInformation { + s.RegistrationDate = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *InstanceInformation) SetResourceType(v string) *InstanceInformation { + s.ResourceType = &v + return s +} + // Describes a filter for a specific list of instances. type InstanceInformationFilter struct { _ struct{} `type:"structure"` @@ -3837,6 +4701,18 @@ func (s *InstanceInformationFilter) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *InstanceInformationFilter) SetKey(v string) *InstanceInformationFilter { + s.Key = &v + return s +} + +// SetValueSet sets the ValueSet field's value. +func (s *InstanceInformationFilter) SetValueSet(v []*string) *InstanceInformationFilter { + s.ValueSet = v + return s +} + type ListAssociationsInput struct { _ struct{} `type:"structure"` @@ -3894,6 +4770,24 @@ func (s *ListAssociationsInput) Validate() error { return nil } +// SetAssociationFilterList sets the AssociationFilterList field's value. +func (s *ListAssociationsInput) SetAssociationFilterList(v []*AssociationFilter) *ListAssociationsInput { + s.AssociationFilterList = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssociationsInput) SetMaxResults(v int64) *ListAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociationsInput) SetNextToken(v string) *ListAssociationsInput { + s.NextToken = &v + return s +} + type ListAssociationsOutput struct { _ struct{} `type:"structure"` @@ -3915,6 +4809,18 @@ func (s ListAssociationsOutput) GoString() string { return s.String() } +// SetAssociations sets the Associations field's value. +func (s *ListAssociationsOutput) SetAssociations(v []*Association) *ListAssociationsOutput { + s.Associations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociationsOutput) SetNextToken(v string) *ListAssociationsOutput { + s.NextToken = &v + return s +} + type ListCommandInvocationsInput struct { _ struct{} `type:"structure"` @@ -3981,6 +4887,42 @@ func (s *ListCommandInvocationsInput) Validate() error { return nil } +// SetCommandId sets the CommandId field's value. +func (s *ListCommandInvocationsInput) SetCommandId(v string) *ListCommandInvocationsInput { + s.CommandId = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *ListCommandInvocationsInput) SetDetails(v bool) *ListCommandInvocationsInput { + s.Details = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListCommandInvocationsInput) SetFilters(v []*CommandFilter) *ListCommandInvocationsInput { + s.Filters = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListCommandInvocationsInput) SetInstanceId(v string) *ListCommandInvocationsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCommandInvocationsInput) SetMaxResults(v int64) *ListCommandInvocationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCommandInvocationsInput) SetNextToken(v string) *ListCommandInvocationsInput { + s.NextToken = &v + return s +} + type ListCommandInvocationsOutput struct { _ struct{} `type:"structure"` @@ -4002,6 +4944,18 @@ func (s ListCommandInvocationsOutput) GoString() string { return s.String() } +// SetCommandInvocations sets the CommandInvocations field's value. +func (s *ListCommandInvocationsOutput) SetCommandInvocations(v []*CommandInvocation) *ListCommandInvocationsOutput { + s.CommandInvocations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCommandInvocationsOutput) SetNextToken(v string) *ListCommandInvocationsOutput { + s.NextToken = &v + return s +} + type ListCommandsInput struct { _ struct{} `type:"structure"` @@ -4064,6 +5018,36 @@ func (s *ListCommandsInput) Validate() error { return nil } +// SetCommandId sets the CommandId field's value. +func (s *ListCommandsInput) SetCommandId(v string) *ListCommandsInput { + s.CommandId = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListCommandsInput) SetFilters(v []*CommandFilter) *ListCommandsInput { + s.Filters = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListCommandsInput) SetInstanceId(v string) *ListCommandsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCommandsInput) SetMaxResults(v int64) *ListCommandsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCommandsInput) SetNextToken(v string) *ListCommandsInput { + s.NextToken = &v + return s +} + type ListCommandsOutput struct { _ struct{} `type:"structure"` @@ -4085,6 +5069,18 @@ func (s ListCommandsOutput) GoString() string { return s.String() } +// SetCommands sets the Commands field's value. +func (s *ListCommandsOutput) SetCommands(v []*Command) *ListCommandsOutput { + s.Commands = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCommandsOutput) SetNextToken(v string) *ListCommandsOutput { + s.NextToken = &v + return s +} + type ListDocumentsInput struct { _ struct{} `type:"structure"` @@ -4137,6 +5133,24 @@ func (s *ListDocumentsInput) Validate() error { return nil } +// SetDocumentFilterList sets the DocumentFilterList field's value. +func (s *ListDocumentsInput) SetDocumentFilterList(v []*DocumentFilter) *ListDocumentsInput { + s.DocumentFilterList = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDocumentsInput) SetMaxResults(v int64) *ListDocumentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentsInput) SetNextToken(v string) *ListDocumentsInput { + s.NextToken = &v + return s +} + type ListDocumentsOutput struct { _ struct{} `type:"structure"` @@ -4158,6 +5172,18 @@ func (s ListDocumentsOutput) GoString() string { return s.String() } +// SetDocumentIdentifiers sets the DocumentIdentifiers field's value. +func (s *ListDocumentsOutput) SetDocumentIdentifiers(v []*DocumentIdentifier) *ListDocumentsOutput { + s.DocumentIdentifiers = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentsOutput) SetNextToken(v string) *ListDocumentsOutput { + s.NextToken = &v + return s +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -4198,6 +5224,18 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *ListTagsForResourceInput) SetResourceId(v string) *ListTagsForResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListTagsForResourceInput) SetResourceType(v string) *ListTagsForResourceInput { + s.ResourceType = &v + return s +} + type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -4215,6 +5253,12 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { + s.TagList = v + return s +} + type ModifyDocumentPermissionInput struct { _ struct{} `type:"structure"` @@ -4265,6 +5309,30 @@ func (s *ModifyDocumentPermissionInput) Validate() error { return nil } +// SetAccountIdsToAdd sets the AccountIdsToAdd field's value. +func (s *ModifyDocumentPermissionInput) SetAccountIdsToAdd(v []*string) *ModifyDocumentPermissionInput { + s.AccountIdsToAdd = v + return s +} + +// SetAccountIdsToRemove sets the AccountIdsToRemove field's value. +func (s *ModifyDocumentPermissionInput) SetAccountIdsToRemove(v []*string) *ModifyDocumentPermissionInput { + s.AccountIdsToRemove = v + return s +} + +// SetName sets the Name field's value. +func (s *ModifyDocumentPermissionInput) SetName(v string) *ModifyDocumentPermissionInput { + s.Name = &v + return s +} + +// SetPermissionType sets the PermissionType field's value. +func (s *ModifyDocumentPermissionInput) SetPermissionType(v string) *ModifyDocumentPermissionInput { + s.PermissionType = &v + return s +} + type ModifyDocumentPermissionOutput struct { _ struct{} `type:"structure"` } @@ -4309,6 +5377,24 @@ func (s NotificationConfig) GoString() string { return s.String() } +// SetNotificationArn sets the NotificationArn field's value. +func (s *NotificationConfig) SetNotificationArn(v string) *NotificationConfig { + s.NotificationArn = &v + return s +} + +// SetNotificationEvents sets the NotificationEvents field's value. +func (s *NotificationConfig) SetNotificationEvents(v []*string) *NotificationConfig { + s.NotificationEvents = v + return s +} + +// SetNotificationType sets the NotificationType field's value. +func (s *NotificationConfig) SetNotificationType(v string) *NotificationConfig { + s.NotificationType = &v + return s +} + type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -4357,6 +5443,24 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsFromResourceInput) SetResourceId(v string) *RemoveTagsFromResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *RemoveTagsFromResourceInput) SetResourceType(v string) *RemoveTagsFromResourceInput { + s.ResourceType = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + type RemoveTagsFromResourceOutput struct { _ struct{} `type:"structure"` } @@ -4380,12 +5484,12 @@ type SendCommandInput struct { // The Sha256 or Sha1 hash created by the system when the document was created. // - // Sha1 hashes have been deprecated. + // Sha1 hashes have been deprecated. DocumentHash *string `type:"string"` // Sha256 or Sha1. // - // Sha1 hashes have been deprecated. + // Sha1 hashes have been deprecated. DocumentHashType *string `type:"string" enum:"DocumentHashType"` // Required. The name of the SSM document to execute. This can be an SSM public @@ -4457,6 +5561,72 @@ func (s *SendCommandInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *SendCommandInput) SetComment(v string) *SendCommandInput { + s.Comment = &v + return s +} + +// SetDocumentHash sets the DocumentHash field's value. +func (s *SendCommandInput) SetDocumentHash(v string) *SendCommandInput { + s.DocumentHash = &v + return s +} + +// SetDocumentHashType sets the DocumentHashType field's value. +func (s *SendCommandInput) SetDocumentHashType(v string) *SendCommandInput { + s.DocumentHashType = &v + return s +} + +// SetDocumentName sets the DocumentName field's value. +func (s *SendCommandInput) SetDocumentName(v string) *SendCommandInput { + s.DocumentName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *SendCommandInput) SetInstanceIds(v []*string) *SendCommandInput { + s.InstanceIds = v + return s +} + +// SetNotificationConfig sets the NotificationConfig field's value. +func (s *SendCommandInput) SetNotificationConfig(v *NotificationConfig) *SendCommandInput { + s.NotificationConfig = v + return s +} + +// SetOutputS3BucketName sets the OutputS3BucketName field's value. +func (s *SendCommandInput) SetOutputS3BucketName(v string) *SendCommandInput { + s.OutputS3BucketName = &v + return s +} + +// SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value. +func (s *SendCommandInput) SetOutputS3KeyPrefix(v string) *SendCommandInput { + s.OutputS3KeyPrefix = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *SendCommandInput) SetParameters(v map[string][]*string) *SendCommandInput { + s.Parameters = v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *SendCommandInput) SetServiceRoleArn(v string) *SendCommandInput { + s.ServiceRoleArn = &v + return s +} + +// SetTimeoutSeconds sets the TimeoutSeconds field's value. +func (s *SendCommandInput) SetTimeoutSeconds(v int64) *SendCommandInput { + s.TimeoutSeconds = &v + return s +} + type SendCommandOutput struct { _ struct{} `type:"structure"` @@ -4475,6 +5645,12 @@ func (s SendCommandOutput) GoString() string { return s.String() } +// SetCommand sets the Command field's value. +func (s *SendCommandOutput) SetCommand(v *Command) *SendCommandOutput { + s.Command = v + return s +} + // Metadata that you assign to your managed instances. Tags enable you to categorize // your managed instances in different ways, for example, by purpose, owner, // or environment. @@ -4524,6 +5700,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + type UpdateAssociationStatusInput struct { _ struct{} `type:"structure"` @@ -4577,6 +5765,24 @@ func (s *UpdateAssociationStatusInput) Validate() error { return nil } +// SetAssociationStatus sets the AssociationStatus field's value. +func (s *UpdateAssociationStatusInput) SetAssociationStatus(v *AssociationStatus) *UpdateAssociationStatusInput { + s.AssociationStatus = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateAssociationStatusInput) SetInstanceId(v string) *UpdateAssociationStatusInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAssociationStatusInput) SetName(v string) *UpdateAssociationStatusInput { + s.Name = &v + return s +} + type UpdateAssociationStatusOutput struct { _ struct{} `type:"structure"` @@ -4594,6 +5800,12 @@ func (s UpdateAssociationStatusOutput) GoString() string { return s.String() } +// SetAssociationDescription sets the AssociationDescription field's value. +func (s *UpdateAssociationStatusOutput) SetAssociationDescription(v *AssociationDescription) *UpdateAssociationStatusOutput { + s.AssociationDescription = v + return s +} + type UpdateManagedInstanceRoleInput struct { _ struct{} `type:"structure"` @@ -4634,6 +5846,18 @@ func (s *UpdateManagedInstanceRoleInput) Validate() error { return nil } +// SetIamRole sets the IamRole field's value. +func (s *UpdateManagedInstanceRoleInput) SetIamRole(v string) *UpdateManagedInstanceRoleInput { + s.IamRole = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateManagedInstanceRoleInput) SetInstanceId(v string) *UpdateManagedInstanceRoleInput { + s.InstanceId = &v + return s +} + type UpdateManagedInstanceRoleOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go index a4f94b511..580d494f0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go @@ -22,14 +22,14 @@ import ( // for Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/execute-remote-commands.html) // or Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/execute-remote-commands.html). // -// You must register your on-premises servers and VMs through an activation +// You must register your on-premises servers and VMs through an activation // process before you can configure them using Run Command. Registered servers // and VMs are called managed instances. For more information, see Setting Up // Run Command On Managed Instances (On-Premises Servers and VMs) on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managed-instances.html) // or Setting Up Run Command On Managed Instances (On-Premises Servers and VMs) // on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/managed-instances.html). // -// Run Command +// Run Command // // Run Command provides an on-demand experience for executing commands. You // can use pre-defined SSM documents to perform the actions listed later in @@ -49,10 +49,10 @@ import ( // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/remote-commands-prereq.html) // or Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/remote-commands-prereq.html)). // -// SSM Config +// SSM Config // -// SSM Config is a lightweight instance configuration solution. SSM Config -// is currently only available for Windows instances. With SSM Config, you can +// SSM Config is a lightweight instance configuration solution. SSM Config is +// currently only available for Windows instances. With SSM Config, you can // specify a setup configuration for your instances. SSM Config is similar to // EC2 User Data, which is another way of running one-time scripts or applying // settings during instance launch. SSM Config is an extension of this capability. @@ -69,65 +69,66 @@ import ( // // SSM Config and Run Command include the following pre-defined documents. // -// Linux +// Linux // -// AWS-RunShellScript to run shell scripts +// AWS-RunShellScript to run shell scripts // -// AWS-UpdateSSMAgent to update the Amazon SSM agent +// * AWS-UpdateSSMAgent to update the Amazon SSM agent // -// Windows +// Windows // -// AWS-JoinDirectoryServiceDomain to join an AWS Directory +// * AWS-JoinDirectoryServiceDomain to join an AWS Directory // -// AWS-RunPowerShellScript to run PowerShell commands or scripts +// * AWS-RunPowerShellScript to run PowerShell commands or scripts // -// AWS-UpdateEC2Config to update the EC2Config service +// * AWS-UpdateEC2Config to update the EC2Config service // -// AWS-ConfigureWindowsUpdate to configure Windows Update settings +// * AWS-ConfigureWindowsUpdate to configure Windows Update settings // -// AWS-InstallApplication to install, repair, or uninstall software using -// an MSI package +// * AWS-InstallApplication to install, repair, or uninstall software using +// an MSI package // -// AWS-InstallPowerShellModule to install PowerShell modules +// * AWS-InstallPowerShellModule to install PowerShell modules // -// AWS-ConfigureCloudWatch to configure Amazon CloudWatch Logs to monitor -// applications and systems +// * AWS-ConfigureCloudWatch to configure Amazon CloudWatch Logs to monitor +// applications and systems // -// AWS-ListWindowsInventory to collect information about an EC2 instance -// running in Windows. +// * AWS-ListWindowsInventory to collect information about an EC2 instance +// running in Windows. // -// AWS-FindWindowsUpdates to scan an instance and determines which updates -// are missing. +// * AWS-FindWindowsUpdates to scan an instance and determines which updates +// are missing. // -// AWS-InstallMissingWindowsUpdates to install missing updates on your EC2 -// instance. +// * AWS-InstallMissingWindowsUpdates to install missing updates on your +// EC2 instance. // -// AWS-InstallSpecificWindowsUpdates to install one or more specific updates. +// * AWS-InstallSpecificWindowsUpdates to install one or more specific updates. // -// The commands or scripts specified in SSM documents run with administrative -// privilege on your instances because the Amazon SSM agent runs as root on -// Linux and the EC2Config service runs in the Local System account on Windows. -// If a user has permission to execute any of the pre-defined SSM documents -// (any document that begins with AWS-*) then that user also has administrator -// access to the instance. Delegate access to Run Command and SSM Config judiciously. -// This becomes extremely important if you create your own SSM documents. Amazon -// Web Services does not provide guidance about how to create secure SSM documents. -// You create SSM documents and delegate access to Run Command at your own risk. -// As a security best practice, we recommend that you assign access to "AWS-*" -// documents, especially the AWS-RunShellScript document on Linux and the AWS-RunPowerShellScript -// document on Windows, to trusted administrators only. You can create SSM documents -// for specific tasks and delegate access to non-administrators. +// The commands or scripts specified in SSM documents run with administrative +// privilege on your instances because the Amazon SSM agent runs as root +// on Linux and the EC2Config service runs in the Local System account on +// Windows. If a user has permission to execute any of the pre-defined SSM +// documents (any document that begins with AWS-*) then that user also has +// administrator access to the instance. Delegate access to Run Command and +// SSM Config judiciously. This becomes extremely important if you create +// your own SSM documents. Amazon Web Services does not provide guidance +// about how to create secure SSM documents. You create SSM documents and +// delegate access to Run Command at your own risk. As a security best practice, +// we recommend that you assign access to "AWS-*" documents, especially the +// AWS-RunShellScript document on Linux and the AWS-RunPowerShellScript document +// on Windows, to trusted administrators only. You can create SSM documents +// for specific tasks and delegate access to non-administrators. // -// For information about creating and sharing SSM documents, see the following -// topics in the SSM User Guide: +// For information about creating and sharing SSM documents, see the following +// topics in the SSM User Guide: // -// Creating SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-ssm-doc.html) -// and Sharing SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssm-sharing.html) -// (Linux) +// * Creating SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-ssm-doc.html) +// and * Sharing SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssm-sharing.html) +// (Linux) // -// Creating SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/create-ssm-doc.html) -// and Sharing SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ssm-sharing.html) -// (Windows) +// * Creating SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/create-ssm-doc.html) +// and * Sharing SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ssm-sharing.html) +// (Windows) //The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type SSM struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go index 17c7365e6..7d4e143a5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go @@ -64,7 +64,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) // in the IAM User Guide. // -// Important: You cannot call AssumeRole by using AWS root account credentials; +// Important: You cannot call AssumeRole by using AWS root account credentials; // access is denied. You must use credentials for an IAM user or an IAM role // to call AssumeRole. // @@ -93,18 +93,18 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // when calling AssumeRole, which can be from 900 seconds (15 minutes) to a // maximum of 3600 seconds (1 hour). The default is 1 hour. // -// The temporary security credentials created by AssumeRole can be used to -// make API calls to any AWS service with the following exception: you cannot -// call the STS service's GetFederationToken or GetSessionToken APIs. +// The temporary security credentials created by AssumeRole can be used to make +// API calls to any AWS service with the following exception: you cannot call +// the STS service's GetFederationToken or GetSessionToken APIs. // -// Optionally, you can pass an IAM access policy to this operation. If you -// choose not to pass a policy, the temporary security credentials that are -// returned by the operation have the permissions that are defined in the access -// policy of the role that is being assumed. If you pass a policy to this operation, +// Optionally, you can pass an IAM access policy to this operation. If you choose +// not to pass a policy, the temporary security credentials that are returned +// by the operation have the permissions that are defined in the access policy +// of the role that is being assumed. If you pass a policy to this operation, // the temporary security credentials that are returned by the operation have // the permissions that are allowed by both the access policy of the role that -// is being assumed, and the policy that you pass. This gives you a way to -// further restrict the permissions for the resulting temporary security credentials. +// is being assumed, and the policy that you pass. This gives you a way to further +// restrict the permissions for the resulting temporary security credentials. // You cannot use the passed policy to grant permissions that are in excess // of those allowed by the access policy of the role that is being assumed. // For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, @@ -124,7 +124,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // a policy to the user (identical to the previous different account user), // or you can add the user as a principal directly in the role's trust policy // -// Using MFA with AssumeRole +// Using MFA with AssumeRole // // You can optionally include multi-factor authentication (MFA) information // when you call AssumeRole. This is useful for cross-account scenarios in which @@ -135,7 +135,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // denied. The condition in a trust policy that tests for MFA authentication // might look like the following example. // -// "Condition": {"Bool": {"aws:MultiFactorAuthPresent": true}} +// "Condition": {"Bool": {"aws:MultiFactorAuthPresent": true}} // // For more information, see Configuring MFA-Protected API Access (http://docs.aws.amazon.com/IAM/latest/UserGuide/MFAProtectedAPI.html) // in the IAM User Guide guide. @@ -239,17 +239,17 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). // The default is 1 hour. // -// The temporary security credentials created by AssumeRoleWithSAML can be -// used to make API calls to any AWS service with the following exception: you -// cannot call the STS service's GetFederationToken or GetSessionToken APIs. +// The temporary security credentials created by AssumeRoleWithSAML can be used +// to make API calls to any AWS service with the following exception: you cannot +// call the STS service's GetFederationToken or GetSessionToken APIs. // -// Optionally, you can pass an IAM access policy to this operation. If you -// choose not to pass a policy, the temporary security credentials that are -// returned by the operation have the permissions that are defined in the access -// policy of the role that is being assumed. If you pass a policy to this operation, +// Optionally, you can pass an IAM access policy to this operation. If you choose +// not to pass a policy, the temporary security credentials that are returned +// by the operation have the permissions that are defined in the access policy +// of the role that is being assumed. If you pass a policy to this operation, // the temporary security credentials that are returned by the operation have // the permissions that are allowed by the intersection of both the access policy -// of the role that is being assumed, and the policy that you pass. This means +// of the role that is being assumed, and the policy that you pass. This means // that both policies must grant the permission for the action to be allowed. // This gives you a way to further restrict the permissions for the resulting // temporary security credentials. You cannot use the passed policy to grant @@ -258,8 +258,8 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // AssumeRoleWithSAML, and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) // in the IAM User Guide. // -// Before your application can call AssumeRoleWithSAML, you must configure -// your SAML identity provider (IdP) to issue the claims required by AWS. Additionally, +// Before your application can call AssumeRoleWithSAML, you must configure your +// SAML identity provider (IdP) to issue the claims required by AWS. Additionally, // you must use AWS Identity and Access Management (IAM) to create a SAML provider // entity in your AWS account that represents your identity provider, and create // an IAM role that specifies this SAML provider in its trust policy. @@ -268,25 +268,25 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // The identity of the caller is validated by using keys in the metadata document // that is uploaded for the SAML provider entity for your identity provider. // -// Calling AssumeRoleWithSAML can result in an entry in your AWS CloudTrail +// Calling AssumeRoleWithSAML can result in an entry in your AWS CloudTrail // logs. The entry includes the value in the NameID element of the SAML assertion. // We recommend that you use a NameIDType that is not associated with any personally // identifiable information (PII). For example, you could instead use the Persistent // Identifier (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent). // -// For more information, see the following resources: +// For more information, see the following resources: // -// About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) -// in the IAM User Guide. +// * About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) +// in the IAM User Guide. // -// Creating SAML Identity Providers (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html) -// in the IAM User Guide. +// * Creating SAML Identity Providers (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html) +// in the IAM User Guide. // -// Configuring a Relying Party and Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html) -// in the IAM User Guide. +// * Configuring a Relying Party and Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html) +// in the IAM User Guide. // -// Creating a Role for SAML 2.0 Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html) -// in the IAM User Guide. +// * Creating a Role for SAML 2.0 Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html) +// in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -383,8 +383,8 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // Cognito, Login with Amazon, Facebook, Google, or any OpenID Connect-compatible // identity provider. // -// For mobile applications, we recommend that you use Amazon Cognito. You -// can use Amazon Cognito with the AWS SDK for iOS (http://aws.amazon.com/sdkforios/) +// For mobile applications, we recommend that you use Amazon Cognito. You can +// use Amazon Cognito with the AWS SDK for iOS (http://aws.amazon.com/sdkforios/) // and the AWS SDK for Android (http://aws.amazon.com/sdkforandroid/) to uniquely // identify a user and supply the user with a consistent identity throughout // the lifetime of an application. @@ -394,7 +394,7 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // (http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-auth.html#d0e664) // in the AWS SDK for iOS Developer Guide. // -// Calling AssumeRoleWithWebIdentity does not require the use of AWS security +// Calling AssumeRoleWithWebIdentity does not require the use of AWS security // credentials. Therefore, you can distribute an application (for example, on // mobile devices) that requests temporary security credentials without including // long-term AWS credentials in the application, and without deploying server-based @@ -413,18 +413,18 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // AssumeRoleWithWebIdentity, which can be from 900 seconds (15 minutes) to // a maximum of 3600 seconds (1 hour). The default is 1 hour. // -// The temporary security credentials created by AssumeRoleWithWebIdentity -// can be used to make API calls to any AWS service with the following exception: +// The temporary security credentials created by AssumeRoleWithWebIdentity can +// be used to make API calls to any AWS service with the following exception: // you cannot call the STS service's GetFederationToken or GetSessionToken APIs. // -// Optionally, you can pass an IAM access policy to this operation. If you -// choose not to pass a policy, the temporary security credentials that are -// returned by the operation have the permissions that are defined in the access -// policy of the role that is being assumed. If you pass a policy to this operation, +// Optionally, you can pass an IAM access policy to this operation. If you choose +// not to pass a policy, the temporary security credentials that are returned +// by the operation have the permissions that are defined in the access policy +// of the role that is being assumed. If you pass a policy to this operation, // the temporary security credentials that are returned by the operation have // the permissions that are allowed by both the access policy of the role that -// is being assumed, and the policy that you pass. This gives you a way to -// further restrict the permissions for the resulting temporary security credentials. +// is being assumed, and the policy that you pass. This gives you a way to further +// restrict the permissions for the resulting temporary security credentials. // You cannot use the passed policy to grant permissions that are in excess // of those allowed by the access policy of the role that is being assumed. // For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, @@ -437,32 +437,36 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // the identity provider that is associated with the identity token. In other // words, the identity provider must be specified in the role's trust policy. // -// Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail +// Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail // logs. The entry includes the Subject (http://openid.net/specs/openid-connect-core-1_0.html#Claims) // of the provided Web Identity Token. We recommend that you avoid using any // personally identifiable information (PII) in this field. For example, you // could instead use a GUID or a pairwise identifier, as suggested in the OIDC // specification (http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes). // -// For more information about how to use web identity federation and the AssumeRoleWithWebIdentity +// For more information about how to use web identity federation and the AssumeRoleWithWebIdentity // API, see the following resources: // -// Using Web Identity Federation APIs for Mobile Apps (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual) -// and Federation Through a Web-based Identity Provider (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity). +// * Using Web Identity Federation APIs for Mobile Apps (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual) +// and Federation Through a Web-based Identity Provider (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity). // -// Web Identity Federation Playground (https://web-identity-federation-playground.s3.amazonaws.com/index.html). -// This interactive website lets you walk through the process of authenticating -// via Login with Amazon, Facebook, or Google, getting temporary security credentials, -// and then using those credentials to make a request to AWS. // -// AWS SDK for iOS (http://aws.amazon.com/sdkforios/) and AWS SDK for Android -// (http://aws.amazon.com/sdkforandroid/). These toolkits contain sample apps -// that show how to invoke the identity providers, and then how to use the information -// from these providers to get and use temporary security credentials. +// * Web Identity Federation Playground (https://web-identity-federation-playground.s3.amazonaws.com/index.html). +// This interactive website lets you walk through the process of authenticating +// via Login with Amazon, Facebook, or Google, getting temporary security +// credentials, and then using those credentials to make a request to AWS. // -// Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/4617974389850313). -// This article discusses web identity federation and shows an example of how -// to use web identity federation to get access to content in Amazon S3. +// +// * AWS SDK for iOS (http://aws.amazon.com/sdkforios/) and AWS SDK for Android +// (http://aws.amazon.com/sdkforandroid/). These toolkits contain sample +// apps that show how to invoke the identity providers, and then how to use +// the information from these providers to get and use temporary security +// credentials. +// +// * Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/4617974389850313). +// This article discusses web identity federation and shows an example of +// how to use web identity federation to get access to content in Amazon +// S3. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -569,30 +573,30 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag // (an HTTP 403 response). Some AWS actions additionally return an encoded message // that can provide details about this authorization failure. // -// Only certain AWS actions return an encoded authorization message. The documentation +// Only certain AWS actions return an encoded authorization message. The documentation // for an individual action indicates whether that action returns an encoded // message in addition to returning an HTTP code. // -// The message is encoded because the details of the authorization status -// can constitute privileged information that the user who requested the action +// The message is encoded because the details of the authorization status can +// constitute privileged information that the user who requested the action // should not see. To decode an authorization status message, a user must be // granted permissions via an IAM policy to request the DecodeAuthorizationMessage // (sts:DecodeAuthorizationMessage) action. // // The decoded message includes the following type of information: // -// Whether the request was denied due to an explicit deny or due to the absence -// of an explicit allow. For more information, see Determining Whether a Request -// is Allowed or Denied (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow) -// in the IAM User Guide. +// * Whether the request was denied due to an explicit deny or due to the +// absence of an explicit allow. For more information, see Determining Whether +// a Request is Allowed or Denied (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow) +// in the IAM User Guide. // -// The principal who made the request. +// * The principal who made the request. // -// The requested action. +// * The requested action. // -// The requested resource. +// * The requested resource. // -// The values of condition keys in the context of the user's request. +// * The values of condition keys in the context of the user's request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -730,20 +734,20 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) // in the IAM User Guide. // -// If you are creating a mobile-based or browser-based app that can authenticate +// If you are creating a mobile-based or browser-based app that can authenticate // users using a web identity provider like Login with Amazon, Facebook, Google, // or an OpenID Connect-compatible identity provider, we recommend that you // use Amazon Cognito (http://aws.amazon.com/cognito/) or AssumeRoleWithWebIdentity. // For more information, see Federation Through a Web-based Identity Provider // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity). // -// The GetFederationToken action must be called by using the long-term AWS -// security credentials of an IAM user. You can also call GetFederationToken -// using the security credentials of an AWS root account, but we do not recommended -// it. Instead, we recommend that you create an IAM user for the purpose of -// the proxy application and then attach a policy to the IAM user that limits -// federated users to only the actions and resources that they need access to. -// For more information, see IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) +// The GetFederationToken action must be called by using the long-term AWS security +// credentials of an IAM user. You can also call GetFederationToken using the +// security credentials of an AWS root account, but we do not recommended it. +// Instead, we recommend that you create an IAM user for the purpose of the +// proxy application and then attach a policy to the IAM user that limits federated +// users to only the actions and resources that they need access to. For more +// information, see IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) // in the IAM User Guide. // // The temporary security credentials that are obtained by using the long-term @@ -752,30 +756,30 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // is 43200 seconds (12 hours). Temporary credentials that are obtained by using // AWS root account credentials have a maximum duration of 3600 seconds (1 hour). // -// The temporary security credentials created by GetFederationToken can be -// used to make API calls to any AWS service with the following exceptions: +// The temporary security credentials created by GetFederationToken can be used +// to make API calls to any AWS service with the following exceptions: // -// You cannot use these credentials to call any IAM APIs. +// * You cannot use these credentials to call any IAM APIs. // -// You cannot call any STS APIs. +// * You cannot call any STS APIs. // -// Permissions +// Permissions // // The permissions for the temporary security credentials returned by GetFederationToken // are determined by a combination of the following: // -// The policy or policies that are attached to the IAM user whose credentials -// are used to call GetFederationToken. +// * The policy or policies that are attached to the IAM user whose credentials +// are used to call GetFederationToken. // -// The policy that is passed as a parameter in the call. +// * The policy that is passed as a parameter in the call. // -// The passed policy is attached to the temporary security credentials that +// The passed policy is attached to the temporary security credentials that // result from the GetFederationToken API call--that is, to the federated user. // When the federated user makes an AWS request, AWS evaluates the policy attached // to the federated user in combination with the policy or policies attached // to the IAM user whose credentials were used to call GetFederationToken. AWS -// allows the federated user's request only when both the federated user and -// the IAM user are explicitly allowed to perform the requested action. The +// allows the federated user's request only when both the federated user and +// the IAM user are explicitly allowed to perform the requested action. The // passed policy cannot grant more permissions than those that are defined in // the IAM user policy. // @@ -897,17 +901,17 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. // The temporary security credentials created by GetSessionToken can be used // to make API calls to any AWS service with the following exceptions: // -// You cannot call any IAM APIs unless MFA authentication information is -// included in the request. +// * You cannot call any IAM APIs unless MFA authentication information is +// included in the request. // -// You cannot call any STS API except AssumeRole. +// * You cannot call any STS API exceptAssumeRole. // -// We recommend that you do not call GetSessionToken with root account credentials. +// We recommend that you do not call GetSessionToken with root account credentials. // Instead, follow our best practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users) // by creating one or more IAM users, giving them the necessary permissions, // and using IAM users for everyday interaction with AWS. // -// The permissions associated with the temporary security credentials returned +// The permissions associated with the temporary security credentials returned // by GetSessionToken are based on the permissions associated with account or // IAM user whose credentials are used to call the action. If GetSessionToken // is called using root account credentials, the temporary credentials have @@ -947,9 +951,9 @@ type AssumeRoleInput struct { // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set // to 3600 seconds. // - // This is separate from the duration of a console session that you might - // request using the returned credentials. The request to the federation endpoint - // for a console sign-in token takes a SessionDuration parameter that specifies + // This is separate from the duration of a console session that you might request + // using the returned credentials. The request to the federation endpoint for + // a console sign-in token takes a SessionDuration parameter that specifies // the maximum length of the console session, separately from the DurationSeconds // parameter on this API. For more information, see Creating a URL that Enables // Federated Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html) @@ -991,7 +995,7 @@ type AssumeRoleInput struct { // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), // and carriage return (\u000D) characters. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed @@ -1090,6 +1094,48 @@ func (s *AssumeRoleInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *AssumeRoleInput) SetDurationSeconds(v int64) *AssumeRoleInput { + s.DurationSeconds = &v + return s +} + +// SetExternalId sets the ExternalId field's value. +func (s *AssumeRoleInput) SetExternalId(v string) *AssumeRoleInput { + s.ExternalId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *AssumeRoleInput) SetPolicy(v string) *AssumeRoleInput { + s.Policy = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AssumeRoleInput) SetRoleArn(v string) *AssumeRoleInput { + s.RoleArn = &v + return s +} + +// SetRoleSessionName sets the RoleSessionName field's value. +func (s *AssumeRoleInput) SetRoleSessionName(v string) *AssumeRoleInput { + s.RoleSessionName = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *AssumeRoleInput) SetSerialNumber(v string) *AssumeRoleInput { + s.SerialNumber = &v + return s +} + +// SetTokenCode sets the TokenCode field's value. +func (s *AssumeRoleInput) SetTokenCode(v string) *AssumeRoleInput { + s.TokenCode = &v + return s +} + // Contains the response to a successful AssumeRole request, including temporary // AWS credentials that can be used to make AWS requests. type AssumeRoleOutput struct { @@ -1105,10 +1151,10 @@ type AssumeRoleOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // A percentage value that indicates the size of the policy in packed form. @@ -1127,6 +1173,24 @@ func (s AssumeRoleOutput) GoString() string { return s.String() } +// SetAssumedRoleUser sets the AssumedRoleUser field's value. +func (s *AssumeRoleOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleOutput { + s.AssumedRoleUser = v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *AssumeRoleOutput) SetCredentials(v *Credentials) *AssumeRoleOutput { + s.Credentials = v + return s +} + +// SetPackedPolicySize sets the PackedPolicySize field's value. +func (s *AssumeRoleOutput) SetPackedPolicySize(v int64) *AssumeRoleOutput { + s.PackedPolicySize = &v + return s +} + type AssumeRoleWithSAMLInput struct { _ struct{} `type:"structure"` @@ -1136,9 +1200,9 @@ type AssumeRoleWithSAMLInput struct { // response's SessionNotOnOrAfter value. The actual expiration time is whichever // value is shorter. // - // This is separate from the duration of a console session that you might - // request using the returned credentials. The request to the federation endpoint - // for a console sign-in token takes a SessionDuration parameter that specifies + // This is separate from the duration of a console session that you might request + // using the returned credentials. The request to the federation endpoint for + // a console sign-in token takes a SessionDuration parameter that specifies // the maximum length of the console session, separately from the DurationSeconds // parameter on this API. For more information, see Enabling SAML 2.0 Federated // Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) @@ -1150,8 +1214,8 @@ type AssumeRoleWithSAMLInput struct { // The policy parameter is optional. If you pass a policy, the temporary security // credentials that are returned by the operation have the permissions that // are allowed by both the access policy of the role that is being assumed, - // and the policy that you pass. This gives you a way to further restrict - // the permissions for the resulting temporary security credentials. You cannot + // and the policy that you pass. This gives you a way to further restrict the + // permissions for the resulting temporary security credentials. You cannot // use the passed policy to grant permissions that are in excess of those allowed // by the access policy of the role that is being assumed. For more information, // Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity @@ -1164,7 +1228,7 @@ type AssumeRoleWithSAMLInput struct { // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), // and carriage return (\u000D) characters. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed @@ -1184,8 +1248,7 @@ type AssumeRoleWithSAMLInput struct { // The base-64 encoded SAML authentication response provided by the IdP. // - // For more information, see Configuring a Relying Party and Adding Claims - // (http://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html) + // For more information, see Configuring a Relying Party and Adding Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html) // in the Using IAM guide. // // SAMLAssertion is a required field @@ -1236,6 +1299,36 @@ func (s *AssumeRoleWithSAMLInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *AssumeRoleWithSAMLInput) SetDurationSeconds(v int64) *AssumeRoleWithSAMLInput { + s.DurationSeconds = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *AssumeRoleWithSAMLInput) SetPolicy(v string) *AssumeRoleWithSAMLInput { + s.Policy = &v + return s +} + +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *AssumeRoleWithSAMLInput) SetPrincipalArn(v string) *AssumeRoleWithSAMLInput { + s.PrincipalArn = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AssumeRoleWithSAMLInput) SetRoleArn(v string) *AssumeRoleWithSAMLInput { + s.RoleArn = &v + return s +} + +// SetSAMLAssertion sets the SAMLAssertion field's value. +func (s *AssumeRoleWithSAMLInput) SetSAMLAssertion(v string) *AssumeRoleWithSAMLInput { + s.SAMLAssertion = &v + return s +} + // Contains the response to a successful AssumeRoleWithSAML request, including // temporary AWS credentials that can be used to make AWS requests. type AssumeRoleWithSAMLOutput struct { @@ -1252,10 +1345,10 @@ type AssumeRoleWithSAMLOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // The value of the Issuer element of the SAML assertion. @@ -1268,7 +1361,7 @@ type AssumeRoleWithSAMLOutput struct { // // The following pseudocode shows how the hash value is calculated: // - // BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" + "/MySAMLIdP" + // BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" + "/MySAMLIdP" // ) ) NameQualifier *string `type:"string"` @@ -1284,7 +1377,7 @@ type AssumeRoleWithSAMLOutput struct { // element of the SAML assertion. Typical examples of the format are transient // or persistent. // - // If the format includes the prefix urn:oasis:names:tc:SAML:2.0:nameid-format, + // If the format includes the prefix urn:oasis:names:tc:SAML:2.0:nameid-format, // that prefix is removed. For example, urn:oasis:names:tc:SAML:2.0:nameid-format:transient // is returned as transient. If the format includes any other prefix, the format // is returned with no modifications. @@ -1301,6 +1394,54 @@ func (s AssumeRoleWithSAMLOutput) GoString() string { return s.String() } +// SetAssumedRoleUser sets the AssumedRoleUser field's value. +func (s *AssumeRoleWithSAMLOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithSAMLOutput { + s.AssumedRoleUser = v + return s +} + +// SetAudience sets the Audience field's value. +func (s *AssumeRoleWithSAMLOutput) SetAudience(v string) *AssumeRoleWithSAMLOutput { + s.Audience = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *AssumeRoleWithSAMLOutput) SetCredentials(v *Credentials) *AssumeRoleWithSAMLOutput { + s.Credentials = v + return s +} + +// SetIssuer sets the Issuer field's value. +func (s *AssumeRoleWithSAMLOutput) SetIssuer(v string) *AssumeRoleWithSAMLOutput { + s.Issuer = &v + return s +} + +// SetNameQualifier sets the NameQualifier field's value. +func (s *AssumeRoleWithSAMLOutput) SetNameQualifier(v string) *AssumeRoleWithSAMLOutput { + s.NameQualifier = &v + return s +} + +// SetPackedPolicySize sets the PackedPolicySize field's value. +func (s *AssumeRoleWithSAMLOutput) SetPackedPolicySize(v int64) *AssumeRoleWithSAMLOutput { + s.PackedPolicySize = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *AssumeRoleWithSAMLOutput) SetSubject(v string) *AssumeRoleWithSAMLOutput { + s.Subject = &v + return s +} + +// SetSubjectType sets the SubjectType field's value. +func (s *AssumeRoleWithSAMLOutput) SetSubjectType(v string) *AssumeRoleWithSAMLOutput { + s.SubjectType = &v + return s +} + type AssumeRoleWithWebIdentityInput struct { _ struct{} `type:"structure"` @@ -1308,9 +1449,9 @@ type AssumeRoleWithWebIdentityInput struct { // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set // to 3600 seconds. // - // This is separate from the duration of a console session that you might - // request using the returned credentials. The request to the federation endpoint - // for a console sign-in token takes a SessionDuration parameter that specifies + // This is separate from the duration of a console session that you might request + // using the returned credentials. The request to the federation endpoint for + // a console sign-in token takes a SessionDuration parameter that specifies // the maximum length of the console session, separately from the DurationSeconds // parameter on this API. For more information, see Creating a URL that Enables // Federated Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html) @@ -1322,8 +1463,8 @@ type AssumeRoleWithWebIdentityInput struct { // The policy parameter is optional. If you pass a policy, the temporary security // credentials that are returned by the operation have the permissions that // are allowed by both the access policy of the role that is being assumed, - // and the policy that you pass. This gives you a way to further restrict - // the permissions for the resulting temporary security credentials. You cannot + // and the policy that you pass. This gives you a way to further restrict the + // permissions for the resulting temporary security credentials. You cannot // use the passed policy to grant permissions that are in excess of those allowed // by the access policy of the role that is being assumed. For more information, // see Permissions for AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) @@ -1335,7 +1476,7 @@ type AssumeRoleWithWebIdentityInput struct { // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), // and carriage return (\u000D) characters. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed @@ -1426,6 +1567,42 @@ func (s *AssumeRoleWithWebIdentityInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *AssumeRoleWithWebIdentityInput) SetDurationSeconds(v int64) *AssumeRoleWithWebIdentityInput { + s.DurationSeconds = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *AssumeRoleWithWebIdentityInput) SetPolicy(v string) *AssumeRoleWithWebIdentityInput { + s.Policy = &v + return s +} + +// SetProviderId sets the ProviderId field's value. +func (s *AssumeRoleWithWebIdentityInput) SetProviderId(v string) *AssumeRoleWithWebIdentityInput { + s.ProviderId = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AssumeRoleWithWebIdentityInput) SetRoleArn(v string) *AssumeRoleWithWebIdentityInput { + s.RoleArn = &v + return s +} + +// SetRoleSessionName sets the RoleSessionName field's value. +func (s *AssumeRoleWithWebIdentityInput) SetRoleSessionName(v string) *AssumeRoleWithWebIdentityInput { + s.RoleSessionName = &v + return s +} + +// SetWebIdentityToken sets the WebIdentityToken field's value. +func (s *AssumeRoleWithWebIdentityInput) SetWebIdentityToken(v string) *AssumeRoleWithWebIdentityInput { + s.WebIdentityToken = &v + return s +} + // Contains the response to a successful AssumeRoleWithWebIdentity request, // including temporary AWS credentials that can be used to make AWS requests. type AssumeRoleWithWebIdentityOutput struct { @@ -1446,10 +1623,10 @@ type AssumeRoleWithWebIdentityOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // A percentage value that indicates the size of the policy in packed form. @@ -1482,6 +1659,42 @@ func (s AssumeRoleWithWebIdentityOutput) GoString() string { return s.String() } +// SetAssumedRoleUser sets the AssumedRoleUser field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithWebIdentityOutput { + s.AssumedRoleUser = v + return s +} + +// SetAudience sets the Audience field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetAudience(v string) *AssumeRoleWithWebIdentityOutput { + s.Audience = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetCredentials(v *Credentials) *AssumeRoleWithWebIdentityOutput { + s.Credentials = v + return s +} + +// SetPackedPolicySize sets the PackedPolicySize field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetPackedPolicySize(v int64) *AssumeRoleWithWebIdentityOutput { + s.PackedPolicySize = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetProvider(v string) *AssumeRoleWithWebIdentityOutput { + s.Provider = &v + return s +} + +// SetSubjectFromWebIdentityToken sets the SubjectFromWebIdentityToken field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetSubjectFromWebIdentityToken(v string) *AssumeRoleWithWebIdentityOutput { + s.SubjectFromWebIdentityToken = &v + return s +} + // The identifiers for the temporary security credentials that the operation // returns. type AssumedRoleUser struct { @@ -1513,6 +1726,18 @@ func (s AssumedRoleUser) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *AssumedRoleUser) SetArn(v string) *AssumedRoleUser { + s.Arn = &v + return s +} + +// SetAssumedRoleId sets the AssumedRoleId field's value. +func (s *AssumedRoleUser) SetAssumedRoleId(v string) *AssumedRoleUser { + s.AssumedRoleId = &v + return s +} + // AWS credentials for API authentication. type Credentials struct { _ struct{} `type:"structure"` @@ -1548,6 +1773,30 @@ func (s Credentials) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *Credentials) SetAccessKeyId(v string) *Credentials { + s.AccessKeyId = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *Credentials) SetExpiration(v time.Time) *Credentials { + s.Expiration = &v + return s +} + +// SetSecretAccessKey sets the SecretAccessKey field's value. +func (s *Credentials) SetSecretAccessKey(v string) *Credentials { + s.SecretAccessKey = &v + return s +} + +// SetSessionToken sets the SessionToken field's value. +func (s *Credentials) SetSessionToken(v string) *Credentials { + s.SessionToken = &v + return s +} + type DecodeAuthorizationMessageInput struct { _ struct{} `type:"structure"` @@ -1583,6 +1832,12 @@ func (s *DecodeAuthorizationMessageInput) Validate() error { return nil } +// SetEncodedMessage sets the EncodedMessage field's value. +func (s *DecodeAuthorizationMessageInput) SetEncodedMessage(v string) *DecodeAuthorizationMessageInput { + s.EncodedMessage = &v + return s +} + // A document that contains additional information about the authorization status // of a request from an encoded message that is returned in response to an AWS // request. @@ -1603,6 +1858,12 @@ func (s DecodeAuthorizationMessageOutput) GoString() string { return s.String() } +// SetDecodedMessage sets the DecodedMessage field's value. +func (s *DecodeAuthorizationMessageOutput) SetDecodedMessage(v string) *DecodeAuthorizationMessageOutput { + s.DecodedMessage = &v + return s +} + // Identifiers for the federated user that is associated with the credentials. type FederatedUser struct { _ struct{} `type:"structure"` @@ -1632,6 +1893,18 @@ func (s FederatedUser) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *FederatedUser) SetArn(v string) *FederatedUser { + s.Arn = &v + return s +} + +// SetFederatedUserId sets the FederatedUserId field's value. +func (s *FederatedUser) SetFederatedUserId(v string) *FederatedUser { + s.FederatedUserId = &v + return s +} + type GetCallerIdentityInput struct { _ struct{} `type:"structure"` } @@ -1675,6 +1948,24 @@ func (s GetCallerIdentityOutput) GoString() string { return s.String() } +// SetAccount sets the Account field's value. +func (s *GetCallerIdentityOutput) SetAccount(v string) *GetCallerIdentityOutput { + s.Account = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *GetCallerIdentityOutput) SetArn(v string) *GetCallerIdentityOutput { + s.Arn = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *GetCallerIdentityOutput) SetUserId(v string) *GetCallerIdentityOutput { + s.UserId = &v + return s +} + type GetFederationTokenInput struct { _ struct{} `type:"structure"` @@ -1721,13 +2012,13 @@ type GetFederationTokenInput struct { // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), // and carriage return (\u000D) characters. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed // size. // - // For more information about how permissions work, see Permissions for GetFederationToken + // For more information about how permissions work, see Permissions for GetFederationToken // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getfederationtoken.html). Policy *string `min:"1" type:"string"` } @@ -1764,6 +2055,24 @@ func (s *GetFederationTokenInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *GetFederationTokenInput) SetDurationSeconds(v int64) *GetFederationTokenInput { + s.DurationSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetFederationTokenInput) SetName(v string) *GetFederationTokenInput { + s.Name = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *GetFederationTokenInput) SetPolicy(v string) *GetFederationTokenInput { + s.Policy = &v + return s +} + // Contains the response to a successful GetFederationToken request, including // temporary AWS credentials that can be used to make AWS requests. type GetFederationTokenOutput struct { @@ -1772,10 +2081,10 @@ type GetFederationTokenOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // Identifiers for the federated user associated with the credentials (such @@ -1800,6 +2109,24 @@ func (s GetFederationTokenOutput) GoString() string { return s.String() } +// SetCredentials sets the Credentials field's value. +func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput { + s.Credentials = v + return s +} + +// SetFederatedUser sets the FederatedUser field's value. +func (s *GetFederationTokenOutput) SetFederatedUser(v *FederatedUser) *GetFederationTokenOutput { + s.FederatedUser = v + return s +} + +// SetPackedPolicySize sets the PackedPolicySize field's value. +func (s *GetFederationTokenOutput) SetPackedPolicySize(v int64) *GetFederationTokenOutput { + s.PackedPolicySize = &v + return s +} + type GetSessionTokenInput struct { _ struct{} `type:"structure"` @@ -1865,6 +2192,24 @@ func (s *GetSessionTokenInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *GetSessionTokenInput) SetDurationSeconds(v int64) *GetSessionTokenInput { + s.DurationSeconds = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *GetSessionTokenInput) SetSerialNumber(v string) *GetSessionTokenInput { + s.SerialNumber = &v + return s +} + +// SetTokenCode sets the TokenCode field's value. +func (s *GetSessionTokenInput) SetTokenCode(v string) *GetSessionTokenInput { + s.TokenCode = &v + return s +} + // Contains the response to a successful GetSessionToken request, including // temporary AWS credentials that can be used to make AWS requests. type GetSessionTokenOutput struct { @@ -1873,10 +2218,10 @@ type GetSessionTokenOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` } @@ -1889,3 +2234,9 @@ func (s GetSessionTokenOutput) String() string { func (s GetSessionTokenOutput) GoString() string { return s.String() } + +// SetCredentials sets the Credentials field's value. +func (s *GetSessionTokenOutput) SetCredentials(v *Credentials) *GetSessionTokenOutput { + s.Credentials = v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go index c938e6ca1..a9b9b3255 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go @@ -17,7 +17,7 @@ import ( // This guide provides descriptions of the STS API. For more detailed information // about using this service, go to Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html). // -// As an alternative to using the API, you can use one of the AWS SDKs, which +// As an alternative to using the API, you can use one of the AWS SDKs, which // consist of libraries and sample code for various programming languages and // platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient // way to create programmatic access to STS. For example, the SDKs take care @@ -25,7 +25,7 @@ import ( // automatically. For information about the AWS SDKs, including how to download // and install them, see the Tools for Amazon Web Services page (http://aws.amazon.com/tools/). // -// For information about setting up signatures and authorization through the +// For information about setting up signatures and authorization through the // API, go to Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) // in the AWS General Reference. For general information about the Query API, // go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) @@ -37,7 +37,7 @@ import ( // AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/ // (http://aws.amazon.com/documentation/). // -// Endpoints +// Endpoints // // The AWS Security Token Service (STS) has a default endpoint of https://sts.amazonaws.com // that maps to the US East (N. Virginia) region. Additional regions are available @@ -48,7 +48,7 @@ import ( // For information about STS endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sts_region) // in the AWS General Reference. // -// Recording API requests +// Recording API requests // // STS supports AWS CloudTrail, which is a service that records AWS calls for // your AWS account and delivers log files to an Amazon S3 bucket. By using diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go index 47c081ff6..2f2f9f913 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go @@ -64,20 +64,20 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re // // To create and configure a ByteMatchSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateByteMatchSet request. // -// Submit a CreateByteMatchSet request. +// Submit a CreateByteMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateByteMatchSet request. // -// Submit an UpdateByteMatchSet request to specify the part of the request -// that you want AWS WAF to inspect (for example, the header or the URI) and -// the value that you want AWS WAF to watch for. +// Submit an UpdateByteMatchSet request to specify the part of the request that +// you want AWS WAF to inspect (for example, the header or the URI) and the +// value that you want AWS WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -102,24 +102,24 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * StaleDataException // The operation failed because you tried to create, update, or delete an object @@ -191,19 +191,19 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, // // To create and configure an IPSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateIPSet request. // -// Submit a CreateIPSet request. +// Submit a CreateIPSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateIPSet request. // -// Submit an UpdateIPSet request to specify the IP addresses that you want -// AWS WAF to watch for. +// Submit an UpdateIPSet request to specify the IP addresses that you want AWS +// WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -232,24 +232,24 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of @@ -314,36 +314,36 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o // to be allowed or blocked. For example, suppose you add the following to a // Rule: // -// An IPSet that matches the IP address 192.0.2.44/32 +// * An IPSet that matches the IP address 192.0.2.44/32 // -// A ByteMatchSet that matches BadBot in the User-Agent header +// * A ByteMatchSet that matches BadBot in the User-Agent header // -// You then add the Rule to a WebACL and specify that you want to blocks -// requests that satisfy the Rule. For a request to be blocked, it must come -// from the IP address 192.0.2.44 and the User-Agent header in the request must -// contain the value BadBot. +// You then add the Rule to a WebACL and specify that you want to blocks requests +// that satisfy the Rule. For a request to be blocked, it must come from the +// IP address 192.0.2.44 and the User-Agent header in the request must contain +// the value BadBot. // // To create and configure a Rule, perform the following steps: // -// Create and update the predicates that you want to include in the Rule. -// For more information, see CreateByteMatchSet, CreateIPSet, and CreateSqlInjectionMatchSet. +// Create and update the predicates that you want to include in the Rule. For +// more information, see CreateByteMatchSet, CreateIPSet, and CreateSqlInjectionMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateRule request. // -// Submit a CreateRule request. +// Submit a CreateRule request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateRule request. // -// Submit an UpdateRule request to specify the predicates that you want to -// include in the Rule. +// Submit an UpdateRule request to specify the predicates that you want to include +// in the Rule. // -// Create and update a WebACL that contains the Rule. For more information, +// Create and update a WebACL that contains the Rule. For more information, // see CreateWebACL. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -368,24 +368,24 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of @@ -453,20 +453,20 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput // // To create and configure a SizeConstraintSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateSizeConstraintSet request. // -// Submit a CreateSizeConstraintSet request. +// Submit a CreateSizeConstraintSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateSizeConstraintSet request. // -// Submit an UpdateSizeConstraintSet request to specify the part of the request +// Submit an UpdateSizeConstraintSet request to specify the part of the request // that you want AWS WAF to inspect (for example, the header or the URI) and // the value that you want AWS WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -495,24 +495,24 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of @@ -577,19 +577,19 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe // // To create and configure a SqlInjectionMatchSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateSqlInjectionMatchSet request. // -// Submit a CreateSqlInjectionMatchSet request. +// Submit a CreateSqlInjectionMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateSqlInjectionMatchSet request. // -// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web +// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web // requests in which you want to allow, block, or count malicious SQL code. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -614,24 +614,24 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * StaleDataException // The operation failed because you tried to create, update, or delete an object @@ -704,27 +704,27 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques // // To create and configure a WebACL, perform the following steps: // -// Create and update the ByteMatchSet objects and other predicates that you +// Create and update the ByteMatchSet objects and other predicates that you // want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, // CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. // -// Create and update the Rules that you want to include in the WebACL. For -// more information, see CreateRule and UpdateRule. +// Create and update the Rules that you want to include in the WebACL. For more +// information, see CreateRule and UpdateRule. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateWebACL request. // -// Submit a CreateWebACL request. +// Submit a CreateWebACL request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateWebACL request. // -// Submit an UpdateWebACL request to specify the Rules that you want to include +// Submit an UpdateWebACL request to specify the Rules that you want to include // in the WebACL, to specify the default action, and to associate the WebACL // with a CloudFront distribution. // -// For more information about how to use the AWS WAF API, see the AWS WAF -// Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API, see the AWS WAF Developer +// Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -753,24 +753,24 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of @@ -836,19 +836,19 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ // // To create and configure an XssMatchSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateXssMatchSet request. // -// Submit a CreateXssMatchSet request. +// Submit a CreateXssMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateXssMatchSet request. // -// Submit an UpdateXssMatchSet request to specify the parts of web requests +// Submit an UpdateXssMatchSet request to specify the parts of web requests // in which you want to allow, block, or count cross-site scripting attacks. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -873,24 +873,24 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * StaleDataException // The operation failed because you tried to create, update, or delete an object @@ -961,13 +961,13 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // // To permanently delete a ByteMatchSet, perform the following steps: // -// Update the ByteMatchSet to remove filters, if any. For more information, +// Update the ByteMatchSet to remove filters, if any. For more information, // see UpdateByteMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteByteMatchSet request. // -// Submit a DeleteByteMatchSet request. +// Submit a DeleteByteMatchSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -992,9 +992,9 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * StaleDataException // The operation failed because you tried to create, update, or delete an object @@ -1004,15 +1004,15 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // func (c *WAF) DeleteByteMatchSet(input *DeleteByteMatchSetInput) (*DeleteByteMatchSetOutput, error) { req, out := c.DeleteByteMatchSetRequest(input) @@ -1072,13 +1072,13 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, // // To permanently delete an IPSet from AWS WAF, perform the following steps: // -// Update the IPSet to remove IP address ranges, if any. For more information, +// Update the IPSet to remove IP address ranges, if any. For more information, // see UpdateIPSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteIPSet request. // -// Submit a DeleteIPSet request. +// Submit a DeleteIPSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1107,23 +1107,23 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // func (c *WAF) DeleteIPSet(input *DeleteIPSetInput) (*DeleteIPSetOutput, error) { req, out := c.DeleteIPSetRequest(input) @@ -1184,13 +1184,12 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // // To permanently delete a Rule from AWS WAF, perform the following steps: // -// Update the Rule to remove predicates, if any. For more information, see -// UpdateRule. +// Update the Rule to remove predicates, if any. For more information, see UpdateRule. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteRule request. // -// Submit a DeleteRule request. +// Submit a DeleteRule request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1219,23 +1218,23 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // func (c *WAF) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) @@ -1296,13 +1295,13 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput // // To permanently delete a SizeConstraintSet, perform the following steps: // -// Update the SizeConstraintSet to remove filters, if any. For more information, +// Update the SizeConstraintSet to remove filters, if any. For more information, // see UpdateSizeConstraintSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteSizeConstraintSet request. // -// Submit a DeleteSizeConstraintSet request. +// Submit a DeleteSizeConstraintSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1331,23 +1330,23 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // func (c *WAF) DeleteSizeConstraintSet(input *DeleteSizeConstraintSetInput) (*DeleteSizeConstraintSetOutput, error) { req, out := c.DeleteSizeConstraintSetRequest(input) @@ -1409,13 +1408,13 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // To permanently delete a SqlInjectionMatchSet from AWS WAF, perform the following // steps: // -// Update the SqlInjectionMatchSet to remove filters, if any. For more information, +// Update the SqlInjectionMatchSet to remove filters, if any. For more information, // see UpdateSqlInjectionMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteSqlInjectionMatchSet request. // -// Submit a DeleteSqlInjectionMatchSet request. +// Submit a DeleteSqlInjectionMatchSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1440,9 +1439,9 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * StaleDataException // The operation failed because you tried to create, update, or delete an object @@ -1452,15 +1451,15 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // func (c *WAF) DeleteSqlInjectionMatchSet(input *DeleteSqlInjectionMatchSetInput) (*DeleteSqlInjectionMatchSetOutput, error) { req, out := c.DeleteSqlInjectionMatchSetRequest(input) @@ -1518,12 +1517,12 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // // To delete a WebACL, perform the following steps: // -// Update the WebACL to remove Rules, if any. For more information, see UpdateWebACL. +// Update the WebACL to remove Rules, if any. For more information, see UpdateWebACL. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteWebACL request. // -// Submit a DeleteWebACL request. +// Submit a DeleteWebACL request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1552,23 +1551,23 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // func (c *WAF) DeleteWebACL(input *DeleteWebACLInput) (*DeleteWebACLOutput, error) { req, out := c.DeleteWebACLRequest(input) @@ -1629,13 +1628,13 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // To permanently delete an XssMatchSet from AWS WAF, perform the following // steps: // -// Update the XssMatchSet to remove filters, if any. For more information, -// see UpdateXssMatchSet. +// Update the XssMatchSet to remove filters, if any. For more information, see +// UpdateXssMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteXssMatchSet request. // -// Submit a DeleteXssMatchSet request. +// Submit a DeleteXssMatchSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1660,9 +1659,9 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * StaleDataException // The operation failed because you tried to create, update, or delete an object @@ -1672,15 +1671,15 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // func (c *WAF) DeleteXssMatchSet(input *DeleteXssMatchSetInput) (*DeleteXssMatchSetOutput, error) { req, out := c.DeleteXssMatchSetRequest(input) @@ -1816,10 +1815,10 @@ func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Re // the second GetChangeToken request returns the same value as the first GetChangeToken // request. // -// When you use a change token in a create, update, or delete request, the -// status of the change token changes to PENDING, which indicates that AWS WAF -// is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus -// to determine the status of your change token. +// When you use a change token in a create, update, or delete request, the status +// of the change token changes to PENDING, which indicates that AWS WAF is propagating +// the change to all AWS WAF servers. Use GetChangeTokenStatus to determine +// the status of your change token. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1887,14 +1886,14 @@ func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req // Returns the status of a ChangeToken that you got by calling GetChangeToken. // ChangeTokenStatus is one of the following values: // -// PROVISIONED: You requested the change token by calling GetChangeToken, -// but you haven't used it yet in a call to create, update, or delete an AWS -// WAF object. +// * PROVISIONED: You requested the change token by calling GetChangeToken, +// but you haven't used it yet in a call to create, update, or delete an +// AWS WAF object. // -// PENDING: AWS WAF is propagating the create, update, or delete request -// to all AWS WAF servers. +// * PENDING: AWS WAF is propagating the create, update, or delete request +// to all AWS WAF servers. // -// IN_SYNC: Propagation is complete. +// * IN_SYNC: Propagation is complete. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2113,7 +2112,7 @@ func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *re // sample size of up to 100 requests, and you can specify any time range in // the previous three hours. // -// GetSampledRequests returns a time range, which is usually the time range +// GetSampledRequests returns a time range, which is usually the time range // that you specified. However, if your resource (such as a CloudFront distribution) // received 5,000 requests before the specified time range elapsed, GetSampledRequests // returns an updated time range. This new time range indicates the actual period @@ -2959,40 +2958,40 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // Inserts or deletes ByteMatchTuple objects (filters) in a ByteMatchSet. For // each ByteMatchTuple object, you specify the following values: // -// Whether to insert or delete the object from the array. If you want to -// change a ByteMatchSetUpdate object, you delete the existing object and add -// a new one. +// * Whether to insert or delete the object from the array. If you want to +// change a ByteMatchSetUpdate object, you delete the existing object and +// add a new one. // -// The part of a web request that you want AWS WAF to inspect, such as a -// query string or the value of the User-Agent header. +// * The part of a web request that you want AWS WAF to inspect, such as +// a query string or the value of the User-Agent header. // -// The bytes (typically a string that corresponds with ASCII characters) -// that you want AWS WAF to look for. For more information, including how you -// specify the values for the AWS WAF API and the AWS CLI or SDKs, see TargetString -// in the ByteMatchTuple data type. +// * The bytes (typically a string that corresponds with ASCII characters) +// that you want AWS WAF to look for. For more information, including how +// you specify the values for the AWS WAF API and the AWS CLI or SDKs, see +// TargetString in the ByteMatchTuple data type. // -// Where to look, such as at the beginning or the end of a query string. +// * Where to look, such as at the beginning or the end of a query string. // -// Whether to perform any conversions on the request, such as converting -// it to lowercase, before inspecting it for the specified string. +// * Whether to perform any conversions on the request, such as converting +// it to lowercase, before inspecting it for the specified string. // -// For example, you can add a ByteMatchSetUpdate object that matches web -// requests in which User-Agent headers contain the string BadBot. You can then -// configure AWS WAF to block those requests. +// For example, you can add a ByteMatchSetUpdate object that matches web requests +// in which User-Agent headers contain the string BadBot. You can then configure +// AWS WAF to block those requests. // // To create and configure a ByteMatchSet, perform the following steps: // -// Create a ByteMatchSet. For more information, see CreateByteMatchSet. +// Create a ByteMatchSet. For more information, see CreateByteMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateByteMatchSet request. // -// Submit an UpdateByteMatchSet request to specify the part of the request -// that you want AWS WAF to inspect (for example, the header or the URI) and -// the value that you want AWS WAF to watch for. +// Submit an UpdateByteMatchSet request to specify the part of the request that +// you want AWS WAF to inspect (for example, the header or the URI) and the +// value that you want AWS WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3013,62 +3012,62 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // * InvalidOperationException // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // // * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // // * NonexistentItemException // The operation failed because the referenced object doesn't exist. @@ -3137,31 +3136,21 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // Inserts or deletes IPSetDescriptor objects in an IPSet. For each IPSetDescriptor // object, you specify the following values: // -// Whether to insert or delete the object from the array. If you want to -// change an IPSetDescriptor object, you delete the existing object and add -// a new one. +// * Whether to insert or delete the object from the array. If you want to +// change an IPSetDescriptor object, you delete the existing object and add +// a new one. // -// The IP address version, IPv4 or IPv6. +// * The IP address version, IPv4. // -// The IP address in CIDR notation, for example, 192.0.2.0/24 (for the range -// of IP addresses from 192.0.2.0 to 192.0.2.255) or 192.0.2.44/32 (for the -// individual IP address 192.0.2.44). +// * The IP address in CIDR notation, for example, 192.0.2.0/24 (for the +// range of IP addresses from 192.0.2.0 to 192.0.2.255) or 192.0.2.44/32 +// (for the individual IP address 192.0.2.44). // -// AWS WAF supports /8, /16, /24, and /32 IP address ranges for IPv4, and -// /24, /32, /48, /56, /64 and /128 for IPv6. For more information about CIDR -// notation, see the Wikipedia entry Classless Inter-Domain Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// AWS WAF supports /8, /16, /24, and /32 IP address ranges. For more information +// about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing +// (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // -// IPv6 addresses can be represented using any of the following formats: -// -// 1111:0000:0000:0000:0000:0000:0000:0111/128 -// -// 1111:0:0:0:0:0:0:0111/128 -// -// 1111::0111/128 -// -// 1111::111/128 -// -// You use an IPSet to specify which web requests you want to allow or block +// You use an IPSet to specify which web requests you want to allow or block // based on the IP addresses that the requests originated from. For example, // if you're receiving a lot of requests from one or a small number of IP addresses // and you want to block the requests, you can create an IPSet that specifies @@ -3169,20 +3158,20 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // // To create and configure an IPSet, perform the following steps: // -// Submit a CreateIPSet request. +// Submit a CreateIPSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateIPSet request. // -// Submit an UpdateIPSet request to specify the IP addresses that you want -// AWS WAF to watch for. +// Submit an UpdateIPSet request to specify the IP addresses that you want AWS +// WAF to watch for. // -// When you update an IPSet, you specify the IP addresses that you want to -// add and/or the IP addresses that you want to delete. If you want to change -// an IP address, you delete the existing IP address and add the new one. +// When you update an IPSet, you specify the IP addresses that you want to add +// and/or the IP addresses that you want to delete. If you want to change an +// IP address, you delete the existing IP address and add the new one. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3207,62 +3196,62 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // * InvalidOperationException // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // // * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // // * NonexistentItemException // The operation failed because the referenced object doesn't exist. @@ -3271,9 +3260,9 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of @@ -3338,33 +3327,33 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // to a Rule, a request must match all of the specifications to be allowed, // blocked, or counted. For example, suppose you add the following to a Rule: // -// A ByteMatchSet that matches the value BadBot in the User-Agent header +// * A ByteMatchSet that matches the value BadBot in the User-Agent header // -// An IPSet that matches the IP address 192.0.2.44 +// * An IPSet that matches the IP address 192.0.2.44 // -// You then add the Rule to a WebACL and specify that you want to block requests +// You then add the Rule to a WebACL and specify that you want to block requests // that satisfy the Rule. For a request to be blocked, the User-Agent header -// in the request must contain the value BadBot and the request must originate +// in the request must contain the value BadBotand the request must originate // from the IP address 192.0.2.44. // // To create and configure a Rule, perform the following steps: // -// Create and update the predicates that you want to include in the Rule. +// Create and update the predicates that you want to include in the Rule. // -// Create the Rule. See CreateRule. +// Create the Rule. See CreateRule. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateRule request. // -// Submit an UpdateRule request to add predicates to the Rule. +// Submit an UpdateRule request to add predicates to the Rule. // -// Create and update a WebACL that contains the Rule. See CreateWebACL. +// Create and update a WebACL that contains the Rule. See CreateWebACL. // -// If you want to replace one ByteMatchSet or IPSet with another, you delete +// If you want to replace one ByteMatchSet or IPSet with another, you delete // the existing one and add the new one. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3389,62 +3378,62 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // * InvalidOperationException // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // // * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // // * NonexistentItemException // The operation failed because the referenced object doesn't exist. @@ -3453,9 +3442,9 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of @@ -3517,42 +3506,42 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // Inserts or deletes SizeConstraint objects (filters) in a SizeConstraintSet. // For each SizeConstraint object, you specify the following values: // -// Whether to insert or delete the object from the array. If you want to -// change a SizeConstraintSetUpdate object, you delete the existing object and -// add a new one. +// * Whether to insert or delete the object from the array. If you want to +// change a SizeConstraintSetUpdate object, you delete the existing object +// and add a new one. // -// The part of a web request that you want AWS WAF to evaluate, such as the -// length of a query string or the length of the User-Agent header. +// * The part of a web request that you want AWS WAF to evaluate, such as +// the length of a query string or the length of the User-Agent header. // -// Whether to perform any transformations on the request, such as converting -// it to lowercase, before checking its length. Note that transformations of -// the request body are not supported because the AWS resource forwards only -// the first 8192 bytes of your request to AWS WAF. +// * Whether to perform any transformations on the request, such as converting +// it to lowercase, before checking its length. Note that transformations +// of the request body are not supported because the AWS resource forwards +// only the first 8192 bytes of your request to AWS WAF. // -// A ComparisonOperator used for evaluating the selected part of the request -// against the specified Size, such as equals, greater than, less than, and -// so on. +// * A ComparisonOperator used for evaluating the selected part of the request +// against the specified Size, such as equals, greater than, less than, and +// so on. // -// The length, in bytes, that you want AWS WAF to watch for in selected part -// of the request. The length is computed after applying the transformation. +// * The length, in bytes, that you want AWS WAF to watch for in selected +// part of the request. The length is computed after applying the transformation. // -// For example, you can add a SizeConstraintSetUpdate object that matches -// web requests in which the length of the User-Agent header is greater than -// 100 bytes. You can then configure AWS WAF to block those requests. +// For example, you can add a SizeConstraintSetUpdate object that matches web +// requests in which the length of the User-Agent header is greater than 100 +// bytes. You can then configure AWS WAF to block those requests. // // To create and configure a SizeConstraintSet, perform the following steps: // -// Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet. +// Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateSizeConstraintSet request. // -// Submit an UpdateSizeConstraintSet request to specify the part of the request +// Submit an UpdateSizeConstraintSet request to specify the part of the request // that you want AWS WAF to inspect (for example, the header or the URI) and // the value that you want AWS WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3577,62 +3566,62 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // * InvalidOperationException // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // // * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // // * NonexistentItemException // The operation failed because the referenced object doesn't exist. @@ -3641,9 +3630,9 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of @@ -3705,18 +3694,18 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet. // For each SqlInjectionMatchTuple object, you specify the following values: // -// Action: Whether to insert the object into or delete the object from the -// array. To change a SqlInjectionMatchTuple, you delete the existing object -// and add a new one. +// * Action: Whether to insert the object into or delete the object from +// the array. To change a SqlInjectionMatchTuple, you delete the existing +// object and add a new one. // -// FieldToMatch: The part of web requests that you want AWS WAF to inspect -// and, if you want AWS WAF to inspect a header, the name of the header. +// * FieldToMatch: The part of web requests that you want AWS WAF to inspect +// and, if you want AWS WAF to inspect a header, the name of the header. // -// TextTransformation: Which text transformation, if any, to perform on -// the web request before inspecting the request for snippets of malicious SQL -// code. +// * TextTransformation: Which text transformation, if any, to perform on +// the web request before inspecting the request for snippets of malicious +// SQL code. // -// You use SqlInjectionMatchSet objects to specify which CloudFront requests +// You use SqlInjectionMatchSet objects to specify which CloudFront requests // you want to allow, block, or count. For example, if you're receiving requests // that contain snippets of SQL code in the query string and you want to block // the requests, you can create a SqlInjectionMatchSet with the applicable settings, @@ -3724,16 +3713,16 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // // To create and configure a SqlInjectionMatchSet, perform the following steps: // -// Submit a CreateSqlInjectionMatchSet request. +// Submit a CreateSqlInjectionMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateIPSet request. // -// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web +// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web // requests that you want AWS WAF to inspect for snippets of SQL code. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3754,62 +3743,62 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // * InvalidOperationException // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // // * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // // * NonexistentItemException // The operation failed because the referenced object doesn't exist. @@ -3879,46 +3868,47 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // web requests that you want to allow, block, or count. When you update a WebACL, // you specify the following values: // -// A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs -// the default action if a request doesn't match the criteria in any of the -// Rules in a WebACL. +// * A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs +// the default action if a request doesn't match the criteria in any of the +// Rules in a WebACL. // -// The Rules that you want to add and/or delete. If you want to replace one -// Rule with another, you delete the existing Rule and add the new one. +// * The Rules that you want to add and/or delete. If you want to replace +// one Rule with another, you delete the existing Rule and add the new one. // -// For each Rule, whether you want AWS WAF to allow requests, block requests, -// or count requests that match the conditions in the Rule. +// * For each Rule, whether you want AWS WAF to allow requests, block requests, +// or count requests that match the conditions in the Rule. // -// The order in which you want AWS WAF to evaluate the Rules in a WebACL. -// If you add more than one Rule to a WebACL, AWS WAF evaluates each request -// against the Rules in order based on the value of Priority. (The Rule that -// has the lowest value for Priority is evaluated first.) When a web request -// matches all of the predicates (such as ByteMatchSets and IPSets) in a Rule, -// AWS WAF immediately takes the corresponding action, allow or block, and doesn't -// evaluate the request against the remaining Rules in the WebACL, if any. +// * The order in which you want AWS WAF to evaluate the Rules in a WebACL. +// If you add more than one Rule to a WebACL, AWS WAF evaluates each request +// against the Rules in order based on the value of Priority. (The Rule that +// has the lowest value for Priority is evaluated first.) When a web request +// matches all of the predicates (such as ByteMatchSets and IPSets) in a +// Rule, AWS WAF immediately takes the corresponding action, allow or block, +// and doesn't evaluate the request against the remaining Rules in the WebACL, +// if any. // -// The CloudFront distribution that you want to associate with the WebACL. +// * The CloudFront distribution that you want to associate with the WebACL. // -// To create and configure a WebACL, perform the following steps: +// To create and configure a WebACL, perform the following steps: // -// Create and update the predicates that you want to include in Rules. For -// more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, -// UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. +// Create and update the predicates that you want to include in Rules. For more +// information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, +// CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. // -// Create and update the Rules that you want to include in the WebACL. For -// more information, see CreateRule and UpdateRule. +// Create and update the Rules that you want to include in the WebACL. For more +// information, see CreateRule and UpdateRule. // -// Create a WebACL. See CreateWebACL. +// Create a WebACL. See CreateWebACL. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateWebACL request. // -// Submit an UpdateWebACL request to specify the Rules that you want to include +// Submit an UpdateWebACL request to specify the Rules that you want to include // in the WebACL, to specify the default action, and to associate the WebACL // with a CloudFront distribution. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3943,62 +3933,62 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // * InvalidOperationException // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // // * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // // * NonexistentItemException // The operation failed because the referenced object doesn't exist. @@ -4007,9 +3997,9 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // // * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of @@ -4071,17 +4061,18 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet. For // each XssMatchTuple object, you specify the following values: // -// Action: Whether to insert the object into or delete the object from the -// array. To change a XssMatchTuple, you delete the existing object and add -// a new one. +// * Action: Whether to insert the object into or delete the object from +// the array. To change a XssMatchTuple, you delete the existing object and +// add a new one. // -// FieldToMatch: The part of web requests that you want AWS WAF to inspect -// and, if you want AWS WAF to inspect a header, the name of the header. +// * FieldToMatch: The part of web requests that you want AWS WAF to inspect +// and, if you want AWS WAF to inspect a header, the name of the header. // -// TextTransformation: Which text transformation, if any, to perform on -// the web request before inspecting the request for cross-site scripting attacks. +// * TextTransformation: Which text transformation, if any, to perform on +// the web request before inspecting the request for cross-site scripting +// attacks. // -// You use XssMatchSet objects to specify which CloudFront requests you want +// You use XssMatchSet objects to specify which CloudFront requests you want // to allow, block, or count. For example, if you're receiving requests that // contain cross-site scripting attacks in the request body and you want to // block the requests, you can create an XssMatchSet with the applicable settings, @@ -4089,16 +4080,16 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // // To create and configure an XssMatchSet, perform the following steps: // -// Submit a CreateXssMatchSet request. +// Submit a CreateXssMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateIPSet request. // -// Submit an UpdateXssMatchSet request to specify the parts of web requests +// Submit an UpdateXssMatchSet request to specify the parts of web requests // that you want AWS WAF to inspect for cross-site scripting attacks. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4119,62 +4110,62 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // * InvalidOperationException // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // // * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // // * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // // * NonexistentItemException // The operation failed because the referenced object doesn't exist. @@ -4200,21 +4191,21 @@ func (c *WAF) UpdateXssMatchSet(input *UpdateXssMatchSetInput) (*UpdateXssMatchS // the action that you want AWS WAF to take when a web request matches the Rule // (ALLOW, BLOCK, or COUNT). // -// To specify whether to insert or delete a Rule, use the Action parameter -// in the WebACLUpdate data type. +// To specify whether to insert or delete a Rule, use the Action parameter in +// the WebACLUpdate data type. type ActivatedRule struct { _ struct{} `type:"structure"` // Specifies the action that CloudFront or AWS WAF takes when a web request // matches the conditions in the Rule. Valid values for Action include the following: // - // ALLOW: CloudFront responds with the requested object. + // * ALLOW: CloudFront responds with the requested object. // - // BLOCK: CloudFront responds with an HTTP 403 (Forbidden) status code. + // * BLOCK: CloudFront responds with an HTTP 403 (Forbidden) status code. // - // COUNT: AWS WAF increments a counter of requests that match the conditions - // in the rule and then continues to inspect the web request based on the remaining - // rules in the web ACL. + // * COUNT: AWS WAF increments a counter of requests that match the conditions + // in the rule and then continues to inspect the web request based on the + // remaining rules in the web ACL. // // Action is a required field Action *WafAction `type:"structure" required:"true"` @@ -4232,7 +4223,7 @@ type ActivatedRule struct { // or delete a one from a WebACL (see UpdateWebACL), or delete a Rule from AWS // WAF (see DeleteRule). // - // RuleId is returned by CreateRule and by ListRules. + // RuleId is returned by CreateRule and by ListRules. // // RuleId is a required field RuleId *string `min:"1" type:"string" required:"true"` @@ -4275,6 +4266,24 @@ func (s *ActivatedRule) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *ActivatedRule) SetAction(v *WafAction) *ActivatedRule { + s.Action = v + return s +} + +// SetPriority sets the Priority field's value. +func (s *ActivatedRule) SetPriority(v int64) *ActivatedRule { + s.Priority = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *ActivatedRule) SetRuleId(v string) *ActivatedRule { + s.RuleId = &v + return s +} + // In a GetByteMatchSet request, ByteMatchSet is a complex type that contains // the ByteMatchSetId and Name of a ByteMatchSet, and the values that you specified // when you updated the ByteMatchSet. @@ -4292,7 +4301,7 @@ type ByteMatchSet struct { // insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet). // - // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. + // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. // // ByteMatchSetId is a required field ByteMatchSetId *string `min:"1" type:"string" required:"true"` @@ -4319,6 +4328,24 @@ func (s ByteMatchSet) GoString() string { return s.String() } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *ByteMatchSet) SetByteMatchSetId(v string) *ByteMatchSet { + s.ByteMatchSetId = &v + return s +} + +// SetByteMatchTuples sets the ByteMatchTuples field's value. +func (s *ByteMatchSet) SetByteMatchTuples(v []*ByteMatchTuple) *ByteMatchSet { + s.ByteMatchTuples = v + return s +} + +// SetName sets the Name field's value. +func (s *ByteMatchSet) SetName(v string) *ByteMatchSet { + s.Name = &v + return s +} + // Returned by ListByteMatchSets. Each ByteMatchSetSummary object includes the // Name and ByteMatchSetId for one ByteMatchSet. type ByteMatchSetSummary struct { @@ -4328,7 +4355,7 @@ type ByteMatchSetSummary struct { // about a ByteMatchSet, update a ByteMatchSet, remove a ByteMatchSet from a // Rule, and delete a ByteMatchSet from AWS WAF. // - // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. + // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. // // ByteMatchSetId is a required field ByteMatchSetId *string `min:"1" type:"string" required:"true"` @@ -4350,6 +4377,18 @@ func (s ByteMatchSetSummary) GoString() string { return s.String() } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *ByteMatchSetSummary) SetByteMatchSetId(v string) *ByteMatchSetSummary { + s.ByteMatchSetId = &v + return s +} + +// SetName sets the Name field's value. +func (s *ByteMatchSetSummary) SetName(v string) *ByteMatchSetSummary { + s.Name = &v + return s +} + // In an UpdateByteMatchSet request, ByteMatchSetUpdate specifies whether to // insert or delete a ByteMatchTuple and includes the settings for the ByteMatchTuple. type ByteMatchSetUpdate struct { @@ -4400,6 +4439,18 @@ func (s *ByteMatchSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *ByteMatchSetUpdate) SetAction(v string) *ByteMatchSetUpdate { + s.Action = &v + return s +} + +// SetByteMatchTuple sets the ByteMatchTuple field's value. +func (s *ByteMatchSetUpdate) SetByteMatchTuple(v *ByteMatchTuple) *ByteMatchSetUpdate { + s.ByteMatchTuple = v + return s +} + // The bytes (typically a string that corresponds with ASCII characters) that // you want AWS WAF to search for in web requests, the location in requests // that you want AWS WAF to search, and other settings. @@ -4416,44 +4467,44 @@ type ByteMatchTuple struct { // in the query string, if any), specify where you want AWS WAF to search. Valid // values include the following: // - // CONTAINS + // CONTAINS // // The specified part of the web request must include the value of TargetString, // but the location doesn't matter. // - // CONTAINS_WORD + // CONTAINS_WORD // // The specified part of the web request must include the value of TargetString, // and TargetString must contain only alphanumeric characters or underscore // (A-Z, a-z, 0-9, or _). In addition, TargetString must be a word, which means // one of the following: // - // TargetString exactly matches the value of the specified part of the web - // request, such as the value of a header. + // * TargetString exactly matches the value of the specified part of the + // web request, such as the value of a header. // - // TargetString is at the beginning of the specified part of the web request - // and is followed by a character other than an alphanumeric character or underscore - // (_), for example, BadBot;. + // * TargetString is at the beginning of the specified part of the web request + // and is followed by a character other than an alphanumeric character or + // underscore (_), for example, BadBot;. // - // TargetString is at the end of the specified part of the web request and - // is preceded by a character other than an alphanumeric character or underscore - // (_), for example, ;BadBot. + // * TargetString is at the end of the specified part of the web request + // and is preceded by a character other than an alphanumeric character or + // underscore (_), for example, ;BadBot. // - // TargetString is in the middle of the specified part of the web request - // and is preceded and followed by characters other than alphanumeric characters - // or underscore (_), for example, -BadBot;. + // * TargetString is in the middle of the specified part of the web request + // and is preceded and followed by characters other than alphanumeric characters + // or underscore (_), for example, -BadBot;. // - // EXACTLY + // EXACTLY // // The value of the specified part of the web request must exactly match the // value of TargetString. // - // STARTS_WITH + // STARTS_WITH // - // The value of TargetString must appear at the beginning of the specified - // part of the web request. + // The value of TargetString must appear at the beginning of the specified part + // of the web request. // - // ENDS_WITH + // ENDS_WITH // // The value of TargetString must appear at the end of the specified part of // the web request. @@ -4467,31 +4518,32 @@ type ByteMatchTuple struct { // // Valid values depend on the values that you specified for FieldToMatch: // - // HEADER: The value that you want AWS WAF to search for in the request - // header that you specified in FieldToMatch, for example, the value of the - // User-Agent or Referer header. + // * HEADER: The value that you want AWS WAF to search for in the request + // header that you specified in FieldToMatch, for example, the value of the + // User-Agent or Referer header. // - // METHOD: The HTTP method, which indicates the type of operation specified - // in the request. CloudFront supports the following methods: DELETE, GET, HEAD, - // OPTIONS, PATCH, POST, and PUT. + // * METHOD: The HTTP method, which indicates the type of operation specified + // in the request. CloudFront supports the following methods: DELETE, GET, + // HEAD, OPTIONS, PATCH, POST, and PUT. // - // QUERY_STRING: The value that you want AWS WAF to search for in the query - // string, which is the part of a URL that appears after a ? character. + // * QUERY_STRING: The value that you want AWS WAF to search for in the query + // string, which is the part of a URL that appears after a ? character. // - // URI: The value that you want AWS WAF to search for in the part of a URL - // that identifies a resource, for example, /images/daily-ad.jpg. + // * URI: The value that you want AWS WAF to search for in the part of a + // URL that identifies a resource, for example, /images/daily-ad.jpg. // - // BODY: The part of a request that contains any additional data that you - // want to send to your web server as the HTTP request body, such as data from - // a form. The request body immediately follows the request headers. Note that - // only the first 8192 bytes of the request body are forwarded to AWS WAF for - // inspection. To allow or block requests based on the length of the body, you - // can create a size constraint set. For more information, see CreateSizeConstraintSet. + // * BODY: The part of a request that contains any additional data that you + // want to send to your web server as the HTTP request body, such as data + // from a form. The request body immediately follows the request headers. + // Note that only the first 8192 bytes of the request body are forwarded + // to AWS WAF for inspection. To allow or block requests based on the length + // of the body, you can create a size constraint set. For more information, + // see CreateSizeConstraintSet. // - // If TargetString includes alphabetic characters A-Z and a-z, note that - // the value is case sensitive. + // If TargetString includes alphabetic characters A-Z and a-z, note that the + // value is case sensitive. // - // If you're using the AWS WAF API + // If you're using the AWS WAF API // // Specify a base64-encoded version of the value. The maximum length of the // value before you base64-encode it is 50 bytes. @@ -4501,7 +4553,7 @@ type ByteMatchTuple struct { // you base64-encode BadBot using MIME base64 encoding and include the resulting // value, QmFkQm90, in the value of TargetString. // - // If you're using the AWS CLI or one of the AWS SDKs + // If you're using the AWS CLI or one of the AWS SDKs // // The value that you want AWS WAF to search for. The SDK automatically base64 // encodes the value. @@ -4516,69 +4568,69 @@ type ByteMatchTuple struct { // AWS WAF performs the transformation on TargetString before inspecting a request // for a match. // - // CMD_LINE + // CMD_LINE // // When you're concerned that attackers are injecting an operating system commandline // command and using unusual formatting to disguise some or all of the command, // use this option to perform the following transformations: // - // Delete the following characters: \ " ' ^ + // * Delete the following characters: \ " ' ^ // - // Delete spaces before the following characters: / ( + // * Delete spaces before the following characters: / ( // - // Replace the following characters with a space: , ; + // * Replace the following characters with a space: , ; // - // Replace multiple spaces with one space + // * Replace multiple spaces with one space // - // Convert uppercase letters (A-Z) to lowercase (a-z) + // * Convert uppercase letters (A-Z) to lowercase (a-z) // - // COMPRESS_WHITE_SPACE + // COMPRESS_WHITE_SPACE // // Use this option to replace the following characters with a space character // (decimal 32): // - // \f, formfeed, decimal 12 + // * \f, formfeed, decimal 12 // - // \t, tab, decimal 9 + // * \t, tab, decimal 9 // - // \n, newline, decimal 10 + // * \n, newline, decimal 10 // - // \r, carriage return, decimal 13 + // * \r, carriage return, decimal 13 // - // \v, vertical tab, decimal 11 + // * \v, vertical tab, decimal 11 // - // non-breaking space, decimal 160 + // * non-breaking space, decimal 160 // - // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. + // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. // - // HTML_ENTITY_DECODE + // HTML_ENTITY_DECODE // // Use this option to replace HTML-encoded characters with unencoded characters. // HTML_ENTITY_DECODE performs the following operations: // - // Replaces (ampersand)quot; with " + // * Replaces (ampersand)quot; with " // - // Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 + // * Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 // - // Replaces (ampersand)lt; with a "less than" symbol + // * Replaces (ampersand)lt; with a "less than" symbol // - // Replaces (ampersand)gt; with > + // * Replaces (ampersand)gt; with > // - // Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, - // with the corresponding characters + // * Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, + // with the corresponding characters // - // Replaces characters that are represented in decimal format, (ampersand)#nnnn;, - // with the corresponding characters + // * Replaces characters that are represented in decimal format, (ampersand)#nnnn;, + // with the corresponding characters // - // LOWERCASE + // LOWERCASE // // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). // - // URL_DECODE + // URL_DECODE // // Use this option to decode a URL-encoded value. // - // NONE + // NONE // // Specify NONE if you don't want to perform any text transformations. // @@ -4623,6 +4675,30 @@ func (s *ByteMatchTuple) Validate() error { return nil } +// SetFieldToMatch sets the FieldToMatch field's value. +func (s *ByteMatchTuple) SetFieldToMatch(v *FieldToMatch) *ByteMatchTuple { + s.FieldToMatch = v + return s +} + +// SetPositionalConstraint sets the PositionalConstraint field's value. +func (s *ByteMatchTuple) SetPositionalConstraint(v string) *ByteMatchTuple { + s.PositionalConstraint = &v + return s +} + +// SetTargetString sets the TargetString field's value. +func (s *ByteMatchTuple) SetTargetString(v []byte) *ByteMatchTuple { + s.TargetString = v + return s +} + +// SetTextTransformation sets the TextTransformation field's value. +func (s *ByteMatchTuple) SetTextTransformation(v string) *ByteMatchTuple { + s.TextTransformation = &v + return s +} + type CreateByteMatchSetInput struct { _ struct{} `type:"structure"` @@ -4670,6 +4746,18 @@ func (s *CreateByteMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateByteMatchSetInput) SetChangeToken(v string) *CreateByteMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateByteMatchSetInput) SetName(v string) *CreateByteMatchSetInput { + s.Name = &v + return s +} + type CreateByteMatchSetOutput struct { _ struct{} `type:"structure"` @@ -4692,6 +4780,18 @@ func (s CreateByteMatchSetOutput) GoString() string { return s.String() } +// SetByteMatchSet sets the ByteMatchSet field's value. +func (s *CreateByteMatchSetOutput) SetByteMatchSet(v *ByteMatchSet) *CreateByteMatchSetOutput { + s.ByteMatchSet = v + return s +} + +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateByteMatchSetOutput) SetChangeToken(v string) *CreateByteMatchSetOutput { + s.ChangeToken = &v + return s +} + type CreateIPSetInput struct { _ struct{} `type:"structure"` @@ -4739,6 +4839,18 @@ func (s *CreateIPSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateIPSetInput) SetChangeToken(v string) *CreateIPSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateIPSetInput) SetName(v string) *CreateIPSetInput { + s.Name = &v + return s +} + type CreateIPSetOutput struct { _ struct{} `type:"structure"` @@ -4761,6 +4873,18 @@ func (s CreateIPSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateIPSetOutput) SetChangeToken(v string) *CreateIPSetOutput { + s.ChangeToken = &v + return s +} + +// SetIPSet sets the IPSet field's value. +func (s *CreateIPSetOutput) SetIPSet(v *IPSet) *CreateIPSetOutput { + s.IPSet = v + return s +} + type CreateRuleInput struct { _ struct{} `type:"structure"` @@ -4819,6 +4943,24 @@ func (s *CreateRuleInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateRuleInput) SetChangeToken(v string) *CreateRuleInput { + s.ChangeToken = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *CreateRuleInput) SetMetricName(v string) *CreateRuleInput { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRuleInput) SetName(v string) *CreateRuleInput { + s.Name = &v + return s +} + type CreateRuleOutput struct { _ struct{} `type:"structure"` @@ -4841,6 +4983,18 @@ func (s CreateRuleOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateRuleOutput) SetChangeToken(v string) *CreateRuleOutput { + s.ChangeToken = &v + return s +} + +// SetRule sets the Rule field's value. +func (s *CreateRuleOutput) SetRule(v *Rule) *CreateRuleOutput { + s.Rule = v + return s +} + type CreateSizeConstraintSetInput struct { _ struct{} `type:"structure"` @@ -4888,6 +5042,18 @@ func (s *CreateSizeConstraintSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateSizeConstraintSetInput) SetChangeToken(v string) *CreateSizeConstraintSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSizeConstraintSetInput) SetName(v string) *CreateSizeConstraintSetInput { + s.Name = &v + return s +} + type CreateSizeConstraintSetOutput struct { _ struct{} `type:"structure"` @@ -4910,6 +5076,18 @@ func (s CreateSizeConstraintSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateSizeConstraintSetOutput) SetChangeToken(v string) *CreateSizeConstraintSetOutput { + s.ChangeToken = &v + return s +} + +// SetSizeConstraintSet sets the SizeConstraintSet field's value. +func (s *CreateSizeConstraintSetOutput) SetSizeConstraintSet(v *SizeConstraintSet) *CreateSizeConstraintSetOutput { + s.SizeConstraintSet = v + return s +} + // A request to create a SqlInjectionMatchSet. type CreateSqlInjectionMatchSetInput struct { _ struct{} `type:"structure"` @@ -4958,6 +5136,18 @@ func (s *CreateSqlInjectionMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateSqlInjectionMatchSetInput) SetChangeToken(v string) *CreateSqlInjectionMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSqlInjectionMatchSetInput) SetName(v string) *CreateSqlInjectionMatchSetInput { + s.Name = &v + return s +} + // The response to a CreateSqlInjectionMatchSet request. type CreateSqlInjectionMatchSetOutput struct { _ struct{} `type:"structure"` @@ -4981,6 +5171,18 @@ func (s CreateSqlInjectionMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateSqlInjectionMatchSetOutput) SetChangeToken(v string) *CreateSqlInjectionMatchSetOutput { + s.ChangeToken = &v + return s +} + +// SetSqlInjectionMatchSet sets the SqlInjectionMatchSet field's value. +func (s *CreateSqlInjectionMatchSetOutput) SetSqlInjectionMatchSet(v *SqlInjectionMatchSet) *CreateSqlInjectionMatchSetOutput { + s.SqlInjectionMatchSet = v + return s +} + type CreateWebACLInput struct { _ struct{} `type:"structure"` @@ -5053,6 +5255,30 @@ func (s *CreateWebACLInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateWebACLInput) SetChangeToken(v string) *CreateWebACLInput { + s.ChangeToken = &v + return s +} + +// SetDefaultAction sets the DefaultAction field's value. +func (s *CreateWebACLInput) SetDefaultAction(v *WafAction) *CreateWebACLInput { + s.DefaultAction = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *CreateWebACLInput) SetMetricName(v string) *CreateWebACLInput { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateWebACLInput) SetName(v string) *CreateWebACLInput { + s.Name = &v + return s +} + type CreateWebACLOutput struct { _ struct{} `type:"structure"` @@ -5075,6 +5301,18 @@ func (s CreateWebACLOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateWebACLOutput) SetChangeToken(v string) *CreateWebACLOutput { + s.ChangeToken = &v + return s +} + +// SetWebACL sets the WebACL field's value. +func (s *CreateWebACLOutput) SetWebACL(v *WebACL) *CreateWebACLOutput { + s.WebACL = v + return s +} + // A request to create an XssMatchSet. type CreateXssMatchSetInput struct { _ struct{} `type:"structure"` @@ -5123,6 +5361,18 @@ func (s *CreateXssMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateXssMatchSetInput) SetChangeToken(v string) *CreateXssMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateXssMatchSetInput) SetName(v string) *CreateXssMatchSetInput { + s.Name = &v + return s +} + // The response to a CreateXssMatchSet request. type CreateXssMatchSetOutput struct { _ struct{} `type:"structure"` @@ -5146,6 +5396,18 @@ func (s CreateXssMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateXssMatchSetOutput) SetChangeToken(v string) *CreateXssMatchSetOutput { + s.ChangeToken = &v + return s +} + +// SetXssMatchSet sets the XssMatchSet field's value. +func (s *CreateXssMatchSetOutput) SetXssMatchSet(v *XssMatchSet) *CreateXssMatchSetOutput { + s.XssMatchSet = v + return s +} + type DeleteByteMatchSetInput struct { _ struct{} `type:"structure"` @@ -5193,6 +5455,18 @@ func (s *DeleteByteMatchSetInput) Validate() error { return nil } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *DeleteByteMatchSetInput) SetByteMatchSetId(v string) *DeleteByteMatchSetInput { + s.ByteMatchSetId = &v + return s +} + +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteByteMatchSetInput) SetChangeToken(v string) *DeleteByteMatchSetInput { + s.ChangeToken = &v + return s +} + type DeleteByteMatchSetOutput struct { _ struct{} `type:"structure"` @@ -5212,6 +5486,12 @@ func (s DeleteByteMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteByteMatchSetOutput) SetChangeToken(v string) *DeleteByteMatchSetOutput { + s.ChangeToken = &v + return s +} + type DeleteIPSetInput struct { _ struct{} `type:"structure"` @@ -5259,6 +5539,18 @@ func (s *DeleteIPSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteIPSetInput) SetChangeToken(v string) *DeleteIPSetInput { + s.ChangeToken = &v + return s +} + +// SetIPSetId sets the IPSetId field's value. +func (s *DeleteIPSetInput) SetIPSetId(v string) *DeleteIPSetInput { + s.IPSetId = &v + return s +} + type DeleteIPSetOutput struct { _ struct{} `type:"structure"` @@ -5278,6 +5570,12 @@ func (s DeleteIPSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteIPSetOutput) SetChangeToken(v string) *DeleteIPSetOutput { + s.ChangeToken = &v + return s +} + type DeleteRuleInput struct { _ struct{} `type:"structure"` @@ -5325,6 +5623,18 @@ func (s *DeleteRuleInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteRuleInput) SetChangeToken(v string) *DeleteRuleInput { + s.ChangeToken = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *DeleteRuleInput) SetRuleId(v string) *DeleteRuleInput { + s.RuleId = &v + return s +} + type DeleteRuleOutput struct { _ struct{} `type:"structure"` @@ -5344,6 +5654,12 @@ func (s DeleteRuleOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteRuleOutput) SetChangeToken(v string) *DeleteRuleOutput { + s.ChangeToken = &v + return s +} + type DeleteSizeConstraintSetInput struct { _ struct{} `type:"structure"` @@ -5391,6 +5707,18 @@ func (s *DeleteSizeConstraintSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteSizeConstraintSetInput) SetChangeToken(v string) *DeleteSizeConstraintSetInput { + s.ChangeToken = &v + return s +} + +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *DeleteSizeConstraintSetInput) SetSizeConstraintSetId(v string) *DeleteSizeConstraintSetInput { + s.SizeConstraintSetId = &v + return s +} + type DeleteSizeConstraintSetOutput struct { _ struct{} `type:"structure"` @@ -5410,6 +5738,12 @@ func (s DeleteSizeConstraintSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteSizeConstraintSetOutput) SetChangeToken(v string) *DeleteSizeConstraintSetOutput { + s.ChangeToken = &v + return s +} + // A request to delete a SqlInjectionMatchSet from AWS WAF. type DeleteSqlInjectionMatchSetInput struct { _ struct{} `type:"structure"` @@ -5458,6 +5792,18 @@ func (s *DeleteSqlInjectionMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteSqlInjectionMatchSetInput) SetChangeToken(v string) *DeleteSqlInjectionMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *DeleteSqlInjectionMatchSetInput) SetSqlInjectionMatchSetId(v string) *DeleteSqlInjectionMatchSetInput { + s.SqlInjectionMatchSetId = &v + return s +} + // The response to a request to delete a SqlInjectionMatchSet from AWS WAF. type DeleteSqlInjectionMatchSetOutput struct { _ struct{} `type:"structure"` @@ -5478,6 +5824,12 @@ func (s DeleteSqlInjectionMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteSqlInjectionMatchSetOutput) SetChangeToken(v string) *DeleteSqlInjectionMatchSetOutput { + s.ChangeToken = &v + return s +} + type DeleteWebACLInput struct { _ struct{} `type:"structure"` @@ -5525,6 +5877,18 @@ func (s *DeleteWebACLInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteWebACLInput) SetChangeToken(v string) *DeleteWebACLInput { + s.ChangeToken = &v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *DeleteWebACLInput) SetWebACLId(v string) *DeleteWebACLInput { + s.WebACLId = &v + return s +} + type DeleteWebACLOutput struct { _ struct{} `type:"structure"` @@ -5544,6 +5908,12 @@ func (s DeleteWebACLOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteWebACLOutput) SetChangeToken(v string) *DeleteWebACLOutput { + s.ChangeToken = &v + return s +} + // A request to delete an XssMatchSet from AWS WAF. type DeleteXssMatchSetInput struct { _ struct{} `type:"structure"` @@ -5592,6 +5962,18 @@ func (s *DeleteXssMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteXssMatchSetInput) SetChangeToken(v string) *DeleteXssMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *DeleteXssMatchSetInput) SetXssMatchSetId(v string) *DeleteXssMatchSetInput { + s.XssMatchSetId = &v + return s +} + // The response to a request to delete an XssMatchSet from AWS WAF. type DeleteXssMatchSetOutput struct { _ struct{} `type:"structure"` @@ -5612,6 +5994,12 @@ func (s DeleteXssMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteXssMatchSetOutput) SetChangeToken(v string) *DeleteXssMatchSetOutput { + s.ChangeToken = &v + return s +} + // Specifies where in a web request to look for TargetString. type FieldToMatch struct { _ struct{} `type:"structure"` @@ -5626,26 +6014,27 @@ type FieldToMatch struct { // The part of the web request that you want AWS WAF to search for a specified // string. Parts of a request that you can search include the following: // - // HEADER: A specified request header, for example, the value of the User-Agent - // or Referer header. If you choose HEADER for the type, specify the name of - // the header in Data. + // * HEADER: A specified request header, for example, the value of the User-Agent + // or Referer header. If you choose HEADER for the type, specify the name + // of the header in Data. // - // METHOD: The HTTP method, which indicated the type of operation that the - // request is asking the origin to perform. Amazon CloudFront supports the following - // methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. + // * METHOD: The HTTP method, which indicated the type of operation that + // the request is asking the origin to perform. Amazon CloudFront supports + // the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. // - // QUERY_STRING: A query string, which is the part of a URL that appears - // after a ? character, if any. + // * QUERY_STRING: A query string, which is the part of a URL that appears + // after a ? character, if any. // - // URI: The part of a web request that identifies a resource, for example, - // /images/daily-ad.jpg. + // * URI: The part of a web request that identifies a resource, for example, + // /images/daily-ad.jpg. // - // BODY: The part of a request that contains any additional data that you - // want to send to your web server as the HTTP request body, such as data from - // a form. The request body immediately follows the request headers. Note that - // only the first 8192 bytes of the request body are forwarded to AWS WAF for - // inspection. To allow or block requests based on the length of the body, you - // can create a size constraint set. For more information, see CreateSizeConstraintSet. + // * BODY: The part of a request that contains any additional data that you + // want to send to your web server as the HTTP request body, such as data + // from a form. The request body immediately follows the request headers. + // Note that only the first 8192 bytes of the request body are forwarded + // to AWS WAF for inspection. To allow or block requests based on the length + // of the body, you can create a size constraint set. For more information, + // see CreateSizeConstraintSet. // // Type is a required field Type *string `type:"string" required:"true" enum:"MatchFieldType"` @@ -5674,6 +6063,18 @@ func (s *FieldToMatch) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *FieldToMatch) SetData(v string) *FieldToMatch { + s.Data = &v + return s +} + +// SetType sets the Type field's value. +func (s *FieldToMatch) SetType(v string) *FieldToMatch { + s.Type = &v + return s +} + type GetByteMatchSetInput struct { _ struct{} `type:"structure"` @@ -5710,18 +6111,25 @@ func (s *GetByteMatchSetInput) Validate() error { return nil } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *GetByteMatchSetInput) SetByteMatchSetId(v string) *GetByteMatchSetInput { + s.ByteMatchSetId = &v + return s +} + type GetByteMatchSetOutput struct { _ struct{} `type:"structure"` // Information about the ByteMatchSet that you specified in the GetByteMatchSet // request. For more information, see the following topics: // - // ByteMatchSet: Contains ByteMatchSetId, ByteMatchTuples, and Name + // * ByteMatchSet: Contains ByteMatchSetId, ByteMatchTuples, and Name // - // ByteMatchTuples: Contains an array of ByteMatchTuple objects. Each ByteMatchTuple - // object contains FieldToMatch, PositionalConstraint, TargetString, and TextTransformation + // * ByteMatchTuples: Contains an array of ByteMatchTuple objects. Each ByteMatchTuple + // object contains FieldToMatch, PositionalConstraint, TargetString, and + // TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type ByteMatchSet *ByteMatchSet `type:"structure"` } @@ -5735,6 +6143,12 @@ func (s GetByteMatchSetOutput) GoString() string { return s.String() } +// SetByteMatchSet sets the ByteMatchSet field's value. +func (s *GetByteMatchSetOutput) SetByteMatchSet(v *ByteMatchSet) *GetByteMatchSetOutput { + s.ByteMatchSet = v + return s +} + type GetChangeTokenInput struct { _ struct{} `type:"structure"` } @@ -5767,6 +6181,12 @@ func (s GetChangeTokenOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *GetChangeTokenOutput) SetChangeToken(v string) *GetChangeTokenOutput { + s.ChangeToken = &v + return s +} + type GetChangeTokenStatusInput struct { _ struct{} `type:"structure"` @@ -5803,6 +6223,12 @@ func (s *GetChangeTokenStatusInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *GetChangeTokenStatusInput) SetChangeToken(v string) *GetChangeTokenStatusInput { + s.ChangeToken = &v + return s +} + type GetChangeTokenStatusOutput struct { _ struct{} `type:"structure"` @@ -5820,6 +6246,12 @@ func (s GetChangeTokenStatusOutput) GoString() string { return s.String() } +// SetChangeTokenStatus sets the ChangeTokenStatus field's value. +func (s *GetChangeTokenStatusOutput) SetChangeTokenStatus(v string) *GetChangeTokenStatusOutput { + s.ChangeTokenStatus = &v + return s +} + type GetIPSetInput struct { _ struct{} `type:"structure"` @@ -5856,16 +6288,22 @@ func (s *GetIPSetInput) Validate() error { return nil } +// SetIPSetId sets the IPSetId field's value. +func (s *GetIPSetInput) SetIPSetId(v string) *GetIPSetInput { + s.IPSetId = &v + return s +} + type GetIPSetOutput struct { _ struct{} `type:"structure"` // Information about the IPSet that you specified in the GetIPSet request. For // more information, see the following topics: // - // IPSet: Contains IPSetDescriptors, IPSetId, and Name + // * IPSet: Contains IPSetDescriptors, IPSetId, and Name // - // IPSetDescriptors: Contains an array of IPSetDescriptor objects. Each - // IPSetDescriptor object contains Type and Value + // * IPSetDescriptors: Contains an array of IPSetDescriptor objects. Each + // IPSetDescriptor object contains Type and Value IPSet *IPSet `type:"structure"` } @@ -5879,6 +6317,12 @@ func (s GetIPSetOutput) GoString() string { return s.String() } +// SetIPSet sets the IPSet field's value. +func (s *GetIPSetOutput) SetIPSet(v *IPSet) *GetIPSetOutput { + s.IPSet = v + return s +} + type GetRuleInput struct { _ struct{} `type:"structure"` @@ -5915,15 +6359,22 @@ func (s *GetRuleInput) Validate() error { return nil } +// SetRuleId sets the RuleId field's value. +func (s *GetRuleInput) SetRuleId(v string) *GetRuleInput { + s.RuleId = &v + return s +} + type GetRuleOutput struct { _ struct{} `type:"structure"` // Information about the Rule that you specified in the GetRule request. For // more information, see the following topics: // - // Rule: Contains MetricName, Name, an array of Predicate objects, and RuleId + // * Rule: Contains MetricName, Name, an array of Predicate objects, and + // RuleId // - // Predicate: Each Predicate object contains DataId, Negated, and Type + // * Predicate: Each Predicate object contains DataId, Negated, and Type Rule *Rule `type:"structure"` } @@ -5937,6 +6388,12 @@ func (s GetRuleOutput) GoString() string { return s.String() } +// SetRule sets the Rule field's value. +func (s *GetRuleOutput) SetRule(v *Rule) *GetRuleOutput { + s.Rule = v + return s +} + type GetSampledRequestsInput struct { _ struct{} `type:"structure"` @@ -5950,11 +6407,11 @@ type GetSampledRequestsInput struct { // RuleId is one of two values: // - // The RuleId of the Rule for which you want GetSampledRequests to return - // a sample of requests. + // * The RuleId of the Rule for which you want GetSampledRequests to return + // a sample of requests. // - // Default_Action, which causes GetSampledRequests to return a sample of - // the requests that didn't match any of the rules in the specified WebACL. + // * Default_Action, which causes GetSampledRequests to return a sample of + // the requests that didn't match any of the rules in the specified WebACL. // // RuleId is a required field RuleId *string `min:"1" type:"string" required:"true"` @@ -6020,6 +6477,30 @@ func (s *GetSampledRequestsInput) Validate() error { return nil } +// SetMaxItems sets the MaxItems field's value. +func (s *GetSampledRequestsInput) SetMaxItems(v int64) *GetSampledRequestsInput { + s.MaxItems = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *GetSampledRequestsInput) SetRuleId(v string) *GetSampledRequestsInput { + s.RuleId = &v + return s +} + +// SetTimeWindow sets the TimeWindow field's value. +func (s *GetSampledRequestsInput) SetTimeWindow(v *TimeWindow) *GetSampledRequestsInput { + s.TimeWindow = v + return s +} + +// SetWebAclId sets the WebAclId field's value. +func (s *GetSampledRequestsInput) SetWebAclId(v string) *GetSampledRequestsInput { + s.WebAclId = &v + return s +} + type GetSampledRequestsOutput struct { _ struct{} `type:"structure"` @@ -6049,6 +6530,24 @@ func (s GetSampledRequestsOutput) GoString() string { return s.String() } +// SetPopulationSize sets the PopulationSize field's value. +func (s *GetSampledRequestsOutput) SetPopulationSize(v int64) *GetSampledRequestsOutput { + s.PopulationSize = &v + return s +} + +// SetSampledRequests sets the SampledRequests field's value. +func (s *GetSampledRequestsOutput) SetSampledRequests(v []*SampledHTTPRequest) *GetSampledRequestsOutput { + s.SampledRequests = v + return s +} + +// SetTimeWindow sets the TimeWindow field's value. +func (s *GetSampledRequestsOutput) SetTimeWindow(v *TimeWindow) *GetSampledRequestsOutput { + s.TimeWindow = v + return s +} + type GetSizeConstraintSetInput struct { _ struct{} `type:"structure"` @@ -6085,20 +6584,26 @@ func (s *GetSizeConstraintSetInput) Validate() error { return nil } +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *GetSizeConstraintSetInput) SetSizeConstraintSetId(v string) *GetSizeConstraintSetInput { + s.SizeConstraintSetId = &v + return s +} + type GetSizeConstraintSetOutput struct { _ struct{} `type:"structure"` // Information about the SizeConstraintSet that you specified in the GetSizeConstraintSet // request. For more information, see the following topics: // - // SizeConstraintSet: Contains SizeConstraintSetId, SizeConstraints, and - // Name + // * SizeConstraintSet: Contains SizeConstraintSetId, SizeConstraints, and + // Name // - // SizeConstraints: Contains an array of SizeConstraint objects. Each SizeConstraint - // object contains FieldToMatch, TextTransformation, ComparisonOperator, and - // Size + // * SizeConstraints: Contains an array of SizeConstraint objects. Each SizeConstraint + // object contains FieldToMatch, TextTransformation, ComparisonOperator, + // and Size // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type SizeConstraintSet *SizeConstraintSet `type:"structure"` } @@ -6112,6 +6617,12 @@ func (s GetSizeConstraintSetOutput) GoString() string { return s.String() } +// SetSizeConstraintSet sets the SizeConstraintSet field's value. +func (s *GetSizeConstraintSetOutput) SetSizeConstraintSet(v *SizeConstraintSet) *GetSizeConstraintSetOutput { + s.SizeConstraintSet = v + return s +} + // A request to get a SqlInjectionMatchSet. type GetSqlInjectionMatchSetInput struct { _ struct{} `type:"structure"` @@ -6149,6 +6660,12 @@ func (s *GetSqlInjectionMatchSetInput) Validate() error { return nil } +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *GetSqlInjectionMatchSetInput) SetSqlInjectionMatchSetId(v string) *GetSqlInjectionMatchSetInput { + s.SqlInjectionMatchSetId = &v + return s +} + // The response to a GetSqlInjectionMatchSet request. type GetSqlInjectionMatchSetOutput struct { _ struct{} `type:"structure"` @@ -6156,13 +6673,13 @@ type GetSqlInjectionMatchSetOutput struct { // Information about the SqlInjectionMatchSet that you specified in the GetSqlInjectionMatchSet // request. For more information, see the following topics: // - // SqlInjectionMatchSet: Contains Name, SqlInjectionMatchSetId, and an array - // of SqlInjectionMatchTuple objects + // * SqlInjectionMatchSet: Contains Name, SqlInjectionMatchSetId, and an + // array of SqlInjectionMatchTuple objects // - // SqlInjectionMatchTuple: Each SqlInjectionMatchTuple object contains FieldToMatch - // and TextTransformation + // * SqlInjectionMatchTuple: Each SqlInjectionMatchTuple object contains + // FieldToMatch and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type SqlInjectionMatchSet *SqlInjectionMatchSet `type:"structure"` } @@ -6176,6 +6693,12 @@ func (s GetSqlInjectionMatchSetOutput) GoString() string { return s.String() } +// SetSqlInjectionMatchSet sets the SqlInjectionMatchSet field's value. +func (s *GetSqlInjectionMatchSetOutput) SetSqlInjectionMatchSet(v *SqlInjectionMatchSet) *GetSqlInjectionMatchSetOutput { + s.SqlInjectionMatchSet = v + return s +} + type GetWebACLInput struct { _ struct{} `type:"structure"` @@ -6212,21 +6735,27 @@ func (s *GetWebACLInput) Validate() error { return nil } +// SetWebACLId sets the WebACLId field's value. +func (s *GetWebACLInput) SetWebACLId(v string) *GetWebACLInput { + s.WebACLId = &v + return s +} + type GetWebACLOutput struct { _ struct{} `type:"structure"` // Information about the WebACL that you specified in the GetWebACL request. // For more information, see the following topics: // - // WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, - // and WebACLId + // * WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, + // and WebACLId // - // DefaultAction (Data type is WafAction): Contains Type + // * DefaultAction (Data type is WafAction): Contains Type // - // Rules: Contains an array of ActivatedRule objects, which contain Action, - // Priority, and RuleId + // * Rules: Contains an array of ActivatedRule objects, which contain Action, + // Priority, and RuleId // - // Action: Contains Type + // * Action: Contains Type WebACL *WebACL `type:"structure"` } @@ -6240,6 +6769,12 @@ func (s GetWebACLOutput) GoString() string { return s.String() } +// SetWebACL sets the WebACL field's value. +func (s *GetWebACLOutput) SetWebACL(v *WebACL) *GetWebACLOutput { + s.WebACL = v + return s +} + // A request to get an XssMatchSet. type GetXssMatchSetInput struct { _ struct{} `type:"structure"` @@ -6277,6 +6812,12 @@ func (s *GetXssMatchSetInput) Validate() error { return nil } +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *GetXssMatchSetInput) SetXssMatchSetId(v string) *GetXssMatchSetInput { + s.XssMatchSetId = &v + return s +} + // The response to a GetXssMatchSet request. type GetXssMatchSetOutput struct { _ struct{} `type:"structure"` @@ -6284,12 +6825,12 @@ type GetXssMatchSetOutput struct { // Information about the XssMatchSet that you specified in the GetXssMatchSet // request. For more information, see the following topics: // - // XssMatchSet: Contains Name, XssMatchSetId, and an array of XssMatchTuple - // objects + // * XssMatchSet: Contains Name, XssMatchSetId, and an array of XssMatchTuple + // objects // - // XssMatchTuple: Each XssMatchTuple object contains FieldToMatch and TextTransformation + // * XssMatchTuple: Each XssMatchTuple object contains FieldToMatch and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type XssMatchSet *XssMatchSet `type:"structure"` } @@ -6303,6 +6844,12 @@ func (s GetXssMatchSetOutput) GoString() string { return s.String() } +// SetXssMatchSet sets the XssMatchSet field's value. +func (s *GetXssMatchSetOutput) SetXssMatchSet(v *XssMatchSet) *GetXssMatchSetOutput { + s.XssMatchSet = v + return s +} + // The response from a GetSampledRequests request includes an HTTPHeader complex // type that appears as Headers in the response syntax. HTTPHeader contains // the names and values of all of the headers that appear in one of the web @@ -6327,6 +6874,18 @@ func (s HTTPHeader) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *HTTPHeader) SetName(v string) *HTTPHeader { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *HTTPHeader) SetValue(v string) *HTTPHeader { + s.Value = &v + return s +} + // The response from a GetSampledRequests request includes an HTTPRequest complex // type that appears as Request in the response syntax. HTTPRequest contains // information about one of the web requests that were returned by GetSampledRequests. @@ -6337,11 +6896,11 @@ type HTTPRequest struct { // with a CloudFront distribution, this is the value of one of the following // fields in CloudFront access logs: // - // c-ip, if the viewer did not use an HTTP proxy or a load balancer to send - // the request + // * c-ip, if the viewer did not use an HTTP proxy or a load balancer to + // send the request // - // x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer - // to send the request + // * x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer + // to send the request ClientIP *string `type:"string"` // The two-letter country code for the country that the request originated from. @@ -6374,29 +6933,61 @@ func (s HTTPRequest) GoString() string { return s.String() } +// SetClientIP sets the ClientIP field's value. +func (s *HTTPRequest) SetClientIP(v string) *HTTPRequest { + s.ClientIP = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *HTTPRequest) SetCountry(v string) *HTTPRequest { + s.Country = &v + return s +} + +// SetHTTPVersion sets the HTTPVersion field's value. +func (s *HTTPRequest) SetHTTPVersion(v string) *HTTPRequest { + s.HTTPVersion = &v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *HTTPRequest) SetHeaders(v []*HTTPHeader) *HTTPRequest { + s.Headers = v + return s +} + +// SetMethod sets the Method field's value. +func (s *HTTPRequest) SetMethod(v string) *HTTPRequest { + s.Method = &v + return s +} + +// SetURI sets the URI field's value. +func (s *HTTPRequest) SetURI(v string) *HTTPRequest { + s.URI = &v + return s +} + // Contains one or more IP addresses or blocks of IP addresses specified in -// Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports /8, /16, -// /24, and /32 IP address ranges for IPv4, and /24, /32, /48, /56, /64 and -// /128 for IPv6. -// -// To specify an individual IP address, you specify the four-part IP address -// followed by a /32, for example, 192.0.2.0/31. To block a range of IP addresses, -// you can specify a /128, /64, /56, /48, /32, /24, /16, or /8 CIDR. For more -// information about CIDR notation, see the Wikipedia entry Classless Inter-Domain -// Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// Classless Inter-Domain Routing (CIDR) notation. To specify an individual +// IP address, you specify the four-part IP address followed by a /32, for example, +// 192.0.2.0/31. To block a range of IP addresses, you can specify a /24, a +// /16, or a /8 CIDR. For more information about CIDR notation, perform an Internet +// search on cidr notation. type IPSet struct { _ struct{} `type:"structure"` - // The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) - // that web requests originate from. If the WebACL is associated with a CloudFront + // The IP address type (IPV4) and the IP address range (in CIDR notation) that + // web requests originate from. If the WebACL is associated with a CloudFront // distribution, this is the value of one of the following fields in CloudFront // access logs: // - // c-ip, if the viewer did not use an HTTP proxy or a load balancer to send - // the request + // * c-ip, if the viewer did not use an HTTP proxy or a load balancer to + // send the request // - // x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer - // to send the request + // * x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer + // to send the request // // IPSetDescriptors is a required field IPSetDescriptors []*IPSetDescriptor `type:"list" required:"true"` @@ -6406,7 +6997,7 @@ type IPSet struct { // Rule or delete one from a Rule (see UpdateRule), and delete an IPSet from // AWS WAF (see DeleteIPSet). // - // IPSetId is returned by CreateIPSet and by ListIPSets. + // IPSetId is returned by CreateIPSet and by ListIPSets. // // IPSetId is a required field IPSetId *string `min:"1" type:"string" required:"true"` @@ -6426,36 +7017,47 @@ func (s IPSet) GoString() string { return s.String() } -// Specifies the IP address type (IPV4 or IPV6) and the IP address range (in -// CIDR format) that web requests originate from. +// SetIPSetDescriptors sets the IPSetDescriptors field's value. +func (s *IPSet) SetIPSetDescriptors(v []*IPSetDescriptor) *IPSet { + s.IPSetDescriptors = v + return s +} + +// SetIPSetId sets the IPSetId field's value. +func (s *IPSet) SetIPSetId(v string) *IPSet { + s.IPSetId = &v + return s +} + +// SetName sets the Name field's value. +func (s *IPSet) SetName(v string) *IPSet { + s.Name = &v + return s +} + +// Specifies the IP address type (IPV4) and the IP address range (in CIDR format) +// that web requests originate from. type IPSetDescriptor struct { _ struct{} `type:"structure"` - // Specify IPV4 or IPV6. + // Specify IPV4. // // Type is a required field Type *string `type:"string" required:"true" enum:"IPSetDescriptorType"` // Specify an IPv4 address by using CIDR notation. For example: // - // To configure AWS WAF to allow, block, or count requests that originated - // from the IP address 192.0.2.44, specify 192.0.2.44/32. + // * To configure AWS WAF to allow, block, or count requests that originated + // from the IP address 192.0.2.44, specify 192.0.2.44/32. // - // To configure AWS WAF to allow, block, or count requests that originated - // from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24. + // * To configure AWS WAF to allow, block, or count requests that originated + // from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24. // - // For more information about CIDR notation, see the Wikipedia entry Classless + // AWS WAF supports only /8, /16, /24, and /32 IP addresses. + // + // For more information about CIDR notation, see the Wikipedia entry Classless // Inter-Domain Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // - // Specify an IPv6 address by using CIDR notation. For example: - // - // To configure AWS WAF to allow, block, or count requests that originated - // from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128. - // - // To configure AWS WAF to allow, block, or count requests that originated - // from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, - // specify 1111:0000:0000:0000:0000:0000:0000:0000/64. - // // Value is a required field Value *string `type:"string" required:"true"` } @@ -6486,6 +7088,18 @@ func (s *IPSetDescriptor) Validate() error { return nil } +// SetType sets the Type field's value. +func (s *IPSetDescriptor) SetType(v string) *IPSetDescriptor { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *IPSetDescriptor) SetValue(v string) *IPSetDescriptor { + s.Value = &v + return s +} + // Contains the identifier and the name of the IPSet. type IPSetSummary struct { _ struct{} `type:"structure"` @@ -6513,6 +7127,18 @@ func (s IPSetSummary) GoString() string { return s.String() } +// SetIPSetId sets the IPSetId field's value. +func (s *IPSetSummary) SetIPSetId(v string) *IPSetSummary { + s.IPSetId = &v + return s +} + +// SetName sets the Name field's value. +func (s *IPSetSummary) SetName(v string) *IPSetSummary { + s.Name = &v + return s +} + // Specifies the type of update to perform to an IPSet with UpdateIPSet. type IPSetUpdate struct { _ struct{} `type:"structure"` @@ -6522,8 +7148,8 @@ type IPSetUpdate struct { // Action is a required field Action *string `type:"string" required:"true" enum:"ChangeAction"` - // The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) - // that web requests originate from. + // The IP address type (IPV4) and the IP address range (in CIDR notation) that + // web requests originate from. // // IPSetDescriptor is a required field IPSetDescriptor *IPSetDescriptor `type:"structure" required:"true"` @@ -6560,6 +7186,18 @@ func (s *IPSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *IPSetUpdate) SetAction(v string) *IPSetUpdate { + s.Action = &v + return s +} + +// SetIPSetDescriptor sets the IPSetDescriptor field's value. +func (s *IPSetUpdate) SetIPSetDescriptor(v *IPSetDescriptor) *IPSetUpdate { + s.IPSetDescriptor = v + return s +} + type ListByteMatchSetsInput struct { _ struct{} `type:"structure"` @@ -6600,6 +7238,18 @@ func (s *ListByteMatchSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListByteMatchSetsInput) SetLimit(v int64) *ListByteMatchSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListByteMatchSetsInput) SetNextMarker(v string) *ListByteMatchSetsInput { + s.NextMarker = &v + return s +} + type ListByteMatchSetsOutput struct { _ struct{} `type:"structure"` @@ -6624,6 +7274,18 @@ func (s ListByteMatchSetsOutput) GoString() string { return s.String() } +// SetByteMatchSets sets the ByteMatchSets field's value. +func (s *ListByteMatchSetsOutput) SetByteMatchSets(v []*ByteMatchSetSummary) *ListByteMatchSetsOutput { + s.ByteMatchSets = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListByteMatchSetsOutput) SetNextMarker(v string) *ListByteMatchSetsOutput { + s.NextMarker = &v + return s +} + type ListIPSetsInput struct { _ struct{} `type:"structure"` @@ -6664,6 +7326,18 @@ func (s *ListIPSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListIPSetsInput) SetLimit(v int64) *ListIPSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListIPSetsInput) SetNextMarker(v string) *ListIPSetsInput { + s.NextMarker = &v + return s +} + type ListIPSetsOutput struct { _ struct{} `type:"structure"` @@ -6687,6 +7361,18 @@ func (s ListIPSetsOutput) GoString() string { return s.String() } +// SetIPSets sets the IPSets field's value. +func (s *ListIPSetsOutput) SetIPSets(v []*IPSetSummary) *ListIPSetsOutput { + s.IPSets = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListIPSetsOutput) SetNextMarker(v string) *ListIPSetsOutput { + s.NextMarker = &v + return s +} + type ListRulesInput struct { _ struct{} `type:"structure"` @@ -6726,6 +7412,18 @@ func (s *ListRulesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListRulesInput) SetLimit(v int64) *ListRulesInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListRulesInput) SetNextMarker(v string) *ListRulesInput { + s.NextMarker = &v + return s +} + type ListRulesOutput struct { _ struct{} `type:"structure"` @@ -6749,6 +7447,18 @@ func (s ListRulesOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListRulesOutput) SetNextMarker(v string) *ListRulesOutput { + s.NextMarker = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *ListRulesOutput) SetRules(v []*RuleSummary) *ListRulesOutput { + s.Rules = v + return s +} + type ListSizeConstraintSetsInput struct { _ struct{} `type:"structure"` @@ -6789,6 +7499,18 @@ func (s *ListSizeConstraintSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListSizeConstraintSetsInput) SetLimit(v int64) *ListSizeConstraintSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListSizeConstraintSetsInput) SetNextMarker(v string) *ListSizeConstraintSetsInput { + s.NextMarker = &v + return s +} + type ListSizeConstraintSetsOutput struct { _ struct{} `type:"structure"` @@ -6813,6 +7535,18 @@ func (s ListSizeConstraintSetsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListSizeConstraintSetsOutput) SetNextMarker(v string) *ListSizeConstraintSetsOutput { + s.NextMarker = &v + return s +} + +// SetSizeConstraintSets sets the SizeConstraintSets field's value. +func (s *ListSizeConstraintSetsOutput) SetSizeConstraintSets(v []*SizeConstraintSetSummary) *ListSizeConstraintSetsOutput { + s.SizeConstraintSets = v + return s +} + // A request to list the SqlInjectionMatchSet objects created by the current // AWS account. type ListSqlInjectionMatchSetsInput struct { @@ -6855,6 +7589,18 @@ func (s *ListSqlInjectionMatchSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListSqlInjectionMatchSetsInput) SetLimit(v int64) *ListSqlInjectionMatchSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListSqlInjectionMatchSetsInput) SetNextMarker(v string) *ListSqlInjectionMatchSetsInput { + s.NextMarker = &v + return s +} + // The response to a ListSqlInjectionMatchSets request. type ListSqlInjectionMatchSetsOutput struct { _ struct{} `type:"structure"` @@ -6880,6 +7626,18 @@ func (s ListSqlInjectionMatchSetsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListSqlInjectionMatchSetsOutput) SetNextMarker(v string) *ListSqlInjectionMatchSetsOutput { + s.NextMarker = &v + return s +} + +// SetSqlInjectionMatchSets sets the SqlInjectionMatchSets field's value. +func (s *ListSqlInjectionMatchSetsOutput) SetSqlInjectionMatchSets(v []*SqlInjectionMatchSetSummary) *ListSqlInjectionMatchSetsOutput { + s.SqlInjectionMatchSets = v + return s +} + type ListWebACLsInput struct { _ struct{} `type:"structure"` @@ -6921,6 +7679,18 @@ func (s *ListWebACLsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListWebACLsInput) SetLimit(v int64) *ListWebACLsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListWebACLsInput) SetNextMarker(v string) *ListWebACLsInput { + s.NextMarker = &v + return s +} + type ListWebACLsOutput struct { _ struct{} `type:"structure"` @@ -6944,6 +7714,18 @@ func (s ListWebACLsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListWebACLsOutput) SetNextMarker(v string) *ListWebACLsOutput { + s.NextMarker = &v + return s +} + +// SetWebACLs sets the WebACLs field's value. +func (s *ListWebACLsOutput) SetWebACLs(v []*WebACLSummary) *ListWebACLsOutput { + s.WebACLs = v + return s +} + // A request to list the XssMatchSet objects created by the current AWS account. type ListXssMatchSetsInput struct { _ struct{} `type:"structure"` @@ -6985,6 +7767,18 @@ func (s *ListXssMatchSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListXssMatchSetsInput) SetLimit(v int64) *ListXssMatchSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListXssMatchSetsInput) SetNextMarker(v string) *ListXssMatchSetsInput { + s.NextMarker = &v + return s +} + // The response to a ListXssMatchSets request. type ListXssMatchSetsOutput struct { _ struct{} `type:"structure"` @@ -7010,6 +7804,18 @@ func (s ListXssMatchSetsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListXssMatchSetsOutput) SetNextMarker(v string) *ListXssMatchSetsOutput { + s.NextMarker = &v + return s +} + +// SetXssMatchSets sets the XssMatchSets field's value. +func (s *ListXssMatchSetsOutput) SetXssMatchSets(v []*XssMatchSetSummary) *ListXssMatchSetsOutput { + s.XssMatchSets = v + return s +} + // Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, and // SizeConstraintSet objects that you want to add to a Rule and, for each object, // indicates whether you want to negate the settings, for example, requests @@ -7033,7 +7839,7 @@ type Predicate struct { // on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, // XssMatchSet, or SizeConstraintSet. For example, if an IPSet includes the // IP address 192.0.2.44, AWS WAF will allow, block, or count requests based - // on all IP addresses except 192.0.2.44. + // on all IP addresses except192.0.2.44. // // Negated is a required field Negated *bool `type:"boolean" required:"true"` @@ -7076,17 +7882,35 @@ func (s *Predicate) Validate() error { return nil } +// SetDataId sets the DataId field's value. +func (s *Predicate) SetDataId(v string) *Predicate { + s.DataId = &v + return s +} + +// SetNegated sets the Negated field's value. +func (s *Predicate) SetNegated(v bool) *Predicate { + s.Negated = &v + return s +} + +// SetType sets the Type field's value. +func (s *Predicate) SetType(v string) *Predicate { + s.Type = &v + return s +} + // A combination of ByteMatchSet, IPSet, and/or SqlInjectionMatchSet objects // that identify the web requests that you want to allow, block, or count. For // example, you might create a Rule that includes the following predicates: // -// An IPSet that causes AWS WAF to search for web requests that originate -// from the IP address 192.0.2.44 +// * An IPSet that causes AWS WAF to search for web requests that originate +// from the IP address 192.0.2.44 // -// A ByteMatchSet that causes AWS WAF to search for web requests for which -// the value of the User-Agent header is BadBot. +// * A ByteMatchSet that causes AWS WAF to search for web requests for which +// the value of the User-Agent header is BadBot. // -// To match the settings in this Rule, a request must originate from 192.0.2.44 +// To match the settings in this Rule, a request must originate from 192.0.2.44 // AND include a User-Agent header for which the value is BadBot. type Rule struct { _ struct{} `type:"structure"` @@ -7108,7 +7932,7 @@ type Rule struct { // a WebACL or delete a one from a WebACL (see UpdateWebACL), or delete a Rule // from AWS WAF (see DeleteRule). // - // RuleId is returned by CreateRule and by ListRules. + // RuleId is returned by CreateRule and by ListRules. // // RuleId is a required field RuleId *string `min:"1" type:"string" required:"true"` @@ -7124,6 +7948,30 @@ func (s Rule) GoString() string { return s.String() } +// SetMetricName sets the MetricName field's value. +func (s *Rule) SetMetricName(v string) *Rule { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *Rule) SetName(v string) *Rule { + s.Name = &v + return s +} + +// SetPredicates sets the Predicates field's value. +func (s *Rule) SetPredicates(v []*Predicate) *Rule { + s.Predicates = v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *Rule) SetRuleId(v string) *Rule { + s.RuleId = &v + return s +} + // Contains the identifier and the friendly name or description of the Rule. type RuleSummary struct { _ struct{} `type:"structure"` @@ -7139,7 +7987,7 @@ type RuleSummary struct { // a WebACL or delete one from a WebACL (see UpdateWebACL), or delete a Rule // from AWS WAF (see DeleteRule). // - // RuleId is returned by CreateRule and by ListRules. + // RuleId is returned by CreateRule and by ListRules. // // RuleId is a required field RuleId *string `min:"1" type:"string" required:"true"` @@ -7155,6 +8003,18 @@ func (s RuleSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *RuleSummary) SetName(v string) *RuleSummary { + s.Name = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *RuleSummary) SetRuleId(v string) *RuleSummary { + s.RuleId = &v + return s +} + // Specifies a Predicate (such as an IPSet) and indicates whether you want to // add it to a Rule or delete it from a Rule. type RuleUpdate struct { @@ -7203,6 +8063,18 @@ func (s *RuleUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *RuleUpdate) SetAction(v string) *RuleUpdate { + s.Action = &v + return s +} + +// SetPredicate sets the Predicate field's value. +func (s *RuleUpdate) SetPredicate(v *Predicate) *RuleUpdate { + s.Predicate = v + return s +} + // The response from a GetSampledRequests request includes a SampledHTTPRequests // complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests // contains one SampledHTTPRequest object for each web request that is returned @@ -7241,30 +8113,54 @@ func (s SampledHTTPRequest) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *SampledHTTPRequest) SetAction(v string) *SampledHTTPRequest { + s.Action = &v + return s +} + +// SetRequest sets the Request field's value. +func (s *SampledHTTPRequest) SetRequest(v *HTTPRequest) *SampledHTTPRequest { + s.Request = v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *SampledHTTPRequest) SetTimestamp(v time.Time) *SampledHTTPRequest { + s.Timestamp = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *SampledHTTPRequest) SetWeight(v int64) *SampledHTTPRequest { + s.Weight = &v + return s +} + // Specifies a constraint on the size of a part of the web request. AWS WAF // uses the Size, ComparisonOperator, and FieldToMatch to build an expression -// in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If +// in the form of "SizeComparisonOperator size in bytes of FieldToMatch". If // that expression is true, the SizeConstraint is considered to match. type SizeConstraint struct { _ struct{} `type:"structure"` // The type of comparison you want AWS WAF to perform. AWS WAF uses this in // combination with the provided Size and FieldToMatch to build an expression - // in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If + // in the form of "SizeComparisonOperator size in bytes of FieldToMatch". If // that expression is true, the SizeConstraint is considered to match. // - // EQ: Used to test if the Size is equal to the size of the FieldToMatch + // EQ: Used to test if the Size is equal to the size of the FieldToMatch // - // NE: Used to test if the Size is not equal to the size of the FieldToMatch + // NE: Used to test if the Size is not equal to the size of the FieldToMatch // - // LE: Used to test if the Size is less than or equal to the size of the FieldToMatch + // LE: Used to test if the Size is less than or equal to the size of the FieldToMatch // - // LT: Used to test if the Size is strictly less than the size of the FieldToMatch + // LT: Used to test if the Size is strictly less than the size of the FieldToMatch // - // GE: Used to test if the Size is greater than or equal to the size of the + // GE: Used to test if the Size is greater than or equal to the size of the // FieldToMatch // - // GT: Used to test if the Size is strictly greater than the size of the FieldToMatch + // GT: Used to test if the Size is strictly greater than the size of the FieldToMatch // // ComparisonOperator is a required field ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` @@ -7276,7 +8172,7 @@ type SizeConstraint struct { // The size in bytes that you want AWS WAF to compare against the size of the // specified FieldToMatch. AWS WAF uses this in combination with ComparisonOperator - // and FieldToMatch to build an expression in the form of "Size ComparisonOperator + // and FieldToMatch to build an expression in the form of "SizeComparisonOperator // size in bytes of FieldToMatch". If that expression is true, the SizeConstraint // is considered to match. // @@ -7297,69 +8193,69 @@ type SizeConstraint struct { // for TextTransformation because CloudFront forwards only the first 8192 bytes // for inspection. // - // NONE + // NONE // // Specify NONE if you don't want to perform any text transformations. // - // CMD_LINE + // CMD_LINE // // When you're concerned that attackers are injecting an operating system command // line command and using unusual formatting to disguise some or all of the // command, use this option to perform the following transformations: // - // Delete the following characters: \ " ' ^ + // * Delete the following characters: \ " ' ^ // - // Delete spaces before the following characters: / ( + // * Delete spaces before the following characters: / ( // - // Replace the following characters with a space: , ; + // * Replace the following characters with a space: , ; // - // Replace multiple spaces with one space + // * Replace multiple spaces with one space // - // Convert uppercase letters (A-Z) to lowercase (a-z) + // * Convert uppercase letters (A-Z) to lowercase (a-z) // - // COMPRESS_WHITE_SPACE + // COMPRESS_WHITE_SPACE // // Use this option to replace the following characters with a space character // (decimal 32): // - // \f, formfeed, decimal 12 + // * \f, formfeed, decimal 12 // - // \t, tab, decimal 9 + // * \t, tab, decimal 9 // - // \n, newline, decimal 10 + // * \n, newline, decimal 10 // - // \r, carriage return, decimal 13 + // * \r, carriage return, decimal 13 // - // \v, vertical tab, decimal 11 + // * \v, vertical tab, decimal 11 // - // non-breaking space, decimal 160 + // * non-breaking space, decimal 160 // - // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. + // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. // - // HTML_ENTITY_DECODE + // HTML_ENTITY_DECODE // // Use this option to replace HTML-encoded characters with unencoded characters. // HTML_ENTITY_DECODE performs the following operations: // - // Replaces (ampersand)quot; with " + // * Replaces (ampersand)quot; with " // - // Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 + // * Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 // - // Replaces (ampersand)lt; with a "less than" symbol + // * Replaces (ampersand)lt; with a "less than" symbol // - // Replaces (ampersand)gt; with > + // * Replaces (ampersand)gt; with > // - // Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, - // with the corresponding characters + // * Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, + // with the corresponding characters // - // Replaces characters that are represented in decimal format, (ampersand)#nnnn;, - // with the corresponding characters + // * Replaces characters that are represented in decimal format, (ampersand)#nnnn;, + // with the corresponding characters // - // LOWERCASE + // LOWERCASE // // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). // - // URL_DECODE + // URL_DECODE // // Use this option to decode a URL-encoded value. // @@ -7404,6 +8300,30 @@ func (s *SizeConstraint) Validate() error { return nil } +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *SizeConstraint) SetComparisonOperator(v string) *SizeConstraint { + s.ComparisonOperator = &v + return s +} + +// SetFieldToMatch sets the FieldToMatch field's value. +func (s *SizeConstraint) SetFieldToMatch(v *FieldToMatch) *SizeConstraint { + s.FieldToMatch = v + return s +} + +// SetSize sets the Size field's value. +func (s *SizeConstraint) SetSize(v int64) *SizeConstraint { + s.Size = &v + return s +} + +// SetTextTransformation sets the TextTransformation field's value. +func (s *SizeConstraint) SetTextTransformation(v string) *SizeConstraint { + s.TextTransformation = &v + return s +} + // A complex type that contains SizeConstraint objects, which specify the parts // of web requests that you want AWS WAF to inspect the size of. If a SizeConstraintSet // contains more than one SizeConstraint object, a request only needs to match @@ -7420,7 +8340,7 @@ type SizeConstraintSet struct { // into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet // from AWS WAF (see DeleteSizeConstraintSet). // - // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. + // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. // // SizeConstraintSetId is a required field SizeConstraintSetId *string `min:"1" type:"string" required:"true"` @@ -7441,6 +8361,24 @@ func (s SizeConstraintSet) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *SizeConstraintSet) SetName(v string) *SizeConstraintSet { + s.Name = &v + return s +} + +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *SizeConstraintSet) SetSizeConstraintSetId(v string) *SizeConstraintSet { + s.SizeConstraintSetId = &v + return s +} + +// SetSizeConstraints sets the SizeConstraints field's value. +func (s *SizeConstraintSet) SetSizeConstraints(v []*SizeConstraint) *SizeConstraintSet { + s.SizeConstraints = v + return s +} + // The Id and Name of a SizeConstraintSet. type SizeConstraintSetSummary struct { _ struct{} `type:"structure"` @@ -7456,7 +8394,7 @@ type SizeConstraintSetSummary struct { // into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet // from AWS WAF (see DeleteSizeConstraintSet). // - // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. + // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. // // SizeConstraintSetId is a required field SizeConstraintSetId *string `min:"1" type:"string" required:"true"` @@ -7472,6 +8410,18 @@ func (s SizeConstraintSetSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *SizeConstraintSetSummary) SetName(v string) *SizeConstraintSetSummary { + s.Name = &v + return s +} + +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *SizeConstraintSetSummary) SetSizeConstraintSetId(v string) *SizeConstraintSetSummary { + s.SizeConstraintSetId = &v + return s +} + // Specifies the part of a web request that you want to inspect the size of // and indicates whether you want to add the specification to a SizeConstraintSet // or delete it from a SizeConstraintSet. @@ -7486,7 +8436,7 @@ type SizeConstraintSetUpdate struct { // Specifies a constraint on the size of a part of the web request. AWS WAF // uses the Size, ComparisonOperator, and FieldToMatch to build an expression - // in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If + // in the form of "SizeComparisonOperator size in bytes of FieldToMatch". If // that expression is true, the SizeConstraint is considered to match. // // SizeConstraint is a required field @@ -7524,6 +8474,18 @@ func (s *SizeConstraintSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *SizeConstraintSetUpdate) SetAction(v string) *SizeConstraintSetUpdate { + s.Action = &v + return s +} + +// SetSizeConstraint sets the SizeConstraint field's value. +func (s *SizeConstraintSetUpdate) SetSizeConstraint(v *SizeConstraint) *SizeConstraintSetUpdate { + s.SizeConstraint = v + return s +} + // A complex type that contains SqlInjectionMatchTuple objects, which specify // the parts of web requests that you want AWS WAF to inspect for snippets of // malicious SQL code and, if you want AWS WAF to inspect a header, the name @@ -7542,8 +8504,7 @@ type SqlInjectionMatchSet struct { // SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet). // - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by - // ListSqlInjectionMatchSets. + // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets. // // SqlInjectionMatchSetId is a required field SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` @@ -7565,6 +8526,24 @@ func (s SqlInjectionMatchSet) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *SqlInjectionMatchSet) SetName(v string) *SqlInjectionMatchSet { + s.Name = &v + return s +} + +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *SqlInjectionMatchSet) SetSqlInjectionMatchSetId(v string) *SqlInjectionMatchSet { + s.SqlInjectionMatchSetId = &v + return s +} + +// SetSqlInjectionMatchTuples sets the SqlInjectionMatchTuples field's value. +func (s *SqlInjectionMatchSet) SetSqlInjectionMatchTuples(v []*SqlInjectionMatchTuple) *SqlInjectionMatchSet { + s.SqlInjectionMatchTuples = v + return s +} + // The Id and Name of a SqlInjectionMatchSet. type SqlInjectionMatchSetSummary struct { _ struct{} `type:"structure"` @@ -7580,8 +8559,7 @@ type SqlInjectionMatchSetSummary struct { // SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet). // - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by - // ListSqlInjectionMatchSets. + // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets. // // SqlInjectionMatchSetId is a required field SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` @@ -7597,6 +8575,18 @@ func (s SqlInjectionMatchSetSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *SqlInjectionMatchSetSummary) SetName(v string) *SqlInjectionMatchSetSummary { + s.Name = &v + return s +} + +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *SqlInjectionMatchSetSummary) SetSqlInjectionMatchSetId(v string) *SqlInjectionMatchSetSummary { + s.SqlInjectionMatchSetId = &v + return s +} + // Specifies the part of a web request that you want to inspect for snippets // of malicious SQL code and indicates whether you want to add the specification // to a SqlInjectionMatchSet or delete it from a SqlInjectionMatchSet. @@ -7648,6 +8638,18 @@ func (s *SqlInjectionMatchSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *SqlInjectionMatchSetUpdate) SetAction(v string) *SqlInjectionMatchSetUpdate { + s.Action = &v + return s +} + +// SetSqlInjectionMatchTuple sets the SqlInjectionMatchTuple field's value. +func (s *SqlInjectionMatchSetUpdate) SetSqlInjectionMatchTuple(v *SqlInjectionMatchTuple) *SqlInjectionMatchSetUpdate { + s.SqlInjectionMatchTuple = v + return s +} + // Specifies the part of a web request that you want AWS WAF to inspect for // snippets of malicious SQL code and, if you want AWS WAF to inspect a header, // the name of the header. @@ -7664,69 +8666,69 @@ type SqlInjectionMatchTuple struct { // AWS WAF performs the transformation on FieldToMatch before inspecting a request // for a match. // - // CMD_LINE + // CMD_LINE // // When you're concerned that attackers are injecting an operating system commandline // command and using unusual formatting to disguise some or all of the command, // use this option to perform the following transformations: // - // Delete the following characters: \ " ' ^ + // * Delete the following characters: \ " ' ^ // - // Delete spaces before the following characters: / ( + // * Delete spaces before the following characters: / ( // - // Replace the following characters with a space: , ; + // * Replace the following characters with a space: , ; // - // Replace multiple spaces with one space + // * Replace multiple spaces with one space // - // Convert uppercase letters (A-Z) to lowercase (a-z) + // * Convert uppercase letters (A-Z) to lowercase (a-z) // - // COMPRESS_WHITE_SPACE + // COMPRESS_WHITE_SPACE // // Use this option to replace the following characters with a space character // (decimal 32): // - // \f, formfeed, decimal 12 + // * \f, formfeed, decimal 12 // - // \t, tab, decimal 9 + // * \t, tab, decimal 9 // - // \n, newline, decimal 10 + // * \n, newline, decimal 10 // - // \r, carriage return, decimal 13 + // * \r, carriage return, decimal 13 // - // \v, vertical tab, decimal 11 + // * \v, vertical tab, decimal 11 // - // non-breaking space, decimal 160 + // * non-breaking space, decimal 160 // - // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. + // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. // - // HTML_ENTITY_DECODE + // HTML_ENTITY_DECODE // // Use this option to replace HTML-encoded characters with unencoded characters. // HTML_ENTITY_DECODE performs the following operations: // - // Replaces (ampersand)quot; with " + // * Replaces (ampersand)quot; with " // - // Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 + // * Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 // - // Replaces (ampersand)lt; with a "less than" symbol + // * Replaces (ampersand)lt; with a "less than" symbol // - // Replaces (ampersand)gt; with > + // * Replaces (ampersand)gt; with > // - // Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, - // with the corresponding characters + // * Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, + // with the corresponding characters // - // Replaces characters that are represented in decimal format, (ampersand)#nnnn;, - // with the corresponding characters + // * Replaces characters that are represented in decimal format, (ampersand)#nnnn;, + // with the corresponding characters // - // LOWERCASE + // LOWERCASE // // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). // - // URL_DECODE + // URL_DECODE // // Use this option to decode a URL-encoded value. // - // NONE + // NONE // // Specify NONE if you don't want to perform any text transformations. // @@ -7765,6 +8767,18 @@ func (s *SqlInjectionMatchTuple) Validate() error { return nil } +// SetFieldToMatch sets the FieldToMatch field's value. +func (s *SqlInjectionMatchTuple) SetFieldToMatch(v *FieldToMatch) *SqlInjectionMatchTuple { + s.FieldToMatch = v + return s +} + +// SetTextTransformation sets the TextTransformation field's value. +func (s *SqlInjectionMatchTuple) SetTextTransformation(v string) *SqlInjectionMatchTuple { + s.TextTransformation = &v + return s +} + // In a GetSampledRequests request, the StartTime and EndTime objects specify // the time range for which you want AWS WAF to return a sample of web requests. // @@ -7819,6 +8833,18 @@ func (s *TimeWindow) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *TimeWindow) SetEndTime(v time.Time) *TimeWindow { + s.EndTime = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *TimeWindow) SetStartTime(v time.Time) *TimeWindow { + s.StartTime = &v + return s +} + type UpdateByteMatchSetInput struct { _ struct{} `type:"structure"` @@ -7836,12 +8862,12 @@ type UpdateByteMatchSetInput struct { // An array of ByteMatchSetUpdate objects that you want to insert into or delete // from a ByteMatchSet. For more information, see the applicable data types: // - // ByteMatchSetUpdate: Contains Action and ByteMatchTuple + // * ByteMatchSetUpdate: Contains Action and ByteMatchTuple // - // ByteMatchTuple: Contains FieldToMatch, PositionalConstraint, TargetString, - // and TextTransformation + // * ByteMatchTuple: Contains FieldToMatch, PositionalConstraint, TargetString, + // and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*ByteMatchSetUpdate `type:"list" required:"true"` @@ -7892,6 +8918,24 @@ func (s *UpdateByteMatchSetInput) Validate() error { return nil } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *UpdateByteMatchSetInput) SetByteMatchSetId(v string) *UpdateByteMatchSetInput { + s.ByteMatchSetId = &v + return s +} + +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateByteMatchSetInput) SetChangeToken(v string) *UpdateByteMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateByteMatchSetInput) SetUpdates(v []*ByteMatchSetUpdate) *UpdateByteMatchSetInput { + s.Updates = v + return s +} + type UpdateByteMatchSetOutput struct { _ struct{} `type:"structure"` @@ -7911,6 +8955,12 @@ func (s UpdateByteMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateByteMatchSetOutput) SetChangeToken(v string) *UpdateByteMatchSetOutput { + s.ChangeToken = &v + return s +} + type UpdateIPSetInput struct { _ struct{} `type:"structure"` @@ -7928,9 +8978,9 @@ type UpdateIPSetInput struct { // An array of IPSetUpdate objects that you want to insert into or delete from // an IPSet. For more information, see the applicable data types: // - // IPSetUpdate: Contains Action and IPSetDescriptor + // * IPSetUpdate: Contains Action and IPSetDescriptor // - // IPSetDescriptor: Contains Type and Value + // * IPSetDescriptor: Contains Type and Value // // Updates is a required field Updates []*IPSetUpdate `type:"list" required:"true"` @@ -7981,6 +9031,24 @@ func (s *UpdateIPSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateIPSetInput) SetChangeToken(v string) *UpdateIPSetInput { + s.ChangeToken = &v + return s +} + +// SetIPSetId sets the IPSetId field's value. +func (s *UpdateIPSetInput) SetIPSetId(v string) *UpdateIPSetInput { + s.IPSetId = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateIPSetInput) SetUpdates(v []*IPSetUpdate) *UpdateIPSetInput { + s.Updates = v + return s +} + type UpdateIPSetOutput struct { _ struct{} `type:"structure"` @@ -8000,6 +9068,12 @@ func (s UpdateIPSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateIPSetOutput) SetChangeToken(v string) *UpdateIPSetOutput { + s.ChangeToken = &v + return s +} + type UpdateRuleInput struct { _ struct{} `type:"structure"` @@ -8017,11 +9091,11 @@ type UpdateRuleInput struct { // An array of RuleUpdate objects that you want to insert into or delete from // a Rule. For more information, see the applicable data types: // - // RuleUpdate: Contains Action and Predicate + // * RuleUpdate: Contains Action and Predicate // - // Predicate: Contains DataId, Negated, and Type + // * Predicate: Contains DataId, Negated, and Type // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*RuleUpdate `type:"list" required:"true"` @@ -8072,6 +9146,24 @@ func (s *UpdateRuleInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateRuleInput) SetChangeToken(v string) *UpdateRuleInput { + s.ChangeToken = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *UpdateRuleInput) SetRuleId(v string) *UpdateRuleInput { + s.RuleId = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateRuleInput) SetUpdates(v []*RuleUpdate) *UpdateRuleInput { + s.Updates = v + return s +} + type UpdateRuleOutput struct { _ struct{} `type:"structure"` @@ -8091,6 +9183,12 @@ func (s UpdateRuleOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateRuleOutput) SetChangeToken(v string) *UpdateRuleOutput { + s.ChangeToken = &v + return s +} + type UpdateSizeConstraintSetInput struct { _ struct{} `type:"structure"` @@ -8109,12 +9207,12 @@ type UpdateSizeConstraintSetInput struct { // or delete from a SizeConstraintSet. For more information, see the applicable // data types: // - // SizeConstraintSetUpdate: Contains Action and SizeConstraint + // * SizeConstraintSetUpdate: Contains Action and SizeConstraint // - // SizeConstraint: Contains FieldToMatch, TextTransformation, ComparisonOperator, - // and Size + // * SizeConstraint: Contains FieldToMatch, TextTransformation, ComparisonOperator, + // and Size // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*SizeConstraintSetUpdate `type:"list" required:"true"` @@ -8165,6 +9263,24 @@ func (s *UpdateSizeConstraintSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateSizeConstraintSetInput) SetChangeToken(v string) *UpdateSizeConstraintSetInput { + s.ChangeToken = &v + return s +} + +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *UpdateSizeConstraintSetInput) SetSizeConstraintSetId(v string) *UpdateSizeConstraintSetInput { + s.SizeConstraintSetId = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateSizeConstraintSetInput) SetUpdates(v []*SizeConstraintSetUpdate) *UpdateSizeConstraintSetInput { + s.Updates = v + return s +} + type UpdateSizeConstraintSetOutput struct { _ struct{} `type:"structure"` @@ -8184,6 +9300,12 @@ func (s UpdateSizeConstraintSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateSizeConstraintSetOutput) SetChangeToken(v string) *UpdateSizeConstraintSetOutput { + s.ChangeToken = &v + return s +} + // A request to update a SqlInjectionMatchSet. type UpdateSqlInjectionMatchSetInput struct { _ struct{} `type:"structure"` @@ -8203,11 +9325,11 @@ type UpdateSqlInjectionMatchSetInput struct { // or delete from a SqlInjectionMatchSet. For more information, see the applicable // data types: // - // SqlInjectionMatchSetUpdate: Contains Action and SqlInjectionMatchTuple + // * SqlInjectionMatchSetUpdate: Contains Action and SqlInjectionMatchTuple // - // SqlInjectionMatchTuple: Contains FieldToMatch and TextTransformation + // * SqlInjectionMatchTuple: Contains FieldToMatch and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*SqlInjectionMatchSetUpdate `type:"list" required:"true"` @@ -8258,6 +9380,24 @@ func (s *UpdateSqlInjectionMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateSqlInjectionMatchSetInput) SetChangeToken(v string) *UpdateSqlInjectionMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *UpdateSqlInjectionMatchSetInput) SetSqlInjectionMatchSetId(v string) *UpdateSqlInjectionMatchSetInput { + s.SqlInjectionMatchSetId = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateSqlInjectionMatchSetInput) SetUpdates(v []*SqlInjectionMatchSetUpdate) *UpdateSqlInjectionMatchSetInput { + s.Updates = v + return s +} + // The response to an UpdateSqlInjectionMatchSets request. type UpdateSqlInjectionMatchSetOutput struct { _ struct{} `type:"structure"` @@ -8278,6 +9418,12 @@ func (s UpdateSqlInjectionMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateSqlInjectionMatchSetOutput) SetChangeToken(v string) *UpdateSqlInjectionMatchSetOutput { + s.ChangeToken = &v + return s +} + type UpdateWebACLInput struct { _ struct{} `type:"structure"` @@ -8295,14 +9441,14 @@ type UpdateWebACLInput struct { // An array of updates to make to the WebACL. // - // An array of WebACLUpdate objects that you want to insert into or delete - // from a WebACL. For more information, see the applicable data types: + // An array of WebACLUpdate objects that you want to insert into or delete from + // a WebACL. For more information, see the applicable data types: // - // WebACLUpdate: Contains Action and ActivatedRule + // * WebACLUpdate: Contains Action and ActivatedRule // - // ActivatedRule: Contains Action, Priority, and RuleId + // * ActivatedRule: Contains Action, Priority, and RuleId // - // WafAction: Contains Type + // * WafAction: Contains Type Updates []*WebACLUpdate `type:"list"` // The WebACLId of the WebACL that you want to update. WebACLId is returned @@ -8359,6 +9505,30 @@ func (s *UpdateWebACLInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateWebACLInput) SetChangeToken(v string) *UpdateWebACLInput { + s.ChangeToken = &v + return s +} + +// SetDefaultAction sets the DefaultAction field's value. +func (s *UpdateWebACLInput) SetDefaultAction(v *WafAction) *UpdateWebACLInput { + s.DefaultAction = v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateWebACLInput) SetUpdates(v []*WebACLUpdate) *UpdateWebACLInput { + s.Updates = v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *UpdateWebACLInput) SetWebACLId(v string) *UpdateWebACLInput { + s.WebACLId = &v + return s +} + type UpdateWebACLOutput struct { _ struct{} `type:"structure"` @@ -8378,6 +9548,12 @@ func (s UpdateWebACLOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateWebACLOutput) SetChangeToken(v string) *UpdateWebACLOutput { + s.ChangeToken = &v + return s +} + // A request to update an XssMatchSet. type UpdateXssMatchSetInput struct { _ struct{} `type:"structure"` @@ -8390,11 +9566,11 @@ type UpdateXssMatchSetInput struct { // An array of XssMatchSetUpdate objects that you want to insert into or delete // from a XssMatchSet. For more information, see the applicable data types: // - // XssMatchSetUpdate: Contains Action and XssMatchTuple + // * XssMatchSetUpdate: Contains Action and XssMatchTuple // - // XssMatchTuple: Contains FieldToMatch and TextTransformation + // * XssMatchTuple: Contains FieldToMatch and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*XssMatchSetUpdate `type:"list" required:"true"` @@ -8451,6 +9627,24 @@ func (s *UpdateXssMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateXssMatchSetInput) SetChangeToken(v string) *UpdateXssMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateXssMatchSetInput) SetUpdates(v []*XssMatchSetUpdate) *UpdateXssMatchSetInput { + s.Updates = v + return s +} + +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *UpdateXssMatchSetInput) SetXssMatchSetId(v string) *UpdateXssMatchSetInput { + s.XssMatchSetId = &v + return s +} + // The response to an UpdateXssMatchSets request. type UpdateXssMatchSetOutput struct { _ struct{} `type:"structure"` @@ -8471,6 +9665,12 @@ func (s UpdateXssMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateXssMatchSetOutput) SetChangeToken(v string) *UpdateXssMatchSetOutput { + s.ChangeToken = &v + return s +} + // For the action that is associated with a rule in a WebACL, specifies the // action that you want AWS WAF to perform when a web request matches all of // the conditions in a rule. For the default action in a WebACL, specifies the @@ -8482,14 +9682,14 @@ type WafAction struct { // Specifies how you want AWS WAF to respond to requests that match the settings // in a Rule. Valid settings include the following: // - // ALLOW: AWS WAF allows requests + // * ALLOW: AWS WAF allows requests // - // BLOCK: AWS WAF blocks requests + // * BLOCK: AWS WAF blocks requests // - // COUNT: AWS WAF increments a counter of the requests that match all of - // the conditions in the rule. AWS WAF then continues to inspect the web request - // based on the remaining rules in the web ACL. You can't specify COUNT for - // the default action for a WebACL. + // * COUNT: AWS WAF increments a counter of the requests that match all of + // the conditions in the rule. AWS WAF then continues to inspect the web + // request based on the remaining rules in the web ACL. You can't specify + // COUNT for the default action for a WebACL. // // Type is a required field Type *string `type:"string" required:"true" enum:"WafActionType"` @@ -8518,6 +9718,12 @@ func (s *WafAction) Validate() error { return nil } +// SetType sets the Type field's value. +func (s *WafAction) SetType(v string) *WafAction { + s.Type = &v + return s +} + // Contains the Rules that identify the requests that you want to allow, block, // or count. In a WebACL, you also specify a default action (ALLOW or BLOCK), // and the action for each Rule that you add to a WebACL, for example, block @@ -8551,7 +9757,7 @@ type WebACL struct { // a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete // a WebACL from AWS WAF (see DeleteWebACL). // - // WebACLId is returned by CreateWebACL and by ListWebACLs. + // WebACLId is returned by CreateWebACL and by ListWebACLs. // // WebACLId is a required field WebACLId *string `min:"1" type:"string" required:"true"` @@ -8567,6 +9773,36 @@ func (s WebACL) GoString() string { return s.String() } +// SetDefaultAction sets the DefaultAction field's value. +func (s *WebACL) SetDefaultAction(v *WafAction) *WebACL { + s.DefaultAction = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *WebACL) SetMetricName(v string) *WebACL { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *WebACL) SetName(v string) *WebACL { + s.Name = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *WebACL) SetRules(v []*ActivatedRule) *WebACL { + s.Rules = v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *WebACL) SetWebACLId(v string) *WebACL { + s.WebACLId = &v + return s +} + // Contains the identifier and the name or description of the WebACL. type WebACLSummary struct { _ struct{} `type:"structure"` @@ -8581,7 +9817,7 @@ type WebACLSummary struct { // a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete // a WebACL from AWS WAF (see DeleteWebACL). // - // WebACLId is returned by CreateWebACL and by ListWebACLs. + // WebACLId is returned by CreateWebACL and by ListWebACLs. // // WebACLId is a required field WebACLId *string `min:"1" type:"string" required:"true"` @@ -8597,6 +9833,18 @@ func (s WebACLSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *WebACLSummary) SetName(v string) *WebACLSummary { + s.Name = &v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *WebACLSummary) SetWebACLId(v string) *WebACLSummary { + s.WebACLId = &v + return s +} + // Specifies whether to insert a Rule into or delete a Rule from a WebACL. type WebACLUpdate struct { _ struct{} `type:"structure"` @@ -8611,8 +9859,8 @@ type WebACLUpdate struct { // the action that you want AWS WAF to take when a web request matches the Rule // (ALLOW, BLOCK, or COUNT). // - // To specify whether to insert or delete a Rule, use the Action parameter - // in the WebACLUpdate data type. + // To specify whether to insert or delete a Rule, use the Action parameter in + // the WebACLUpdate data type. // // ActivatedRule is a required field ActivatedRule *ActivatedRule `type:"structure" required:"true"` @@ -8649,6 +9897,18 @@ func (s *WebACLUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *WebACLUpdate) SetAction(v string) *WebACLUpdate { + s.Action = &v + return s +} + +// SetActivatedRule sets the ActivatedRule field's value. +func (s *WebACLUpdate) SetActivatedRule(v *ActivatedRule) *WebACLUpdate { + s.ActivatedRule = v + return s +} + // A complex type that contains XssMatchTuple objects, which specify the parts // of web requests that you want AWS WAF to inspect for cross-site scripting // attacks and, if you want AWS WAF to inspect a header, the name of the header. @@ -8666,7 +9926,7 @@ type XssMatchSet struct { // insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet). // - // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. + // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. // // XssMatchSetId is a required field XssMatchSetId *string `min:"1" type:"string" required:"true"` @@ -8688,6 +9948,24 @@ func (s XssMatchSet) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *XssMatchSet) SetName(v string) *XssMatchSet { + s.Name = &v + return s +} + +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *XssMatchSet) SetXssMatchSetId(v string) *XssMatchSet { + s.XssMatchSetId = &v + return s +} + +// SetXssMatchTuples sets the XssMatchTuples field's value. +func (s *XssMatchSet) SetXssMatchTuples(v []*XssMatchTuple) *XssMatchSet { + s.XssMatchTuples = v + return s +} + // The Id and Name of an XssMatchSet. type XssMatchSetSummary struct { _ struct{} `type:"structure"` @@ -8702,7 +9980,7 @@ type XssMatchSetSummary struct { // insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet). // - // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. + // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. // // XssMatchSetId is a required field XssMatchSetId *string `min:"1" type:"string" required:"true"` @@ -8718,6 +9996,18 @@ func (s XssMatchSetSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *XssMatchSetSummary) SetName(v string) *XssMatchSetSummary { + s.Name = &v + return s +} + +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *XssMatchSetSummary) SetXssMatchSetId(v string) *XssMatchSetSummary { + s.XssMatchSetId = &v + return s +} + // Specifies the part of a web request that you want to inspect for cross-site // scripting attacks and indicates whether you want to add the specification // to an XssMatchSet or delete it from an XssMatchSet. @@ -8769,6 +10059,18 @@ func (s *XssMatchSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *XssMatchSetUpdate) SetAction(v string) *XssMatchSetUpdate { + s.Action = &v + return s +} + +// SetXssMatchTuple sets the XssMatchTuple field's value. +func (s *XssMatchSetUpdate) SetXssMatchTuple(v *XssMatchTuple) *XssMatchSetUpdate { + s.XssMatchTuple = v + return s +} + // Specifies the part of a web request that you want AWS WAF to inspect for // cross-site scripting attacks and, if you want AWS WAF to inspect a header, // the name of the header. @@ -8785,69 +10087,69 @@ type XssMatchTuple struct { // AWS WAF performs the transformation on FieldToMatch before inspecting a request // for a match. // - // CMD_LINE + // CMD_LINE // // When you're concerned that attackers are injecting an operating system commandline // command and using unusual formatting to disguise some or all of the command, // use this option to perform the following transformations: // - // Delete the following characters: \ " ' ^ + // * Delete the following characters: \ " ' ^ // - // Delete spaces before the following characters: / ( + // * Delete spaces before the following characters: / ( // - // Replace the following characters with a space: , ; + // * Replace the following characters with a space: , ; // - // Replace multiple spaces with one space + // * Replace multiple spaces with one space // - // Convert uppercase letters (A-Z) to lowercase (a-z) + // * Convert uppercase letters (A-Z) to lowercase (a-z) // - // COMPRESS_WHITE_SPACE + // COMPRESS_WHITE_SPACE // // Use this option to replace the following characters with a space character // (decimal 32): // - // \f, formfeed, decimal 12 + // * \f, formfeed, decimal 12 // - // \t, tab, decimal 9 + // * \t, tab, decimal 9 // - // \n, newline, decimal 10 + // * \n, newline, decimal 10 // - // \r, carriage return, decimal 13 + // * \r, carriage return, decimal 13 // - // \v, vertical tab, decimal 11 + // * \v, vertical tab, decimal 11 // - // non-breaking space, decimal 160 + // * non-breaking space, decimal 160 // - // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. + // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. // - // HTML_ENTITY_DECODE + // HTML_ENTITY_DECODE // // Use this option to replace HTML-encoded characters with unencoded characters. // HTML_ENTITY_DECODE performs the following operations: // - // Replaces (ampersand)quot; with " + // * Replaces (ampersand)quot; with " // - // Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 + // * Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 // - // Replaces (ampersand)lt; with a "less than" symbol + // * Replaces (ampersand)lt; with a "less than" symbol // - // Replaces (ampersand)gt; with > + // * Replaces (ampersand)gt; with > // - // Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, - // with the corresponding characters + // * Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, + // with the corresponding characters // - // Replaces characters that are represented in decimal format, (ampersand)#nnnn;, - // with the corresponding characters + // * Replaces characters that are represented in decimal format, (ampersand)#nnnn;, + // with the corresponding characters // - // LOWERCASE + // LOWERCASE // // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). // - // URL_DECODE + // URL_DECODE // // Use this option to decode a URL-encoded value. // - // NONE + // NONE // // Specify NONE if you don't want to perform any text transformations. // @@ -8886,6 +10188,18 @@ func (s *XssMatchTuple) Validate() error { return nil } +// SetFieldToMatch sets the FieldToMatch field's value. +func (s *XssMatchTuple) SetFieldToMatch(v *FieldToMatch) *XssMatchTuple { + s.FieldToMatch = v + return s +} + +// SetTextTransformation sets the TextTransformation field's value. +func (s *XssMatchTuple) SetTextTransformation(v string) *XssMatchTuple { + s.TextTransformation = &v + return s +} + const ( // ChangeActionInsert is a ChangeAction enum value ChangeActionInsert = "INSERT" diff --git a/vendor/vendor.json b/vendor/vendor.json index 8ad390d94..030904a10 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -377,438 +377,580 @@ "revision": "4239b77079c7b5d1243b7b4736304ce8ddb6f0f2" }, { - "checksumSHA1": "uUzIcEqMK3TgBylPKg04v+PTWDk=", + "checksumSHA1": "QLOmSL4B0UFqEIFwCe0TMwehlfE=", "path": "github.com/aws/aws-sdk-go", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "nGJsEKW1/7cQKGlYCuX3XwUhUmM=", + "checksumSHA1": "YOh82spUBNEjU+RS0ib7Z9W7Fp0=", "path": "github.com/aws/aws-sdk-go/aws", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "Y9W+4GimK4Fuxq+vyIskVYFRnX4=", "path": "github.com/aws/aws-sdk-go/aws/awserr", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "+q4vdl3l1Wom8K1wfIpJ4jlFsbY=", + "checksumSHA1": "yyYr41HZ1Aq0hWc3J5ijXwYEcac=", "path": "github.com/aws/aws-sdk-go/aws/awsutil", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "/232RBWA3KnT7U+wciPS2+wmvR0=", "path": "github.com/aws/aws-sdk-go/aws/client", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "ieAJ+Cvp/PKv1LpUEnUXpc3OI6E=", "path": "github.com/aws/aws-sdk-go/aws/client/metadata", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "c1N3Loy3AS9zD+m5CzpPNAED39U=", "path": "github.com/aws/aws-sdk-go/aws/corehandlers", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "zu5C95rmCZff6NYZb62lEaT5ibE=", "path": "github.com/aws/aws-sdk-go/aws/credentials", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "KQiUK/zr3mqnAXD7x/X55/iNme0=", + "checksumSHA1": "u3GOAJLmdvbuNUeUEcZSEAOeL/0=", "path": "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "NUJUTWlc1sV8b7WjfiYc4JZbXl0=", "path": "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "4Ipx+5xN0gso+cENC2MHMWmQlR4=", "path": "github.com/aws/aws-sdk-go/aws/credentials/stscreds", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "DwhFsNluCFEwqzyp3hbJR3q2Wqs=", "path": "github.com/aws/aws-sdk-go/aws/defaults", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "8E0fEBUJY/1lJOyVxzTxMGQGInk=", + "checksumSHA1": "/EXbk/z2TWjWc1Hvb4QYs3Wmhb8=", "path": "github.com/aws/aws-sdk-go/aws/ec2metadata", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "5Ac22YMTBmrX/CXaEIXzWljr8UY=", "path": "github.com/aws/aws-sdk-go/aws/request", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "AFcUmKIbqHEKLdNMYB8ubtT+FHA=", + "checksumSHA1": "eOo6evLMAxQfo7Qkc5/h5euN1Sw=", "path": "github.com/aws/aws-sdk-go/aws/session", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "diXvBs1LRC0RJ9WK6sllWKdzC04=", + "checksumSHA1": "bjf3WCqht846AsRh85c8d7iLmsk=", "path": "github.com/aws/aws-sdk-go/aws/signer/v4", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "3I/Ty6X9m2NQFPYTrSf4Pdf4cfk=", + "checksumSHA1": "Esab5F8KswqkTdB4TtjSvZgs56k=", "path": "github.com/aws/aws-sdk-go/private/endpoints", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "wk7EyvDaHwb5qqoOP/4d3cV0708=", "path": "github.com/aws/aws-sdk-go/private/protocol", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "1QmQ3FqV37w0Zi44qv8pA1GeR0A=", "path": "github.com/aws/aws-sdk-go/private/protocol/ec2query", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "pNeF0Ey7TfBArH5LBQhKOQXQbLY=", "path": "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "R00RL5jJXRYq1iiK1+PGvMfvXyM=", "path": "github.com/aws/aws-sdk-go/private/protocol/jsonrpc", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "ZqY5RWavBLWTo6j9xqdyBEaNFRk=", "path": "github.com/aws/aws-sdk-go/private/protocol/query", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "5xzix1R8prUyWxgLnzUQoxTsfik=", "path": "github.com/aws/aws-sdk-go/private/protocol/query/queryutil", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "TW/7U+/8ormL7acf6z2rv2hDD+s=", + "checksumSHA1": "mLxtfPJvWIHdYPRY0f19kFuJ3u4=", "path": "github.com/aws/aws-sdk-go/private/protocol/rest", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "Rpu8KBtHZgvhkwHxUfaky+qW+G4=", "path": "github.com/aws/aws-sdk-go/private/protocol/restjson", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "ODo+ko8D6unAxZuN1jGzMcN4QCc=", "path": "github.com/aws/aws-sdk-go/private/protocol/restxml", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "eUEkjyMPAuekKBE4ou+nM9tXEas=", "path": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "F6mth+G7dXN1GI+nktaGo8Lx8aE=", "path": "github.com/aws/aws-sdk-go/private/signer/v2", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "Eo9yODN5U99BK0pMzoqnBm7PCrY=", "path": "github.com/aws/aws-sdk-go/private/waiter", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "3lzFHxiUPnQtRo0UIKHRymmFSvk=", + "checksumSHA1": "INWpIaoMQ5yhSUDuC6BI2tnT01w=", "path": "github.com/aws/aws-sdk-go/service/acm", - "revision": "35c21ff262580265c1d77095d6f712605fd0c3f4", - "revisionTime": "2016-08-16T21:54:33Z", - "version": "v1.4.2", - "versionExact": "v1.4.2" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "DXwm+kmVCiuvvGCcUTeZD/L31Kk=", + "checksumSHA1": "6SZrpx+VJ7W/Xsozbn2UCIIMWug=", "path": "github.com/aws/aws-sdk-go/service/apigateway", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "G6ei4JkA8kMIK6kWohho3ZyqEy4=", + "checksumSHA1": "DZc+6wpn5VIQEoFMxLIKwVYliJE=", "path": "github.com/aws/aws-sdk-go/service/applicationautoscaling", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "RrzC2aXy/ZNSW+DjkswSkozfHQg=", + "checksumSHA1": "Y5ewqOw2oooAc17RZBLEfFe97NQ=", "path": "github.com/aws/aws-sdk-go/service/autoscaling", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "qczOmsbnxTRlwr6/jld7iuhY1ec=", + "checksumSHA1": "WB73oYHFUA06n2Ulyr7BnzoL+Z4=", "path": "github.com/aws/aws-sdk-go/service/cloudformation", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "LhUA6FygZFZM68UgRIKYtSqivBg=", + "checksumSHA1": "71H57UIgdJgkDZxJQsxJEB6ihqQ=", "path": "github.com/aws/aws-sdk-go/service/cloudfront", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "v/gjvG5+yfmnluXtIOXfCXPHmGk=", + "checksumSHA1": "qtBw7xNY8KKLCIlm7l+sKxKs6q4=", "path": "github.com/aws/aws-sdk-go/service/cloudtrail", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "T368o7aYyvIQ/JrEj/EXWuZfjbk=", + "checksumSHA1": "3jnrRIRHqRiWDqb71FMSfs9AvXk=", "path": "github.com/aws/aws-sdk-go/service/cloudwatch", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "CtXDIQ4si4gg4WBwF10obV7pJIk=", + "checksumSHA1": "YLXFc6XhmmnVEfHPE0Bb8f5wndw=", "path": "github.com/aws/aws-sdk-go/service/cloudwatchevents", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "TMUPZvpmtRRB3uWwGzwngB4Vg2w=", + "checksumSHA1": "bgkauNc4M46Pmyw7lHkvzw3sxiw=", "path": "github.com/aws/aws-sdk-go/service/cloudwatchlogs", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "4ejjXKR6n65oqZtjq0XhrU8ActU=", + "checksumSHA1": "rKsbQ6FWQSqiE+ujHG6HietgH5Y=", "path": "github.com/aws/aws-sdk-go/service/codecommit", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "pstdsnanSdZ3M/jFMLGBOOi5L+E=", + "checksumSHA1": "YvpsgALidLyjzRgRHusdw7vS22k=", "path": "github.com/aws/aws-sdk-go/service/codedeploy", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "JRjbBfjM9AbLaNyEHJVJ9p/EKRE=", + "checksumSHA1": "3aRyyRHgUh+w26Wqrruxxa1VaxA=", "path": "github.com/aws/aws-sdk-go/service/directoryservice", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "CvlvYHZtbdwCwx7l6o0ee5Ez6BA=", + "checksumSHA1": "E5qjR1pDa/V2LEhXP36kZH2w91o=", "path": "github.com/aws/aws-sdk-go/service/dynamodb", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "hNyeWmtAtYlJ4xX+Vk0ZkwV+UfA=", + "checksumSHA1": "6h4tJ9wVtbYb9wG4srtUxyPoAYM=", "path": "github.com/aws/aws-sdk-go/service/ec2", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "vIGJIbBE4GoNAsded9sC1R9oR9E=", + "checksumSHA1": "3wd5o69gQcsDpBIJU2QMAYu/Yjs=", "path": "github.com/aws/aws-sdk-go/service/ecr", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "D/w9j9GKvw0xNnJ21UDiSGjN6dA=", + "checksumSHA1": "fHZ6TgcmZIoRDw38OJQnd7TT63A=", "path": "github.com/aws/aws-sdk-go/service/ecs", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "1OA1hi717X+c/lnu9XYEJLm4vi4=", + "checksumSHA1": "cAYa6uHNWAKex00wQZQh/3RIP20=", "path": "github.com/aws/aws-sdk-go/service/efs", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "/VZW/gbuUSkdn4cwXTSIQDdKGvQ=", + "checksumSHA1": "e/nua6AZAM1DOX1s+qcuDaOqWYc=", "path": "github.com/aws/aws-sdk-go/service/elasticache", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "Xd1GVn0Uin/56syb2ETMxOKAI/A=", + "checksumSHA1": "pyykYejfcLu54fhwe94WMujiWpE=", "path": "github.com/aws/aws-sdk-go/service/elasticbeanstalk", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "9vE6CgR7b01zZn0lFJzqOrve7B4=", + "checksumSHA1": "z0ca3QajyQGpShh3psqolZLJt7Q=", "path": "github.com/aws/aws-sdk-go/service/elasticsearchservice", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "OPAnsPFcq6iXH5hGng2t2mMpfaE=", + "checksumSHA1": "t/dBXjcSbc5phqiIoGtOIELycNg=", "path": "github.com/aws/aws-sdk-go/service/elastictranscoder", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "Hwqr2+Y5J7Oq3VXiL1Tj8231eqg=", + "checksumSHA1": "X6fiZ2b/U1WpYBzw5fqm2Wm8Hr0=", "path": "github.com/aws/aws-sdk-go/service/elb", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "cIUQhrMH0XJKIJSAf4LWpGxw7W0=", + "checksumSHA1": "D+1s7cgL4iMtswW+x233jAV8eJI=", "path": "github.com/aws/aws-sdk-go/service/elbv2", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "6aSvNkSZeB0dhw+vfmgsCumX0Nw=", + "checksumSHA1": "+GSIhCXrofZZRF4Bz4XuX8B8o7U=", "path": "github.com/aws/aws-sdk-go/service/emr", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "nKEvKhAFlvWxhwCFW2JPSVfb4k4=", + "checksumSHA1": "71xHwOAjzdFQ+zQieThJWKObvS4=", "path": "github.com/aws/aws-sdk-go/service/firehose", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "sv61kTARWfkfrT8ouftcpZhepZ4=", + "checksumSHA1": "yF88SmWjcs87UkcJoaXVozxp050=", "path": "github.com/aws/aws-sdk-go/service/glacier", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "rCHIHwv4JYxTGc7XpfT9Fx70a1M=", + "checksumSHA1": "hQquEMm59E2CwVwfBvKRTVzBj/8=", "path": "github.com/aws/aws-sdk-go/service/iam", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "VstNEQuAAuyaVpBh24fDQPSbZCM=", + "checksumSHA1": "1pBbVKt2n6Z/59Nd8mXe20/JEV4=", "path": "github.com/aws/aws-sdk-go/service/kinesis", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "C+gqGSu7/EIGggant4O3wv8v+Yw=", + "checksumSHA1": "ghoZkkKxN0lAJZ6Nb0sJiiFiQAI=", "path": "github.com/aws/aws-sdk-go/service/kms", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "R3OeBAWZe3p69aYIa37ispEz4Ys=", + "checksumSHA1": "kb9gzhUSUeiJorMc73m13DK/3Qc=", "path": "github.com/aws/aws-sdk-go/service/lambda", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "EPrM4mjeehz7nm5WXbdldZpG0BU=", + "checksumSHA1": "BZY0NsRwwIbs52ZSjaEGqgWHXyo=", "path": "github.com/aws/aws-sdk-go/service/opsworks", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "h6TAgyjW5GFdt8TPKBeczyGjkKM=", + "checksumSHA1": "iGXoSzRemWsXcxdBLFqAaZ3ulf8=", "path": "github.com/aws/aws-sdk-go/service/rds", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "/fWs0DLkUSTyLWGUSz/kf/maoOM=", + "checksumSHA1": "bxHXVhiqpF3njkRRNcLn+tyhwZQ=", "path": "github.com/aws/aws-sdk-go/service/redshift", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "H2DlzddrhenFeCOQH9ssYPcFePQ=", + "checksumSHA1": "xxJsIDga1E+AuNTwEeL+6X9CSEA=", "path": "github.com/aws/aws-sdk-go/service/route53", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "V3Ta5FZBZeAsIbtm1OGMkYyYmt8=", + "checksumSHA1": "HtKiIAPKsBg2s1c5ytRkdZ/lqO8=", "path": "github.com/aws/aws-sdk-go/service/s3", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "UUDH3SCShP/T6+K1OsKvCc2O+VA=", + "checksumSHA1": "6TbKrx2keOneistnAS39cVXTunY=", "path": "github.com/aws/aws-sdk-go/service/ses", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "XbulhWUHjhuWqJymKeurU01uuiU=", + "checksumSHA1": "hp8JNTd1l4AvNps0/z3UsukvWsQ=", "path": "github.com/aws/aws-sdk-go/service/simpledb", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "nzzjBb+KNOXxvx9racGlHA6w/SU=", + "checksumSHA1": "eGU3IGTGnOKW8qUi80UJrtkcmRw=", "path": "github.com/aws/aws-sdk-go/service/sns", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "6wjnNcTzRa+BP7AnodnCb14J7/Q=", + "checksumSHA1": "hTgsEbW3erfnTHok+7TKOSUlaYU=", "path": "github.com/aws/aws-sdk-go/service/sqs", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "fiGhMDgP0uyIcRqwDlBZyfEPyn0=", + "checksumSHA1": "f0X7xjpA2JmDYc9xArgDI4mCO6I=", "path": "github.com/aws/aws-sdk-go/service/ssm", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "Ko75IlSR0pVtGp7dCdZuXh1279Q=", + "checksumSHA1": "ouwhxcAsIYQ6oJbMRdLW/Ys/iyg=", "path": "github.com/aws/aws-sdk-go/service/sts", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { - "checksumSHA1": "A7C67KQAzKQ3x+cQMvicMcM2VLs=", + "checksumSHA1": "BvZSVj6c/aEe0Ihf08fBXdIRz8A=", "path": "github.com/aws/aws-sdk-go/service/waf", - "revision": "09f8dd1eb5e719dc370b432d3d6d8f86e5bf6dbe", - "revisionTime": "2016-10-17T19:35:59Z" + "revision": "898c81ba64b9a467379d35e3fabad133beae0ee4", + "revisionTime": "2016-11-18T23:08:35Z", + "version": "=v1.5.8", + "versionExact": "v1.5.8" }, { "checksumSHA1": "nqw2Qn5xUklssHTubS5HDvEL9L4=",