From 747ebb80404b174eb363b3ced000a1e73ca89c14 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 2 Oct 2019 19:54:43 +0000 Subject: [PATCH] Update module aws/aws-sdk-go to v1.25.4 --- go.mod | 2 +- go.sum | 4 +- .../aws/aws-sdk-go/aws/endpoints/defaults.go | 10 + .../github.com/aws/aws-sdk-go/aws/version.go | 2 +- .../aws/aws-sdk-go/internal/ini/ini_parser.go | 11 +- .../aws/aws-sdk-go/internal/ini/skipper.go | 6 +- .../aws/aws-sdk-go/service/docdb/api.go | 320 +++- .../aws/aws-sdk-go/service/lightsail/api.go | 1594 +++++++++++++++-- .../aws/aws-sdk-go/service/mq/api.go | 24 + .../aws/aws-sdk-go/service/rds/api.go | 129 +- .../aws/aws-sdk-go/service/rds/waiters.go | 150 +- .../aws/aws-sdk-go/service/waf/api.go | 36 +- vendor/modules.txt | 2 +- 13 files changed, 2105 insertions(+), 185 deletions(-) diff --git a/go.mod b/go.mod index 661c96ac1a0..34318acf550 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/terraform-providers/terraform-provider-aws go 1.13 require ( - github.com/aws/aws-sdk-go v1.25.1 + github.com/aws/aws-sdk-go v1.25.4 github.com/beevik/etree v1.1.0 github.com/bflad/tfproviderlint v0.4.0 github.com/client9/misspell v0.3.4 diff --git a/go.sum b/go.sum index 469f954e4a2..7afc93baf35 100644 --- a/go.sum +++ b/go.sum @@ -62,8 +62,8 @@ github.com/aws/aws-sdk-go v1.19.18/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpi github.com/aws/aws-sdk-go v1.21.7 h1:ml+k7szyVaq4YD+3LhqOGl9tgMTqgMbpnuUSkB6UJvQ= github.com/aws/aws-sdk-go v1.21.7/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.22.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.1 h1:d7zDXFT2Tgq/yw7Wku49+lKisE8Xc85erb+8PlE/Shk= -github.com/aws/aws-sdk-go v1.25.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.25.4 h1:exwxtR517g6OKm2rtAD5EANtjbzmnjEAco189zy/Uhc= +github.com/aws/aws-sdk-go v1.25.4/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc= github.com/beevik/etree v1.1.0 h1:T0xke/WvNtMoCqgzPhkX2r4rjY3GDZFi+FjpRZY2Jbs= github.com/beevik/etree v1.1.0/go.mod h1:r8Aw8JqVegEf0w2fDnATrX9VpkMcyFeM0FhwO62wh+A= diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go index 85e4145ffd6..452cefda6bb 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go @@ -1054,6 +1054,16 @@ var awsPartition = partition{ "us-west-2": endpoint{}, }, }, + "connect": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, "cur": service{ Endpoints: endpoints{ 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 97280f407ac..31475957363 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.25.1" +const SDKVersion = "1.25.4" diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser.go index e56dcee2f8e..cf9fad81e70 100644 --- a/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser.go @@ -162,7 +162,7 @@ loop: if len(tokens) == 0 { break loop } - + // if should skip is true, we skip the tokens until should skip is set to false. step = SkipTokenState } @@ -218,7 +218,7 @@ loop: // S -> equal_expr' expr_stmt' switch k.Kind { case ASTKindEqualExpr: - // assiging a value to some key + // assigning a value to some key k.AppendChild(newExpression(tok)) stack.Push(newExprStatement(k)) case ASTKindExpr: @@ -250,6 +250,13 @@ loop: if !runeCompare(tok.Raw(), openBrace) { return nil, NewParseError("expected '['") } + // If OpenScopeState is not at the start, we must mark the previous ast as complete + // + // for example: if previous ast was a skip statement; + // we should mark it as complete before we create a new statement + if k.Kind != ASTKindStart { + stack.MarkComplete(k) + } stmt := newStatement() stack.Push(stmt) diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper.go index 6bb6964475e..da7a4049cfa 100644 --- a/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper.go @@ -22,24 +22,24 @@ func newSkipper() skipper { } func (s *skipper) ShouldSkip(tok Token) bool { + // should skip state will be modified only if previous token was new line (NL); + // and the current token is not WhiteSpace (WS). if s.shouldSkip && s.prevTok.Type() == TokenNL && tok.Type() != TokenWS { - s.Continue() return false } s.prevTok = tok - return s.shouldSkip } func (s *skipper) Skip() { s.shouldSkip = true - s.prevTok = emptyToken } func (s *skipper) Continue() { s.shouldSkip = false + // empty token is assigned as we return to default state, when should skip is false s.prevTok = emptyToken } diff --git a/vendor/github.com/aws/aws-sdk-go/service/docdb/api.go b/vendor/github.com/aws/aws-sdk-go/service/docdb/api.go index 7b3877d2b0f..a6b0b62f23a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/docdb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/docdb/api.go @@ -1366,6 +1366,86 @@ func (c *DocDB) DeleteDBSubnetGroupWithContext(ctx aws.Context, input *DeleteDBS return out, req.Send() } +const opDescribeCertificates = "DescribeCertificates" + +// DescribeCertificatesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCertificates operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeCertificates for more information on using the DescribeCertificates +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeCertificatesRequest method. +// req, resp := client.DescribeCertificatesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeCertificates +func (c *DocDB) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *request.Request, output *DescribeCertificatesOutput) { + op := &request.Operation{ + Name: opDescribeCertificates, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeCertificatesInput{} + } + + output = &DescribeCertificatesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCertificates API operation for Amazon DocumentDB with MongoDB compatibility. +// +// Returns a list of certificate authority (CA) certificates provided by Amazon +// RDS for this AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's +// API operation DescribeCertificates for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCertificateNotFoundFault "CertificateNotFound" +// CertificateIdentifier doesn't refer to an existing certificate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeCertificates +func (c *DocDB) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) { + req, out := c.DescribeCertificatesRequest(input) + return out, req.Send() +} + +// DescribeCertificatesWithContext is the same as DescribeCertificates with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeCertificates for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DocDB) DescribeCertificatesWithContext(ctx aws.Context, input *DescribeCertificatesInput, opts ...request.Option) (*DescribeCertificatesOutput, error) { + req, out := c.DescribeCertificatesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups" // DescribeDBClusterParameterGroupsRequest generates a "aws/request.Request" representing the @@ -4342,6 +4422,85 @@ func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { return s } +// A certificate authority (CA) certificate for an AWS account. +type Certificate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the certificate. + // + // Example: arn:aws:rds:us-east-1::cert:rds-ca-2019 + CertificateArn *string `type:"string"` + + // The unique key that identifies a certificate. + // + // Example: rds-ca-2019 + CertificateIdentifier *string `type:"string"` + + // The type of the certificate. + // + // Example: CA + CertificateType *string `type:"string"` + + // The thumbprint of the certificate. + Thumbprint *string `type:"string"` + + // The starting date-time from which the certificate is valid. + // + // Example: 2019-07-31T17:57:09Z + ValidFrom *time.Time `type:"timestamp"` + + // The date-time after which the certificate is no longer valid. + // + // Example: 2024-07-31T17:57:09Z + ValidTill *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s Certificate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + // The configuration setting for the log types to be enabled for export to Amazon // CloudWatch Logs for a specific DB instance or DB cluster. // @@ -4780,7 +4939,7 @@ type CreateDBClusterInput struct { // printable ASCII character except forward slash (/), double quote ("), or // the "at" symbol (@). // - // Constraints: Must contain from 8 to 41 characters. + // Constraints: Must contain from 8 to 100 characters. // // MasterUserPassword is a required field MasterUserPassword *string `type:"string" required:"true"` @@ -4789,7 +4948,7 @@ type CreateDBClusterInput struct { // // Constraints: // - // * Must be from 1 to 16 letters or numbers. + // * Must be from 1 to 63 letters or numbers. // // * The first character must be a letter. // @@ -5288,7 +5447,8 @@ type CreateDBInstanceInput struct { // Valid values: 0-15 PromotionTier *int64 `type:"integer"` - // The tags to be assigned to the DB instance. + // The tags to be assigned to the DB instance. You can assign up to 10 tags + // to an instance. Tags []*Tag `locationNameList:"Tag" type:"list"` } @@ -6322,6 +6482,9 @@ type DBInstance struct { // Specifies the number of days for which automatic DB snapshots are retained. BackupRetentionPeriod *int64 `type:"integer"` + // The identifier of the CA certificate for this DB instance. + CACertificateIdentifier *string `type:"string"` + // Contains the name of the DB cluster that the DB instance is a member of if // the DB instance is a member of a DB cluster. DBClusterIdentifier *string `type:"string"` @@ -6389,17 +6552,15 @@ type DBInstance struct { // instance. PromotionTier *int64 `type:"integer"` - // Specifies the availability options for the DB instance. A value of true specifies - // an internet-facing instance with a publicly resolvable DNS name, which resolves - // to a public IP address. A value of false specifies an internal instance with - // a DNS name that resolves to a private IP address. + // Not supported. Amazon DocumentDB does not currently support public endpoints. + // The value of PubliclyAccessible is always false. PubliclyAccessible *bool `type:"boolean"` // The status of a read replica. If the instance is not a read replica, this // is blank. StatusInfos []*DBInstanceStatusInfo `locationNameList:"DBInstanceStatusInfo" type:"list"` - // Specifies whether the DB instance is encrypted. + // Specifies whether or not the DB instance is encrypted. StorageEncrypted *bool `type:"boolean"` // Provides a list of VPC security group elements that the DB instance belongs @@ -6435,6 +6596,12 @@ func (s *DBInstance) SetBackupRetentionPeriod(v int64) *DBInstance { return s } +// SetCACertificateIdentifier sets the CACertificateIdentifier field's value. +func (s *DBInstance) SetCACertificateIdentifier(v string) *DBInstance { + s.CACertificateIdentifier = &v + return s +} + // SetDBClusterIdentifier sets the DBClusterIdentifier field's value. func (s *DBInstance) SetDBClusterIdentifier(v string) *DBInstance { s.DBClusterIdentifier = &v @@ -6625,7 +6792,7 @@ func (s *DBInstanceStatusInfo) SetStatusType(v string) *DBInstanceStatusInfo { type DBSubnetGroup struct { _ struct{} `type:"structure"` - // The Amazon Resource Identifier (ARN) for the DB subnet group. + // The Amazon Resource Name (ARN) for the DB subnet group. DBSubnetGroupArn *string `type:"string"` // Provides the description of the DB subnet group. @@ -7048,6 +7215,130 @@ func (s DeleteDBSubnetGroupOutput) GoString() string { return s.String() } +type DescribeCertificatesInput struct { + _ struct{} `type:"structure"` + + // The user-supplied certificate identifier. If this parameter is specified, + // information for only the specified certificate is returned. If this parameter + // is omitted, a list of up to MaxRecords certificates is returned. This parameter + // is not case sensitive. + // + // Constraints + // + // * Must match an existing CertificateIdentifier. + CertificateIdentifier *string `type:"string"` + + // This parameter is not currently supported. + Filters []*Filter `locationNameList:"Filter" type:"list"` + + // An optional pagination token provided by a previous DescribeCertificates + // request. If this parameter is specified, the response includes only records + // beyond the marker, up to the value specified by MaxRecords. + Marker *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a pagination token called a marker + // is included in the response so that the remaining results can be retrieved. + // + // Default: 100 + // + // Constraints: + // + // * Minimum: 20 + // + // * Maximum: 100 + MaxRecords *int64 `type:"integer"` +} + +// String returns the string representation +func (s DescribeCertificatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCertificatesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCertificatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCertificatesInput"} + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +type DescribeCertificatesOutput struct { + _ struct{} `type:"structure"` + + // A list of certificates for this AWS account. + Certificates []*Certificate `locationNameList:"Certificate" type:"list"` + + // An optional pagination token provided if the number of records retrieved + // is greater than MaxRecords. If this parameter is specified, the marker specifies + // the next record in the list. Including the value of Marker in the next call + // to DescribeCertificates results in the next page of certificates. + Marker *string `type:"string"` +} + +// String returns the string representation +func (s DescribeCertificatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + // Represents the input to DescribeDBClusterParameterGroups. type DescribeDBClusterParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -9212,7 +9503,7 @@ type ModifyDBClusterInput struct { // printable ASCII character except forward slash (/), double quote ("), or // the "at" symbol (@). // - // Constraints: Must contain from 8 to 41 characters. + // Constraints: Must contain from 8 to 100 characters. MasterUserPassword *string `type:"string"` // The new DB cluster identifier for the DB cluster when renaming a DB cluster. @@ -9618,6 +9909,9 @@ type ModifyDBInstanceInput struct { // and Amazon DocumentDB has enabled automatic patching for that engine version. AutoMinorVersionUpgrade *bool `type:"boolean"` + // Indicates the certificate that needs to be associated with the instance. + CACertificateIdentifier *string `type:"string"` + // The new compute and memory capacity of the DB instance; for example, db.r5.large. // Not all DB instance classes are available in all AWS Regions. // @@ -9717,6 +10011,12 @@ func (s *ModifyDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *ModifyDBInst return s } +// SetCACertificateIdentifier sets the CACertificateIdentifier field's value. +func (s *ModifyDBInstanceInput) SetCACertificateIdentifier(v string) *ModifyDBInstanceInput { + s.CACertificateIdentifier = &v + return s +} + // SetDBInstanceClass sets the DBInstanceClass field's value. func (s *ModifyDBInstanceInput) SetDBInstanceClass(v string) *ModifyDBInstanceInput { s.DBInstanceClass = &v diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go index 5d7c5a33fe8..84cac53bb6d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go @@ -163,7 +163,7 @@ func (c *Lightsail) AttachDiskRequest(input *AttachDiskInput) (req *request.Requ // and exposes it to the instance with the specified disk name. // // The attach disk operation supports tag-based access control via resource -// tags applied to the resource identified by diskName. For more information, +// tags applied to the resource identified by disk name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -274,8 +274,8 @@ func (c *Lightsail) AttachInstancesToLoadBalancerRequest(input *AttachInstancesT // health check status is available. // // The attach instances to load balancer operation supports tag-based access -// control via resource tags applied to the resource identified by loadBalancerName. -// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// control via resource tags applied to the resource identified by load balancer +// name. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -384,13 +384,13 @@ func (c *Lightsail) AttachLoadBalancerTlsCertificateRequest(input *AttachLoadBal // // Once you create and validate your certificate, you can attach it to your // load balancer. You can also use this API to rotate the certificates on your -// account. Use the AttachLoadBalancerTlsCertificate operation with the non-attached -// certificate, and it will replace the existing one and become the attached -// certificate. +// account. Use the attach load balancer tls certificate operation with the +// non-attached certificate, and it will replace the existing one and become +// the attached certificate. // // The attach load balancer tls certificate operation supports tag-based access -// control via resource tags applied to the resource identified by loadBalancerName. -// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// control via resource tags applied to the resource identified by load balancer +// name. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -601,7 +601,7 @@ func (c *Lightsail) CloseInstancePublicPortsRequest(input *CloseInstancePublicPo // Closes the public ports on a specific Amazon Lightsail instance. // // The close instance public ports operation supports tag-based access control -// via resource tags applied to the resource identified by instanceName. For +// via resource tags applied to the resource identified by instance name. For // more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -706,8 +706,19 @@ func (c *Lightsail) CopySnapshotRequest(input *CopySnapshotInput) (req *request. // CopySnapshot API operation for Amazon Lightsail. // -// Copies an instance or disk snapshot from one AWS Region to another in Amazon -// Lightsail. +// Copies a manual instance or disk snapshot as another manual snapshot, or +// copies an automatic instance or disk snapshot as a manual snapshot. This +// operation can also be used to copy a manual or automatic snapshot of an instance +// or a disk from one AWS Region to another in Amazon Lightsail. +// +// When copying a manual snapshot, be sure to define the source region, source +// snapshot name, and target snapshot name parameters. +// +// When copying an automatic snapshot, be sure to define the source region, +// source resource name, target snapshot name, and either the restore date or +// the use latest restorable auto snapshot parameters. +// +// Database snapshots cannot be copied at this 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 @@ -923,10 +934,8 @@ func (c *Lightsail) CreateDiskRequest(input *CreateDiskInput) (req *request.Requ // CreateDisk API operation for Amazon Lightsail. // -// Creates a block storage disk that can be attached to a Lightsail instance -// in the same Availability Zone (e.g., us-east-2a). The disk is created in -// the regional endpoint that you send the HTTP request to. For more information, -// see Regions and Availability Zones in Lightsail (https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail). +// Creates a block storage disk that can be attached to an Amazon Lightsail +// instance in the same Availability Zone (e.g., us-east-2a). // // The create disk operation supports tag-based access control via request tags. // For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). @@ -1033,14 +1042,13 @@ func (c *Lightsail) CreateDiskFromSnapshotRequest(input *CreateDiskFromSnapshotI // CreateDiskFromSnapshot API operation for Amazon Lightsail. // -// Creates a block storage disk from a disk snapshot that can be attached to -// a Lightsail instance in the same Availability Zone (e.g., us-east-2a). The -// disk is created in the regional endpoint that you send the HTTP request to. -// For more information, see Regions and Availability Zones in Lightsail (https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail). +// Creates a block storage disk from a manual or automatic snapshot of a disk. +// The resulting disk can be attached to an Amazon Lightsail instance in the +// same Availability Zone (e.g., us-east-2a). // // The create disk from snapshot operation supports tag-based access control // via request tags and resource tags applied to the resource identified by -// diskSnapshotName. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// disk snapshot name. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.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 +1394,7 @@ func (c *Lightsail) CreateDomainEntryRequest(input *CreateDomainEntryInput) (req // of authority (SOA), service locator (SRV), or text (TXT). // // The create domain entry operation supports tag-based access control via resource -// tags applied to the resource identified by domainName. For more information, +// tags applied to the resource identified by domain name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1599,12 +1607,7 @@ func (c *Lightsail) CreateInstancesRequest(input *CreateInstancesInput) (req *re // CreateInstances API operation for Amazon Lightsail. // -// Creates one or more Amazon Lightsail virtual private servers, or instances. -// Create instances using active blueprints. Inactive blueprints are listed -// to support customers with existing instances but are not necessarily available -// for launch of new instances. Blueprints are marked inactive when they become -// outdated due to operating system updates or new application releases. Use -// the get blueprints operation to return a list of available blueprints. +// Creates one or more Amazon Lightsail instances. // // The create instances operation supports tag-based access control via request // tags. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). @@ -1711,12 +1714,13 @@ func (c *Lightsail) CreateInstancesFromSnapshotRequest(input *CreateInstancesFro // CreateInstancesFromSnapshot API operation for Amazon Lightsail. // -// Uses a specific snapshot as a blueprint for creating one or more new instances -// that are based on that identical configuration. +// Creates one or more new instances from a manual or automatic snapshot of +// an instance. // // The create instances from snapshot operation supports tag-based access control // via request tags and resource tags applied to the resource identified by -// instanceSnapshotName. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// instance snapshot name. For more information, see the Lightsail Dev Guide +// (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2046,8 +2050,8 @@ func (c *Lightsail) CreateLoadBalancerTlsCertificateRequest(input *CreateLoadBal // TLS is just an updated, more secure version of Secure Socket Layer (SSL). // // The create load balancer tls certificate operation supports tag-based access -// control via resource tags applied to the resource identified by loadBalancerName. -// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// control via resource tags applied to the resource identified by load balancer +// name. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2437,6 +2441,106 @@ func (c *Lightsail) CreateRelationalDatabaseSnapshotWithContext(ctx aws.Context, return out, req.Send() } +const opDeleteAutoSnapshot = "DeleteAutoSnapshot" + +// DeleteAutoSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAutoSnapshot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteAutoSnapshot for more information on using the DeleteAutoSnapshot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteAutoSnapshotRequest method. +// req, resp := client.DeleteAutoSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteAutoSnapshot +func (c *Lightsail) DeleteAutoSnapshotRequest(input *DeleteAutoSnapshotInput) (req *request.Request, output *DeleteAutoSnapshotOutput) { + op := &request.Operation{ + Name: opDeleteAutoSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteAutoSnapshotInput{} + } + + output = &DeleteAutoSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteAutoSnapshot API operation for Amazon Lightsail. +// +// Deletes an automatic snapshot for an instance or disk. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Lightsail's +// API operation DeleteAutoSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteAutoSnapshot +func (c *Lightsail) DeleteAutoSnapshot(input *DeleteAutoSnapshotInput) (*DeleteAutoSnapshotOutput, error) { + req, out := c.DeleteAutoSnapshotRequest(input) + return out, req.Send() +} + +// DeleteAutoSnapshotWithContext is the same as DeleteAutoSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAutoSnapshot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) DeleteAutoSnapshotWithContext(ctx aws.Context, input *DeleteAutoSnapshotInput, opts ...request.Option) (*DeleteAutoSnapshotOutput, error) { + req, out := c.DeleteAutoSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteDisk = "DeleteDisk" // DeleteDiskRequest generates a "aws/request.Request" representing the @@ -2487,7 +2591,7 @@ func (c *Lightsail) DeleteDiskRequest(input *DeleteDiskInput) (req *request.Requ // The disk may remain in the deleting state for several minutes. // // The delete disk operation supports tag-based access control via resource -// tags applied to the resource identified by diskName. For more information, +// tags applied to the resource identified by disk name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2602,7 +2706,7 @@ func (c *Lightsail) DeleteDiskSnapshotRequest(input *DeleteDiskSnapshotInput) (r // the information needed to restore the disk. // // The delete disk snapshot operation supports tag-based access control via -// resource tags applied to the resource identified by diskSnapshotName. For +// resource tags applied to the resource identified by disk snapshot name. For // more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2710,7 +2814,7 @@ func (c *Lightsail) DeleteDomainRequest(input *DeleteDomainInput) (req *request. // Deletes the specified domain recordset and all of its domain records. // // The delete domain operation supports tag-based access control via resource -// tags applied to the resource identified by domainName. For more information, +// tags applied to the resource identified by domain name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2818,7 +2922,7 @@ func (c *Lightsail) DeleteDomainEntryRequest(input *DeleteDomainEntryInput) (req // Deletes a specific domain entry. // // The delete domain entry operation supports tag-based access control via resource -// tags applied to the resource identified by domainName. For more information, +// tags applied to the resource identified by domain name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2923,10 +3027,10 @@ func (c *Lightsail) DeleteInstanceRequest(input *DeleteInstanceInput) (req *requ // DeleteInstance API operation for Amazon Lightsail. // -// Deletes a specific Amazon Lightsail virtual private server, or instance. +// Deletes an Amazon Lightsail instance. // // The delete instance operation supports tag-based access control via resource -// tags applied to the resource identified by instanceName. For more information, +// tags applied to the resource identified by instance name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3034,8 +3138,8 @@ func (c *Lightsail) DeleteInstanceSnapshotRequest(input *DeleteInstanceSnapshotI // Deletes a specific snapshot of a virtual private server (or instance). // // The delete instance snapshot operation supports tag-based access control -// via resource tags applied to the resource identified by instanceSnapshotName. -// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// via resource tags applied to the resource identified by instance snapshot +// name. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3142,7 +3246,7 @@ func (c *Lightsail) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *reques // Deletes a specific SSH key pair. // // The delete key pair operation supports tag-based access control via resource -// tags applied to the resource identified by keyPairName. For more information, +// tags applied to the resource identified by key pair name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3364,7 +3468,7 @@ func (c *Lightsail) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (r // create a new certificate, and verify domain ownership again. // // The delete load balancer operation supports tag-based access control via -// resource tags applied to the resource identified by loadBalancerName. For +// resource tags applied to the resource identified by load balancer name. For // more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3472,8 +3576,8 @@ func (c *Lightsail) DeleteLoadBalancerTlsCertificateRequest(input *DeleteLoadBal // Deletes an SSL/TLS certificate associated with a Lightsail load balancer. // // The delete load balancer tls certificate operation supports tag-based access -// control via resource tags applied to the resource identified by loadBalancerName. -// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// control via resource tags applied to the resource identified by load balancer +// name. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3798,7 +3902,7 @@ func (c *Lightsail) DetachDiskRequest(input *DetachDiskInput) (req *request.Requ // stopping the instance and detaching the disk. // // The detach disk operation supports tag-based access control via resource -// tags applied to the resource identified by diskName. For more information, +// tags applied to the resource identified by disk name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3909,8 +4013,8 @@ func (c *Lightsail) DetachInstancesFromLoadBalancerRequest(input *DetachInstance // are detached from the load balancer. // // The detach instances from load balancer operation supports tag-based access -// control via resource tags applied to the resource identified by loadBalancerName. -// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// control via resource tags applied to the resource identified by load balancer +// name. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4074,6 +4178,107 @@ func (c *Lightsail) DetachStaticIpWithContext(ctx aws.Context, input *DetachStat return out, req.Send() } +const opDisableAddOn = "DisableAddOn" + +// DisableAddOnRequest generates a "aws/request.Request" representing the +// client's request for the DisableAddOn operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisableAddOn for more information on using the DisableAddOn +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisableAddOnRequest method. +// req, resp := client.DisableAddOnRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DisableAddOn +func (c *Lightsail) DisableAddOnRequest(input *DisableAddOnInput) (req *request.Request, output *DisableAddOnOutput) { + op := &request.Operation{ + Name: opDisableAddOn, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisableAddOnInput{} + } + + output = &DisableAddOnOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisableAddOn API operation for Amazon Lightsail. +// +// Disables an add-on for an Amazon Lightsail resource. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Lightsail's +// API operation DisableAddOn for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DisableAddOn +func (c *Lightsail) DisableAddOn(input *DisableAddOnInput) (*DisableAddOnOutput, error) { + req, out := c.DisableAddOnRequest(input) + return out, req.Send() +} + +// DisableAddOnWithContext is the same as DisableAddOn with the addition of +// the ability to pass a context and additional request options. +// +// See DisableAddOn for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) DisableAddOnWithContext(ctx aws.Context, input *DisableAddOnInput, opts ...request.Option) (*DisableAddOnOutput, error) { + req, out := c.DisableAddOnRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDownloadDefaultKeyPair = "DownloadDefaultKeyPair" // DownloadDefaultKeyPairRequest generates a "aws/request.Request" representing the @@ -4178,6 +4383,107 @@ func (c *Lightsail) DownloadDefaultKeyPairWithContext(ctx aws.Context, input *Do return out, req.Send() } +const opEnableAddOn = "EnableAddOn" + +// EnableAddOnRequest generates a "aws/request.Request" representing the +// client's request for the EnableAddOn operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See EnableAddOn for more information on using the EnableAddOn +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the EnableAddOnRequest method. +// req, resp := client.EnableAddOnRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/EnableAddOn +func (c *Lightsail) EnableAddOnRequest(input *EnableAddOnInput) (req *request.Request, output *EnableAddOnOutput) { + op := &request.Operation{ + Name: opEnableAddOn, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &EnableAddOnInput{} + } + + output = &EnableAddOnOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableAddOn API operation for Amazon Lightsail. +// +// Enables or modifies an add-on for an Amazon Lightsail resource. For more +// information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Lightsail's +// API operation EnableAddOn for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/EnableAddOn +func (c *Lightsail) EnableAddOn(input *EnableAddOnInput) (*EnableAddOnOutput, error) { + req, out := c.EnableAddOnRequest(input) + return out, req.Send() +} + +// EnableAddOnWithContext is the same as EnableAddOn with the addition of +// the ability to pass a context and additional request options. +// +// See EnableAddOn for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) EnableAddOnWithContext(ctx aws.Context, input *EnableAddOnInput, opts ...request.Option) (*EnableAddOnOutput, error) { + req, out := c.EnableAddOnRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opExportSnapshot = "ExportSnapshot" // ExportSnapshotRequest generates a "aws/request.Request" representing the @@ -4234,8 +4540,8 @@ func (c *Lightsail) ExportSnapshotRequest(input *ExportSnapshotInput) (req *requ // in Amazon EC2 as the source Lightsail snapshot. // // The export snapshot operation supports tag-based access control via resource -// tags applied to the resource identified by sourceSnapshotName. For more information, -// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// tags applied to the resource identified by source snapshot name. For more +// information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Use the get instance snapshots or get disk snapshots operations to get a // list of snapshots that you can export to Amazon EC2. @@ -4402,32 +4708,133 @@ func (c *Lightsail) GetActiveNamesWithContext(ctx aws.Context, input *GetActiveN return out, req.Send() } -const opGetBlueprints = "GetBlueprints" +const opGetAutoSnapshots = "GetAutoSnapshots" -// GetBlueprintsRequest generates a "aws/request.Request" representing the -// client's request for the GetBlueprints operation. The "output" return +// GetAutoSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the GetAutoSnapshots operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetBlueprints for more information on using the GetBlueprints +// See GetAutoSnapshots for more information on using the GetAutoSnapshots // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetBlueprintsRequest method. -// req, resp := client.GetBlueprintsRequest(params) +// // Example sending a request using the GetAutoSnapshotsRequest method. +// req, resp := client.GetAutoSnapshotsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetAutoSnapshots +func (c *Lightsail) GetAutoSnapshotsRequest(input *GetAutoSnapshotsInput) (req *request.Request, output *GetAutoSnapshotsOutput) { + op := &request.Operation{ + Name: opGetAutoSnapshots, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetAutoSnapshotsInput{} + } + + output = &GetAutoSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAutoSnapshots API operation for Amazon Lightsail. +// +// Returns the available automatic snapshots for the specified resource name. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Lightsail's +// API operation GetAutoSnapshots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetAutoSnapshots +func (c *Lightsail) GetAutoSnapshots(input *GetAutoSnapshotsInput) (*GetAutoSnapshotsOutput, error) { + req, out := c.GetAutoSnapshotsRequest(input) + return out, req.Send() +} + +// GetAutoSnapshotsWithContext is the same as GetAutoSnapshots with the addition of +// the ability to pass a context and additional request options. +// +// See GetAutoSnapshots for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetAutoSnapshotsWithContext(ctx aws.Context, input *GetAutoSnapshotsInput, opts ...request.Option) (*GetAutoSnapshotsOutput, error) { + req, out := c.GetAutoSnapshotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetBlueprints = "GetBlueprints" + +// GetBlueprintsRequest generates a "aws/request.Request" representing the +// client's request for the GetBlueprints operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetBlueprints for more information on using the GetBlueprints +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetBlueprintsRequest method. +// req, resp := client.GetBlueprintsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *request.Request, output *GetBlueprintsOutput) { op := &request.Operation{ Name: opGetBlueprints, @@ -4447,9 +4854,14 @@ func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *reques // GetBlueprints API operation for Amazon Lightsail. // // Returns the list of available instance images, or blueprints. You can use -// a blueprint to create a new virtual private server already running a specific -// operating system, as well as a preinstalled app or development stack. The -// software each instance is running depends on the blueprint image you choose. +// a blueprint to create a new instance already running a specific operating +// system, as well as a preinstalled app or development stack. The software +// each instance is running depends on the blueprint image you choose. +// +// Use active blueprints when creating new instances. Inactive blueprints are +// listed to support customers with existing instances and are not necessarily +// available to create new instances. Blueprints are marked inactive when they +// become outdated due to operating system updates or new application releases. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5617,7 +6029,7 @@ func (c *Lightsail) GetInstanceAccessDetailsRequest(input *GetInstanceAccessDeta // server, or instance. // // The get instance access details operation supports tag-based access control -// via resource tags applied to the resource identified by instanceName. For +// via resource tags applied to the resource identified by instance name. For // more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -8041,7 +8453,7 @@ func (c *Lightsail) GetRelationalDatabaseMasterUserPasswordRequest(input *GetRel // Returns the current, previous, or pending versions of the master user password // for a Lightsail database. // -// The asdf operation GetRelationalDatabaseMasterUserPassword supports tag-based +// The GetRelationalDatabaseMasterUserPassword operation supports tag-based // access control via resource tags applied to the resource identified by relationalDatabaseName. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -9092,7 +9504,7 @@ func (c *Lightsail) OpenInstancePublicPortsRequest(input *OpenInstancePublicPort // Adds public ports to an Amazon Lightsail instance. // // The open instance public ports operation supports tag-based access control -// via resource tags applied to the resource identified by instanceName. For +// via resource tags applied to the resource identified by instance name. For // more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -9305,7 +9717,7 @@ func (c *Lightsail) PutInstancePublicPortsRequest(input *PutInstancePublicPortsI // all ports for every protocol not included in the current request. // // The put instance public ports operation supports tag-based access control -// via resource tags applied to the resource identified by instanceName. For +// via resource tags applied to the resource identified by instance name. For // more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -9413,7 +9825,7 @@ func (c *Lightsail) RebootInstanceRequest(input *RebootInstanceInput) (req *requ // Restarts a specific instance. // // The reboot instance operation supports tag-based access control via resource -// tags applied to the resource identified by instanceName. For more information, +// tags applied to the resource identified by instance name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -9739,7 +10151,7 @@ func (c *Lightsail) StartInstanceRequest(input *StartInstanceInput) (req *reques // information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/lightsail-create-static-ip). // // The start instance operation supports tag-based access control via resource -// tags applied to the resource identified by instanceName. For more information, +// tags applied to the resource identified by instance name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -9961,7 +10373,7 @@ func (c *Lightsail) StopInstanceRequest(input *StopInstanceInput) (req *request. // information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/lightsail-create-static-ip). // // The stop instance operation supports tag-based access control via resource -// tags applied to the resource identified by instanceName. For more information, +// tags applied to the resource identified by instance name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -10180,7 +10592,7 @@ func (c *Lightsail) TagResourceRequest(input *TagResourceInput) (req *request.Re // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). // // The tag resource operation supports tag-based access control via request -// tags and resource tags applied to the resource identified by resourceName. +// tags and resource tags applied to the resource identified by resource name. // For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -10393,7 +10805,7 @@ func (c *Lightsail) UntagResourceRequest(input *UntagResourceInput) (req *reques // Amazon Lightsail resource. // // The untag resource operation supports tag-based access control via request -// tags and resource tags applied to the resource identified by resourceName. +// tags and resource tags applied to the resource identified by resource name. // For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -10501,7 +10913,7 @@ func (c *Lightsail) UpdateDomainEntryRequest(input *UpdateDomainEntryInput) (req // Updates a domain recordset after it is created. // // The update domain entry operation supports tag-based access control via resource -// tags applied to the resource identified by domainName. For more information, +// tags applied to the resource identified by domain name. For more information, // see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -10610,7 +11022,7 @@ func (c *Lightsail) UpdateLoadBalancerAttributeRequest(input *UpdateLoadBalancer // one attribute at a time. // // The update load balancer attribute operation supports tag-based access control -// via resource tags applied to the resource identified by loadBalancerName. +// via resource tags applied to the resource identified by load balancer name. // For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -10897,6 +11309,120 @@ func (c *Lightsail) UpdateRelationalDatabaseParametersWithContext(ctx aws.Contex return out, req.Send() } +// Describes an add-on that is enabled for an Amazon Lightsail resource. +type AddOn struct { + _ struct{} `type:"structure"` + + // The name of the add-on. + Name *string `locationName:"name" type:"string"` + + // The next daily time an automatic snapshot will be created. + // + // The time shown is in HH:00 format, and in Coordinated Universal Time (UTC). + // + // The snapshot is automatically created between the time shown and up to 45 + // minutes after. + NextSnapshotTimeOfDay *string `locationName:"nextSnapshotTimeOfDay" type:"string"` + + // The daily time when an automatic snapshot is created. + // + // The time shown is in HH:00 format, and in Coordinated Universal Time (UTC). + // + // The snapshot is automatically created between the time shown and up to 45 + // minutes after. + SnapshotTimeOfDay *string `locationName:"snapshotTimeOfDay" type:"string"` + + // The status of the add-on. + Status *string `locationName:"status" type:"string"` +} + +// String returns the string representation +func (s AddOn) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddOn) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *AddOn) SetName(v string) *AddOn { + s.Name = &v + return s +} + +// SetNextSnapshotTimeOfDay sets the NextSnapshotTimeOfDay field's value. +func (s *AddOn) SetNextSnapshotTimeOfDay(v string) *AddOn { + s.NextSnapshotTimeOfDay = &v + return s +} + +// SetSnapshotTimeOfDay sets the SnapshotTimeOfDay field's value. +func (s *AddOn) SetSnapshotTimeOfDay(v string) *AddOn { + s.SnapshotTimeOfDay = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AddOn) SetStatus(v string) *AddOn { + s.Status = &v + return s +} + +// Describes a request to enable, modify, or disable an add-on for an Amazon +// Lightsail resource. +// +// An additional cost may be associated with enabling add-ons. For more information, +// see the Lightsail pricing page (https://aws.amazon.com/lightsail/pricing/). +type AddOnRequest struct { + _ struct{} `type:"structure"` + + // The add-on type. + // + // AddOnType is a required field + AddOnType *string `locationName:"addOnType" type:"string" required:"true" enum:"AddOnType"` + + // An object that represents additional parameters when enabling or modifying + // the automatic snapshot add-on. + AutoSnapshotAddOnRequest *AutoSnapshotAddOnRequest `locationName:"autoSnapshotAddOnRequest" type:"structure"` +} + +// String returns the string representation +func (s AddOnRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddOnRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddOnRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddOnRequest"} + if s.AddOnType == nil { + invalidParams.Add(request.NewErrParamRequired("AddOnType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddOnType sets the AddOnType field's value. +func (s *AddOnRequest) SetAddOnType(v string) *AddOnRequest { + s.AddOnType = &v + return s +} + +// SetAutoSnapshotAddOnRequest sets the AutoSnapshotAddOnRequest field's value. +func (s *AddOnRequest) SetAutoSnapshotAddOnRequest(v *AutoSnapshotAddOnRequest) *AddOnRequest { + s.AutoSnapshotAddOnRequest = v + return s +} + type AllocateStaticIpInput struct { _ struct{} `type:"structure"` @@ -11285,6 +11811,155 @@ func (s *AttachStaticIpOutput) SetOperations(v []*Operation) *AttachStaticIpOutp return s } +// Describes a block storage disk that is attached to an instance, and is included +// in an automatic snapshot. +type AttachedDisk struct { + _ struct{} `type:"structure"` + + // The path of the disk (e.g., /dev/xvdf). + Path *string `locationName:"path" type:"string"` + + // The size of the disk in GB. + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` +} + +// String returns the string representation +func (s AttachedDisk) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachedDisk) GoString() string { + return s.String() +} + +// SetPath sets the Path field's value. +func (s *AttachedDisk) SetPath(v string) *AttachedDisk { + s.Path = &v + return s +} + +// SetSizeInGb sets the SizeInGb field's value. +func (s *AttachedDisk) SetSizeInGb(v int64) *AttachedDisk { + s.SizeInGb = &v + return s +} + +// Describes a request to enable or modify the automatic snapshot add-on for +// an Amazon Lightsail instance or disk. +// +// When you modify the automatic snapshot time for a resource, it is typically +// effective immediately except under the following conditions: +// +// * If an automatic snapshot has been created for the current day, and you +// change the snapshot time to a later time of day, then the new snapshot +// time will be effective the following day. This ensures that two snapshots +// are not created for the current day. +// +// * If an automatic snapshot has not yet been created for the current day, +// and you change the snapshot time to an earlier time of day, then the new +// snapshot time will be effective the following day and a snapshot is automatically +// created at the previously set time for the current day. This ensures that +// a snapshot is created for the current day. +// +// * If an automatic snapshot has not yet been created for the current day, +// and you change the snapshot time to a time that is within 30 minutes from +// your current time, then the new snapshot time will be effective the following +// day and a snapshot is automatically created at the previously set time +// for the current day. This ensures that a snapshot is created for the current +// day, because 30 minutes is required between your current time and the +// new snapshot time that you specify. +// +// * If an automatic snapshot is scheduled to be created within 30 minutes +// from your current time and you change the snapshot time, then the new +// snapshot time will be effective the following day and a snapshot is automatically +// created at the previously set time for the current day. This ensures that +// a snapshot is created for the current day, because 30 minutes is required +// between your current time and the new snapshot time that you specify. +type AutoSnapshotAddOnRequest struct { + _ struct{} `type:"structure"` + + // The daily time when an automatic snapshot will be created. + // + // Constraints: + // + // * Must be in HH:00 format, and in an hourly increment. + // + // * Specified in Coordinated Universal Time (UTC). + // + // * The snapshot will be automatically created between the time specified + // and up to 45 minutes after. + SnapshotTimeOfDay *string `locationName:"snapshotTimeOfDay" type:"string"` +} + +// String returns the string representation +func (s AutoSnapshotAddOnRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoSnapshotAddOnRequest) GoString() string { + return s.String() +} + +// SetSnapshotTimeOfDay sets the SnapshotTimeOfDay field's value. +func (s *AutoSnapshotAddOnRequest) SetSnapshotTimeOfDay(v string) *AutoSnapshotAddOnRequest { + s.SnapshotTimeOfDay = &v + return s +} + +// Describes an automatic snapshot. +type AutoSnapshotDetails struct { + _ struct{} `type:"structure"` + + // The timestamp when the automatic snapshot was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The date of the automatic snapshot in YYYY-MM-DD format. + Date *string `locationName:"date" type:"string"` + + // An array of objects that describe the block storage disks attached to the + // instance when the automatic snapshot was created. + FromAttachedDisks []*AttachedDisk `locationName:"fromAttachedDisks" type:"list"` + + // The status of the automatic snapshot. + Status *string `locationName:"status" type:"string" enum:"AutoSnapshotStatus"` +} + +// String returns the string representation +func (s AutoSnapshotDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoSnapshotDetails) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *AutoSnapshotDetails) SetCreatedAt(v time.Time) *AutoSnapshotDetails { + s.CreatedAt = &v + return s +} + +// SetDate sets the Date field's value. +func (s *AutoSnapshotDetails) SetDate(v string) *AutoSnapshotDetails { + s.Date = &v + return s +} + +// SetFromAttachedDisks sets the FromAttachedDisks field's value. +func (s *AutoSnapshotDetails) SetFromAttachedDisks(v []*AttachedDisk) *AutoSnapshotDetails { + s.FromAttachedDisks = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AutoSnapshotDetails) SetStatus(v string) *AutoSnapshotDetails { + s.Status = &v + return s +} + // Describes an Availability Zone. type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -11787,20 +12462,55 @@ func (s *CloudFormationStackRecordSourceInfo) SetResourceType(v string) *CloudFo type CopySnapshotInput struct { _ struct{} `type:"structure"` - // The AWS Region where the source snapshot is located. + // The date of the automatic snapshot to copy for the new manual snapshot. + // + // Use the get auto snapshots operation to identify the dates of the available + // automatic snapshots. + // + // Constraints: + // + // * Must be specified in YYYY-MM-DD format. + // + // * This parameter cannot be defined together with the use latest restorable + // auto snapshot parameter. The restore date and use latest restorable auto + // snapshot parameters are mutually exclusive. + // + // Define this parameter only when copying an automatic snapshot as a manual + // snapshot. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + RestoreDate *string `locationName:"restoreDate" type:"string"` + + // The AWS Region where the source manual or automatic snapshot is located. // // SourceRegion is a required field SourceRegion *string `locationName:"sourceRegion" type:"string" required:"true" enum:"RegionName"` + // The name of the source resource from which the automatic snapshot was created. + // + // Define this parameter only when copying an automatic snapshot as a manual + // snapshot. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + SourceResourceName *string `locationName:"sourceResourceName" type:"string"` + // The name of the source instance or disk snapshot to be copied. // - // SourceSnapshotName is a required field - SourceSnapshotName *string `locationName:"sourceSnapshotName" type:"string" required:"true"` + // Define this parameter only when copying a manual snapshot as another manual + // snapshot. + SourceSnapshotName *string `locationName:"sourceSnapshotName" type:"string"` // The name of the new instance or disk snapshot to be created as a copy. // // TargetSnapshotName is a required field TargetSnapshotName *string `locationName:"targetSnapshotName" type:"string" required:"true"` + + // A Boolean value to indicate whether to use the latest available automatic + // snapshot. + // + // This parameter cannot be defined together with the restore date parameter. + // The use latest restorable auto snapshot and restore date parameters are mutually + // exclusive. + // + // Define this parameter only when copying an automatic snapshot as a manual + // snapshot. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + UseLatestRestorableAutoSnapshot *bool `locationName:"useLatestRestorableAutoSnapshot" type:"boolean"` } // String returns the string representation @@ -11819,9 +12529,6 @@ func (s *CopySnapshotInput) Validate() error { if s.SourceRegion == nil { invalidParams.Add(request.NewErrParamRequired("SourceRegion")) } - if s.SourceSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("SourceSnapshotName")) - } if s.TargetSnapshotName == nil { invalidParams.Add(request.NewErrParamRequired("TargetSnapshotName")) } @@ -11832,12 +12539,24 @@ func (s *CopySnapshotInput) Validate() error { return nil } +// SetRestoreDate sets the RestoreDate field's value. +func (s *CopySnapshotInput) SetRestoreDate(v string) *CopySnapshotInput { + s.RestoreDate = &v + return s +} + // SetSourceRegion sets the SourceRegion field's value. func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput { s.SourceRegion = &v return s } +// SetSourceResourceName sets the SourceResourceName field's value. +func (s *CopySnapshotInput) SetSourceResourceName(v string) *CopySnapshotInput { + s.SourceResourceName = &v + return s +} + // SetSourceSnapshotName sets the SourceSnapshotName field's value. func (s *CopySnapshotInput) SetSourceSnapshotName(v string) *CopySnapshotInput { s.SourceSnapshotName = &v @@ -11850,6 +12569,12 @@ func (s *CopySnapshotInput) SetTargetSnapshotName(v string) *CopySnapshotInput { return s } +// SetUseLatestRestorableAutoSnapshot sets the UseLatestRestorableAutoSnapshot field's value. +func (s *CopySnapshotInput) SetUseLatestRestorableAutoSnapshot(v bool) *CopySnapshotInput { + s.UseLatestRestorableAutoSnapshot = &v + return s +} + type CopySnapshotOutput struct { _ struct{} `type:"structure"` @@ -11950,6 +12675,9 @@ func (s *CreateCloudFormationStackOutput) SetOperations(v []*Operation) *CreateC type CreateDiskFromSnapshotInput struct { _ struct{} `type:"structure"` + // An array of objects that represent the add-ons to enable for the new disk. + AddOns []*AddOnRequest `locationName:"addOns" type:"list"` + // The Availability Zone where you want to create the disk (e.g., us-east-2a). // Choose the same Availability Zone as the Lightsail instance where you want // to create the disk. @@ -11968,18 +12696,57 @@ type CreateDiskFromSnapshotInput struct { // The name of the disk snapshot (e.g., my-snapshot) from which to create the // new storage disk. // - // DiskSnapshotName is a required field - DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` + // This parameter cannot be defined together with the source disk name parameter. + // The disk snapshot name and source disk name parameters are mutually exclusive. + DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string"` + + // The date of the automatic snapshot to use for the new disk. + // + // Use the get auto snapshots operation to identify the dates of the available + // automatic snapshots. + // + // Constraints: + // + // * Must be specified in YYYY-MM-DD format. + // + // * This parameter cannot be defined together with the use latest restorable + // auto snapshot parameter. The restore date and use latest restorable auto + // snapshot parameters are mutually exclusive. + // + // Define this parameter only when creating a new disk from an automatic snapshot. + // For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + RestoreDate *string `locationName:"restoreDate" type:"string"` // The size of the disk in GB (e.g., 32). // // SizeInGb is a required field SizeInGb *int64 `locationName:"sizeInGb" type:"integer" required:"true"` + // The name of the source disk from which the source automatic snapshot was + // created. + // + // This parameter cannot be defined together with the disk snapshot name parameter. + // The source disk name and disk snapshot name parameters are mutually exclusive. + // + // Define this parameter only when creating a new disk from an automatic snapshot. + // For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + SourceDiskName *string `locationName:"sourceDiskName" type:"string"` + // The tag keys and optional values to add to the resource during create. // // To tag a resource after it has been created, see the tag resource operation. Tags []*Tag `locationName:"tags" type:"list"` + + // A Boolean value to indicate whether to use the latest available automatic + // snapshot. + // + // This parameter cannot be defined together with the restore date parameter. + // The use latest restorable auto snapshot and restore date parameters are mutually + // exclusive. + // + // Define this parameter only when creating a new disk from an automatic snapshot. + // For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + UseLatestRestorableAutoSnapshot *bool `locationName:"useLatestRestorableAutoSnapshot" type:"boolean"` } // String returns the string representation @@ -12001,12 +12768,19 @@ func (s *CreateDiskFromSnapshotInput) Validate() error { if s.DiskName == nil { invalidParams.Add(request.NewErrParamRequired("DiskName")) } - if s.DiskSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) - } if s.SizeInGb == nil { invalidParams.Add(request.NewErrParamRequired("SizeInGb")) } + if s.AddOns != nil { + for i, v := range s.AddOns { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddOns", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -12014,6 +12788,12 @@ func (s *CreateDiskFromSnapshotInput) Validate() error { return nil } +// SetAddOns sets the AddOns field's value. +func (s *CreateDiskFromSnapshotInput) SetAddOns(v []*AddOnRequest) *CreateDiskFromSnapshotInput { + s.AddOns = v + return s +} + // SetAvailabilityZone sets the AvailabilityZone field's value. func (s *CreateDiskFromSnapshotInput) SetAvailabilityZone(v string) *CreateDiskFromSnapshotInput { s.AvailabilityZone = &v @@ -12032,18 +12812,36 @@ func (s *CreateDiskFromSnapshotInput) SetDiskSnapshotName(v string) *CreateDiskF return s } +// SetRestoreDate sets the RestoreDate field's value. +func (s *CreateDiskFromSnapshotInput) SetRestoreDate(v string) *CreateDiskFromSnapshotInput { + s.RestoreDate = &v + return s +} + // SetSizeInGb sets the SizeInGb field's value. func (s *CreateDiskFromSnapshotInput) SetSizeInGb(v int64) *CreateDiskFromSnapshotInput { s.SizeInGb = &v return s } +// SetSourceDiskName sets the SourceDiskName field's value. +func (s *CreateDiskFromSnapshotInput) SetSourceDiskName(v string) *CreateDiskFromSnapshotInput { + s.SourceDiskName = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateDiskFromSnapshotInput) SetTags(v []*Tag) *CreateDiskFromSnapshotInput { s.Tags = v return s } +// SetUseLatestRestorableAutoSnapshot sets the UseLatestRestorableAutoSnapshot field's value. +func (s *CreateDiskFromSnapshotInput) SetUseLatestRestorableAutoSnapshot(v bool) *CreateDiskFromSnapshotInput { + s.UseLatestRestorableAutoSnapshot = &v + return s +} + type CreateDiskFromSnapshotOutput struct { _ struct{} `type:"structure"` @@ -12070,11 +12868,14 @@ func (s *CreateDiskFromSnapshotOutput) SetOperations(v []*Operation) *CreateDisk type CreateDiskInput struct { _ struct{} `type:"structure"` + // An array of objects that represent the add-ons to enable for the new disk. + AddOns []*AddOnRequest `locationName:"addOns" type:"list"` + // The Availability Zone where you want to create the disk (e.g., us-east-2a). - // Choose the same Availability Zone as the Lightsail instance where you want - // to create the disk. + // Use the same Availability Zone as the Lightsail instance to which you want + // to attach the disk. // - // Use the GetRegions operation to list the Availability Zones where Lightsail + // Use the get regions operation to list the Availability Zones where Lightsail // is currently available. // // AvailabilityZone is a required field @@ -12118,6 +12919,16 @@ func (s *CreateDiskInput) Validate() error { if s.SizeInGb == nil { invalidParams.Add(request.NewErrParamRequired("SizeInGb")) } + if s.AddOns != nil { + for i, v := range s.AddOns { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddOns", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -12125,6 +12936,12 @@ func (s *CreateDiskInput) Validate() error { return nil } +// SetAddOns sets the AddOns field's value. +func (s *CreateDiskInput) SetAddOns(v []*AddOnRequest) *CreateDiskInput { + s.AddOns = v + return s +} + // SetAvailabilityZone sets the AvailabilityZone field's value. func (s *CreateDiskInput) SetAvailabilityZone(v string) *CreateDiskInput { s.AvailabilityZone = &v @@ -12515,6 +13332,9 @@ func (s *CreateInstanceSnapshotOutput) SetOperations(v []*Operation) *CreateInst type CreateInstancesFromSnapshotInput struct { _ struct{} `type:"structure"` + // An array of objects representing the add-ons to enable for the new instance. + AddOns []*AddOnRequest `locationName:"addOns" type:"list"` + // An object containing information about one or more disk mappings. AttachedDiskMapping map[string][]*DiskMap `locationName:"attachedDiskMapping" type:"map"` @@ -12542,17 +13362,58 @@ type CreateInstancesFromSnapshotInput struct { // Use the get instance snapshots operation to return information about your // existing snapshots. // - // InstanceSnapshotName is a required field - InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` + // This parameter cannot be defined together with the source instance name parameter. + // The instance snapshot name and source instance name parameters are mutually + // exclusive. + InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string"` // The name for your key pair. KeyPairName *string `locationName:"keyPairName" type:"string"` + // The date of the automatic snapshot to use for the new instance. + // + // Use the get auto snapshots operation to identify the dates of the available + // automatic snapshots. + // + // Constraints: + // + // * Must be specified in YYYY-MM-DD format. + // + // * This parameter cannot be defined together with the use latest restorable + // auto snapshot parameter. The restore date and use latest restorable auto + // snapshot parameters are mutually exclusive. + // + // Define this parameter only when creating a new instance from an automatic + // snapshot. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + RestoreDate *string `locationName:"restoreDate" type:"string"` + + // The name of the source instance from which the source automatic snapshot + // was created. + // + // This parameter cannot be defined together with the instance snapshot name + // parameter. The source instance name and instance snapshot name parameters + // are mutually exclusive. + // + // Define this parameter only when creating a new instance from an automatic + // snapshot. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + SourceInstanceName *string `locationName:"sourceInstanceName" type:"string"` + // The tag keys and optional values to add to the resource during create. // // To tag a resource after it has been created, see the tag resource operation. Tags []*Tag `locationName:"tags" type:"list"` + // A Boolean value to indicate whether to use the latest available automatic + // snapshot. + // + // This parameter cannot be defined together with the restore date parameter. + // The use latest restorable auto snapshot and restore date parameters are mutually + // exclusive. + // + // Define this parameter only when creating a new instance from an automatic + // snapshot. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). + UseLatestRestorableAutoSnapshot *bool `locationName:"useLatestRestorableAutoSnapshot" type:"boolean"` + // You can create a launch script that configures a server with additional user // data. For example, apt-get -y update. // @@ -12585,8 +13446,15 @@ func (s *CreateInstancesFromSnapshotInput) Validate() error { if s.InstanceNames == nil { invalidParams.Add(request.NewErrParamRequired("InstanceNames")) } - if s.InstanceSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceSnapshotName")) + if s.AddOns != nil { + for i, v := range s.AddOns { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddOns", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -12595,6 +13463,12 @@ func (s *CreateInstancesFromSnapshotInput) Validate() error { return nil } +// SetAddOns sets the AddOns field's value. +func (s *CreateInstancesFromSnapshotInput) SetAddOns(v []*AddOnRequest) *CreateInstancesFromSnapshotInput { + s.AddOns = v + return s +} + // SetAttachedDiskMapping sets the AttachedDiskMapping field's value. func (s *CreateInstancesFromSnapshotInput) SetAttachedDiskMapping(v map[string][]*DiskMap) *CreateInstancesFromSnapshotInput { s.AttachedDiskMapping = v @@ -12631,12 +13505,30 @@ func (s *CreateInstancesFromSnapshotInput) SetKeyPairName(v string) *CreateInsta return s } +// SetRestoreDate sets the RestoreDate field's value. +func (s *CreateInstancesFromSnapshotInput) SetRestoreDate(v string) *CreateInstancesFromSnapshotInput { + s.RestoreDate = &v + return s +} + +// SetSourceInstanceName sets the SourceInstanceName field's value. +func (s *CreateInstancesFromSnapshotInput) SetSourceInstanceName(v string) *CreateInstancesFromSnapshotInput { + s.SourceInstanceName = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateInstancesFromSnapshotInput) SetTags(v []*Tag) *CreateInstancesFromSnapshotInput { s.Tags = v return s } +// SetUseLatestRestorableAutoSnapshot sets the UseLatestRestorableAutoSnapshot field's value. +func (s *CreateInstancesFromSnapshotInput) SetUseLatestRestorableAutoSnapshot(v bool) *CreateInstancesFromSnapshotInput { + s.UseLatestRestorableAutoSnapshot = &v + return s +} + // SetUserData sets the UserData field's value. func (s *CreateInstancesFromSnapshotInput) SetUserData(v string) *CreateInstancesFromSnapshotInput { s.UserData = &v @@ -12670,6 +13562,9 @@ func (s *CreateInstancesFromSnapshotOutput) SetOperations(v []*Operation) *Creat type CreateInstancesInput struct { _ struct{} `type:"structure"` + // An array of objects representing the add-ons to enable for the new instance. + AddOns []*AddOnRequest `locationName:"addOns" type:"list"` + // The Availability Zone in which to create your instance. Use the following // format: us-east-2a (case sensitive). You can get a list of Availability Zones // by using the get regions (http://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRegions.html) @@ -12683,6 +13578,11 @@ type CreateInstancesInput struct { // Use the get blueprints operation to return a list of available images (or // blueprints). // + // Use active blueprints when creating new instances. Inactive blueprints are + // listed to support customers with existing instances and are not necessarily + // available to create new instances. Blueprints are marked inactive when they + // become outdated due to operating system updates or new application releases. + // // BlueprintId is a required field BlueprintId *string `locationName:"blueprintId" type:"string" required:"true"` @@ -12749,6 +13649,16 @@ func (s *CreateInstancesInput) Validate() error { if s.InstanceNames == nil { invalidParams.Add(request.NewErrParamRequired("InstanceNames")) } + if s.AddOns != nil { + for i, v := range s.AddOns { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddOns", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -12756,6 +13666,12 @@ func (s *CreateInstancesInput) Validate() error { return nil } +// SetAddOns sets the AddOns field's value. +func (s *CreateInstancesInput) SetAddOns(v []*AddOnRequest) *CreateInstancesInput { + s.AddOns = v + return s +} + // SetAvailabilityZone sets the AvailabilityZone field's value. func (s *CreateInstancesInput) SetAvailabilityZone(v string) *CreateInstancesInput { s.AvailabilityZone = &v @@ -13230,7 +14146,7 @@ type CreateRelationalDatabaseFromSnapshotInput struct { // // * Cannot be specified if the use latest restorable time parameter is true. // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Specified in the Unix time format. For example, if you wish to use a // restore time of October 1, 2018, at 8 PM UTC, then you input 1538424000 @@ -13414,7 +14330,7 @@ type CreateRelationalDatabaseInput struct { // // * Must be in the hh24:mi-hh24:mi format. Example: 16:00-16:30 // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Must not conflict with the preferred maintenance window. // @@ -13435,7 +14351,7 @@ type CreateRelationalDatabaseInput struct { // // * Must be at least 30 minutes. // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Example: Tue:17:00-Tue:17:30 PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` @@ -13624,30 +14540,115 @@ type CreateRelationalDatabaseSnapshotInput struct { // RelationalDatabaseSnapshotName is a required field RelationalDatabaseSnapshotName *string `locationName:"relationalDatabaseSnapshotName" type:"string" required:"true"` - // The tag keys and optional values to add to the resource during create. + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateRelationalDatabaseSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRelationalDatabaseSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRelationalDatabaseSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRelationalDatabaseSnapshotInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + if s.RelationalDatabaseSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *CreateRelationalDatabaseSnapshotInput) SetRelationalDatabaseName(v string) *CreateRelationalDatabaseSnapshotInput { + s.RelationalDatabaseName = &v + return s +} + +// SetRelationalDatabaseSnapshotName sets the RelationalDatabaseSnapshotName field's value. +func (s *CreateRelationalDatabaseSnapshotInput) SetRelationalDatabaseSnapshotName(v string) *CreateRelationalDatabaseSnapshotInput { + s.RelationalDatabaseSnapshotName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateRelationalDatabaseSnapshotInput) SetTags(v []*Tag) *CreateRelationalDatabaseSnapshotInput { + s.Tags = v + return s +} + +type CreateRelationalDatabaseSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your create relational database snapshot + // request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateRelationalDatabaseSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRelationalDatabaseSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateRelationalDatabaseSnapshotOutput) SetOperations(v []*Operation) *CreateRelationalDatabaseSnapshotOutput { + s.Operations = v + return s +} + +type DeleteAutoSnapshotInput struct { + _ struct{} `type:"structure"` + + // The date of the automatic snapshot to delete in YYYY-MM-DD format. + // + // Use the get auto snapshots operation to get the available automatic snapshots + // for a resource. + // + // Date is a required field + Date *string `locationName:"date" type:"string" required:"true"` + + // The name of the source resource from which to delete the automatic snapshot. // - // To tag a resource after it has been created, see the tag resource operation. - Tags []*Tag `locationName:"tags" type:"list"` + // ResourceName is a required field + ResourceName *string `locationName:"resourceName" type:"string" required:"true"` } // String returns the string representation -func (s CreateRelationalDatabaseSnapshotInput) String() string { +func (s DeleteAutoSnapshotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRelationalDatabaseSnapshotInput) GoString() string { +func (s DeleteAutoSnapshotInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRelationalDatabaseSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRelationalDatabaseSnapshotInput"} - if s.RelationalDatabaseName == nil { - invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) +func (s *DeleteAutoSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAutoSnapshotInput"} + if s.Date == nil { + invalidParams.Add(request.NewErrParamRequired("Date")) } - if s.RelationalDatabaseSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseSnapshotName")) + if s.ResourceName == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceName")) } if invalidParams.Len() > 0 { @@ -13656,44 +14657,37 @@ func (s *CreateRelationalDatabaseSnapshotInput) Validate() error { return nil } -// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. -func (s *CreateRelationalDatabaseSnapshotInput) SetRelationalDatabaseName(v string) *CreateRelationalDatabaseSnapshotInput { - s.RelationalDatabaseName = &v - return s -} - -// SetRelationalDatabaseSnapshotName sets the RelationalDatabaseSnapshotName field's value. -func (s *CreateRelationalDatabaseSnapshotInput) SetRelationalDatabaseSnapshotName(v string) *CreateRelationalDatabaseSnapshotInput { - s.RelationalDatabaseSnapshotName = &v +// SetDate sets the Date field's value. +func (s *DeleteAutoSnapshotInput) SetDate(v string) *DeleteAutoSnapshotInput { + s.Date = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateRelationalDatabaseSnapshotInput) SetTags(v []*Tag) *CreateRelationalDatabaseSnapshotInput { - s.Tags = v +// SetResourceName sets the ResourceName field's value. +func (s *DeleteAutoSnapshotInput) SetResourceName(v string) *DeleteAutoSnapshotInput { + s.ResourceName = &v return s } -type CreateRelationalDatabaseSnapshotOutput struct { +type DeleteAutoSnapshotOutput struct { _ struct{} `type:"structure"` - // An object describing the result of your create relational database snapshot - // request. + // An array of objects that describe the result of your request. Operations []*Operation `locationName:"operations" type:"list"` } // String returns the string representation -func (s CreateRelationalDatabaseSnapshotOutput) String() string { +func (s DeleteAutoSnapshotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRelationalDatabaseSnapshotOutput) GoString() string { +func (s DeleteAutoSnapshotOutput) GoString() string { return s.String() } // SetOperations sets the Operations field's value. -func (s *CreateRelationalDatabaseSnapshotOutput) SetOperations(v []*Operation) *CreateRelationalDatabaseSnapshotOutput { +func (s *DeleteAutoSnapshotOutput) SetOperations(v []*Operation) *DeleteAutoSnapshotOutput { s.Operations = v return s } @@ -13705,6 +14699,10 @@ type DeleteDiskInput struct { // // DiskName is a required field DiskName *string `locationName:"diskName" type:"string" required:"true"` + + // A Boolean value to indicate whether to delete the enabled add-ons for the + // disk. + ForceDeleteAddOns *bool `locationName:"forceDeleteAddOns" type:"boolean"` } // String returns the string representation @@ -13736,10 +14734,16 @@ func (s *DeleteDiskInput) SetDiskName(v string) *DeleteDiskInput { return s } +// SetForceDeleteAddOns sets the ForceDeleteAddOns field's value. +func (s *DeleteDiskInput) SetForceDeleteAddOns(v bool) *DeleteDiskInput { + s.ForceDeleteAddOns = &v + return s +} + type DeleteDiskOutput struct { _ struct{} `type:"structure"` - // An object describing the API operations. + // An array of objects that describe the result of your request. Operations []*Operation `locationName:"operations" type:"list"` } @@ -13961,6 +14965,10 @@ func (s *DeleteDomainOutput) SetOperation(v *Operation) *DeleteDomainOutput { type DeleteInstanceInput struct { _ struct{} `type:"structure"` + // A Boolean value to indicate whether to delete the enabled add-ons for the + // disk. + ForceDeleteAddOns *bool `locationName:"forceDeleteAddOns" type:"boolean"` + // The name of the instance to delete. // // InstanceName is a required field @@ -13990,6 +14998,12 @@ func (s *DeleteInstanceInput) Validate() error { return nil } +// SetForceDeleteAddOns sets the ForceDeleteAddOns field's value. +func (s *DeleteInstanceInput) SetForceDeleteAddOns(v bool) *DeleteInstanceInput { + s.ForceDeleteAddOns = &v + return s +} + // SetInstanceName sets the InstanceName field's value. func (s *DeleteInstanceInput) SetInstanceName(v string) *DeleteInstanceInput { s.InstanceName = &v @@ -14745,10 +15759,88 @@ func (s *DetachStaticIpOutput) SetOperations(v []*Operation) *DetachStaticIpOutp return s } -// Describes a system disk or an block storage disk. +type DisableAddOnInput struct { + _ struct{} `type:"structure"` + + // The add-on type to disable. + // + // AddOnType is a required field + AddOnType *string `locationName:"addOnType" type:"string" required:"true" enum:"AddOnType"` + + // The name of the source resource from which to disable the add-on. + // + // ResourceName is a required field + ResourceName *string `locationName:"resourceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisableAddOnInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableAddOnInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisableAddOnInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisableAddOnInput"} + if s.AddOnType == nil { + invalidParams.Add(request.NewErrParamRequired("AddOnType")) + } + if s.ResourceName == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddOnType sets the AddOnType field's value. +func (s *DisableAddOnInput) SetAddOnType(v string) *DisableAddOnInput { + s.AddOnType = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *DisableAddOnInput) SetResourceName(v string) *DisableAddOnInput { + s.ResourceName = &v + return s +} + +type DisableAddOnOutput struct { + _ struct{} `type:"structure"` + + // An array of objects that describe the result of your request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s DisableAddOnOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableAddOnOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *DisableAddOnOutput) SetOperations(v []*Operation) *DisableAddOnOutput { + s.Operations = v + return s +} + +// Describes a system disk or a block storage disk. type Disk struct { _ struct{} `type:"structure"` + // An array of objects representing the add-ons enabled on the disk. + AddOns []*AddOn `locationName:"addOns" type:"list"` + // The Amazon Resource Name (ARN) of the disk. Arn *string `locationName:"arn" type:"string"` @@ -14823,6 +15915,12 @@ func (s Disk) GoString() string { return s.String() } +// SetAddOns sets the AddOns field's value. +func (s *Disk) SetAddOns(v []*AddOn) *Disk { + s.AddOns = v + return s +} + // SetArn sets the Arn field's value. func (s *Disk) SetArn(v string) *Disk { s.Arn = &v @@ -15029,6 +16127,10 @@ type DiskSnapshot struct { // snapshot was created. FromInstanceName *string `locationName:"fromInstanceName" type:"string"` + // A Boolean value indicating whether the snapshot was created from an automatic + // snapshot. + IsFromAutoSnapshot *bool `locationName:"isFromAutoSnapshot" type:"boolean"` + // The AWS Region and Availability Zone where the disk snapshot was created. Location *ResourceLocation `locationName:"location" type:"structure"` @@ -15103,6 +16205,12 @@ func (s *DiskSnapshot) SetFromInstanceName(v string) *DiskSnapshot { return s } +// SetIsFromAutoSnapshot sets the IsFromAutoSnapshot field's value. +func (s *DiskSnapshot) SetIsFromAutoSnapshot(v bool) *DiskSnapshot { + s.IsFromAutoSnapshot = &v + return s +} + // SetLocation sets the Location field's value. func (s *DiskSnapshot) SetLocation(v *ResourceLocation) *DiskSnapshot { s.Location = v @@ -15410,6 +16518,86 @@ func (s *DownloadDefaultKeyPairOutput) SetPublicKeyBase64(v string) *DownloadDef return s } +type EnableAddOnInput struct { + _ struct{} `type:"structure"` + + // An array of strings representing the add-on to enable or modify. + // + // AddOnRequest is a required field + AddOnRequest *AddOnRequest `locationName:"addOnRequest" type:"structure" required:"true"` + + // The name of the source resource for which to enable or modify the add-on. + // + // ResourceName is a required field + ResourceName *string `locationName:"resourceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s EnableAddOnInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableAddOnInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnableAddOnInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnableAddOnInput"} + if s.AddOnRequest == nil { + invalidParams.Add(request.NewErrParamRequired("AddOnRequest")) + } + if s.ResourceName == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceName")) + } + if s.AddOnRequest != nil { + if err := s.AddOnRequest.Validate(); err != nil { + invalidParams.AddNested("AddOnRequest", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddOnRequest sets the AddOnRequest field's value. +func (s *EnableAddOnInput) SetAddOnRequest(v *AddOnRequest) *EnableAddOnInput { + s.AddOnRequest = v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *EnableAddOnInput) SetResourceName(v string) *EnableAddOnInput { + s.ResourceName = &v + return s +} + +type EnableAddOnOutput struct { + _ struct{} `type:"structure"` + + // An array of objects that describe the result of your request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s EnableAddOnOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableAddOnOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *EnableAddOnOutput) SetOperations(v []*Operation) *EnableAddOnOutput { + s.Operations = v + return s +} + type ExportSnapshotInput struct { _ struct{} `type:"structure"` @@ -15702,6 +16890,86 @@ func (s *GetActiveNamesOutput) SetNextPageToken(v string) *GetActiveNamesOutput return s } +type GetAutoSnapshotsInput struct { + _ struct{} `type:"structure"` + + // The name of the source resource from which to get automatic snapshot information. + // + // ResourceName is a required field + ResourceName *string `locationName:"resourceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetAutoSnapshotsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAutoSnapshotsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAutoSnapshotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAutoSnapshotsInput"} + if s.ResourceName == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceName sets the ResourceName field's value. +func (s *GetAutoSnapshotsInput) SetResourceName(v string) *GetAutoSnapshotsInput { + s.ResourceName = &v + return s +} + +type GetAutoSnapshotsOutput struct { + _ struct{} `type:"structure"` + + // An array of objects that describe the automatic snapshots that are available + // for the specified source resource.asdf + AutoSnapshots []*AutoSnapshotDetails `locationName:"autoSnapshots" type:"list"` + + // The name of the source resource for the automatic snapshots. + ResourceName *string `locationName:"resourceName" type:"string"` + + // The resource type (e.g., Instance or Disk). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s GetAutoSnapshotsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAutoSnapshotsOutput) GoString() string { + return s.String() +} + +// SetAutoSnapshots sets the AutoSnapshots field's value. +func (s *GetAutoSnapshotsOutput) SetAutoSnapshots(v []*AutoSnapshotDetails) *GetAutoSnapshotsOutput { + s.AutoSnapshots = v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *GetAutoSnapshotsOutput) SetResourceName(v string) *GetAutoSnapshotsOutput { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *GetAutoSnapshotsOutput) SetResourceType(v string) *GetAutoSnapshotsOutput { + s.ResourceType = &v + return s +} + type GetBlueprintsInput struct { _ struct{} `type:"structure"` @@ -18019,7 +19287,7 @@ type GetRelationalDatabaseLogEventsInput struct { // // Constraints: // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Specified in the Unix time format. For example, if you wish to use an // end time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as @@ -18047,14 +19315,14 @@ type GetRelationalDatabaseLogEventsInput struct { // specified, the log event starts from the head of the log. If false is specified, // the log event starts from the tail of the log. // - // Default: false + // For PostgreSQL, the default value of false is the only option available. StartFromHead *bool `locationName:"startFromHead" type:"boolean"` // The start of the time interval from which to get log events. // // Constraints: // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Specified in the Unix time format. For example, if you wish to use a // start time of October 1, 2018, at 8 PM UTC, then you input 1538424000 @@ -18324,7 +19592,7 @@ type GetRelationalDatabaseMetricDataInput struct { // // Constraints: // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Specified in the Unix time format. For example, if you wish to use an // end time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as @@ -18352,7 +19620,7 @@ type GetRelationalDatabaseMetricDataInput struct { // // Constraints: // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Specified in the Unix time format. For example, if you wish to use a // start time of October 1, 2018, at 8 PM UTC, then you input 1538424000 @@ -19064,6 +20332,9 @@ func (s *ImportKeyPairOutput) SetOperation(v *Operation) *ImportKeyPairOutput { type Instance struct { _ struct{} `type:"structure"` + // An array of objects representing the add-ons enabled on the instance. + AddOns []*AddOn `locationName:"addOns" type:"list"` + // The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE). Arn *string `locationName:"arn" type:"string"` @@ -19137,6 +20408,12 @@ func (s Instance) GoString() string { return s.String() } +// SetAddOns sets the AddOns field's value. +func (s *Instance) SetAddOns(v []*AddOn) *Instance { + s.AddOns = v + return s +} + // SetArn sets the Arn field's value. func (s *Instance) SetArn(v string) *Instance { s.Arn = &v @@ -19811,7 +21088,7 @@ func (s *InstancePortState) SetToPort(v int64) *InstancePortState { return s } -// Describes the snapshot of the virtual private server, or instance. +// Describes an instance snapshot. type InstanceSnapshot struct { _ struct{} `type:"structure"` @@ -19839,6 +21116,10 @@ type InstanceSnapshot struct { // The instance from which the snapshot was created. FromInstanceName *string `locationName:"fromInstanceName" type:"string"` + // A Boolean value indicating whether the snapshot was created from an automatic + // snapshot. + IsFromAutoSnapshot *bool `locationName:"isFromAutoSnapshot" type:"boolean"` + // The region name and Availability Zone where you created the snapshot. Location *ResourceLocation `locationName:"location" type:"structure"` @@ -19919,6 +21200,12 @@ func (s *InstanceSnapshot) SetFromInstanceName(v string) *InstanceSnapshot { return s } +// SetIsFromAutoSnapshot sets the IsFromAutoSnapshot field's value. +func (s *InstanceSnapshot) SetIsFromAutoSnapshot(v bool) *InstanceSnapshot { + s.IsFromAutoSnapshot = &v + return s +} + // SetLocation sets the Location field's value. func (s *InstanceSnapshot) SetLocation(v *ResourceLocation) *InstanceSnapshot { s.Location = v @@ -21010,7 +22297,7 @@ type Operation struct { // A Boolean value indicating whether the operation is terminal. IsTerminal *bool `locationName:"isTerminal" type:"boolean"` - // The region and Availability Zone. + // The AWS Region and Availability Zone. Location *ResourceLocation `locationName:"location" type:"structure"` // Details about the operation (e.g., Debian-1GB-Ohio-1). @@ -22895,6 +24182,10 @@ func (s *Tag) SetValue(v string) *Tag { type TagResourceInput struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the resource to which you want to add a + // tag. + ResourceArn *string `locationName:"resourceArn" type:"string"` + // The name of the resource to which you are adding tags. // // ResourceName is a required field @@ -22932,6 +24223,12 @@ func (s *TagResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + // SetResourceName sets the ResourceName field's value. func (s *TagResourceInput) SetResourceName(v string) *TagResourceInput { s.ResourceName = &v @@ -23007,6 +24304,10 @@ func (s *UnpeerVpcOutput) SetOperation(v *Operation) *UnpeerVpcOutput { type UntagResourceInput struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the resource from which you want to remove + // a tag. + ResourceArn *string `locationName:"resourceArn" type:"string"` + // The name of the resource from which you are removing a tag. // // ResourceName is a required field @@ -23044,6 +24345,12 @@ func (s *UntagResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + // SetResourceName sets the ResourceName field's value. func (s *UntagResourceInput) SetResourceName(v string) *UntagResourceInput { s.ResourceName = &v @@ -23284,7 +24591,7 @@ type UpdateRelationalDatabaseInput struct { // // * Must be in the hh24:mi-hh24:mi format. Example: 16:00-16:30 // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Must not conflict with the preferred maintenance window. // @@ -23304,7 +24611,7 @@ type UpdateRelationalDatabaseInput struct { // // * Must be at least 30 minutes. // - // * Specified in Universal Coordinated Time (UTC). + // * Specified in Coordinated Universal Time (UTC). // // * Example: Tue:17:00-Tue:17:30 PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` @@ -23512,6 +24819,25 @@ const ( AccessDirectionOutbound = "outbound" ) +const ( + // AddOnTypeAutoSnapshot is a AddOnType enum value + AddOnTypeAutoSnapshot = "AutoSnapshot" +) + +const ( + // AutoSnapshotStatusSuccess is a AutoSnapshotStatus enum value + AutoSnapshotStatusSuccess = "Success" + + // AutoSnapshotStatusFailed is a AutoSnapshotStatus enum value + AutoSnapshotStatusFailed = "Failed" + + // AutoSnapshotStatusInProgress is a AutoSnapshotStatus enum value + AutoSnapshotStatusInProgress = "InProgress" + + // AutoSnapshotStatusNotFound is a AutoSnapshotStatus enum value + AutoSnapshotStatusNotFound = "NotFound" +) + const ( // BlueprintTypeOs is a BlueprintType enum value BlueprintTypeOs = "os" @@ -24103,6 +25429,12 @@ const ( // OperationTypeStopRelationalDatabase is a OperationType enum value OperationTypeStopRelationalDatabase = "StopRelationalDatabase" + + // OperationTypeEnableAddOn is a OperationType enum value + OperationTypeEnableAddOn = "EnableAddOn" + + // OperationTypeDisableAddOn is a OperationType enum value + OperationTypeDisableAddOn = "DisableAddOn" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/mq/api.go b/vendor/github.com/aws/aws-sdk-go/service/mq/api.go index 230dfada882..0b3086c2acb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mq/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mq/api.go @@ -3318,6 +3318,8 @@ type DescribeBrokerResponse struct { PendingEngineVersion *string `locationName:"pendingEngineVersion" type:"string"` + PendingHostInstanceType *string `locationName:"pendingHostInstanceType" type:"string"` + PendingSecurityGroups []*string `locationName:"pendingSecurityGroups" type:"list"` PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` @@ -3437,6 +3439,12 @@ func (s *DescribeBrokerResponse) SetPendingEngineVersion(v string) *DescribeBrok return s } +// SetPendingHostInstanceType sets the PendingHostInstanceType field's value. +func (s *DescribeBrokerResponse) SetPendingHostInstanceType(v string) *DescribeBrokerResponse { + s.PendingHostInstanceType = &v + return s +} + // SetPendingSecurityGroups sets the PendingSecurityGroups field's value. func (s *DescribeBrokerResponse) SetPendingSecurityGroups(v []*string) *DescribeBrokerResponse { s.PendingSecurityGroups = v @@ -4547,6 +4555,8 @@ type UpdateBrokerRequest struct { EngineVersion *string `locationName:"engineVersion" type:"string"` + HostInstanceType *string `locationName:"hostInstanceType" type:"string"` + // The list of information about logs to be enabled for the specified broker. Logs *Logs `locationName:"logs" type:"structure"` @@ -4603,6 +4613,12 @@ func (s *UpdateBrokerRequest) SetEngineVersion(v string) *UpdateBrokerRequest { return s } +// SetHostInstanceType sets the HostInstanceType field's value. +func (s *UpdateBrokerRequest) SetHostInstanceType(v string) *UpdateBrokerRequest { + s.HostInstanceType = &v + return s +} + // SetLogs sets the Logs field's value. func (s *UpdateBrokerRequest) SetLogs(v *Logs) *UpdateBrokerRequest { s.Logs = v @@ -4627,6 +4643,8 @@ type UpdateBrokerResponse struct { EngineVersion *string `locationName:"engineVersion" type:"string"` + HostInstanceType *string `locationName:"hostInstanceType" type:"string"` + // The list of information about logs to be enabled for the specified broker. Logs *Logs `locationName:"logs" type:"structure"` @@ -4667,6 +4685,12 @@ func (s *UpdateBrokerResponse) SetEngineVersion(v string) *UpdateBrokerResponse return s } +// SetHostInstanceType sets the HostInstanceType field's value. +func (s *UpdateBrokerResponse) SetHostInstanceType(v string) *UpdateBrokerResponse { + s.HostInstanceType = &v + return s +} + // SetLogs sets the Logs field's value. func (s *UpdateBrokerResponse) SetLogs(v *Logs) *UpdateBrokerResponse { s.Logs = v 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 1c04e95138a..bbba1da65fa 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 @@ -1278,6 +1278,9 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // // * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" // +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" +// Domain doesn't refer to an existing Active Directory domain. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBCluster func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) { req, out := c.CreateDBClusterRequest(input) @@ -1873,6 +1876,9 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // An error occurred accessing an AWS KMS key. // +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" +// Domain doesn't refer to an existing Active Directory domain. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceReadReplica func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) { req, out := c.CreateDBInstanceReadReplicaRequest(input) @@ -7995,6 +8001,9 @@ func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // The user already has a DB cluster with the given identifier. // +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" +// Domain doesn't refer to an existing Active Directory domain. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBCluster func (c *RDS) ModifyDBCluster(input *ModifyDBClusterInput) (*ModifyDBClusterOutput, error) { req, out := c.ModifyDBClusterRequest(input) @@ -10192,6 +10201,9 @@ func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier doesn't refer to an existing DB cluster. // +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" +// Domain doesn't refer to an existing Active Directory domain. +// // * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You might // be able to resolve this error by updating your subnet group to use different @@ -10344,6 +10356,9 @@ func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSna // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // An error occurred accessing an AWS KMS key. // +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" +// Domain doesn't refer to an existing Active Directory domain. +// // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter // group. @@ -10494,6 +10509,9 @@ func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPoin // The request would result in the user exceeding the allowed amount of storage // available across all DB instances. // +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" +// Domain doesn't refer to an existing Active Directory domain. +// // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter // group. @@ -14773,11 +14791,19 @@ type CreateDBInstanceInput struct { // Instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). DeletionProtection *bool `type:"boolean"` - // For an Amazon RDS DB instance that's running Microsoft SQL Server, this parameter - // specifies the Active Directory directory ID to create the instance in. Amazon - // RDS uses Windows Authentication to authenticate users that connect to the - // DB instance. For more information, see Using Windows Authentication with - // an Amazon RDS DB Instance Running Microsoft SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/USER_SQLServerWinAuth.html) + // The Active Directory directory ID to create the DB instance in. Currently, + // only Microsoft SQL Server and Oracle DB instances can be created in an Active + // Directory Domain. + // + // For Microsoft SQL Server DB instances, Amazon RDS can use Windows Authentication + // to authenticate users that connect to the DB instance. For more information, + // see Using Windows Authentication with an Amazon RDS DB Instance Running Microsoft + // SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_SQLServerWinAuth.html) + // in the Amazon RDS User Guide. + // + // For Oracle DB instance, Amazon RDS can use Kerberos Authentication to authenticate + // users that connect to the DB instance. For more information, see Using Kerberos + // Authentication with Amazon RDS for Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-kerberos.html) // in the Amazon RDS User Guide. Domain *string `type:"string"` @@ -15667,6 +15693,18 @@ type CreateDBInstanceReadReplicaInput struct { // DestinationRegion is used for presigning the request to a given region. DestinationRegion *string `type:"string"` + // The Active Directory directory ID to create the DB instance in. + // + // For Oracle DB instances, Amazon RDS can use Kerberos Authentication to authenticate + // users that connect to the DB instance. For more information, see Using Kerberos + // Authentication with Amazon RDS for Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-kerberos.html) + // in the Amazon RDS User Guide. + Domain *string `type:"string"` + + // Specify the name of the IAM role to be used when making API calls to the + // Directory Service. + DomainIAMRoleName *string `type:"string"` + // The list of logs that the new DB instance is to export to CloudWatch Logs. // The values in the list depend on the DB engine being used. For more information, // see Publishing Database Logs to Amazon CloudWatch Logs (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) @@ -15955,6 +15993,18 @@ func (s *CreateDBInstanceReadReplicaInput) SetDestinationRegion(v string) *Creat return s } +// SetDomain sets the Domain field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDomain(v string) *CreateDBInstanceReadReplicaInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDomainIAMRoleName(v string) *CreateDBInstanceReadReplicaInput { + s.DomainIAMRoleName = &v + return s +} + // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value. func (s *CreateDBInstanceReadReplicaInput) SetEnableCloudwatchLogsExports(v []*string) *CreateDBInstanceReadReplicaInput { s.EnableCloudwatchLogsExports = v @@ -22398,7 +22448,14 @@ type DescribeDBInstancesInput struct { // // * dbi-resource-id - Accepts DB instance resource identifiers. The results // list will only include information about the DB instances identified by - // these resource identifiers. + // these DB instance resource identifiers. + // + // * domain - Accepts Active Directory directory IDs. The results list will + // only include information about the DB instances associated with these + // domains. + // + // * engine - Accepts engine names. The results list will only include information + // about the DB instances for these engines. Filters []*Filter `locationNameList:"Filter" type:"list"` // An optional pagination token provided by a previous DescribeDBInstances request. @@ -27437,10 +27494,21 @@ type ModifyDBInstanceInput struct { // Instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). DeletionProtection *bool `type:"boolean"` - // The Active Directory Domain to move the instance to. Specify none to remove - // the instance from its current domain. The domain must be created prior to - // this operation. Currently only a Microsoft SQL Server instance can be created - // in a Active Directory Domain. + // The Active Directory directory ID to move the DB instance to. Specify none + // to remove the instance from its current domain. The domain must be created + // prior to this operation. Currently, only Microsoft SQL Server and Oracle + // DB instances can be created in an Active Directory Domain. + // + // For Microsoft SQL Server DB instances, Amazon RDS can use Windows Authentication + // to authenticate users that connect to the DB instance. For more information, + // see Using Windows Authentication with an Amazon RDS DB Instance Running Microsoft + // SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_SQLServerWinAuth.html) + // in the Amazon RDS User Guide. + // + // For Oracle DB instances, Amazon RDS can use Kerberos Authentication to authenticate + // users that connect to the DB instance. For more information, see Using Kerberos + // Authentication with Amazon RDS for Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-kerberos.html) + // in the Amazon RDS User Guide. Domain *string `type:"string"` // The name of the IAM role to use when making API calls to the Directory Service. @@ -29469,6 +29537,9 @@ type OrderableDBInstanceOption struct { // Indicates whether a DB instance supports provisioned IOPS. SupportsIops *bool `type:"boolean"` + // Whether a DB instance supports Kerberos Authentication. + SupportsKerberosAuthentication *bool `type:"boolean"` + // True if a DB instance supports Performance Insights, otherwise false. SupportsPerformanceInsights *bool `type:"boolean"` @@ -29607,6 +29678,12 @@ func (s *OrderableDBInstanceOption) SetSupportsIops(v bool) *OrderableDBInstance return s } +// SetSupportsKerberosAuthentication sets the SupportsKerberosAuthentication field's value. +func (s *OrderableDBInstanceOption) SetSupportsKerberosAuthentication(v bool) *OrderableDBInstanceOption { + s.SupportsKerberosAuthentication = &v + return s +} + // SetSupportsPerformanceInsights sets the SupportsPerformanceInsights field's value. func (s *OrderableDBInstanceOption) SetSupportsPerformanceInsights(v bool) *OrderableDBInstanceOption { s.SupportsPerformanceInsights = &v @@ -32594,7 +32671,21 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // Instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). DeletionProtection *bool `type:"boolean"` - // Specify the Active Directory Domain to restore the instance in. + // Specify the Active Directory directory ID to restore the DB instance in. + // The domain must be created prior to this operation. Currently, only Microsoft + // SQL Server and Oracle DB instances can be created in an Active Directory + // Domain. + // + // For Microsoft SQL Server DB instances, Amazon RDS can use Windows Authentication + // to authenticate users that connect to the DB instance. For more information, + // see Using Windows Authentication with an Amazon RDS DB Instance Running Microsoft + // SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_SQLServerWinAuth.html) + // in the Amazon RDS User Guide. + // + // For Oracle DB instances, Amazon RDS can use Kerberos Authentication to authenticate + // users that connect to the DB instance. For more information, see Using Kerberos + // Authentication with Amazon RDS for Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-kerberos.html) + // in the Amazon RDS User Guide. Domain *string `type:"string"` // Specify the name of the IAM role to be used when making API calls to the @@ -33656,7 +33747,21 @@ type RestoreDBInstanceToPointInTimeInput struct { // Instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). DeletionProtection *bool `type:"boolean"` - // Specify the Active Directory Domain to restore the instance in. + // Specify the Active Directory directory ID to restore the DB instance in. + // The domain must be created prior to this operation. Currently, only Microsoft + // SQL Server and Oracle DB instances can be created in an Active Directory + // Domain. + // + // For Microsoft SQL Server DB instances, Amazon RDS can use Windows Authentication + // to authenticate users that connect to the DB instance. For more information, + // see Using Windows Authentication with an Amazon RDS DB Instance Running Microsoft + // SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_SQLServerWinAuth.html) + // in the Amazon RDS User Guide. + // + // For Oracle DB instances, Amazon RDS can use Kerberos Authentication to authenticate + // users that connect to the DB instance. For more information, see Using Kerberos + // Authentication with Amazon RDS for Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-kerberos.html) + // in the Amazon RDS User Guide. Domain *string `type:"string"` // Specify the name of the IAM role to be used when making API calls to the diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/rds/waiters.go index 0c21e88bbae..c5e905cec45 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/waiters.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/waiters.go @@ -9,6 +9,148 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) +// WaitUntilDBClusterSnapshotAvailable uses the Amazon RDS API operation +// DescribeDBClusterSnapshots to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *RDS) WaitUntilDBClusterSnapshotAvailable(input *DescribeDBClusterSnapshotsInput) error { + return c.WaitUntilDBClusterSnapshotAvailableWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilDBClusterSnapshotAvailableWithContext is an extended version of WaitUntilDBClusterSnapshotAvailable. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) WaitUntilDBClusterSnapshotAvailableWithContext(ctx aws.Context, input *DescribeDBClusterSnapshotsInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilDBClusterSnapshotAvailable", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(30 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.PathAllWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "available", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "deleted", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "deleting", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "failed", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "incompatible-restore", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "incompatible-parameters", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeDBClusterSnapshotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeDBClusterSnapshotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilDBClusterSnapshotDeleted uses the Amazon RDS API operation +// DescribeDBClusterSnapshots to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *RDS) WaitUntilDBClusterSnapshotDeleted(input *DescribeDBClusterSnapshotsInput) error { + return c.WaitUntilDBClusterSnapshotDeletedWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilDBClusterSnapshotDeletedWithContext is an extended version of WaitUntilDBClusterSnapshotDeleted. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) WaitUntilDBClusterSnapshotDeletedWithContext(ctx aws.Context, input *DescribeDBClusterSnapshotsInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilDBClusterSnapshotDeleted", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(30 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.PathWaiterMatch, Argument: "length(DBClusterSnapshots) == `0`", + Expected: true, + }, + { + State: request.SuccessWaiterState, + Matcher: request.ErrorWaiterMatch, + Expected: "DBClusterSnapshotNotFoundFault", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "creating", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "modifying", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "rebooting", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "DBClusterSnapshots[].Status", + Expected: "resetting-master-credentials", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeDBClusterSnapshotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeDBClusterSnapshotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + // WaitUntilDBInstanceAvailable uses the Amazon RDS API operation // DescribeDBInstances to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will @@ -104,8 +246,8 @@ func (c *RDS) WaitUntilDBInstanceDeletedWithContext(ctx aws.Context, input *Desc Acceptors: []request.WaiterAcceptor{ { State: request.SuccessWaiterState, - Matcher: request.PathAllWaiterMatch, Argument: "DBInstances[].DBInstanceStatus", - Expected: "deleted", + Matcher: request.PathWaiterMatch, Argument: "length(DBInstances) == `0`", + Expected: true, }, { State: request.SuccessWaiterState, @@ -246,8 +388,8 @@ func (c *RDS) WaitUntilDBSnapshotDeletedWithContext(ctx aws.Context, input *Desc Acceptors: []request.WaiterAcceptor{ { State: request.SuccessWaiterState, - Matcher: request.PathAllWaiterMatch, Argument: "DBSnapshots[].Status", - Expected: "deleted", + Matcher: request.PathWaiterMatch, Argument: "length(DBSnapshots) == `0`", + Expected: true, }, { State: request.SuccessWaiterState, 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 88f755a9e9c..7dc45ecc8fc 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 @@ -6540,7 +6540,7 @@ func (c *WAF) PutLoggingConfigurationRequest(input *PutLoggingConfigurationInput // You can access information about all traffic that AWS WAF inspects using // the following steps: // -// Create an Amazon Kinesis Data Firehose . +// Create an Amazon Kinesis Data Firehose. // // Create the data firehose with a PUT source and in the region that you are // operating. However, if you are capturing logs for Amazon CloudFront, always @@ -10261,7 +10261,7 @@ type CreateRateBasedRuleInput struct { // rule. // // RateLimit is a required field - RateLimit *int64 `min:"2000" type:"long" required:"true"` + RateLimit *int64 `min:"100" type:"long" required:"true"` Tags []*Tag `min:"1" type:"list"` } @@ -10300,8 +10300,8 @@ func (s *CreateRateBasedRuleInput) Validate() error { if s.RateLimit == nil { invalidParams.Add(request.NewErrParamRequired("RateLimit")) } - if s.RateLimit != nil && *s.RateLimit < 2000 { - invalidParams.Add(request.NewErrParamMinValue("RateLimit", 2000)) + if s.RateLimit != nil && *s.RateLimit < 100 { + invalidParams.Add(request.NewErrParamMinValue("RateLimit", 100)) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) @@ -14189,7 +14189,7 @@ func (s *HTTPRequest) SetURI(v string) *HTTPRequest { // ranges: /24, /32, /48, /56, /64, and /128. // // 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, +// followed by a /32, for example, 192.0.2.0/32. To block a range of IP addresses, // you can specify /8 or any range between /16 through /32 (for IPv4) or /24, // /32, /48, /56, /64, or /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). @@ -14703,11 +14703,10 @@ type ListIPSetsInput struct { // another batch of IPSet objects. Limit *int64 `type:"integer"` - // If you specify a value for Limit and you have more IPSets than the value - // of Limit, AWS WAF returns a NextMarker value in the response that allows - // you to list another group of IPSets. For the second and subsequent ListIPSets - // requests, specify the value of NextMarker from the previous response to get - // information about another batch of IPSets. + // AWS WAF returns a NextMarker value in the response that allows you to list + // another group of IPSets. For the second and subsequent ListIPSets requests, + // specify the value of NextMarker from the previous response to get information + // about another batch of IPSets. NextMarker *string `min:"1" type:"string"` } @@ -14752,10 +14751,8 @@ type ListIPSetsOutput struct { // An array of IPSetSummary objects. IPSets []*IPSetSummary `type:"list"` - // If you have more IPSet objects than the number that you specified for Limit - // in the request, the response includes a NextMarker value. To list more IPSet - // objects, submit another ListIPSets request, and specify the NextMarker value - // from the response in the NextMarker value in the next request. + // To list more IPSet objects, submit another ListIPSets request, and in the + // next request use the NextMarker response value as the NextMarker value. NextMarker *string `min:"1" type:"string"` } @@ -16012,6 +16009,9 @@ type PutLoggingConfigurationInput struct { // the redacted fields details, and the Amazon Resource Name (ARN) of the web // ACL to monitor. // + // When specifying Type in RedactedFields, you must use one of the following + // values: URI, QUERY_STRING, HEADER, or METHOD. + // // LoggingConfiguration is a required field LoggingConfiguration *LoggingConfiguration `type:"structure" required:"true"` } @@ -16196,7 +16196,7 @@ type RateBasedRule struct { // rule. // // RateLimit is a required field - RateLimit *int64 `min:"2000" type:"long" required:"true"` + RateLimit *int64 `min:"100" type:"long" required:"true"` // A unique identifier for a RateBasedRule. You use RuleId to get more information // about a RateBasedRule (see GetRateBasedRule), update a RateBasedRule (see @@ -18524,7 +18524,7 @@ type UpdateRateBasedRuleInput struct { // rule. // // RateLimit is a required field - RateLimit *int64 `min:"2000" type:"long" required:"true"` + RateLimit *int64 `min:"100" type:"long" required:"true"` // The RuleId of the RateBasedRule that you want to update. RuleId is returned // by CreateRateBasedRule and by ListRateBasedRules. @@ -18561,8 +18561,8 @@ func (s *UpdateRateBasedRuleInput) Validate() error { if s.RateLimit == nil { invalidParams.Add(request.NewErrParamRequired("RateLimit")) } - if s.RateLimit != nil && *s.RateLimit < 2000 { - invalidParams.Add(request.NewErrParamMinValue("RateLimit", 2000)) + if s.RateLimit != nil && *s.RateLimit < 100 { + invalidParams.Add(request.NewErrParamMinValue("RateLimit", 100)) } if s.RuleId == nil { invalidParams.Add(request.NewErrParamRequired("RuleId")) diff --git a/vendor/modules.txt b/vendor/modules.txt index 724e666f907..82a4755a630 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -21,7 +21,7 @@ github.com/apparentlymart/go-cidr/cidr github.com/apparentlymart/go-textseg/textseg # github.com/armon/go-radix v1.0.0 github.com/armon/go-radix -# github.com/aws/aws-sdk-go v1.25.1 +# github.com/aws/aws-sdk-go v1.25.4 github.com/aws/aws-sdk-go/aws github.com/aws/aws-sdk-go/aws/arn github.com/aws/aws-sdk-go/aws/awserr