From 647f8d6bac5d1263723e0598d439a8a7da08cd32 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Wed, 29 Nov 2017 03:39:41 -0800 Subject: [PATCH 1/2] vendor: github.com/aws/aws-sdk-go/...@v1.12.35 --- .../aws/aws-sdk-go/aws/endpoints/defaults.go | 1 + .../github.com/aws/aws-sdk-go/aws/version.go | 2 +- .../aws/aws-sdk-go/service/acm/api.go | 502 +- .../aws/aws-sdk-go/service/apigateway/api.go | 150 +- .../aws/aws-sdk-go/service/batch/api.go | 402 +- .../aws/aws-sdk-go/service/batch/errors.go | 4 +- .../service/cognitoidentityprovider/api.go | 14586 ++++++++++------ .../service/cognitoidentityprovider/errors.go | 20 + .../aws/aws-sdk-go/service/ec2/api.go | 7046 +++++++- .../aws/aws-sdk-go/service/lambda/api.go | 171 +- .../aws/aws-sdk-go/service/lambda/errors.go | 3 +- vendor/vendor.json | 760 +- 12 files changed, 17468 insertions(+), 6179 deletions(-) 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 390e496b40e..fff35fc5739 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 @@ -1474,6 +1474,7 @@ var awsPartition = partition{ }, }, Endpoints: endpoints{ + "eu-west-1": endpoint{}, "us-east-1": endpoint{}, }, }, 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 27144223928..a5974b68fbd 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.12.32" +const SDKVersion = "1.12.35" diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go index 953b364f3e9..f93679e4f44 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go @@ -167,11 +167,11 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // DeleteCertificate API operation for AWS Certificate Manager. // -// Deletes an ACM Certificate and its associated private key. If this action -// succeeds, the certificate no longer appears in the list of ACM Certificates -// that can be displayed by calling the ListCertificates action or be retrieved -// by calling the GetCertificate action. The certificate will not be available -// for use by other AWS services. +// Deletes a certificate and its associated private key. If this action succeeds, +// the certificate no longer appears in the list that can be displayed by calling +// the ListCertificates action or be retrieved by calling the GetCertificate +// action. The certificate will not be available for use by AWS services integrated +// with ACM. // // You cannot delete an ACM Certificate that is being used by another AWS service. // To delete a certificate that is in use, the certificate association must @@ -345,12 +345,12 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re // GetCertificate API operation for AWS Certificate Manager. // -// Retrieves an ACM Certificate and certificate chain for the certificate specified -// by an ARN. The chain is an ordered list of certificates that contains the -// ACM Certificate, intermediate certificates of subordinate CAs, and the root -// certificate in that order. The certificate and certificate chain are base64 -// encoded. If you want to decode the certificate chain to see the individual -// certificate fields, you can use OpenSSL. +// Retrieves a certificate specified by an ARN and its certificate chain . The +// chain is an ordered list of certificates that contains the end entity ertificate, +// intermediate certificates of subordinate CAs, and the root certificate in +// that order. The certificate and certificate chain are base64 encoded. If +// you want to decode the certificate to see the individual fields, you can +// use OpenSSL. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -437,35 +437,52 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ // ImportCertificate API operation for AWS Certificate Manager. // -// Imports an SSL/TLS certificate into AWS Certificate Manager (ACM) to use -// with ACM's integrated AWS services (http://docs.aws.amazon.com/acm/latest/userguide/acm-services.html). +// Imports a certificate into AWS Certificate Manager (ACM) to use with services +// that are integrated with ACM. For more information, see Integrated Services +// (http://docs.aws.amazon.com/acm/latest/userguide/acm-services.html). // // ACM does not provide managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) // for certificates that you import. // // For more information about importing certificates into ACM, including the // differences between certificates that you import and those that ACM provides, -// see Importing Certificates (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) +// see Importing Certificates (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) // in the AWS Certificate Manager User Guide. // -// To import a certificate, you must provide the certificate and the matching -// private key. When the certificate is not self-signed, you must also provide -// a certificate chain. You can omit the certificate chain when importing a -// self-signed certificate. +// In general, you can import almost any valid certificate. However, services +// integrated with ACM allow only certificate types they support to be associated +// with their resources. The following guidelines are also important: // -// The certificate, private key, and certificate chain must be PEM-encoded. -// For more information about converting these items to PEM format, see Importing -// Certificates Troubleshooting (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html#import-certificate-troubleshooting) -// in the AWS Certificate Manager User Guide. +// * You must enter the private key that matches the certificate you are +// importing. +// +// * The private key must be unencrypted. You cannot import a private key +// that is protected by a password or a passphrase. +// +// * If the certificate you are importing is not self-signed, you must enter +// its certificate chain. +// +// * If a certificate chain is included, the issuer must be the subject of +// one of the certificates in the chain. +// +// * The certificate, private key, and certificate chain must be PEM-encoded. +// +// * The current time must be between the Not Before and Not After certificate +// fields. // -// To import a new certificate, omit the CertificateArn field. Include this -// field only when you want to replace a previously imported certificate. +// * The Issuer field must not be empty. // -// When you import a certificate by using the CLI or one of the SDKs, you must -// specify the certificate, chain, and private key parameters as file names -// preceded by file://. For example, you can specify a certificate saved in -// the C:\temp folder as C:\temp\certificate_to_import.pem. If you are making -// an HTTP or HTTPS Query request, include these parameters as BLOBs. +// * The OCSP authority URL must not exceed 1000 characters. +// +// * To import a new certificate, omit the CertificateArn field. Include +// this field only when you want to replace a previously imported certificate. +// +// * When you import a certificate by using the CLI or one of the SDKs, you +// must specify the certificate, certificate chain, and private key parameters +// as file names preceded by file://. For example, you can specify a certificate +// saved in the C:\temp folder as C:\temp\certificate_to_import.pem. If you +// are making an HTTP or HTTPS Query request, include these parameters as +// BLOBs. // // This operation returns the Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // of the imported certificate. @@ -561,9 +578,9 @@ func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *reques // ListCertificates API operation for AWS Certificate Manager. // -// Retrieves a list of ACM Certificates and the domain name for each. You can -// optionally filter the list to return only the certificates that match the -// specified status. +// Retrieves a list of certificate ARNs and domain names. You can request that +// only certificates that match a specific status be listed. You can also filter +// by specific attributes of the certificate. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1142,6 +1159,11 @@ type CertificateDetail struct { // when the certificate type is AMAZON_ISSUED. DomainValidationOptions []*DomainValidation `min:"1" type:"list"` + // Contains a list of Extended Key Usage X.509 v3 extension objects. Each object + // specifies a purpose for which the certificate public key can be used and + // consists of a name and an object identifier (OID). + ExtendedKeyUsages []*ExtendedKeyUsage `type:"list"` + // The reason the certificate request failed. This value exists only when the // certificate status is FAILED. For more information, see Certificate Request // Failed (http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed) @@ -1163,10 +1185,15 @@ type CertificateDetail struct { // The name of the certificate authority that issued and signed the certificate. Issuer *string `type:"string"` - // The algorithm that was used to generate the key pair (the public and private - // key). + // The algorithm that was used to generate the public-private key pair. KeyAlgorithm *string `type:"string" enum:"KeyAlgorithm"` + // A list of Key Usage X.509 v3 extension objects. Each object is a string value + // that identifies the purpose of the public key contained in the certificate. + // Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, + // and more. + KeyUsages []*KeyUsage `type:"list"` + // The time after which the certificate is not valid. NotAfter *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -1250,6 +1277,12 @@ func (s *CertificateDetail) SetDomainValidationOptions(v []*DomainValidation) *C return s } +// SetExtendedKeyUsages sets the ExtendedKeyUsages field's value. +func (s *CertificateDetail) SetExtendedKeyUsages(v []*ExtendedKeyUsage) *CertificateDetail { + s.ExtendedKeyUsages = v + return s +} + // SetFailureReason sets the FailureReason field's value. func (s *CertificateDetail) SetFailureReason(v string) *CertificateDetail { s.FailureReason = &v @@ -1286,6 +1319,12 @@ func (s *CertificateDetail) SetKeyAlgorithm(v string) *CertificateDetail { return s } +// SetKeyUsages sets the KeyUsages field's value. +func (s *CertificateDetail) SetKeyUsages(v []*KeyUsage) *CertificateDetail { + s.KeyUsages = v + return s +} + // SetNotAfter sets the NotAfter field's value. func (s *CertificateDetail) SetNotAfter(v time.Time) *CertificateDetail { s.NotAfter = &v @@ -1538,13 +1577,27 @@ type DomainValidation struct { // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` + // Contains the CNAME record that you add to your DNS database for domain validation. + // For more information, see Use DNS to Validate Domain Ownership (http://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html). + ResourceRecord *ResourceRecord `type:"structure"` + // The domain name that ACM used to send domain validation emails. ValidationDomain *string `min:"1" type:"string"` // A list of email addresses that ACM used to send domain validation emails. ValidationEmails []*string `type:"list"` - // The validation status of the domain name. + // Specifies the domain validation method. + ValidationMethod *string `type:"string" enum:"ValidationMethod"` + + // The validation status of the domain name. This can be one of the following + // values: + // + // * PENDING_VALIDATION + // + // * SUCCESS + // + // * FAILED ValidationStatus *string `type:"string" enum:"DomainStatus"` } @@ -1564,6 +1617,12 @@ func (s *DomainValidation) SetDomainName(v string) *DomainValidation { return s } +// SetResourceRecord sets the ResourceRecord field's value. +func (s *DomainValidation) SetResourceRecord(v *ResourceRecord) *DomainValidation { + s.ResourceRecord = v + return s +} + // SetValidationDomain sets the ValidationDomain field's value. func (s *DomainValidation) SetValidationDomain(v string) *DomainValidation { s.ValidationDomain = &v @@ -1576,6 +1635,12 @@ func (s *DomainValidation) SetValidationEmails(v []*string) *DomainValidation { return s } +// SetValidationMethod sets the ValidationMethod field's value. +func (s *DomainValidation) SetValidationMethod(v string) *DomainValidation { + s.ValidationMethod = &v + return s +} + // SetValidationStatus sets the ValidationStatus field's value. func (s *DomainValidation) SetValidationStatus(v string) *DomainValidation { s.ValidationStatus = &v @@ -1583,7 +1648,7 @@ func (s *DomainValidation) SetValidationStatus(v string) *DomainValidation { } // Contains information about the domain names that you want ACM to use to send -// you emails to validate your ownership of the domain. +// you emails that enable you to validate domain ownership. // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DomainValidationOption type DomainValidationOption struct { _ struct{} `type:"structure"` @@ -1658,6 +1723,106 @@ func (s *DomainValidationOption) SetValidationDomain(v string) *DomainValidation return s } +// The Extended Key Usage X.509 v3 extension defines one or more purposes for +// which the public key can be used. This is in addition to or in place of the +// basic purposes specified by the Key Usage extension. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExtendedKeyUsage +type ExtendedKeyUsage struct { + _ struct{} `type:"structure"` + + // The name of an Extended Key Usage value. + Name *string `type:"string" enum:"ExtendedKeyUsageName"` + + // An object identifier (OID) for the extension value. OIDs are strings of numbers + // separated by periods. The following OIDs are defined in RFC 3280 and RFC + // 5280. + // + // * 1.3.6.1.5.5.7.3.1 (TLS_WEB_SERVER_AUTHENTICATION) + // + // * 1.3.6.1.5.5.7.3.2 (TLS_WEB_CLIENT_AUTHENTICATION) + // + // * 1.3.6.1.5.5.7.3.3 (CODE_SIGNING) + // + // * 1.3.6.1.5.5.7.3.4 (EMAIL_PROTECTION) + // + // * 1.3.6.1.5.5.7.3.8 (TIME_STAMPING) + // + // * 1.3.6.1.5.5.7.3.9 (OCSP_SIGNING) + // + // * 1.3.6.1.5.5.7.3.5 (IPSEC_END_SYSTEM) + // + // * 1.3.6.1.5.5.7.3.6 (IPSEC_TUNNEL) + // + // * 1.3.6.1.5.5.7.3.7 (IPSEC_USER) + OID *string `type:"string"` +} + +// String returns the string representation +func (s ExtendedKeyUsage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExtendedKeyUsage) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *ExtendedKeyUsage) SetName(v string) *ExtendedKeyUsage { + s.Name = &v + return s +} + +// SetOID sets the OID field's value. +func (s *ExtendedKeyUsage) SetOID(v string) *ExtendedKeyUsage { + s.OID = &v + return s +} + +// This structure can be used in the ListCertificates action to filter the output +// of the certificate list. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/Filters +type Filters struct { + _ struct{} `type:"structure"` + + // Specify one or more ExtendedKeyUsage extension values. + ExtendedKeyUsage []*string `locationName:"extendedKeyUsage" type:"list"` + + // Specify one or more algorithms that can be used to generate key pairs. + KeyTypes []*string `locationName:"keyTypes" type:"list"` + + // Specify one or more KeyUsage extension values. + KeyUsage []*string `locationName:"keyUsage" type:"list"` +} + +// String returns the string representation +func (s Filters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Filters) GoString() string { + return s.String() +} + +// SetExtendedKeyUsage sets the ExtendedKeyUsage field's value. +func (s *Filters) SetExtendedKeyUsage(v []*string) *Filters { + s.ExtendedKeyUsage = v + return s +} + +// SetKeyTypes sets the KeyTypes field's value. +func (s *Filters) SetKeyTypes(v []*string) *Filters { + s.KeyTypes = v + return s +} + +// SetKeyUsage sets the KeyUsage field's value. +func (s *Filters) SetKeyUsage(v []*string) *Filters { + s.KeyUsage = v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificateRequest type GetCertificateInput struct { _ struct{} `type:"structure"` @@ -1744,15 +1909,7 @@ func (s *GetCertificateOutput) SetCertificateChain(v string) *GetCertificateOutp type ImportCertificateInput struct { _ struct{} `type:"structure"` - // The certificate to import. It must meet the following requirements: - // - // * Must be PEM-encoded. - // - // * Must contain a 1024-bit or 2048-bit RSA public key. - // - // * Must be valid at the time of import. You cannot import a certificate - // before its validity period begins (the certificate's NotBefore date) or - // after it expires (the certificate's NotAfter date). + // The certificate to import. // // Certificate is automatically base64 encoded/decoded by the SDK. // @@ -1764,18 +1921,12 @@ type ImportCertificateInput struct { // this field. CertificateArn *string `min:"20" type:"string"` - // The certificate chain. It must be PEM-encoded. + // The PEM encoded certificate chain. // // CertificateChain is automatically base64 encoded/decoded by the SDK. CertificateChain []byte `min:"1" type:"blob"` - // The private key that matches the public key in the certificate. It must meet - // the following requirements: - // - // * Must be PEM-encoded. - // - // * Must be unencrypted. You cannot import a private key that is protected - // by a password or passphrase. + // The private key that matches the public key in the certificate. // // PrivateKey is automatically base64 encoded/decoded by the SDK. // @@ -1870,13 +2021,49 @@ func (s *ImportCertificateOutput) SetCertificateArn(v string) *ImportCertificate return s } +// The Key Usage X.509 v3 extension defines the purpose of the public key contained +// in the certificate. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/KeyUsage +type KeyUsage struct { + _ struct{} `type:"structure"` + + // A string value that contains a Key Usage extension name. + Name *string `type:"string" enum:"KeyUsageName"` +} + +// String returns the string representation +func (s KeyUsage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KeyUsage) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *KeyUsage) SetName(v string) *KeyUsage { + s.Name = &v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificatesRequest type ListCertificatesInput struct { _ struct{} `type:"structure"` - // The status or statuses on which to filter the list of ACM Certificates. + // Filter the certificate list by status value. CertificateStatuses []*string `type:"list"` + // Filter the certificate list by one or more of the following values. For more + // information, see the Filters structure. + // + // * extendedKeyUsage + // + // * keyUsage + // + // * keyTypes + Includes *Filters `type:"structure"` + // Use this parameter when paginating results to specify the maximum number // of items to return in the response. If additional items exist beyond the // number you specify, the NextToken element is sent in the response. Use this @@ -1921,6 +2108,12 @@ func (s *ListCertificatesInput) SetCertificateStatuses(v []*string) *ListCertifi return s } +// SetIncludes sets the Includes field's value. +func (s *ListCertificatesInput) SetIncludes(v *Filters) *ListCertificatesInput { + s.Includes = v + return s +} + // SetMaxItems sets the MaxItems field's value. func (s *ListCertificatesInput) SetMaxItems(v int64) *ListCertificatesInput { s.MaxItems = &v @@ -1972,7 +2165,7 @@ type ListTagsForCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate for which you want to - // list the tags. This has the following form: + // list the tags. This must have the following form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // @@ -2183,25 +2376,15 @@ type RequestCertificateInput struct { // a wildcard certificate that protects several sites in the same domain. For // example, *.example.com protects www.example.com, site.example.com, and images.example.com. // - // The maximum length of a DNS name is 253 octets. The name is made up of multiple - // labels separated by periods. No label can be longer than 63 octets. Consider - // the following examples: - // - // (63 octets).(63 octets).(63 octets).(61 octets) is legal because the total - // length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets. - // - // (64 octets).(63 octets).(63 octets).(61 octets) is not legal because the - // total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds - // 63 octets. - // - // (63 octets).(63 octets).(63 octets).(62 octets) is not legal because the - // total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets. + // The first domain name you enter cannot exceed 63 octets, including periods. + // Each subsequent Subject Alternative Name (SAN), however, can be up to 253 + // octets in length. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` - // The domain name that you want ACM to use to send you emails to validate your - // ownership of the domain. + // The domain name that you want ACM to use to send you emails so taht your + // can validate domain ownership. DomainValidationOptions []*DomainValidationOption `min:"1" type:"list"` // Customer chosen string that can be used to distinguish between calls to RequestCertificate. @@ -2219,7 +2402,25 @@ type RequestCertificateInput struct { // add to an ACM Certificate is 100. However, the initial limit is 10 domain // names. If you need more than 10 names, you must request a limit increase. // For more information, see Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html). + // + // The maximum length of a SAN DNS name is 253 octets. The name is made up of + // multiple labels separated by periods. No label can be longer than 63 octets. + // Consider the following examples: + // + // * (63 octets).(63 octets).(63 octets).(61 octets) is legal because the + // total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 + // octets. + // + // * (64 octets).(63 octets).(63 octets).(61 octets) is not legal because + // the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first + // label exceeds 63 octets. + // + // * (63 octets).(63 octets).(63 octets).(62 octets) is not legal because + // the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets. SubjectAlternativeNames []*string `min:"1" type:"list"` + + // The method you want to use to validate your domain. + ValidationMethod *string `type:"string" enum:"ValidationMethod"` } // String returns the string representation @@ -2291,6 +2492,12 @@ func (s *RequestCertificateInput) SetSubjectAlternativeNames(v []*string) *Reque return s } +// SetValidationMethod sets the ValidationMethod field's value. +func (s *RequestCertificateInput) SetValidationMethod(v string) *RequestCertificateInput { + s.ValidationMethod = &v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificateResponse type RequestCertificateOutput struct { _ struct{} `type:"structure"` @@ -2325,9 +2532,8 @@ type ResendValidationEmailInput struct { // String that contains the ARN of the requested certificate. The certificate // ARN is generated and returned by the RequestCertificate action as soon as // the request is made. By default, using this parameter causes email to be - // sent to all top-level domains you specified in the certificate request. - // - // The ARN must be of the form: + // sent to all top-level domains you specified in the certificate request. The + // ARN must be of the form: // // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 // @@ -2432,6 +2638,58 @@ func (s ResendValidationEmailOutput) GoString() string { return s.String() } +// Contains a DNS record value that you can use to can use to validate ownership +// or control of a domain. This is used by the DescribeCertificate action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResourceRecord +type ResourceRecord struct { + _ struct{} `type:"structure"` + + // The name of the DNS record to create in your domain. This is supplied by + // ACM. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The type of DNS record. Currently this can be CNAME. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"RecordType"` + + // The value of the CNAME record to add to your DNS database. This is supplied + // by ACM. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ResourceRecord) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceRecord) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *ResourceRecord) SetName(v string) *ResourceRecord { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *ResourceRecord) SetType(v string) *ResourceRecord { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ResourceRecord) SetValue(v string) *ResourceRecord { + s.Value = &v + return s +} + // A key-value pair that identifies or specifies metadata about an ACM resource. // Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/Tag type Tag struct { @@ -2526,6 +2784,44 @@ const ( DomainStatusFailed = "FAILED" ) +const ( + // ExtendedKeyUsageNameTlsWebServerAuthentication is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameTlsWebServerAuthentication = "TLS_WEB_SERVER_AUTHENTICATION" + + // ExtendedKeyUsageNameTlsWebClientAuthentication is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameTlsWebClientAuthentication = "TLS_WEB_CLIENT_AUTHENTICATION" + + // ExtendedKeyUsageNameCodeSigning is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameCodeSigning = "CODE_SIGNING" + + // ExtendedKeyUsageNameEmailProtection is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameEmailProtection = "EMAIL_PROTECTION" + + // ExtendedKeyUsageNameTimeStamping is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameTimeStamping = "TIME_STAMPING" + + // ExtendedKeyUsageNameOcspSigning is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameOcspSigning = "OCSP_SIGNING" + + // ExtendedKeyUsageNameIpsecEndSystem is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameIpsecEndSystem = "IPSEC_END_SYSTEM" + + // ExtendedKeyUsageNameIpsecTunnel is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameIpsecTunnel = "IPSEC_TUNNEL" + + // ExtendedKeyUsageNameIpsecUser is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameIpsecUser = "IPSEC_USER" + + // ExtendedKeyUsageNameAny is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameAny = "ANY" + + // ExtendedKeyUsageNameNone is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameNone = "NONE" + + // ExtendedKeyUsageNameCustom is a ExtendedKeyUsageName enum value + ExtendedKeyUsageNameCustom = "CUSTOM" +) + const ( // FailureReasonNoAvailableContacts is a FailureReason enum value FailureReasonNoAvailableContacts = "NO_AVAILABLE_CONTACTS" @@ -2539,6 +2835,9 @@ const ( // FailureReasonInvalidPublicDomain is a FailureReason enum value FailureReasonInvalidPublicDomain = "INVALID_PUBLIC_DOMAIN" + // FailureReasonCaaError is a FailureReason enum value + FailureReasonCaaError = "CAA_ERROR" + // FailureReasonOther is a FailureReason enum value FailureReasonOther = "OTHER" ) @@ -2550,8 +2849,57 @@ const ( // KeyAlgorithmRsa1024 is a KeyAlgorithm enum value KeyAlgorithmRsa1024 = "RSA_1024" + // KeyAlgorithmRsa4096 is a KeyAlgorithm enum value + KeyAlgorithmRsa4096 = "RSA_4096" + // KeyAlgorithmEcPrime256v1 is a KeyAlgorithm enum value KeyAlgorithmEcPrime256v1 = "EC_prime256v1" + + // KeyAlgorithmEcSecp384r1 is a KeyAlgorithm enum value + KeyAlgorithmEcSecp384r1 = "EC_secp384r1" + + // KeyAlgorithmEcSecp521r1 is a KeyAlgorithm enum value + KeyAlgorithmEcSecp521r1 = "EC_secp521r1" +) + +const ( + // KeyUsageNameDigitalSignature is a KeyUsageName enum value + KeyUsageNameDigitalSignature = "DIGITAL_SIGNATURE" + + // KeyUsageNameNonRepudiation is a KeyUsageName enum value + KeyUsageNameNonRepudiation = "NON_REPUDIATION" + + // KeyUsageNameKeyEncipherment is a KeyUsageName enum value + KeyUsageNameKeyEncipherment = "KEY_ENCIPHERMENT" + + // KeyUsageNameDataEncipherment is a KeyUsageName enum value + KeyUsageNameDataEncipherment = "DATA_ENCIPHERMENT" + + // KeyUsageNameKeyAgreement is a KeyUsageName enum value + KeyUsageNameKeyAgreement = "KEY_AGREEMENT" + + // KeyUsageNameCertificateSigning is a KeyUsageName enum value + KeyUsageNameCertificateSigning = "CERTIFICATE_SIGNING" + + // KeyUsageNameCrlSigning is a KeyUsageName enum value + KeyUsageNameCrlSigning = "CRL_SIGNING" + + // KeyUsageNameEncipherOnly is a KeyUsageName enum value + KeyUsageNameEncipherOnly = "ENCIPHER_ONLY" + + // KeyUsageNameDecipherOnly is a KeyUsageName enum value + KeyUsageNameDecipherOnly = "DECIPHER_ONLY" + + // KeyUsageNameAny is a KeyUsageName enum value + KeyUsageNameAny = "ANY" + + // KeyUsageNameCustom is a KeyUsageName enum value + KeyUsageNameCustom = "CUSTOM" +) + +const ( + // RecordTypeCname is a RecordType enum value + RecordTypeCname = "CNAME" ) const ( @@ -2599,3 +2947,11 @@ const ( // RevocationReasonAACompromise is a RevocationReason enum value RevocationReasonAACompromise = "A_A_COMPROMISE" ) + +const ( + // ValidationMethodEmail is a ValidationMethod enum value + ValidationMethodEmail = "EMAIL" + + // ValidationMethodDns is a ValidationMethod enum value + ValidationMethodDns = "DNS" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go index 47f1bbce921..8d80fa8b847 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go @@ -11016,6 +11016,60 @@ func (s *BasePathMapping) SetStage(v string) *BasePathMapping { return s } +// Configuration settings of a canary deployment. +type CanarySettings struct { + _ struct{} `type:"structure"` + + // The ID of the canary deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The percent (0-100) of traffic diverted to a canary deployment. + PercentTraffic *float64 `locationName:"percentTraffic" type:"double"` + + // Stage variables overridden for a canary release deployment, including new + // stage variables introduced in the canary. These stage variables are represented + // as a string-to-string map between stage variable names and their values. + StageVariableOverrides map[string]*string `locationName:"stageVariableOverrides" type:"map"` + + // A Boolean flag to indicate whether the canary deployment uses the stage cache + // or not. + UseStageCache *bool `locationName:"useStageCache" type:"boolean"` +} + +// String returns the string representation +func (s CanarySettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CanarySettings) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *CanarySettings) SetDeploymentId(v string) *CanarySettings { + s.DeploymentId = &v + return s +} + +// SetPercentTraffic sets the PercentTraffic field's value. +func (s *CanarySettings) SetPercentTraffic(v float64) *CanarySettings { + s.PercentTraffic = &v + return s +} + +// SetStageVariableOverrides sets the StageVariableOverrides field's value. +func (s *CanarySettings) SetStageVariableOverrides(v map[string]*string) *CanarySettings { + s.StageVariableOverrides = v + return s +} + +// SetUseStageCache sets the UseStageCache field's value. +func (s *CanarySettings) SetUseStageCache(v bool) *CanarySettings { + s.UseStageCache = &v + return s +} + // Represents a client certificate used to configure client-side SSL authentication // while sending requests to the integration endpoint. // @@ -11422,6 +11476,10 @@ type CreateDeploymentInput struct { // input, if a cache cluster is enabled. CacheClusterSize *string `locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize"` + // The input configuration for the canary deployment when the deployment is + // a canary release deployment. + CanarySettings *DeploymentCanarySettings `locationName:"canarySettings" type:"structure"` + // The description for the Deployment resource to create. Description *string `locationName:"description" type:"string"` @@ -11477,6 +11535,12 @@ func (s *CreateDeploymentInput) SetCacheClusterSize(v string) *CreateDeploymentI return s } +// SetCanarySettings sets the CanarySettings field's value. +func (s *CreateDeploymentInput) SetCanarySettings(v *DeploymentCanarySettings) *CreateDeploymentInput { + s.CanarySettings = v + return s +} + // SetDescription sets the Description field's value. func (s *CreateDeploymentInput) SetDescription(v string) *CreateDeploymentInput { s.Description = &v @@ -12096,7 +12160,10 @@ type CreateStageInput struct { // The stage's cache cluster size. CacheClusterSize *string `locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize"` - // The identifier of the Deployment resource for the Stage resource. + // The canary deployment settings of this stage. + CanarySettings *CanarySettings `locationName:"canarySettings" type:"structure"` + + // [Required] The identifier of the Deployment resource for the Stage resource. // // DeploymentId is a required field DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` @@ -12112,7 +12179,7 @@ type CreateStageInput struct { // RestApiId is a required field RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - // The name for the Stage resource. + // {Required] The name for the Stage resource. // // StageName is a required field StageName *string `locationName:"stageName" type:"string" required:"true"` @@ -12164,6 +12231,12 @@ func (s *CreateStageInput) SetCacheClusterSize(v string) *CreateStageInput { return s } +// SetCanarySettings sets the CanarySettings field's value. +func (s *CreateStageInput) SetCanarySettings(v *CanarySettings) *CreateStageInput { + s.CanarySettings = v + return s +} + // SetDeploymentId sets the DeploymentId field's value. func (s *CreateStageInput) SetDeploymentId(v string) *CreateStageInput { s.DeploymentId = &v @@ -13784,6 +13857,52 @@ func (s *Deployment) SetId(v string) *Deployment { return s } +// The input configuration for a canary deployment. +type DeploymentCanarySettings struct { + _ struct{} `type:"structure"` + + // The percentage (0.0-100.0) of traffic routed to the canary deployment. + PercentTraffic *float64 `locationName:"percentTraffic" type:"double"` + + // A stage variable overrides used for the canary release deployment. They can + // override existing stage variables or add new stage variables for the canary + // release deployment. These stage variables are represented as a string-to-string + // map between stage variable names and their values. + StageVariableOverrides map[string]*string `locationName:"stageVariableOverrides" type:"map"` + + // A Boolean flag to indicate whether the canary release deployment uses the + // stage cache or not. + UseStageCache *bool `locationName:"useStageCache" type:"boolean"` +} + +// String returns the string representation +func (s DeploymentCanarySettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentCanarySettings) GoString() string { + return s.String() +} + +// SetPercentTraffic sets the PercentTraffic field's value. +func (s *DeploymentCanarySettings) SetPercentTraffic(v float64) *DeploymentCanarySettings { + s.PercentTraffic = &v + return s +} + +// SetStageVariableOverrides sets the StageVariableOverrides field's value. +func (s *DeploymentCanarySettings) SetStageVariableOverrides(v map[string]*string) *DeploymentCanarySettings { + s.StageVariableOverrides = v + return s +} + +// SetUseStageCache sets the UseStageCache field's value. +func (s *DeploymentCanarySettings) SetUseStageCache(v bool) *DeploymentCanarySettings { + s.UseStageCache = &v + return s +} + // A documentation part for a targeted API entity. // // A documentation part consists of a content map (properties) and a target @@ -18822,11 +18941,15 @@ func (s *Model) SetSchema(v string) *Model { type PatchOperation struct { _ struct{} `type:"structure"` - // Not supported. + // The copy update operation's source as identified by a JSON-Pointer value + // referencing the location within the targeted resource to copy the value from. + // For example, to promote a canary deployment, you copy the canary deployment + // ID to the affiliated deployment ID by calling a PATCH request on a Stage + // resource with "op":"copy", "from":"/canarySettings/deploymentId" and "path":"/deploymentId". From *string `locationName:"from" type:"string"` // An update operation to be performed with this PATCH request. The valid value - // can be "add", "remove", or "replace". Not all valid operations are supported + // can be add, remove, replace or copy. Not all valid operations are supported // for a given resource. Support of the operations depends on specific operational // contexts. Attempts to apply an unsupported operation on a resource will return // an error message. @@ -18842,10 +18965,10 @@ type PatchOperation struct { // op operation can have only one path associated with it. Path *string `locationName:"path" type:"string"` - // The new target value of the update operation. When using AWS CLI to update - // a property of a JSON value, enclose the JSON object with a pair of single - // quotes in a Linux shell, e.g., '{"a": ...}'. In a Windows shell, see Using - // JSON for Parameters (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json). + // The new target value of the update operation. It is applicable for the add + // or replace operation. When using AWS CLI to update a property of a JSON value, + // enclose the JSON object with a pair of single quotes in a Linux shell, e.g., + // '{"a": ...}'. In a Windows shell, see Using JSON for Parameters (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json). Value *string `locationName:"value" type:"string"` } @@ -20059,7 +20182,7 @@ func (s *SdkType) SetId(v string) *SdkType { type Stage struct { _ struct{} `type:"structure"` - // The access log settings in this stage. + // Settings for logging access in this stage. AccessLogSettings *AccessLogSettings `locationName:"accessLogSettings" type:"structure"` // Specifies whether a cache cluster is enabled for the stage. @@ -20071,6 +20194,9 @@ type Stage struct { // The status of the cache cluster for the stage, if enabled. CacheClusterStatus *string `locationName:"cacheClusterStatus" type:"string" enum:"CacheClusterStatus"` + // Settings for the canary deployment in this stage. + CanarySettings *CanarySettings `locationName:"canarySettings" type:"structure"` + // The identifier of a client certificate for an API stage. ClientCertificateId *string `locationName:"clientCertificateId" type:"string"` @@ -20139,6 +20265,12 @@ func (s *Stage) SetCacheClusterStatus(v string) *Stage { return s } +// SetCanarySettings sets the CanarySettings field's value. +func (s *Stage) SetCanarySettings(v *CanarySettings) *Stage { + s.CanarySettings = v + return s +} + // SetClientCertificateId sets the ClientCertificateId field's value. func (s *Stage) SetClientCertificateId(v string) *Stage { s.ClientCertificateId = &v diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/api.go b/vendor/github.com/aws/aws-sdk-go/service/batch/api.go index 4af4e082b10..6ec1b4edd01 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/batch/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/api.go @@ -70,8 +70,8 @@ func (c *Batch) CancelJobRequest(input *CancelJobInput) (req *request.Request, o // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -149,8 +149,8 @@ func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentI // within the environment, based on the compute resources that you specify. // Instances launched into a managed compute environment use a recent, approved // version of the Amazon ECS-optimized AMI. You can choose to use Amazon EC2 -// On-Demand instances in your managed compute environment, or you can use Amazon -// EC2 Spot instances that only launch when the Spot bid price is below a specified +// On-Demand Instances in your managed compute environment, or you can use Amazon +// EC2 Spot Instances that only launch when the Spot bid price is below a specified // percentage of the On-Demand price. // // In an unmanaged compute environment, you can manage your own compute resources. @@ -158,12 +158,12 @@ func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentI // a custom AMI, but you must ensure that your AMI meets the Amazon ECS container // instance AMI specification. For more information, see Container Instance // AMIs (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html) -// in the Amazon EC2 Container Service Developer Guide. After you have created +// in the Amazon Elastic Container Service Developer Guide. After you have created // your unmanaged compute environment, you can use the DescribeComputeEnvironments // operation to find the Amazon ECS cluster that is associated with it and then // manually launch your container instances into that Amazon ECS cluster. For // more information, see Launching an Amazon ECS Container Instance (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html) -// in the Amazon EC2 Container Service Developer Guide. +// in the Amazon Elastic Container Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -175,8 +175,8 @@ func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentI // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -267,8 +267,8 @@ func (c *Batch) CreateJobQueueRequest(input *CreateJobQueueInput) (req *request. // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -355,8 +355,8 @@ func (c *Batch) DeleteComputeEnvironmentRequest(input *DeleteComputeEnvironmentI // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -444,8 +444,8 @@ func (c *Batch) DeleteJobQueueRequest(input *DeleteJobQueueInput) (req *request. // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -528,8 +528,8 @@ func (c *Batch) DeregisterJobDefinitionRequest(input *DeregisterJobDefinitionInp // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -616,8 +616,8 @@ func (c *Batch) DescribeComputeEnvironmentsRequest(input *DescribeComputeEnviron // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -701,8 +701,8 @@ func (c *Batch) DescribeJobDefinitionsRequest(input *DescribeJobDefinitionsInput // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -785,8 +785,8 @@ func (c *Batch) DescribeJobQueuesRequest(input *DescribeJobQueuesInput) (req *re // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -869,8 +869,8 @@ func (c *Batch) DescribeJobsRequest(input *DescribeJobsInput) (req *request.Requ // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -955,8 +955,8 @@ func (c *Batch) ListJobsRequest(input *ListJobsInput) (req *request.Request, out // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -1039,8 +1039,8 @@ func (c *Batch) RegisterJobDefinitionRequest(input *RegisterJobDefinitionInput) // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -1124,8 +1124,8 @@ func (c *Batch) SubmitJobRequest(input *SubmitJobInput) (req *request.Request, o // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -1210,8 +1210,8 @@ func (c *Batch) TerminateJobRequest(input *TerminateJobInput) (req *request.Requ // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -1294,8 +1294,8 @@ func (c *Batch) UpdateComputeEnvironmentRequest(input *UpdateComputeEnvironmentI // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -1378,8 +1378,8 @@ func (c *Batch) UpdateJobQueueRequest(input *UpdateJobQueueInput) (req *request. // Returned Error Codes: // * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action -// or resource on behalf of a user that doesn't have permission to use the action -// or resource, or specifying an identifier that is not valid. +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. // // * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. @@ -1406,6 +1406,111 @@ func (c *Batch) UpdateJobQueueWithContext(ctx aws.Context, input *UpdateJobQueue return out, req.Send() } +// An object representing an AWS Batch array job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ArrayProperties +type ArrayProperties struct { + _ struct{} `type:"structure"` + + // The size of the array job. + Size *int64 `locationName:"size" type:"integer"` +} + +// String returns the string representation +func (s ArrayProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ArrayProperties) GoString() string { + return s.String() +} + +// SetSize sets the Size field's value. +func (s *ArrayProperties) SetSize(v int64) *ArrayProperties { + s.Size = &v + return s +} + +// An object representing the array properties of a job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ArrayPropertiesDetail +type ArrayPropertiesDetail struct { + _ struct{} `type:"structure"` + + // The job index within the array that is associated with this job. This parameter + // is returned for array job children. + Index *int64 `locationName:"index" type:"integer"` + + // The size of the array job. This parameter is returned for parent array jobs. + Size *int64 `locationName:"size" type:"integer"` + + // A summary of the number of array job children in each available job status. + // This parameter is returned for parent array jobs. + StatusSummary map[string]*int64 `locationName:"statusSummary" type:"map"` +} + +// String returns the string representation +func (s ArrayPropertiesDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ArrayPropertiesDetail) GoString() string { + return s.String() +} + +// SetIndex sets the Index field's value. +func (s *ArrayPropertiesDetail) SetIndex(v int64) *ArrayPropertiesDetail { + s.Index = &v + return s +} + +// SetSize sets the Size field's value. +func (s *ArrayPropertiesDetail) SetSize(v int64) *ArrayPropertiesDetail { + s.Size = &v + return s +} + +// SetStatusSummary sets the StatusSummary field's value. +func (s *ArrayPropertiesDetail) SetStatusSummary(v map[string]*int64) *ArrayPropertiesDetail { + s.StatusSummary = v + return s +} + +// An object representing the array properties of a job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ArrayPropertiesSummary +type ArrayPropertiesSummary struct { + _ struct{} `type:"structure"` + + // The job index within the array that is associated with this job. This parameter + // is returned for children of array jobs. + Index *int64 `locationName:"index" type:"integer"` + + // The size of the array job. This parameter is returned for parent array jobs. + Size *int64 `locationName:"size" type:"integer"` +} + +// String returns the string representation +func (s ArrayPropertiesSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ArrayPropertiesSummary) GoString() string { + return s.String() +} + +// SetIndex sets the Index field's value. +func (s *ArrayPropertiesSummary) SetIndex(v int64) *ArrayPropertiesSummary { + s.Index = &v + return s +} + +// SetSize sets the Size field's value. +func (s *ArrayPropertiesSummary) SetSize(v int64) *ArrayPropertiesSummary { + s.Size = &v + return s +} + // An object representing the details of a container that is part of a job attempt. // Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/AttemptContainerDetail type AttemptContainerDetail struct { @@ -1481,16 +1586,16 @@ type AttemptDetail struct { // Details about the container in this job attempt. Container *AttemptContainerDetail `locationName:"container" type:"structure"` - // The Unix timestamp for when the attempt was started (when the task transitioned - // from the PENDING state to the RUNNING state). + // The Unix time stamp for when the attempt was started (when the attempt transitioned + // from the STARTING state to the RUNNING state). StartedAt *int64 `locationName:"startedAt" type:"long"` // A short, human-readable string to provide additional details about the current // status of the job attempt. StatusReason *string `locationName:"statusReason" type:"string"` - // The Unix timestamp for when the attempt was stopped (when the task transitioned - // from the RUNNING state to the STOPPED state). + // The Unix time stamp for when the attempt was stopped (when the attempt transitioned + // from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED). StoppedAt *int64 `locationName:"stoppedAt" type:"long"` } @@ -1537,7 +1642,7 @@ type CancelJobInput struct { // JobId is a required field JobId *string `locationName:"jobId" type:"string" required:"true"` - // A message to attach to the job that explains the reason for cancelling it. + // A message to attach to the job that explains the reason for canceling it. // This message is returned by future DescribeJobs operations on the job. This // message is also recorded in the AWS Batch activity logs. // @@ -2259,8 +2364,8 @@ type ContainerProperties struct { // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) // and the --env option to docker run (https://docs.docker.com/engine/reference/run/). // - // We do not recommend using plain text environment variables for sensitive - // information, such as credential data. + // We do not recommend using plaintext environment variables for sensitive information, + // such as credential data. // // Environment variables must not start with AWS_BATCH; this naming convention // is reserved for variables that are set by the AWS Batch service. @@ -2341,7 +2446,7 @@ type ContainerProperties struct { // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). - // Each vCPU is equivalent to 1,024 CPU shares. You must specify at least 1 + // Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one // vCPU. // // Vcpus is a required field @@ -2462,6 +2567,41 @@ func (s *ContainerProperties) SetVolumes(v []*Volume) *ContainerProperties { return s } +// An object representing summary details of a container within a job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerSummary +type ContainerSummary struct { + _ struct{} `type:"structure"` + + // The exit code to return upon completion. + ExitCode *int64 `locationName:"exitCode" type:"integer"` + + // A short (255 max characters) human-readable string to provide additional + // details about a running or stopped container. + Reason *string `locationName:"reason" type:"string"` +} + +// String returns the string representation +func (s ContainerSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerSummary) GoString() string { + return s.String() +} + +// SetExitCode sets the ExitCode field's value. +func (s *ContainerSummary) SetExitCode(v int64) *ContainerSummary { + s.ExitCode = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *ContainerSummary) SetReason(v string) *ContainerSummary { + s.Reason = &v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironmentRequest type CreateComputeEnvironmentInput struct { _ struct{} `type:"structure"` @@ -2608,7 +2748,7 @@ type CreateJobQueueInput struct { // to each other. The job scheduler uses this parameter to determine which compute // environment should execute a given job. Compute environments must be in the // VALID state before you can associate them with a job queue. You can associate - // up to 3 compute environments with a job queue. + // up to three compute environments with a job queue. // // ComputeEnvironmentOrder is a required field ComputeEnvironmentOrder []*ComputeEnvironmentOrder `locationName:"computeEnvironmentOrder" type:"list" required:"true"` @@ -3395,6 +3535,9 @@ type JobDependency struct { // The job ID of the AWS Batch job associated with this dependency. JobId *string `locationName:"jobId" type:"string"` + + // The type of the job dependency. + Type *string `locationName:"type" type:"string" enum:"ArrayJobDependency"` } // String returns the string representation @@ -3413,11 +3556,20 @@ func (s *JobDependency) SetJobId(v string) *JobDependency { return s } +// SetType sets the Type field's value. +func (s *JobDependency) SetType(v string) *JobDependency { + s.Type = &v + return s +} + // An object representing an AWS Batch job. // Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobDetail type JobDetail struct { _ struct{} `type:"structure"` + // The array properties of the job, if it is an array job. + ArrayProperties *ArrayPropertiesDetail `locationName:"arrayProperties" type:"structure"` + // A list of job attempts associated with this job. Attempts []*AttemptDetail `locationName:"attempts" type:"list"` @@ -3425,8 +3577,10 @@ type JobDetail struct { // the job. Container *ContainerDetail `locationName:"container" type:"structure"` - // The Unix timestamp for when the job was created (when the task entered the - // PENDING state). + // The Unix time stamp for when the job was created. For non-array jobs and + // parent array jobs, this is when the job entered the SUBMITTED state (at the + // time SubmitJob was called). For array child jobs, this is when the child + // job was spawned by its parent and entered the PENDING state. CreatedAt *int64 `locationName:"createdAt" type:"long"` // A list of job names or IDs on which this job depends. @@ -3460,8 +3614,8 @@ type JobDetail struct { // The retry strategy to use for this job if an attempt fails. RetryStrategy *RetryStrategy `locationName:"retryStrategy" type:"structure"` - // The Unix timestamp for when the job was started (when the task transitioned - // from the PENDING state to the RUNNING state). + // The Unix time stamp for when the job was started (when the job transitioned + // from the STARTING state to the RUNNING state). // // StartedAt is a required field StartedAt *int64 `locationName:"startedAt" type:"long" required:"true"` @@ -3475,8 +3629,8 @@ type JobDetail struct { // status of the job. StatusReason *string `locationName:"statusReason" type:"string"` - // The Unix timestamp for when the job was stopped (when the task transitioned - // from the RUNNING state to the STOPPED state). + // The Unix time stamp for when the job was stopped (when the job transitioned + // from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED). StoppedAt *int64 `locationName:"stoppedAt" type:"long"` } @@ -3490,6 +3644,12 @@ func (s JobDetail) GoString() string { return s.String() } +// SetArrayProperties sets the ArrayProperties field's value. +func (s *JobDetail) SetArrayProperties(v *ArrayPropertiesDetail) *JobDetail { + s.ArrayProperties = v + return s +} + // SetAttempts sets the Attempts field's value. func (s *JobDetail) SetAttempts(v []*AttemptDetail) *JobDetail { s.Attempts = v @@ -3671,6 +3831,19 @@ func (s *JobQueueDetail) SetStatusReason(v string) *JobQueueDetail { type JobSummary struct { _ struct{} `type:"structure"` + // The array properties of the job, if it is an array job. + ArrayProperties *ArrayPropertiesSummary `locationName:"arrayProperties" type:"structure"` + + // An object representing the details of the container that is associated with + // the job. + Container *ContainerSummary `locationName:"container" type:"structure"` + + // The Unix time stamp for when the job was created. For non-array jobs and + // parent array jobs, this is when the job entered the SUBMITTED state (at the + // time SubmitJob was called). For array child jobs, this is when the child + // job was spawned by its parent and entered the PENDING state. + CreatedAt *int64 `locationName:"createdAt" type:"long"` + // The ID of the job. // // JobId is a required field @@ -3680,6 +3853,21 @@ type JobSummary struct { // // JobName is a required field JobName *string `locationName:"jobName" type:"string" required:"true"` + + // The Unix time stamp for when the job was started (when the job transitioned + // from the STARTING state to the RUNNING state). + StartedAt *int64 `locationName:"startedAt" type:"long"` + + // The current status for the job. + Status *string `locationName:"status" type:"string" enum:"JobStatus"` + + // A short, human-readable string to provide additional details about the current + // status of the job. + StatusReason *string `locationName:"statusReason" type:"string"` + + // The Unix time stamp for when the job was stopped (when the job transitioned + // from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED). + StoppedAt *int64 `locationName:"stoppedAt" type:"long"` } // String returns the string representation @@ -3692,6 +3880,24 @@ func (s JobSummary) GoString() string { return s.String() } +// SetArrayProperties sets the ArrayProperties field's value. +func (s *JobSummary) SetArrayProperties(v *ArrayPropertiesSummary) *JobSummary { + s.ArrayProperties = v + return s +} + +// SetContainer sets the Container field's value. +func (s *JobSummary) SetContainer(v *ContainerSummary) *JobSummary { + s.Container = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *JobSummary) SetCreatedAt(v int64) *JobSummary { + s.CreatedAt = &v + return s +} + // SetJobId sets the JobId field's value. func (s *JobSummary) SetJobId(v string) *JobSummary { s.JobId = &v @@ -3704,16 +3910,40 @@ func (s *JobSummary) SetJobName(v string) *JobSummary { return s } +// SetStartedAt sets the StartedAt field's value. +func (s *JobSummary) SetStartedAt(v int64) *JobSummary { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *JobSummary) SetStatus(v string) *JobSummary { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *JobSummary) SetStatusReason(v string) *JobSummary { + s.StatusReason = &v + return s +} + +// SetStoppedAt sets the StoppedAt field's value. +func (s *JobSummary) SetStoppedAt(v int64) *JobSummary { + s.StoppedAt = &v + return s +} + // A key-value pair object. // Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/KeyValuePair type KeyValuePair struct { _ struct{} `type:"structure"` - // The name of the key value pair. For environment variables, this is the name + // The name of the key-value pair. For environment variables, this is the name // of the environment variable. Name *string `locationName:"name" type:"string"` - // The value of the key value pair. For environment variables, this is the value + // The value of the key-value pair. For environment variables, this is the value // of the environment variable. Value *string `locationName:"value" type:"string"` } @@ -3744,11 +3974,13 @@ func (s *KeyValuePair) SetValue(v string) *KeyValuePair { type ListJobsInput struct { _ struct{} `type:"structure"` + // The job ID for an array job. Specifying an array job ID with this parameter + // lists all child jobs from within the specified array. + ArrayJobId *string `locationName:"arrayJobId" type:"string"` + // The name or full Amazon Resource Name (ARN) of the job queue with which to // list jobs. - // - // JobQueue is a required field - JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` + JobQueue *string `locationName:"jobQueue" type:"string"` // The job status with which to filter jobs in the specified queue. If you do // not specify a status, only RUNNING jobs are returned. @@ -3783,17 +4015,10 @@ func (s ListJobsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"} - if s.JobQueue == nil { - invalidParams.Add(request.NewErrParamRequired("JobQueue")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetArrayJobId sets the ArrayJobId field's value. +func (s *ListJobsInput) SetArrayJobId(v string) *ListJobsInput { + s.ArrayJobId = &v + return s } // SetJobQueue sets the JobQueue field's value. @@ -4048,8 +4273,8 @@ type RetryStrategy struct { _ struct{} `type:"structure"` // The number of times to move a job to the RUNNABLE status. You may specify - // between 1 and 10 attempts. If attempts is greater than one, the job is retried - // if it fails until it has moved to RUNNABLE that many times. + // between 1 and 10 attempts. If the value of attempts is greater than one, + // the job is retried if it fails until it has moved to RUNNABLE that many times. Attempts *int64 `locationName:"attempts" type:"integer"` } @@ -4073,6 +4298,13 @@ func (s *RetryStrategy) SetAttempts(v int64) *RetryStrategy { type SubmitJobInput struct { _ struct{} `type:"structure"` + // The array properties for the submitted job, such as the size of the array. + // The array size can be between 2 and 10,000. If you specify array properties + // for a job, it becomes an array job. For more information, see Array Jobs + // (http://docs.aws.amazon.com/batch/latest/userguide/array_jobs.html) in the + // AWS Batch User Guide. + ArrayProperties *ArrayProperties `locationName:"arrayProperties" type:"structure"` + // A list of container overrides in JSON format that specify the name of a container // in the specified job definition and the overrides it should receive. You // can override the default command for a container (that is specified in the @@ -4082,8 +4314,12 @@ type SubmitJobInput struct { // an environment override. ContainerOverrides *ContainerOverrides `locationName:"containerOverrides" type:"structure"` - // A list of job IDs on which this job depends. A job can depend upon a maximum - // of 20 jobs. + // A list of dependencies for the job. A job can depend upon a maximum of 20 + // jobs. You can specify a SEQUENTIAL type dependency without specifying a job + // ID for array jobs so that each child array job completes sequentially, starting + // at index 0. You can also specify an N_TO_N type dependency with a job ID + // for array jobs so that each index child of this job must wait for the corresponding + // index child of each dependency to complete before it can begin. DependsOn []*JobDependency `locationName:"dependsOn" type:"list"` // The job definition used by this job. This value can be either a name:revision @@ -4099,8 +4335,8 @@ type SubmitJobInput struct { // JobName is a required field JobName *string `locationName:"jobName" type:"string" required:"true"` - // The job queue into which the job will be submitted. You can specify either - // the name or the Amazon Resource Name (ARN) of the queue. + // The job queue into which the job is submitted. You can specify either the + // name or the Amazon Resource Name (ARN) of the queue. // // JobQueue is a required field JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` @@ -4146,6 +4382,12 @@ func (s *SubmitJobInput) Validate() error { return nil } +// SetArrayProperties sets the ArrayProperties field's value. +func (s *SubmitJobInput) SetArrayProperties(v *ArrayProperties) *SubmitJobInput { + s.ArrayProperties = v + return s +} + // SetContainerOverrides sets the ContainerOverrides field's value. func (s *SubmitJobInput) SetContainerOverrides(v *ContainerOverrides) *SubmitJobInput { s.ContainerOverrides = v @@ -4234,7 +4476,7 @@ type TerminateJobInput struct { // JobId is a required field JobId *string `locationName:"jobId" type:"string" required:"true"` - // A message to attach to the job that explains the reason for cancelling it. + // A message to attach to the job that explains the reason for canceling it. // This message is returned by future DescribeJobs operations on the job. This // message is also recorded in the AWS Batch activity logs. // @@ -4599,8 +4841,8 @@ type Volume struct { // The contents of the host parameter determine whether your data volume persists // on the host container instance and where it is stored. If the host parameter - // is empty, then the Docker daemon assigns a host path for your data volume, - // but the data is not guaranteed to persist after the containers associated + // is empty, then the Docker daemon assigns a host path for your data volume. + // However, the data is not guaranteed to persist after the containers associated // with it stop running. Host *Host `locationName:"host" type:"structure"` @@ -4632,6 +4874,14 @@ func (s *Volume) SetName(v string) *Volume { return s } +const ( + // ArrayJobDependencyNToN is a ArrayJobDependency enum value + ArrayJobDependencyNToN = "N_TO_N" + + // ArrayJobDependencySequential is a ArrayJobDependency enum value + ArrayJobDependencySequential = "SEQUENTIAL" +) + const ( // CEStateEnabled is a CEState enum value CEStateEnabled = "ENABLED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/errors.go b/vendor/github.com/aws/aws-sdk-go/service/batch/errors.go index 8ad5a3bb020..eb308658602 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/batch/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/errors.go @@ -8,8 +8,8 @@ const ( // "ClientException". // // These errors are usually caused by a client action, such as using an action - // or resource on behalf of a user that doesn't have permission to use the action - // or resource, or specifying an identifier that is not valid. + // or resource on behalf of a user that doesn't have permissions to use the + // action or resource, or specifying an identifier that is not valid. ErrCodeClientException = "ClientException" // ErrCodeServerException for service response error code diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go index fe747f92a22..60a537f827b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go @@ -377,13 +377,22 @@ func (c *CognitoIdentityProvider) AdminCreateUserRequest(input *AdminCreateUserI // AdminCreateUser API operation for Amazon Cognito Identity Provider. // -// Creates a new user in the specified user pool and sends a welcome message -// via email or phone (SMS). This message is based on a template that you configured -// in your call to CreateUserPool (API_CreateUserPool.html) or UpdateUserPool -// (API_UpdateUserPool.html). This template includes your custom sign-up instructions -// and placeholders for user name and temporary password. +// Creates a new user in the specified user pool. // -// Requires developer credentials. +// If MessageAction is not set, the default is to send a welcome message via +// email or phone (SMS). +// +// This message is based on a template that you configured in your call to or +// . This template includes your custom sign-up instructions and placeholders +// for user name and temporary password. +// +// Alternatively, you can call AdminCreateUser with “SUPPRESS” for the MessageAction +// parameter, and Amazon Cognito will not send any email. +// +// In either case, the user will be in the FORCE_CHANGE_PASSWORD state until +// they sign in and change their password. +// +// AdminCreateUser requires developer credentials. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -726,7 +735,7 @@ func (c *CognitoIdentityProvider) AdminDisableProviderForUserRequest(input *Admi // sign-in. If the user to disable is a linked external IdP user, any link between // that user and an existing user is removed. The next time the external user // (no longer attached to the previously linked DestinationUser) signs in, they -// must create a new user account. See AdminLinkProviderForUser (API_AdminLinkProviderForUser.html). +// must create a new user account. See . // // This action is enabled only for admin access and requires developer credentials. // @@ -745,11 +754,10 @@ func (c *CognitoIdentityProvider) AdminDisableProviderForUserRequest(input *Admi // For de-linking a SAML identity, there are two scenarios. If the linked identity // has not yet been used to sign-in, the ProviderAttributeName and ProviderAttributeValue // must be the same values that were used for the SourceUser when the identities -// were originally linked in the AdminLinkProviderForUser (API_AdminLinkProviderForUser.html) -// call. (If the linking was done with ProviderAttributeName set to Cognito_Subject, -// the same applies here). However, if the user has already signed in, the ProviderAttributeName -// must be Cognito_Subject and ProviderAttributeValue must be the subject of -// the SAML assertion. +// were originally linked in the call. (If the linking was done with ProviderAttributeName +// set to Cognito_Subject, the same applies here). However, if the user has +// already signed in, the ProviderAttributeName must be Cognito_Subject and +// ProviderAttributeValue must be the subject of the SAML assertion. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1503,7 +1511,7 @@ func (c *CognitoIdentityProvider) AdminLinkProviderForUserRequest(input *AdminLi // with external identity providers and provider attributes that have been trusted // by the application owner. // -// See also AdminDisableProviderForUser (API_AdminDisableProviderForUser.html). +// See also . // // This action is enabled only for admin access and requires developer credentials. // @@ -1762,6 +1770,107 @@ func (c *CognitoIdentityProvider) AdminListGroupsForUserWithContext(ctx aws.Cont return out, req.Send() } +const opAdminListUserAuthEvents = "AdminListUserAuthEvents" + +// AdminListUserAuthEventsRequest generates a "aws/request.Request" representing the +// client's request for the AdminListUserAuthEvents operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AdminListUserAuthEvents for more information on using the AdminListUserAuthEvents +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AdminListUserAuthEventsRequest method. +// req, resp := client.AdminListUserAuthEventsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListUserAuthEvents +func (c *CognitoIdentityProvider) AdminListUserAuthEventsRequest(input *AdminListUserAuthEventsInput) (req *request.Request, output *AdminListUserAuthEventsOutput) { + op := &request.Operation{ + Name: opAdminListUserAuthEvents, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AdminListUserAuthEventsInput{} + } + + output = &AdminListUserAuthEventsOutput{} + req = c.newRequest(op, input, output) + return +} + +// AdminListUserAuthEvents API operation for Amazon Cognito Identity Provider. +// +// Lists a history of user activity and any risks detected as part of Amazon +// Cognito advanced security. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's +// API operation AdminListUserAuthEvents for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// This exception is thrown when user pool add-ons are not enabled. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListUserAuthEvents +func (c *CognitoIdentityProvider) AdminListUserAuthEvents(input *AdminListUserAuthEventsInput) (*AdminListUserAuthEventsOutput, error) { + req, out := c.AdminListUserAuthEventsRequest(input) + return out, req.Send() +} + +// AdminListUserAuthEventsWithContext is the same as AdminListUserAuthEvents with the addition of +// the ability to pass a context and additional request options. +// +// See AdminListUserAuthEvents for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) AdminListUserAuthEventsWithContext(ctx aws.Context, input *AdminListUserAuthEventsInput, opts ...request.Option) (*AdminListUserAuthEventsOutput, error) { + req, out := c.AdminListUserAuthEventsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAdminRemoveUserFromGroup = "AdminRemoveUserFromGroup" // AdminRemoveUserFromGroupRequest generates a "aws/request.Request" representing the @@ -2132,6 +2241,10 @@ func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *Admi // * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // +// * ErrCodeSoftwareTokenMFANotFoundException "SoftwareTokenMFANotFoundException" +// This exception is thrown when the software token TOTP multi-factor authentication +// (MFA) is not enabled for the user pool. +// // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallenge func (c *CognitoIdentityProvider) AdminRespondToAuthChallenge(input *AdminRespondToAuthChallengeInput) (*AdminRespondToAuthChallengeOutput, error) { req, out := c.AdminRespondToAuthChallengeRequest(input) @@ -2154,6 +2267,105 @@ func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeWithContext(ctx aws return out, req.Send() } +const opAdminSetUserMFAPreference = "AdminSetUserMFAPreference" + +// AdminSetUserMFAPreferenceRequest generates a "aws/request.Request" representing the +// client's request for the AdminSetUserMFAPreference operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AdminSetUserMFAPreference for more information on using the AdminSetUserMFAPreference +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AdminSetUserMFAPreferenceRequest method. +// req, resp := client.AdminSetUserMFAPreferenceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserMFAPreference +func (c *CognitoIdentityProvider) AdminSetUserMFAPreferenceRequest(input *AdminSetUserMFAPreferenceInput) (req *request.Request, output *AdminSetUserMFAPreferenceOutput) { + op := &request.Operation{ + Name: opAdminSetUserMFAPreference, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AdminSetUserMFAPreferenceInput{} + } + + output = &AdminSetUserMFAPreferenceOutput{} + req = c.newRequest(op, input, output) + return +} + +// AdminSetUserMFAPreference API operation for Amazon Cognito Identity Provider. +// +// Sets the user's multi-factor authentication (MFA) preference. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's +// API operation AdminSetUserMFAPreference for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// This exception is thrown when a password reset is required. +// +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// This exception is thrown when a user is not confirmed successfully. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserMFAPreference +func (c *CognitoIdentityProvider) AdminSetUserMFAPreference(input *AdminSetUserMFAPreferenceInput) (*AdminSetUserMFAPreferenceOutput, error) { + req, out := c.AdminSetUserMFAPreferenceRequest(input) + return out, req.Send() +} + +// AdminSetUserMFAPreferenceWithContext is the same as AdminSetUserMFAPreference with the addition of +// the ability to pass a context and additional request options. +// +// See AdminSetUserMFAPreference for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) AdminSetUserMFAPreferenceWithContext(ctx aws.Context, input *AdminSetUserMFAPreferenceInput, opts ...request.Option) (*AdminSetUserMFAPreferenceOutput, error) { + req, out := c.AdminSetUserMFAPreferenceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAdminSetUserSettings = "AdminSetUserSettings" // AdminSetUserSettingsRequest generates a "aws/request.Request" representing the @@ -2249,6 +2461,108 @@ func (c *CognitoIdentityProvider) AdminSetUserSettingsWithContext(ctx aws.Contex return out, req.Send() } +const opAdminUpdateAuthEventFeedback = "AdminUpdateAuthEventFeedback" + +// AdminUpdateAuthEventFeedbackRequest generates a "aws/request.Request" representing the +// client's request for the AdminUpdateAuthEventFeedback operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AdminUpdateAuthEventFeedback for more information on using the AdminUpdateAuthEventFeedback +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AdminUpdateAuthEventFeedbackRequest method. +// req, resp := client.AdminUpdateAuthEventFeedbackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateAuthEventFeedback +func (c *CognitoIdentityProvider) AdminUpdateAuthEventFeedbackRequest(input *AdminUpdateAuthEventFeedbackInput) (req *request.Request, output *AdminUpdateAuthEventFeedbackOutput) { + op := &request.Operation{ + Name: opAdminUpdateAuthEventFeedback, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AdminUpdateAuthEventFeedbackInput{} + } + + output = &AdminUpdateAuthEventFeedbackOutput{} + req = c.newRequest(op, input, output) + return +} + +// AdminUpdateAuthEventFeedback API operation for Amazon Cognito Identity Provider. +// +// Provides feedback for an authentication event as to whether it was from a +// valid user. This feedback is used for improving the risk evaluation decision +// for the user pool as part of Amazon Cognito advanced security. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's +// API operation AdminUpdateAuthEventFeedback for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// This exception is thrown when user pool add-ons are not enabled. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateAuthEventFeedback +func (c *CognitoIdentityProvider) AdminUpdateAuthEventFeedback(input *AdminUpdateAuthEventFeedbackInput) (*AdminUpdateAuthEventFeedbackOutput, error) { + req, out := c.AdminUpdateAuthEventFeedbackRequest(input) + return out, req.Send() +} + +// AdminUpdateAuthEventFeedbackWithContext is the same as AdminUpdateAuthEventFeedback with the addition of +// the ability to pass a context and additional request options. +// +// See AdminUpdateAuthEventFeedback for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) AdminUpdateAuthEventFeedbackWithContext(ctx aws.Context, input *AdminUpdateAuthEventFeedbackInput, opts ...request.Option) (*AdminUpdateAuthEventFeedbackOutput, error) { + req, out := c.AdminUpdateAuthEventFeedbackRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAdminUpdateDeviceStatus = "AdminUpdateDeviceStatus" // AdminUpdateDeviceStatusRequest generates a "aws/request.Request" representing the @@ -2574,64 +2888,159 @@ func (c *CognitoIdentityProvider) AdminUserGlobalSignOutWithContext(ctx aws.Cont return out, req.Send() } -const opChangePassword = "ChangePassword" +const opAssociateSoftwareToken = "AssociateSoftwareToken" -// ChangePasswordRequest generates a "aws/request.Request" representing the -// client's request for the ChangePassword operation. The "output" return +// AssociateSoftwareTokenRequest generates a "aws/request.Request" representing the +// client's request for the AssociateSoftwareToken operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ChangePassword for more information on using the ChangePassword +// See AssociateSoftwareToken for more information on using the AssociateSoftwareToken // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ChangePasswordRequest method. -// req, resp := client.ChangePasswordRequest(params) +// // Example sending a request using the AssociateSoftwareTokenRequest method. +// req, resp := client.AssociateSoftwareTokenRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePassword -func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Request, output *ChangePasswordOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AssociateSoftwareToken +func (c *CognitoIdentityProvider) AssociateSoftwareTokenRequest(input *AssociateSoftwareTokenInput) (req *request.Request, output *AssociateSoftwareTokenOutput) { op := &request.Operation{ - Name: opChangePassword, + Name: opAssociateSoftwareToken, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ChangePasswordInput{} + input = &AssociateSoftwareTokenInput{} } - output = &ChangePasswordOutput{} + output = &AssociateSoftwareTokenOutput{} req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials return } -// ChangePassword API operation for Amazon Cognito Identity Provider. +// AssociateSoftwareToken API operation for Amazon Cognito Identity Provider. // -// Changes the password for a specified user in a user pool. +// Returns a unique generated shared secret key code for the user account. The +// request takes an access token or a session string, but not both. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's -// API operation ChangePassword for usage and error information. +// API operation AssociateSoftwareToken for usage and error information. // // Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// This exception is thrown when the Amazon Cognito service cannot find the -// requested resource. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * ErrCodeSoftwareTokenMFANotFoundException "SoftwareTokenMFANotFoundException" +// This exception is thrown when the software token TOTP multi-factor authentication +// (MFA) is not enabled for the user pool. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AssociateSoftwareToken +func (c *CognitoIdentityProvider) AssociateSoftwareToken(input *AssociateSoftwareTokenInput) (*AssociateSoftwareTokenOutput, error) { + req, out := c.AssociateSoftwareTokenRequest(input) + return out, req.Send() +} + +// AssociateSoftwareTokenWithContext is the same as AssociateSoftwareToken with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateSoftwareToken for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) AssociateSoftwareTokenWithContext(ctx aws.Context, input *AssociateSoftwareTokenInput, opts ...request.Option) (*AssociateSoftwareTokenOutput, error) { + req, out := c.AssociateSoftwareTokenRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opChangePassword = "ChangePassword" + +// ChangePasswordRequest generates a "aws/request.Request" representing the +// client's request for the ChangePassword operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ChangePassword for more information on using the ChangePassword +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ChangePasswordRequest method. +// req, resp := client.ChangePasswordRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePassword +func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Request, output *ChangePasswordOutput) { + op := &request.Operation{ + Name: opChangePassword, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ChangePasswordInput{} + } + + output = &ChangePasswordOutput{} + req = c.newRequest(op, input, output) + req.Config.Credentials = credentials.AnonymousCredentials + return +} + +// ChangePassword API operation for Amazon Cognito Identity Provider. +// +// Changes the password for a specified user in a user pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's +// API operation ChangePassword for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. // // * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid @@ -4757,6 +5166,103 @@ func (c *CognitoIdentityProvider) DescribeResourceServerWithContext(ctx aws.Cont return out, req.Send() } +const opDescribeRiskConfiguration = "DescribeRiskConfiguration" + +// DescribeRiskConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeRiskConfiguration operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeRiskConfiguration for more information on using the DescribeRiskConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeRiskConfigurationRequest method. +// req, resp := client.DescribeRiskConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeRiskConfiguration +func (c *CognitoIdentityProvider) DescribeRiskConfigurationRequest(input *DescribeRiskConfigurationInput) (req *request.Request, output *DescribeRiskConfigurationOutput) { + op := &request.Operation{ + Name: opDescribeRiskConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeRiskConfigurationInput{} + } + + output = &DescribeRiskConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeRiskConfiguration API operation for Amazon Cognito Identity Provider. +// +// Describes the risk configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DescribeRiskConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// This exception is thrown when user pool add-ons are not enabled. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeRiskConfiguration +func (c *CognitoIdentityProvider) DescribeRiskConfiguration(input *DescribeRiskConfigurationInput) (*DescribeRiskConfigurationOutput, error) { + req, out := c.DescribeRiskConfigurationRequest(input) + return out, req.Send() +} + +// DescribeRiskConfigurationWithContext is the same as DescribeRiskConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeRiskConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) DescribeRiskConfigurationWithContext(ctx aws.Context, input *DescribeRiskConfigurationInput, opts ...request.Option) (*DescribeRiskConfigurationOutput, error) { + req, out := c.DescribeRiskConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeUserImportJob = "DescribeUserImportJob" // DescribeUserImportJobRequest generates a "aws/request.Request" representing the @@ -5294,7 +5800,7 @@ func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInp // if a verified email exists, the confirmation code is sent to the email. If // neither a verified phone number nor a verified email exists, InvalidParameterException // is thrown. To use the confirmation code for resetting the password, call -// ConfirmForgotPassword (API_ConfirmForgotPassword.html). +// . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6112,6 +6618,100 @@ func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeWithContext(ct return out, req.Send() } +const opGetUserPoolMfaConfig = "GetUserPoolMfaConfig" + +// GetUserPoolMfaConfigRequest generates a "aws/request.Request" representing the +// client's request for the GetUserPoolMfaConfig operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetUserPoolMfaConfig for more information on using the GetUserPoolMfaConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetUserPoolMfaConfigRequest method. +// req, resp := client.GetUserPoolMfaConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserPoolMfaConfig +func (c *CognitoIdentityProvider) GetUserPoolMfaConfigRequest(input *GetUserPoolMfaConfigInput) (req *request.Request, output *GetUserPoolMfaConfigOutput) { + op := &request.Operation{ + Name: opGetUserPoolMfaConfig, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetUserPoolMfaConfigInput{} + } + + output = &GetUserPoolMfaConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetUserPoolMfaConfig API operation for Amazon Cognito Identity Provider. +// +// Gets the user pool multi-factor authentication (MFA) configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation GetUserPoolMfaConfig for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserPoolMfaConfig +func (c *CognitoIdentityProvider) GetUserPoolMfaConfig(input *GetUserPoolMfaConfigInput) (*GetUserPoolMfaConfigOutput, error) { + req, out := c.GetUserPoolMfaConfigRequest(input) + return out, req.Send() +} + +// GetUserPoolMfaConfigWithContext is the same as GetUserPoolMfaConfig with the addition of +// the ability to pass a context and additional request options. +// +// See GetUserPoolMfaConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) GetUserPoolMfaConfigWithContext(ctx aws.Context, input *GetUserPoolMfaConfigInput, opts ...request.Option) (*GetUserPoolMfaConfigOutput, error) { + req, out := c.GetUserPoolMfaConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGlobalSignOut = "GlobalSignOut" // GlobalSignOutRequest generates a "aws/request.Request" representing the @@ -7447,6 +8047,10 @@ func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondTo // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// * ErrCodeSoftwareTokenMFANotFoundException "SoftwareTokenMFANotFoundException" +// This exception is thrown when the software token TOTP multi-factor authentication +// (MFA) is not enabled for the user pool. +// // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallenge func (c *CognitoIdentityProvider) RespondToAuthChallenge(input *RespondToAuthChallengeInput) (*RespondToAuthChallengeOutput, error) { req, out := c.RespondToAuthChallengeRequest(input) @@ -7469,267 +8073,273 @@ func (c *CognitoIdentityProvider) RespondToAuthChallengeWithContext(ctx aws.Cont return out, req.Send() } -const opSetUICustomization = "SetUICustomization" +const opSetRiskConfiguration = "SetRiskConfiguration" -// SetUICustomizationRequest generates a "aws/request.Request" representing the -// client's request for the SetUICustomization operation. The "output" return +// SetRiskConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the SetRiskConfiguration operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SetUICustomization for more information on using the SetUICustomization +// See SetRiskConfiguration for more information on using the SetRiskConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SetUICustomizationRequest method. -// req, resp := client.SetUICustomizationRequest(params) +// // Example sending a request using the SetRiskConfigurationRequest method. +// req, resp := client.SetRiskConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomization -func (c *CognitoIdentityProvider) SetUICustomizationRequest(input *SetUICustomizationInput) (req *request.Request, output *SetUICustomizationOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetRiskConfiguration +func (c *CognitoIdentityProvider) SetRiskConfigurationRequest(input *SetRiskConfigurationInput) (req *request.Request, output *SetRiskConfigurationOutput) { op := &request.Operation{ - Name: opSetUICustomization, + Name: opSetRiskConfiguration, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &SetUICustomizationInput{} + input = &SetRiskConfigurationInput{} } - output = &SetUICustomizationOutput{} + output = &SetRiskConfigurationOutput{} req = c.newRequest(op, input, output) return } -// SetUICustomization API operation for Amazon Cognito Identity Provider. +// SetRiskConfiguration API operation for Amazon Cognito Identity Provider. // -// Sets the UI customization information for a user pool's built-in app UI. +// Configures actions on detected risks. To delete the risk configuration for +// UserPoolId or ClientId, pass null values for all four configuration types. // -// You can specify app UI customization settings for a single client (with a -// specific clientId) or for all clients (by setting the clientId to ALL). If -// you specify ALL, the default configuration will be used for every client -// that has no UI customization set previously. If you specify UI customization -// settings for a particular client, it will no longer fall back to the ALL -// configuration. +// To enable Amazon Cognito advanced security features, update the user pool +// to include the UserPoolAddOns keyAdvancedSecurityMode. // -// To use this API, your user pool must have a domain associated with it. Otherwise, -// there is no place to host the app's pages, and the service will throw an -// error. +// See . // // Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's -// API operation SetUICustomization for usage and error information. +// API operation SetRiskConfiguration for usage and error information. // // Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" -// This exception is thrown when the Amazon Cognito service encounters an invalid -// parameter. -// // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" -// This exception is thrown when a user is not authorized. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception is thrown when the user has made too many requests for a given // operation. // +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// This exception is thrown when user pool add-ons are not enabled. +// +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// This exception is thrown when a verification code fails to deliver successfully. +// +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomization -func (c *CognitoIdentityProvider) SetUICustomization(input *SetUICustomizationInput) (*SetUICustomizationOutput, error) { - req, out := c.SetUICustomizationRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetRiskConfiguration +func (c *CognitoIdentityProvider) SetRiskConfiguration(input *SetRiskConfigurationInput) (*SetRiskConfigurationOutput, error) { + req, out := c.SetRiskConfigurationRequest(input) return out, req.Send() } -// SetUICustomizationWithContext is the same as SetUICustomization with the addition of +// SetRiskConfigurationWithContext is the same as SetRiskConfiguration with the addition of // the ability to pass a context and additional request options. // -// See SetUICustomization for details on how to use this API operation. +// See SetRiskConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) SetUICustomizationWithContext(ctx aws.Context, input *SetUICustomizationInput, opts ...request.Option) (*SetUICustomizationOutput, error) { - req, out := c.SetUICustomizationRequest(input) +func (c *CognitoIdentityProvider) SetRiskConfigurationWithContext(ctx aws.Context, input *SetRiskConfigurationInput, opts ...request.Option) (*SetRiskConfigurationOutput, error) { + req, out := c.SetRiskConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opSetUserSettings = "SetUserSettings" +const opSetUICustomization = "SetUICustomization" -// SetUserSettingsRequest generates a "aws/request.Request" representing the -// client's request for the SetUserSettings operation. The "output" return +// SetUICustomizationRequest generates a "aws/request.Request" representing the +// client's request for the SetUICustomization operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SetUserSettings for more information on using the SetUserSettings +// See SetUICustomization for more information on using the SetUICustomization // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SetUserSettingsRequest method. -// req, resp := client.SetUserSettingsRequest(params) +// // Example sending a request using the SetUICustomizationRequest method. +// req, resp := client.SetUICustomizationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettings -func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsInput) (req *request.Request, output *SetUserSettingsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomization +func (c *CognitoIdentityProvider) SetUICustomizationRequest(input *SetUICustomizationInput) (req *request.Request, output *SetUICustomizationOutput) { op := &request.Operation{ - Name: opSetUserSettings, + Name: opSetUICustomization, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &SetUserSettingsInput{} + input = &SetUICustomizationInput{} } - output = &SetUserSettingsOutput{} + output = &SetUICustomizationOutput{} req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials return } -// SetUserSettings API operation for Amazon Cognito Identity Provider. +// SetUICustomization API operation for Amazon Cognito Identity Provider. // -// Sets the user settings like multi-factor authentication (MFA). If MFA is -// to be removed for a particular attribute pass the attribute with code delivery -// as null. If null list is passed, all MFA options are removed. +// Sets the UI customization information for a user pool's built-in app UI. +// +// You can specify app UI customization settings for a single client (with a +// specific clientId) or for all clients (by setting the clientId to ALL). If +// you specify ALL, the default configuration will be used for every client +// that has no UI customization set previously. If you specify UI customization +// settings for a particular client, it will no longer fall back to the ALL +// configuration. +// +// To use this API, your user pool must have a domain associated with it. Otherwise, +// there is no place to host the app's pages, and the service will throw an +// error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Cognito Identity Provider's -// API operation SetUserSettings for usage and error information. +// API operation SetUICustomization for usage and error information. // // Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// This exception is thrown when the Amazon Cognito service cannot find the -// requested resource. -// // * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// // * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception is thrown when a user is not authorized. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" -// This exception is thrown when a password reset is required. -// -// * ErrCodeUserNotFoundException "UserNotFoundException" -// This exception is thrown when a user is not found. -// -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" -// This exception is thrown when a user is not confirmed successfully. +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. // // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettings -func (c *CognitoIdentityProvider) SetUserSettings(input *SetUserSettingsInput) (*SetUserSettingsOutput, error) { - req, out := c.SetUserSettingsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomization +func (c *CognitoIdentityProvider) SetUICustomization(input *SetUICustomizationInput) (*SetUICustomizationOutput, error) { + req, out := c.SetUICustomizationRequest(input) return out, req.Send() } -// SetUserSettingsWithContext is the same as SetUserSettings with the addition of +// SetUICustomizationWithContext is the same as SetUICustomization with the addition of // the ability to pass a context and additional request options. // -// See SetUserSettings for details on how to use this API operation. +// See SetUICustomization for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) SetUserSettingsWithContext(ctx aws.Context, input *SetUserSettingsInput, opts ...request.Option) (*SetUserSettingsOutput, error) { - req, out := c.SetUserSettingsRequest(input) +func (c *CognitoIdentityProvider) SetUICustomizationWithContext(ctx aws.Context, input *SetUICustomizationInput, opts ...request.Option) (*SetUICustomizationOutput, error) { + req, out := c.SetUICustomizationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opSignUp = "SignUp" +const opSetUserMFAPreference = "SetUserMFAPreference" -// SignUpRequest generates a "aws/request.Request" representing the -// client's request for the SignUp operation. The "output" return +// SetUserMFAPreferenceRequest generates a "aws/request.Request" representing the +// client's request for the SetUserMFAPreference operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SignUp for more information on using the SignUp +// See SetUserMFAPreference for more information on using the SetUserMFAPreference // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SignUpRequest method. -// req, resp := client.SignUpRequest(params) +// // Example sending a request using the SetUserMFAPreferenceRequest method. +// req, resp := client.SetUserMFAPreferenceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUp -func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *request.Request, output *SignUpOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserMFAPreference +func (c *CognitoIdentityProvider) SetUserMFAPreferenceRequest(input *SetUserMFAPreferenceInput) (req *request.Request, output *SetUserMFAPreferenceOutput) { op := &request.Operation{ - Name: opSignUp, + Name: opSetUserMFAPreference, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &SignUpInput{} + input = &SetUserMFAPreferenceInput{} } - output = &SignUpOutput{} + output = &SetUserMFAPreferenceOutput{} req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials return } -// SignUp API operation for Amazon Cognito Identity Provider. +// SetUserMFAPreference API operation for Amazon Cognito Identity Provider. // -// Registers the user in the specified user pool and creates a user name, password, -// and user attributes. +// Set the user's multi-factor authentication (MFA) method preference. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's -// API operation SignUp for usage and error information. +// API operation SetUserMFAPreference for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFoundException "ResourceNotFoundException" @@ -7740,133 +8350,97 @@ func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *reques // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" -// This exception is thrown when the Amazon Cognito service encounters an unexpected -// exception with the AWS Lambda service. -// -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" -// This exception is thrown when the Amazon Cognito service encounters a user -// validation exception with the AWS Lambda service. -// // * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" -// This exception is thrown when the Amazon Cognito service encounters an invalid -// password. -// -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" -// This exception is thrown when the Amazon Cognito service encounters an invalid -// AWS Lambda response. +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// This exception is thrown when a password reset is required. // -// * ErrCodeUsernameExistsException "UsernameExistsException" -// This exception is thrown when Amazon Cognito encounters a user name that -// already exists in the user pool. +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// This exception is thrown when the user has made too many requests for a given -// operation. +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// This exception is thrown when a user is not confirmed successfully. // // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" -// This exception is returned when the role provided for SMS configuration does -// not have permission to publish using Amazon SNS. -// -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" -// This exception is thrown when the trust relationship is invalid for the role -// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com -// or the external ID provided in the role does not match what is provided in -// the SMS configuration for the user pool. -// -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" -// This exception is thrown when Amazon Cognito is not allowed to use your email -// identity. HTTP status code: 400. -// -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" -// This exception is thrown when a verification code fails to deliver successfully. -// -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUp -func (c *CognitoIdentityProvider) SignUp(input *SignUpInput) (*SignUpOutput, error) { - req, out := c.SignUpRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserMFAPreference +func (c *CognitoIdentityProvider) SetUserMFAPreference(input *SetUserMFAPreferenceInput) (*SetUserMFAPreferenceOutput, error) { + req, out := c.SetUserMFAPreferenceRequest(input) return out, req.Send() } -// SignUpWithContext is the same as SignUp with the addition of +// SetUserMFAPreferenceWithContext is the same as SetUserMFAPreference with the addition of // the ability to pass a context and additional request options. // -// See SignUp for details on how to use this API operation. +// See SetUserMFAPreference for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) SignUpWithContext(ctx aws.Context, input *SignUpInput, opts ...request.Option) (*SignUpOutput, error) { - req, out := c.SignUpRequest(input) +func (c *CognitoIdentityProvider) SetUserMFAPreferenceWithContext(ctx aws.Context, input *SetUserMFAPreferenceInput, opts ...request.Option) (*SetUserMFAPreferenceOutput, error) { + req, out := c.SetUserMFAPreferenceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartUserImportJob = "StartUserImportJob" +const opSetUserPoolMfaConfig = "SetUserPoolMfaConfig" -// StartUserImportJobRequest generates a "aws/request.Request" representing the -// client's request for the StartUserImportJob operation. The "output" return +// SetUserPoolMfaConfigRequest generates a "aws/request.Request" representing the +// client's request for the SetUserPoolMfaConfig operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartUserImportJob for more information on using the StartUserImportJob +// See SetUserPoolMfaConfig for more information on using the SetUserPoolMfaConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartUserImportJobRequest method. -// req, resp := client.StartUserImportJobRequest(params) +// // Example sending a request using the SetUserPoolMfaConfigRequest method. +// req, resp := client.SetUserPoolMfaConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJob -func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImportJobInput) (req *request.Request, output *StartUserImportJobOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserPoolMfaConfig +func (c *CognitoIdentityProvider) SetUserPoolMfaConfigRequest(input *SetUserPoolMfaConfigInput) (req *request.Request, output *SetUserPoolMfaConfigOutput) { op := &request.Operation{ - Name: opStartUserImportJob, + Name: opSetUserPoolMfaConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartUserImportJobInput{} + input = &SetUserPoolMfaConfigInput{} } - output = &StartUserImportJobOutput{} + output = &SetUserPoolMfaConfigOutput{} req = c.newRequest(op, input, output) return } -// StartUserImportJob API operation for Amazon Cognito Identity Provider. +// SetUserPoolMfaConfig API operation for Amazon Cognito Identity Provider. // -// Starts the user import. +// Set the user pool MFA configuration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Cognito Identity Provider's -// API operation StartUserImportJob for usage and error information. +// API operation SetUserPoolMfaConfig for usage and error information. // // Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// This exception is thrown when the Amazon Cognito service cannot find the -// requested resource. -// // * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. @@ -7875,89 +8449,103 @@ func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImpo // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" -// This exception is thrown when Amazon Cognito encounters an internal error. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" -// This exception is thrown when a precondition is not met. +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. // // * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception is thrown when a user is not authorized. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJob -func (c *CognitoIdentityProvider) StartUserImportJob(input *StartUserImportJobInput) (*StartUserImportJobOutput, error) { - req, out := c.StartUserImportJobRequest(input) +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserPoolMfaConfig +func (c *CognitoIdentityProvider) SetUserPoolMfaConfig(input *SetUserPoolMfaConfigInput) (*SetUserPoolMfaConfigOutput, error) { + req, out := c.SetUserPoolMfaConfigRequest(input) return out, req.Send() } -// StartUserImportJobWithContext is the same as StartUserImportJob with the addition of +// SetUserPoolMfaConfigWithContext is the same as SetUserPoolMfaConfig with the addition of // the ability to pass a context and additional request options. // -// See StartUserImportJob for details on how to use this API operation. +// See SetUserPoolMfaConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) StartUserImportJobWithContext(ctx aws.Context, input *StartUserImportJobInput, opts ...request.Option) (*StartUserImportJobOutput, error) { - req, out := c.StartUserImportJobRequest(input) +func (c *CognitoIdentityProvider) SetUserPoolMfaConfigWithContext(ctx aws.Context, input *SetUserPoolMfaConfigInput, opts ...request.Option) (*SetUserPoolMfaConfigOutput, error) { + req, out := c.SetUserPoolMfaConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopUserImportJob = "StopUserImportJob" +const opSetUserSettings = "SetUserSettings" -// StopUserImportJobRequest generates a "aws/request.Request" representing the -// client's request for the StopUserImportJob operation. The "output" return +// SetUserSettingsRequest generates a "aws/request.Request" representing the +// client's request for the SetUserSettings operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopUserImportJob for more information on using the StopUserImportJob +// See SetUserSettings for more information on using the SetUserSettings // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopUserImportJobRequest method. -// req, resp := client.StopUserImportJobRequest(params) +// // Example sending a request using the SetUserSettingsRequest method. +// req, resp := client.SetUserSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJob -func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImportJobInput) (req *request.Request, output *StopUserImportJobOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettings +func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsInput) (req *request.Request, output *SetUserSettingsOutput) { op := &request.Operation{ - Name: opStopUserImportJob, + Name: opSetUserSettings, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopUserImportJobInput{} + input = &SetUserSettingsInput{} } - output = &StopUserImportJobOutput{} + output = &SetUserSettingsOutput{} req = c.newRequest(op, input, output) + req.Config.Credentials = credentials.AnonymousCredentials return } -// StopUserImportJob API operation for Amazon Cognito Identity Provider. +// SetUserSettings API operation for Amazon Cognito Identity Provider. // -// Stops the user import job. +// Sets the user settings like multi-factor authentication (MFA). If MFA is +// to be removed for a particular attribute pass the attribute with code delivery +// as null. If null list is passed, all MFA options are removed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Cognito Identity Provider's -// API operation StopUserImportJob for usage and error information. +// API operation SetUserSettings for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFoundException "ResourceNotFoundException" @@ -7968,201 +8556,228 @@ func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImport // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// This exception is thrown when the user has made too many requests for a given -// operation. +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" -// This exception is thrown when Amazon Cognito encounters an internal error. +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// This exception is thrown when a password reset is required. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" -// This exception is thrown when a precondition is not met. +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" -// This exception is thrown when a user is not authorized. +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// This exception is thrown when a user is not confirmed successfully. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJob -func (c *CognitoIdentityProvider) StopUserImportJob(input *StopUserImportJobInput) (*StopUserImportJobOutput, error) { - req, out := c.StopUserImportJobRequest(input) +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettings +func (c *CognitoIdentityProvider) SetUserSettings(input *SetUserSettingsInput) (*SetUserSettingsOutput, error) { + req, out := c.SetUserSettingsRequest(input) return out, req.Send() } -// StopUserImportJobWithContext is the same as StopUserImportJob with the addition of +// SetUserSettingsWithContext is the same as SetUserSettings with the addition of // the ability to pass a context and additional request options. // -// See StopUserImportJob for details on how to use this API operation. +// See SetUserSettings for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) StopUserImportJobWithContext(ctx aws.Context, input *StopUserImportJobInput, opts ...request.Option) (*StopUserImportJobOutput, error) { - req, out := c.StopUserImportJobRequest(input) +func (c *CognitoIdentityProvider) SetUserSettingsWithContext(ctx aws.Context, input *SetUserSettingsInput, opts ...request.Option) (*SetUserSettingsOutput, error) { + req, out := c.SetUserSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateDeviceStatus = "UpdateDeviceStatus" +const opSignUp = "SignUp" -// UpdateDeviceStatusRequest generates a "aws/request.Request" representing the -// client's request for the UpdateDeviceStatus operation. The "output" return +// SignUpRequest generates a "aws/request.Request" representing the +// client's request for the SignUp operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateDeviceStatus for more information on using the UpdateDeviceStatus +// See SignUp for more information on using the SignUp // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateDeviceStatusRequest method. -// req, resp := client.UpdateDeviceStatusRequest(params) +// // Example sending a request using the SignUpRequest method. +// req, resp := client.SignUpRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatus -func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceStatusInput) (req *request.Request, output *UpdateDeviceStatusOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUp +func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *request.Request, output *SignUpOutput) { op := &request.Operation{ - Name: opUpdateDeviceStatus, + Name: opSignUp, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateDeviceStatusInput{} + input = &SignUpInput{} } - output = &UpdateDeviceStatusOutput{} + output = &SignUpOutput{} req = c.newRequest(op, input, output) + req.Config.Credentials = credentials.AnonymousCredentials return } -// UpdateDeviceStatus API operation for Amazon Cognito Identity Provider. +// SignUp API operation for Amazon Cognito Identity Provider. // -// Updates the device status. +// Registers the user in the specified user pool and creates a user name, password, +// and user attributes. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's -// API operation UpdateDeviceStatus for usage and error information. +// API operation SignUp for usage and error information. // // Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// // * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// This exception is thrown when the Amazon Cognito service cannot find the -// requested resource. +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// This exception is thrown when the Amazon Cognito service encounters an unexpected +// exception with the AWS Lambda service. +// +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// This exception is thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. // // * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" -// This exception is thrown when the user pool configuration is invalid. +// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +// +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * ErrCodeUsernameExistsException "UsernameExistsException" +// This exception is thrown when Amazon Cognito encounters a user name that +// already exists in the user pool. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" -// This exception is thrown when a password reset is required. +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeUserNotFoundException "UserNotFoundException" -// This exception is thrown when a user is not found. +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" -// This exception is thrown when a user is not confirmed successfully. +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. // -// * ErrCodeInternalErrorException "InternalErrorException" -// This exception is thrown when Amazon Cognito encounters an internal error. +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatus -func (c *CognitoIdentityProvider) UpdateDeviceStatus(input *UpdateDeviceStatusInput) (*UpdateDeviceStatusOutput, error) { - req, out := c.UpdateDeviceStatusRequest(input) +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// This exception is thrown when a verification code fails to deliver successfully. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUp +func (c *CognitoIdentityProvider) SignUp(input *SignUpInput) (*SignUpOutput, error) { + req, out := c.SignUpRequest(input) return out, req.Send() } -// UpdateDeviceStatusWithContext is the same as UpdateDeviceStatus with the addition of +// SignUpWithContext is the same as SignUp with the addition of // the ability to pass a context and additional request options. // -// See UpdateDeviceStatus for details on how to use this API operation. +// See SignUp for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) UpdateDeviceStatusWithContext(ctx aws.Context, input *UpdateDeviceStatusInput, opts ...request.Option) (*UpdateDeviceStatusOutput, error) { - req, out := c.UpdateDeviceStatusRequest(input) +func (c *CognitoIdentityProvider) SignUpWithContext(ctx aws.Context, input *SignUpInput, opts ...request.Option) (*SignUpOutput, error) { + req, out := c.SignUpRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateGroup = "UpdateGroup" +const opStartUserImportJob = "StartUserImportJob" -// UpdateGroupRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGroup operation. The "output" return +// StartUserImportJobRequest generates a "aws/request.Request" representing the +// client's request for the StartUserImportJob operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateGroup for more information on using the UpdateGroup +// See StartUserImportJob for more information on using the StartUserImportJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateGroupRequest method. -// req, resp := client.UpdateGroupRequest(params) +// // Example sending a request using the StartUserImportJobRequest method. +// req, resp := client.StartUserImportJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroup -func (c *CognitoIdentityProvider) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJob +func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImportJobInput) (req *request.Request, output *StartUserImportJobOutput) { op := &request.Operation{ - Name: opUpdateGroup, + Name: opStartUserImportJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateGroupInput{} + input = &StartUserImportJobInput{} } - output = &UpdateGroupOutput{} + output = &StartUserImportJobOutput{} req = c.newRequest(op, input, output) return } -// UpdateGroup API operation for Amazon Cognito Identity Provider. -// -// Updates the specified group with the specified attributes. +// StartUserImportJob API operation for Amazon Cognito Identity Provider. // -// Requires developer credentials. +// Starts the user import. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's -// API operation UpdateGroup for usage and error information. +// API operation StartUserImportJob for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFoundException "ResourceNotFoundException" @@ -8177,101 +8792,98 @@ func (c *CognitoIdentityProvider) UpdateGroupRequest(input *UpdateGroupInput) (r // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" -// This exception is thrown when a user is not authorized. -// // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroup -func (c *CognitoIdentityProvider) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { - req, out := c.UpdateGroupRequest(input) +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// This exception is thrown when a precondition is not met. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJob +func (c *CognitoIdentityProvider) StartUserImportJob(input *StartUserImportJobInput) (*StartUserImportJobOutput, error) { + req, out := c.StartUserImportJobRequest(input) return out, req.Send() } -// UpdateGroupWithContext is the same as UpdateGroup with the addition of +// StartUserImportJobWithContext is the same as StartUserImportJob with the addition of // the ability to pass a context and additional request options. // -// See UpdateGroup for details on how to use this API operation. +// See StartUserImportJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) UpdateGroupWithContext(ctx aws.Context, input *UpdateGroupInput, opts ...request.Option) (*UpdateGroupOutput, error) { - req, out := c.UpdateGroupRequest(input) +func (c *CognitoIdentityProvider) StartUserImportJobWithContext(ctx aws.Context, input *StartUserImportJobInput, opts ...request.Option) (*StartUserImportJobOutput, error) { + req, out := c.StartUserImportJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateIdentityProvider = "UpdateIdentityProvider" +const opStopUserImportJob = "StopUserImportJob" -// UpdateIdentityProviderRequest generates a "aws/request.Request" representing the -// client's request for the UpdateIdentityProvider operation. The "output" return +// StopUserImportJobRequest generates a "aws/request.Request" representing the +// client's request for the StopUserImportJob operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateIdentityProvider for more information on using the UpdateIdentityProvider +// See StopUserImportJob for more information on using the StopUserImportJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateIdentityProviderRequest method. -// req, resp := client.UpdateIdentityProviderRequest(params) +// // Example sending a request using the StopUserImportJobRequest method. +// req, resp := client.StopUserImportJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateIdentityProvider -func (c *CognitoIdentityProvider) UpdateIdentityProviderRequest(input *UpdateIdentityProviderInput) (req *request.Request, output *UpdateIdentityProviderOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJob +func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImportJobInput) (req *request.Request, output *StopUserImportJobOutput) { op := &request.Operation{ - Name: opUpdateIdentityProvider, + Name: opStopUserImportJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateIdentityProviderInput{} + input = &StopUserImportJobInput{} } - output = &UpdateIdentityProviderOutput{} + output = &StopUserImportJobOutput{} req = c.newRequest(op, input, output) return } -// UpdateIdentityProvider API operation for Amazon Cognito Identity Provider. +// StopUserImportJob API operation for Amazon Cognito Identity Provider. // -// Updates identity provider information for a user pool. +// Stops the user import job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Cognito Identity Provider's -// API operation UpdateIdentityProvider for usage and error information. +// API operation StopUserImportJob for usage and error information. // // Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" -// This exception is thrown when the Amazon Cognito service encounters an invalid -// parameter. -// -// * ErrCodeUnsupportedIdentityProviderException "UnsupportedIdentityProviderException" -// This exception is thrown when the specified identifier is not supported. -// // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" -// This exception is thrown when a user is not authorized. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception is thrown when the user has made too many requests for a given @@ -8280,80 +8892,88 @@ func (c *CognitoIdentityProvider) UpdateIdentityProviderRequest(input *UpdateIde // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateIdentityProvider -func (c *CognitoIdentityProvider) UpdateIdentityProvider(input *UpdateIdentityProviderInput) (*UpdateIdentityProviderOutput, error) { - req, out := c.UpdateIdentityProviderRequest(input) +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// This exception is thrown when a precondition is not met. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJob +func (c *CognitoIdentityProvider) StopUserImportJob(input *StopUserImportJobInput) (*StopUserImportJobOutput, error) { + req, out := c.StopUserImportJobRequest(input) return out, req.Send() } -// UpdateIdentityProviderWithContext is the same as UpdateIdentityProvider with the addition of +// StopUserImportJobWithContext is the same as StopUserImportJob with the addition of // the ability to pass a context and additional request options. // -// See UpdateIdentityProvider for details on how to use this API operation. +// See StopUserImportJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) UpdateIdentityProviderWithContext(ctx aws.Context, input *UpdateIdentityProviderInput, opts ...request.Option) (*UpdateIdentityProviderOutput, error) { - req, out := c.UpdateIdentityProviderRequest(input) +func (c *CognitoIdentityProvider) StopUserImportJobWithContext(ctx aws.Context, input *StopUserImportJobInput, opts ...request.Option) (*StopUserImportJobOutput, error) { + req, out := c.StopUserImportJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateResourceServer = "UpdateResourceServer" +const opUpdateAuthEventFeedback = "UpdateAuthEventFeedback" -// UpdateResourceServerRequest generates a "aws/request.Request" representing the -// client's request for the UpdateResourceServer operation. The "output" return +// UpdateAuthEventFeedbackRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAuthEventFeedback operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateResourceServer for more information on using the UpdateResourceServer +// See UpdateAuthEventFeedback for more information on using the UpdateAuthEventFeedback // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateResourceServerRequest method. -// req, resp := client.UpdateResourceServerRequest(params) +// // Example sending a request using the UpdateAuthEventFeedbackRequest method. +// req, resp := client.UpdateAuthEventFeedbackRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateResourceServer -func (c *CognitoIdentityProvider) UpdateResourceServerRequest(input *UpdateResourceServerInput) (req *request.Request, output *UpdateResourceServerOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateAuthEventFeedback +func (c *CognitoIdentityProvider) UpdateAuthEventFeedbackRequest(input *UpdateAuthEventFeedbackInput) (req *request.Request, output *UpdateAuthEventFeedbackOutput) { op := &request.Operation{ - Name: opUpdateResourceServer, + Name: opUpdateAuthEventFeedback, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateResourceServerInput{} + input = &UpdateAuthEventFeedbackInput{} } - output = &UpdateResourceServerOutput{} + output = &UpdateAuthEventFeedbackOutput{} req = c.newRequest(op, input, output) return } -// UpdateResourceServer API operation for Amazon Cognito Identity Provider. +// UpdateAuthEventFeedback API operation for Amazon Cognito Identity Provider. // -// Updates the name and scopes of resource server. All other fields are read-only. +// Provides the feedback for an authentication event whether it was from a valid +// user or not. This feedback is used for improving the risk evaluation decision +// for the user pool as part of Amazon Cognito advanced security. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's -// API operation UpdateResourceServer for usage and error information. +// API operation UpdateAuthEventFeedback for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidParameterException "InvalidParameterException" @@ -8364,150 +8984,116 @@ func (c *CognitoIdentityProvider) UpdateResourceServerRequest(input *UpdateResou // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" -// This exception is thrown when a user is not authorized. -// // * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" -// This exception is thrown when Amazon Cognito encounters an internal error. +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateResourceServer -func (c *CognitoIdentityProvider) UpdateResourceServer(input *UpdateResourceServerInput) (*UpdateResourceServerOutput, error) { - req, out := c.UpdateResourceServerRequest(input) +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// This exception is thrown when user pool add-ons are not enabled. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateAuthEventFeedback +func (c *CognitoIdentityProvider) UpdateAuthEventFeedback(input *UpdateAuthEventFeedbackInput) (*UpdateAuthEventFeedbackOutput, error) { + req, out := c.UpdateAuthEventFeedbackRequest(input) return out, req.Send() } -// UpdateResourceServerWithContext is the same as UpdateResourceServer with the addition of +// UpdateAuthEventFeedbackWithContext is the same as UpdateAuthEventFeedback with the addition of // the ability to pass a context and additional request options. // -// See UpdateResourceServer for details on how to use this API operation. +// See UpdateAuthEventFeedback for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) UpdateResourceServerWithContext(ctx aws.Context, input *UpdateResourceServerInput, opts ...request.Option) (*UpdateResourceServerOutput, error) { - req, out := c.UpdateResourceServerRequest(input) +func (c *CognitoIdentityProvider) UpdateAuthEventFeedbackWithContext(ctx aws.Context, input *UpdateAuthEventFeedbackInput, opts ...request.Option) (*UpdateAuthEventFeedbackOutput, error) { + req, out := c.UpdateAuthEventFeedbackRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserAttributes = "UpdateUserAttributes" +const opUpdateDeviceStatus = "UpdateDeviceStatus" -// UpdateUserAttributesRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserAttributes operation. The "output" return +// UpdateDeviceStatusRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDeviceStatus operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateUserAttributes for more information on using the UpdateUserAttributes +// See UpdateDeviceStatus for more information on using the UpdateDeviceStatus // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateUserAttributesRequest method. -// req, resp := client.UpdateUserAttributesRequest(params) +// // Example sending a request using the UpdateDeviceStatusRequest method. +// req, resp := client.UpdateDeviceStatusRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributes -func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserAttributesInput) (req *request.Request, output *UpdateUserAttributesOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatus +func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceStatusInput) (req *request.Request, output *UpdateDeviceStatusOutput) { op := &request.Operation{ - Name: opUpdateUserAttributes, + Name: opUpdateDeviceStatus, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateUserAttributesInput{} + input = &UpdateDeviceStatusInput{} } - output = &UpdateUserAttributesOutput{} + output = &UpdateDeviceStatusOutput{} req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials return } -// UpdateUserAttributes API operation for Amazon Cognito Identity Provider. +// UpdateDeviceStatus API operation for Amazon Cognito Identity Provider. // -// Allows a user to update a specific attribute (one at a time). +// Updates the device status. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Cognito Identity Provider's -// API operation UpdateUserAttributes for usage and error information. +// API operation UpdateDeviceStatus for usage and error information. // // Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// This exception is thrown when the Amazon Cognito service cannot find the -// requested resource. -// // * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeCodeMismatchException "CodeMismatchException" -// This exception is thrown if the provided code does not match what the server -// was expecting. -// -// * ErrCodeExpiredCodeException "ExpiredCodeException" -// This exception is thrown if a code has expired. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. // // * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception is thrown when a user is not authorized. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" -// This exception is thrown when the Amazon Cognito service encounters an unexpected -// exception with the AWS Lambda service. -// -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" -// This exception is thrown when the Amazon Cognito service encounters a user -// validation exception with the AWS Lambda service. -// -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" -// This exception is thrown when the Amazon Cognito service encounters an invalid -// AWS Lambda response. +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// This exception is thrown when the user pool configuration is invalid. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeAliasExistsException "AliasExistsException" -// This exception is thrown when a user tries to confirm the account with an -// email or phone number that has already been supplied as an alias from a different -// account. This exception tells user that an account with this email or phone -// already exists. -// -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" -// This exception is returned when the role provided for SMS configuration does -// not have permission to publish using Amazon SNS. -// -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" -// This exception is thrown when the trust relationship is invalid for the role -// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com -// or the external ID provided in the role does not match what is provided in -// the SMS configuration for the user pool. -// -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" -// This exception is thrown when Amazon Cognito is not allowed to use your email -// identity. HTTP status code: 400. -// -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" -// This exception is thrown when a verification code fails to deliver successfully. -// // * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // @@ -8520,80 +9106,82 @@ func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserA // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributes -func (c *CognitoIdentityProvider) UpdateUserAttributes(input *UpdateUserAttributesInput) (*UpdateUserAttributesOutput, error) { - req, out := c.UpdateUserAttributesRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatus +func (c *CognitoIdentityProvider) UpdateDeviceStatus(input *UpdateDeviceStatusInput) (*UpdateDeviceStatusOutput, error) { + req, out := c.UpdateDeviceStatusRequest(input) return out, req.Send() } -// UpdateUserAttributesWithContext is the same as UpdateUserAttributes with the addition of +// UpdateDeviceStatusWithContext is the same as UpdateDeviceStatus with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserAttributes for details on how to use this API operation. +// See UpdateDeviceStatus for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) UpdateUserAttributesWithContext(ctx aws.Context, input *UpdateUserAttributesInput, opts ...request.Option) (*UpdateUserAttributesOutput, error) { - req, out := c.UpdateUserAttributesRequest(input) +func (c *CognitoIdentityProvider) UpdateDeviceStatusWithContext(ctx aws.Context, input *UpdateDeviceStatusInput, opts ...request.Option) (*UpdateDeviceStatusOutput, error) { + req, out := c.UpdateDeviceStatusRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserPool = "UpdateUserPool" +const opUpdateGroup = "UpdateGroup" -// UpdateUserPoolRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserPool operation. The "output" return +// UpdateGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGroup operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateUserPool for more information on using the UpdateUserPool +// See UpdateGroup for more information on using the UpdateGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateUserPoolRequest method. -// req, resp := client.UpdateUserPoolRequest(params) +// // Example sending a request using the UpdateGroupRequest method. +// req, resp := client.UpdateGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPool -func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInput) (req *request.Request, output *UpdateUserPoolOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroup +func (c *CognitoIdentityProvider) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { op := &request.Operation{ - Name: opUpdateUserPool, + Name: opUpdateGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateUserPoolInput{} + input = &UpdateGroupInput{} } - output = &UpdateUserPoolOutput{} + output = &UpdateGroupOutput{} req = c.newRequest(op, input, output) return } -// UpdateUserPool API operation for Amazon Cognito Identity Provider. +// UpdateGroup API operation for Amazon Cognito Identity Provider. // -// Updates the specified user pool with the specified attributes. +// Updates the specified group with the specified attributes. +// +// Requires developer credentials. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's -// API operation UpdateUserPool for usage and error information. +// API operation UpdateGroup for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFoundException "ResourceNotFoundException" @@ -8604,9 +9192,6 @@ func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInp // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// This exception is thrown if two or more modifications are happening concurrently. -// // * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception is thrown when the user has made too many requests for a given // operation. @@ -8614,206 +9199,275 @@ func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInp // * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception is thrown when a user is not authorized. // -// * ErrCodeUserImportInProgressException "UserImportInProgressException" -// This exception is thrown when you are trying to modify a user pool while -// a user import job is in progress for that pool. -// // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" -// This exception is returned when the role provided for SMS configuration does -// not have permission to publish using Amazon SNS. -// -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" -// This exception is thrown when the trust relationship is invalid for the role -// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com -// or the external ID provided in the role does not match what is provided in -// the SMS configuration for the user pool. -// -// * ErrCodeUserPoolTaggingException "UserPoolTaggingException" -// This exception is thrown when a user pool tag cannot be set or updated. -// -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" -// This exception is thrown when Amazon Cognito is not allowed to use your email -// identity. HTTP status code: 400. -// -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPool -func (c *CognitoIdentityProvider) UpdateUserPool(input *UpdateUserPoolInput) (*UpdateUserPoolOutput, error) { - req, out := c.UpdateUserPoolRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroup +func (c *CognitoIdentityProvider) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) return out, req.Send() } -// UpdateUserPoolWithContext is the same as UpdateUserPool with the addition of +// UpdateGroupWithContext is the same as UpdateGroup with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserPool for details on how to use this API operation. +// See UpdateGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) UpdateUserPoolWithContext(ctx aws.Context, input *UpdateUserPoolInput, opts ...request.Option) (*UpdateUserPoolOutput, error) { - req, out := c.UpdateUserPoolRequest(input) +func (c *CognitoIdentityProvider) UpdateGroupWithContext(ctx aws.Context, input *UpdateGroupInput, opts ...request.Option) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserPoolClient = "UpdateUserPoolClient" +const opUpdateIdentityProvider = "UpdateIdentityProvider" -// UpdateUserPoolClientRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserPoolClient operation. The "output" return +// UpdateIdentityProviderRequest generates a "aws/request.Request" representing the +// client's request for the UpdateIdentityProvider operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateUserPoolClient for more information on using the UpdateUserPoolClient +// See UpdateIdentityProvider for more information on using the UpdateIdentityProvider // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateUserPoolClientRequest method. -// req, resp := client.UpdateUserPoolClientRequest(params) +// // Example sending a request using the UpdateIdentityProviderRequest method. +// req, resp := client.UpdateIdentityProviderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClient -func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserPoolClientInput) (req *request.Request, output *UpdateUserPoolClientOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateIdentityProvider +func (c *CognitoIdentityProvider) UpdateIdentityProviderRequest(input *UpdateIdentityProviderInput) (req *request.Request, output *UpdateIdentityProviderOutput) { op := &request.Operation{ - Name: opUpdateUserPoolClient, + Name: opUpdateIdentityProvider, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateUserPoolClientInput{} + input = &UpdateIdentityProviderInput{} } - output = &UpdateUserPoolClientOutput{} + output = &UpdateIdentityProviderOutput{} req = c.newRequest(op, input, output) return } -// UpdateUserPoolClient API operation for Amazon Cognito Identity Provider. +// UpdateIdentityProvider API operation for Amazon Cognito Identity Provider. // -// Allows the developer to update the specified user pool client and password -// policy. +// Updates identity provider information for a user pool. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's -// API operation UpdateUserPoolClient for usage and error information. +// API operation UpdateIdentityProvider for usage and error information. // // Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// This exception is thrown when the Amazon Cognito service cannot find the -// requested resource. -// // * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// This exception is thrown when the user has made too many requests for a given -// operation. +// * ErrCodeUnsupportedIdentityProviderException "UnsupportedIdentityProviderException" +// This exception is thrown when the specified identifier is not supported. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. // // * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception is thrown when a user is not authorized. // -// * ErrCodeScopeDoesNotExistException "ScopeDoesNotExistException" -// This exception is thrown when the specified scope does not exist. -// -// * ErrCodeInvalidOAuthFlowException "InvalidOAuthFlowException" -// This exception is thrown when the specified OAuth flow is invalid. +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. // // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClient -func (c *CognitoIdentityProvider) UpdateUserPoolClient(input *UpdateUserPoolClientInput) (*UpdateUserPoolClientOutput, error) { - req, out := c.UpdateUserPoolClientRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateIdentityProvider +func (c *CognitoIdentityProvider) UpdateIdentityProvider(input *UpdateIdentityProviderInput) (*UpdateIdentityProviderOutput, error) { + req, out := c.UpdateIdentityProviderRequest(input) return out, req.Send() } -// UpdateUserPoolClientWithContext is the same as UpdateUserPoolClient with the addition of +// UpdateIdentityProviderWithContext is the same as UpdateIdentityProvider with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserPoolClient for details on how to use this API operation. +// See UpdateIdentityProvider for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) UpdateUserPoolClientWithContext(ctx aws.Context, input *UpdateUserPoolClientInput, opts ...request.Option) (*UpdateUserPoolClientOutput, error) { - req, out := c.UpdateUserPoolClientRequest(input) +func (c *CognitoIdentityProvider) UpdateIdentityProviderWithContext(ctx aws.Context, input *UpdateIdentityProviderInput, opts ...request.Option) (*UpdateIdentityProviderOutput, error) { + req, out := c.UpdateIdentityProviderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opVerifyUserAttribute = "VerifyUserAttribute" +const opUpdateResourceServer = "UpdateResourceServer" -// VerifyUserAttributeRequest generates a "aws/request.Request" representing the -// client's request for the VerifyUserAttribute operation. The "output" return +// UpdateResourceServerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateResourceServer operation. The "output" return // value will be populated with the request's response once the request complets // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See VerifyUserAttribute for more information on using the VerifyUserAttribute +// See UpdateResourceServer for more information on using the UpdateResourceServer // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the VerifyUserAttributeRequest method. -// req, resp := client.VerifyUserAttributeRequest(params) +// // Example sending a request using the UpdateResourceServerRequest method. +// req, resp := client.UpdateResourceServerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttribute -func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAttributeInput) (req *request.Request, output *VerifyUserAttributeOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateResourceServer +func (c *CognitoIdentityProvider) UpdateResourceServerRequest(input *UpdateResourceServerInput) (req *request.Request, output *UpdateResourceServerOutput) { op := &request.Operation{ - Name: opVerifyUserAttribute, + Name: opUpdateResourceServer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &VerifyUserAttributeInput{} + input = &UpdateResourceServerInput{} } - output = &VerifyUserAttributeOutput{} + output = &UpdateResourceServerOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateResourceServer API operation for Amazon Cognito Identity Provider. +// +// Updates the name and scopes of resource server. All other fields are read-only. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation UpdateResourceServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateResourceServer +func (c *CognitoIdentityProvider) UpdateResourceServer(input *UpdateResourceServerInput) (*UpdateResourceServerOutput, error) { + req, out := c.UpdateResourceServerRequest(input) + return out, req.Send() +} + +// UpdateResourceServerWithContext is the same as UpdateResourceServer with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateResourceServer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) UpdateResourceServerWithContext(ctx aws.Context, input *UpdateResourceServerInput, opts ...request.Option) (*UpdateResourceServerOutput, error) { + req, out := c.UpdateResourceServerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUserAttributes = "UpdateUserAttributes" + +// UpdateUserAttributesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserAttributes operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateUserAttributes for more information on using the UpdateUserAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateUserAttributesRequest method. +// req, resp := client.UpdateUserAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributes +func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserAttributesInput) (req *request.Request, output *UpdateUserAttributesOutput) { + op := &request.Operation{ + Name: opUpdateUserAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateUserAttributesInput{} + } + + output = &UpdateUserAttributesOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials return } -// VerifyUserAttribute API operation for Amazon Cognito Identity Provider. +// UpdateUserAttributes API operation for Amazon Cognito Identity Provider. // -// Verifies the specified user attributes in the user pool. +// Allows a user to update a specific attribute (one at a time). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Cognito Identity Provider's -// API operation VerifyUserAttribute for usage and error information. +// API operation UpdateUserAttributes for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFoundException "ResourceNotFoundException" @@ -8834,13 +9488,44 @@ func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAt // * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception is thrown when a user is not authorized. // +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// This exception is thrown when the Amazon Cognito service encounters an unexpected +// exception with the AWS Lambda service. +// +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// This exception is thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// // * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" -// This exception is thrown when a user exceeds the limit for a requested AWS -// resource. +// * ErrCodeAliasExistsException "AliasExistsException" +// This exception is thrown when a user tries to confirm the account with an +// email or phone number that has already been supplied as an alias from a different +// account. This exception tells user that an account with this email or phone +// already exists. +// +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// This exception is thrown when a verification code fails to deliver successfully. // // * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. @@ -8854,122 +9539,2481 @@ func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAt // * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttribute -func (c *CognitoIdentityProvider) VerifyUserAttribute(input *VerifyUserAttributeInput) (*VerifyUserAttributeOutput, error) { - req, out := c.VerifyUserAttributeRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributes +func (c *CognitoIdentityProvider) UpdateUserAttributes(input *UpdateUserAttributesInput) (*UpdateUserAttributesOutput, error) { + req, out := c.UpdateUserAttributesRequest(input) return out, req.Send() } -// VerifyUserAttributeWithContext is the same as VerifyUserAttribute with the addition of +// UpdateUserAttributesWithContext is the same as UpdateUserAttributes with the addition of // the ability to pass a context and additional request options. // -// See VerifyUserAttribute for details on how to use this API operation. +// See UpdateUserAttributes for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CognitoIdentityProvider) VerifyUserAttributeWithContext(ctx aws.Context, input *VerifyUserAttributeInput, opts ...request.Option) (*VerifyUserAttributeOutput, error) { - req, out := c.VerifyUserAttributeRequest(input) +func (c *CognitoIdentityProvider) UpdateUserAttributesWithContext(ctx aws.Context, input *UpdateUserAttributesInput, opts ...request.Option) (*UpdateUserAttributesOutput, error) { + req, out := c.UpdateUserAttributesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// Represents the request to add custom attributes. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributesRequest -type AddCustomAttributesInput struct { - _ struct{} `type:"structure"` - - // An array of custom attributes, such as Mutable and Name. - // - // CustomAttributes is a required field - CustomAttributes []*SchemaAttributeType `min:"1" type:"list" required:"true"` - - // The user pool ID for the user pool where you want to add custom attributes. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AddCustomAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddCustomAttributesInput) GoString() string { - return s.String() -} +const opUpdateUserPool = "UpdateUserPool" -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddCustomAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddCustomAttributesInput"} - if s.CustomAttributes == nil { - invalidParams.Add(request.NewErrParamRequired("CustomAttributes")) - } - if s.CustomAttributes != nil && len(s.CustomAttributes) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CustomAttributes", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.CustomAttributes != nil { - for i, v := range s.CustomAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomAttributes", i), err.(request.ErrInvalidParams)) - } - } +// UpdateUserPoolRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserPool operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateUserPool for more information on using the UpdateUserPool +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateUserPoolRequest method. +// req, resp := client.UpdateUserPoolRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPool +func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInput) (req *request.Request, output *UpdateUserPoolOutput) { + op := &request.Operation{ + Name: opUpdateUserPool, + HTTPMethod: "POST", + HTTPPath: "/", } - if invalidParams.Len() > 0 { - return invalidParams + if input == nil { + input = &UpdateUserPoolInput{} } - return nil -} - -// SetCustomAttributes sets the CustomAttributes field's value. -func (s *AddCustomAttributesInput) SetCustomAttributes(v []*SchemaAttributeType) *AddCustomAttributesInput { - s.CustomAttributes = v - return s -} -// SetUserPoolId sets the UserPoolId field's value. -func (s *AddCustomAttributesInput) SetUserPoolId(v string) *AddCustomAttributesInput { - s.UserPoolId = &v - return s + output = &UpdateUserPoolOutput{} + req = c.newRequest(op, input, output) + return } -// Represents the response from the server for the request to add custom attributes. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributesResponse -type AddCustomAttributesOutput struct { - _ struct{} `type:"structure"` -} +// UpdateUserPool API operation for Amazon Cognito Identity Provider. +// +// Updates the specified user pool with the specified attributes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's +// API operation UpdateUserPool for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// This exception is thrown if two or more modifications are happening concurrently. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeUserImportInProgressException "UserImportInProgressException" +// This exception is thrown when you are trying to modify a user pool while +// a user import job is in progress for that pool. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * ErrCodeUserPoolTaggingException "UserPoolTaggingException" +// This exception is thrown when a user pool tag cannot be set or updated. +// +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPool +func (c *CognitoIdentityProvider) UpdateUserPool(input *UpdateUserPoolInput) (*UpdateUserPoolOutput, error) { + req, out := c.UpdateUserPoolRequest(input) + return out, req.Send() +} + +// UpdateUserPoolWithContext is the same as UpdateUserPool with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserPool for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) UpdateUserPoolWithContext(ctx aws.Context, input *UpdateUserPoolInput, opts ...request.Option) (*UpdateUserPoolOutput, error) { + req, out := c.UpdateUserPoolRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUserPoolClient = "UpdateUserPoolClient" + +// UpdateUserPoolClientRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserPoolClient operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateUserPoolClient for more information on using the UpdateUserPoolClient +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateUserPoolClientRequest method. +// req, resp := client.UpdateUserPoolClientRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClient +func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserPoolClientInput) (req *request.Request, output *UpdateUserPoolClientOutput) { + op := &request.Operation{ + Name: opUpdateUserPoolClient, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateUserPoolClientInput{} + } + + output = &UpdateUserPoolClientOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateUserPoolClient API operation for Amazon Cognito Identity Provider. +// +// Allows the developer to update the specified user pool client and password +// policy. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation UpdateUserPoolClient for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// This exception is thrown if two or more modifications are happening concurrently. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeScopeDoesNotExistException "ScopeDoesNotExistException" +// This exception is thrown when the specified scope does not exist. +// +// * ErrCodeInvalidOAuthFlowException "InvalidOAuthFlowException" +// This exception is thrown when the specified OAuth flow is invalid. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClient +func (c *CognitoIdentityProvider) UpdateUserPoolClient(input *UpdateUserPoolClientInput) (*UpdateUserPoolClientOutput, error) { + req, out := c.UpdateUserPoolClientRequest(input) + return out, req.Send() +} + +// UpdateUserPoolClientWithContext is the same as UpdateUserPoolClient with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserPoolClient for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) UpdateUserPoolClientWithContext(ctx aws.Context, input *UpdateUserPoolClientInput, opts ...request.Option) (*UpdateUserPoolClientOutput, error) { + req, out := c.UpdateUserPoolClientRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opVerifySoftwareToken = "VerifySoftwareToken" + +// VerifySoftwareTokenRequest generates a "aws/request.Request" representing the +// client's request for the VerifySoftwareToken operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See VerifySoftwareToken for more information on using the VerifySoftwareToken +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the VerifySoftwareTokenRequest method. +// req, resp := client.VerifySoftwareTokenRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifySoftwareToken +func (c *CognitoIdentityProvider) VerifySoftwareTokenRequest(input *VerifySoftwareTokenInput) (req *request.Request, output *VerifySoftwareTokenOutput) { + op := &request.Operation{ + Name: opVerifySoftwareToken, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &VerifySoftwareTokenInput{} + } + + output = &VerifySoftwareTokenOutput{} + req = c.newRequest(op, input, output) + return +} + +// VerifySoftwareToken API operation for Amazon Cognito Identity Provider. +// +// Use this API to register a user's entered TOTP code and mark the user's software +// token MFA status as "verified" if successful, +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's +// API operation VerifySoftwareToken for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// This exception is thrown when the user pool configuration is invalid. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// This exception is thrown when a password reset is required. +// +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// This exception is thrown when a user is not confirmed successfully. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * ErrCodeEnableSoftwareTokenMFAException "EnableSoftwareTokenMFAException" +// This exception is thrown when there is a code mismatch and the service fails +// to configure the software token TOTP multi-factor authentication (MFA). +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeSoftwareTokenMFANotFoundException "SoftwareTokenMFANotFoundException" +// This exception is thrown when the software token TOTP multi-factor authentication +// (MFA) is not enabled for the user pool. +// +// * ErrCodeCodeMismatchException "CodeMismatchException" +// This exception is thrown if the provided code does not match what the server +// was expecting. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifySoftwareToken +func (c *CognitoIdentityProvider) VerifySoftwareToken(input *VerifySoftwareTokenInput) (*VerifySoftwareTokenOutput, error) { + req, out := c.VerifySoftwareTokenRequest(input) + return out, req.Send() +} + +// VerifySoftwareTokenWithContext is the same as VerifySoftwareToken with the addition of +// the ability to pass a context and additional request options. +// +// See VerifySoftwareToken for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) VerifySoftwareTokenWithContext(ctx aws.Context, input *VerifySoftwareTokenInput, opts ...request.Option) (*VerifySoftwareTokenOutput, error) { + req, out := c.VerifySoftwareTokenRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opVerifyUserAttribute = "VerifyUserAttribute" + +// VerifyUserAttributeRequest generates a "aws/request.Request" representing the +// client's request for the VerifyUserAttribute operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See VerifyUserAttribute for more information on using the VerifyUserAttribute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the VerifyUserAttributeRequest method. +// req, resp := client.VerifyUserAttributeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttribute +func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAttributeInput) (req *request.Request, output *VerifyUserAttributeOutput) { + op := &request.Operation{ + Name: opVerifyUserAttribute, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &VerifyUserAttributeInput{} + } + + output = &VerifyUserAttributeOutput{} + req = c.newRequest(op, input, output) + req.Config.Credentials = credentials.AnonymousCredentials + return +} + +// VerifyUserAttribute API operation for Amazon Cognito Identity Provider. +// +// Verifies the specified user attributes in the user pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Cognito Identity Provider's +// API operation VerifyUserAttribute for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeCodeMismatchException "CodeMismatchException" +// This exception is thrown if the provided code does not match what the server +// was expecting. +// +// * ErrCodeExpiredCodeException "ExpiredCodeException" +// This exception is thrown if a code has expired. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception is thrown when a user is not authorized. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception is thrown when the user has made too many requests for a given +// operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// This exception is thrown when a password reset is required. +// +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// This exception is thrown when a user is not confirmed successfully. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttribute +func (c *CognitoIdentityProvider) VerifyUserAttribute(input *VerifyUserAttributeInput) (*VerifyUserAttributeOutput, error) { + req, out := c.VerifyUserAttributeRequest(input) + return out, req.Send() +} + +// VerifyUserAttributeWithContext is the same as VerifyUserAttribute with the addition of +// the ability to pass a context and additional request options. +// +// See VerifyUserAttribute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CognitoIdentityProvider) VerifyUserAttributeWithContext(ctx aws.Context, input *VerifyUserAttributeInput, opts ...request.Option) (*VerifyUserAttributeOutput, error) { + req, out := c.VerifyUserAttributeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Account takeover action type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AccountTakeoverActionType +type AccountTakeoverActionType struct { + _ struct{} `type:"structure"` + + // The event action. + // + // * BLOCK Choosing this action will block the request. + // + // * MFA_IF_CONFIGURED Throw MFA challenge if user has configured it, else + // allow the request. + // + // * MFA_REQUIRED Throw MFA challenge if user has configured it, else block + // the request. + // + // * NO_ACTION Allow the user sign-in. + // + // EventAction is a required field + EventAction *string `type:"string" required:"true" enum:"AccountTakeoverEventActionType"` + + // Flag specifying whether to send a notification. + // + // Notify is a required field + Notify *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s AccountTakeoverActionType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountTakeoverActionType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AccountTakeoverActionType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AccountTakeoverActionType"} + if s.EventAction == nil { + invalidParams.Add(request.NewErrParamRequired("EventAction")) + } + if s.Notify == nil { + invalidParams.Add(request.NewErrParamRequired("Notify")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEventAction sets the EventAction field's value. +func (s *AccountTakeoverActionType) SetEventAction(v string) *AccountTakeoverActionType { + s.EventAction = &v + return s +} + +// SetNotify sets the Notify field's value. +func (s *AccountTakeoverActionType) SetNotify(v bool) *AccountTakeoverActionType { + s.Notify = &v + return s +} + +// Account takeover actions type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AccountTakeoverActionsType +type AccountTakeoverActionsType struct { + _ struct{} `type:"structure"` + + // Action to take for a high risk. + HighAction *AccountTakeoverActionType `type:"structure"` + + // Action to take for a low risk. + LowAction *AccountTakeoverActionType `type:"structure"` + + // Action to take for a medium risk. + MediumAction *AccountTakeoverActionType `type:"structure"` +} + +// String returns the string representation +func (s AccountTakeoverActionsType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountTakeoverActionsType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AccountTakeoverActionsType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AccountTakeoverActionsType"} + if s.HighAction != nil { + if err := s.HighAction.Validate(); err != nil { + invalidParams.AddNested("HighAction", err.(request.ErrInvalidParams)) + } + } + if s.LowAction != nil { + if err := s.LowAction.Validate(); err != nil { + invalidParams.AddNested("LowAction", err.(request.ErrInvalidParams)) + } + } + if s.MediumAction != nil { + if err := s.MediumAction.Validate(); err != nil { + invalidParams.AddNested("MediumAction", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHighAction sets the HighAction field's value. +func (s *AccountTakeoverActionsType) SetHighAction(v *AccountTakeoverActionType) *AccountTakeoverActionsType { + s.HighAction = v + return s +} + +// SetLowAction sets the LowAction field's value. +func (s *AccountTakeoverActionsType) SetLowAction(v *AccountTakeoverActionType) *AccountTakeoverActionsType { + s.LowAction = v + return s +} + +// SetMediumAction sets the MediumAction field's value. +func (s *AccountTakeoverActionsType) SetMediumAction(v *AccountTakeoverActionType) *AccountTakeoverActionsType { + s.MediumAction = v + return s +} + +// Configuration for mitigation actions and notification for different levels +// of risk detected for a potential account takeover. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AccountTakeoverRiskConfigurationType +type AccountTakeoverRiskConfigurationType struct { + _ struct{} `type:"structure"` + + // Account takeover risk configuration actions + // + // Actions is a required field + Actions *AccountTakeoverActionsType `type:"structure" required:"true"` + + // The notify configuration used to construct email notifications. + NotifyConfiguration *NotifyConfigurationType `type:"structure"` +} + +// String returns the string representation +func (s AccountTakeoverRiskConfigurationType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountTakeoverRiskConfigurationType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AccountTakeoverRiskConfigurationType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AccountTakeoverRiskConfigurationType"} + if s.Actions == nil { + invalidParams.Add(request.NewErrParamRequired("Actions")) + } + if s.Actions != nil { + if err := s.Actions.Validate(); err != nil { + invalidParams.AddNested("Actions", err.(request.ErrInvalidParams)) + } + } + if s.NotifyConfiguration != nil { + if err := s.NotifyConfiguration.Validate(); err != nil { + invalidParams.AddNested("NotifyConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActions sets the Actions field's value. +func (s *AccountTakeoverRiskConfigurationType) SetActions(v *AccountTakeoverActionsType) *AccountTakeoverRiskConfigurationType { + s.Actions = v + return s +} + +// SetNotifyConfiguration sets the NotifyConfiguration field's value. +func (s *AccountTakeoverRiskConfigurationType) SetNotifyConfiguration(v *NotifyConfigurationType) *AccountTakeoverRiskConfigurationType { + s.NotifyConfiguration = v + return s +} + +// Represents the request to add custom attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributesRequest +type AddCustomAttributesInput struct { + _ struct{} `type:"structure"` + + // An array of custom attributes, such as Mutable and Name. + // + // CustomAttributes is a required field + CustomAttributes []*SchemaAttributeType `min:"1" type:"list" required:"true"` + + // The user pool ID for the user pool where you want to add custom attributes. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AddCustomAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddCustomAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddCustomAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddCustomAttributesInput"} + if s.CustomAttributes == nil { + invalidParams.Add(request.NewErrParamRequired("CustomAttributes")) + } + if s.CustomAttributes != nil && len(s.CustomAttributes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomAttributes", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.CustomAttributes != nil { + for i, v := range s.CustomAttributes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomAttributes", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCustomAttributes sets the CustomAttributes field's value. +func (s *AddCustomAttributesInput) SetCustomAttributes(v []*SchemaAttributeType) *AddCustomAttributesInput { + s.CustomAttributes = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AddCustomAttributesInput) SetUserPoolId(v string) *AddCustomAttributesInput { + s.UserPoolId = &v + return s +} + +// Represents the response from the server for the request to add custom attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributesResponse +type AddCustomAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AddCustomAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddCustomAttributesOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroupRequest +type AdminAddUserToGroupInput struct { + _ struct{} `type:"structure"` + + // The group name. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The username for the user. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminAddUserToGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminAddUserToGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminAddUserToGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminAddUserToGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupName sets the GroupName field's value. +func (s *AdminAddUserToGroupInput) SetGroupName(v string) *AdminAddUserToGroupInput { + s.GroupName = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminAddUserToGroupInput) SetUserPoolId(v string) *AdminAddUserToGroupInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminAddUserToGroupInput) SetUsername(v string) *AdminAddUserToGroupInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroupOutput +type AdminAddUserToGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminAddUserToGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminAddUserToGroupOutput) GoString() string { + return s.String() +} + +// Represents the request to confirm user registration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUpRequest +type AdminConfirmSignUpInput struct { + _ struct{} `type:"structure"` + + // The user pool ID for which you want to confirm user registration. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name for which you want to confirm user registration. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminConfirmSignUpInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminConfirmSignUpInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminConfirmSignUpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminConfirmSignUpInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminConfirmSignUpInput) SetUserPoolId(v string) *AdminConfirmSignUpInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminConfirmSignUpInput) SetUsername(v string) *AdminConfirmSignUpInput { + s.Username = &v + return s +} + +// Represents the response from the server for the request to confirm registration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUpResponse +type AdminConfirmSignUpOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminConfirmSignUpOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminConfirmSignUpOutput) GoString() string { + return s.String() +} + +// The configuration for creating a new user profile. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserConfigType +type AdminCreateUserConfigType struct { + _ struct{} `type:"structure"` + + // Set to True if only the administrator is allowed to create user profiles. + // Set to False if users can sign themselves up via an app. + AllowAdminCreateUserOnly *bool `type:"boolean"` + + // The message template to be used for the welcome message to new users. + // + // See also Customizing User Invitation Messages (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization). + InviteMessageTemplate *MessageTemplateType `type:"structure"` + + // The user account expiration limit, in days, after which the account is no + // longer usable. To reset the account after that time limit, you must call + // AdminCreateUser again, specifying "RESEND" for the MessageAction parameter. + // The default value for this parameter is 7. + UnusedAccountValidityDays *int64 `type:"integer"` +} + +// String returns the string representation +func (s AdminCreateUserConfigType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminCreateUserConfigType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminCreateUserConfigType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminCreateUserConfigType"} + if s.InviteMessageTemplate != nil { + if err := s.InviteMessageTemplate.Validate(); err != nil { + invalidParams.AddNested("InviteMessageTemplate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowAdminCreateUserOnly sets the AllowAdminCreateUserOnly field's value. +func (s *AdminCreateUserConfigType) SetAllowAdminCreateUserOnly(v bool) *AdminCreateUserConfigType { + s.AllowAdminCreateUserOnly = &v + return s +} + +// SetInviteMessageTemplate sets the InviteMessageTemplate field's value. +func (s *AdminCreateUserConfigType) SetInviteMessageTemplate(v *MessageTemplateType) *AdminCreateUserConfigType { + s.InviteMessageTemplate = v + return s +} + +// SetUnusedAccountValidityDays sets the UnusedAccountValidityDays field's value. +func (s *AdminCreateUserConfigType) SetUnusedAccountValidityDays(v int64) *AdminCreateUserConfigType { + s.UnusedAccountValidityDays = &v + return s +} + +// Represents the request to create a user in the specified user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserRequest +type AdminCreateUserInput struct { + _ struct{} `type:"structure"` + + // Specify "EMAIL" if email will be used to send the welcome message. Specify + // "SMS" if the phone number will be used. The default value is "SMS". More + // than one value can be specified. + DesiredDeliveryMediums []*string `type:"list"` + + // This parameter is only used if the phone_number_verified or email_verified + // attribute is set to True. Otherwise, it is ignored. + // + // If this parameter is set to True and the phone number or email address specified + // in the UserAttributes parameter already exists as an alias with a different + // user, the API call will migrate the alias from the previous user to the newly + // created user. The previous user will no longer be able to log in using that + // alias. + // + // If this parameter is set to False, the API throws an AliasExistsException + // error if the alias already exists. The default value is False. + ForceAliasCreation *bool `type:"boolean"` + + // Set to "RESEND" to resend the invitation message to a user that already exists + // and reset the expiration limit on the user's account. Set to "SUPPRESS" to + // suppress sending the message. Only one value can be specified. + MessageAction *string `type:"string" enum:"MessageActionType"` + + // The user's temporary password. This password must conform to the password + // policy that you specified when you created the user pool. + // + // The temporary password is valid only once. To complete the Admin Create User + // flow, the user must enter the temporary password in the sign-in page along + // with a new password to be used in all future sign-ins. + // + // This parameter is not required. If you do not specify a value, Amazon Cognito + // generates one for you. + // + // The temporary password can only be used until the user account expiration + // limit that you specified when you created the user pool. To reset the account + // after that time limit, you must call AdminCreateUser again, specifying "RESEND" + // for the MessageAction parameter. + TemporaryPassword *string `min:"6" type:"string"` + + // An array of name-value pairs that contain user attributes and attribute values + // to be set for the user to be created. You can create a user without specifying + // any attributes other than Username. However, any attributes that you specify + // as required (in or in the Attributes tab of the console) must be supplied + // either by you (in your call to AdminCreateUser) or by the user (when he or + // she signs up in response to your welcome message). + // + // For custom attributes, you must prepend the custom: prefix to the attribute + // name. + // + // To send a message inviting the user to sign up, you must specify the user's + // email address or phone number. This can be done in your call to AdminCreateUser + // or in the Users tab of the Amazon Cognito console for managing your user + // pools. + // + // In your call to AdminCreateUser, you can set the email_verified attribute + // to True, and you can set the phone_number_verified attribute to True. (You + // can also do this by calling .) + // + // * email: The email address of the user to whom the message that contains + // the code and username will be sent. Required if the email_verified attribute + // is set to True, or if "EMAIL" is specified in the DesiredDeliveryMediums + // parameter. + // + // * phone_number: The phone number of the user to whom the message that + // contains the code and username will be sent. Required if the phone_number_verified + // attribute is set to True, or if "SMS" is specified in the DesiredDeliveryMediums + // parameter. + UserAttributes []*AttributeType `type:"list"` + + // The user pool ID for the user pool where the user will be created. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The username for the user. Must be unique within the user pool. Must be a + // UTF-8 string between 1 and 128 characters. After the user is created, the + // username cannot be changed. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` + + // The user's validation data. This is an array of name-value pairs that contain + // user attributes and attribute values that you can use for custom validation, + // such as restricting the types of user accounts that can be registered. For + // example, you might choose to allow or disallow user sign-up based on the + // user's domain. + // + // To configure custom validation, you must create a Pre Sign-up Lambda trigger + // for the user pool as described in the Amazon Cognito Developer Guide. The + // Lambda trigger receives the validation data and uses it in the validation + // process. + // + // The user's validation data is not persisted. + ValidationData []*AttributeType `type:"list"` +} + +// String returns the string representation +func (s AdminCreateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminCreateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminCreateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminCreateUserInput"} + if s.TemporaryPassword != nil && len(*s.TemporaryPassword) < 6 { + invalidParams.Add(request.NewErrParamMinLen("TemporaryPassword", 6)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + if s.UserAttributes != nil { + for i, v := range s.UserAttributes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams)) + } + } + } + if s.ValidationData != nil { + for i, v := range s.ValidationData { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationData", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDesiredDeliveryMediums sets the DesiredDeliveryMediums field's value. +func (s *AdminCreateUserInput) SetDesiredDeliveryMediums(v []*string) *AdminCreateUserInput { + s.DesiredDeliveryMediums = v + return s +} + +// SetForceAliasCreation sets the ForceAliasCreation field's value. +func (s *AdminCreateUserInput) SetForceAliasCreation(v bool) *AdminCreateUserInput { + s.ForceAliasCreation = &v + return s +} + +// SetMessageAction sets the MessageAction field's value. +func (s *AdminCreateUserInput) SetMessageAction(v string) *AdminCreateUserInput { + s.MessageAction = &v + return s +} + +// SetTemporaryPassword sets the TemporaryPassword field's value. +func (s *AdminCreateUserInput) SetTemporaryPassword(v string) *AdminCreateUserInput { + s.TemporaryPassword = &v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *AdminCreateUserInput) SetUserAttributes(v []*AttributeType) *AdminCreateUserInput { + s.UserAttributes = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminCreateUserInput) SetUserPoolId(v string) *AdminCreateUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminCreateUserInput) SetUsername(v string) *AdminCreateUserInput { + s.Username = &v + return s +} + +// SetValidationData sets the ValidationData field's value. +func (s *AdminCreateUserInput) SetValidationData(v []*AttributeType) *AdminCreateUserInput { + s.ValidationData = v + return s +} + +// Represents the response from the server to the request to create the user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserResponse +type AdminCreateUserOutput struct { + _ struct{} `type:"structure"` + + // The newly created user. + User *UserType `type:"structure"` +} + +// String returns the string representation +func (s AdminCreateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminCreateUserOutput) GoString() string { + return s.String() +} + +// SetUser sets the User field's value. +func (s *AdminCreateUserOutput) SetUser(v *UserType) *AdminCreateUserOutput { + s.User = v + return s +} + +// Represents the request to delete user attributes as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributesRequest +type AdminDeleteUserAttributesInput struct { + _ struct{} `type:"structure"` + + // An array of strings representing the user attribute names you wish to delete. + // + // For custom attributes, you must prepend the custom: prefix to the attribute + // name. + // + // UserAttributeNames is a required field + UserAttributeNames []*string `type:"list" required:"true"` + + // The user pool ID for the user pool where you want to delete user attributes. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name of the user from which you would like to delete attributes. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminDeleteUserAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminDeleteUserAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminDeleteUserAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserAttributesInput"} + if s.UserAttributeNames == nil { + invalidParams.Add(request.NewErrParamRequired("UserAttributeNames")) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserAttributeNames sets the UserAttributeNames field's value. +func (s *AdminDeleteUserAttributesInput) SetUserAttributeNames(v []*string) *AdminDeleteUserAttributesInput { + s.UserAttributeNames = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminDeleteUserAttributesInput) SetUserPoolId(v string) *AdminDeleteUserAttributesInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminDeleteUserAttributesInput) SetUsername(v string) *AdminDeleteUserAttributesInput { + s.Username = &v + return s +} + +// Represents the response received from the server for a request to delete +// user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributesResponse +type AdminDeleteUserAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminDeleteUserAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminDeleteUserAttributesOutput) GoString() string { + return s.String() +} + +// Represents the request to delete a user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserRequest +type AdminDeleteUserInput struct { + _ struct{} `type:"structure"` + + // The user pool ID for the user pool where you want to delete the user. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name of the user you wish to delete. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminDeleteUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminDeleteUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminDeleteUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminDeleteUserInput) SetUserPoolId(v string) *AdminDeleteUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminDeleteUserInput) SetUsername(v string) *AdminDeleteUserInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserOutput +type AdminDeleteUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminDeleteUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminDeleteUserOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableProviderForUserRequest +type AdminDisableProviderForUserInput struct { + _ struct{} `type:"structure"` + + // The user to be disabled. + // + // User is a required field + User *ProviderUserIdentifierType `type:"structure" required:"true"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminDisableProviderForUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminDisableProviderForUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminDisableProviderForUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminDisableProviderForUserInput"} + if s.User == nil { + invalidParams.Add(request.NewErrParamRequired("User")) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.User != nil { + if err := s.User.Validate(); err != nil { + invalidParams.AddNested("User", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUser sets the User field's value. +func (s *AdminDisableProviderForUserInput) SetUser(v *ProviderUserIdentifierType) *AdminDisableProviderForUserInput { + s.User = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminDisableProviderForUserInput) SetUserPoolId(v string) *AdminDisableProviderForUserInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableProviderForUserResponse +type AdminDisableProviderForUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminDisableProviderForUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminDisableProviderForUserOutput) GoString() string { + return s.String() +} + +// Represents the request to disable any user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUserRequest +type AdminDisableUserInput struct { + _ struct{} `type:"structure"` + + // The user pool ID for the user pool where you want to disable the user. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name of the user you wish to disable. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminDisableUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminDisableUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminDisableUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminDisableUserInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminDisableUserInput) SetUserPoolId(v string) *AdminDisableUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminDisableUserInput) SetUsername(v string) *AdminDisableUserInput { + s.Username = &v + return s +} + +// Represents the response received from the server to disable the user as an +// administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUserResponse +type AdminDisableUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminDisableUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminDisableUserOutput) GoString() string { + return s.String() +} + +// Represents the request that enables the user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUserRequest +type AdminEnableUserInput struct { + _ struct{} `type:"structure"` + + // The user pool ID for the user pool where you want to enable the user. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name of the user you wish to enable. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminEnableUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminEnableUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminEnableUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminEnableUserInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminEnableUserInput) SetUserPoolId(v string) *AdminEnableUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminEnableUserInput) SetUsername(v string) *AdminEnableUserInput { + s.Username = &v + return s +} + +// Represents the response from the server for the request to enable a user +// as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUserResponse +type AdminEnableUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminEnableUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminEnableUserOutput) GoString() string { + return s.String() +} + +// Sends the forgot device request, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDeviceRequest +type AdminForgetDeviceInput struct { + _ struct{} `type:"structure"` + + // The device key. + // + // DeviceKey is a required field + DeviceKey *string `min:"1" type:"string" required:"true"` + + // The user pool ID. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminForgetDeviceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminForgetDeviceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminForgetDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminForgetDeviceInput"} + if s.DeviceKey == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceKey")) + } + if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *AdminForgetDeviceInput) SetDeviceKey(v string) *AdminForgetDeviceInput { + s.DeviceKey = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminForgetDeviceInput) SetUserPoolId(v string) *AdminForgetDeviceInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminForgetDeviceInput) SetUsername(v string) *AdminForgetDeviceInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDeviceOutput +type AdminForgetDeviceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminForgetDeviceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminForgetDeviceOutput) GoString() string { + return s.String() +} + +// Represents the request to get the device, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDeviceRequest +type AdminGetDeviceInput struct { + _ struct{} `type:"structure"` + + // The device key. + // + // DeviceKey is a required field + DeviceKey *string `min:"1" type:"string" required:"true"` + + // The user pool ID. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminGetDeviceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminGetDeviceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminGetDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminGetDeviceInput"} + if s.DeviceKey == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceKey")) + } + if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *AdminGetDeviceInput) SetDeviceKey(v string) *AdminGetDeviceInput { + s.DeviceKey = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminGetDeviceInput) SetUserPoolId(v string) *AdminGetDeviceInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminGetDeviceInput) SetUsername(v string) *AdminGetDeviceInput { + s.Username = &v + return s +} + +// Gets the device response, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDeviceResponse +type AdminGetDeviceOutput struct { + _ struct{} `type:"structure"` + + // The device. + // + // Device is a required field + Device *DeviceType `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AdminGetDeviceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminGetDeviceOutput) GoString() string { + return s.String() +} + +// SetDevice sets the Device field's value. +func (s *AdminGetDeviceOutput) SetDevice(v *DeviceType) *AdminGetDeviceOutput { + s.Device = v + return s +} + +// Represents the request to get the specified user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUserRequest +type AdminGetUserInput struct { + _ struct{} `type:"structure"` + + // The user pool ID for the user pool where you want to get information about + // the user. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name of the user you wish to retrieve. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminGetUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminGetUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminGetUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminGetUserInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminGetUserInput) SetUserPoolId(v string) *AdminGetUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminGetUserInput) SetUsername(v string) *AdminGetUserInput { + s.Username = &v + return s +} + +// Represents the response from the server from the request to get the specified +// user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUserResponse +type AdminGetUserOutput struct { + _ struct{} `type:"structure"` + + // Indicates that the status is enabled. + Enabled *bool `type:"boolean"` + + // Specifies the options for MFA (e.g., email or phone number). + MFAOptions []*MFAOptionType `type:"list"` + + PreferredMfaSetting *string `type:"string"` + + // An array of name-value pairs representing user attributes. + UserAttributes []*AttributeType `type:"list"` + + // The date the user was created. + UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The date the user was last modified. + UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + UserMFASettingList []*string `type:"list"` + + // The user status. Can be one of the following: + // + // * UNCONFIRMED - User has been created but not confirmed. + // + // * CONFIRMED - User has been confirmed. + // + // * ARCHIVED - User is no longer active. + // + // * COMPROMISED - User is disabled due to a potential security threat. + // + // * UNKNOWN - User status is not known. + UserStatus *string `type:"string" enum:"UserStatusType"` + + // The user name of the user about whom you are receiving information. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminGetUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminGetUserOutput) GoString() string { + return s.String() +} + +// SetEnabled sets the Enabled field's value. +func (s *AdminGetUserOutput) SetEnabled(v bool) *AdminGetUserOutput { + s.Enabled = &v + return s +} + +// SetMFAOptions sets the MFAOptions field's value. +func (s *AdminGetUserOutput) SetMFAOptions(v []*MFAOptionType) *AdminGetUserOutput { + s.MFAOptions = v + return s +} + +// SetPreferredMfaSetting sets the PreferredMfaSetting field's value. +func (s *AdminGetUserOutput) SetPreferredMfaSetting(v string) *AdminGetUserOutput { + s.PreferredMfaSetting = &v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *AdminGetUserOutput) SetUserAttributes(v []*AttributeType) *AdminGetUserOutput { + s.UserAttributes = v + return s +} + +// SetUserCreateDate sets the UserCreateDate field's value. +func (s *AdminGetUserOutput) SetUserCreateDate(v time.Time) *AdminGetUserOutput { + s.UserCreateDate = &v + return s +} + +// SetUserLastModifiedDate sets the UserLastModifiedDate field's value. +func (s *AdminGetUserOutput) SetUserLastModifiedDate(v time.Time) *AdminGetUserOutput { + s.UserLastModifiedDate = &v + return s +} + +// SetUserMFASettingList sets the UserMFASettingList field's value. +func (s *AdminGetUserOutput) SetUserMFASettingList(v []*string) *AdminGetUserOutput { + s.UserMFASettingList = v + return s +} + +// SetUserStatus sets the UserStatus field's value. +func (s *AdminGetUserOutput) SetUserStatus(v string) *AdminGetUserOutput { + s.UserStatus = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminGetUserOutput) SetUsername(v string) *AdminGetUserOutput { + s.Username = &v + return s +} + +// Initiates the authorization request, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuthRequest +type AdminInitiateAuthInput struct { + _ struct{} `type:"structure"` + + // The analytics metadata for collecting Amazon Pinpoint metrics for AdminInitiateAuth + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` + + // The authentication flow for this call to execute. The API action will depend + // on this value. For example: + // + // * REFRESH_TOKEN_AUTH will take in a valid refresh token and return new + // tokens. + // + // * USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables + // to be used for next challenge execution. + // + // Valid values include: + // + // * USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) + // protocol. + // + // * REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing + // the access token and ID token by supplying a valid refresh token. + // + // * CUSTOM_AUTH: Custom authentication flow. + // + // * ADMIN_NO_SRP_AUTH: Non-SRP authentication flow; you can pass in the + // USERNAME and PASSWORD directly if the flow is enabled for calling the + // app client. + // + // AuthFlow is a required field + AuthFlow *string `type:"string" required:"true" enum:"AuthFlowType"` + + // The authentication parameters. These are inputs corresponding to the AuthFlow + // that you are invoking. The required values depend on the value of AuthFlow: + // + // * For USER_SRP_AUTH: USERNAME (required), SRP_A (required), SECRET_HASH + // (required if the app client is configured with a client secret), DEVICE_KEY + // + // * For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required), SECRET_HASH + // (required if the app client is configured with a client secret), REFRESH_TOKEN + // (required), DEVICE_KEY + // + // * For ADMIN_NO_SRP_AUTH: USERNAME (required), SECRET_HASH (if app client + // is configured with client secret), PASSWORD (required), DEVICE_KEY + // + // * For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is + // configured with client secret), DEVICE_KEY + AuthParameters map[string]*string `type:"map"` + + // The app client ID. + // + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` + + // This is a random key-value pair map which can contain any key and will be + // passed to your PreAuthentication Lambda trigger as-is. It can be used to + // implement additional validations around authentication. + ClientMetadata map[string]*string `type:"map"` + + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + ContextData *ContextDataType `type:"structure"` + + // The ID of the Amazon Cognito user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminInitiateAuthInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminInitiateAuthInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminInitiateAuthInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminInitiateAuthInput"} + if s.AuthFlow == nil { + invalidParams.Add(request.NewErrParamRequired("AuthFlow")) + } + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) + } + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.ContextData != nil { + if err := s.ContextData.Validate(); err != nil { + invalidParams.AddNested("ContextData", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *AdminInitiateAuthInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *AdminInitiateAuthInput { + s.AnalyticsMetadata = v + return s +} + +// SetAuthFlow sets the AuthFlow field's value. +func (s *AdminInitiateAuthInput) SetAuthFlow(v string) *AdminInitiateAuthInput { + s.AuthFlow = &v + return s +} + +// SetAuthParameters sets the AuthParameters field's value. +func (s *AdminInitiateAuthInput) SetAuthParameters(v map[string]*string) *AdminInitiateAuthInput { + s.AuthParameters = v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *AdminInitiateAuthInput) SetClientId(v string) *AdminInitiateAuthInput { + s.ClientId = &v + return s +} + +// SetClientMetadata sets the ClientMetadata field's value. +func (s *AdminInitiateAuthInput) SetClientMetadata(v map[string]*string) *AdminInitiateAuthInput { + s.ClientMetadata = v + return s +} + +// SetContextData sets the ContextData field's value. +func (s *AdminInitiateAuthInput) SetContextData(v *ContextDataType) *AdminInitiateAuthInput { + s.ContextData = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminInitiateAuthInput) SetUserPoolId(v string) *AdminInitiateAuthInput { + s.UserPoolId = &v + return s +} + +// Initiates the authentication response, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuthResponse +type AdminInitiateAuthOutput struct { + _ struct{} `type:"structure"` + + // The result of the authentication response. This is only returned if the caller + // does not need to pass another challenge. If the caller does need to pass + // another challenge before it gets tokens, ChallengeName, ChallengeParameters, + // and Session are returned. + AuthenticationResult *AuthenticationResultType `type:"structure"` + + // The name of the challenge which you are responding to with this call. This + // is returned to you in the AdminInitiateAuth response if you need to pass + // another challenge. + // + // * SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via + // SMS. + // + // * PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, + // PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations. + // + // * CUSTOM_CHALLENGE: This is returned if your custom authentication flow + // determines that the user should pass another challenge before tokens are + // issued. + // + // * DEVICE_SRP_AUTH: If device tracking was enabled on your user pool and + // the previous challenges were passed, this challenge is returned so that + // Amazon Cognito can start tracking this device. + // + // * DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices + // only. + // + // * ADMIN_NO_SRP_AUTH: This is returned if you need to authenticate with + // USERNAME and PASSWORD directly. An app client must be enabled to use this + // flow. + // + // * NEW_PASSWORD_REQUIRED: For users which are required to change their + // passwords after successful first login. This challenge should be passed + // with NEW_PASSWORD and any other required attributes. + ChallengeName *string `type:"string" enum:"ChallengeNameType"` + + // The challenge parameters. These are returned to you in the AdminInitiateAuth + // response if you need to pass another challenge. The responses in this parameter + // should be used to compute inputs to the next call (AdminRespondToAuthChallenge). + // + // All challenges require USERNAME and SECRET_HASH (if applicable). + // + // The value of the USER_IF_FOR_SRP attribute will be the user's actual username, + // not an alias (such as email address or phone number), even if you specified + // an alias in your call to AdminInitiateAuth. This is because, in the AdminRespondToAuthChallenge + // API ChallengeResponses, the USERNAME attribute cannot be an alias. + ChallengeParameters map[string]*string `type:"map"` + + // The session which should be passed both ways in challenge-response calls + // to the service. If AdminInitiateAuth or AdminRespondToAuthChallenge API call + // determines that the caller needs to go through another challenge, they return + // a session with other challenge parameters. This session should be passed + // as it is to the next AdminRespondToAuthChallenge API call. + Session *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s AdminInitiateAuthOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminInitiateAuthOutput) GoString() string { + return s.String() +} + +// SetAuthenticationResult sets the AuthenticationResult field's value. +func (s *AdminInitiateAuthOutput) SetAuthenticationResult(v *AuthenticationResultType) *AdminInitiateAuthOutput { + s.AuthenticationResult = v + return s +} + +// SetChallengeName sets the ChallengeName field's value. +func (s *AdminInitiateAuthOutput) SetChallengeName(v string) *AdminInitiateAuthOutput { + s.ChallengeName = &v + return s +} + +// SetChallengeParameters sets the ChallengeParameters field's value. +func (s *AdminInitiateAuthOutput) SetChallengeParameters(v map[string]*string) *AdminInitiateAuthOutput { + s.ChallengeParameters = v + return s +} + +// SetSession sets the Session field's value. +func (s *AdminInitiateAuthOutput) SetSession(v string) *AdminInitiateAuthOutput { + s.Session = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminLinkProviderForUserRequest +type AdminLinkProviderForUserInput struct { + _ struct{} `type:"structure"` + + // The existing user in the user pool to be linked to the external identity + // provider user account. Can be a native (Username + Password) Cognito User + // Pools user or a federated user (for example, a SAML or Facebook user). If + // the user doesn't exist, an exception is thrown. This is the user that is + // returned when the new user (with the linked identity provider attribute) + // signs in. + // + // For a native username + password user, the ProviderAttributeValue for the + // DestinationUser should be the username in the user pool. For a federated + // user, it should be the provider-specific user_id. + // + // The ProviderAttributeName of the DestinationUser is ignored. + // + // The ProviderName should be set to Cognito for users in Cognito user pools. + // + // DestinationUser is a required field + DestinationUser *ProviderUserIdentifierType `type:"structure" required:"true"` + + // An external identity provider account for a user who does not currently exist + // yet in the user pool. This user must be a federated user (for example, a + // SAML or Facebook user), not another native user. + // + // If the SourceUser is a federated social identity provider user (Facebook, + // Google, or Login with Amazon), you must set the ProviderAttributeName to + // Cognito_Subject. For social identity providers, the ProviderName will be + // Facebook, Google, or LoginWithAmazon, and Cognito will automatically parse + // the Facebook, Google, and Login with Amazon tokens for id, sub, and user_id, + // respectively. The ProviderAttributeValue for the user must be the same value + // as the id, sub, or user_id value found in the social identity provider token. + // + // For SAML, the ProviderAttributeNamecan be any value that matches a claim in the SAML assertion. If you wish + // to link SAML users based on the subject of the SAML assertion, you should + // map the subject to a claim through the SAML identity provider and submit + // that claim name as the ProviderAttributeName. If you set ProviderAttributeNameto Cognito_Subject + // + // SourceUser is a required field + SourceUser *ProviderUserIdentifierType `type:"structure" required:"true"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `type:"string" required:"true"` +} // String returns the string representation -func (s AddCustomAttributesOutput) String() string { +func (s AdminLinkProviderForUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AddCustomAttributesOutput) GoString() string { +func (s AdminLinkProviderForUserInput) GoString() string { return s.String() } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroupRequest -type AdminAddUserToGroupInput struct { +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminLinkProviderForUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminLinkProviderForUserInput"} + if s.DestinationUser == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationUser")) + } + if s.SourceUser == nil { + invalidParams.Add(request.NewErrParamRequired("SourceUser")) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.DestinationUser != nil { + if err := s.DestinationUser.Validate(); err != nil { + invalidParams.AddNested("DestinationUser", err.(request.ErrInvalidParams)) + } + } + if s.SourceUser != nil { + if err := s.SourceUser.Validate(); err != nil { + invalidParams.AddNested("SourceUser", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinationUser sets the DestinationUser field's value. +func (s *AdminLinkProviderForUserInput) SetDestinationUser(v *ProviderUserIdentifierType) *AdminLinkProviderForUserInput { + s.DestinationUser = v + return s +} + +// SetSourceUser sets the SourceUser field's value. +func (s *AdminLinkProviderForUserInput) SetSourceUser(v *ProviderUserIdentifierType) *AdminLinkProviderForUserInput { + s.SourceUser = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminLinkProviderForUserInput) SetUserPoolId(v string) *AdminLinkProviderForUserInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminLinkProviderForUserResponse +type AdminLinkProviderForUserOutput struct { _ struct{} `type:"structure"` +} - // The group name. +// String returns the string representation +func (s AdminLinkProviderForUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminLinkProviderForUserOutput) GoString() string { + return s.String() +} + +// Represents the request to list devices, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevicesRequest +type AdminListDevicesInput struct { + _ struct{} `type:"structure"` + + // The limit of the devices request. + Limit *int64 `type:"integer"` + + // The pagination token. + PaginationToken *string `min:"1" type:"string"` + + // The user pool ID. // - // GroupName is a required field - GroupName *string `min:"1" type:"string" required:"true"` + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminListDevicesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminListDevicesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminListDevicesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminListDevicesInput"} + if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *AdminListDevicesInput) SetLimit(v int64) *AdminListDevicesInput { + s.Limit = &v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *AdminListDevicesInput) SetPaginationToken(v string) *AdminListDevicesInput { + s.PaginationToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminListDevicesInput) SetUserPoolId(v string) *AdminListDevicesInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminListDevicesInput) SetUsername(v string) *AdminListDevicesInput { + s.Username = &v + return s +} + +// Lists the device's response, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevicesResponse +type AdminListDevicesOutput struct { + _ struct{} `type:"structure"` + + // The devices in the list of devices response. + Devices []*DeviceType `type:"list"` + + // The pagination token. + PaginationToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s AdminListDevicesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminListDevicesOutput) GoString() string { + return s.String() +} + +// SetDevices sets the Devices field's value. +func (s *AdminListDevicesOutput) SetDevices(v []*DeviceType) *AdminListDevicesOutput { + s.Devices = v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *AdminListDevicesOutput) SetPaginationToken(v string) *AdminListDevicesOutput { + s.PaginationToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUserRequest +type AdminListGroupsForUserInput struct { + _ struct{} `type:"structure"` + + // The limit of the request to list groups. + Limit *int64 `type:"integer"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` // The user pool ID for the user pool. // @@ -8983,23 +12027,20 @@ type AdminAddUserToGroupInput struct { } // String returns the string representation -func (s AdminAddUserToGroupInput) String() string { +func (s AdminListGroupsForUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminAddUserToGroupInput) GoString() string { +func (s AdminListGroupsForUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminAddUserToGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminAddUserToGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) +func (s *AdminListGroupsForUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminListGroupsForUserInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -9020,68 +12061,101 @@ func (s *AdminAddUserToGroupInput) Validate() error { return nil } -// SetGroupName sets the GroupName field's value. -func (s *AdminAddUserToGroupInput) SetGroupName(v string) *AdminAddUserToGroupInput { - s.GroupName = &v +// SetLimit sets the Limit field's value. +func (s *AdminListGroupsForUserInput) SetLimit(v int64) *AdminListGroupsForUserInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *AdminListGroupsForUserInput) SetNextToken(v string) *AdminListGroupsForUserInput { + s.NextToken = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminAddUserToGroupInput) SetUserPoolId(v string) *AdminAddUserToGroupInput { +func (s *AdminListGroupsForUserInput) SetUserPoolId(v string) *AdminListGroupsForUserInput { s.UserPoolId = &v return s } // SetUsername sets the Username field's value. -func (s *AdminAddUserToGroupInput) SetUsername(v string) *AdminAddUserToGroupInput { +func (s *AdminListGroupsForUserInput) SetUsername(v string) *AdminListGroupsForUserInput { s.Username = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroupOutput -type AdminAddUserToGroupOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUserResponse +type AdminListGroupsForUserOutput struct { _ struct{} `type:"structure"` + + // The groups that the user belongs to. + Groups []*GroupType `type:"list"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s AdminAddUserToGroupOutput) String() string { +func (s AdminListGroupsForUserOutput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s AdminAddUserToGroupOutput) GoString() string { - return s.String() +// GoString returns the string representation +func (s AdminListGroupsForUserOutput) GoString() string { + return s.String() +} + +// SetGroups sets the Groups field's value. +func (s *AdminListGroupsForUserOutput) SetGroups(v []*GroupType) *AdminListGroupsForUserOutput { + s.Groups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *AdminListGroupsForUserOutput) SetNextToken(v string) *AdminListGroupsForUserOutput { + s.NextToken = &v + return s } -// Represents the request to confirm user registration. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUpRequest -type AdminConfirmSignUpInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListUserAuthEventsRequest +type AdminListUserAuthEventsInput struct { _ struct{} `type:"structure"` - // The user pool ID for which you want to confirm user registration. + // The maximum number of authentication events to return. + MaxResults *int64 `type:"integer"` + + // A pagination token. + NextToken *string `min:"1" type:"string"` + + // The user pool ID. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The user name for which you want to confirm user registration. + // The user pool username. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminConfirmSignUpInput) String() string { +func (s AdminListUserAuthEventsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminConfirmSignUpInput) GoString() string { +func (s AdminListUserAuthEventsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminConfirmSignUpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminConfirmSignUpInput"} +func (s *AdminListUserAuthEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminListUserAuthEventsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -9101,212 +12175,102 @@ func (s *AdminConfirmSignUpInput) Validate() error { return nil } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminConfirmSignUpInput) SetUserPoolId(v string) *AdminConfirmSignUpInput { - s.UserPoolId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *AdminListUserAuthEventsInput) SetMaxResults(v int64) *AdminListUserAuthEventsInput { + s.MaxResults = &v return s } -// SetUsername sets the Username field's value. -func (s *AdminConfirmSignUpInput) SetUsername(v string) *AdminConfirmSignUpInput { - s.Username = &v +// SetNextToken sets the NextToken field's value. +func (s *AdminListUserAuthEventsInput) SetNextToken(v string) *AdminListUserAuthEventsInput { + s.NextToken = &v return s } -// Represents the response from the server for the request to confirm registration. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUpResponse -type AdminConfirmSignUpOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminConfirmSignUpOutput) String() string { - return awsutil.Prettify(s) +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminListUserAuthEventsInput) SetUserPoolId(v string) *AdminListUserAuthEventsInput { + s.UserPoolId = &v + return s } -// GoString returns the string representation -func (s AdminConfirmSignUpOutput) GoString() string { - return s.String() +// SetUsername sets the Username field's value. +func (s *AdminListUserAuthEventsInput) SetUsername(v string) *AdminListUserAuthEventsInput { + s.Username = &v + return s } -// The type of configuration for creating a new user profile. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserConfigType -type AdminCreateUserConfigType struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListUserAuthEventsResponse +type AdminListUserAuthEventsOutput struct { _ struct{} `type:"structure"` - // Set to True if only the administrator is allowed to create user profiles. - // Set to False if users can sign themselves up via an app. - AllowAdminCreateUserOnly *bool `type:"boolean"` - - // The message template to be used for the welcome message to new users. - InviteMessageTemplate *MessageTemplateType `type:"structure"` + // The response object. It includes the EventID, EventType, CreationDate, EventRisk, + // and EventResponse. + AuthEvents []*AuthEventType `type:"list"` - // The user account expiration limit, in days, after which the account is no - // longer usable. To reset the account after that time limit, you must call - // AdminCreateUser again, specifying "RESEND" for the MessageAction parameter. - // The default value for this parameter is 7. - UnusedAccountValidityDays *int64 `type:"integer"` + // A pagination token. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s AdminCreateUserConfigType) String() string { +func (s AdminListUserAuthEventsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminCreateUserConfigType) GoString() string { +func (s AdminListUserAuthEventsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminCreateUserConfigType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminCreateUserConfigType"} - if s.InviteMessageTemplate != nil { - if err := s.InviteMessageTemplate.Validate(); err != nil { - invalidParams.AddNested("InviteMessageTemplate", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAllowAdminCreateUserOnly sets the AllowAdminCreateUserOnly field's value. -func (s *AdminCreateUserConfigType) SetAllowAdminCreateUserOnly(v bool) *AdminCreateUserConfigType { - s.AllowAdminCreateUserOnly = &v - return s -} - -// SetInviteMessageTemplate sets the InviteMessageTemplate field's value. -func (s *AdminCreateUserConfigType) SetInviteMessageTemplate(v *MessageTemplateType) *AdminCreateUserConfigType { - s.InviteMessageTemplate = v +// SetAuthEvents sets the AuthEvents field's value. +func (s *AdminListUserAuthEventsOutput) SetAuthEvents(v []*AuthEventType) *AdminListUserAuthEventsOutput { + s.AuthEvents = v return s } -// SetUnusedAccountValidityDays sets the UnusedAccountValidityDays field's value. -func (s *AdminCreateUserConfigType) SetUnusedAccountValidityDays(v int64) *AdminCreateUserConfigType { - s.UnusedAccountValidityDays = &v +// SetNextToken sets the NextToken field's value. +func (s *AdminListUserAuthEventsOutput) SetNextToken(v string) *AdminListUserAuthEventsOutput { + s.NextToken = &v return s } -// Represents the request to create a user in the specified user pool. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserRequest -type AdminCreateUserInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroupRequest +type AdminRemoveUserFromGroupInput struct { _ struct{} `type:"structure"` - // Specify "EMAIL" if email will be used to send the welcome message. Specify - // "SMS" if the phone number will be used. The default value is "SMS". More - // than one value can be specified. - DesiredDeliveryMediums []*string `type:"list"` - - // This parameter is only used if the phone_number_verified or email_verified - // attribute is set to True. Otherwise, it is ignored. - // - // If this parameter is set to True and the phone number or email address specified - // in the UserAttributes parameter already exists as an alias with a different - // user, the API call will migrate the alias from the previous user to the newly - // created user. The previous user will no longer be able to log in using that - // alias. - // - // If this parameter is set to False, the API throws an AliasExistsException - // error if the alias already exists. The default value is False. - ForceAliasCreation *bool `type:"boolean"` - - // Set to "RESEND" to resend the invitation message to a user that already exists - // and reset the expiration limit on the user's account. Set to "SUPPRESS" to - // suppress sending the message. Only one value can be specified. - MessageAction *string `type:"string" enum:"MessageActionType"` - - // The user's temporary password. This password must conform to the password - // policy that you specified when you created the user pool. - // - // The temporary password is valid only once. To complete the Admin Create User - // flow, the user must enter the temporary password in the sign-in page along - // with a new password to be used in all future sign-ins. - // - // This parameter is not required. If you do not specify a value, Amazon Cognito - // generates one for you. - // - // The temporary password can only be used until the user account expiration - // limit that you specified when you created the user pool. To reset the account - // after that time limit, you must call AdminCreateUser again, specifying "RESEND" - // for the MessageAction parameter. - TemporaryPassword *string `min:"6" type:"string"` - - // An array of name-value pairs that contain user attributes and attribute values - // to be set for the user to be created. You can create a user without specifying - // any attributes other than Username. However, any attributes that you specify - // as required (in CreateUserPool (API_CreateUserPool.html) or in the Attributes - // tab of the console) must be supplied either by you (in your call to AdminCreateUser) - // or by the user (when he or she signs up in response to your welcome message). - // - // For custom attributes, you must prepend the custom: prefix to the attribute - // name. - // - // To send a message inviting the user to sign up, you must specify the user's - // email address or phone number. This can be done in your call to AdminCreateUser - // or in the Users tab of the Amazon Cognito console for managing your user - // pools. - // - // In your call to AdminCreateUser, you can set the email_verified attribute - // to True, and you can set the phone_number_verified attribute to True. (You - // can also do this by calling AdminUpdateUserAttributes (API_AdminUpdateUserAttributes.html).) - // - // * email: The email address of the user to whom the message that contains - // the code and username will be sent. Required if the email_verified attribute - // is set to True, or if "EMAIL" is specified in the DesiredDeliveryMediums - // parameter. + // The group name. // - // * phone_number: The phone number of the user to whom the message that - // contains the code and username will be sent. Required if the phone_number_verified - // attribute is set to True, or if "SMS" is specified in the DesiredDeliveryMediums - // parameter. - UserAttributes []*AttributeType `type:"list"` + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` - // The user pool ID for the user pool where the user will be created. + // The user pool ID for the user pool. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The username for the user. Must be unique within the user pool. Must be a - // UTF-8 string between 1 and 128 characters. After the user is created, the - // username cannot be changed. + // The username for the user. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` - - // The user's validation data. This is an array of name-value pairs that contain - // user attributes and attribute values that you can use for custom validation, - // such as restricting the types of user accounts that can be registered. For - // example, you might choose to allow or disallow user sign-up based on the - // user's domain. - // - // To configure custom validation, you must create a Pre Sign-up Lambda trigger - // for the user pool as described in the Amazon Cognito Developer Guide. The - // Lambda trigger receives the validation data and uses it in the validation - // process. - // - // The user's validation data is not persisted. - ValidationData []*AttributeType `type:"list"` } // String returns the string representation -func (s AdminCreateUserInput) String() string { +func (s AdminRemoveUserFromGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminCreateUserInput) GoString() string { +func (s AdminRemoveUserFromGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminCreateUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminCreateUserInput"} - if s.TemporaryPassword != nil && len(*s.TemporaryPassword) < 6 { - invalidParams.Add(request.NewErrParamMinLen("TemporaryPassword", 6)) +func (s *AdminRemoveUserFromGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminRemoveUserFromGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -9319,147 +12283,76 @@ func (s *AdminCreateUserInput) Validate() error { } if s.Username != nil && len(*s.Username) < 1 { invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - if s.UserAttributes != nil { - for i, v := range s.UserAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - if s.ValidationData != nil { - for i, v := range s.ValidationData { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationData", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDesiredDeliveryMediums sets the DesiredDeliveryMediums field's value. -func (s *AdminCreateUserInput) SetDesiredDeliveryMediums(v []*string) *AdminCreateUserInput { - s.DesiredDeliveryMediums = v - return s -} - -// SetForceAliasCreation sets the ForceAliasCreation field's value. -func (s *AdminCreateUserInput) SetForceAliasCreation(v bool) *AdminCreateUserInput { - s.ForceAliasCreation = &v - return s -} - -// SetMessageAction sets the MessageAction field's value. -func (s *AdminCreateUserInput) SetMessageAction(v string) *AdminCreateUserInput { - s.MessageAction = &v - return s -} - -// SetTemporaryPassword sets the TemporaryPassword field's value. -func (s *AdminCreateUserInput) SetTemporaryPassword(v string) *AdminCreateUserInput { - s.TemporaryPassword = &v - return s + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetUserAttributes sets the UserAttributes field's value. -func (s *AdminCreateUserInput) SetUserAttributes(v []*AttributeType) *AdminCreateUserInput { - s.UserAttributes = v +// SetGroupName sets the GroupName field's value. +func (s *AdminRemoveUserFromGroupInput) SetGroupName(v string) *AdminRemoveUserFromGroupInput { + s.GroupName = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminCreateUserInput) SetUserPoolId(v string) *AdminCreateUserInput { +func (s *AdminRemoveUserFromGroupInput) SetUserPoolId(v string) *AdminRemoveUserFromGroupInput { s.UserPoolId = &v return s } // SetUsername sets the Username field's value. -func (s *AdminCreateUserInput) SetUsername(v string) *AdminCreateUserInput { +func (s *AdminRemoveUserFromGroupInput) SetUsername(v string) *AdminRemoveUserFromGroupInput { s.Username = &v return s } -// SetValidationData sets the ValidationData field's value. -func (s *AdminCreateUserInput) SetValidationData(v []*AttributeType) *AdminCreateUserInput { - s.ValidationData = v - return s -} - -// Represents the response from the server to the request to create the user. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserResponse -type AdminCreateUserOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroupOutput +type AdminRemoveUserFromGroupOutput struct { _ struct{} `type:"structure"` - - // The newly created user. - User *UserType `type:"structure"` } // String returns the string representation -func (s AdminCreateUserOutput) String() string { +func (s AdminRemoveUserFromGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminCreateUserOutput) GoString() string { +func (s AdminRemoveUserFromGroupOutput) GoString() string { return s.String() } -// SetUser sets the User field's value. -func (s *AdminCreateUserOutput) SetUser(v *UserType) *AdminCreateUserOutput { - s.User = v - return s -} - -// Represents the request to delete user attributes as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributesRequest -type AdminDeleteUserAttributesInput struct { +// Represents the request to reset a user's password as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPasswordRequest +type AdminResetUserPasswordInput struct { _ struct{} `type:"structure"` - // An array of strings representing the user attribute names you wish to delete. - // - // For custom attributes, you must prepend the custom: prefix to the attribute - // name. - // - // UserAttributeNames is a required field - UserAttributeNames []*string `type:"list" required:"true"` - - // The user pool ID for the user pool where you want to delete user attributes. + // The user pool ID for the user pool where you want to reset the user's password. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The user name of the user from which you would like to delete attributes. + // The user name of the user whose password you wish to reset. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminDeleteUserAttributesInput) String() string { +func (s AdminResetUserPasswordInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminDeleteUserAttributesInput) GoString() string { +func (s AdminResetUserPasswordInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminDeleteUserAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserAttributesInput"} - if s.UserAttributeNames == nil { - invalidParams.Add(request.NewErrParamRequired("UserAttributeNames")) - } +func (s *AdminResetUserPasswordInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminResetUserPasswordInput"} if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -9479,81 +12372,129 @@ func (s *AdminDeleteUserAttributesInput) Validate() error { return nil } -// SetUserAttributeNames sets the UserAttributeNames field's value. -func (s *AdminDeleteUserAttributesInput) SetUserAttributeNames(v []*string) *AdminDeleteUserAttributesInput { - s.UserAttributeNames = v - return s -} - // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminDeleteUserAttributesInput) SetUserPoolId(v string) *AdminDeleteUserAttributesInput { +func (s *AdminResetUserPasswordInput) SetUserPoolId(v string) *AdminResetUserPasswordInput { s.UserPoolId = &v return s } // SetUsername sets the Username field's value. -func (s *AdminDeleteUserAttributesInput) SetUsername(v string) *AdminDeleteUserAttributesInput { +func (s *AdminResetUserPasswordInput) SetUsername(v string) *AdminResetUserPasswordInput { s.Username = &v return s } -// Represents the response received from the server for a request to delete -// user attributes. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributesResponse -type AdminDeleteUserAttributesOutput struct { +// Represents the response from the server to reset a user password as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPasswordResponse +type AdminResetUserPasswordOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AdminDeleteUserAttributesOutput) String() string { +func (s AdminResetUserPasswordOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminDeleteUserAttributesOutput) GoString() string { +func (s AdminResetUserPasswordOutput) GoString() string { return s.String() } -// Represents the request to delete a user as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserRequest -type AdminDeleteUserInput struct { +// The request to respond to the authentication challenge, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallengeRequest +type AdminRespondToAuthChallengeInput struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool where you want to delete the user. + // The analytics metadata for collecting Amazon Pinpoint metrics for AdminRespondToAuthChallenge + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` + + // The challenge name. For more information, see . // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // ChallengeName is a required field + ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"` - // The user name of the user you wish to delete. + // The challenge responses. These are inputs corresponding to the value of ChallengeName, + // for example: // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // * SMS_MFA: SMS_MFA_CODE, USERNAME, SECRET_HASH (if app client is configured + // with client secret). + // + // * PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, + // TIMESTAMP, USERNAME, SECRET_HASH (if app client is configured with client + // secret). + // + // * ADMIN_NO_SRP_AUTH: PASSWORD, USERNAME, SECRET_HASH (if app client is + // configured with client secret). + // + // * NEW_PASSWORD_REQUIRED: NEW_PASSWORD, any other required attributes, + // USERNAME, SECRET_HASH (if app client is configured with client secret). + // + // + // The value of the USERNAME attribute must be the user's actual username, not + // an alias (such as email address or phone number). To make this easier, the + // AdminInitiateAuth response includes the actual username value in the USERNAMEUSER_ID_FOR_SRP + // attribute, even if you specified an alias in your call to AdminInitiateAuth. + ChallengeResponses map[string]*string `type:"map"` + + // The app client ID. + // + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` + + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + ContextData *ContextDataType `type:"structure"` + + // The session which should be passed both ways in challenge-response calls + // to the service. If InitiateAuth or RespondToAuthChallenge API call determines + // that the caller needs to go through another challenge, they return a session + // with other challenge parameters. This session should be passed as it is to + // the next RespondToAuthChallenge API call. + Session *string `min:"20" type:"string"` + + // The ID of the Amazon Cognito user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminDeleteUserInput) String() string { +func (s AdminRespondToAuthChallengeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminDeleteUserInput) GoString() string { +func (s AdminRespondToAuthChallengeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminDeleteUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserInput"} +func (s *AdminRespondToAuthChallengeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminRespondToAuthChallengeInput"} + if s.ChallengeName == nil { + invalidParams.Add(request.NewErrParamRequired("ChallengeName")) + } + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) + } + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) + } + if s.Session != nil && len(*s.Session) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Session", 20)) + } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + if s.ContextData != nil { + if err := s.ContextData.Validate(); err != nil { + invalidParams.AddNested("ContextData", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -9562,71 +12503,149 @@ func (s *AdminDeleteUserInput) Validate() error { return nil } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminDeleteUserInput) SetUserPoolId(v string) *AdminDeleteUserInput { - s.UserPoolId = &v +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *AdminRespondToAuthChallengeInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *AdminRespondToAuthChallengeInput { + s.AnalyticsMetadata = v return s } -// SetUsername sets the Username field's value. -func (s *AdminDeleteUserInput) SetUsername(v string) *AdminDeleteUserInput { - s.Username = &v +// SetChallengeName sets the ChallengeName field's value. +func (s *AdminRespondToAuthChallengeInput) SetChallengeName(v string) *AdminRespondToAuthChallengeInput { + s.ChallengeName = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserOutput -type AdminDeleteUserOutput struct { +// SetChallengeResponses sets the ChallengeResponses field's value. +func (s *AdminRespondToAuthChallengeInput) SetChallengeResponses(v map[string]*string) *AdminRespondToAuthChallengeInput { + s.ChallengeResponses = v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *AdminRespondToAuthChallengeInput) SetClientId(v string) *AdminRespondToAuthChallengeInput { + s.ClientId = &v + return s +} + +// SetContextData sets the ContextData field's value. +func (s *AdminRespondToAuthChallengeInput) SetContextData(v *ContextDataType) *AdminRespondToAuthChallengeInput { + s.ContextData = v + return s +} + +// SetSession sets the Session field's value. +func (s *AdminRespondToAuthChallengeInput) SetSession(v string) *AdminRespondToAuthChallengeInput { + s.Session = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminRespondToAuthChallengeInput) SetUserPoolId(v string) *AdminRespondToAuthChallengeInput { + s.UserPoolId = &v + return s +} + +// Responds to the authentication challenge, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallengeResponse +type AdminRespondToAuthChallengeOutput struct { _ struct{} `type:"structure"` + + // The result returned by the server in response to the authentication request. + AuthenticationResult *AuthenticationResultType `type:"structure"` + + // The name of the challenge. For more information, see . + ChallengeName *string `type:"string" enum:"ChallengeNameType"` + + // The challenge parameters. For more information, see . + ChallengeParameters map[string]*string `type:"map"` + + // The session which should be passed both ways in challenge-response calls + // to the service. If the or API call determines that the caller needs to go + // through another challenge, they return a session with other challenge parameters. + // This session should be passed as it is to the next RespondToAuthChallenge + // API call. + Session *string `min:"20" type:"string"` } // String returns the string representation -func (s AdminDeleteUserOutput) String() string { +func (s AdminRespondToAuthChallengeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminDeleteUserOutput) GoString() string { +func (s AdminRespondToAuthChallengeOutput) GoString() string { return s.String() } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableProviderForUserRequest -type AdminDisableProviderForUserInput struct { +// SetAuthenticationResult sets the AuthenticationResult field's value. +func (s *AdminRespondToAuthChallengeOutput) SetAuthenticationResult(v *AuthenticationResultType) *AdminRespondToAuthChallengeOutput { + s.AuthenticationResult = v + return s +} + +// SetChallengeName sets the ChallengeName field's value. +func (s *AdminRespondToAuthChallengeOutput) SetChallengeName(v string) *AdminRespondToAuthChallengeOutput { + s.ChallengeName = &v + return s +} + +// SetChallengeParameters sets the ChallengeParameters field's value. +func (s *AdminRespondToAuthChallengeOutput) SetChallengeParameters(v map[string]*string) *AdminRespondToAuthChallengeOutput { + s.ChallengeParameters = v + return s +} + +// SetSession sets the Session field's value. +func (s *AdminRespondToAuthChallengeOutput) SetSession(v string) *AdminRespondToAuthChallengeOutput { + s.Session = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserMFAPreferenceRequest +type AdminSetUserMFAPreferenceInput struct { _ struct{} `type:"structure"` - // The user to be disabled. - // - // User is a required field - User *ProviderUserIdentifierType `type:"structure" required:"true"` + // The SMS text message MFA settings. + SMSMfaSettings *SMSMfaSettingsType `type:"structure"` - // The user pool ID for the user pool. + // The time-based one-time password software token MFA settings. + SoftwareTokenMfaSettings *SoftwareTokenMfaSettingsType `type:"structure"` + + // The user pool ID. // // UserPoolId is a required field - UserPoolId *string `type:"string" required:"true"` + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user pool username. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminDisableProviderForUserInput) String() string { +func (s AdminSetUserMFAPreferenceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminDisableProviderForUserInput) GoString() string { +func (s AdminSetUserMFAPreferenceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminDisableProviderForUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminDisableProviderForUserInput"} - if s.User == nil { - invalidParams.Add(request.NewErrParamRequired("User")) - } +func (s *AdminSetUserMFAPreferenceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminSetUserMFAPreferenceInput"} if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } - if s.User != nil { - if err := s.User.Validate(); err != nil { - invalidParams.AddNested("User", err.(request.ErrInvalidParams)) - } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) } if invalidParams.Len() > 0 { @@ -9635,62 +12654,83 @@ func (s *AdminDisableProviderForUserInput) Validate() error { return nil } -// SetUser sets the User field's value. -func (s *AdminDisableProviderForUserInput) SetUser(v *ProviderUserIdentifierType) *AdminDisableProviderForUserInput { - s.User = v +// SetSMSMfaSettings sets the SMSMfaSettings field's value. +func (s *AdminSetUserMFAPreferenceInput) SetSMSMfaSettings(v *SMSMfaSettingsType) *AdminSetUserMFAPreferenceInput { + s.SMSMfaSettings = v + return s +} + +// SetSoftwareTokenMfaSettings sets the SoftwareTokenMfaSettings field's value. +func (s *AdminSetUserMFAPreferenceInput) SetSoftwareTokenMfaSettings(v *SoftwareTokenMfaSettingsType) *AdminSetUserMFAPreferenceInput { + s.SoftwareTokenMfaSettings = v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminDisableProviderForUserInput) SetUserPoolId(v string) *AdminDisableProviderForUserInput { +func (s *AdminSetUserMFAPreferenceInput) SetUserPoolId(v string) *AdminSetUserMFAPreferenceInput { s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableProviderForUserResponse -type AdminDisableProviderForUserOutput struct { +// SetUsername sets the Username field's value. +func (s *AdminSetUserMFAPreferenceInput) SetUsername(v string) *AdminSetUserMFAPreferenceInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserMFAPreferenceResponse +type AdminSetUserMFAPreferenceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AdminDisableProviderForUserOutput) String() string { +func (s AdminSetUserMFAPreferenceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminDisableProviderForUserOutput) GoString() string { +func (s AdminSetUserMFAPreferenceOutput) GoString() string { return s.String() } -// Represents the request to disable any user as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUserRequest -type AdminDisableUserInput struct { +// Represents the request to set user settings as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettingsRequest +type AdminSetUserSettingsInput struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool where you want to disable the user. + // Specifies the options for MFA (e.g., email or phone number). + // + // MFAOptions is a required field + MFAOptions []*MFAOptionType `type:"list" required:"true"` + + // The user pool ID for the user pool where you want to set the user's settings, + // such as MFA options. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The user name of the user you wish to disable. + // The user name of the user for whom you wish to set user settings. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminDisableUserInput) String() string { +func (s AdminSetUserSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminDisableUserInput) GoString() string { +func (s AdminSetUserSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminDisableUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminDisableUserInput"} +func (s *AdminSetUserSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminSetUserSettingsInput"} + if s.MFAOptions == nil { + invalidParams.Add(request.NewErrParamRequired("MFAOptions")) + } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -9703,6 +12743,16 @@ func (s *AdminDisableUserInput) Validate() error { if s.Username != nil && len(*s.Username) < 1 { invalidParams.Add(request.NewErrParamMinLen("Username", 1)) } + if s.MFAOptions != nil { + for i, v := range s.MFAOptions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MFAOptions", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -9710,64 +12760,87 @@ func (s *AdminDisableUserInput) Validate() error { return nil } +// SetMFAOptions sets the MFAOptions field's value. +func (s *AdminSetUserSettingsInput) SetMFAOptions(v []*MFAOptionType) *AdminSetUserSettingsInput { + s.MFAOptions = v + return s +} + // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminDisableUserInput) SetUserPoolId(v string) *AdminDisableUserInput { +func (s *AdminSetUserSettingsInput) SetUserPoolId(v string) *AdminSetUserSettingsInput { s.UserPoolId = &v return s } // SetUsername sets the Username field's value. -func (s *AdminDisableUserInput) SetUsername(v string) *AdminDisableUserInput { +func (s *AdminSetUserSettingsInput) SetUsername(v string) *AdminSetUserSettingsInput { s.Username = &v return s } -// Represents the response received from the server to disable the user as an -// administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUserResponse -type AdminDisableUserOutput struct { +// Represents the response from the server to set user settings as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettingsResponse +type AdminSetUserSettingsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AdminDisableUserOutput) String() string { +func (s AdminSetUserSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminDisableUserOutput) GoString() string { +func (s AdminSetUserSettingsOutput) GoString() string { return s.String() } -// Represents the request that enables the user as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUserRequest -type AdminEnableUserInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateAuthEventFeedbackRequest +type AdminUpdateAuthEventFeedbackInput struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool where you want to enable the user. + // The authentication event ID. + // + // EventId is a required field + EventId *string `min:"1" type:"string" required:"true"` + + // The authentication event feedback value. + // + // FeedbackValue is a required field + FeedbackValue *string `type:"string" required:"true" enum:"FeedbackValueType"` + + // The user pool ID. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The user name of the user you wish to enable. + // The user pool username. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminEnableUserInput) String() string { +func (s AdminUpdateAuthEventFeedbackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminEnableUserInput) GoString() string { +func (s AdminUpdateAuthEventFeedbackInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminEnableUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminEnableUserInput"} +func (s *AdminUpdateAuthEventFeedbackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminUpdateAuthEventFeedbackInput"} + if s.EventId == nil { + invalidParams.Add(request.NewErrParamRequired("EventId")) + } + if s.EventId != nil && len(*s.EventId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventId", 1)) + } + if s.FeedbackValue == nil { + invalidParams.Add(request.NewErrParamRequired("FeedbackValue")) + } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -9787,38 +12860,48 @@ func (s *AdminEnableUserInput) Validate() error { return nil } +// SetEventId sets the EventId field's value. +func (s *AdminUpdateAuthEventFeedbackInput) SetEventId(v string) *AdminUpdateAuthEventFeedbackInput { + s.EventId = &v + return s +} + +// SetFeedbackValue sets the FeedbackValue field's value. +func (s *AdminUpdateAuthEventFeedbackInput) SetFeedbackValue(v string) *AdminUpdateAuthEventFeedbackInput { + s.FeedbackValue = &v + return s +} + // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminEnableUserInput) SetUserPoolId(v string) *AdminEnableUserInput { +func (s *AdminUpdateAuthEventFeedbackInput) SetUserPoolId(v string) *AdminUpdateAuthEventFeedbackInput { s.UserPoolId = &v return s } // SetUsername sets the Username field's value. -func (s *AdminEnableUserInput) SetUsername(v string) *AdminEnableUserInput { +func (s *AdminUpdateAuthEventFeedbackInput) SetUsername(v string) *AdminUpdateAuthEventFeedbackInput { s.Username = &v return s } -// Represents the response from the server for the request to enable a user -// as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUserResponse -type AdminEnableUserOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateAuthEventFeedbackResponse +type AdminUpdateAuthEventFeedbackOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AdminEnableUserOutput) String() string { +func (s AdminUpdateAuthEventFeedbackOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminEnableUserOutput) GoString() string { +func (s AdminUpdateAuthEventFeedbackOutput) GoString() string { return s.String() } -// Sends the forgot device request, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDeviceRequest -type AdminForgetDeviceInput struct { +// The request to update the device status, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatusRequest +type AdminUpdateDeviceStatusInput struct { _ struct{} `type:"structure"` // The device key. @@ -9826,6 +12909,9 @@ type AdminForgetDeviceInput struct { // DeviceKey is a required field DeviceKey *string `min:"1" type:"string" required:"true"` + // The status indicating whether a device has been remembered or not. + DeviceRememberedStatus *string `type:"string" enum:"DeviceRememberedStatusType"` + // The user pool ID. // // UserPoolId is a required field @@ -9838,18 +12924,18 @@ type AdminForgetDeviceInput struct { } // String returns the string representation -func (s AdminForgetDeviceInput) String() string { +func (s AdminUpdateDeviceStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminForgetDeviceInput) GoString() string { +func (s AdminUpdateDeviceStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminForgetDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminForgetDeviceInput"} +func (s *AdminUpdateDeviceStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminUpdateDeviceStatusInput"} if s.DeviceKey == nil { invalidParams.Add(request.NewErrParamRequired("DeviceKey")) } @@ -9876,77 +12962,84 @@ func (s *AdminForgetDeviceInput) Validate() error { } // SetDeviceKey sets the DeviceKey field's value. -func (s *AdminForgetDeviceInput) SetDeviceKey(v string) *AdminForgetDeviceInput { +func (s *AdminUpdateDeviceStatusInput) SetDeviceKey(v string) *AdminUpdateDeviceStatusInput { s.DeviceKey = &v return s } +// SetDeviceRememberedStatus sets the DeviceRememberedStatus field's value. +func (s *AdminUpdateDeviceStatusInput) SetDeviceRememberedStatus(v string) *AdminUpdateDeviceStatusInput { + s.DeviceRememberedStatus = &v + return s +} + // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminForgetDeviceInput) SetUserPoolId(v string) *AdminForgetDeviceInput { +func (s *AdminUpdateDeviceStatusInput) SetUserPoolId(v string) *AdminUpdateDeviceStatusInput { s.UserPoolId = &v return s } // SetUsername sets the Username field's value. -func (s *AdminForgetDeviceInput) SetUsername(v string) *AdminForgetDeviceInput { +func (s *AdminUpdateDeviceStatusInput) SetUsername(v string) *AdminUpdateDeviceStatusInput { s.Username = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDeviceOutput -type AdminForgetDeviceOutput struct { +// The status response from the request to update the device, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatusResponse +type AdminUpdateDeviceStatusOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AdminForgetDeviceOutput) String() string { +func (s AdminUpdateDeviceStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminForgetDeviceOutput) GoString() string { +func (s AdminUpdateDeviceStatusOutput) GoString() string { return s.String() } -// Represents the request to get the device, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDeviceRequest -type AdminGetDeviceInput struct { +// Represents the request to update the user's attributes as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributesRequest +type AdminUpdateUserAttributesInput struct { _ struct{} `type:"structure"` - // The device key. + // An array of name-value pairs representing user attributes. // - // DeviceKey is a required field - DeviceKey *string `min:"1" type:"string" required:"true"` + // For custom attributes, you must prepend the custom: prefix to the attribute + // name. + // + // UserAttributes is a required field + UserAttributes []*AttributeType `type:"list" required:"true"` - // The user pool ID. + // The user pool ID for the user pool where you want to update user attributes. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The user name. + // The user name of the user for whom you want to update user attributes. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminGetDeviceInput) String() string { +func (s AdminUpdateUserAttributesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminGetDeviceInput) GoString() string { +func (s AdminUpdateUserAttributesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminGetDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminGetDeviceInput"} - if s.DeviceKey == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceKey")) - } - if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) +func (s *AdminUpdateUserAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminUpdateUserAttributesInput"} + if s.UserAttributes == nil { + invalidParams.Add(request.NewErrParamRequired("UserAttributes")) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -9960,6 +13053,16 @@ func (s *AdminGetDeviceInput) Validate() error { if s.Username != nil && len(*s.Username) < 1 { invalidParams.Add(request.NewErrParamMinLen("Username", 1)) } + if s.UserAttributes != nil { + for i, v := range s.UserAttributes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -9967,81 +13070,70 @@ func (s *AdminGetDeviceInput) Validate() error { return nil } -// SetDeviceKey sets the DeviceKey field's value. -func (s *AdminGetDeviceInput) SetDeviceKey(v string) *AdminGetDeviceInput { - s.DeviceKey = &v +// SetUserAttributes sets the UserAttributes field's value. +func (s *AdminUpdateUserAttributesInput) SetUserAttributes(v []*AttributeType) *AdminUpdateUserAttributesInput { + s.UserAttributes = v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminGetDeviceInput) SetUserPoolId(v string) *AdminGetDeviceInput { +func (s *AdminUpdateUserAttributesInput) SetUserPoolId(v string) *AdminUpdateUserAttributesInput { s.UserPoolId = &v return s } // SetUsername sets the Username field's value. -func (s *AdminGetDeviceInput) SetUsername(v string) *AdminGetDeviceInput { +func (s *AdminUpdateUserAttributesInput) SetUsername(v string) *AdminUpdateUserAttributesInput { s.Username = &v return s } -// Gets the device response, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDeviceResponse -type AdminGetDeviceOutput struct { +// Represents the response from the server for the request to update user attributes +// as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributesResponse +type AdminUpdateUserAttributesOutput struct { _ struct{} `type:"structure"` - - // The device. - // - // Device is a required field - Device *DeviceType `type:"structure" required:"true"` } // String returns the string representation -func (s AdminGetDeviceOutput) String() string { +func (s AdminUpdateUserAttributesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminGetDeviceOutput) GoString() string { +func (s AdminUpdateUserAttributesOutput) GoString() string { return s.String() } -// SetDevice sets the Device field's value. -func (s *AdminGetDeviceOutput) SetDevice(v *DeviceType) *AdminGetDeviceOutput { - s.Device = v - return s -} - -// Represents the request to get the specified user as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUserRequest -type AdminGetUserInput struct { +// The request to sign out of all devices, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOutRequest +type AdminUserGlobalSignOutInput struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool where you want to get information about - // the user. + // The user pool ID. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The user name of the user you wish to retrieve. + // The user name. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminGetUserInput) String() string { +func (s AdminUserGlobalSignOutInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminGetUserInput) GoString() string { +func (s AdminUserGlobalSignOutInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminGetUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminGetUserInput"} +func (s *AdminUserGlobalSignOutInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminUserGlobalSignOutInput"} if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -10062,200 +13154,172 @@ func (s *AdminGetUserInput) Validate() error { } // SetUserPoolId sets the UserPoolId field's value. -func (s *AdminGetUserInput) SetUserPoolId(v string) *AdminGetUserInput { +func (s *AdminUserGlobalSignOutInput) SetUserPoolId(v string) *AdminUserGlobalSignOutInput { s.UserPoolId = &v return s } // SetUsername sets the Username field's value. -func (s *AdminGetUserInput) SetUsername(v string) *AdminGetUserInput { +func (s *AdminUserGlobalSignOutInput) SetUsername(v string) *AdminUserGlobalSignOutInput { s.Username = &v return s } -// Represents the response from the server from the request to get the specified -// user as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUserResponse -type AdminGetUserOutput struct { +// The global sign-out response, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOutResponse +type AdminUserGlobalSignOutOutput struct { _ struct{} `type:"structure"` +} - // Indicates that the status is enabled. - Enabled *bool `type:"boolean"` - - // Specifies the options for MFA (e.g., email or phone number). - MFAOptions []*MFAOptionType `type:"list"` - - // An array of name-value pairs representing user attributes. - UserAttributes []*AttributeType `type:"list"` +// String returns the string representation +func (s AdminUserGlobalSignOutOutput) String() string { + return awsutil.Prettify(s) +} - // The date the user was created. - UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"` +// GoString returns the string representation +func (s AdminUserGlobalSignOutOutput) GoString() string { + return s.String() +} - // The date the user was last modified. - UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` +// The Amazon Pinpoint analytics configuration for collecting metrics for a +// user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AnalyticsConfigurationType +type AnalyticsConfigurationType struct { + _ struct{} `type:"structure"` - // The user status. Can be one of the following: - // - // * UNCONFIRMED - User has been created but not confirmed. - // - // * CONFIRMED - User has been confirmed. + // The application ID for an Amazon Pinpoint application. // - // * ARCHIVED - User is no longer active. - // - // * COMPROMISED - User is disabled due to a potential security threat. + // ApplicationId is a required field + ApplicationId *string `type:"string" required:"true"` + + // The external ID. // - // * UNKNOWN - User status is not known. - UserStatus *string `type:"string" enum:"UserStatusType"` + // ExternalId is a required field + ExternalId *string `type:"string" required:"true"` - // The user name of the user about whom you are receiving information. + // The ARN of an IAM role that authorizes Amazon Cognito to publish events to + // Amazon Pinpoint analytics. // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // If UserDataShared is true, Amazon Cognito will include user data in the events + // it publishes to Amazon Pinpoint analytics. + UserDataShared *bool `type:"boolean"` } // String returns the string representation -func (s AdminGetUserOutput) String() string { +func (s AnalyticsConfigurationType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminGetUserOutput) GoString() string { +func (s AnalyticsConfigurationType) GoString() string { return s.String() } -// SetEnabled sets the Enabled field's value. -func (s *AdminGetUserOutput) SetEnabled(v bool) *AdminGetUserOutput { - s.Enabled = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalyticsConfigurationType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalyticsConfigurationType"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ExternalId == nil { + invalidParams.Add(request.NewErrParamRequired("ExternalId")) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } -// SetMFAOptions sets the MFAOptions field's value. -func (s *AdminGetUserOutput) SetMFAOptions(v []*MFAOptionType) *AdminGetUserOutput { - s.MFAOptions = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetUserAttributes sets the UserAttributes field's value. -func (s *AdminGetUserOutput) SetUserAttributes(v []*AttributeType) *AdminGetUserOutput { - s.UserAttributes = v +// SetApplicationId sets the ApplicationId field's value. +func (s *AnalyticsConfigurationType) SetApplicationId(v string) *AnalyticsConfigurationType { + s.ApplicationId = &v return s } -// SetUserCreateDate sets the UserCreateDate field's value. -func (s *AdminGetUserOutput) SetUserCreateDate(v time.Time) *AdminGetUserOutput { - s.UserCreateDate = &v +// SetExternalId sets the ExternalId field's value. +func (s *AnalyticsConfigurationType) SetExternalId(v string) *AnalyticsConfigurationType { + s.ExternalId = &v return s } -// SetUserLastModifiedDate sets the UserLastModifiedDate field's value. -func (s *AdminGetUserOutput) SetUserLastModifiedDate(v time.Time) *AdminGetUserOutput { - s.UserLastModifiedDate = &v +// SetRoleArn sets the RoleArn field's value. +func (s *AnalyticsConfigurationType) SetRoleArn(v string) *AnalyticsConfigurationType { + s.RoleArn = &v return s } -// SetUserStatus sets the UserStatus field's value. -func (s *AdminGetUserOutput) SetUserStatus(v string) *AdminGetUserOutput { - s.UserStatus = &v +// SetUserDataShared sets the UserDataShared field's value. +func (s *AnalyticsConfigurationType) SetUserDataShared(v bool) *AnalyticsConfigurationType { + s.UserDataShared = &v return s } -// SetUsername sets the Username field's value. -func (s *AdminGetUserOutput) SetUsername(v string) *AdminGetUserOutput { - s.Username = &v - return s +// An Amazon Pinpoint analytics endpoint. +// +// An endpoint uniquely identifies a mobile device, email address, or phone +// number that can receive messages from Amazon Pinpoint analytics. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AnalyticsMetadataType +type AnalyticsMetadataType struct { + _ struct{} `type:"structure"` + + // The endpoint ID. + AnalyticsEndpointId *string `type:"string"` } -// Initiates the authorization request, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuthRequest -type AdminInitiateAuthInput struct { - _ struct{} `type:"structure"` +// String returns the string representation +func (s AnalyticsMetadataType) String() string { + return awsutil.Prettify(s) +} - // The authentication flow for this call to execute. The API action will depend - // on this value. For example: - // - // * REFRESH_TOKEN_AUTH will take in a valid refresh token and return new - // tokens. - // - // * USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables - // to be used for next challenge execution. - // - // Valid values include: - // - // * USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) - // protocol. - // - // * REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing - // the access token and ID token by supplying a valid refresh token. - // - // * CUSTOM_AUTH: Custom authentication flow. - // - // * ADMIN_NO_SRP_AUTH: Non-SRP authentication flow; you can pass in the - // USERNAME and PASSWORD directly if the flow is enabled for calling the - // app client. - // - // AuthFlow is a required field - AuthFlow *string `type:"string" required:"true" enum:"AuthFlowType"` +// GoString returns the string representation +func (s AnalyticsMetadataType) GoString() string { + return s.String() +} - // The authentication parameters. These are inputs corresponding to the AuthFlow - // that you are invoking. The required values depend on the value of AuthFlow: - // - // * For USER_SRP_AUTH: USERNAME (required), SRP_A (required), SECRET_HASH - // (required if the app client is configured with a client secret), DEVICE_KEY - // - // * For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required), SECRET_HASH - // (required if the app client is configured with a client secret), REFRESH_TOKEN - // (required), DEVICE_KEY - // - // * For ADMIN_NO_SRP_AUTH: USERNAME (required), SECRET_HASH (if app client - // is configured with client secret), PASSWORD (required), DEVICE_KEY - // - // * For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is - // configured with client secret), DEVICE_KEY - AuthParameters map[string]*string `type:"map"` +// SetAnalyticsEndpointId sets the AnalyticsEndpointId field's value. +func (s *AnalyticsMetadataType) SetAnalyticsEndpointId(v string) *AnalyticsMetadataType { + s.AnalyticsEndpointId = &v + return s +} - // The app client ID. - // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AssociateSoftwareTokenRequest +type AssociateSoftwareTokenInput struct { + _ struct{} `type:"structure"` - // This is a random key-value pair map which can contain any key and will be - // passed to your PreAuthentication Lambda trigger as-is. It can be used to - // implement additional validations around authentication. - ClientMetadata map[string]*string `type:"map"` + // The access token. + AccessToken *string `type:"string"` - // The ID of the Amazon Cognito user pool. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // The session which should be passed both ways in challenge-response calls + // to the service. This allows authentication of the user as part of the MFA + // setup process. + Session *string `min:"20" type:"string"` } // String returns the string representation -func (s AdminInitiateAuthInput) String() string { +func (s AssociateSoftwareTokenInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminInitiateAuthInput) GoString() string { +func (s AssociateSoftwareTokenInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminInitiateAuthInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminInitiateAuthInput"} - if s.AuthFlow == nil { - invalidParams.Add(request.NewErrParamRequired("AuthFlow")) - } - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) +func (s *AssociateSoftwareTokenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateSoftwareTokenInput"} + if s.Session != nil && len(*s.Session) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Session", 20)) } if invalidParams.Len() > 0 { @@ -10264,295 +13328,348 @@ func (s *AdminInitiateAuthInput) Validate() error { return nil } -// SetAuthFlow sets the AuthFlow field's value. -func (s *AdminInitiateAuthInput) SetAuthFlow(v string) *AdminInitiateAuthInput { - s.AuthFlow = &v +// SetAccessToken sets the AccessToken field's value. +func (s *AssociateSoftwareTokenInput) SetAccessToken(v string) *AssociateSoftwareTokenInput { + s.AccessToken = &v return s } -// SetAuthParameters sets the AuthParameters field's value. -func (s *AdminInitiateAuthInput) SetAuthParameters(v map[string]*string) *AdminInitiateAuthInput { - s.AuthParameters = v +// SetSession sets the Session field's value. +func (s *AssociateSoftwareTokenInput) SetSession(v string) *AssociateSoftwareTokenInput { + s.Session = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AssociateSoftwareTokenResponse +type AssociateSoftwareTokenOutput struct { + _ struct{} `type:"structure"` + + // A unique generated shared secret code that is used in the TOTP algorithm + // to generate a one time code. + SecretCode *string `min:"16" type:"string"` + + // The session which should be passed both ways in challenge-response calls + // to the service. This allows authentication of the user as part of the MFA + // setup process. + Session *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s AssociateSoftwareTokenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSoftwareTokenOutput) GoString() string { + return s.String() +} + +// SetSecretCode sets the SecretCode field's value. +func (s *AssociateSoftwareTokenOutput) SetSecretCode(v string) *AssociateSoftwareTokenOutput { + s.SecretCode = &v + return s +} + +// SetSession sets the Session field's value. +func (s *AssociateSoftwareTokenOutput) SetSession(v string) *AssociateSoftwareTokenOutput { + s.Session = &v return s } -// SetClientId sets the ClientId field's value. -func (s *AdminInitiateAuthInput) SetClientId(v string) *AdminInitiateAuthInput { - s.ClientId = &v - return s +// Specifies whether the attribute is standard or custom. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AttributeType +type AttributeType struct { + _ struct{} `type:"structure"` + + // The name of the attribute. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The value of the attribute. + Value *string `type:"string"` +} + +// String returns the string representation +func (s AttributeType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttributeType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttributeType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttributeType"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetClientMetadata sets the ClientMetadata field's value. -func (s *AdminInitiateAuthInput) SetClientMetadata(v map[string]*string) *AdminInitiateAuthInput { - s.ClientMetadata = v +// SetName sets the Name field's value. +func (s *AttributeType) SetName(v string) *AttributeType { + s.Name = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminInitiateAuthInput) SetUserPoolId(v string) *AdminInitiateAuthInput { - s.UserPoolId = &v +// SetValue sets the Value field's value. +func (s *AttributeType) SetValue(v string) *AttributeType { + s.Value = &v return s } -// Initiates the authentication response, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuthResponse -type AdminInitiateAuthOutput struct { +// The authentication event type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AuthEventType +type AuthEventType struct { _ struct{} `type:"structure"` - // The result of the authentication response. This is only returned if the caller - // does not need to pass another challenge. If the caller does need to pass - // another challenge before it gets tokens, ChallengeName, ChallengeParameters, - // and Session are returned. - AuthenticationResult *AuthenticationResultType `type:"structure"` + // The challenge responses. + ChallengeResponses []*ChallengeResponseType `type:"list"` - // The name of the challenge which you are responding to with this call. This - // is returned to you in the AdminInitiateAuth response if you need to pass - // another challenge. - // - // * SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via - // SMS. - // - // * PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, - // PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations. - // - // * CUSTOM_CHALLENGE: This is returned if your custom authentication flow - // determines that the user should pass another challenge before tokens are - // issued. - // - // * DEVICE_SRP_AUTH: If device tracking was enabled on your user pool and - // the previous challenges were passed, this challenge is returned so that - // Amazon Cognito can start tracking this device. - // - // * DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices - // only. - // - // * ADMIN_NO_SRP_AUTH: This is returned if you need to authenticate with - // USERNAME and PASSWORD directly. An app client must be enabled to use this - // flow. - // - // * NEW_PASSWORD_REQUIRED: For users which are required to change their - // passwords after successful first login. This challenge should be passed - // with NEW_PASSWORD and any other required attributes. - ChallengeName *string `type:"string" enum:"ChallengeNameType"` + // The creation date + CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // The challenge parameters. These are returned to you in the AdminInitiateAuth - // response if you need to pass another challenge. The responses in this parameter - // should be used to compute inputs to the next call (AdminRespondToAuthChallenge). - // - // All challenges require USERNAME and SECRET_HASH (if applicable). - // - // The value of the USER_IF_FOR_SRP attribute will be the user's actual username, - // not an alias (such as email address or phone number), even if you specified - // an alias in your call to AdminInitiateAuth. This is because, in the AdminRespondToAuthChallenge - // API ChallengeResponses, the USERNAME attribute cannot be an alias. - ChallengeParameters map[string]*string `type:"map"` + // The user context data captured at the time of an event request. It provides + // additional information about the client from which event the request is received. + EventContextData *EventContextDataType `type:"structure"` - // The session which should be passed both ways in challenge-response calls - // to the service. If AdminInitiateAuth or AdminRespondToAuthChallenge API call - // determines that the caller needs to go through another challenge, they return - // a session with other challenge parameters. This session should be passed - // as it is to the next AdminRespondToAuthChallenge API call. - Session *string `min:"20" type:"string"` + // A flag specifying the user feedback captured at the time of an event request + // is good or bad. + EventFeedback *EventFeedbackType `type:"structure"` + + // The event ID. + EventId *string `type:"string"` + + // The event response. + EventResponse *string `type:"string" enum:"EventResponseType"` + + // The event risk. + EventRisk *EventRiskType `type:"structure"` + + // The event type. + EventType *string `type:"string" enum:"EventType"` } // String returns the string representation -func (s AdminInitiateAuthOutput) String() string { +func (s AuthEventType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminInitiateAuthOutput) GoString() string { +func (s AuthEventType) GoString() string { return s.String() } -// SetAuthenticationResult sets the AuthenticationResult field's value. -func (s *AdminInitiateAuthOutput) SetAuthenticationResult(v *AuthenticationResultType) *AdminInitiateAuthOutput { - s.AuthenticationResult = v +// SetChallengeResponses sets the ChallengeResponses field's value. +func (s *AuthEventType) SetChallengeResponses(v []*ChallengeResponseType) *AuthEventType { + s.ChallengeResponses = v return s } -// SetChallengeName sets the ChallengeName field's value. -func (s *AdminInitiateAuthOutput) SetChallengeName(v string) *AdminInitiateAuthOutput { - s.ChallengeName = &v +// SetCreationDate sets the CreationDate field's value. +func (s *AuthEventType) SetCreationDate(v time.Time) *AuthEventType { + s.CreationDate = &v return s } -// SetChallengeParameters sets the ChallengeParameters field's value. -func (s *AdminInitiateAuthOutput) SetChallengeParameters(v map[string]*string) *AdminInitiateAuthOutput { - s.ChallengeParameters = v +// SetEventContextData sets the EventContextData field's value. +func (s *AuthEventType) SetEventContextData(v *EventContextDataType) *AuthEventType { + s.EventContextData = v return s } -// SetSession sets the Session field's value. -func (s *AdminInitiateAuthOutput) SetSession(v string) *AdminInitiateAuthOutput { - s.Session = &v +// SetEventFeedback sets the EventFeedback field's value. +func (s *AuthEventType) SetEventFeedback(v *EventFeedbackType) *AuthEventType { + s.EventFeedback = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminLinkProviderForUserRequest -type AdminLinkProviderForUserInput struct { +// SetEventId sets the EventId field's value. +func (s *AuthEventType) SetEventId(v string) *AuthEventType { + s.EventId = &v + return s +} + +// SetEventResponse sets the EventResponse field's value. +func (s *AuthEventType) SetEventResponse(v string) *AuthEventType { + s.EventResponse = &v + return s +} + +// SetEventRisk sets the EventRisk field's value. +func (s *AuthEventType) SetEventRisk(v *EventRiskType) *AuthEventType { + s.EventRisk = v + return s +} + +// SetEventType sets the EventType field's value. +func (s *AuthEventType) SetEventType(v string) *AuthEventType { + s.EventType = &v + return s +} + +// The authentication result. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AuthenticationResultType +type AuthenticationResultType struct { _ struct{} `type:"structure"` - // The existing user in the user pool to be linked to the external identity - // provider user account. Can be a native (Username + Password) Cognito User - // Pools user or a federated user (for example, a SAML or Facebook user). If - // the user doesn't exist, an exception is thrown. This is the user that is - // returned when the new user (with the linked identity provider attribute) - // signs in. - // - // The ProviderAttributeValue for the DestinationUser must match the username - // for the user in the user pool. The ProviderAttributeName will always be ignored. - // - // DestinationUser is a required field - DestinationUser *ProviderUserIdentifierType `type:"structure" required:"true"` + // The access token. + AccessToken *string `type:"string"` - // An external identity provider account for a user who does not currently exist - // yet in the user pool. This user must be a federated user (for example, a - // SAML or Facebook user), not another native user. - // - // If the SourceUser is a federated social identity provider user (Facebook, - // Google, or Login with Amazon), you must set the ProviderAttributeName to - // Cognito_Subject. For social identity providers, the ProviderName will be - // Facebook, Google, or LoginWithAmazon, and Cognito will automatically parse - // the Facebook, Google, and Login with Amazon tokens for id, sub, and user_id, - // respectively. The ProviderAttributeValue for the user must be the same value - // as the id, sub, or user_id value found in the social identity provider token. - // - // For SAML, the ProviderAttributeNamecan be any value that matches a claim in the SAML assertion. If you wish - // to link SAML users based on the subject of the SAML assertion, you should - // map the subject to a claim through the SAML identity provider and submit - // that claim name as the ProviderAttributeName. If you set ProviderAttributeNameto Cognito_Subject - // - // SourceUser is a required field - SourceUser *ProviderUserIdentifierType `type:"structure" required:"true"` + // The expiration period of the authentication result. + ExpiresIn *int64 `type:"integer"` - // The user pool ID for the user pool. - // - // UserPoolId is a required field - UserPoolId *string `type:"string" required:"true"` + // The ID token. + IdToken *string `type:"string"` + + // The new device metadata from an authentication result. + NewDeviceMetadata *NewDeviceMetadataType `type:"structure"` + + // The refresh token. + RefreshToken *string `type:"string"` + + // The token type. + TokenType *string `type:"string"` } // String returns the string representation -func (s AdminLinkProviderForUserInput) String() string { +func (s AuthenticationResultType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminLinkProviderForUserInput) GoString() string { +func (s AuthenticationResultType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminLinkProviderForUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminLinkProviderForUserInput"} - if s.DestinationUser == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationUser")) - } - if s.SourceUser == nil { - invalidParams.Add(request.NewErrParamRequired("SourceUser")) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.DestinationUser != nil { - if err := s.DestinationUser.Validate(); err != nil { - invalidParams.AddNested("DestinationUser", err.(request.ErrInvalidParams)) - } - } - if s.SourceUser != nil { - if err := s.SourceUser.Validate(); err != nil { - invalidParams.AddNested("SourceUser", err.(request.ErrInvalidParams)) - } - } +// SetAccessToken sets the AccessToken field's value. +func (s *AuthenticationResultType) SetAccessToken(v string) *AuthenticationResultType { + s.AccessToken = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetExpiresIn sets the ExpiresIn field's value. +func (s *AuthenticationResultType) SetExpiresIn(v int64) *AuthenticationResultType { + s.ExpiresIn = &v + return s } -// SetDestinationUser sets the DestinationUser field's value. -func (s *AdminLinkProviderForUserInput) SetDestinationUser(v *ProviderUserIdentifierType) *AdminLinkProviderForUserInput { - s.DestinationUser = v +// SetIdToken sets the IdToken field's value. +func (s *AuthenticationResultType) SetIdToken(v string) *AuthenticationResultType { + s.IdToken = &v return s } -// SetSourceUser sets the SourceUser field's value. -func (s *AdminLinkProviderForUserInput) SetSourceUser(v *ProviderUserIdentifierType) *AdminLinkProviderForUserInput { - s.SourceUser = v +// SetNewDeviceMetadata sets the NewDeviceMetadata field's value. +func (s *AuthenticationResultType) SetNewDeviceMetadata(v *NewDeviceMetadataType) *AuthenticationResultType { + s.NewDeviceMetadata = v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminLinkProviderForUserInput) SetUserPoolId(v string) *AdminLinkProviderForUserInput { - s.UserPoolId = &v +// SetRefreshToken sets the RefreshToken field's value. +func (s *AuthenticationResultType) SetRefreshToken(v string) *AuthenticationResultType { + s.RefreshToken = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminLinkProviderForUserResponse -type AdminLinkProviderForUserOutput struct { +// SetTokenType sets the TokenType field's value. +func (s *AuthenticationResultType) SetTokenType(v string) *AuthenticationResultType { + s.TokenType = &v + return s +} + +// The challenge response type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChallengeResponseType +type ChallengeResponseType struct { _ struct{} `type:"structure"` + + // The challenge name + ChallengeName *string `type:"string" enum:"ChallengeName"` + + // The challenge response. + ChallengeResponse *string `type:"string" enum:"ChallengeResponse"` } // String returns the string representation -func (s AdminLinkProviderForUserOutput) String() string { +func (s ChallengeResponseType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminLinkProviderForUserOutput) GoString() string { +func (s ChallengeResponseType) GoString() string { return s.String() } -// Represents the request to list devices, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevicesRequest -type AdminListDevicesInput struct { - _ struct{} `type:"structure"` +// SetChallengeName sets the ChallengeName field's value. +func (s *ChallengeResponseType) SetChallengeName(v string) *ChallengeResponseType { + s.ChallengeName = &v + return s +} - // The limit of the devices request. - Limit *int64 `type:"integer"` +// SetChallengeResponse sets the ChallengeResponse field's value. +func (s *ChallengeResponseType) SetChallengeResponse(v string) *ChallengeResponseType { + s.ChallengeResponse = &v + return s +} - // The pagination token. - PaginationToken *string `min:"1" type:"string"` +// Represents the request to change a user password. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePasswordRequest +type ChangePasswordInput struct { + _ struct{} `type:"structure"` - // The user pool ID. + // The access token. + // + // AccessToken is a required field + AccessToken *string `type:"string" required:"true"` + + // The old password. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // PreviousPassword is a required field + PreviousPassword *string `min:"6" type:"string" required:"true"` - // The user name. + // The new password. // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // ProposedPassword is a required field + ProposedPassword *string `min:"6" type:"string" required:"true"` } // String returns the string representation -func (s AdminListDevicesInput) String() string { +func (s ChangePasswordInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminListDevicesInput) GoString() string { +func (s ChangePasswordInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminListDevicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminListDevicesInput"} - if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) +func (s *ChangePasswordInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChangePasswordInput"} + if s.AccessToken == nil { + invalidParams.Add(request.NewErrParamRequired("AccessToken")) } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + if s.PreviousPassword == nil { + invalidParams.Add(request.NewErrParamRequired("PreviousPassword")) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.PreviousPassword != nil && len(*s.PreviousPassword) < 6 { + invalidParams.Add(request.NewErrParamMinLen("PreviousPassword", 6)) } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) + if s.ProposedPassword == nil { + invalidParams.Add(request.NewErrParamRequired("ProposedPassword")) } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + if s.ProposedPassword != nil && len(*s.ProposedPassword) < 6 { + invalidParams.Add(request.NewErrParamMinLen("ProposedPassword", 6)) } if invalidParams.Len() > 0 { @@ -10561,113 +13678,109 @@ func (s *AdminListDevicesInput) Validate() error { return nil } -// SetLimit sets the Limit field's value. -func (s *AdminListDevicesInput) SetLimit(v int64) *AdminListDevicesInput { - s.Limit = &v +// SetAccessToken sets the AccessToken field's value. +func (s *ChangePasswordInput) SetAccessToken(v string) *ChangePasswordInput { + s.AccessToken = &v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *AdminListDevicesInput) SetPaginationToken(v string) *AdminListDevicesInput { - s.PaginationToken = &v +// SetPreviousPassword sets the PreviousPassword field's value. +func (s *ChangePasswordInput) SetPreviousPassword(v string) *ChangePasswordInput { + s.PreviousPassword = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminListDevicesInput) SetUserPoolId(v string) *AdminListDevicesInput { - s.UserPoolId = &v +// SetProposedPassword sets the ProposedPassword field's value. +func (s *ChangePasswordInput) SetProposedPassword(v string) *ChangePasswordInput { + s.ProposedPassword = &v return s } -// SetUsername sets the Username field's value. -func (s *AdminListDevicesInput) SetUsername(v string) *AdminListDevicesInput { - s.Username = &v - return s +// The response from the server to the change password request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePasswordResponse +type ChangePasswordOutput struct { + _ struct{} `type:"structure"` } -// Lists the device's response, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevicesResponse -type AdminListDevicesOutput struct { +// String returns the string representation +func (s ChangePasswordOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChangePasswordOutput) GoString() string { + return s.String() +} + +// The code delivery details being returned from the server. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CodeDeliveryDetailsType +type CodeDeliveryDetailsType struct { _ struct{} `type:"structure"` - // The devices in the list of devices response. - Devices []*DeviceType `type:"list"` + // The attribute name. + AttributeName *string `min:"1" type:"string"` - // The pagination token. - PaginationToken *string `min:"1" type:"string"` + // The delivery medium (email message or phone number). + DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"` + + // The destination for the code delivery details. + Destination *string `type:"string"` } // String returns the string representation -func (s AdminListDevicesOutput) String() string { +func (s CodeDeliveryDetailsType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminListDevicesOutput) GoString() string { +func (s CodeDeliveryDetailsType) GoString() string { return s.String() } -// SetDevices sets the Devices field's value. -func (s *AdminListDevicesOutput) SetDevices(v []*DeviceType) *AdminListDevicesOutput { - s.Devices = v +// SetAttributeName sets the AttributeName field's value. +func (s *CodeDeliveryDetailsType) SetAttributeName(v string) *CodeDeliveryDetailsType { + s.AttributeName = &v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *AdminListDevicesOutput) SetPaginationToken(v string) *AdminListDevicesOutput { - s.PaginationToken = &v +// SetDeliveryMedium sets the DeliveryMedium field's value. +func (s *CodeDeliveryDetailsType) SetDeliveryMedium(v string) *CodeDeliveryDetailsType { + s.DeliveryMedium = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUserRequest -type AdminListGroupsForUserInput struct { - _ struct{} `type:"structure"` - - // The limit of the request to list groups. - Limit *int64 `type:"integer"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` +// SetDestination sets the Destination field's value. +func (s *CodeDeliveryDetailsType) SetDestination(v string) *CodeDeliveryDetailsType { + s.Destination = &v + return s +} - // The user pool ID for the user pool. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` +// The compromised credentials actions type +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CompromisedCredentialsActionsType +type CompromisedCredentialsActionsType struct { + _ struct{} `type:"structure"` - // The username for the user. + // The event action. // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // EventAction is a required field + EventAction *string `type:"string" required:"true" enum:"CompromisedCredentialsEventActionType"` } // String returns the string representation -func (s AdminListGroupsForUserInput) String() string { +func (s CompromisedCredentialsActionsType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminListGroupsForUserInput) GoString() string { +func (s CompromisedCredentialsActionsType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminListGroupsForUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminListGroupsForUserInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) +func (s *CompromisedCredentialsActionsType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CompromisedCredentialsActionsType"} + if s.EventAction == nil { + invalidParams.Add(request.NewErrParamRequired("EventAction")) } if invalidParams.Len() > 0 { @@ -10676,114 +13789,113 @@ func (s *AdminListGroupsForUserInput) Validate() error { return nil } -// SetLimit sets the Limit field's value. -func (s *AdminListGroupsForUserInput) SetLimit(v int64) *AdminListGroupsForUserInput { - s.Limit = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *AdminListGroupsForUserInput) SetNextToken(v string) *AdminListGroupsForUserInput { - s.NextToken = &v - return s -} - -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminListGroupsForUserInput) SetUserPoolId(v string) *AdminListGroupsForUserInput { - s.UserPoolId = &v - return s -} - -// SetUsername sets the Username field's value. -func (s *AdminListGroupsForUserInput) SetUsername(v string) *AdminListGroupsForUserInput { - s.Username = &v +// SetEventAction sets the EventAction field's value. +func (s *CompromisedCredentialsActionsType) SetEventAction(v string) *CompromisedCredentialsActionsType { + s.EventAction = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUserResponse -type AdminListGroupsForUserOutput struct { +// The compromised credentials risk configuration type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CompromisedCredentialsRiskConfigurationType +type CompromisedCredentialsRiskConfigurationType struct { _ struct{} `type:"structure"` - // The groups that the user belongs to. - Groups []*GroupType `type:"list"` + // The compromised credentials risk configuration actions. + // + // Actions is a required field + Actions *CompromisedCredentialsActionsType `type:"structure" required:"true"` - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` + // Perform the action for these events. The default is to perform all events + // if no event filter is specified. + EventFilter []*string `type:"list"` } // String returns the string representation -func (s AdminListGroupsForUserOutput) String() string { +func (s CompromisedCredentialsRiskConfigurationType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminListGroupsForUserOutput) GoString() string { +func (s CompromisedCredentialsRiskConfigurationType) GoString() string { return s.String() } -// SetGroups sets the Groups field's value. -func (s *AdminListGroupsForUserOutput) SetGroups(v []*GroupType) *AdminListGroupsForUserOutput { - s.Groups = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *CompromisedCredentialsRiskConfigurationType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CompromisedCredentialsRiskConfigurationType"} + if s.Actions == nil { + invalidParams.Add(request.NewErrParamRequired("Actions")) + } + if s.Actions != nil { + if err := s.Actions.Validate(); err != nil { + invalidParams.AddNested("Actions", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActions sets the Actions field's value. +func (s *CompromisedCredentialsRiskConfigurationType) SetActions(v *CompromisedCredentialsActionsType) *CompromisedCredentialsRiskConfigurationType { + s.Actions = v return s } -// SetNextToken sets the NextToken field's value. -func (s *AdminListGroupsForUserOutput) SetNextToken(v string) *AdminListGroupsForUserOutput { - s.NextToken = &v +// SetEventFilter sets the EventFilter field's value. +func (s *CompromisedCredentialsRiskConfigurationType) SetEventFilter(v []*string) *CompromisedCredentialsRiskConfigurationType { + s.EventFilter = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroupRequest -type AdminRemoveUserFromGroupInput struct { +// Confirms the device request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDeviceRequest +type ConfirmDeviceInput struct { _ struct{} `type:"structure"` - // The group name. + // The access token. // - // GroupName is a required field - GroupName *string `min:"1" type:"string" required:"true"` + // AccessToken is a required field + AccessToken *string `type:"string" required:"true"` - // The user pool ID for the user pool. + // The device key. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // DeviceKey is a required field + DeviceKey *string `min:"1" type:"string" required:"true"` - // The username for the user. - // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // The device name. + DeviceName *string `min:"1" type:"string"` + + // The configuration of the device secret verifier. + DeviceSecretVerifierConfig *DeviceSecretVerifierConfigType `type:"structure"` } // String returns the string representation -func (s AdminRemoveUserFromGroupInput) String() string { +func (s ConfirmDeviceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminRemoveUserFromGroupInput) GoString() string { +func (s ConfirmDeviceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminRemoveUserFromGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminRemoveUserFromGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) +func (s *ConfirmDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfirmDeviceInput"} + if s.AccessToken == nil { + invalidParams.Add(request.NewErrParamRequired("AccessToken")) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.DeviceKey == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceKey")) } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) + if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + if s.DeviceName != nil && len(*s.DeviceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceName", 1)) } if invalidParams.Len() > 0 { @@ -10792,73 +13904,130 @@ func (s *AdminRemoveUserFromGroupInput) Validate() error { return nil } -// SetGroupName sets the GroupName field's value. -func (s *AdminRemoveUserFromGroupInput) SetGroupName(v string) *AdminRemoveUserFromGroupInput { - s.GroupName = &v +// SetAccessToken sets the AccessToken field's value. +func (s *ConfirmDeviceInput) SetAccessToken(v string) *ConfirmDeviceInput { + s.AccessToken = &v + return s +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *ConfirmDeviceInput) SetDeviceKey(v string) *ConfirmDeviceInput { + s.DeviceKey = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminRemoveUserFromGroupInput) SetUserPoolId(v string) *AdminRemoveUserFromGroupInput { - s.UserPoolId = &v +// SetDeviceName sets the DeviceName field's value. +func (s *ConfirmDeviceInput) SetDeviceName(v string) *ConfirmDeviceInput { + s.DeviceName = &v return s } -// SetUsername sets the Username field's value. -func (s *AdminRemoveUserFromGroupInput) SetUsername(v string) *AdminRemoveUserFromGroupInput { - s.Username = &v +// SetDeviceSecretVerifierConfig sets the DeviceSecretVerifierConfig field's value. +func (s *ConfirmDeviceInput) SetDeviceSecretVerifierConfig(v *DeviceSecretVerifierConfigType) *ConfirmDeviceInput { + s.DeviceSecretVerifierConfig = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroupOutput -type AdminRemoveUserFromGroupOutput struct { +// Confirms the device response. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDeviceResponse +type ConfirmDeviceOutput struct { _ struct{} `type:"structure"` + + // Indicates whether the user confirmation is necessary to confirm the device + // response. + UserConfirmationNecessary *bool `type:"boolean"` } // String returns the string representation -func (s AdminRemoveUserFromGroupOutput) String() string { +func (s ConfirmDeviceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminRemoveUserFromGroupOutput) GoString() string { +func (s ConfirmDeviceOutput) GoString() string { return s.String() } -// Represents the request to reset a user's password as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPasswordRequest -type AdminResetUserPasswordInput struct { +// SetUserConfirmationNecessary sets the UserConfirmationNecessary field's value. +func (s *ConfirmDeviceOutput) SetUserConfirmationNecessary(v bool) *ConfirmDeviceOutput { + s.UserConfirmationNecessary = &v + return s +} + +// The request representing the confirmation for a password reset. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPasswordRequest +type ConfirmForgotPasswordInput struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool where you want to reset the user's password. + // The Amazon Pinpoint analytics metadata for collecting metrics for ConfirmForgotPassword + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` + + // The app client ID of the app associated with the user pool. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` - // The user name of the user whose password you wish to reset. + // The confirmation code sent by a user's request to retrieve a forgotten password. + // For more information, see + // + // ConfirmationCode is a required field + ConfirmationCode *string `min:"1" type:"string" required:"true"` + + // The password sent by a user's request to retrieve a forgotten password. + // + // Password is a required field + Password *string `min:"6" type:"string" required:"true"` + + // A keyed-hash message authentication code (HMAC) calculated using the secret + // key of a user pool client and username plus the client ID in the message. + SecretHash *string `min:"1" type:"string"` + + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + UserContextData *UserContextDataType `type:"structure"` + + // The user name of the user for whom you want to enter a code to retrieve a + // forgotten password. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminResetUserPasswordInput) String() string { +func (s ConfirmForgotPasswordInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminResetUserPasswordInput) GoString() string { +func (s ConfirmForgotPasswordInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminResetUserPasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminResetUserPasswordInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) +func (s *ConfirmForgotPasswordInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfirmForgotPasswordInput"} + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) + } + if s.ConfirmationCode == nil { + invalidParams.Add(request.NewErrParamRequired("ConfirmationCode")) + } + if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1)) + } + if s.Password == nil { + invalidParams.Add(request.NewErrParamRequired("Password")) + } + if s.Password != nil && len(*s.Password) < 6 { + invalidParams.Add(request.NewErrParamMinLen("Password", 6)) + } + if s.SecretHash != nil && len(*s.SecretHash) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) } if s.Username == nil { invalidParams.Add(request.NewErrParamRequired("Username")) @@ -10873,115 +14042,140 @@ func (s *AdminResetUserPasswordInput) Validate() error { return nil } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminResetUserPasswordInput) SetUserPoolId(v string) *AdminResetUserPasswordInput { - s.UserPoolId = &v +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *ConfirmForgotPasswordInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *ConfirmForgotPasswordInput { + s.AnalyticsMetadata = v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *ConfirmForgotPasswordInput) SetClientId(v string) *ConfirmForgotPasswordInput { + s.ClientId = &v + return s +} + +// SetConfirmationCode sets the ConfirmationCode field's value. +func (s *ConfirmForgotPasswordInput) SetConfirmationCode(v string) *ConfirmForgotPasswordInput { + s.ConfirmationCode = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *ConfirmForgotPasswordInput) SetPassword(v string) *ConfirmForgotPasswordInput { + s.Password = &v + return s +} + +// SetSecretHash sets the SecretHash field's value. +func (s *ConfirmForgotPasswordInput) SetSecretHash(v string) *ConfirmForgotPasswordInput { + s.SecretHash = &v + return s +} + +// SetUserContextData sets the UserContextData field's value. +func (s *ConfirmForgotPasswordInput) SetUserContextData(v *UserContextDataType) *ConfirmForgotPasswordInput { + s.UserContextData = v return s } // SetUsername sets the Username field's value. -func (s *AdminResetUserPasswordInput) SetUsername(v string) *AdminResetUserPasswordInput { +func (s *ConfirmForgotPasswordInput) SetUsername(v string) *ConfirmForgotPasswordInput { s.Username = &v return s } -// Represents the response from the server to reset a user password as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPasswordResponse -type AdminResetUserPasswordOutput struct { +// The response from the server that results from a user's request to retrieve +// a forgotten password. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPasswordResponse +type ConfirmForgotPasswordOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AdminResetUserPasswordOutput) String() string { +func (s ConfirmForgotPasswordOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminResetUserPasswordOutput) GoString() string { +func (s ConfirmForgotPasswordOutput) GoString() string { return s.String() } -// The request to respond to the authentication challenge, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallengeRequest -type AdminRespondToAuthChallengeInput struct { +// Represents the request to confirm registration of a user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUpRequest +type ConfirmSignUpInput struct { _ struct{} `type:"structure"` - // The challenge name. For more information, see AdminInitiateAuth (API_AdminInitiateAuth.html). - // - // ChallengeName is a required field - ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"` - - // The challenge responses. These are inputs corresponding to the value of ChallengeName, - // for example: - // - // * SMS_MFA: SMS_MFA_CODE, USERNAME, SECRET_HASH (if app client is configured - // with client secret). - // - // * PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, - // TIMESTAMP, USERNAME, SECRET_HASH (if app client is configured with client - // secret). - // - // * ADMIN_NO_SRP_AUTH: PASSWORD, USERNAME, SECRET_HASH (if app client is - // configured with client secret). - // - // * NEW_PASSWORD_REQUIRED: NEW_PASSWORD, any other required attributes, - // USERNAME, SECRET_HASH (if app client is configured with client secret). - // - // - // The value of the USERNAME attribute must be the user's actual username, not - // an alias (such as email address or phone number). To make this easier, the - // AdminInitiateAuth response includes the actual username value in the USERNAMEUSER_ID_FOR_SRP - // attribute, even if you specified an alias in your call to AdminInitiateAuth. - ChallengeResponses map[string]*string `type:"map"` + // The Amazon Pinpoint analytics metadata for collecting metrics for ConfirmSignUp + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` - // The app client ID. + // The ID of the app client associated with the user pool. // // ClientId is a required field ClientId *string `min:"1" type:"string" required:"true"` - // The session which should be passed both ways in challenge-response calls - // to the service. If InitiateAuth or RespondToAuthChallenge API call determines - // that the caller needs to go through another challenge, they return a session - // with other challenge parameters. This session should be passed as it is to - // the next RespondToAuthChallenge API call. - Session *string `min:"20" type:"string"` + // The confirmation code sent by a user's request to confirm registration. + // + // ConfirmationCode is a required field + ConfirmationCode *string `min:"1" type:"string" required:"true"` - // The ID of the Amazon Cognito user pool. + // Boolean to be specified to force user confirmation irrespective of existing + // alias. By default set to False. If this parameter is set to True and the + // phone number/email used for sign up confirmation already exists as an alias + // with a different user, the API call will migrate the alias from the previous + // user to the newly created user being confirmed. If set to False, the API + // will throw an AliasExistsException error. + ForceAliasCreation *bool `type:"boolean"` + + // A keyed-hash message authentication code (HMAC) calculated using the secret + // key of a user pool client and username plus the client ID in the message. + SecretHash *string `min:"1" type:"string"` + + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + UserContextData *UserContextDataType `type:"structure"` + + // The user name of the user whose registration you wish to confirm. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminRespondToAuthChallengeInput) String() string { +func (s ConfirmSignUpInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminRespondToAuthChallengeInput) GoString() string { +func (s ConfirmSignUpInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminRespondToAuthChallengeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminRespondToAuthChallengeInput"} - if s.ChallengeName == nil { - invalidParams.Add(request.NewErrParamRequired("ChallengeName")) - } +func (s *ConfirmSignUpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfirmSignUpInput"} if s.ClientId == nil { invalidParams.Add(request.NewErrParamRequired("ClientId")) } if s.ClientId != nil && len(*s.ClientId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } - if s.Session != nil && len(*s.Session) < 20 { - invalidParams.Add(request.NewErrParamMinLen("Session", 20)) + if s.ConfirmationCode == nil { + invalidParams.Add(request.NewErrParamRequired("ConfirmationCode")) } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1)) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.SecretHash != nil && len(*s.SecretHash) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) } if invalidParams.Len() > 0 { @@ -10990,152 +14184,119 @@ func (s *AdminRespondToAuthChallengeInput) Validate() error { return nil } -// SetChallengeName sets the ChallengeName field's value. -func (s *AdminRespondToAuthChallengeInput) SetChallengeName(v string) *AdminRespondToAuthChallengeInput { - s.ChallengeName = &v +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *ConfirmSignUpInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *ConfirmSignUpInput { + s.AnalyticsMetadata = v return s } -// SetChallengeResponses sets the ChallengeResponses field's value. -func (s *AdminRespondToAuthChallengeInput) SetChallengeResponses(v map[string]*string) *AdminRespondToAuthChallengeInput { - s.ChallengeResponses = v +// SetClientId sets the ClientId field's value. +func (s *ConfirmSignUpInput) SetClientId(v string) *ConfirmSignUpInput { + s.ClientId = &v return s } -// SetClientId sets the ClientId field's value. -func (s *AdminRespondToAuthChallengeInput) SetClientId(v string) *AdminRespondToAuthChallengeInput { - s.ClientId = &v +// SetConfirmationCode sets the ConfirmationCode field's value. +func (s *ConfirmSignUpInput) SetConfirmationCode(v string) *ConfirmSignUpInput { + s.ConfirmationCode = &v + return s +} + +// SetForceAliasCreation sets the ForceAliasCreation field's value. +func (s *ConfirmSignUpInput) SetForceAliasCreation(v bool) *ConfirmSignUpInput { + s.ForceAliasCreation = &v + return s +} + +// SetSecretHash sets the SecretHash field's value. +func (s *ConfirmSignUpInput) SetSecretHash(v string) *ConfirmSignUpInput { + s.SecretHash = &v return s } -// SetSession sets the Session field's value. -func (s *AdminRespondToAuthChallengeInput) SetSession(v string) *AdminRespondToAuthChallengeInput { - s.Session = &v +// SetUserContextData sets the UserContextData field's value. +func (s *ConfirmSignUpInput) SetUserContextData(v *UserContextDataType) *ConfirmSignUpInput { + s.UserContextData = v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminRespondToAuthChallengeInput) SetUserPoolId(v string) *AdminRespondToAuthChallengeInput { - s.UserPoolId = &v +// SetUsername sets the Username field's value. +func (s *ConfirmSignUpInput) SetUsername(v string) *ConfirmSignUpInput { + s.Username = &v return s } -// Responds to the authentication challenge, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallengeResponse -type AdminRespondToAuthChallengeOutput struct { +// Represents the response from the server for the registration confirmation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUpResponse +type ConfirmSignUpOutput struct { _ struct{} `type:"structure"` - - // The result returned by the server in response to the authentication request. - AuthenticationResult *AuthenticationResultType `type:"structure"` - - // The name of the challenge. For more information, see AdminInitiateAuth (API_AdminInitiateAuth.html). - ChallengeName *string `type:"string" enum:"ChallengeNameType"` - - // The challenge parameters. For more information, see AdminInitiateAuth (API_AdminInitiateAuth.html). - ChallengeParameters map[string]*string `type:"map"` - - // The session which should be passed both ways in challenge-response calls - // to the service. If the InitiateAuth (API_InitiateAuth.html) or RespondToAuthChallenge - // (API_RespondToAuthChallenge.html) API call determines that the caller needs - // to go through another challenge, they return a session with other challenge - // parameters. This session should be passed as it is to the next RespondToAuthChallenge - // API call. - Session *string `min:"20" type:"string"` } // String returns the string representation -func (s AdminRespondToAuthChallengeOutput) String() string { +func (s ConfirmSignUpOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminRespondToAuthChallengeOutput) GoString() string { +func (s ConfirmSignUpOutput) GoString() string { return s.String() } -// SetAuthenticationResult sets the AuthenticationResult field's value. -func (s *AdminRespondToAuthChallengeOutput) SetAuthenticationResult(v *AuthenticationResultType) *AdminRespondToAuthChallengeOutput { - s.AuthenticationResult = v - return s -} - -// SetChallengeName sets the ChallengeName field's value. -func (s *AdminRespondToAuthChallengeOutput) SetChallengeName(v string) *AdminRespondToAuthChallengeOutput { - s.ChallengeName = &v - return s -} - -// SetChallengeParameters sets the ChallengeParameters field's value. -func (s *AdminRespondToAuthChallengeOutput) SetChallengeParameters(v map[string]*string) *AdminRespondToAuthChallengeOutput { - s.ChallengeParameters = v - return s -} +// Contextual user data type used for evaluating the risk of an unexpected event +// by Amazon Cognito advanced security. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ContextDataType +type ContextDataType struct { + _ struct{} `type:"structure"` -// SetSession sets the Session field's value. -func (s *AdminRespondToAuthChallengeOutput) SetSession(v string) *AdminRespondToAuthChallengeOutput { - s.Session = &v - return s -} + // Encoded data containing device fingerprinting details, collected using the + // Amazon Cognito context data collection library. + EncodedData *string `type:"string"` -// Represents the request to set user settings as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettingsRequest -type AdminSetUserSettingsInput struct { - _ struct{} `type:"structure"` + // HttpHeaders received on your server in same order. + // + // HttpHeaders is a required field + HttpHeaders []*HttpHeader `type:"list" required:"true"` - // Specifies the options for MFA (e.g., email or phone number). + // Source IP address of your user. // - // MFAOptions is a required field - MFAOptions []*MFAOptionType `type:"list" required:"true"` + // IpAddress is a required field + IpAddress *string `type:"string" required:"true"` - // The user pool ID for the user pool where you want to set the user's settings, - // such as MFA options. + // Your server endpoint where this API is invoked. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // ServerName is a required field + ServerName *string `type:"string" required:"true"` - // The user name of the user for whom you wish to set user settings. + // Your server path where this API is invoked. // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // ServerPath is a required field + ServerPath *string `type:"string" required:"true"` } // String returns the string representation -func (s AdminSetUserSettingsInput) String() string { +func (s ContextDataType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminSetUserSettingsInput) GoString() string { +func (s ContextDataType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminSetUserSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminSetUserSettingsInput"} - if s.MFAOptions == nil { - invalidParams.Add(request.NewErrParamRequired("MFAOptions")) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) +func (s *ContextDataType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContextDataType"} + if s.HttpHeaders == nil { + invalidParams.Add(request.NewErrParamRequired("HttpHeaders")) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) + if s.IpAddress == nil { + invalidParams.Add(request.NewErrParamRequired("IpAddress")) } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) } - if s.MFAOptions != nil { - for i, v := range s.MFAOptions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MFAOptions", i), err.(request.ErrInvalidParams)) - } - } + if s.ServerPath == nil { + invalidParams.Add(request.NewErrParamRequired("ServerPath")) } if invalidParams.Len() > 0 { @@ -11144,82 +14305,95 @@ func (s *AdminSetUserSettingsInput) Validate() error { return nil } -// SetMFAOptions sets the MFAOptions field's value. -func (s *AdminSetUserSettingsInput) SetMFAOptions(v []*MFAOptionType) *AdminSetUserSettingsInput { - s.MFAOptions = v +// SetEncodedData sets the EncodedData field's value. +func (s *ContextDataType) SetEncodedData(v string) *ContextDataType { + s.EncodedData = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminSetUserSettingsInput) SetUserPoolId(v string) *AdminSetUserSettingsInput { - s.UserPoolId = &v +// SetHttpHeaders sets the HttpHeaders field's value. +func (s *ContextDataType) SetHttpHeaders(v []*HttpHeader) *ContextDataType { + s.HttpHeaders = v return s } -// SetUsername sets the Username field's value. -func (s *AdminSetUserSettingsInput) SetUsername(v string) *AdminSetUserSettingsInput { - s.Username = &v +// SetIpAddress sets the IpAddress field's value. +func (s *ContextDataType) SetIpAddress(v string) *ContextDataType { + s.IpAddress = &v return s } -// Represents the response from the server to set user settings as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettingsResponse -type AdminSetUserSettingsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminSetUserSettingsOutput) String() string { - return awsutil.Prettify(s) +// SetServerName sets the ServerName field's value. +func (s *ContextDataType) SetServerName(v string) *ContextDataType { + s.ServerName = &v + return s } -// GoString returns the string representation -func (s AdminSetUserSettingsOutput) GoString() string { - return s.String() +// SetServerPath sets the ServerPath field's value. +func (s *ContextDataType) SetServerPath(v string) *ContextDataType { + s.ServerPath = &v + return s } -// The request to update the device status, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatusRequest -type AdminUpdateDeviceStatusInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroupRequest +type CreateGroupInput struct { _ struct{} `type:"structure"` - // The device key. + // A string containing the description of the group. + Description *string `type:"string"` + + // The name of the group. Must be unique. // - // DeviceKey is a required field - DeviceKey *string `min:"1" type:"string" required:"true"` + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` - // The status indicating whether a device has been remembered or not. - DeviceRememberedStatus *string `type:"string" enum:"DeviceRememberedStatusType"` + // A nonnegative integer value that specifies the precedence of this group relative + // to the other groups that a user can belong to in the user pool. Zero is the + // highest precedence value. Groups with lower Precedence values take precedence + // over groups with higher or null Precedence values. If a user belongs to two + // or more groups, it is the group with the lowest precedence value whose role + // ARN will be used in the cognito:roles and cognito:preferred_role claims in + // the user's tokens. + // + // Two groups can have the same Precedence value. If this happens, neither group + // takes precedence over the other. If two groups with the same Precedence have + // the same role ARN, that role is used in the cognito:preferred_role claim + // in tokens for users in each group. If the two groups have different role + // ARNs, the cognito:preferred_role claim is not set in users' tokens. + // + // The default Precedence value is null. + Precedence *int64 `type:"integer"` - // The user pool ID. + // The role ARN for the group. + RoleArn *string `min:"20" type:"string"` + + // The user pool ID for the user pool. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name. - // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminUpdateDeviceStatusInput) String() string { +func (s CreateGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminUpdateDeviceStatusInput) GoString() string { +func (s CreateGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminUpdateDeviceStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminUpdateDeviceStatusInput"} - if s.DeviceKey == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceKey")) +func (s *CreateGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) } - if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -11227,12 +14401,6 @@ func (s *AdminUpdateDeviceStatusInput) Validate() error { if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } if invalidParams.Len() > 0 { return invalidParams @@ -11240,85 +14408,116 @@ func (s *AdminUpdateDeviceStatusInput) Validate() error { return nil } -// SetDeviceKey sets the DeviceKey field's value. -func (s *AdminUpdateDeviceStatusInput) SetDeviceKey(v string) *AdminUpdateDeviceStatusInput { - s.DeviceKey = &v +// SetDescription sets the Description field's value. +func (s *CreateGroupInput) SetDescription(v string) *CreateGroupInput { + s.Description = &v return s } -// SetDeviceRememberedStatus sets the DeviceRememberedStatus field's value. -func (s *AdminUpdateDeviceStatusInput) SetDeviceRememberedStatus(v string) *AdminUpdateDeviceStatusInput { - s.DeviceRememberedStatus = &v +// SetGroupName sets the GroupName field's value. +func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput { + s.GroupName = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminUpdateDeviceStatusInput) SetUserPoolId(v string) *AdminUpdateDeviceStatusInput { - s.UserPoolId = &v +// SetPrecedence sets the Precedence field's value. +func (s *CreateGroupInput) SetPrecedence(v int64) *CreateGroupInput { + s.Precedence = &v return s } -// SetUsername sets the Username field's value. -func (s *AdminUpdateDeviceStatusInput) SetUsername(v string) *AdminUpdateDeviceStatusInput { - s.Username = &v +// SetRoleArn sets the RoleArn field's value. +func (s *CreateGroupInput) SetRoleArn(v string) *CreateGroupInput { + s.RoleArn = &v return s } -// The status response from the request to update the device, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatusResponse -type AdminUpdateDeviceStatusOutput struct { +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateGroupInput) SetUserPoolId(v string) *CreateGroupInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroupResponse +type CreateGroupOutput struct { _ struct{} `type:"structure"` + + // The group object for the group. + Group *GroupType `type:"structure"` } // String returns the string representation -func (s AdminUpdateDeviceStatusOutput) String() string { +func (s CreateGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminUpdateDeviceStatusOutput) GoString() string { +func (s CreateGroupOutput) GoString() string { return s.String() } -// Represents the request to update the user's attributes as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributesRequest -type AdminUpdateUserAttributesInput struct { +// SetGroup sets the Group field's value. +func (s *CreateGroupOutput) SetGroup(v *GroupType) *CreateGroupOutput { + s.Group = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateIdentityProviderRequest +type CreateIdentityProviderInput struct { _ struct{} `type:"structure"` - // An array of name-value pairs representing user attributes. + // A mapping of identity provider attributes to standard and custom user pool + // attributes. + AttributeMapping map[string]*string `type:"map"` + + // A list of identity provider identifiers. + IdpIdentifiers []*string `type:"list"` + + // The identity provider details, such as MetadataURL and MetadataFile. // - // For custom attributes, you must prepend the custom: prefix to the attribute - // name. + // ProviderDetails is a required field + ProviderDetails map[string]*string `type:"map" required:"true"` + + // The identity provider name. + // + // ProviderName is a required field + ProviderName *string `min:"1" type:"string" required:"true"` + + // The identity provider type. // - // UserAttributes is a required field - UserAttributes []*AttributeType `type:"list" required:"true"` + // ProviderType is a required field + ProviderType *string `type:"string" required:"true" enum:"IdentityProviderTypeType"` - // The user pool ID for the user pool where you want to update user attributes. + // The user pool ID. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user for whom you want to update user attributes. - // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminUpdateUserAttributesInput) String() string { +func (s CreateIdentityProviderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminUpdateUserAttributesInput) GoString() string { +func (s CreateIdentityProviderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminUpdateUserAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminUpdateUserAttributesInput"} - if s.UserAttributes == nil { - invalidParams.Add(request.NewErrParamRequired("UserAttributes")) +func (s *CreateIdentityProviderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateIdentityProviderInput"} + if s.ProviderDetails == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderDetails")) + } + if s.ProviderName == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderName")) + } + if s.ProviderName != nil && len(*s.ProviderName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) + } + if s.ProviderType == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderType")) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -11326,22 +14525,6 @@ func (s *AdminUpdateUserAttributesInput) Validate() error { if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - if s.UserAttributes != nil { - for i, v := range s.UserAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams)) - } - } - } if invalidParams.Len() > 0 { return invalidParams @@ -11349,81 +14532,132 @@ func (s *AdminUpdateUserAttributesInput) Validate() error { return nil } -// SetUserAttributes sets the UserAttributes field's value. -func (s *AdminUpdateUserAttributesInput) SetUserAttributes(v []*AttributeType) *AdminUpdateUserAttributesInput { - s.UserAttributes = v +// SetAttributeMapping sets the AttributeMapping field's value. +func (s *CreateIdentityProviderInput) SetAttributeMapping(v map[string]*string) *CreateIdentityProviderInput { + s.AttributeMapping = v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminUpdateUserAttributesInput) SetUserPoolId(v string) *AdminUpdateUserAttributesInput { - s.UserPoolId = &v +// SetIdpIdentifiers sets the IdpIdentifiers field's value. +func (s *CreateIdentityProviderInput) SetIdpIdentifiers(v []*string) *CreateIdentityProviderInput { + s.IdpIdentifiers = v return s } -// SetUsername sets the Username field's value. -func (s *AdminUpdateUserAttributesInput) SetUsername(v string) *AdminUpdateUserAttributesInput { - s.Username = &v +// SetProviderDetails sets the ProviderDetails field's value. +func (s *CreateIdentityProviderInput) SetProviderDetails(v map[string]*string) *CreateIdentityProviderInput { + s.ProviderDetails = v return s } -// Represents the response from the server for the request to update user attributes -// as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributesResponse -type AdminUpdateUserAttributesOutput struct { +// SetProviderName sets the ProviderName field's value. +func (s *CreateIdentityProviderInput) SetProviderName(v string) *CreateIdentityProviderInput { + s.ProviderName = &v + return s +} + +// SetProviderType sets the ProviderType field's value. +func (s *CreateIdentityProviderInput) SetProviderType(v string) *CreateIdentityProviderInput { + s.ProviderType = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateIdentityProviderInput) SetUserPoolId(v string) *CreateIdentityProviderInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateIdentityProviderResponse +type CreateIdentityProviderOutput struct { _ struct{} `type:"structure"` + + // The newly created identity provider object. + // + // IdentityProvider is a required field + IdentityProvider *IdentityProviderType `type:"structure" required:"true"` } // String returns the string representation -func (s AdminUpdateUserAttributesOutput) String() string { +func (s CreateIdentityProviderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminUpdateUserAttributesOutput) GoString() string { +func (s CreateIdentityProviderOutput) GoString() string { return s.String() } -// The request to sign out of all devices, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOutRequest -type AdminUserGlobalSignOutInput struct { +// SetIdentityProvider sets the IdentityProvider field's value. +func (s *CreateIdentityProviderOutput) SetIdentityProvider(v *IdentityProviderType) *CreateIdentityProviderOutput { + s.IdentityProvider = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateResourceServerRequest +type CreateResourceServerInput struct { _ struct{} `type:"structure"` - // The user pool ID. + // A unique resource server identifier for the resource server. This could be + // an HTTPS endpoint where the resource server is located. For example, https://my-weather-api.example.com. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // Identifier is a required field + Identifier *string `min:"1" type:"string" required:"true"` - // The user name. + // A friendly name for the resource server. // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // A list of scopes. Each scope is map, where the keys are name and description. + Scopes []*ResourceServerScopeType `type:"list"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminUserGlobalSignOutInput) String() string { +func (s CreateResourceServerInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminUserGlobalSignOutInput) GoString() string { +func (s CreateResourceServerInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminUserGlobalSignOutInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminUserGlobalSignOutInput"} +func (s *CreateResourceServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateResourceServerInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + if s.Scopes != nil { + for i, v := range s.Scopes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Scopes", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -11432,66 +14666,107 @@ func (s *AdminUserGlobalSignOutInput) Validate() error { return nil } -// SetUserPoolId sets the UserPoolId field's value. -func (s *AdminUserGlobalSignOutInput) SetUserPoolId(v string) *AdminUserGlobalSignOutInput { - s.UserPoolId = &v +// SetIdentifier sets the Identifier field's value. +func (s *CreateResourceServerInput) SetIdentifier(v string) *CreateResourceServerInput { + s.Identifier = &v return s } -// SetUsername sets the Username field's value. -func (s *AdminUserGlobalSignOutInput) SetUsername(v string) *AdminUserGlobalSignOutInput { - s.Username = &v +// SetName sets the Name field's value. +func (s *CreateResourceServerInput) SetName(v string) *CreateResourceServerInput { + s.Name = &v return s } -// The global sign-out response, as an administrator. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOutResponse -type AdminUserGlobalSignOutOutput struct { +// SetScopes sets the Scopes field's value. +func (s *CreateResourceServerInput) SetScopes(v []*ResourceServerScopeType) *CreateResourceServerInput { + s.Scopes = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateResourceServerInput) SetUserPoolId(v string) *CreateResourceServerInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateResourceServerResponse +type CreateResourceServerOutput struct { _ struct{} `type:"structure"` + + // The newly created resource server. + // + // ResourceServer is a required field + ResourceServer *ResourceServerType `type:"structure" required:"true"` } // String returns the string representation -func (s AdminUserGlobalSignOutOutput) String() string { +func (s CreateResourceServerOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminUserGlobalSignOutOutput) GoString() string { +func (s CreateResourceServerOutput) GoString() string { return s.String() } -// Specifies whether the attribute is standard or custom. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AttributeType -type AttributeType struct { +// SetResourceServer sets the ResourceServer field's value. +func (s *CreateResourceServerOutput) SetResourceServer(v *ResourceServerType) *CreateResourceServerOutput { + s.ResourceServer = v + return s +} + +// Represents the request to create the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJobRequest +type CreateUserImportJobInput struct { _ struct{} `type:"structure"` - // The name of the attribute. + // The role ARN for the Amazon CloudWatch Logging role for the user import job. // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + // CloudWatchLogsRoleArn is a required field + CloudWatchLogsRoleArn *string `min:"20" type:"string" required:"true"` - // The value of the attribute. - Value *string `type:"string"` + // The job name for the user import job. + // + // JobName is a required field + JobName *string `min:"1" type:"string" required:"true"` + + // The user pool ID for the user pool that the users are being imported into. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AttributeType) String() string { +func (s CreateUserImportJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttributeType) GoString() string { +func (s CreateUserImportJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AttributeType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttributeType"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *CreateUserImportJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserImportJobInput"} + if s.CloudWatchLogsRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("CloudWatchLogsRoleArn")) + } + if s.CloudWatchLogsRoleArn != nil && len(*s.CloudWatchLogsRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("CloudWatchLogsRoleArn", 20)) + } + if s.JobName == nil { + invalidParams.Add(request.NewErrParamRequired("JobName")) + } + if s.JobName != nil && len(*s.JobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } if invalidParams.Len() > 0 { @@ -11500,136 +14775,148 @@ func (s *AttributeType) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *AttributeType) SetName(v string) *AttributeType { - s.Name = &v +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *CreateUserImportJobInput) SetCloudWatchLogsRoleArn(v string) *CreateUserImportJobInput { + s.CloudWatchLogsRoleArn = &v return s } -// SetValue sets the Value field's value. -func (s *AttributeType) SetValue(v string) *AttributeType { - s.Value = &v +// SetJobName sets the JobName field's value. +func (s *CreateUserImportJobInput) SetJobName(v string) *CreateUserImportJobInput { + s.JobName = &v return s } -// The result type of the authentication result. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AuthenticationResultType -type AuthenticationResultType struct { - _ struct{} `type:"structure"` - - // The access token of the authentication result. - AccessToken *string `type:"string"` - - // The expiration period of the authentication result. - ExpiresIn *int64 `type:"integer"` - - // The ID token of the authentication result. - IdToken *string `type:"string"` - - // The new device metadata from an authentication result. - NewDeviceMetadata *NewDeviceMetadataType `type:"structure"` +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateUserImportJobInput) SetUserPoolId(v string) *CreateUserImportJobInput { + s.UserPoolId = &v + return s +} - // The refresh token of the authentication result. - RefreshToken *string `type:"string"` +// Represents the response from the server to the request to create the user +// import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJobResponse +type CreateUserImportJobOutput struct { + _ struct{} `type:"structure"` - // The token type of the authentication result. - TokenType *string `type:"string"` + // The job object that represents the user import job. + UserImportJob *UserImportJobType `type:"structure"` } // String returns the string representation -func (s AuthenticationResultType) String() string { +func (s CreateUserImportJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AuthenticationResultType) GoString() string { +func (s CreateUserImportJobOutput) GoString() string { return s.String() } -// SetAccessToken sets the AccessToken field's value. -func (s *AuthenticationResultType) SetAccessToken(v string) *AuthenticationResultType { - s.AccessToken = &v +// SetUserImportJob sets the UserImportJob field's value. +func (s *CreateUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *CreateUserImportJobOutput { + s.UserImportJob = v return s } -// SetExpiresIn sets the ExpiresIn field's value. -func (s *AuthenticationResultType) SetExpiresIn(v int64) *AuthenticationResultType { - s.ExpiresIn = &v - return s -} +// Represents the request to create a user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClientRequest +type CreateUserPoolClientInput struct { + _ struct{} `type:"structure"` -// SetIdToken sets the IdToken field's value. -func (s *AuthenticationResultType) SetIdToken(v string) *AuthenticationResultType { - s.IdToken = &v - return s -} + // Set to code to initiate a code grant flow, which provides an authorization + // code as the response. This code can be exchanged for access tokens with the + // token endpoint. + // + // Set to token to specify that the client should get the access token (and, + // optionally, ID token, based on scopes) directly. + AllowedOAuthFlows []*string `type:"list"` -// SetNewDeviceMetadata sets the NewDeviceMetadata field's value. -func (s *AuthenticationResultType) SetNewDeviceMetadata(v *NewDeviceMetadataType) *AuthenticationResultType { - s.NewDeviceMetadata = v - return s -} + // Set to True if the client is allowed to follow the OAuth protocol when interacting + // with Cognito user pools. + AllowedOAuthFlowsUserPoolClient *bool `type:"boolean"` -// SetRefreshToken sets the RefreshToken field's value. -func (s *AuthenticationResultType) SetRefreshToken(v string) *AuthenticationResultType { - s.RefreshToken = &v - return s -} + // A list of allowed OAuth scopes. Currently supported values are "phone", "email", + // "openid", and "Cognito". + AllowedOAuthScopes []*string `type:"list"` -// SetTokenType sets the TokenType field's value. -func (s *AuthenticationResultType) SetTokenType(v string) *AuthenticationResultType { - s.TokenType = &v - return s -} + // The Amazon Pinpoint analytics configuration for collecting metrics for this + // user pool. + AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"` -// Represents the request to change a user password. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePasswordRequest -type ChangePasswordInput struct { - _ struct{} `type:"structure"` + // A list of allowed callback URLs for the identity providers. + CallbackURLs []*string `type:"list"` - // The access token in the change password request. + // The client name for the user pool client you would like to create. // - // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + // ClientName is a required field + ClientName *string `min:"1" type:"string" required:"true"` - // The old password in the change password request. - // - // PreviousPassword is a required field - PreviousPassword *string `min:"6" type:"string" required:"true"` + // The default redirect URI. Must be in the CallbackURLs list. + DefaultRedirectURI *string `min:"1" type:"string"` + + // The explicit authentication flows. + ExplicitAuthFlows []*string `type:"list"` + + // Boolean to specify whether you want to generate a secret for the user pool + // client being created. + GenerateSecret *bool `type:"boolean"` + + // A list of allowed logout URLs for the identity providers. + LogoutURLs []*string `type:"list"` + + // The read attributes. + ReadAttributes []*string `type:"list"` + + // The time limit, in days, after which the refresh token is no longer valid + // and cannot be used. + RefreshTokenValidity *int64 `type:"integer"` + + // A list of provider names for the identity providers that are supported on + // this client. + SupportedIdentityProviders []*string `type:"list"` - // The new password in the change password request. + // The user pool ID for the user pool where you want to create a user pool client. // - // ProposedPassword is a required field - ProposedPassword *string `min:"6" type:"string" required:"true"` + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The write attributes. + WriteAttributes []*string `type:"list"` } // String returns the string representation -func (s ChangePasswordInput) String() string { +func (s CreateUserPoolClientInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ChangePasswordInput) GoString() string { +func (s CreateUserPoolClientInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChangePasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangePasswordInput"} - if s.AccessToken == nil { - invalidParams.Add(request.NewErrParamRequired("AccessToken")) +func (s *CreateUserPoolClientInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolClientInput"} + if s.ClientName == nil { + invalidParams.Add(request.NewErrParamRequired("ClientName")) } - if s.PreviousPassword == nil { - invalidParams.Add(request.NewErrParamRequired("PreviousPassword")) + if s.ClientName != nil && len(*s.ClientName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientName", 1)) } - if s.PreviousPassword != nil && len(*s.PreviousPassword) < 6 { - invalidParams.Add(request.NewErrParamMinLen("PreviousPassword", 6)) + if s.DefaultRedirectURI != nil && len(*s.DefaultRedirectURI) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DefaultRedirectURI", 1)) } - if s.ProposedPassword == nil { - invalidParams.Add(request.NewErrParamRequired("ProposedPassword")) + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } - if s.ProposedPassword != nil && len(*s.ProposedPassword) < 6 { - invalidParams.Add(request.NewErrParamMinLen("ProposedPassword", 6)) + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.AnalyticsConfiguration != nil { + if err := s.AnalyticsConfiguration.Validate(); err != nil { + invalidParams.AddNested("AnalyticsConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -11638,129 +14925,160 @@ func (s *ChangePasswordInput) Validate() error { return nil } -// SetAccessToken sets the AccessToken field's value. -func (s *ChangePasswordInput) SetAccessToken(v string) *ChangePasswordInput { - s.AccessToken = &v +// SetAllowedOAuthFlows sets the AllowedOAuthFlows field's value. +func (s *CreateUserPoolClientInput) SetAllowedOAuthFlows(v []*string) *CreateUserPoolClientInput { + s.AllowedOAuthFlows = v return s } -// SetPreviousPassword sets the PreviousPassword field's value. -func (s *ChangePasswordInput) SetPreviousPassword(v string) *ChangePasswordInput { - s.PreviousPassword = &v +// SetAllowedOAuthFlowsUserPoolClient sets the AllowedOAuthFlowsUserPoolClient field's value. +func (s *CreateUserPoolClientInput) SetAllowedOAuthFlowsUserPoolClient(v bool) *CreateUserPoolClientInput { + s.AllowedOAuthFlowsUserPoolClient = &v return s } -// SetProposedPassword sets the ProposedPassword field's value. -func (s *ChangePasswordInput) SetProposedPassword(v string) *ChangePasswordInput { - s.ProposedPassword = &v +// SetAllowedOAuthScopes sets the AllowedOAuthScopes field's value. +func (s *CreateUserPoolClientInput) SetAllowedOAuthScopes(v []*string) *CreateUserPoolClientInput { + s.AllowedOAuthScopes = v return s } -// The response from the server to the change password request. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePasswordResponse -type ChangePasswordOutput struct { - _ struct{} `type:"structure"` +// SetAnalyticsConfiguration sets the AnalyticsConfiguration field's value. +func (s *CreateUserPoolClientInput) SetAnalyticsConfiguration(v *AnalyticsConfigurationType) *CreateUserPoolClientInput { + s.AnalyticsConfiguration = v + return s } -// String returns the string representation -func (s ChangePasswordOutput) String() string { - return awsutil.Prettify(s) +// SetCallbackURLs sets the CallbackURLs field's value. +func (s *CreateUserPoolClientInput) SetCallbackURLs(v []*string) *CreateUserPoolClientInput { + s.CallbackURLs = v + return s +} + +// SetClientName sets the ClientName field's value. +func (s *CreateUserPoolClientInput) SetClientName(v string) *CreateUserPoolClientInput { + s.ClientName = &v + return s +} + +// SetDefaultRedirectURI sets the DefaultRedirectURI field's value. +func (s *CreateUserPoolClientInput) SetDefaultRedirectURI(v string) *CreateUserPoolClientInput { + s.DefaultRedirectURI = &v + return s +} + +// SetExplicitAuthFlows sets the ExplicitAuthFlows field's value. +func (s *CreateUserPoolClientInput) SetExplicitAuthFlows(v []*string) *CreateUserPoolClientInput { + s.ExplicitAuthFlows = v + return s +} + +// SetGenerateSecret sets the GenerateSecret field's value. +func (s *CreateUserPoolClientInput) SetGenerateSecret(v bool) *CreateUserPoolClientInput { + s.GenerateSecret = &v + return s +} + +// SetLogoutURLs sets the LogoutURLs field's value. +func (s *CreateUserPoolClientInput) SetLogoutURLs(v []*string) *CreateUserPoolClientInput { + s.LogoutURLs = v + return s +} + +// SetReadAttributes sets the ReadAttributes field's value. +func (s *CreateUserPoolClientInput) SetReadAttributes(v []*string) *CreateUserPoolClientInput { + s.ReadAttributes = v + return s +} + +// SetRefreshTokenValidity sets the RefreshTokenValidity field's value. +func (s *CreateUserPoolClientInput) SetRefreshTokenValidity(v int64) *CreateUserPoolClientInput { + s.RefreshTokenValidity = &v + return s +} + +// SetSupportedIdentityProviders sets the SupportedIdentityProviders field's value. +func (s *CreateUserPoolClientInput) SetSupportedIdentityProviders(v []*string) *CreateUserPoolClientInput { + s.SupportedIdentityProviders = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateUserPoolClientInput) SetUserPoolId(v string) *CreateUserPoolClientInput { + s.UserPoolId = &v + return s } -// GoString returns the string representation -func (s ChangePasswordOutput) GoString() string { - return s.String() +// SetWriteAttributes sets the WriteAttributes field's value. +func (s *CreateUserPoolClientInput) SetWriteAttributes(v []*string) *CreateUserPoolClientInput { + s.WriteAttributes = v + return s } -// The type of code delivery details being returned from the server. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CodeDeliveryDetailsType -type CodeDeliveryDetailsType struct { +// Represents the response from the server to create a user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClientResponse +type CreateUserPoolClientOutput struct { _ struct{} `type:"structure"` - // The name of the attribute in the code delivery details type. - AttributeName *string `min:"1" type:"string"` - - // The delivery medium (email message or phone number). - DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"` - - // The destination for the code delivery details. - Destination *string `type:"string"` + // The user pool client that was just created. + UserPoolClient *UserPoolClientType `type:"structure"` } // String returns the string representation -func (s CodeDeliveryDetailsType) String() string { +func (s CreateUserPoolClientOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CodeDeliveryDetailsType) GoString() string { +func (s CreateUserPoolClientOutput) GoString() string { return s.String() } -// SetAttributeName sets the AttributeName field's value. -func (s *CodeDeliveryDetailsType) SetAttributeName(v string) *CodeDeliveryDetailsType { - s.AttributeName = &v - return s -} - -// SetDeliveryMedium sets the DeliveryMedium field's value. -func (s *CodeDeliveryDetailsType) SetDeliveryMedium(v string) *CodeDeliveryDetailsType { - s.DeliveryMedium = &v - return s -} - -// SetDestination sets the Destination field's value. -func (s *CodeDeliveryDetailsType) SetDestination(v string) *CodeDeliveryDetailsType { - s.Destination = &v +// SetUserPoolClient sets the UserPoolClient field's value. +func (s *CreateUserPoolClientOutput) SetUserPoolClient(v *UserPoolClientType) *CreateUserPoolClientOutput { + s.UserPoolClient = v return s } -// Confirms the device request. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDeviceRequest -type ConfirmDeviceInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolDomainRequest +type CreateUserPoolDomainInput struct { _ struct{} `type:"structure"` - // The access token. + // The domain string. // - // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + // Domain is a required field + Domain *string `min:"1" type:"string" required:"true"` - // The device key. + // The user pool ID. // - // DeviceKey is a required field - DeviceKey *string `min:"1" type:"string" required:"true"` - - // The device name. - DeviceName *string `min:"1" type:"string"` - - // The configuration of the device secret verifier. - DeviceSecretVerifierConfig *DeviceSecretVerifierConfigType `type:"structure"` + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ConfirmDeviceInput) String() string { +func (s CreateUserPoolDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmDeviceInput) GoString() string { +func (s CreateUserPoolDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmDeviceInput"} - if s.AccessToken == nil { - invalidParams.Add(request.NewErrParamRequired("AccessToken")) +func (s *CreateUserPoolDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolDomainInput"} + if s.Domain == nil { + invalidParams.Add(request.NewErrParamRequired("Domain")) } - if s.DeviceKey == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceKey")) + if s.Domain != nil && len(*s.Domain) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) } - if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } - if s.DeviceName != nil && len(*s.DeviceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceName", 1)) + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } if invalidParams.Len() > 0 { @@ -11769,127 +15087,182 @@ func (s *ConfirmDeviceInput) Validate() error { return nil } -// SetAccessToken sets the AccessToken field's value. -func (s *ConfirmDeviceInput) SetAccessToken(v string) *ConfirmDeviceInput { - s.AccessToken = &v - return s -} - -// SetDeviceKey sets the DeviceKey field's value. -func (s *ConfirmDeviceInput) SetDeviceKey(v string) *ConfirmDeviceInput { - s.DeviceKey = &v - return s -} - -// SetDeviceName sets the DeviceName field's value. -func (s *ConfirmDeviceInput) SetDeviceName(v string) *ConfirmDeviceInput { - s.DeviceName = &v +// SetDomain sets the Domain field's value. +func (s *CreateUserPoolDomainInput) SetDomain(v string) *CreateUserPoolDomainInput { + s.Domain = &v return s } -// SetDeviceSecretVerifierConfig sets the DeviceSecretVerifierConfig field's value. -func (s *ConfirmDeviceInput) SetDeviceSecretVerifierConfig(v *DeviceSecretVerifierConfigType) *ConfirmDeviceInput { - s.DeviceSecretVerifierConfig = v +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateUserPoolDomainInput) SetUserPoolId(v string) *CreateUserPoolDomainInput { + s.UserPoolId = &v return s } -// Confirms the device response. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDeviceResponse -type ConfirmDeviceOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolDomainResponse +type CreateUserPoolDomainOutput struct { _ struct{} `type:"structure"` - - // Indicates whether the user confirmation is necessary to confirm the device - // response. - UserConfirmationNecessary *bool `type:"boolean"` } // String returns the string representation -func (s ConfirmDeviceOutput) String() string { +func (s CreateUserPoolDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmDeviceOutput) GoString() string { +func (s CreateUserPoolDomainOutput) GoString() string { return s.String() } -// SetUserConfirmationNecessary sets the UserConfirmationNecessary field's value. -func (s *ConfirmDeviceOutput) SetUserConfirmationNecessary(v bool) *ConfirmDeviceOutput { - s.UserConfirmationNecessary = &v - return s -} - -// The request representing the confirmation for a password reset. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPasswordRequest -type ConfirmForgotPasswordInput struct { +// Represents the request to create a user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolRequest +type CreateUserPoolInput struct { _ struct{} `type:"structure"` - // The app client ID of the app associated with the user pool. - // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + // The configuration for AdminCreateUser requests. + AdminCreateUserConfig *AdminCreateUserConfigType `type:"structure"` - // The confirmation code sent by a user's request to retrieve a forgotten password. - // For more information, see ForgotPassword (API_ForgotPassword.html) - // - // ConfirmationCode is a required field - ConfirmationCode *string `min:"1" type:"string" required:"true"` + // Attributes supported as an alias for this user pool. Possible values: phone_number, + // email, or preferred_username. + AliasAttributes []*string `type:"list"` - // The password sent by a user's request to retrieve a forgotten password. - // - // Password is a required field - Password *string `min:"6" type:"string" required:"true"` + // The attributes to be auto-verified. Possible values: email, phone_number. + AutoVerifiedAttributes []*string `type:"list"` - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` + // The device configuration. + DeviceConfiguration *DeviceConfigurationType `type:"structure"` - // The user name of the user for whom you want to enter a code to retrieve a - // forgotten password. + // The email configuration. + EmailConfiguration *EmailConfigurationType `type:"structure"` + + // A string representing the email verification message. + EmailVerificationMessage *string `min:"6" type:"string"` + + // A string representing the email verification subject. + EmailVerificationSubject *string `min:"1" type:"string"` + + // The Lambda trigger configuration information for the new user pool. + LambdaConfig *LambdaConfigType `type:"structure"` + + // Specifies MFA configuration details. + MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` + + // The policies associated with the new user pool. + Policies *UserPoolPolicyType `type:"structure"` + + // A string used to name the user pool. // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // PoolName is a required field + PoolName *string `min:"1" type:"string" required:"true"` + + // An array of schema attributes for the new user pool. These attributes can + // be standard or custom attributes. + Schema []*SchemaAttributeType `min:"1" type:"list"` + + // A string representing the SMS authentication message. + SmsAuthenticationMessage *string `min:"6" type:"string"` + + // The SMS configuration. + SmsConfiguration *SmsConfigurationType `type:"structure"` + + // A string representing the SMS verification message. + SmsVerificationMessage *string `min:"6" type:"string"` + + // Used to enable advanced security risk detection. Set the key AdvancedSecurityMode + // to the value "AUDIT". + UserPoolAddOns *UserPoolAddOnsType `type:"structure"` + + // The cost allocation tags for the user pool. For more information, see Adding + // Cost Allocation Tags to Your User Pool (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html) + UserPoolTags map[string]*string `type:"map"` + + // Specifies whether email addresses or phone numbers can be specified as usernames + // when a user signs up. + UsernameAttributes []*string `type:"list"` + + // The template for the verification message that the user sees when the app + // requests permission to access the user's information. + VerificationMessageTemplate *VerificationMessageTemplateType `type:"structure"` } // String returns the string representation -func (s ConfirmForgotPasswordInput) String() string { +func (s CreateUserPoolInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmForgotPasswordInput) GoString() string { +func (s CreateUserPoolInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmForgotPasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmForgotPasswordInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) +func (s *CreateUserPoolInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolInput"} + if s.EmailVerificationMessage != nil && len(*s.EmailVerificationMessage) < 6 { + invalidParams.Add(request.NewErrParamMinLen("EmailVerificationMessage", 6)) } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) + if s.EmailVerificationSubject != nil && len(*s.EmailVerificationSubject) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailVerificationSubject", 1)) } - if s.ConfirmationCode == nil { - invalidParams.Add(request.NewErrParamRequired("ConfirmationCode")) + if s.PoolName == nil { + invalidParams.Add(request.NewErrParamRequired("PoolName")) + } + if s.PoolName != nil && len(*s.PoolName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PoolName", 1)) + } + if s.Schema != nil && len(s.Schema) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Schema", 1)) + } + if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 { + invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6)) + } + if s.SmsVerificationMessage != nil && len(*s.SmsVerificationMessage) < 6 { + invalidParams.Add(request.NewErrParamMinLen("SmsVerificationMessage", 6)) + } + if s.AdminCreateUserConfig != nil { + if err := s.AdminCreateUserConfig.Validate(); err != nil { + invalidParams.AddNested("AdminCreateUserConfig", err.(request.ErrInvalidParams)) + } + } + if s.EmailConfiguration != nil { + if err := s.EmailConfiguration.Validate(); err != nil { + invalidParams.AddNested("EmailConfiguration", err.(request.ErrInvalidParams)) + } } - if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1)) + if s.LambdaConfig != nil { + if err := s.LambdaConfig.Validate(); err != nil { + invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) + } } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) + if s.Policies != nil { + if err := s.Policies.Validate(); err != nil { + invalidParams.AddNested("Policies", err.(request.ErrInvalidParams)) + } } - if s.Password != nil && len(*s.Password) < 6 { - invalidParams.Add(request.NewErrParamMinLen("Password", 6)) + if s.Schema != nil { + for i, v := range s.Schema { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Schema", i), err.(request.ErrInvalidParams)) + } + } } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) + if s.SmsConfiguration != nil { + if err := s.SmsConfiguration.Validate(); err != nil { + invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams)) + } } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) + if s.UserPoolAddOns != nil { + if err := s.UserPoolAddOns.Validate(); err != nil { + invalidParams.AddNested("UserPoolAddOns", err.(request.ErrInvalidParams)) + } } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + if s.VerificationMessageTemplate != nil { + if err := s.VerificationMessageTemplate.Validate(); err != nil { + invalidParams.AddNested("VerificationMessageTemplate", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -11898,204 +15271,154 @@ func (s *ConfirmForgotPasswordInput) Validate() error { return nil } -// SetClientId sets the ClientId field's value. -func (s *ConfirmForgotPasswordInput) SetClientId(v string) *ConfirmForgotPasswordInput { - s.ClientId = &v +// SetAdminCreateUserConfig sets the AdminCreateUserConfig field's value. +func (s *CreateUserPoolInput) SetAdminCreateUserConfig(v *AdminCreateUserConfigType) *CreateUserPoolInput { + s.AdminCreateUserConfig = v return s } -// SetConfirmationCode sets the ConfirmationCode field's value. -func (s *ConfirmForgotPasswordInput) SetConfirmationCode(v string) *ConfirmForgotPasswordInput { - s.ConfirmationCode = &v +// SetAliasAttributes sets the AliasAttributes field's value. +func (s *CreateUserPoolInput) SetAliasAttributes(v []*string) *CreateUserPoolInput { + s.AliasAttributes = v return s } -// SetPassword sets the Password field's value. -func (s *ConfirmForgotPasswordInput) SetPassword(v string) *ConfirmForgotPasswordInput { - s.Password = &v +// SetAutoVerifiedAttributes sets the AutoVerifiedAttributes field's value. +func (s *CreateUserPoolInput) SetAutoVerifiedAttributes(v []*string) *CreateUserPoolInput { + s.AutoVerifiedAttributes = v return s } -// SetSecretHash sets the SecretHash field's value. -func (s *ConfirmForgotPasswordInput) SetSecretHash(v string) *ConfirmForgotPasswordInput { - s.SecretHash = &v +// SetDeviceConfiguration sets the DeviceConfiguration field's value. +func (s *CreateUserPoolInput) SetDeviceConfiguration(v *DeviceConfigurationType) *CreateUserPoolInput { + s.DeviceConfiguration = v return s } -// SetUsername sets the Username field's value. -func (s *ConfirmForgotPasswordInput) SetUsername(v string) *ConfirmForgotPasswordInput { - s.Username = &v +// SetEmailConfiguration sets the EmailConfiguration field's value. +func (s *CreateUserPoolInput) SetEmailConfiguration(v *EmailConfigurationType) *CreateUserPoolInput { + s.EmailConfiguration = v return s } -// The response from the server that results from a user's request to retrieve -// a forgotten password. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPasswordResponse -type ConfirmForgotPasswordOutput struct { - _ struct{} `type:"structure"` +// SetEmailVerificationMessage sets the EmailVerificationMessage field's value. +func (s *CreateUserPoolInput) SetEmailVerificationMessage(v string) *CreateUserPoolInput { + s.EmailVerificationMessage = &v + return s } -// String returns the string representation -func (s ConfirmForgotPasswordOutput) String() string { - return awsutil.Prettify(s) +// SetEmailVerificationSubject sets the EmailVerificationSubject field's value. +func (s *CreateUserPoolInput) SetEmailVerificationSubject(v string) *CreateUserPoolInput { + s.EmailVerificationSubject = &v + return s } -// GoString returns the string representation -func (s ConfirmForgotPasswordOutput) GoString() string { - return s.String() +// SetLambdaConfig sets the LambdaConfig field's value. +func (s *CreateUserPoolInput) SetLambdaConfig(v *LambdaConfigType) *CreateUserPoolInput { + s.LambdaConfig = v + return s } -// Represents the request to confirm registration of a user. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUpRequest -type ConfirmSignUpInput struct { - _ struct{} `type:"structure"` - - // The ID of the app client associated with the user pool. - // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` - - // The confirmation code sent by a user's request to confirm registration. - // - // ConfirmationCode is a required field - ConfirmationCode *string `min:"1" type:"string" required:"true"` - - // Boolean to be specified to force user confirmation irrespective of existing - // alias. By default set to False. If this parameter is set to True and the - // phone number/email used for sign up confirmation already exists as an alias - // with a different user, the API call will migrate the alias from the previous - // user to the newly created user being confirmed. If set to False, the API - // will throw an AliasExistsException error. - ForceAliasCreation *bool `type:"boolean"` - - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` +// SetMfaConfiguration sets the MfaConfiguration field's value. +func (s *CreateUserPoolInput) SetMfaConfiguration(v string) *CreateUserPoolInput { + s.MfaConfiguration = &v + return s +} - // The user name of the user whose registration you wish to confirm. - // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` +// SetPolicies sets the Policies field's value. +func (s *CreateUserPoolInput) SetPolicies(v *UserPoolPolicyType) *CreateUserPoolInput { + s.Policies = v + return s } -// String returns the string representation -func (s ConfirmSignUpInput) String() string { - return awsutil.Prettify(s) +// SetPoolName sets the PoolName field's value. +func (s *CreateUserPoolInput) SetPoolName(v string) *CreateUserPoolInput { + s.PoolName = &v + return s } -// GoString returns the string representation -func (s ConfirmSignUpInput) GoString() string { - return s.String() +// SetSchema sets the Schema field's value. +func (s *CreateUserPoolInput) SetSchema(v []*SchemaAttributeType) *CreateUserPoolInput { + s.Schema = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmSignUpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmSignUpInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.ConfirmationCode == nil { - invalidParams.Add(request.NewErrParamRequired("ConfirmationCode")) - } - if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1)) - } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } +// SetSmsAuthenticationMessage sets the SmsAuthenticationMessage field's value. +func (s *CreateUserPoolInput) SetSmsAuthenticationMessage(v string) *CreateUserPoolInput { + s.SmsAuthenticationMessage = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetSmsConfiguration sets the SmsConfiguration field's value. +func (s *CreateUserPoolInput) SetSmsConfiguration(v *SmsConfigurationType) *CreateUserPoolInput { + s.SmsConfiguration = v + return s } -// SetClientId sets the ClientId field's value. -func (s *ConfirmSignUpInput) SetClientId(v string) *ConfirmSignUpInput { - s.ClientId = &v +// SetSmsVerificationMessage sets the SmsVerificationMessage field's value. +func (s *CreateUserPoolInput) SetSmsVerificationMessage(v string) *CreateUserPoolInput { + s.SmsVerificationMessage = &v return s } -// SetConfirmationCode sets the ConfirmationCode field's value. -func (s *ConfirmSignUpInput) SetConfirmationCode(v string) *ConfirmSignUpInput { - s.ConfirmationCode = &v +// SetUserPoolAddOns sets the UserPoolAddOns field's value. +func (s *CreateUserPoolInput) SetUserPoolAddOns(v *UserPoolAddOnsType) *CreateUserPoolInput { + s.UserPoolAddOns = v return s } -// SetForceAliasCreation sets the ForceAliasCreation field's value. -func (s *ConfirmSignUpInput) SetForceAliasCreation(v bool) *ConfirmSignUpInput { - s.ForceAliasCreation = &v +// SetUserPoolTags sets the UserPoolTags field's value. +func (s *CreateUserPoolInput) SetUserPoolTags(v map[string]*string) *CreateUserPoolInput { + s.UserPoolTags = v return s } -// SetSecretHash sets the SecretHash field's value. -func (s *ConfirmSignUpInput) SetSecretHash(v string) *ConfirmSignUpInput { - s.SecretHash = &v +// SetUsernameAttributes sets the UsernameAttributes field's value. +func (s *CreateUserPoolInput) SetUsernameAttributes(v []*string) *CreateUserPoolInput { + s.UsernameAttributes = v return s } -// SetUsername sets the Username field's value. -func (s *ConfirmSignUpInput) SetUsername(v string) *ConfirmSignUpInput { - s.Username = &v +// SetVerificationMessageTemplate sets the VerificationMessageTemplate field's value. +func (s *CreateUserPoolInput) SetVerificationMessageTemplate(v *VerificationMessageTemplateType) *CreateUserPoolInput { + s.VerificationMessageTemplate = v return s } -// Represents the response from the server for the registration confirmation. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUpResponse -type ConfirmSignUpOutput struct { +// Represents the response from the server for the request to create a user +// pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolResponse +type CreateUserPoolOutput struct { _ struct{} `type:"structure"` + + // A container for the user pool details. + UserPool *UserPoolType `type:"structure"` } // String returns the string representation -func (s ConfirmSignUpOutput) String() string { +func (s CreateUserPoolOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmSignUpOutput) GoString() string { +func (s CreateUserPoolOutput) GoString() string { return s.String() } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroupRequest -type CreateGroupInput struct { - _ struct{} `type:"structure"` - - // A string containing the description of the group. - Description *string `type:"string"` - - // The name of the group. Must be unique. - // - // GroupName is a required field - GroupName *string `min:"1" type:"string" required:"true"` +// SetUserPool sets the UserPool field's value. +func (s *CreateUserPoolOutput) SetUserPool(v *UserPoolType) *CreateUserPoolOutput { + s.UserPool = v + return s +} - // A nonnegative integer value that specifies the precedence of this group relative - // to the other groups that a user can belong to in the user pool. Zero is the - // highest precedence value. Groups with lower Precedence values take precedence - // over groups with higher or null Precedence values. If a user belongs to two - // or more groups, it is the group with the lowest precedence value whose role - // ARN will be used in the cognito:roles and cognito:preferred_role claims in - // the user's tokens. - // - // Two groups can have the same Precedence value. If this happens, neither group - // takes precedence over the other. If two groups with the same Precedence have - // the same role ARN, that role is used in the cognito:preferred_role claim - // in tokens for users in each group. If the two groups have different role - // ARNs, the cognito:preferred_role claim is not set in users' tokens. - // - // The default Precedence value is null. - Precedence *int64 `type:"integer"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroupRequest +type DeleteGroupInput struct { + _ struct{} `type:"structure"` - // The role ARN for the group. - RoleArn *string `min:"20" type:"string"` + // The name of the group. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` // The user pool ID for the user pool. // @@ -12104,27 +15427,24 @@ type CreateGroupInput struct { } // String returns the string representation -func (s CreateGroupInput) String() string { +func (s DeleteGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateGroupInput) GoString() string { +func (s DeleteGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateGroupInput"} +func (s *DeleteGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGroupInput"} if s.GroupName == nil { invalidParams.Add(request.NewErrParamRequired("GroupName")) } if s.GroupName != nil && len(*s.GroupName) < 1 { invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) } - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) - } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -12138,86 +15458,42 @@ func (s *CreateGroupInput) Validate() error { return nil } -// SetDescription sets the Description field's value. -func (s *CreateGroupInput) SetDescription(v string) *CreateGroupInput { - s.Description = &v - return s -} - // SetGroupName sets the GroupName field's value. -func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput { +func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput { s.GroupName = &v return s } -// SetPrecedence sets the Precedence field's value. -func (s *CreateGroupInput) SetPrecedence(v int64) *CreateGroupInput { - s.Precedence = &v - return s -} - -// SetRoleArn sets the RoleArn field's value. -func (s *CreateGroupInput) SetRoleArn(v string) *CreateGroupInput { - s.RoleArn = &v - return s -} - // SetUserPoolId sets the UserPoolId field's value. -func (s *CreateGroupInput) SetUserPoolId(v string) *CreateGroupInput { +func (s *DeleteGroupInput) SetUserPoolId(v string) *DeleteGroupInput { s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroupResponse -type CreateGroupOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroupOutput +type DeleteGroupOutput struct { _ struct{} `type:"structure"` - - // The group object for the group. - Group *GroupType `type:"structure"` } // String returns the string representation -func (s CreateGroupOutput) String() string { +func (s DeleteGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateGroupOutput) GoString() string { +func (s DeleteGroupOutput) GoString() string { return s.String() } -// SetGroup sets the Group field's value. -func (s *CreateGroupOutput) SetGroup(v *GroupType) *CreateGroupOutput { - s.Group = v - return s -} - -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateIdentityProviderRequest -type CreateIdentityProviderInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteIdentityProviderRequest +type DeleteIdentityProviderInput struct { _ struct{} `type:"structure"` - // A mapping of identity provider attributes to standard and custom user pool - // attributes. - AttributeMapping map[string]*string `type:"map"` - - // A list of identity provider identifiers. - IdpIdentifiers []*string `type:"list"` - - // The identity provider details, such as MetadataURL and MetadataFile. - // - // ProviderDetails is a required field - ProviderDetails map[string]*string `type:"map" required:"true"` - // The identity provider name. // // ProviderName is a required field ProviderName *string `min:"1" type:"string" required:"true"` - // The identity provider type. - // - // ProviderType is a required field - ProviderType *string `type:"string" required:"true" enum:"IdentityProviderTypeType"` - // The user pool ID. // // UserPoolId is a required field @@ -12225,30 +15501,24 @@ type CreateIdentityProviderInput struct { } // String returns the string representation -func (s CreateIdentityProviderInput) String() string { +func (s DeleteIdentityProviderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateIdentityProviderInput) GoString() string { +func (s DeleteIdentityProviderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateIdentityProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateIdentityProviderInput"} - if s.ProviderDetails == nil { - invalidParams.Add(request.NewErrParamRequired("ProviderDetails")) - } +func (s *DeleteIdentityProviderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteIdentityProviderInput"} if s.ProviderName == nil { invalidParams.Add(request.NewErrParamRequired("ProviderName")) } if s.ProviderName != nil && len(*s.ProviderName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) } - if s.ProviderType == nil { - invalidParams.Add(request.NewErrParamRequired("ProviderType")) - } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -12262,132 +15532,206 @@ func (s *CreateIdentityProviderInput) Validate() error { return nil } -// SetAttributeMapping sets the AttributeMapping field's value. -func (s *CreateIdentityProviderInput) SetAttributeMapping(v map[string]*string) *CreateIdentityProviderInput { - s.AttributeMapping = v +// SetProviderName sets the ProviderName field's value. +func (s *DeleteIdentityProviderInput) SetProviderName(v string) *DeleteIdentityProviderInput { + s.ProviderName = &v return s } -// SetIdpIdentifiers sets the IdpIdentifiers field's value. -func (s *CreateIdentityProviderInput) SetIdpIdentifiers(v []*string) *CreateIdentityProviderInput { - s.IdpIdentifiers = v +// SetUserPoolId sets the UserPoolId field's value. +func (s *DeleteIdentityProviderInput) SetUserPoolId(v string) *DeleteIdentityProviderInput { + s.UserPoolId = &v return s } -// SetProviderDetails sets the ProviderDetails field's value. -func (s *CreateIdentityProviderInput) SetProviderDetails(v map[string]*string) *CreateIdentityProviderInput { - s.ProviderDetails = v - return s +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteIdentityProviderOutput +type DeleteIdentityProviderOutput struct { + _ struct{} `type:"structure"` } -// SetProviderName sets the ProviderName field's value. -func (s *CreateIdentityProviderInput) SetProviderName(v string) *CreateIdentityProviderInput { - s.ProviderName = &v - return s +// String returns the string representation +func (s DeleteIdentityProviderOutput) String() string { + return awsutil.Prettify(s) } -// SetProviderType sets the ProviderType field's value. -func (s *CreateIdentityProviderInput) SetProviderType(v string) *CreateIdentityProviderInput { - s.ProviderType = &v +// GoString returns the string representation +func (s DeleteIdentityProviderOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteResourceServerRequest +type DeleteResourceServerInput struct { + _ struct{} `type:"structure"` + + // The identifier for the resource server. + // + // Identifier is a required field + Identifier *string `min:"1" type:"string" required:"true"` + + // The user pool ID for the user pool that hosts the resource server. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteResourceServerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResourceServerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResourceServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResourceServerInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentifier sets the Identifier field's value. +func (s *DeleteResourceServerInput) SetIdentifier(v string) *DeleteResourceServerInput { + s.Identifier = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *CreateIdentityProviderInput) SetUserPoolId(v string) *CreateIdentityProviderInput { +func (s *DeleteResourceServerInput) SetUserPoolId(v string) *DeleteResourceServerInput { s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateIdentityProviderResponse -type CreateIdentityProviderOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteResourceServerOutput +type DeleteResourceServerOutput struct { _ struct{} `type:"structure"` +} - // The newly created identity provider object. +// String returns the string representation +func (s DeleteResourceServerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResourceServerOutput) GoString() string { + return s.String() +} + +// Represents the request to delete user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributesRequest +type DeleteUserAttributesInput struct { + _ struct{} `type:"structure"` + + // The access token used in the request to delete user attributes. // - // IdentityProvider is a required field - IdentityProvider *IdentityProviderType `type:"structure" required:"true"` + // AccessToken is a required field + AccessToken *string `type:"string" required:"true"` + + // An array of strings representing the user attribute names you wish to delete. + // + // For custom attributes, you must prepend the custom: prefix to the attribute + // name. + // + // UserAttributeNames is a required field + UserAttributeNames []*string `type:"list" required:"true"` } // String returns the string representation -func (s CreateIdentityProviderOutput) String() string { +func (s DeleteUserAttributesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateIdentityProviderOutput) GoString() string { +func (s DeleteUserAttributesInput) GoString() string { return s.String() } -// SetIdentityProvider sets the IdentityProvider field's value. -func (s *CreateIdentityProviderOutput) SetIdentityProvider(v *IdentityProviderType) *CreateIdentityProviderOutput { - s.IdentityProvider = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteUserAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserAttributesInput"} + if s.AccessToken == nil { + invalidParams.Add(request.NewErrParamRequired("AccessToken")) + } + if s.UserAttributeNames == nil { + invalidParams.Add(request.NewErrParamRequired("UserAttributeNames")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccessToken sets the AccessToken field's value. +func (s *DeleteUserAttributesInput) SetAccessToken(v string) *DeleteUserAttributesInput { + s.AccessToken = &v + return s +} + +// SetUserAttributeNames sets the UserAttributeNames field's value. +func (s *DeleteUserAttributesInput) SetUserAttributeNames(v []*string) *DeleteUserAttributesInput { + s.UserAttributeNames = v + return s +} + +// Represents the response from the server to delete user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributesResponse +type DeleteUserAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteUserAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteUserAttributesOutput) GoString() string { + return s.String() } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateResourceServerRequest -type CreateResourceServerInput struct { +// Represents the request to delete a user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserRequest +type DeleteUserInput struct { _ struct{} `type:"structure"` - // A unique resource server identifier for the resource server. This could be - // an HTTPS endpoint where the resource server is located. For example, https://my-weather-api.example.com. - // - // Identifier is a required field - Identifier *string `min:"1" type:"string" required:"true"` - - // A friendly name for the resource server. - // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` - - // A list of scopes. Each scope is map, where the keys are name and description. - Scopes []*ResourceServerScopeType `type:"list"` - - // The user pool ID for the user pool. + // The access token from a request to delete a user. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // AccessToken is a required field + AccessToken *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateResourceServerInput) String() string { +func (s DeleteUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateResourceServerInput) GoString() string { +func (s DeleteUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateResourceServerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateResourceServerInput"} - if s.Identifier == nil { - invalidParams.Add(request.NewErrParamRequired("Identifier")) - } - if s.Identifier != nil && len(*s.Identifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Scopes != nil { - for i, v := range s.Scopes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Scopes", i), err.(request.ErrInvalidParams)) - } - } +func (s *DeleteUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} + if s.AccessToken == nil { + invalidParams.Add(request.NewErrParamRequired("AccessToken")) } if invalidParams.Len() > 0 { @@ -12396,101 +15740,61 @@ func (s *CreateResourceServerInput) Validate() error { return nil } -// SetIdentifier sets the Identifier field's value. -func (s *CreateResourceServerInput) SetIdentifier(v string) *CreateResourceServerInput { - s.Identifier = &v - return s -} - -// SetName sets the Name field's value. -func (s *CreateResourceServerInput) SetName(v string) *CreateResourceServerInput { - s.Name = &v - return s -} - -// SetScopes sets the Scopes field's value. -func (s *CreateResourceServerInput) SetScopes(v []*ResourceServerScopeType) *CreateResourceServerInput { - s.Scopes = v - return s -} - -// SetUserPoolId sets the UserPoolId field's value. -func (s *CreateResourceServerInput) SetUserPoolId(v string) *CreateResourceServerInput { - s.UserPoolId = &v +// SetAccessToken sets the AccessToken field's value. +func (s *DeleteUserInput) SetAccessToken(v string) *DeleteUserInput { + s.AccessToken = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateResourceServerResponse -type CreateResourceServerOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserOutput +type DeleteUserOutput struct { _ struct{} `type:"structure"` - - // The newly created resource server. - // - // ResourceServer is a required field - ResourceServer *ResourceServerType `type:"structure" required:"true"` } // String returns the string representation -func (s CreateResourceServerOutput) String() string { +func (s DeleteUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateResourceServerOutput) GoString() string { +func (s DeleteUserOutput) GoString() string { return s.String() } -// SetResourceServer sets the ResourceServer field's value. -func (s *CreateResourceServerOutput) SetResourceServer(v *ResourceServerType) *CreateResourceServerOutput { - s.ResourceServer = v - return s -} - -// Represents the request to create the user import job. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJobRequest -type CreateUserImportJobInput struct { +// Represents the request to delete a user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClientRequest +type DeleteUserPoolClientInput struct { _ struct{} `type:"structure"` - // The role ARN for the Amazon CloudWatch Logging role for the user import job. - // - // CloudWatchLogsRoleArn is a required field - CloudWatchLogsRoleArn *string `min:"20" type:"string" required:"true"` - - // The job name for the user import job. + // The app client ID of the app associated with the user pool. // - // JobName is a required field - JobName *string `min:"1" type:"string" required:"true"` + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` - // The user pool ID for the user pool that the users are being imported into. + // The user pool ID for the user pool where you want to delete the client. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s CreateUserImportJobInput) String() string { +func (s DeleteUserPoolClientInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserImportJobInput) GoString() string { +func (s DeleteUserPoolClientInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserImportJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserImportJobInput"} - if s.CloudWatchLogsRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("CloudWatchLogsRoleArn")) - } - if s.CloudWatchLogsRoleArn != nil && len(*s.CloudWatchLogsRoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CloudWatchLogsRoleArn", 20)) - } - if s.JobName == nil { - invalidParams.Add(request.NewErrParamRequired("JobName")) +func (s *DeleteUserPoolClientInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolClientInput"} + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) } - if s.JobName != nil && len(*s.JobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -12505,133 +15809,66 @@ func (s *CreateUserImportJobInput) Validate() error { return nil } -// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. -func (s *CreateUserImportJobInput) SetCloudWatchLogsRoleArn(v string) *CreateUserImportJobInput { - s.CloudWatchLogsRoleArn = &v - return s -} - -// SetJobName sets the JobName field's value. -func (s *CreateUserImportJobInput) SetJobName(v string) *CreateUserImportJobInput { - s.JobName = &v +// SetClientId sets the ClientId field's value. +func (s *DeleteUserPoolClientInput) SetClientId(v string) *DeleteUserPoolClientInput { + s.ClientId = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *CreateUserImportJobInput) SetUserPoolId(v string) *CreateUserImportJobInput { +func (s *DeleteUserPoolClientInput) SetUserPoolId(v string) *DeleteUserPoolClientInput { s.UserPoolId = &v return s } -// Represents the response from the server to the request to create the user -// import job. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJobResponse -type CreateUserImportJobOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClientOutput +type DeleteUserPoolClientOutput struct { _ struct{} `type:"structure"` - - // The job object that represents the user import job. - UserImportJob *UserImportJobType `type:"structure"` } // String returns the string representation -func (s CreateUserImportJobOutput) String() string { +func (s DeleteUserPoolClientOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserImportJobOutput) GoString() string { +func (s DeleteUserPoolClientOutput) GoString() string { return s.String() } -// SetUserImportJob sets the UserImportJob field's value. -func (s *CreateUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *CreateUserImportJobOutput { - s.UserImportJob = v - return s -} - -// Represents the request to create a user pool client. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClientRequest -type CreateUserPoolClientInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolDomainRequest +type DeleteUserPoolDomainInput struct { _ struct{} `type:"structure"` - // Set to code to initiate a code grant flow, which provides an authorization - // code as the response. This code can be exchanged for access tokens with the - // token endpoint. - // - // Set to token to specify that the client should get the access token (and, - // optionally, ID token, based on scopes) directly. - AllowedOAuthFlows []*string `type:"list"` - - // Set to True if the client is allowed to follow the OAuth protocol when interacting - // with Cognito user pools. - AllowedOAuthFlowsUserPoolClient *bool `type:"boolean"` - - // A list of allowed OAuth scopes. Currently supported values are "phone", "email", - // "openid", and "Cognito". - AllowedOAuthScopes []*string `type:"list"` - - // A list of allowed callback URLs for the identity providers. - CallbackURLs []*string `type:"list"` - - // The client name for the user pool client you would like to create. + // The domain string. // - // ClientName is a required field - ClientName *string `min:"1" type:"string" required:"true"` - - // The default redirect URI. Must be in the CallbackURLs list. - DefaultRedirectURI *string `min:"1" type:"string"` - - // The explicit authentication flows. - ExplicitAuthFlows []*string `type:"list"` - - // Boolean to specify whether you want to generate a secret for the user pool - // client being created. - GenerateSecret *bool `type:"boolean"` - - // A list of allowed logout URLs for the identity providers. - LogoutURLs []*string `type:"list"` - - // The read attributes. - ReadAttributes []*string `type:"list"` - - // The time limit, in days, after which the refresh token is no longer valid - // and cannot be used. - RefreshTokenValidity *int64 `type:"integer"` - - // A list of provider names for the identity providers that are supported on - // this client. - SupportedIdentityProviders []*string `type:"list"` + // Domain is a required field + Domain *string `min:"1" type:"string" required:"true"` - // The user pool ID for the user pool where you want to create a user pool client. + // The user pool ID. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - - // The write attributes. - WriteAttributes []*string `type:"list"` } // String returns the string representation -func (s CreateUserPoolClientInput) String() string { +func (s DeleteUserPoolDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserPoolClientInput) GoString() string { +func (s DeleteUserPoolDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserPoolClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolClientInput"} - if s.ClientName == nil { - invalidParams.Add(request.NewErrParamRequired("ClientName")) - } - if s.ClientName != nil && len(*s.ClientName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientName", 1)) +func (s *DeleteUserPoolDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolDomainInput"} + if s.Domain == nil { + invalidParams.Add(request.NewErrParamRequired("Domain")) } - if s.DefaultRedirectURI != nil && len(*s.DefaultRedirectURI) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DefaultRedirectURI", 1)) + if s.Domain != nil && len(*s.Domain) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -12646,123 +15883,99 @@ func (s *CreateUserPoolClientInput) Validate() error { return nil } -// SetAllowedOAuthFlows sets the AllowedOAuthFlows field's value. -func (s *CreateUserPoolClientInput) SetAllowedOAuthFlows(v []*string) *CreateUserPoolClientInput { - s.AllowedOAuthFlows = v - return s -} - -// SetAllowedOAuthFlowsUserPoolClient sets the AllowedOAuthFlowsUserPoolClient field's value. -func (s *CreateUserPoolClientInput) SetAllowedOAuthFlowsUserPoolClient(v bool) *CreateUserPoolClientInput { - s.AllowedOAuthFlowsUserPoolClient = &v +// SetDomain sets the Domain field's value. +func (s *DeleteUserPoolDomainInput) SetDomain(v string) *DeleteUserPoolDomainInput { + s.Domain = &v return s } -// SetAllowedOAuthScopes sets the AllowedOAuthScopes field's value. -func (s *CreateUserPoolClientInput) SetAllowedOAuthScopes(v []*string) *CreateUserPoolClientInput { - s.AllowedOAuthScopes = v +// SetUserPoolId sets the UserPoolId field's value. +func (s *DeleteUserPoolDomainInput) SetUserPoolId(v string) *DeleteUserPoolDomainInput { + s.UserPoolId = &v return s } -// SetCallbackURLs sets the CallbackURLs field's value. -func (s *CreateUserPoolClientInput) SetCallbackURLs(v []*string) *CreateUserPoolClientInput { - s.CallbackURLs = v - return s +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolDomainResponse +type DeleteUserPoolDomainOutput struct { + _ struct{} `type:"structure"` } -// SetClientName sets the ClientName field's value. -func (s *CreateUserPoolClientInput) SetClientName(v string) *CreateUserPoolClientInput { - s.ClientName = &v - return s +// String returns the string representation +func (s DeleteUserPoolDomainOutput) String() string { + return awsutil.Prettify(s) } -// SetDefaultRedirectURI sets the DefaultRedirectURI field's value. -func (s *CreateUserPoolClientInput) SetDefaultRedirectURI(v string) *CreateUserPoolClientInput { - s.DefaultRedirectURI = &v - return s +// GoString returns the string representation +func (s DeleteUserPoolDomainOutput) GoString() string { + return s.String() } -// SetExplicitAuthFlows sets the ExplicitAuthFlows field's value. -func (s *CreateUserPoolClientInput) SetExplicitAuthFlows(v []*string) *CreateUserPoolClientInput { - s.ExplicitAuthFlows = v - return s -} +// Represents the request to delete a user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolRequest +type DeleteUserPoolInput struct { + _ struct{} `type:"structure"` -// SetGenerateSecret sets the GenerateSecret field's value. -func (s *CreateUserPoolClientInput) SetGenerateSecret(v bool) *CreateUserPoolClientInput { - s.GenerateSecret = &v - return s + // The user pool ID for the user pool you want to delete. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } -// SetLogoutURLs sets the LogoutURLs field's value. -func (s *CreateUserPoolClientInput) SetLogoutURLs(v []*string) *CreateUserPoolClientInput { - s.LogoutURLs = v - return s +// String returns the string representation +func (s DeleteUserPoolInput) String() string { + return awsutil.Prettify(s) } -// SetReadAttributes sets the ReadAttributes field's value. -func (s *CreateUserPoolClientInput) SetReadAttributes(v []*string) *CreateUserPoolClientInput { - s.ReadAttributes = v - return s +// GoString returns the string representation +func (s DeleteUserPoolInput) GoString() string { + return s.String() } -// SetRefreshTokenValidity sets the RefreshTokenValidity field's value. -func (s *CreateUserPoolClientInput) SetRefreshTokenValidity(v int64) *CreateUserPoolClientInput { - s.RefreshTokenValidity = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteUserPoolInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } -// SetSupportedIdentityProviders sets the SupportedIdentityProviders field's value. -func (s *CreateUserPoolClientInput) SetSupportedIdentityProviders(v []*string) *CreateUserPoolClientInput { - s.SupportedIdentityProviders = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetUserPoolId sets the UserPoolId field's value. -func (s *CreateUserPoolClientInput) SetUserPoolId(v string) *CreateUserPoolClientInput { +func (s *DeleteUserPoolInput) SetUserPoolId(v string) *DeleteUserPoolInput { s.UserPoolId = &v return s } -// SetWriteAttributes sets the WriteAttributes field's value. -func (s *CreateUserPoolClientInput) SetWriteAttributes(v []*string) *CreateUserPoolClientInput { - s.WriteAttributes = v - return s -} - -// Represents the response from the server to create a user pool client. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClientResponse -type CreateUserPoolClientOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolOutput +type DeleteUserPoolOutput struct { _ struct{} `type:"structure"` - - // The user pool client that was just created. - UserPoolClient *UserPoolClientType `type:"structure"` } // String returns the string representation -func (s CreateUserPoolClientOutput) String() string { +func (s DeleteUserPoolOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserPoolClientOutput) GoString() string { +func (s DeleteUserPoolOutput) GoString() string { return s.String() } -// SetUserPoolClient sets the UserPoolClient field's value. -func (s *CreateUserPoolClientOutput) SetUserPoolClient(v *UserPoolClientType) *CreateUserPoolClientOutput { - s.UserPoolClient = v - return s -} - -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolDomainRequest -type CreateUserPoolDomainInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeIdentityProviderRequest +type DescribeIdentityProviderInput struct { _ struct{} `type:"structure"` - // The domain string. + // The identity provider name. // - // Domain is a required field - Domain *string `min:"1" type:"string" required:"true"` + // ProviderName is a required field + ProviderName *string `min:"1" type:"string" required:"true"` // The user pool ID. // @@ -12771,23 +15984,23 @@ type CreateUserPoolDomainInput struct { } // String returns the string representation -func (s CreateUserPoolDomainInput) String() string { +func (s DescribeIdentityProviderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserPoolDomainInput) GoString() string { +func (s DescribeIdentityProviderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserPoolDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolDomainInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) +func (s *DescribeIdentityProviderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityProviderInput"} + if s.ProviderName == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderName")) } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) + if s.ProviderName != nil && len(*s.ProviderName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -12802,173 +16015,163 @@ func (s *CreateUserPoolDomainInput) Validate() error { return nil } -// SetDomain sets the Domain field's value. -func (s *CreateUserPoolDomainInput) SetDomain(v string) *CreateUserPoolDomainInput { - s.Domain = &v +// SetProviderName sets the ProviderName field's value. +func (s *DescribeIdentityProviderInput) SetProviderName(v string) *DescribeIdentityProviderInput { + s.ProviderName = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *CreateUserPoolDomainInput) SetUserPoolId(v string) *CreateUserPoolDomainInput { +func (s *DescribeIdentityProviderInput) SetUserPoolId(v string) *DescribeIdentityProviderInput { s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolDomainResponse -type CreateUserPoolDomainOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeIdentityProviderResponse +type DescribeIdentityProviderOutput struct { _ struct{} `type:"structure"` + + // The identity provider that was deleted. + // + // IdentityProvider is a required field + IdentityProvider *IdentityProviderType `type:"structure" required:"true"` } // String returns the string representation -func (s CreateUserPoolDomainOutput) String() string { +func (s DescribeIdentityProviderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserPoolDomainOutput) GoString() string { +func (s DescribeIdentityProviderOutput) GoString() string { return s.String() } -// Represents the request to create a user pool. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolRequest -type CreateUserPoolInput struct { - _ struct{} `type:"structure"` +// SetIdentityProvider sets the IdentityProvider field's value. +func (s *DescribeIdentityProviderOutput) SetIdentityProvider(v *IdentityProviderType) *DescribeIdentityProviderOutput { + s.IdentityProvider = v + return s +} - // The configuration for AdminCreateUser requests. - AdminCreateUserConfig *AdminCreateUserConfigType `type:"structure"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeResourceServerRequest +type DescribeResourceServerInput struct { + _ struct{} `type:"structure"` - // Attributes supported as an alias for this user pool. Possible values: phone_number, - // email, or preferred_username. - AliasAttributes []*string `type:"list"` + // The identifier for the resource server + // + // Identifier is a required field + Identifier *string `min:"1" type:"string" required:"true"` - // The attributes to be auto-verified. Possible values: email, phone_number. - AutoVerifiedAttributes []*string `type:"list"` + // The user pool ID for the user pool that hosts the resource server. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} - // The device configuration. - DeviceConfiguration *DeviceConfigurationType `type:"structure"` +// String returns the string representation +func (s DescribeResourceServerInput) String() string { + return awsutil.Prettify(s) +} - // The email configuration. - EmailConfiguration *EmailConfigurationType `type:"structure"` +// GoString returns the string representation +func (s DescribeResourceServerInput) GoString() string { + return s.String() +} - // A string representing the email verification message. - EmailVerificationMessage *string `min:"6" type:"string"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeResourceServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeResourceServerInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } - // A string representing the email verification subject. - EmailVerificationSubject *string `min:"1" type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The Lambda trigger configuration information for the new user pool. - LambdaConfig *LambdaConfigType `type:"structure"` +// SetIdentifier sets the Identifier field's value. +func (s *DescribeResourceServerInput) SetIdentifier(v string) *DescribeResourceServerInput { + s.Identifier = &v + return s +} - // Specifies MFA configuration details. - MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` +// SetUserPoolId sets the UserPoolId field's value. +func (s *DescribeResourceServerInput) SetUserPoolId(v string) *DescribeResourceServerInput { + s.UserPoolId = &v + return s +} - // The policies associated with the new user pool. - Policies *UserPoolPolicyType `type:"structure"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeResourceServerResponse +type DescribeResourceServerOutput struct { + _ struct{} `type:"structure"` - // A string used to name the user pool. + // The resource server. // - // PoolName is a required field - PoolName *string `min:"1" type:"string" required:"true"` - - // An array of schema attributes for the new user pool. These attributes can - // be standard or custom attributes. - Schema []*SchemaAttributeType `min:"1" type:"list"` + // ResourceServer is a required field + ResourceServer *ResourceServerType `type:"structure" required:"true"` +} - // A string representing the SMS authentication message. - SmsAuthenticationMessage *string `min:"6" type:"string"` +// String returns the string representation +func (s DescribeResourceServerOutput) String() string { + return awsutil.Prettify(s) +} - // The SMS configuration. - SmsConfiguration *SmsConfigurationType `type:"structure"` +// GoString returns the string representation +func (s DescribeResourceServerOutput) GoString() string { + return s.String() +} - // A string representing the SMS verification message. - SmsVerificationMessage *string `min:"6" type:"string"` +// SetResourceServer sets the ResourceServer field's value. +func (s *DescribeResourceServerOutput) SetResourceServer(v *ResourceServerType) *DescribeResourceServerOutput { + s.ResourceServer = v + return s +} - // The cost allocation tags for the user pool. For more information, see Adding - // Cost Allocation Tags to Your User Pool (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html) - UserPoolTags map[string]*string `type:"map"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeRiskConfigurationRequest +type DescribeRiskConfigurationInput struct { + _ struct{} `type:"structure"` - // Specifies whether email addresses or phone numbers can be specified as usernames - // when a user signs up. - UsernameAttributes []*string `type:"list"` + // The app client ID. + ClientId *string `min:"1" type:"string"` - // The template for the verification message that the user sees when the app - // requests permission to access the user's information. - VerificationMessageTemplate *VerificationMessageTemplateType `type:"structure"` + // The user pool ID. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s CreateUserPoolInput) String() string { +func (s DescribeRiskConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserPoolInput) GoString() string { +func (s DescribeRiskConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolInput"} - if s.EmailVerificationMessage != nil && len(*s.EmailVerificationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("EmailVerificationMessage", 6)) - } - if s.EmailVerificationSubject != nil && len(*s.EmailVerificationSubject) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EmailVerificationSubject", 1)) - } - if s.PoolName == nil { - invalidParams.Add(request.NewErrParamRequired("PoolName")) - } - if s.PoolName != nil && len(*s.PoolName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PoolName", 1)) - } - if s.Schema != nil && len(s.Schema) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Schema", 1)) - } - if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6)) - } - if s.SmsVerificationMessage != nil && len(*s.SmsVerificationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("SmsVerificationMessage", 6)) - } - if s.AdminCreateUserConfig != nil { - if err := s.AdminCreateUserConfig.Validate(); err != nil { - invalidParams.AddNested("AdminCreateUserConfig", err.(request.ErrInvalidParams)) - } - } - if s.EmailConfiguration != nil { - if err := s.EmailConfiguration.Validate(); err != nil { - invalidParams.AddNested("EmailConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.LambdaConfig != nil { - if err := s.LambdaConfig.Validate(); err != nil { - invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) - } - } - if s.Policies != nil { - if err := s.Policies.Validate(); err != nil { - invalidParams.AddNested("Policies", err.(request.ErrInvalidParams)) - } - } - if s.Schema != nil { - for i, v := range s.Schema { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Schema", i), err.(request.ErrInvalidParams)) - } - } +func (s *DescribeRiskConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeRiskConfigurationInput"} + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } - if s.SmsConfiguration != nil { - if err := s.SmsConfiguration.Validate(); err != nil { - invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams)) - } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } - if s.VerificationMessageTemplate != nil { - if err := s.VerificationMessageTemplate.Validate(); err != nil { - invalidParams.AddNested("VerificationMessageTemplate", err.(request.ErrInvalidParams)) - } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } if invalidParams.Len() > 0 { @@ -12977,173 +16180,164 @@ func (s *CreateUserPoolInput) Validate() error { return nil } -// SetAdminCreateUserConfig sets the AdminCreateUserConfig field's value. -func (s *CreateUserPoolInput) SetAdminCreateUserConfig(v *AdminCreateUserConfigType) *CreateUserPoolInput { - s.AdminCreateUserConfig = v - return s -} - -// SetAliasAttributes sets the AliasAttributes field's value. -func (s *CreateUserPoolInput) SetAliasAttributes(v []*string) *CreateUserPoolInput { - s.AliasAttributes = v - return s -} - -// SetAutoVerifiedAttributes sets the AutoVerifiedAttributes field's value. -func (s *CreateUserPoolInput) SetAutoVerifiedAttributes(v []*string) *CreateUserPoolInput { - s.AutoVerifiedAttributes = v +// SetClientId sets the ClientId field's value. +func (s *DescribeRiskConfigurationInput) SetClientId(v string) *DescribeRiskConfigurationInput { + s.ClientId = &v return s } -// SetDeviceConfiguration sets the DeviceConfiguration field's value. -func (s *CreateUserPoolInput) SetDeviceConfiguration(v *DeviceConfigurationType) *CreateUserPoolInput { - s.DeviceConfiguration = v +// SetUserPoolId sets the UserPoolId field's value. +func (s *DescribeRiskConfigurationInput) SetUserPoolId(v string) *DescribeRiskConfigurationInput { + s.UserPoolId = &v return s } -// SetEmailConfiguration sets the EmailConfiguration field's value. -func (s *CreateUserPoolInput) SetEmailConfiguration(v *EmailConfigurationType) *CreateUserPoolInput { - s.EmailConfiguration = v - return s -} +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeRiskConfigurationResponse +type DescribeRiskConfigurationOutput struct { + _ struct{} `type:"structure"` -// SetEmailVerificationMessage sets the EmailVerificationMessage field's value. -func (s *CreateUserPoolInput) SetEmailVerificationMessage(v string) *CreateUserPoolInput { - s.EmailVerificationMessage = &v - return s + // The risk configuration. + // + // RiskConfiguration is a required field + RiskConfiguration *RiskConfigurationType `type:"structure" required:"true"` } -// SetEmailVerificationSubject sets the EmailVerificationSubject field's value. -func (s *CreateUserPoolInput) SetEmailVerificationSubject(v string) *CreateUserPoolInput { - s.EmailVerificationSubject = &v - return s +// String returns the string representation +func (s DescribeRiskConfigurationOutput) String() string { + return awsutil.Prettify(s) } -// SetLambdaConfig sets the LambdaConfig field's value. -func (s *CreateUserPoolInput) SetLambdaConfig(v *LambdaConfigType) *CreateUserPoolInput { - s.LambdaConfig = v - return s +// GoString returns the string representation +func (s DescribeRiskConfigurationOutput) GoString() string { + return s.String() } -// SetMfaConfiguration sets the MfaConfiguration field's value. -func (s *CreateUserPoolInput) SetMfaConfiguration(v string) *CreateUserPoolInput { - s.MfaConfiguration = &v +// SetRiskConfiguration sets the RiskConfiguration field's value. +func (s *DescribeRiskConfigurationOutput) SetRiskConfiguration(v *RiskConfigurationType) *DescribeRiskConfigurationOutput { + s.RiskConfiguration = v return s } -// SetPolicies sets the Policies field's value. -func (s *CreateUserPoolInput) SetPolicies(v *UserPoolPolicyType) *CreateUserPoolInput { - s.Policies = v - return s -} +// Represents the request to describe the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJobRequest +type DescribeUserImportJobInput struct { + _ struct{} `type:"structure"` -// SetPoolName sets the PoolName field's value. -func (s *CreateUserPoolInput) SetPoolName(v string) *CreateUserPoolInput { - s.PoolName = &v - return s -} + // The job ID for the user import job. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` -// SetSchema sets the Schema field's value. -func (s *CreateUserPoolInput) SetSchema(v []*SchemaAttributeType) *CreateUserPoolInput { - s.Schema = v - return s + // The user pool ID for the user pool that the users are being imported into. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } -// SetSmsAuthenticationMessage sets the SmsAuthenticationMessage field's value. -func (s *CreateUserPoolInput) SetSmsAuthenticationMessage(v string) *CreateUserPoolInput { - s.SmsAuthenticationMessage = &v - return s +// String returns the string representation +func (s DescribeUserImportJobInput) String() string { + return awsutil.Prettify(s) } -// SetSmsConfiguration sets the SmsConfiguration field's value. -func (s *CreateUserPoolInput) SetSmsConfiguration(v *SmsConfigurationType) *CreateUserPoolInput { - s.SmsConfiguration = v - return s +// GoString returns the string representation +func (s DescribeUserImportJobInput) GoString() string { + return s.String() } -// SetSmsVerificationMessage sets the SmsVerificationMessage field's value. -func (s *CreateUserPoolInput) SetSmsVerificationMessage(v string) *CreateUserPoolInput { - s.SmsVerificationMessage = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUserImportJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserImportJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } -// SetUserPoolTags sets the UserPoolTags field's value. -func (s *CreateUserPoolInput) SetUserPoolTags(v map[string]*string) *CreateUserPoolInput { - s.UserPoolTags = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetUsernameAttributes sets the UsernameAttributes field's value. -func (s *CreateUserPoolInput) SetUsernameAttributes(v []*string) *CreateUserPoolInput { - s.UsernameAttributes = v +// SetJobId sets the JobId field's value. +func (s *DescribeUserImportJobInput) SetJobId(v string) *DescribeUserImportJobInput { + s.JobId = &v return s } -// SetVerificationMessageTemplate sets the VerificationMessageTemplate field's value. -func (s *CreateUserPoolInput) SetVerificationMessageTemplate(v *VerificationMessageTemplateType) *CreateUserPoolInput { - s.VerificationMessageTemplate = v +// SetUserPoolId sets the UserPoolId field's value. +func (s *DescribeUserImportJobInput) SetUserPoolId(v string) *DescribeUserImportJobInput { + s.UserPoolId = &v return s } -// Represents the response from the server for the request to create a user -// pool. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolResponse -type CreateUserPoolOutput struct { +// Represents the response from the server to the request to describe the user +// import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJobResponse +type DescribeUserImportJobOutput struct { _ struct{} `type:"structure"` - // A container for the user pool details. - UserPool *UserPoolType `type:"structure"` + // The job object that represents the user import job. + UserImportJob *UserImportJobType `type:"structure"` } // String returns the string representation -func (s CreateUserPoolOutput) String() string { +func (s DescribeUserImportJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserPoolOutput) GoString() string { +func (s DescribeUserImportJobOutput) GoString() string { return s.String() } -// SetUserPool sets the UserPool field's value. -func (s *CreateUserPoolOutput) SetUserPool(v *UserPoolType) *CreateUserPoolOutput { - s.UserPool = v +// SetUserImportJob sets the UserImportJob field's value. +func (s *DescribeUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *DescribeUserImportJobOutput { + s.UserImportJob = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroupRequest -type DeleteGroupInput struct { +// Represents the request to describe a user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClientRequest +type DescribeUserPoolClientInput struct { _ struct{} `type:"structure"` - // The name of the group. + // The app client ID of the app associated with the user pool. // - // GroupName is a required field - GroupName *string `min:"1" type:"string" required:"true"` + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` - // The user pool ID for the user pool. + // The user pool ID for the user pool you want to describe. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DeleteGroupInput) String() string { +func (s DescribeUserPoolClientInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteGroupInput) GoString() string { +func (s DescribeUserPoolClientInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) +func (s *DescribeUserPoolClientInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolClientInput"} + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -13158,72 +16352,72 @@ func (s *DeleteGroupInput) Validate() error { return nil } -// SetGroupName sets the GroupName field's value. -func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput { - s.GroupName = &v +// SetClientId sets the ClientId field's value. +func (s *DescribeUserPoolClientInput) SetClientId(v string) *DescribeUserPoolClientInput { + s.ClientId = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *DeleteGroupInput) SetUserPoolId(v string) *DeleteGroupInput { +func (s *DescribeUserPoolClientInput) SetUserPoolId(v string) *DescribeUserPoolClientInput { s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroupOutput -type DeleteGroupOutput struct { +// Represents the response from the server from a request to describe the user +// pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClientResponse +type DescribeUserPoolClientOutput struct { _ struct{} `type:"structure"` + + // The user pool client from a server response to describe the user pool client. + UserPoolClient *UserPoolClientType `type:"structure"` } // String returns the string representation -func (s DeleteGroupOutput) String() string { +func (s DescribeUserPoolClientOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteGroupOutput) GoString() string { +func (s DescribeUserPoolClientOutput) GoString() string { return s.String() } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteIdentityProviderRequest -type DeleteIdentityProviderInput struct { - _ struct{} `type:"structure"` +// SetUserPoolClient sets the UserPoolClient field's value. +func (s *DescribeUserPoolClientOutput) SetUserPoolClient(v *UserPoolClientType) *DescribeUserPoolClientOutput { + s.UserPoolClient = v + return s +} - // The identity provider name. - // - // ProviderName is a required field - ProviderName *string `min:"1" type:"string" required:"true"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolDomainRequest +type DescribeUserPoolDomainInput struct { + _ struct{} `type:"structure"` - // The user pool ID. + // The domain string. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // Domain is a required field + Domain *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DeleteIdentityProviderInput) String() string { +func (s DescribeUserPoolDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteIdentityProviderInput) GoString() string { +func (s DescribeUserPoolDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIdentityProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIdentityProviderInput"} - if s.ProviderName == nil { - invalidParams.Add(request.NewErrParamRequired("ProviderName")) - } - if s.ProviderName != nil && len(*s.ProviderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) +func (s *DescribeUserPoolDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolDomainInput"} + if s.Domain == nil { + invalidParams.Add(request.NewErrParamRequired("Domain")) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.Domain != nil && len(*s.Domain) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) } if invalidParams.Len() > 0 { @@ -13232,67 +16426,60 @@ func (s *DeleteIdentityProviderInput) Validate() error { return nil } -// SetProviderName sets the ProviderName field's value. -func (s *DeleteIdentityProviderInput) SetProviderName(v string) *DeleteIdentityProviderInput { - s.ProviderName = &v - return s -} - -// SetUserPoolId sets the UserPoolId field's value. -func (s *DeleteIdentityProviderInput) SetUserPoolId(v string) *DeleteIdentityProviderInput { - s.UserPoolId = &v +// SetDomain sets the Domain field's value. +func (s *DescribeUserPoolDomainInput) SetDomain(v string) *DescribeUserPoolDomainInput { + s.Domain = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteIdentityProviderOutput -type DeleteIdentityProviderOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolDomainResponse +type DescribeUserPoolDomainOutput struct { _ struct{} `type:"structure"` + + // A domain description object containing information about the domain. + DomainDescription *DomainDescriptionType `type:"structure"` } // String returns the string representation -func (s DeleteIdentityProviderOutput) String() string { +func (s DescribeUserPoolDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteIdentityProviderOutput) GoString() string { +func (s DescribeUserPoolDomainOutput) GoString() string { return s.String() } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteResourceServerRequest -type DeleteResourceServerInput struct { - _ struct{} `type:"structure"` +// SetDomainDescription sets the DomainDescription field's value. +func (s *DescribeUserPoolDomainOutput) SetDomainDescription(v *DomainDescriptionType) *DescribeUserPoolDomainOutput { + s.DomainDescription = v + return s +} - // The identifier for the resource server. - // - // Identifier is a required field - Identifier *string `min:"1" type:"string" required:"true"` +// Represents the request to describe the user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolRequest +type DescribeUserPoolInput struct { + _ struct{} `type:"structure"` - // The user pool ID for the user pool that hosts the resource server. + // The user pool ID for the user pool you want to describe. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DeleteResourceServerInput) String() string { +func (s DescribeUserPoolInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteResourceServerInput) GoString() string { +func (s DescribeUserPoolInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteResourceServerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteResourceServerInput"} - if s.Identifier == nil { - invalidParams.Add(request.NewErrParamRequired("Identifier")) - } - if s.Identifier != nil && len(*s.Identifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) - } +func (s *DescribeUserPoolInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolInput"} if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -13306,339 +16493,273 @@ func (s *DeleteResourceServerInput) Validate() error { return nil } -// SetIdentifier sets the Identifier field's value. -func (s *DeleteResourceServerInput) SetIdentifier(v string) *DeleteResourceServerInput { - s.Identifier = &v - return s -} - // SetUserPoolId sets the UserPoolId field's value. -func (s *DeleteResourceServerInput) SetUserPoolId(v string) *DeleteResourceServerInput { +func (s *DescribeUserPoolInput) SetUserPoolId(v string) *DescribeUserPoolInput { s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteResourceServerOutput -type DeleteResourceServerOutput struct { +// Represents the response to describe the user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolResponse +type DescribeUserPoolOutput struct { _ struct{} `type:"structure"` + + // The container of metadata returned by the server to describe the pool. + UserPool *UserPoolType `type:"structure"` } // String returns the string representation -func (s DeleteResourceServerOutput) String() string { +func (s DescribeUserPoolOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteResourceServerOutput) GoString() string { +func (s DescribeUserPoolOutput) GoString() string { return s.String() } -// Represents the request to delete user attributes. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributesRequest -type DeleteUserAttributesInput struct { +// SetUserPool sets the UserPool field's value. +func (s *DescribeUserPoolOutput) SetUserPool(v *UserPoolType) *DescribeUserPoolOutput { + s.UserPool = v + return s +} + +// The configuration for the user pool's device tracking. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceConfigurationType +type DeviceConfigurationType struct { _ struct{} `type:"structure"` - // The access token used in the request to delete user attributes. - // - // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + // Indicates whether a challenge is required on a new device. Only applicable + // to a new device. + ChallengeRequiredOnNewDevice *bool `type:"boolean"` - // An array of strings representing the user attribute names you wish to delete. - // - // For custom attributes, you must prepend the custom: prefix to the attribute - // name. - // - // UserAttributeNames is a required field - UserAttributeNames []*string `type:"list" required:"true"` + // If true, a device is only remembered on user prompt. + DeviceOnlyRememberedOnUserPrompt *bool `type:"boolean"` } // String returns the string representation -func (s DeleteUserAttributesInput) String() string { +func (s DeviceConfigurationType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserAttributesInput) GoString() string { +func (s DeviceConfigurationType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserAttributesInput"} - if s.AccessToken == nil { - invalidParams.Add(request.NewErrParamRequired("AccessToken")) - } - if s.UserAttributeNames == nil { - invalidParams.Add(request.NewErrParamRequired("UserAttributeNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAccessToken sets the AccessToken field's value. -func (s *DeleteUserAttributesInput) SetAccessToken(v string) *DeleteUserAttributesInput { - s.AccessToken = &v +// SetChallengeRequiredOnNewDevice sets the ChallengeRequiredOnNewDevice field's value. +func (s *DeviceConfigurationType) SetChallengeRequiredOnNewDevice(v bool) *DeviceConfigurationType { + s.ChallengeRequiredOnNewDevice = &v return s } -// SetUserAttributeNames sets the UserAttributeNames field's value. -func (s *DeleteUserAttributesInput) SetUserAttributeNames(v []*string) *DeleteUserAttributesInput { - s.UserAttributeNames = v +// SetDeviceOnlyRememberedOnUserPrompt sets the DeviceOnlyRememberedOnUserPrompt field's value. +func (s *DeviceConfigurationType) SetDeviceOnlyRememberedOnUserPrompt(v bool) *DeviceConfigurationType { + s.DeviceOnlyRememberedOnUserPrompt = &v return s } -// Represents the response from the server to delete user attributes. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributesResponse -type DeleteUserAttributesOutput struct { +// The device verifier against which it will be authenticated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceSecretVerifierConfigType +type DeviceSecretVerifierConfigType struct { _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteUserAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserAttributesOutput) GoString() string { - return s.String() -} -// Represents the request to delete a user. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserRequest -type DeleteUserInput struct { - _ struct{} `type:"structure"` + // The password verifier. + PasswordVerifier *string `type:"string"` - // The access token from a request to delete a user. - // - // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + // The salt. + Salt *string `type:"string"` } // String returns the string representation -func (s DeleteUserInput) String() string { +func (s DeviceSecretVerifierConfigType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserInput) GoString() string { +func (s DeviceSecretVerifierConfigType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} - if s.AccessToken == nil { - invalidParams.Add(request.NewErrParamRequired("AccessToken")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetPasswordVerifier sets the PasswordVerifier field's value. +func (s *DeviceSecretVerifierConfigType) SetPasswordVerifier(v string) *DeviceSecretVerifierConfigType { + s.PasswordVerifier = &v + return s } -// SetAccessToken sets the AccessToken field's value. -func (s *DeleteUserInput) SetAccessToken(v string) *DeleteUserInput { - s.AccessToken = &v +// SetSalt sets the Salt field's value. +func (s *DeviceSecretVerifierConfigType) SetSalt(v string) *DeviceSecretVerifierConfigType { + s.Salt = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserOutput -type DeleteUserOutput struct { +// The device type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceType +type DeviceType struct { _ struct{} `type:"structure"` -} -// String returns the string representation -func (s DeleteUserOutput) String() string { - return awsutil.Prettify(s) -} + // The device attributes. + DeviceAttributes []*AttributeType `type:"list"` -// GoString returns the string representation -func (s DeleteUserOutput) GoString() string { - return s.String() -} + // The creation date of the device. + DeviceCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"` -// Represents the request to delete a user pool client. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClientRequest -type DeleteUserPoolClientInput struct { - _ struct{} `type:"structure"` + // The device key. + DeviceKey *string `min:"1" type:"string"` - // The app client ID of the app associated with the user pool. - // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + // The date in which the device was last authenticated. + DeviceLastAuthenticatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // The user pool ID for the user pool where you want to delete the client. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // The last modified date of the device. + DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` } // String returns the string representation -func (s DeleteUserPoolClientInput) String() string { +func (s DeviceType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserPoolClientInput) GoString() string { +func (s DeviceType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserPoolClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolClientInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientId sets the ClientId field's value. -func (s *DeleteUserPoolClientInput) SetClientId(v string) *DeleteUserPoolClientInput { - s.ClientId = &v +// SetDeviceAttributes sets the DeviceAttributes field's value. +func (s *DeviceType) SetDeviceAttributes(v []*AttributeType) *DeviceType { + s.DeviceAttributes = v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *DeleteUserPoolClientInput) SetUserPoolId(v string) *DeleteUserPoolClientInput { - s.UserPoolId = &v +// SetDeviceCreateDate sets the DeviceCreateDate field's value. +func (s *DeviceType) SetDeviceCreateDate(v time.Time) *DeviceType { + s.DeviceCreateDate = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClientOutput -type DeleteUserPoolClientOutput struct { - _ struct{} `type:"structure"` +// SetDeviceKey sets the DeviceKey field's value. +func (s *DeviceType) SetDeviceKey(v string) *DeviceType { + s.DeviceKey = &v + return s } -// String returns the string representation -func (s DeleteUserPoolClientOutput) String() string { - return awsutil.Prettify(s) +// SetDeviceLastAuthenticatedDate sets the DeviceLastAuthenticatedDate field's value. +func (s *DeviceType) SetDeviceLastAuthenticatedDate(v time.Time) *DeviceType { + s.DeviceLastAuthenticatedDate = &v + return s } -// GoString returns the string representation -func (s DeleteUserPoolClientOutput) GoString() string { - return s.String() +// SetDeviceLastModifiedDate sets the DeviceLastModifiedDate field's value. +func (s *DeviceType) SetDeviceLastModifiedDate(v time.Time) *DeviceType { + s.DeviceLastModifiedDate = &v + return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolDomainRequest -type DeleteUserPoolDomainInput struct { +// A container for information about a domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DomainDescriptionType +type DomainDescriptionType struct { _ struct{} `type:"structure"` + // The AWS account ID for the user pool owner. + AWSAccountId *string `type:"string"` + + // The ARN of the CloudFront distribution. + CloudFrontDistribution *string `min:"20" type:"string"` + // The domain string. - // - // Domain is a required field - Domain *string `min:"1" type:"string" required:"true"` + Domain *string `min:"1" type:"string"` + + // The S3 bucket where the static files for this domain are stored. + S3Bucket *string `min:"3" type:"string"` + + // The domain status. + Status *string `type:"string" enum:"DomainStatusType"` // The user pool ID. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + UserPoolId *string `min:"1" type:"string"` + + // The app version. + Version *string `min:"1" type:"string"` } // String returns the string representation -func (s DeleteUserPoolDomainInput) String() string { +func (s DomainDescriptionType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserPoolDomainInput) GoString() string { +func (s DomainDescriptionType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserPoolDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolDomainInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } +// SetAWSAccountId sets the AWSAccountId field's value. +func (s *DomainDescriptionType) SetAWSAccountId(v string) *DomainDescriptionType { + s.AWSAccountId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCloudFrontDistribution sets the CloudFrontDistribution field's value. +func (s *DomainDescriptionType) SetCloudFrontDistribution(v string) *DomainDescriptionType { + s.CloudFrontDistribution = &v + return s } // SetDomain sets the Domain field's value. -func (s *DeleteUserPoolDomainInput) SetDomain(v string) *DeleteUserPoolDomainInput { +func (s *DomainDescriptionType) SetDomain(v string) *DomainDescriptionType { s.Domain = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *DeleteUserPoolDomainInput) SetUserPoolId(v string) *DeleteUserPoolDomainInput { - s.UserPoolId = &v +// SetS3Bucket sets the S3Bucket field's value. +func (s *DomainDescriptionType) SetS3Bucket(v string) *DomainDescriptionType { + s.S3Bucket = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolDomainResponse -type DeleteUserPoolDomainOutput struct { - _ struct{} `type:"structure"` +// SetStatus sets the Status field's value. +func (s *DomainDescriptionType) SetStatus(v string) *DomainDescriptionType { + s.Status = &v + return s } -// String returns the string representation -func (s DeleteUserPoolDomainOutput) String() string { - return awsutil.Prettify(s) +// SetUserPoolId sets the UserPoolId field's value. +func (s *DomainDescriptionType) SetUserPoolId(v string) *DomainDescriptionType { + s.UserPoolId = &v + return s } -// GoString returns the string representation -func (s DeleteUserPoolDomainOutput) GoString() string { - return s.String() +// SetVersion sets the Version field's value. +func (s *DomainDescriptionType) SetVersion(v string) *DomainDescriptionType { + s.Version = &v + return s } -// Represents the request to delete a user pool. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolRequest -type DeleteUserPoolInput struct { +// The email configuration type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/EmailConfigurationType +type EmailConfigurationType struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool you want to delete. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // The destination to which the receiver of the email should reply to. + ReplyToEmailAddress *string `type:"string"` + + // The Amazon Resource Name (ARN) of the email source. + SourceArn *string `min:"20" type:"string"` } // String returns the string representation -func (s DeleteUserPoolInput) String() string { +func (s EmailConfigurationType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserPoolInput) GoString() string { +func (s EmailConfigurationType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) +func (s *EmailConfigurationType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EmailConfigurationType"} + if s.SourceArn != nil && len(*s.SourceArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("SourceArn", 20)) } if invalidParams.Len() > 0 { @@ -13647,151 +16768,192 @@ func (s *DeleteUserPoolInput) Validate() error { return nil } -// SetUserPoolId sets the UserPoolId field's value. -func (s *DeleteUserPoolInput) SetUserPoolId(v string) *DeleteUserPoolInput { - s.UserPoolId = &v +// SetReplyToEmailAddress sets the ReplyToEmailAddress field's value. +func (s *EmailConfigurationType) SetReplyToEmailAddress(v string) *EmailConfigurationType { + s.ReplyToEmailAddress = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *EmailConfigurationType) SetSourceArn(v string) *EmailConfigurationType { + s.SourceArn = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolOutput -type DeleteUserPoolOutput struct { +// Specifies the user context data captured at the time of an event request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/EventContextDataType +type EventContextDataType struct { _ struct{} `type:"structure"` + + // The user's city. + City *string `type:"string"` + + // The user's country. + Country *string `type:"string"` + + // The user's device name. + DeviceName *string `type:"string"` + + // The user's IP address. + IpAddress *string `type:"string"` + + // The user's time zone. + Timezone *string `type:"string"` } // String returns the string representation -func (s DeleteUserPoolOutput) String() string { +func (s EventContextDataType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserPoolOutput) GoString() string { +func (s EventContextDataType) GoString() string { return s.String() } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeIdentityProviderRequest -type DescribeIdentityProviderInput struct { +// SetCity sets the City field's value. +func (s *EventContextDataType) SetCity(v string) *EventContextDataType { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *EventContextDataType) SetCountry(v string) *EventContextDataType { + s.Country = &v + return s +} + +// SetDeviceName sets the DeviceName field's value. +func (s *EventContextDataType) SetDeviceName(v string) *EventContextDataType { + s.DeviceName = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *EventContextDataType) SetIpAddress(v string) *EventContextDataType { + s.IpAddress = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *EventContextDataType) SetTimezone(v string) *EventContextDataType { + s.Timezone = &v + return s +} + +// Specifies the event feedback type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/EventFeedbackType +type EventFeedbackType struct { _ struct{} `type:"structure"` - // The identity provider name. + // The event feedback date. + FeedbackDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The event feedback value. // - // ProviderName is a required field - ProviderName *string `min:"1" type:"string" required:"true"` + // FeedbackValue is a required field + FeedbackValue *string `type:"string" required:"true" enum:"FeedbackValueType"` - // The user pool ID. + // The provider. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // Provider is a required field + Provider *string `type:"string" required:"true"` } // String returns the string representation -func (s DescribeIdentityProviderInput) String() string { +func (s EventFeedbackType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeIdentityProviderInput) GoString() string { +func (s EventFeedbackType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeIdentityProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityProviderInput"} - if s.ProviderName == nil { - invalidParams.Add(request.NewErrParamRequired("ProviderName")) - } - if s.ProviderName != nil && len(*s.ProviderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetFeedbackDate sets the FeedbackDate field's value. +func (s *EventFeedbackType) SetFeedbackDate(v time.Time) *EventFeedbackType { + s.FeedbackDate = &v + return s } -// SetProviderName sets the ProviderName field's value. -func (s *DescribeIdentityProviderInput) SetProviderName(v string) *DescribeIdentityProviderInput { - s.ProviderName = &v +// SetFeedbackValue sets the FeedbackValue field's value. +func (s *EventFeedbackType) SetFeedbackValue(v string) *EventFeedbackType { + s.FeedbackValue = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *DescribeIdentityProviderInput) SetUserPoolId(v string) *DescribeIdentityProviderInput { - s.UserPoolId = &v +// SetProvider sets the Provider field's value. +func (s *EventFeedbackType) SetProvider(v string) *EventFeedbackType { + s.Provider = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeIdentityProviderResponse -type DescribeIdentityProviderOutput struct { +// The event risk type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/EventRiskType +type EventRiskType struct { _ struct{} `type:"structure"` - // The identity provider that was deleted. - // - // IdentityProvider is a required field - IdentityProvider *IdentityProviderType `type:"structure" required:"true"` + // The risk decision. + RiskDecision *string `type:"string" enum:"RiskDecisionType"` + + // The risk level. + RiskLevel *string `type:"string" enum:"RiskLevelType"` } // String returns the string representation -func (s DescribeIdentityProviderOutput) String() string { +func (s EventRiskType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeIdentityProviderOutput) GoString() string { +func (s EventRiskType) GoString() string { return s.String() } -// SetIdentityProvider sets the IdentityProvider field's value. -func (s *DescribeIdentityProviderOutput) SetIdentityProvider(v *IdentityProviderType) *DescribeIdentityProviderOutput { - s.IdentityProvider = v +// SetRiskDecision sets the RiskDecision field's value. +func (s *EventRiskType) SetRiskDecision(v string) *EventRiskType { + s.RiskDecision = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeResourceServerRequest -type DescribeResourceServerInput struct { +// SetRiskLevel sets the RiskLevel field's value. +func (s *EventRiskType) SetRiskLevel(v string) *EventRiskType { + s.RiskLevel = &v + return s +} + +// Represents the request to forget the device. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDeviceRequest +type ForgetDeviceInput struct { _ struct{} `type:"structure"` - // The identifier for the resource server - // - // Identifier is a required field - Identifier *string `min:"1" type:"string" required:"true"` + // The access token for the forgotten device request. + AccessToken *string `type:"string"` - // The user pool ID for the user pool that hosts the resource server. + // The device key. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // DeviceKey is a required field + DeviceKey *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeResourceServerInput) String() string { +func (s ForgetDeviceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeResourceServerInput) GoString() string { +func (s ForgetDeviceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeResourceServerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeResourceServerInput"} - if s.Identifier == nil { - invalidParams.Add(request.NewErrParamRequired("Identifier")) - } - if s.Identifier != nil && len(*s.Identifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) +func (s *ForgetDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ForgetDeviceInput"} + if s.DeviceKey == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceKey")) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) } if invalidParams.Len() > 0 { @@ -13800,84 +16962,90 @@ func (s *DescribeResourceServerInput) Validate() error { return nil } -// SetIdentifier sets the Identifier field's value. -func (s *DescribeResourceServerInput) SetIdentifier(v string) *DescribeResourceServerInput { - s.Identifier = &v +// SetAccessToken sets the AccessToken field's value. +func (s *ForgetDeviceInput) SetAccessToken(v string) *ForgetDeviceInput { + s.AccessToken = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *DescribeResourceServerInput) SetUserPoolId(v string) *DescribeResourceServerInput { - s.UserPoolId = &v +// SetDeviceKey sets the DeviceKey field's value. +func (s *ForgetDeviceInput) SetDeviceKey(v string) *ForgetDeviceInput { + s.DeviceKey = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeResourceServerResponse -type DescribeResourceServerOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDeviceOutput +type ForgetDeviceOutput struct { _ struct{} `type:"structure"` - - // The resource server. - // - // ResourceServer is a required field - ResourceServer *ResourceServerType `type:"structure" required:"true"` } // String returns the string representation -func (s DescribeResourceServerOutput) String() string { +func (s ForgetDeviceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeResourceServerOutput) GoString() string { +func (s ForgetDeviceOutput) GoString() string { return s.String() } -// SetResourceServer sets the ResourceServer field's value. -func (s *DescribeResourceServerOutput) SetResourceServer(v *ResourceServerType) *DescribeResourceServerOutput { - s.ResourceServer = v - return s -} - -// Represents the request to describe the user import job. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJobRequest -type DescribeUserImportJobInput struct { +// Represents the request to reset a user's password. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPasswordRequest +type ForgotPasswordInput struct { _ struct{} `type:"structure"` - // The job ID for the user import job. + // The Amazon Pinpoint analytics metadata for collecting metrics for ForgotPassword + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` + + // The ID of the client associated with the user pool. // - // JobId is a required field - JobId *string `min:"1" type:"string" required:"true"` + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` - // The user pool ID for the user pool that the users are being imported into. + // A keyed-hash message authentication code (HMAC) calculated using the secret + // key of a user pool client and username plus the client ID in the message. + SecretHash *string `min:"1" type:"string"` + + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + UserContextData *UserContextDataType `type:"structure"` + + // The user name of the user for whom you want to enter a code to reset a forgotten + // password. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeUserImportJobInput) String() string { +func (s ForgotPasswordInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserImportJobInput) GoString() string { +func (s ForgotPasswordInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserImportJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserImportJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) +func (s *ForgotPasswordInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ForgotPasswordInput"} + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + if s.SecretHash != nil && len(*s.SecretHash) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) } if invalidParams.Len() > 0 { @@ -13886,79 +17054,88 @@ func (s *DescribeUserImportJobInput) Validate() error { return nil } -// SetJobId sets the JobId field's value. -func (s *DescribeUserImportJobInput) SetJobId(v string) *DescribeUserImportJobInput { - s.JobId = &v +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *ForgotPasswordInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *ForgotPasswordInput { + s.AnalyticsMetadata = v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *DescribeUserImportJobInput) SetUserPoolId(v string) *DescribeUserImportJobInput { - s.UserPoolId = &v +// SetClientId sets the ClientId field's value. +func (s *ForgotPasswordInput) SetClientId(v string) *ForgotPasswordInput { + s.ClientId = &v return s } -// Represents the response from the server to the request to describe the user -// import job. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJobResponse -type DescribeUserImportJobOutput struct { +// SetSecretHash sets the SecretHash field's value. +func (s *ForgotPasswordInput) SetSecretHash(v string) *ForgotPasswordInput { + s.SecretHash = &v + return s +} + +// SetUserContextData sets the UserContextData field's value. +func (s *ForgotPasswordInput) SetUserContextData(v *UserContextDataType) *ForgotPasswordInput { + s.UserContextData = v + return s +} + +// SetUsername sets the Username field's value. +func (s *ForgotPasswordInput) SetUsername(v string) *ForgotPasswordInput { + s.Username = &v + return s +} + +// Respresents the response from the server regarding the request to reset a +// password. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPasswordResponse +type ForgotPasswordOutput struct { _ struct{} `type:"structure"` - // The job object that represents the user import job. - UserImportJob *UserImportJobType `type:"structure"` + // The code delivery details returned by the server in response to the request + // to reset a password. + CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` } // String returns the string representation -func (s DescribeUserImportJobOutput) String() string { +func (s ForgotPasswordOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserImportJobOutput) GoString() string { +func (s ForgotPasswordOutput) GoString() string { return s.String() } -// SetUserImportJob sets the UserImportJob field's value. -func (s *DescribeUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *DescribeUserImportJobOutput { - s.UserImportJob = v +// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. +func (s *ForgotPasswordOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ForgotPasswordOutput { + s.CodeDeliveryDetails = v return s } -// Represents the request to describe a user pool client. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClientRequest -type DescribeUserPoolClientInput struct { +// Represents the request to get the header information for the .csv file for +// the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeaderRequest +type GetCSVHeaderInput struct { _ struct{} `type:"structure"` - // The app client ID of the app associated with the user pool. - // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` - - // The user pool ID for the user pool you want to describe. + // The user pool ID for the user pool that the users are to be imported into. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeUserPoolClientInput) String() string { +func (s GetCSVHeaderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserPoolClientInput) GoString() string { +func (s GetCSVHeaderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserPoolClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolClientInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } +func (s *GetCSVHeaderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCSVHeaderInput"} if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -13972,72 +17149,79 @@ func (s *DescribeUserPoolClientInput) Validate() error { return nil } -// SetClientId sets the ClientId field's value. -func (s *DescribeUserPoolClientInput) SetClientId(v string) *DescribeUserPoolClientInput { - s.ClientId = &v - return s -} - // SetUserPoolId sets the UserPoolId field's value. -func (s *DescribeUserPoolClientInput) SetUserPoolId(v string) *DescribeUserPoolClientInput { +func (s *GetCSVHeaderInput) SetUserPoolId(v string) *GetCSVHeaderInput { s.UserPoolId = &v return s } -// Represents the response from the server from a request to describe the user -// pool client. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClientResponse -type DescribeUserPoolClientOutput struct { +// Represents the response from the server to the request to get the header +// information for the .csv file for the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeaderResponse +type GetCSVHeaderOutput struct { _ struct{} `type:"structure"` - // The user pool client from a server response to describe the user pool client. - UserPoolClient *UserPoolClientType `type:"structure"` + // The header information for the .csv file for the user import job. + CSVHeader []*string `type:"list"` + + // The user pool ID for the user pool that the users are to be imported into. + UserPoolId *string `min:"1" type:"string"` } // String returns the string representation -func (s DescribeUserPoolClientOutput) String() string { +func (s GetCSVHeaderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserPoolClientOutput) GoString() string { +func (s GetCSVHeaderOutput) GoString() string { return s.String() } -// SetUserPoolClient sets the UserPoolClient field's value. -func (s *DescribeUserPoolClientOutput) SetUserPoolClient(v *UserPoolClientType) *DescribeUserPoolClientOutput { - s.UserPoolClient = v +// SetCSVHeader sets the CSVHeader field's value. +func (s *GetCSVHeaderOutput) SetCSVHeader(v []*string) *GetCSVHeaderOutput { + s.CSVHeader = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolDomainRequest -type DescribeUserPoolDomainInput struct { +// SetUserPoolId sets the UserPoolId field's value. +func (s *GetCSVHeaderOutput) SetUserPoolId(v string) *GetCSVHeaderOutput { + s.UserPoolId = &v + return s +} + +// Represents the request to get the device. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDeviceRequest +type GetDeviceInput struct { _ struct{} `type:"structure"` - // The domain string. + // The access token. + AccessToken *string `type:"string"` + + // The device key. // - // Domain is a required field - Domain *string `min:"1" type:"string" required:"true"` + // DeviceKey is a required field + DeviceKey *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeUserPoolDomainInput) String() string { +func (s GetDeviceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserPoolDomainInput) GoString() string { +func (s GetDeviceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserPoolDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolDomainInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) +func (s *GetDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"} + if s.DeviceKey == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceKey")) } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) + if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) } if invalidParams.Len() > 0 { @@ -14046,60 +17230,79 @@ func (s *DescribeUserPoolDomainInput) Validate() error { return nil } -// SetDomain sets the Domain field's value. -func (s *DescribeUserPoolDomainInput) SetDomain(v string) *DescribeUserPoolDomainInput { - s.Domain = &v +// SetAccessToken sets the AccessToken field's value. +func (s *GetDeviceInput) SetAccessToken(v string) *GetDeviceInput { + s.AccessToken = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolDomainResponse -type DescribeUserPoolDomainOutput struct { +// SetDeviceKey sets the DeviceKey field's value. +func (s *GetDeviceInput) SetDeviceKey(v string) *GetDeviceInput { + s.DeviceKey = &v + return s +} + +// Gets the device response. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDeviceResponse +type GetDeviceOutput struct { _ struct{} `type:"structure"` - // A domain description object containing information about the domain. - DomainDescription *DomainDescriptionType `type:"structure"` + // The device. + // + // Device is a required field + Device *DeviceType `type:"structure" required:"true"` } // String returns the string representation -func (s DescribeUserPoolDomainOutput) String() string { +func (s GetDeviceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserPoolDomainOutput) GoString() string { +func (s GetDeviceOutput) GoString() string { return s.String() } -// SetDomainDescription sets the DomainDescription field's value. -func (s *DescribeUserPoolDomainOutput) SetDomainDescription(v *DomainDescriptionType) *DescribeUserPoolDomainOutput { - s.DomainDescription = v +// SetDevice sets the Device field's value. +func (s *GetDeviceOutput) SetDevice(v *DeviceType) *GetDeviceOutput { + s.Device = v return s } -// Represents the request to describe the user pool. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolRequest -type DescribeUserPoolInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroupRequest +type GetGroupInput struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool you want to describe. + // The name of the group. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The user pool ID for the user pool. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeUserPoolInput) String() string { +func (s GetGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserPoolInput) GoString() string { +func (s GetGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolInput"} +func (s *GetGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -14113,273 +17316,246 @@ func (s *DescribeUserPoolInput) Validate() error { return nil } -// SetUserPoolId sets the UserPoolId field's value. -func (s *DescribeUserPoolInput) SetUserPoolId(v string) *DescribeUserPoolInput { - s.UserPoolId = &v - return s -} - -// Represents the response to describe the user pool. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolResponse -type DescribeUserPoolOutput struct { - _ struct{} `type:"structure"` - - // The container of metadata returned by the server to describe the pool. - UserPool *UserPoolType `type:"structure"` -} - -// String returns the string representation -func (s DescribeUserPoolOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeUserPoolOutput) GoString() string { - return s.String() -} - -// SetUserPool sets the UserPool field's value. -func (s *DescribeUserPoolOutput) SetUserPool(v *UserPoolType) *DescribeUserPoolOutput { - s.UserPool = v - return s -} - -// The type of configuration for the user pool's device tracking. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceConfigurationType -type DeviceConfigurationType struct { - _ struct{} `type:"structure"` - - // Indicates whether a challenge is required on a new device. Only applicable - // to a new device. - ChallengeRequiredOnNewDevice *bool `type:"boolean"` - - // If true, a device is only remembered on user prompt. - DeviceOnlyRememberedOnUserPrompt *bool `type:"boolean"` -} - -// String returns the string representation -func (s DeviceConfigurationType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeviceConfigurationType) GoString() string { - return s.String() -} - -// SetChallengeRequiredOnNewDevice sets the ChallengeRequiredOnNewDevice field's value. -func (s *DeviceConfigurationType) SetChallengeRequiredOnNewDevice(v bool) *DeviceConfigurationType { - s.ChallengeRequiredOnNewDevice = &v +// SetGroupName sets the GroupName field's value. +func (s *GetGroupInput) SetGroupName(v string) *GetGroupInput { + s.GroupName = &v return s } -// SetDeviceOnlyRememberedOnUserPrompt sets the DeviceOnlyRememberedOnUserPrompt field's value. -func (s *DeviceConfigurationType) SetDeviceOnlyRememberedOnUserPrompt(v bool) *DeviceConfigurationType { - s.DeviceOnlyRememberedOnUserPrompt = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *GetGroupInput) SetUserPoolId(v string) *GetGroupInput { + s.UserPoolId = &v return s } -// The device verifier against which it will be authenticated. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceSecretVerifierConfigType -type DeviceSecretVerifierConfigType struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroupResponse +type GetGroupOutput struct { _ struct{} `type:"structure"` - // The password verifier. - PasswordVerifier *string `type:"string"` - - // The salt. - Salt *string `type:"string"` + // The group object for the group. + Group *GroupType `type:"structure"` } // String returns the string representation -func (s DeviceSecretVerifierConfigType) String() string { +func (s GetGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeviceSecretVerifierConfigType) GoString() string { +func (s GetGroupOutput) GoString() string { return s.String() } -// SetPasswordVerifier sets the PasswordVerifier field's value. -func (s *DeviceSecretVerifierConfigType) SetPasswordVerifier(v string) *DeviceSecretVerifierConfigType { - s.PasswordVerifier = &v - return s -} - -// SetSalt sets the Salt field's value. -func (s *DeviceSecretVerifierConfigType) SetSalt(v string) *DeviceSecretVerifierConfigType { - s.Salt = &v +// SetGroup sets the Group field's value. +func (s *GetGroupOutput) SetGroup(v *GroupType) *GetGroupOutput { + s.Group = v return s } -// The device type. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceType -type DeviceType struct { - _ struct{} `type:"structure"` - - // The device attributes. - DeviceAttributes []*AttributeType `type:"list"` - - // The creation date of the device. - DeviceCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The device key. - DeviceKey *string `min:"1" type:"string"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetIdentityProviderByIdentifierRequest +type GetIdentityProviderByIdentifierInput struct { + _ struct{} `type:"structure"` - // The date in which the device was last authenticated. - DeviceLastAuthenticatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + // The identity provider ID. + // + // IdpIdentifier is a required field + IdpIdentifier *string `min:"1" type:"string" required:"true"` - // The last modified date of the device. - DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + // The user pool ID. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DeviceType) String() string { +func (s GetIdentityProviderByIdentifierInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeviceType) GoString() string { +func (s GetIdentityProviderByIdentifierInput) GoString() string { return s.String() } -// SetDeviceAttributes sets the DeviceAttributes field's value. -func (s *DeviceType) SetDeviceAttributes(v []*AttributeType) *DeviceType { - s.DeviceAttributes = v - return s -} - -// SetDeviceCreateDate sets the DeviceCreateDate field's value. -func (s *DeviceType) SetDeviceCreateDate(v time.Time) *DeviceType { - s.DeviceCreateDate = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetIdentityProviderByIdentifierInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetIdentityProviderByIdentifierInput"} + if s.IdpIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("IdpIdentifier")) + } + if s.IdpIdentifier != nil && len(*s.IdpIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdpIdentifier", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } -// SetDeviceKey sets the DeviceKey field's value. -func (s *DeviceType) SetDeviceKey(v string) *DeviceType { - s.DeviceKey = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetDeviceLastAuthenticatedDate sets the DeviceLastAuthenticatedDate field's value. -func (s *DeviceType) SetDeviceLastAuthenticatedDate(v time.Time) *DeviceType { - s.DeviceLastAuthenticatedDate = &v +// SetIdpIdentifier sets the IdpIdentifier field's value. +func (s *GetIdentityProviderByIdentifierInput) SetIdpIdentifier(v string) *GetIdentityProviderByIdentifierInput { + s.IdpIdentifier = &v return s } -// SetDeviceLastModifiedDate sets the DeviceLastModifiedDate field's value. -func (s *DeviceType) SetDeviceLastModifiedDate(v time.Time) *DeviceType { - s.DeviceLastModifiedDate = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *GetIdentityProviderByIdentifierInput) SetUserPoolId(v string) *GetIdentityProviderByIdentifierInput { + s.UserPoolId = &v return s } -// A container for information about a domain. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DomainDescriptionType -type DomainDescriptionType struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetIdentityProviderByIdentifierResponse +type GetIdentityProviderByIdentifierOutput struct { _ struct{} `type:"structure"` - // The AWS account ID for the user pool owner. - AWSAccountId *string `type:"string"` + // The identity provider object. + // + // IdentityProvider is a required field + IdentityProvider *IdentityProviderType `type:"structure" required:"true"` +} - // The ARN of the CloudFront distribution. - CloudFrontDistribution *string `min:"20" type:"string"` +// String returns the string representation +func (s GetIdentityProviderByIdentifierOutput) String() string { + return awsutil.Prettify(s) +} - // The domain string. - Domain *string `min:"1" type:"string"` +// GoString returns the string representation +func (s GetIdentityProviderByIdentifierOutput) GoString() string { + return s.String() +} - // The S3 bucket where the static files for this domain are stored. - S3Bucket *string `min:"3" type:"string"` +// SetIdentityProvider sets the IdentityProvider field's value. +func (s *GetIdentityProviderByIdentifierOutput) SetIdentityProvider(v *IdentityProviderType) *GetIdentityProviderByIdentifierOutput { + s.IdentityProvider = v + return s +} - // The domain status. - Status *string `type:"string" enum:"DomainStatusType"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUICustomizationRequest +type GetUICustomizationInput struct { + _ struct{} `type:"structure"` - // The user pool ID. - UserPoolId *string `min:"1" type:"string"` + // The client ID for the client app. + ClientId *string `min:"1" type:"string"` - // The app version. - Version *string `min:"1" type:"string"` + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DomainDescriptionType) String() string { +func (s GetUICustomizationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DomainDescriptionType) GoString() string { +func (s GetUICustomizationInput) GoString() string { return s.String() } -// SetAWSAccountId sets the AWSAccountId field's value. -func (s *DomainDescriptionType) SetAWSAccountId(v string) *DomainDescriptionType { - s.AWSAccountId = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetUICustomizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUICustomizationInput"} + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetCloudFrontDistribution sets the CloudFrontDistribution field's value. -func (s *DomainDescriptionType) SetCloudFrontDistribution(v string) *DomainDescriptionType { - s.CloudFrontDistribution = &v +// SetClientId sets the ClientId field's value. +func (s *GetUICustomizationInput) SetClientId(v string) *GetUICustomizationInput { + s.ClientId = &v return s } -// SetDomain sets the Domain field's value. -func (s *DomainDescriptionType) SetDomain(v string) *DomainDescriptionType { - s.Domain = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *GetUICustomizationInput) SetUserPoolId(v string) *GetUICustomizationInput { + s.UserPoolId = &v return s } -// SetS3Bucket sets the S3Bucket field's value. -func (s *DomainDescriptionType) SetS3Bucket(v string) *DomainDescriptionType { - s.S3Bucket = &v - return s +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUICustomizationResponse +type GetUICustomizationOutput struct { + _ struct{} `type:"structure"` + + // The UI customization information. + // + // UICustomization is a required field + UICustomization *UICustomizationType `type:"structure" required:"true"` } -// SetStatus sets the Status field's value. -func (s *DomainDescriptionType) SetStatus(v string) *DomainDescriptionType { - s.Status = &v - return s +// String returns the string representation +func (s GetUICustomizationOutput) String() string { + return awsutil.Prettify(s) } -// SetUserPoolId sets the UserPoolId field's value. -func (s *DomainDescriptionType) SetUserPoolId(v string) *DomainDescriptionType { - s.UserPoolId = &v - return s +// GoString returns the string representation +func (s GetUICustomizationOutput) GoString() string { + return s.String() } -// SetVersion sets the Version field's value. -func (s *DomainDescriptionType) SetVersion(v string) *DomainDescriptionType { - s.Version = &v +// SetUICustomization sets the UICustomization field's value. +func (s *GetUICustomizationOutput) SetUICustomization(v *UICustomizationType) *GetUICustomizationOutput { + s.UICustomization = v return s } -// The email configuration type. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/EmailConfigurationType -type EmailConfigurationType struct { +// Represents the request to get user attribute verification. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCodeRequest +type GetUserAttributeVerificationCodeInput struct { _ struct{} `type:"structure"` - // The REPLY-TO email address. - ReplyToEmailAddress *string `type:"string"` + // The access token returned by the server response to get the user attribute + // verification code. + // + // AccessToken is a required field + AccessToken *string `type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the email source. - SourceArn *string `min:"20" type:"string"` + // The attribute name returned by the server response to get the user attribute + // verification code. + // + // AttributeName is a required field + AttributeName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s EmailConfigurationType) String() string { +func (s GetUserAttributeVerificationCodeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EmailConfigurationType) GoString() string { +func (s GetUserAttributeVerificationCodeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *EmailConfigurationType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EmailConfigurationType"} - if s.SourceArn != nil && len(*s.SourceArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("SourceArn", 20)) +func (s *GetUserAttributeVerificationCodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUserAttributeVerificationCodeInput"} + if s.AccessToken == nil { + invalidParams.Add(request.NewErrParamRequired("AccessToken")) + } + if s.AttributeName == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeName")) + } + if s.AttributeName != nil && len(*s.AttributeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) } if invalidParams.Len() > 0 { @@ -14388,50 +17564,72 @@ func (s *EmailConfigurationType) Validate() error { return nil } -// SetReplyToEmailAddress sets the ReplyToEmailAddress field's value. -func (s *EmailConfigurationType) SetReplyToEmailAddress(v string) *EmailConfigurationType { - s.ReplyToEmailAddress = &v +// SetAccessToken sets the AccessToken field's value. +func (s *GetUserAttributeVerificationCodeInput) SetAccessToken(v string) *GetUserAttributeVerificationCodeInput { + s.AccessToken = &v return s } -// SetSourceArn sets the SourceArn field's value. -func (s *EmailConfigurationType) SetSourceArn(v string) *EmailConfigurationType { - s.SourceArn = &v +// SetAttributeName sets the AttributeName field's value. +func (s *GetUserAttributeVerificationCodeInput) SetAttributeName(v string) *GetUserAttributeVerificationCodeInput { + s.AttributeName = &v return s } -// Represents the request to forget the device. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDeviceRequest -type ForgetDeviceInput struct { +// The verification code response returned by the server response to get the +// user attribute verification code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCodeResponse +type GetUserAttributeVerificationCodeOutput struct { _ struct{} `type:"structure"` - // The access token for the forgotten device request. - AccessToken *string `type:"string"` + // The code delivery details returned by the server in response to the request + // to get the user attribute verification code. + CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` +} + +// String returns the string representation +func (s GetUserAttributeVerificationCodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetUserAttributeVerificationCodeOutput) GoString() string { + return s.String() +} + +// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. +func (s *GetUserAttributeVerificationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *GetUserAttributeVerificationCodeOutput { + s.CodeDeliveryDetails = v + return s +} + +// Represents the request to get information about the user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserRequest +type GetUserInput struct { + _ struct{} `type:"structure"` - // The device key. + // The access token returned by the server response to get information about + // the user. // - // DeviceKey is a required field - DeviceKey *string `min:"1" type:"string" required:"true"` + // AccessToken is a required field + AccessToken *string `type:"string" required:"true"` } // String returns the string representation -func (s ForgetDeviceInput) String() string { +func (s GetUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ForgetDeviceInput) GoString() string { +func (s GetUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ForgetDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ForgetDeviceInput"} - if s.DeviceKey == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceKey")) - } - if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) +func (s *GetUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUserInput"} + if s.AccessToken == nil { + invalidParams.Add(request.NewErrParamRequired("AccessToken")) } if invalidParams.Len() > 0 { @@ -14441,80 +17639,106 @@ func (s *ForgetDeviceInput) Validate() error { } // SetAccessToken sets the AccessToken field's value. -func (s *ForgetDeviceInput) SetAccessToken(v string) *ForgetDeviceInput { +func (s *GetUserInput) SetAccessToken(v string) *GetUserInput { s.AccessToken = &v return s } -// SetDeviceKey sets the DeviceKey field's value. -func (s *ForgetDeviceInput) SetDeviceKey(v string) *ForgetDeviceInput { - s.DeviceKey = &v - return s -} - -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDeviceOutput -type ForgetDeviceOutput struct { +// Represents the response from the server from the request to get information +// about the user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserResponse +type GetUserOutput struct { _ struct{} `type:"structure"` + + // Specifies the options for MFA (e.g., email or phone number). + MFAOptions []*MFAOptionType `type:"list"` + + PreferredMfaSetting *string `type:"string"` + + // An array of name-value pairs representing user attributes. + // + // For custom attributes, you must prepend the custom: prefix to the attribute + // name. + // + // UserAttributes is a required field + UserAttributes []*AttributeType `type:"list" required:"true"` + + UserMFASettingList []*string `type:"list"` + + // The user name of the user you wish to retrieve from the get user request. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ForgetDeviceOutput) String() string { +func (s GetUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ForgetDeviceOutput) GoString() string { +func (s GetUserOutput) GoString() string { return s.String() } -// Represents the request to reset a user's password. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPasswordRequest -type ForgotPasswordInput struct { - _ struct{} `type:"structure"` +// SetMFAOptions sets the MFAOptions field's value. +func (s *GetUserOutput) SetMFAOptions(v []*MFAOptionType) *GetUserOutput { + s.MFAOptions = v + return s +} - // The ID of the client associated with the user pool. - // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` +// SetPreferredMfaSetting sets the PreferredMfaSetting field's value. +func (s *GetUserOutput) SetPreferredMfaSetting(v string) *GetUserOutput { + s.PreferredMfaSetting = &v + return s +} - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` +// SetUserAttributes sets the UserAttributes field's value. +func (s *GetUserOutput) SetUserAttributes(v []*AttributeType) *GetUserOutput { + s.UserAttributes = v + return s +} - // The user name of the user for whom you want to enter a code to reset a forgotten - // password. +// SetUserMFASettingList sets the UserMFASettingList field's value. +func (s *GetUserOutput) SetUserMFASettingList(v []*string) *GetUserOutput { + s.UserMFASettingList = v + return s +} + +// SetUsername sets the Username field's value. +func (s *GetUserOutput) SetUsername(v string) *GetUserOutput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserPoolMfaConfigRequest +type GetUserPoolMfaConfigInput struct { + _ struct{} `type:"structure"` + + // The user pool ID. // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ForgotPasswordInput) String() string { +func (s GetUserPoolMfaConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ForgotPasswordInput) GoString() string { +func (s GetUserPoolMfaConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ForgotPasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ForgotPasswordInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) +func (s *GetUserPoolMfaConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUserPoolMfaConfigInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } if invalidParams.Len() > 0 { @@ -14523,81 +17747,80 @@ func (s *ForgotPasswordInput) Validate() error { return nil } -// SetClientId sets the ClientId field's value. -func (s *ForgotPasswordInput) SetClientId(v string) *ForgotPasswordInput { - s.ClientId = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *GetUserPoolMfaConfigInput) SetUserPoolId(v string) *GetUserPoolMfaConfigInput { + s.UserPoolId = &v return s } -// SetSecretHash sets the SecretHash field's value. -func (s *ForgotPasswordInput) SetSecretHash(v string) *ForgotPasswordInput { - s.SecretHash = &v - return s -} +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserPoolMfaConfigResponse +type GetUserPoolMfaConfigOutput struct { + _ struct{} `type:"structure"` -// SetUsername sets the Username field's value. -func (s *ForgotPasswordInput) SetUsername(v string) *ForgotPasswordInput { - s.Username = &v - return s -} + // The multi-factor (MFA) configuration. + MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` -// Respresents the response from the server regarding the request to reset a -// password. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPasswordResponse -type ForgotPasswordOutput struct { - _ struct{} `type:"structure"` + // The SMS text message multi-factor (MFA) configuration. + SmsMfaConfiguration *SmsMfaConfigType `type:"structure"` - // The code delivery details returned by the server in response to the request - // to reset a password. - CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` + // The software token multi-factor (MFA) configuration. + SoftwareTokenMfaConfiguration *SoftwareTokenMfaConfigType `type:"structure"` } // String returns the string representation -func (s ForgotPasswordOutput) String() string { +func (s GetUserPoolMfaConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ForgotPasswordOutput) GoString() string { +func (s GetUserPoolMfaConfigOutput) GoString() string { return s.String() } -// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. -func (s *ForgotPasswordOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ForgotPasswordOutput { - s.CodeDeliveryDetails = v +// SetMfaConfiguration sets the MfaConfiguration field's value. +func (s *GetUserPoolMfaConfigOutput) SetMfaConfiguration(v string) *GetUserPoolMfaConfigOutput { + s.MfaConfiguration = &v return s } -// Represents the request to get the header information for the .csv file for -// the user import job. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeaderRequest -type GetCSVHeaderInput struct { +// SetSmsMfaConfiguration sets the SmsMfaConfiguration field's value. +func (s *GetUserPoolMfaConfigOutput) SetSmsMfaConfiguration(v *SmsMfaConfigType) *GetUserPoolMfaConfigOutput { + s.SmsMfaConfiguration = v + return s +} + +// SetSoftwareTokenMfaConfiguration sets the SoftwareTokenMfaConfiguration field's value. +func (s *GetUserPoolMfaConfigOutput) SetSoftwareTokenMfaConfiguration(v *SoftwareTokenMfaConfigType) *GetUserPoolMfaConfigOutput { + s.SoftwareTokenMfaConfiguration = v + return s +} + +// Represents the request to sign out all devices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOutRequest +type GlobalSignOutInput struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool that the users are to be imported into. + // The access token. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // AccessToken is a required field + AccessToken *string `type:"string" required:"true"` } // String returns the string representation -func (s GetCSVHeaderInput) String() string { +func (s GlobalSignOutInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCSVHeaderInput) GoString() string { +func (s GlobalSignOutInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetCSVHeaderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCSVHeaderInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) +func (s *GlobalSignOutInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GlobalSignOutInput"} + if s.AccessToken == nil { + invalidParams.Add(request.NewErrParamRequired("AccessToken")) } if invalidParams.Len() > 0 { @@ -14606,248 +17829,327 @@ func (s *GetCSVHeaderInput) Validate() error { return nil } -// SetUserPoolId sets the UserPoolId field's value. -func (s *GetCSVHeaderInput) SetUserPoolId(v string) *GetCSVHeaderInput { - s.UserPoolId = &v +// SetAccessToken sets the AccessToken field's value. +func (s *GlobalSignOutInput) SetAccessToken(v string) *GlobalSignOutInput { + s.AccessToken = &v return s } -// Represents the response from the server to the request to get the header -// information for the .csv file for the user import job. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeaderResponse -type GetCSVHeaderOutput struct { +// The response to the request to sign out all devices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOutResponse +type GlobalSignOutOutput struct { _ struct{} `type:"structure"` +} - // The header information for the .csv file for the user import job. - CSVHeader []*string `type:"list"` +// String returns the string representation +func (s GlobalSignOutOutput) String() string { + return awsutil.Prettify(s) +} - // The user pool ID for the user pool that the users are to be imported into. +// GoString returns the string representation +func (s GlobalSignOutOutput) GoString() string { + return s.String() +} + +// The group type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GroupType +type GroupType struct { + _ struct{} `type:"structure"` + + // The date the group was created. + CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A string containing the description of the group. + Description *string `type:"string"` + + // The name of the group. + GroupName *string `min:"1" type:"string"` + + // The date the group was last modified. + LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A nonnegative integer value that specifies the precedence of this group relative + // to the other groups that a user can belong to in the user pool. If a user + // belongs to two or more groups, it is the group with the highest precedence + // whose role ARN will be used in the cognito:roles and cognito:preferred_role + // claims in the user's tokens. Groups with higher Precedence values take precedence + // over groups with lower Precedence values or with null Precedence values. + // + // Two groups can have the same Precedence value. If this happens, neither group + // takes precedence over the other. If two groups with the same Precedence have + // the same role ARN, that role is used in the cognito:preferred_role claim + // in tokens for users in each group. If the two groups have different role + // ARNs, the cognito:preferred_role claim is not set in users' tokens. + // + // The default Precedence value is null. + Precedence *int64 `type:"integer"` + + // The role ARN for the group. + RoleArn *string `min:"20" type:"string"` + + // The user pool ID for the user pool. UserPoolId *string `min:"1" type:"string"` } // String returns the string representation -func (s GetCSVHeaderOutput) String() string { +func (s GroupType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCSVHeaderOutput) GoString() string { +func (s GroupType) GoString() string { return s.String() } -// SetCSVHeader sets the CSVHeader field's value. -func (s *GetCSVHeaderOutput) SetCSVHeader(v []*string) *GetCSVHeaderOutput { - s.CSVHeader = v +// SetCreationDate sets the CreationDate field's value. +func (s *GroupType) SetCreationDate(v time.Time) *GroupType { + s.CreationDate = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *GetCSVHeaderOutput) SetUserPoolId(v string) *GetCSVHeaderOutput { - s.UserPoolId = &v +// SetDescription sets the Description field's value. +func (s *GroupType) SetDescription(v string) *GroupType { + s.Description = &v return s } -// Represents the request to get the device. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDeviceRequest -type GetDeviceInput struct { - _ struct{} `type:"structure"` - - // The access token. - AccessToken *string `type:"string"` - - // The device key. - // - // DeviceKey is a required field - DeviceKey *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetDeviceInput) String() string { - return awsutil.Prettify(s) +// SetGroupName sets the GroupName field's value. +func (s *GroupType) SetGroupName(v string) *GroupType { + s.GroupName = &v + return s } -// GoString returns the string representation -func (s GetDeviceInput) GoString() string { - return s.String() +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *GroupType) SetLastModifiedDate(v time.Time) *GroupType { + s.LastModifiedDate = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"} - if s.DeviceKey == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceKey")) - } - if s.DeviceKey != nil && len(*s.DeviceKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceKey", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetPrecedence sets the Precedence field's value. +func (s *GroupType) SetPrecedence(v int64) *GroupType { + s.Precedence = &v + return s } -// SetAccessToken sets the AccessToken field's value. -func (s *GetDeviceInput) SetAccessToken(v string) *GetDeviceInput { - s.AccessToken = &v +// SetRoleArn sets the RoleArn field's value. +func (s *GroupType) SetRoleArn(v string) *GroupType { + s.RoleArn = &v return s } -// SetDeviceKey sets the DeviceKey field's value. -func (s *GetDeviceInput) SetDeviceKey(v string) *GetDeviceInput { - s.DeviceKey = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *GroupType) SetUserPoolId(v string) *GroupType { + s.UserPoolId = &v return s } -// Gets the device response. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDeviceResponse -type GetDeviceOutput struct { +// The HTTP header. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/HttpHeader +type HttpHeader struct { _ struct{} `type:"structure"` - // The device. - // - // Device is a required field - Device *DeviceType `type:"structure" required:"true"` + // The header name + HeaderName *string `locationName:"headerName" type:"string"` + + // The header value. + HeaderValue *string `locationName:"headerValue" type:"string"` } // String returns the string representation -func (s GetDeviceOutput) String() string { +func (s HttpHeader) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeviceOutput) GoString() string { +func (s HttpHeader) GoString() string { return s.String() } -// SetDevice sets the Device field's value. -func (s *GetDeviceOutput) SetDevice(v *DeviceType) *GetDeviceOutput { - s.Device = v +// SetHeaderName sets the HeaderName field's value. +func (s *HttpHeader) SetHeaderName(v string) *HttpHeader { + s.HeaderName = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroupRequest -type GetGroupInput struct { +// SetHeaderValue sets the HeaderValue field's value. +func (s *HttpHeader) SetHeaderValue(v string) *HttpHeader { + s.HeaderValue = &v + return s +} + +// A container for information about an identity provider. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/IdentityProviderType +type IdentityProviderType struct { _ struct{} `type:"structure"` - // The name of the group. - // - // GroupName is a required field - GroupName *string `min:"1" type:"string" required:"true"` + // A mapping of identity provider attributes to standard and custom user pool + // attributes. + AttributeMapping map[string]*string `type:"map"` - // The user pool ID for the user pool. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // The date the identity provider was created. + CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A list of identity provider identifiers. + IdpIdentifiers []*string `type:"list"` + + // The date the identity provider was last modified. + LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The identity provider details, such as MetadataURL and MetadataFile. + ProviderDetails map[string]*string `type:"map"` + + // The identity provider name. + ProviderName *string `min:"1" type:"string"` + + // The identity provider type. + ProviderType *string `type:"string" enum:"IdentityProviderTypeType"` + + // The user pool ID. + UserPoolId *string `min:"1" type:"string"` } // String returns the string representation -func (s GetGroupInput) String() string { +func (s IdentityProviderType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetGroupInput) GoString() string { +func (s IdentityProviderType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAttributeMapping sets the AttributeMapping field's value. +func (s *IdentityProviderType) SetAttributeMapping(v map[string]*string) *IdentityProviderType { + s.AttributeMapping = v + return s } -// SetGroupName sets the GroupName field's value. -func (s *GetGroupInput) SetGroupName(v string) *GetGroupInput { - s.GroupName = &v +// SetCreationDate sets the CreationDate field's value. +func (s *IdentityProviderType) SetCreationDate(v time.Time) *IdentityProviderType { + s.CreationDate = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *GetGroupInput) SetUserPoolId(v string) *GetGroupInput { - s.UserPoolId = &v +// SetIdpIdentifiers sets the IdpIdentifiers field's value. +func (s *IdentityProviderType) SetIdpIdentifiers(v []*string) *IdentityProviderType { + s.IdpIdentifiers = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroupResponse -type GetGroupOutput struct { - _ struct{} `type:"structure"` +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *IdentityProviderType) SetLastModifiedDate(v time.Time) *IdentityProviderType { + s.LastModifiedDate = &v + return s +} - // The group object for the group. - Group *GroupType `type:"structure"` +// SetProviderDetails sets the ProviderDetails field's value. +func (s *IdentityProviderType) SetProviderDetails(v map[string]*string) *IdentityProviderType { + s.ProviderDetails = v + return s } -// String returns the string representation -func (s GetGroupOutput) String() string { - return awsutil.Prettify(s) +// SetProviderName sets the ProviderName field's value. +func (s *IdentityProviderType) SetProviderName(v string) *IdentityProviderType { + s.ProviderName = &v + return s } -// GoString returns the string representation -func (s GetGroupOutput) GoString() string { - return s.String() +// SetProviderType sets the ProviderType field's value. +func (s *IdentityProviderType) SetProviderType(v string) *IdentityProviderType { + s.ProviderType = &v + return s } -// SetGroup sets the Group field's value. -func (s *GetGroupOutput) SetGroup(v *GroupType) *GetGroupOutput { - s.Group = v +// SetUserPoolId sets the UserPoolId field's value. +func (s *IdentityProviderType) SetUserPoolId(v string) *IdentityProviderType { + s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetIdentityProviderByIdentifierRequest -type GetIdentityProviderByIdentifierInput struct { +// Initiates the authentication request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/InitiateAuthRequest +type InitiateAuthInput struct { _ struct{} `type:"structure"` - // The identity provider ID. + // The Amazon Pinpoint analytics metadata for collecting metrics for InitiateAuth + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` + + // The authentication flow for this call to execute. The API action will depend + // on this value. For example: // - // IdpIdentifier is a required field - IdpIdentifier *string `min:"1" type:"string" required:"true"` + // * REFRESH_TOKEN_AUTH will take in a valid refresh token and return new + // tokens. + // + // * USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables + // to be used for next challenge execution. + // + // Valid values include: + // + // * USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) + // protocol. + // + // * REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing + // the access token and ID token by supplying a valid refresh token. + // + // * CUSTOM_AUTH: Custom authentication flow. + // + // ADMIN_NO_SRP_AUTH is not a valid value. + // + // AuthFlow is a required field + AuthFlow *string `type:"string" required:"true" enum:"AuthFlowType"` - // The user pool ID. + // The authentication parameters. These are inputs corresponding to the AuthFlow + // that you are invoking. The required values depend on the value of AuthFlow: // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // * For USER_SRP_AUTH: USERNAME (required), SRP_A (required), SECRET_HASH + // (required if the app client is configured with a client secret), DEVICE_KEY + // + // * For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required), SECRET_HASH + // (required if the app client is configured with a client secret), REFRESH_TOKEN + // (required), DEVICE_KEY + // + // * For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is + // configured with client secret), DEVICE_KEY + AuthParameters map[string]*string `type:"map"` + + // The app client ID. + // + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` + + // This is a random key-value pair map which can contain any key and will be + // passed to your PreAuthentication Lambda trigger as-is. It can be used to + // implement additional validations around authentication. + ClientMetadata map[string]*string `type:"map"` + + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + UserContextData *UserContextDataType `type:"structure"` } // String returns the string representation -func (s GetIdentityProviderByIdentifierInput) String() string { +func (s InitiateAuthInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetIdentityProviderByIdentifierInput) GoString() string { +func (s InitiateAuthInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdentityProviderByIdentifierInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdentityProviderByIdentifierInput"} - if s.IdpIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("IdpIdentifier")) - } - if s.IdpIdentifier != nil && len(*s.IdpIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdpIdentifier", 1)) +func (s *InitiateAuthInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InitiateAuthInput"} + if s.AuthFlow == nil { + invalidParams.Add(request.NewErrParamRequired("AuthFlow")) } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } if invalidParams.Len() > 0 { @@ -14856,238 +18158,301 @@ func (s *GetIdentityProviderByIdentifierInput) Validate() error { return nil } -// SetIdpIdentifier sets the IdpIdentifier field's value. -func (s *GetIdentityProviderByIdentifierInput) SetIdpIdentifier(v string) *GetIdentityProviderByIdentifierInput { - s.IdpIdentifier = &v +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *InitiateAuthInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *InitiateAuthInput { + s.AnalyticsMetadata = v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *GetIdentityProviderByIdentifierInput) SetUserPoolId(v string) *GetIdentityProviderByIdentifierInput { - s.UserPoolId = &v +// SetAuthFlow sets the AuthFlow field's value. +func (s *InitiateAuthInput) SetAuthFlow(v string) *InitiateAuthInput { + s.AuthFlow = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetIdentityProviderByIdentifierResponse -type GetIdentityProviderByIdentifierOutput struct { - _ struct{} `type:"structure"` - - // The identity provider object. - // - // IdentityProvider is a required field - IdentityProvider *IdentityProviderType `type:"structure" required:"true"` +// SetAuthParameters sets the AuthParameters field's value. +func (s *InitiateAuthInput) SetAuthParameters(v map[string]*string) *InitiateAuthInput { + s.AuthParameters = v + return s } -// String returns the string representation -func (s GetIdentityProviderByIdentifierOutput) String() string { - return awsutil.Prettify(s) +// SetClientId sets the ClientId field's value. +func (s *InitiateAuthInput) SetClientId(v string) *InitiateAuthInput { + s.ClientId = &v + return s } -// GoString returns the string representation -func (s GetIdentityProviderByIdentifierOutput) GoString() string { - return s.String() +// SetClientMetadata sets the ClientMetadata field's value. +func (s *InitiateAuthInput) SetClientMetadata(v map[string]*string) *InitiateAuthInput { + s.ClientMetadata = v + return s } -// SetIdentityProvider sets the IdentityProvider field's value. -func (s *GetIdentityProviderByIdentifierOutput) SetIdentityProvider(v *IdentityProviderType) *GetIdentityProviderByIdentifierOutput { - s.IdentityProvider = v +// SetUserContextData sets the UserContextData field's value. +func (s *InitiateAuthInput) SetUserContextData(v *UserContextDataType) *InitiateAuthInput { + s.UserContextData = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUICustomizationRequest -type GetUICustomizationInput struct { +// Initiates the authentication response. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/InitiateAuthResponse +type InitiateAuthOutput struct { _ struct{} `type:"structure"` - // The client ID for the client app. - ClientId *string `min:"1" type:"string"` + // The result of the authentication response. This is only returned if the caller + // does not need to pass another challenge. If the caller does need to pass + // another challenge before it gets tokens, ChallengeName, ChallengeParameters, + // and Session are returned. + AuthenticationResult *AuthenticationResultType `type:"structure"` - // The user pool ID for the user pool. + // The name of the challenge which you are responding to with this call. This + // is returned to you in the AdminInitiateAuth response if you need to pass + // another challenge. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // Valid values include the following. Note that all of these challenges require + // USERNAME and SECRET_HASH (if applicable) in the parameters. + // + // * SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via + // SMS. + // + // * PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, + // PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations. + // + // * CUSTOM_CHALLENGE: This is returned if your custom authentication flow + // determines that the user should pass another challenge before tokens are + // issued. + // + // * DEVICE_SRP_AUTH: If device tracking was enabled on your user pool and + // the previous challenges were passed, this challenge is returned so that + // Amazon Cognito can start tracking this device. + // + // * DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices + // only. + // + // * NEW_PASSWORD_REQUIRED: For users which are required to change their + // passwords after successful first login. This challenge should be passed + // with NEW_PASSWORD and any other required attributes. + ChallengeName *string `type:"string" enum:"ChallengeNameType"` + + // The challenge parameters. These are returned to you in the InitiateAuth response + // if you need to pass another challenge. The responses in this parameter should + // be used to compute inputs to the next call (RespondToAuthChallenge). + // + // All challenges require USERNAME and SECRET_HASH (if applicable). + ChallengeParameters map[string]*string `type:"map"` + + // The session which should be passed both ways in challenge-response calls + // to the service. If the or API call determines that the caller needs to go + // through another challenge, they return a session with other challenge parameters. + // This session should be passed as it is to the next RespondToAuthChallenge + // API call. + Session *string `min:"20" type:"string"` } // String returns the string representation -func (s GetUICustomizationInput) String() string { +func (s InitiateAuthOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetUICustomizationInput) GoString() string { +func (s InitiateAuthOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetUICustomizationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUICustomizationInput"} - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } +// SetAuthenticationResult sets the AuthenticationResult field's value. +func (s *InitiateAuthOutput) SetAuthenticationResult(v *AuthenticationResultType) *InitiateAuthOutput { + s.AuthenticationResult = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetChallengeName sets the ChallengeName field's value. +func (s *InitiateAuthOutput) SetChallengeName(v string) *InitiateAuthOutput { + s.ChallengeName = &v + return s } -// SetClientId sets the ClientId field's value. -func (s *GetUICustomizationInput) SetClientId(v string) *GetUICustomizationInput { - s.ClientId = &v +// SetChallengeParameters sets the ChallengeParameters field's value. +func (s *InitiateAuthOutput) SetChallengeParameters(v map[string]*string) *InitiateAuthOutput { + s.ChallengeParameters = v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *GetUICustomizationInput) SetUserPoolId(v string) *GetUICustomizationInput { - s.UserPoolId = &v +// SetSession sets the Session field's value. +func (s *InitiateAuthOutput) SetSession(v string) *InitiateAuthOutput { + s.Session = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUICustomizationResponse -type GetUICustomizationOutput struct { +// Specifies the configuration for AWS Lambda triggers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LambdaConfigType +type LambdaConfigType struct { _ struct{} `type:"structure"` - // The UI customization information. - // - // UICustomization is a required field - UICustomization *UICustomizationType `type:"structure" required:"true"` -} + // Creates an authentication challenge. + CreateAuthChallenge *string `min:"20" type:"string"` -// String returns the string representation -func (s GetUICustomizationOutput) String() string { - return awsutil.Prettify(s) -} + // A custom Message AWS Lambda trigger. + CustomMessage *string `min:"20" type:"string"` -// GoString returns the string representation -func (s GetUICustomizationOutput) GoString() string { - return s.String() -} + // Defines the authentication challenge. + DefineAuthChallenge *string `min:"20" type:"string"` -// SetUICustomization sets the UICustomization field's value. -func (s *GetUICustomizationOutput) SetUICustomization(v *UICustomizationType) *GetUICustomizationOutput { - s.UICustomization = v - return s -} + // A post-authentication AWS Lambda trigger. + PostAuthentication *string `min:"20" type:"string"` -// Represents the request to get user attribute verification. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCodeRequest -type GetUserAttributeVerificationCodeInput struct { - _ struct{} `type:"structure"` + // A post-confirmation AWS Lambda trigger. + PostConfirmation *string `min:"20" type:"string"` - // The access token returned by the server response to get the user attribute - // verification code. - // - // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + // A pre-authentication AWS Lambda trigger. + PreAuthentication *string `min:"20" type:"string"` - // The attribute name returned by the server response to get the user attribute - // verification code. - // - // AttributeName is a required field - AttributeName *string `min:"1" type:"string" required:"true"` + // A pre-registration AWS Lambda trigger. + PreSignUp *string `min:"20" type:"string"` + + // A Lambda trigger that is invoked before token generation. + PreTokenGeneration *string `min:"20" type:"string"` + + // Verifies the authentication challenge response. + VerifyAuthChallengeResponse *string `min:"20" type:"string"` } // String returns the string representation -func (s GetUserAttributeVerificationCodeInput) String() string { +func (s LambdaConfigType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetUserAttributeVerificationCodeInput) GoString() string { +func (s LambdaConfigType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetUserAttributeVerificationCodeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUserAttributeVerificationCodeInput"} - if s.AccessToken == nil { - invalidParams.Add(request.NewErrParamRequired("AccessToken")) +func (s *LambdaConfigType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LambdaConfigType"} + if s.CreateAuthChallenge != nil && len(*s.CreateAuthChallenge) < 20 { + invalidParams.Add(request.NewErrParamMinLen("CreateAuthChallenge", 20)) } - if s.AttributeName == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeName")) + if s.CustomMessage != nil && len(*s.CustomMessage) < 20 { + invalidParams.Add(request.NewErrParamMinLen("CustomMessage", 20)) } - if s.AttributeName != nil && len(*s.AttributeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) + if s.DefineAuthChallenge != nil && len(*s.DefineAuthChallenge) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DefineAuthChallenge", 20)) + } + if s.PostAuthentication != nil && len(*s.PostAuthentication) < 20 { + invalidParams.Add(request.NewErrParamMinLen("PostAuthentication", 20)) + } + if s.PostConfirmation != nil && len(*s.PostConfirmation) < 20 { + invalidParams.Add(request.NewErrParamMinLen("PostConfirmation", 20)) + } + if s.PreAuthentication != nil && len(*s.PreAuthentication) < 20 { + invalidParams.Add(request.NewErrParamMinLen("PreAuthentication", 20)) + } + if s.PreSignUp != nil && len(*s.PreSignUp) < 20 { + invalidParams.Add(request.NewErrParamMinLen("PreSignUp", 20)) + } + if s.PreTokenGeneration != nil && len(*s.PreTokenGeneration) < 20 { + invalidParams.Add(request.NewErrParamMinLen("PreTokenGeneration", 20)) + } + if s.VerifyAuthChallengeResponse != nil && len(*s.VerifyAuthChallengeResponse) < 20 { + invalidParams.Add(request.NewErrParamMinLen("VerifyAuthChallengeResponse", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} + +// SetCreateAuthChallenge sets the CreateAuthChallenge field's value. +func (s *LambdaConfigType) SetCreateAuthChallenge(v string) *LambdaConfigType { + s.CreateAuthChallenge = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCustomMessage sets the CustomMessage field's value. +func (s *LambdaConfigType) SetCustomMessage(v string) *LambdaConfigType { + s.CustomMessage = &v + return s } -// SetAccessToken sets the AccessToken field's value. -func (s *GetUserAttributeVerificationCodeInput) SetAccessToken(v string) *GetUserAttributeVerificationCodeInput { - s.AccessToken = &v +// SetDefineAuthChallenge sets the DefineAuthChallenge field's value. +func (s *LambdaConfigType) SetDefineAuthChallenge(v string) *LambdaConfigType { + s.DefineAuthChallenge = &v return s } -// SetAttributeName sets the AttributeName field's value. -func (s *GetUserAttributeVerificationCodeInput) SetAttributeName(v string) *GetUserAttributeVerificationCodeInput { - s.AttributeName = &v +// SetPostAuthentication sets the PostAuthentication field's value. +func (s *LambdaConfigType) SetPostAuthentication(v string) *LambdaConfigType { + s.PostAuthentication = &v return s } -// The verification code response returned by the server response to get the -// user attribute verification code. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCodeResponse -type GetUserAttributeVerificationCodeOutput struct { - _ struct{} `type:"structure"` +// SetPostConfirmation sets the PostConfirmation field's value. +func (s *LambdaConfigType) SetPostConfirmation(v string) *LambdaConfigType { + s.PostConfirmation = &v + return s +} - // The code delivery details returned by the server in response to the request - // to get the user attribute verification code. - CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` +// SetPreAuthentication sets the PreAuthentication field's value. +func (s *LambdaConfigType) SetPreAuthentication(v string) *LambdaConfigType { + s.PreAuthentication = &v + return s } -// String returns the string representation -func (s GetUserAttributeVerificationCodeOutput) String() string { - return awsutil.Prettify(s) +// SetPreSignUp sets the PreSignUp field's value. +func (s *LambdaConfigType) SetPreSignUp(v string) *LambdaConfigType { + s.PreSignUp = &v + return s } -// GoString returns the string representation -func (s GetUserAttributeVerificationCodeOutput) GoString() string { - return s.String() +// SetPreTokenGeneration sets the PreTokenGeneration field's value. +func (s *LambdaConfigType) SetPreTokenGeneration(v string) *LambdaConfigType { + s.PreTokenGeneration = &v + return s } -// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. -func (s *GetUserAttributeVerificationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *GetUserAttributeVerificationCodeOutput { - s.CodeDeliveryDetails = v +// SetVerifyAuthChallengeResponse sets the VerifyAuthChallengeResponse field's value. +func (s *LambdaConfigType) SetVerifyAuthChallengeResponse(v string) *LambdaConfigType { + s.VerifyAuthChallengeResponse = &v return s } -// Represents the request to get information about the user. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserRequest -type GetUserInput struct { +// Represents the request to list the devices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevicesRequest +type ListDevicesInput struct { _ struct{} `type:"structure"` - // The access token returned by the server response to get information about - // the user. + // The access tokens for the request to list devices. // // AccessToken is a required field AccessToken *string `type:"string" required:"true"` + + // The limit of the device request. + Limit *int64 `type:"integer"` + + // The pagination token for the list request. + PaginationToken *string `min:"1" type:"string"` } // String returns the string representation -func (s GetUserInput) String() string { +func (s ListDevicesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetUserInput) GoString() string { +func (s ListDevicesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUserInput"} +func (s *ListDevicesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"} if s.AccessToken == nil { invalidParams.Add(request.NewErrParamRequired("AccessToken")) } + if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15096,88 +18461,95 @@ func (s *GetUserInput) Validate() error { } // SetAccessToken sets the AccessToken field's value. -func (s *GetUserInput) SetAccessToken(v string) *GetUserInput { +func (s *ListDevicesInput) SetAccessToken(v string) *ListDevicesInput { s.AccessToken = &v return s } -// Represents the response from the server from the request to get information -// about the user. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserResponse -type GetUserOutput struct { - _ struct{} `type:"structure"` +// SetLimit sets the Limit field's value. +func (s *ListDevicesInput) SetLimit(v int64) *ListDevicesInput { + s.Limit = &v + return s +} - // Specifies the options for MFA (e.g., email or phone number). - MFAOptions []*MFAOptionType `type:"list"` +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListDevicesInput) SetPaginationToken(v string) *ListDevicesInput { + s.PaginationToken = &v + return s +} - // An array of name-value pairs representing user attributes. - // - // For custom attributes, you must prepend the custom: prefix to the attribute - // name. - // - // UserAttributes is a required field - UserAttributes []*AttributeType `type:"list" required:"true"` +// Represents the response to list devices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevicesResponse +type ListDevicesOutput struct { + _ struct{} `type:"structure"` - // The user name of the user you wish to retrieve from the get user request. - // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // The devices returned in the list devices response. + Devices []*DeviceType `type:"list"` + + // The pagination token for the list device response. + PaginationToken *string `min:"1" type:"string"` } // String returns the string representation -func (s GetUserOutput) String() string { +func (s ListDevicesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetUserOutput) GoString() string { +func (s ListDevicesOutput) GoString() string { return s.String() } -// SetMFAOptions sets the MFAOptions field's value. -func (s *GetUserOutput) SetMFAOptions(v []*MFAOptionType) *GetUserOutput { - s.MFAOptions = v - return s -} - -// SetUserAttributes sets the UserAttributes field's value. -func (s *GetUserOutput) SetUserAttributes(v []*AttributeType) *GetUserOutput { - s.UserAttributes = v +// SetDevices sets the Devices field's value. +func (s *ListDevicesOutput) SetDevices(v []*DeviceType) *ListDevicesOutput { + s.Devices = v return s } -// SetUsername sets the Username field's value. -func (s *GetUserOutput) SetUsername(v string) *GetUserOutput { - s.Username = &v +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListDevicesOutput) SetPaginationToken(v string) *ListDevicesOutput { + s.PaginationToken = &v return s } -// Represents the request to sign out all devices. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOutRequest -type GlobalSignOutInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroupsRequest +type ListGroupsInput struct { _ struct{} `type:"structure"` - // The access token. + // The limit of the request to list groups. + Limit *int64 `type:"integer"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` + + // The user pool ID for the user pool. // - // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GlobalSignOutInput) String() string { +func (s ListGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GlobalSignOutInput) GoString() string { +func (s ListGroupsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GlobalSignOutInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GlobalSignOutInput"} - if s.AccessToken == nil { - invalidParams.Add(request.NewErrParamRequired("AccessToken")) +func (s *ListGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } if invalidParams.Len() > 0 { @@ -15186,284 +18558,307 @@ func (s *GlobalSignOutInput) Validate() error { return nil } -// SetAccessToken sets the AccessToken field's value. -func (s *GlobalSignOutInput) SetAccessToken(v string) *GlobalSignOutInput { - s.AccessToken = &v +// SetLimit sets the Limit field's value. +func (s *ListGroupsInput) SetLimit(v int64) *ListGroupsInput { + s.Limit = &v return s } -// The response to the request to sign out all devices. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOutResponse -type GlobalSignOutOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { + s.NextToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListGroupsInput) SetUserPoolId(v string) *ListGroupsInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroupsResponse +type ListGroupsOutput struct { _ struct{} `type:"structure"` + + // The group objects for the groups. + Groups []*GroupType `type:"list"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s GlobalSignOutOutput) String() string { +func (s ListGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GlobalSignOutOutput) GoString() string { +func (s ListGroupsOutput) GoString() string { return s.String() } -// The group type. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GroupType -type GroupType struct { - _ struct{} `type:"structure"` - - // The date the group was created. - CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // A string containing the description of the group. - Description *string `type:"string"` - - // The name of the group. - GroupName *string `min:"1" type:"string"` +// SetGroups sets the Groups field's value. +func (s *ListGroupsOutput) SetGroups(v []*GroupType) *ListGroupsOutput { + s.Groups = v + return s +} - // The date the group was last modified. - LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetNextToken sets the NextToken field's value. +func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { + s.NextToken = &v + return s +} - // A nonnegative integer value that specifies the precedence of this group relative - // to the other groups that a user can belong to in the user pool. If a user - // belongs to two or more groups, it is the group with the highest precedence - // whose role ARN will be used in the cognito:roles and cognito:preferred_role - // claims in the user's tokens. Groups with higher Precedence values take precedence - // over groups with lower Precedence values or with null Precedence values. - // - // Two groups can have the same Precedence value. If this happens, neither group - // takes precedence over the other. If two groups with the same Precedence have - // the same role ARN, that role is used in the cognito:preferred_role claim - // in tokens for users in each group. If the two groups have different role - // ARNs, the cognito:preferred_role claim is not set in users' tokens. - // - // The default Precedence value is null. - Precedence *int64 `type:"integer"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListIdentityProvidersRequest +type ListIdentityProvidersInput struct { + _ struct{} `type:"structure"` - // The role ARN for the group. - RoleArn *string `min:"20" type:"string"` + // The maximum number of identity providers to return. + MaxResults *int64 `min:"1" type:"integer"` - // The user pool ID for the user pool. - UserPoolId *string `min:"1" type:"string"` + // A pagination token. + NextToken *string `min:"1" type:"string"` + + // The user pool ID. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GroupType) String() string { +func (s ListIdentityProvidersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GroupType) GoString() string { +func (s ListIdentityProvidersInput) GoString() string { return s.String() } -// SetCreationDate sets the CreationDate field's value. -func (s *GroupType) SetCreationDate(v time.Time) *GroupType { - s.CreationDate = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *GroupType) SetDescription(v string) *GroupType { - s.Description = &v - return s -} - -// SetGroupName sets the GroupName field's value. -func (s *GroupType) SetGroupName(v string) *GroupType { - s.GroupName = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListIdentityProvidersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListIdentityProvidersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } -// SetLastModifiedDate sets the LastModifiedDate field's value. -func (s *GroupType) SetLastModifiedDate(v time.Time) *GroupType { - s.LastModifiedDate = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetPrecedence sets the Precedence field's value. -func (s *GroupType) SetPrecedence(v int64) *GroupType { - s.Precedence = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListIdentityProvidersInput) SetMaxResults(v int64) *ListIdentityProvidersInput { + s.MaxResults = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *GroupType) SetRoleArn(v string) *GroupType { - s.RoleArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListIdentityProvidersInput) SetNextToken(v string) *ListIdentityProvidersInput { + s.NextToken = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *GroupType) SetUserPoolId(v string) *GroupType { +func (s *ListIdentityProvidersInput) SetUserPoolId(v string) *ListIdentityProvidersInput { s.UserPoolId = &v return s } -// A container for information about an identity provider. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/IdentityProviderType -type IdentityProviderType struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListIdentityProvidersResponse +type ListIdentityProvidersOutput struct { _ struct{} `type:"structure"` - // A mapping of identity provider attributes to standard and custom user pool - // attributes. - AttributeMapping map[string]*string `type:"map"` - - // The date the identity provider was created. - CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // A list of identity provider identifiers. - IdpIdentifiers []*string `type:"list"` - - // The date the identity provider was last modified. - LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The identity provider details, such as MetadataURL and MetadataFile. - ProviderDetails map[string]*string `type:"map"` - - // The identity provider name. - ProviderName *string `min:"1" type:"string"` - - // The identity provider type. - ProviderType *string `type:"string" enum:"IdentityProviderTypeType"` + // A pagination token. + NextToken *string `min:"1" type:"string"` - // The user pool ID. - UserPoolId *string `min:"1" type:"string"` + // A list of identity provider objects. + // + // Providers is a required field + Providers []*ProviderDescription `type:"list" required:"true"` } // String returns the string representation -func (s IdentityProviderType) String() string { +func (s ListIdentityProvidersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IdentityProviderType) GoString() string { +func (s ListIdentityProvidersOutput) GoString() string { return s.String() } -// SetAttributeMapping sets the AttributeMapping field's value. -func (s *IdentityProviderType) SetAttributeMapping(v map[string]*string) *IdentityProviderType { - s.AttributeMapping = v +// SetNextToken sets the NextToken field's value. +func (s *ListIdentityProvidersOutput) SetNextToken(v string) *ListIdentityProvidersOutput { + s.NextToken = &v return s } -// SetCreationDate sets the CreationDate field's value. -func (s *IdentityProviderType) SetCreationDate(v time.Time) *IdentityProviderType { - s.CreationDate = &v +// SetProviders sets the Providers field's value. +func (s *ListIdentityProvidersOutput) SetProviders(v []*ProviderDescription) *ListIdentityProvidersOutput { + s.Providers = v return s } -// SetIdpIdentifiers sets the IdpIdentifiers field's value. -func (s *IdentityProviderType) SetIdpIdentifiers(v []*string) *IdentityProviderType { - s.IdpIdentifiers = v - return s +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListResourceServersRequest +type ListResourceServersInput struct { + _ struct{} `type:"structure"` + + // The maximum number of resource servers to return. + MaxResults *int64 `min:"1" type:"integer"` + + // A pagination token. + NextToken *string `min:"1" type:"string"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } -// SetLastModifiedDate sets the LastModifiedDate field's value. -func (s *IdentityProviderType) SetLastModifiedDate(v time.Time) *IdentityProviderType { - s.LastModifiedDate = &v - return s +// String returns the string representation +func (s ListResourceServersInput) String() string { + return awsutil.Prettify(s) } -// SetProviderDetails sets the ProviderDetails field's value. -func (s *IdentityProviderType) SetProviderDetails(v map[string]*string) *IdentityProviderType { - s.ProviderDetails = v - return s +// GoString returns the string representation +func (s ListResourceServersInput) GoString() string { + return s.String() } -// SetProviderName sets the ProviderName field's value. -func (s *IdentityProviderType) SetProviderName(v string) *IdentityProviderType { - s.ProviderName = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResourceServersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResourceServersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResourceServersInput) SetMaxResults(v int64) *ListResourceServersInput { + s.MaxResults = &v return s } -// SetProviderType sets the ProviderType field's value. -func (s *IdentityProviderType) SetProviderType(v string) *IdentityProviderType { - s.ProviderType = &v +// SetNextToken sets the NextToken field's value. +func (s *ListResourceServersInput) SetNextToken(v string) *ListResourceServersInput { + s.NextToken = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *IdentityProviderType) SetUserPoolId(v string) *IdentityProviderType { +func (s *ListResourceServersInput) SetUserPoolId(v string) *ListResourceServersInput { s.UserPoolId = &v return s } -// Initiates the authentication request. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/InitiateAuthRequest -type InitiateAuthInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListResourceServersResponse +type ListResourceServersOutput struct { _ struct{} `type:"structure"` - // The authentication flow for this call to execute. The API action will depend - // on this value. For example: - // - // * REFRESH_TOKEN_AUTH will take in a valid refresh token and return new - // tokens. - // - // * USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables - // to be used for next challenge execution. - // - // Valid values include: - // - // * USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) - // protocol. - // - // * REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing - // the access token and ID token by supplying a valid refresh token. - // - // * CUSTOM_AUTH: Custom authentication flow. - // - // ADMIN_NO_SRP_AUTH is not a valid value. - // - // AuthFlow is a required field - AuthFlow *string `type:"string" required:"true" enum:"AuthFlowType"` + // A pagination token. + NextToken *string `min:"1" type:"string"` - // The authentication parameters. These are inputs corresponding to the AuthFlow - // that you are invoking. The required values depend on the value of AuthFlow: - // - // * For USER_SRP_AUTH: USERNAME (required), SRP_A (required), SECRET_HASH - // (required if the app client is configured with a client secret), DEVICE_KEY - // - // * For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required), SECRET_HASH - // (required if the app client is configured with a client secret), REFRESH_TOKEN - // (required), DEVICE_KEY + // The resource servers. // - // * For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is - // configured with client secret), DEVICE_KEY - AuthParameters map[string]*string `type:"map"` + // ResourceServers is a required field + ResourceServers []*ResourceServerType `type:"list" required:"true"` +} + +// String returns the string representation +func (s ListResourceServersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourceServersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResourceServersOutput) SetNextToken(v string) *ListResourceServersOutput { + s.NextToken = &v + return s +} + +// SetResourceServers sets the ResourceServers field's value. +func (s *ListResourceServersOutput) SetResourceServers(v []*ResourceServerType) *ListResourceServersOutput { + s.ResourceServers = v + return s +} - // The app client ID. +// Represents the request to list the user import jobs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobsRequest +type ListUserImportJobsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of import jobs you want the request to return. // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + // MaxResults is a required field + MaxResults *int64 `min:"1" type:"integer" required:"true"` - // This is a random key-value pair map which can contain any key and will be - // passed to your PreAuthentication Lambda trigger as-is. It can be used to - // implement additional validations around authentication. - ClientMetadata map[string]*string `type:"map"` + // An identifier that was returned from the previous call to ListUserImportJobs, + // which can be used to return the next set of import jobs in the list. + PaginationToken *string `min:"1" type:"string"` + + // The user pool ID for the user pool that the users are being imported into. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s InitiateAuthInput) String() string { +func (s ListUserImportJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InitiateAuthInput) GoString() string { +func (s ListUserImportJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *InitiateAuthInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InitiateAuthInput"} - if s.AuthFlow == nil { - invalidParams.Add(request.NewErrParamRequired("AuthFlow")) +func (s *ListUserImportJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUserImportJobsInput"} + if s.MaxResults == nil { + invalidParams.Add(request.NewErrParamRequired("MaxResults")) } - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) + if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } if invalidParams.Len() > 0 { @@ -15472,186 +18867,201 @@ func (s *InitiateAuthInput) Validate() error { return nil } -// SetAuthFlow sets the AuthFlow field's value. -func (s *InitiateAuthInput) SetAuthFlow(v string) *InitiateAuthInput { - s.AuthFlow = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListUserImportJobsInput) SetMaxResults(v int64) *ListUserImportJobsInput { + s.MaxResults = &v return s } -// SetAuthParameters sets the AuthParameters field's value. -func (s *InitiateAuthInput) SetAuthParameters(v map[string]*string) *InitiateAuthInput { - s.AuthParameters = v +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListUserImportJobsInput) SetPaginationToken(v string) *ListUserImportJobsInput { + s.PaginationToken = &v return s } -// SetClientId sets the ClientId field's value. -func (s *InitiateAuthInput) SetClientId(v string) *InitiateAuthInput { - s.ClientId = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListUserImportJobsInput) SetUserPoolId(v string) *ListUserImportJobsInput { + s.UserPoolId = &v return s } -// SetClientMetadata sets the ClientMetadata field's value. -func (s *InitiateAuthInput) SetClientMetadata(v map[string]*string) *InitiateAuthInput { - s.ClientMetadata = v +// Represents the response from the server to the request to list the user import +// jobs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobsResponse +type ListUserImportJobsOutput struct { + _ struct{} `type:"structure"` + + // An identifier that can be used to return the next set of user import jobs + // in the list. + PaginationToken *string `min:"1" type:"string"` + + // The user import jobs. + UserImportJobs []*UserImportJobType `min:"1" type:"list"` +} + +// String returns the string representation +func (s ListUserImportJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUserImportJobsOutput) GoString() string { + return s.String() +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListUserImportJobsOutput) SetPaginationToken(v string) *ListUserImportJobsOutput { + s.PaginationToken = &v return s } -// Initiates the authentication response. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/InitiateAuthResponse -type InitiateAuthOutput struct { +// SetUserImportJobs sets the UserImportJobs field's value. +func (s *ListUserImportJobsOutput) SetUserImportJobs(v []*UserImportJobType) *ListUserImportJobsOutput { + s.UserImportJobs = v + return s +} + +// Represents the request to list the user pool clients. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClientsRequest +type ListUserPoolClientsInput struct { _ struct{} `type:"structure"` - // The result of the authentication response. This is only returned if the caller - // does not need to pass another challenge. If the caller does need to pass - // another challenge before it gets tokens, ChallengeName, ChallengeParameters, - // and Session are returned. - AuthenticationResult *AuthenticationResultType `type:"structure"` + // The maximum number of results you want the request to return when listing + // the user pool clients. + MaxResults *int64 `min:"1" type:"integer"` - // The name of the challenge which you are responding to with this call. This - // is returned to you in the AdminInitiateAuth response if you need to pass - // another challenge. - // - // Valid values include the following. Note that all of these challenges require - // USERNAME and SECRET_HASH (if applicable) in the parameters. - // - // * SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via - // SMS. - // - // * PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, - // PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations. - // - // * CUSTOM_CHALLENGE: This is returned if your custom authentication flow - // determines that the user should pass another challenge before tokens are - // issued. - // - // * DEVICE_SRP_AUTH: If device tracking was enabled on your user pool and - // the previous challenges were passed, this challenge is returned so that - // Amazon Cognito can start tracking this device. - // - // * DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices - // only. - // - // * NEW_PASSWORD_REQUIRED: For users which are required to change their - // passwords after successful first login. This challenge should be passed - // with NEW_PASSWORD and any other required attributes. - ChallengeName *string `type:"string" enum:"ChallengeNameType"` + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` - // The challenge parameters. These are returned to you in the InitiateAuth response - // if you need to pass another challenge. The responses in this parameter should - // be used to compute inputs to the next call (RespondToAuthChallenge). + // The user pool ID for the user pool where you want to list user pool clients. // - // All challenges require USERNAME and SECRET_HASH (if applicable). - ChallengeParameters map[string]*string `type:"map"` - - // The session which should be passed both ways in challenge-response calls - // to the service. If the InitiateAuth (API_InitiateAuth.html) or RespondToAuthChallenge - // (API_RespondToAuthChallenge.html) API call determines that the caller needs - // to go through another challenge, they return a session with other challenge - // parameters. This session should be passed as it is to the next RespondToAuthChallenge - // API call. - Session *string `min:"20" type:"string"` + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s InitiateAuthOutput) String() string { +func (s ListUserPoolClientsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InitiateAuthOutput) GoString() string { +func (s ListUserPoolClientsInput) GoString() string { return s.String() } -// SetAuthenticationResult sets the AuthenticationResult field's value. -func (s *InitiateAuthOutput) SetAuthenticationResult(v *AuthenticationResultType) *InitiateAuthOutput { - s.AuthenticationResult = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUserPoolClientsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUserPoolClientsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetChallengeName sets the ChallengeName field's value. -func (s *InitiateAuthOutput) SetChallengeName(v string) *InitiateAuthOutput { - s.ChallengeName = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListUserPoolClientsInput) SetMaxResults(v int64) *ListUserPoolClientsInput { + s.MaxResults = &v return s } -// SetChallengeParameters sets the ChallengeParameters field's value. -func (s *InitiateAuthOutput) SetChallengeParameters(v map[string]*string) *InitiateAuthOutput { - s.ChallengeParameters = v +// SetNextToken sets the NextToken field's value. +func (s *ListUserPoolClientsInput) SetNextToken(v string) *ListUserPoolClientsInput { + s.NextToken = &v return s } -// SetSession sets the Session field's value. -func (s *InitiateAuthOutput) SetSession(v string) *InitiateAuthOutput { - s.Session = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListUserPoolClientsInput) SetUserPoolId(v string) *ListUserPoolClientsInput { + s.UserPoolId = &v return s } -// Specifies the type of configuration for AWS Lambda triggers. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LambdaConfigType -type LambdaConfigType struct { +// Represents the response from the server that lists user pool clients. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClientsResponse +type ListUserPoolClientsOutput struct { _ struct{} `type:"structure"` - // Creates an authentication challenge. - CreateAuthChallenge *string `min:"20" type:"string"` + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` - // A custom Message AWS Lambda trigger. - CustomMessage *string `min:"20" type:"string"` + // The user pool clients in the response that lists user pool clients. + UserPoolClients []*UserPoolClientDescription `type:"list"` +} - // Defines the authentication challenge. - DefineAuthChallenge *string `min:"20" type:"string"` +// String returns the string representation +func (s ListUserPoolClientsOutput) String() string { + return awsutil.Prettify(s) +} - // A post-authentication AWS Lambda trigger. - PostAuthentication *string `min:"20" type:"string"` +// GoString returns the string representation +func (s ListUserPoolClientsOutput) GoString() string { + return s.String() +} - // A post-confirmation AWS Lambda trigger. - PostConfirmation *string `min:"20" type:"string"` +// SetNextToken sets the NextToken field's value. +func (s *ListUserPoolClientsOutput) SetNextToken(v string) *ListUserPoolClientsOutput { + s.NextToken = &v + return s +} - // A pre-authentication AWS Lambda trigger. - PreAuthentication *string `min:"20" type:"string"` +// SetUserPoolClients sets the UserPoolClients field's value. +func (s *ListUserPoolClientsOutput) SetUserPoolClients(v []*UserPoolClientDescription) *ListUserPoolClientsOutput { + s.UserPoolClients = v + return s +} - // A pre-registration AWS Lambda trigger. - PreSignUp *string `min:"20" type:"string"` +// Represents the request to list user pools. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolsRequest +type ListUserPoolsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results you want the request to return when listing + // the user pools. + // + // MaxResults is a required field + MaxResults *int64 `min:"1" type:"integer" required:"true"` - // Verifies the authentication challenge response. - VerifyAuthChallengeResponse *string `min:"20" type:"string"` + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s LambdaConfigType) String() string { +func (s ListUserPoolsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LambdaConfigType) GoString() string { +func (s ListUserPoolsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LambdaConfigType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LambdaConfigType"} - if s.CreateAuthChallenge != nil && len(*s.CreateAuthChallenge) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CreateAuthChallenge", 20)) - } - if s.CustomMessage != nil && len(*s.CustomMessage) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CustomMessage", 20)) - } - if s.DefineAuthChallenge != nil && len(*s.DefineAuthChallenge) < 20 { - invalidParams.Add(request.NewErrParamMinLen("DefineAuthChallenge", 20)) - } - if s.PostAuthentication != nil && len(*s.PostAuthentication) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PostAuthentication", 20)) - } - if s.PostConfirmation != nil && len(*s.PostConfirmation) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PostConfirmation", 20)) - } - if s.PreAuthentication != nil && len(*s.PreAuthentication) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PreAuthentication", 20)) +func (s *ListUserPoolsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUserPoolsInput"} + if s.MaxResults == nil { + invalidParams.Add(request.NewErrParamRequired("MaxResults")) } - if s.PreSignUp != nil && len(*s.PreSignUp) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PreSignUp", 20)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.VerifyAuthChallengeResponse != nil && len(*s.VerifyAuthChallengeResponse) < 20 { - invalidParams.Add(request.NewErrParamMinLen("VerifyAuthChallengeResponse", 20)) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -15660,89 +19070,102 @@ func (s *LambdaConfigType) Validate() error { return nil } -// SetCreateAuthChallenge sets the CreateAuthChallenge field's value. -func (s *LambdaConfigType) SetCreateAuthChallenge(v string) *LambdaConfigType { - s.CreateAuthChallenge = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListUserPoolsInput) SetMaxResults(v int64) *ListUserPoolsInput { + s.MaxResults = &v return s } -// SetCustomMessage sets the CustomMessage field's value. -func (s *LambdaConfigType) SetCustomMessage(v string) *LambdaConfigType { - s.CustomMessage = &v +// SetNextToken sets the NextToken field's value. +func (s *ListUserPoolsInput) SetNextToken(v string) *ListUserPoolsInput { + s.NextToken = &v return s } -// SetDefineAuthChallenge sets the DefineAuthChallenge field's value. -func (s *LambdaConfigType) SetDefineAuthChallenge(v string) *LambdaConfigType { - s.DefineAuthChallenge = &v - return s -} +// Represents the response to list user pools. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolsResponse +type ListUserPoolsOutput struct { + _ struct{} `type:"structure"` -// SetPostAuthentication sets the PostAuthentication field's value. -func (s *LambdaConfigType) SetPostAuthentication(v string) *LambdaConfigType { - s.PostAuthentication = &v - return s + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` + + // The user pools from the response to list users. + UserPools []*UserPoolDescriptionType `type:"list"` } -// SetPostConfirmation sets the PostConfirmation field's value. -func (s *LambdaConfigType) SetPostConfirmation(v string) *LambdaConfigType { - s.PostConfirmation = &v - return s +// String returns the string representation +func (s ListUserPoolsOutput) String() string { + return awsutil.Prettify(s) } -// SetPreAuthentication sets the PreAuthentication field's value. -func (s *LambdaConfigType) SetPreAuthentication(v string) *LambdaConfigType { - s.PreAuthentication = &v - return s +// GoString returns the string representation +func (s ListUserPoolsOutput) GoString() string { + return s.String() } -// SetPreSignUp sets the PreSignUp field's value. -func (s *LambdaConfigType) SetPreSignUp(v string) *LambdaConfigType { - s.PreSignUp = &v +// SetNextToken sets the NextToken field's value. +func (s *ListUserPoolsOutput) SetNextToken(v string) *ListUserPoolsOutput { + s.NextToken = &v return s } -// SetVerifyAuthChallengeResponse sets the VerifyAuthChallengeResponse field's value. -func (s *LambdaConfigType) SetVerifyAuthChallengeResponse(v string) *LambdaConfigType { - s.VerifyAuthChallengeResponse = &v +// SetUserPools sets the UserPools field's value. +func (s *ListUserPoolsOutput) SetUserPools(v []*UserPoolDescriptionType) *ListUserPoolsOutput { + s.UserPools = v return s } -// Represents the request to list the devices. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevicesRequest -type ListDevicesInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroupRequest +type ListUsersInGroupInput struct { _ struct{} `type:"structure"` - // The access tokens for the request to list devices. + // The name of the group. // - // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` - // The limit of the device request. + // The limit of the request to list users. Limit *int64 `type:"integer"` - // The pagination token for the list request. - PaginationToken *string `min:"1" type:"string"` + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListDevicesInput) String() string { +func (s ListUsersInGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDevicesInput) GoString() string { +func (s ListUsersInGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListDevicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"} - if s.AccessToken == nil { - invalidParams.Add(request.NewErrParamRequired("AccessToken")) +func (s *ListUsersInGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) } - if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } if invalidParams.Len() > 0 { @@ -15751,90 +19174,146 @@ func (s *ListDevicesInput) Validate() error { return nil } -// SetAccessToken sets the AccessToken field's value. -func (s *ListDevicesInput) SetAccessToken(v string) *ListDevicesInput { - s.AccessToken = &v +// SetGroupName sets the GroupName field's value. +func (s *ListUsersInGroupInput) SetGroupName(v string) *ListUsersInGroupInput { + s.GroupName = &v return s } // SetLimit sets the Limit field's value. -func (s *ListDevicesInput) SetLimit(v int64) *ListDevicesInput { +func (s *ListUsersInGroupInput) SetLimit(v int64) *ListUsersInGroupInput { s.Limit = &v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *ListDevicesInput) SetPaginationToken(v string) *ListDevicesInput { - s.PaginationToken = &v +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInGroupInput) SetNextToken(v string) *ListUsersInGroupInput { + s.NextToken = &v return s } -// Represents the response to list devices. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevicesResponse -type ListDevicesOutput struct { +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListUsersInGroupInput) SetUserPoolId(v string) *ListUsersInGroupInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroupResponse +type ListUsersInGroupOutput struct { _ struct{} `type:"structure"` - // The devices returned in the list devices response. - Devices []*DeviceType `type:"list"` + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` - // The pagination token for the list device response. - PaginationToken *string `min:"1" type:"string"` + // The users returned in the request to list users. + Users []*UserType `type:"list"` } // String returns the string representation -func (s ListDevicesOutput) String() string { +func (s ListUsersInGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDevicesOutput) GoString() string { +func (s ListUsersInGroupOutput) GoString() string { return s.String() } -// SetDevices sets the Devices field's value. -func (s *ListDevicesOutput) SetDevices(v []*DeviceType) *ListDevicesOutput { - s.Devices = v +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInGroupOutput) SetNextToken(v string) *ListUsersInGroupOutput { + s.NextToken = &v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *ListDevicesOutput) SetPaginationToken(v string) *ListDevicesOutput { - s.PaginationToken = &v +// SetUsers sets the Users field's value. +func (s *ListUsersInGroupOutput) SetUsers(v []*UserType) *ListUsersInGroupOutput { + s.Users = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroupsRequest -type ListGroupsInput struct { +// Represents the request to list users. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersRequest +type ListUsersInput struct { _ struct{} `type:"structure"` - // The limit of the request to list groups. + // An array of strings, where each string is the name of a user attribute to + // be returned for each user in the search results. If the array is null, all + // attributes are returned. + AttributesToGet []*string `type:"list"` + + // A filter string of the form "AttributeNameFilter-Type "AttributeValue"". + // Quotation marks within the filter string must be escaped using the backslash + // (\) character. For example, "family_name = \"Reddy\"". + // + // * AttributeName: The name of the attribute to search for. You can only + // search for one attribute at a time. + // + // * Filter-Type: For an exact match, use =, for example, "given_name = \"Jon\"". + // For a prefix ("starts with") match, use ^=, for example, "given_name ^= + // \"Jon\"". + // + // * AttributeValue: The attribute value that must be matched for each user. + // + // If the filter string is empty, ListUsers returns all users in the user pool. + // + // You can only search for the following standard attributes: + // + // * username (case-sensitive) + // + // * email + // + // * phone_number + // + // * name + // + // * given_name + // + // * family_name + // + // * preferred_username + // + // * cognito:user_status (called Enabled in the Console) (case-sensitive) + // + // * status (case-insensitive) + // + // * sub + // + // Custom attributes are not searchable. + // + // For more information, see Searching for Users Using the ListUsers API (http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-using-listusers-api) + // and Examples of Using the ListUsers API (http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-listusers-api-examples) + // in the Amazon Cognito Developer Guide. + Filter *string `type:"string"` + + // Maximum number of users to be returned. Limit *int64 `type:"integer"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` + PaginationToken *string `min:"1" type:"string"` - // The user pool ID for the user pool. + // The user pool ID for the user pool on which the search should be performed. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListGroupsInput) String() string { +func (s ListUsersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListGroupsInput) GoString() string { +func (s ListUsersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) +func (s *ListUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} + if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -15849,98 +19328,98 @@ func (s *ListGroupsInput) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *ListUsersInput) SetAttributesToGet(v []*string) *ListUsersInput { + s.AttributesToGet = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *ListUsersInput) SetFilter(v string) *ListUsersInput { + s.Filter = &v + return s +} + // SetLimit sets the Limit field's value. -func (s *ListGroupsInput) SetLimit(v int64) *ListGroupsInput { +func (s *ListUsersInput) SetLimit(v int64) *ListUsersInput { s.Limit = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { - s.NextToken = &v +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListUsersInput) SetPaginationToken(v string) *ListUsersInput { + s.PaginationToken = &v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *ListGroupsInput) SetUserPoolId(v string) *ListGroupsInput { +func (s *ListUsersInput) SetUserPoolId(v string) *ListUsersInput { s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroupsResponse -type ListGroupsOutput struct { +// The response from the request to list users. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersResponse +type ListUsersOutput struct { _ struct{} `type:"structure"` - // The group objects for the groups. - Groups []*GroupType `type:"list"` - // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` + PaginationToken *string `min:"1" type:"string"` + + // The users returned in the request to list users. + Users []*UserType `type:"list"` } // String returns the string representation -func (s ListGroupsOutput) String() string { +func (s ListUsersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListGroupsOutput) GoString() string { +func (s ListUsersOutput) GoString() string { return s.String() } -// SetGroups sets the Groups field's value. -func (s *ListGroupsOutput) SetGroups(v []*GroupType) *ListGroupsOutput { - s.Groups = v +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListUsersOutput) SetPaginationToken(v string) *ListUsersOutput { + s.PaginationToken = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { - s.NextToken = &v +// SetUsers sets the Users field's value. +func (s *ListUsersOutput) SetUsers(v []*UserType) *ListUsersOutput { + s.Users = v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListIdentityProvidersRequest -type ListIdentityProvidersInput struct { +// Specifies the different settings for multi-factor authentication (MFA). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/MFAOptionType +type MFAOptionType struct { _ struct{} `type:"structure"` - // The maximum number of identity providers to return. - MaxResults *int64 `min:"1" type:"integer"` - - // A pagination token. - NextToken *string `min:"1" type:"string"` + // The attribute name of the MFA option type. + AttributeName *string `min:"1" type:"string"` - // The user pool ID. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // The delivery medium (email message or SMS message) to send the MFA code. + DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"` } // String returns the string representation -func (s ListIdentityProvidersInput) String() string { +func (s MFAOptionType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListIdentityProvidersInput) GoString() string { +func (s MFAOptionType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListIdentityProvidersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListIdentityProvidersInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) +func (s *MFAOptionType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MFAOptionType"} + if s.AttributeName != nil && len(*s.AttributeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) } if invalidParams.Len() > 0 { @@ -15949,99 +19428,54 @@ func (s *ListIdentityProvidersInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListIdentityProvidersInput) SetMaxResults(v int64) *ListIdentityProvidersInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListIdentityProvidersInput) SetNextToken(v string) *ListIdentityProvidersInput { - s.NextToken = &v - return s -} - -// SetUserPoolId sets the UserPoolId field's value. -func (s *ListIdentityProvidersInput) SetUserPoolId(v string) *ListIdentityProvidersInput { - s.UserPoolId = &v - return s -} - -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListIdentityProvidersResponse -type ListIdentityProvidersOutput struct { - _ struct{} `type:"structure"` - - // A pagination token. - NextToken *string `min:"1" type:"string"` - - // A list of identity provider objects. - // - // Providers is a required field - Providers []*ProviderDescription `type:"list" required:"true"` -} - -// String returns the string representation -func (s ListIdentityProvidersOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListIdentityProvidersOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListIdentityProvidersOutput) SetNextToken(v string) *ListIdentityProvidersOutput { - s.NextToken = &v +// SetAttributeName sets the AttributeName field's value. +func (s *MFAOptionType) SetAttributeName(v string) *MFAOptionType { + s.AttributeName = &v return s } -// SetProviders sets the Providers field's value. -func (s *ListIdentityProvidersOutput) SetProviders(v []*ProviderDescription) *ListIdentityProvidersOutput { - s.Providers = v +// SetDeliveryMedium sets the DeliveryMedium field's value. +func (s *MFAOptionType) SetDeliveryMedium(v string) *MFAOptionType { + s.DeliveryMedium = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListResourceServersRequest -type ListResourceServersInput struct { +// The message template structure. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/MessageTemplateType +type MessageTemplateType struct { _ struct{} `type:"structure"` - // The maximum number of resource servers to return. - MaxResults *int64 `min:"1" type:"integer"` + // The message template for email messages. + EmailMessage *string `min:"6" type:"string"` - // A pagination token. - NextToken *string `min:"1" type:"string"` + // The subject line for email messages. + EmailSubject *string `min:"1" type:"string"` - // The user pool ID for the user pool. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // The message template for SMS messages. + SMSMessage *string `min:"6" type:"string"` } // String returns the string representation -func (s ListResourceServersInput) String() string { +func (s MessageTemplateType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListResourceServersInput) GoString() string { +func (s MessageTemplateType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListResourceServersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListResourceServersInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) +func (s *MessageTemplateType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MessageTemplateType"} + if s.EmailMessage != nil && len(*s.EmailMessage) < 6 { + invalidParams.Add(request.NewErrParamMinLen("EmailMessage", 6)) } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + if s.EmailSubject != nil && len(*s.EmailSubject) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailSubject", 1)) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.SMSMessage != nil && len(*s.SMSMessage) < 6 { + invalidParams.Add(request.NewErrParamMinLen("SMSMessage", 6)) } if invalidParams.Len() > 0 { @@ -16050,106 +19484,122 @@ func (s *ListResourceServersInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListResourceServersInput) SetMaxResults(v int64) *ListResourceServersInput { - s.MaxResults = &v +// SetEmailMessage sets the EmailMessage field's value. +func (s *MessageTemplateType) SetEmailMessage(v string) *MessageTemplateType { + s.EmailMessage = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListResourceServersInput) SetNextToken(v string) *ListResourceServersInput { - s.NextToken = &v +// SetEmailSubject sets the EmailSubject field's value. +func (s *MessageTemplateType) SetEmailSubject(v string) *MessageTemplateType { + s.EmailSubject = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *ListResourceServersInput) SetUserPoolId(v string) *ListResourceServersInput { - s.UserPoolId = &v +// SetSMSMessage sets the SMSMessage field's value. +func (s *MessageTemplateType) SetSMSMessage(v string) *MessageTemplateType { + s.SMSMessage = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListResourceServersResponse -type ListResourceServersOutput struct { +// The new device metadata type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/NewDeviceMetadataType +type NewDeviceMetadataType struct { _ struct{} `type:"structure"` - // A pagination token. - NextToken *string `min:"1" type:"string"` + // The device group key. + DeviceGroupKey *string `type:"string"` - // The resource servers. - // - // ResourceServers is a required field - ResourceServers []*ResourceServerType `type:"list" required:"true"` + // The device key. + DeviceKey *string `min:"1" type:"string"` } // String returns the string representation -func (s ListResourceServersOutput) String() string { +func (s NewDeviceMetadataType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListResourceServersOutput) GoString() string { +func (s NewDeviceMetadataType) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListResourceServersOutput) SetNextToken(v string) *ListResourceServersOutput { - s.NextToken = &v +// SetDeviceGroupKey sets the DeviceGroupKey field's value. +func (s *NewDeviceMetadataType) SetDeviceGroupKey(v string) *NewDeviceMetadataType { + s.DeviceGroupKey = &v return s } -// SetResourceServers sets the ResourceServers field's value. -func (s *ListResourceServersOutput) SetResourceServers(v []*ResourceServerType) *ListResourceServersOutput { - s.ResourceServers = v +// SetDeviceKey sets the DeviceKey field's value. +func (s *NewDeviceMetadataType) SetDeviceKey(v string) *NewDeviceMetadataType { + s.DeviceKey = &v return s } -// Represents the request to list the user import jobs. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobsRequest -type ListUserImportJobsInput struct { +// The notify configuration type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/NotifyConfigurationType +type NotifyConfigurationType struct { _ struct{} `type:"structure"` - // The maximum number of import jobs you want the request to return. - // - // MaxResults is a required field - MaxResults *int64 `min:"1" type:"integer" required:"true"` + // Email template used when a detected risk event is blocked. + BlockEmail *NotifyEmailType `type:"structure"` + + // The email address that is sending the email. It must be either individually + // verified with Amazon SES, or from a domain that has been verified with Amazon + // SES. + From *string `type:"string"` + + // The MFA email template used when MFA is challenged as part of a detected + // risk. + MfaEmail *NotifyEmailType `type:"structure"` - // An identifier that was returned from the previous call to ListUserImportJobs, - // which can be used to return the next set of import jobs in the list. - PaginationToken *string `min:"1" type:"string"` + // The email template used when a detected risk event is allowed. + NoActionEmail *NotifyEmailType `type:"structure"` - // The user pool ID for the user pool that the users are being imported into. + // The destination to which the receiver of an email should reply to. + ReplyTo *string `type:"string"` + + // The Amazon Resource Name (ARN) of the identity that is associated with the + // sending authorization policy. It permits Amazon Cognito to send for the email + // address specified in the From parameter. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // SourceArn is a required field + SourceArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation -func (s ListUserImportJobsInput) String() string { +func (s NotifyConfigurationType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUserImportJobsInput) GoString() string { +func (s NotifyConfigurationType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListUserImportJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUserImportJobsInput"} - if s.MaxResults == nil { - invalidParams.Add(request.NewErrParamRequired("MaxResults")) +func (s *NotifyConfigurationType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotifyConfigurationType"} + if s.SourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceArn")) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.SourceArn != nil && len(*s.SourceArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("SourceArn", 20)) } - if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) + if s.BlockEmail != nil { + if err := s.BlockEmail.Validate(); err != nil { + invalidParams.AddNested("BlockEmail", err.(request.ErrInvalidParams)) + } } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + if s.MfaEmail != nil { + if err := s.MfaEmail.Validate(); err != nil { + invalidParams.AddNested("MfaEmail", err.(request.ErrInvalidParams)) + } } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.NoActionEmail != nil { + if err := s.NoActionEmail.Validate(); err != nil { + invalidParams.AddNested("NoActionEmail", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -16158,103 +19608,83 @@ func (s *ListUserImportJobsInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListUserImportJobsInput) SetMaxResults(v int64) *ListUserImportJobsInput { - s.MaxResults = &v +// SetBlockEmail sets the BlockEmail field's value. +func (s *NotifyConfigurationType) SetBlockEmail(v *NotifyEmailType) *NotifyConfigurationType { + s.BlockEmail = v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *ListUserImportJobsInput) SetPaginationToken(v string) *ListUserImportJobsInput { - s.PaginationToken = &v +// SetFrom sets the From field's value. +func (s *NotifyConfigurationType) SetFrom(v string) *NotifyConfigurationType { + s.From = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *ListUserImportJobsInput) SetUserPoolId(v string) *ListUserImportJobsInput { - s.UserPoolId = &v +// SetMfaEmail sets the MfaEmail field's value. +func (s *NotifyConfigurationType) SetMfaEmail(v *NotifyEmailType) *NotifyConfigurationType { + s.MfaEmail = v return s } -// Represents the response from the server to the request to list the user import -// jobs. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobsResponse -type ListUserImportJobsOutput struct { - _ struct{} `type:"structure"` - - // An identifier that can be used to return the next set of user import jobs - // in the list. - PaginationToken *string `min:"1" type:"string"` - - // The user import jobs. - UserImportJobs []*UserImportJobType `min:"1" type:"list"` -} - -// String returns the string representation -func (s ListUserImportJobsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListUserImportJobsOutput) GoString() string { - return s.String() +// SetNoActionEmail sets the NoActionEmail field's value. +func (s *NotifyConfigurationType) SetNoActionEmail(v *NotifyEmailType) *NotifyConfigurationType { + s.NoActionEmail = v + return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *ListUserImportJobsOutput) SetPaginationToken(v string) *ListUserImportJobsOutput { - s.PaginationToken = &v +// SetReplyTo sets the ReplyTo field's value. +func (s *NotifyConfigurationType) SetReplyTo(v string) *NotifyConfigurationType { + s.ReplyTo = &v return s } -// SetUserImportJobs sets the UserImportJobs field's value. -func (s *ListUserImportJobsOutput) SetUserImportJobs(v []*UserImportJobType) *ListUserImportJobsOutput { - s.UserImportJobs = v +// SetSourceArn sets the SourceArn field's value. +func (s *NotifyConfigurationType) SetSourceArn(v string) *NotifyConfigurationType { + s.SourceArn = &v return s } -// Represents the request to list the user pool clients. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClientsRequest -type ListUserPoolClientsInput struct { +// The notify email type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/NotifyEmailType +type NotifyEmailType struct { _ struct{} `type:"structure"` - // The maximum number of results you want the request to return when listing - // the user pool clients. - MaxResults *int64 `min:"1" type:"integer"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` + // The HTML body. + HtmlBody *string `min:"6" type:"string"` - // The user pool ID for the user pool where you want to list user pool clients. + // The subject. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // Subject is a required field + Subject *string `min:"1" type:"string" required:"true"` + + // The text body. + TextBody *string `min:"6" type:"string"` } // String returns the string representation -func (s ListUserPoolClientsInput) String() string { +func (s NotifyEmailType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUserPoolClientsInput) GoString() string { +func (s NotifyEmailType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListUserPoolClientsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUserPoolClientsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *NotifyEmailType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotifyEmailType"} + if s.HtmlBody != nil && len(*s.HtmlBody) < 6 { + invalidParams.Add(request.NewErrParamMinLen("HtmlBody", 6)) } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + if s.Subject == nil { + invalidParams.Add(request.NewErrParamRequired("Subject")) } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + if s.Subject != nil && len(*s.Subject) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Subject", 1)) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.TextBody != nil && len(*s.TextBody) < 6 { + invalidParams.Add(request.NewErrParamMinLen("TextBody", 6)) } if invalidParams.Len() > 0 { @@ -16263,96 +19693,100 @@ func (s *ListUserPoolClientsInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListUserPoolClientsInput) SetMaxResults(v int64) *ListUserPoolClientsInput { - s.MaxResults = &v +// SetHtmlBody sets the HtmlBody field's value. +func (s *NotifyEmailType) SetHtmlBody(v string) *NotifyEmailType { + s.HtmlBody = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListUserPoolClientsInput) SetNextToken(v string) *ListUserPoolClientsInput { - s.NextToken = &v +// SetSubject sets the Subject field's value. +func (s *NotifyEmailType) SetSubject(v string) *NotifyEmailType { + s.Subject = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *ListUserPoolClientsInput) SetUserPoolId(v string) *ListUserPoolClientsInput { - s.UserPoolId = &v +// SetTextBody sets the TextBody field's value. +func (s *NotifyEmailType) SetTextBody(v string) *NotifyEmailType { + s.TextBody = &v return s } -// Represents the response from the server that lists user pool clients. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClientsResponse -type ListUserPoolClientsOutput struct { +// The minimum and maximum value of an attribute that is of the number data +// type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/NumberAttributeConstraintsType +type NumberAttributeConstraintsType struct { _ struct{} `type:"structure"` - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` + // The maximum value of an attribute that is of the number data type. + MaxValue *string `type:"string"` - // The user pool clients in the response that lists user pool clients. - UserPoolClients []*UserPoolClientDescription `type:"list"` + // The minimum value of an attribute that is of the number data type. + MinValue *string `type:"string"` } // String returns the string representation -func (s ListUserPoolClientsOutput) String() string { +func (s NumberAttributeConstraintsType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUserPoolClientsOutput) GoString() string { +func (s NumberAttributeConstraintsType) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListUserPoolClientsOutput) SetNextToken(v string) *ListUserPoolClientsOutput { - s.NextToken = &v +// SetMaxValue sets the MaxValue field's value. +func (s *NumberAttributeConstraintsType) SetMaxValue(v string) *NumberAttributeConstraintsType { + s.MaxValue = &v return s } -// SetUserPoolClients sets the UserPoolClients field's value. -func (s *ListUserPoolClientsOutput) SetUserPoolClients(v []*UserPoolClientDescription) *ListUserPoolClientsOutput { - s.UserPoolClients = v +// SetMinValue sets the MinValue field's value. +func (s *NumberAttributeConstraintsType) SetMinValue(v string) *NumberAttributeConstraintsType { + s.MinValue = &v return s } -// Represents the request to list user pools. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolsRequest -type ListUserPoolsInput struct { +// The password policy type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/PasswordPolicyType +type PasswordPolicyType struct { _ struct{} `type:"structure"` - // The maximum number of results you want the request to return when listing - // the user pools. - // - // MaxResults is a required field - MaxResults *int64 `min:"1" type:"integer" required:"true"` + // The minimum length of the password policy that you have set. Cannot be less + // than 6. + MinimumLength *int64 `min:"6" type:"integer"` - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` + // In the password policy that you have set, refers to whether you have required + // users to use at least one lowercase letter in their password. + RequireLowercase *bool `type:"boolean"` + + // In the password policy that you have set, refers to whether you have required + // users to use at least one number in their password. + RequireNumbers *bool `type:"boolean"` + + // In the password policy that you have set, refers to whether you have required + // users to use at least one symbol in their password. + RequireSymbols *bool `type:"boolean"` + + // In the password policy that you have set, refers to whether you have required + // users to use at least one uppercase letter in their password. + RequireUppercase *bool `type:"boolean"` } // String returns the string representation -func (s ListUserPoolsInput) String() string { +func (s PasswordPolicyType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUserPoolsInput) GoString() string { +func (s PasswordPolicyType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListUserPoolsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUserPoolsInput"} - if s.MaxResults == nil { - invalidParams.Add(request.NewErrParamRequired("MaxResults")) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) +func (s *PasswordPolicyType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PasswordPolicyType"} + if s.MinimumLength != nil && *s.MinimumLength < 6 { + invalidParams.Add(request.NewErrParamMinValue("MinimumLength", 6)) } if invalidParams.Len() > 0 { @@ -16361,254 +19795,200 @@ func (s *ListUserPoolsInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListUserPoolsInput) SetMaxResults(v int64) *ListUserPoolsInput { - s.MaxResults = &v +// SetMinimumLength sets the MinimumLength field's value. +func (s *PasswordPolicyType) SetMinimumLength(v int64) *PasswordPolicyType { + s.MinimumLength = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListUserPoolsInput) SetNextToken(v string) *ListUserPoolsInput { - s.NextToken = &v +// SetRequireLowercase sets the RequireLowercase field's value. +func (s *PasswordPolicyType) SetRequireLowercase(v bool) *PasswordPolicyType { + s.RequireLowercase = &v return s } -// Represents the response to list user pools. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolsResponse -type ListUserPoolsOutput struct { - _ struct{} `type:"structure"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` - - // The user pools from the response to list users. - UserPools []*UserPoolDescriptionType `type:"list"` -} - -// String returns the string representation -func (s ListUserPoolsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListUserPoolsOutput) GoString() string { - return s.String() +// SetRequireNumbers sets the RequireNumbers field's value. +func (s *PasswordPolicyType) SetRequireNumbers(v bool) *PasswordPolicyType { + s.RequireNumbers = &v + return s } -// SetNextToken sets the NextToken field's value. -func (s *ListUserPoolsOutput) SetNextToken(v string) *ListUserPoolsOutput { - s.NextToken = &v +// SetRequireSymbols sets the RequireSymbols field's value. +func (s *PasswordPolicyType) SetRequireSymbols(v bool) *PasswordPolicyType { + s.RequireSymbols = &v return s } -// SetUserPools sets the UserPools field's value. -func (s *ListUserPoolsOutput) SetUserPools(v []*UserPoolDescriptionType) *ListUserPoolsOutput { - s.UserPools = v +// SetRequireUppercase sets the RequireUppercase field's value. +func (s *PasswordPolicyType) SetRequireUppercase(v bool) *PasswordPolicyType { + s.RequireUppercase = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroupRequest -type ListUsersInGroupInput struct { +// A container for identity provider details. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ProviderDescription +type ProviderDescription struct { _ struct{} `type:"structure"` - // The name of the group. - // - // GroupName is a required field - GroupName *string `min:"1" type:"string" required:"true"` + // The date the provider was added to the user pool. + CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // The limit of the request to list users. - Limit *int64 `type:"integer"` + // The date the provider was last modified. + LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` + // The identity provider name. + ProviderName *string `min:"1" type:"string"` - // The user pool ID for the user pool. - // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // The identity provider type. + ProviderType *string `type:"string" enum:"IdentityProviderTypeType"` } // String returns the string representation -func (s ListUsersInGroupInput) String() string { +func (s ProviderDescription) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUsersInGroupInput) GoString() string { +func (s ProviderDescription) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUsersInGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUsersInGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGroupName sets the GroupName field's value. -func (s *ListUsersInGroupInput) SetGroupName(v string) *ListUsersInGroupInput { - s.GroupName = &v +// SetCreationDate sets the CreationDate field's value. +func (s *ProviderDescription) SetCreationDate(v time.Time) *ProviderDescription { + s.CreationDate = &v return s } -// SetLimit sets the Limit field's value. -func (s *ListUsersInGroupInput) SetLimit(v int64) *ListUsersInGroupInput { - s.Limit = &v +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *ProviderDescription) SetLastModifiedDate(v time.Time) *ProviderDescription { + s.LastModifiedDate = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListUsersInGroupInput) SetNextToken(v string) *ListUsersInGroupInput { - s.NextToken = &v +// SetProviderName sets the ProviderName field's value. +func (s *ProviderDescription) SetProviderName(v string) *ProviderDescription { + s.ProviderName = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *ListUsersInGroupInput) SetUserPoolId(v string) *ListUsersInGroupInput { - s.UserPoolId = &v +// SetProviderType sets the ProviderType field's value. +func (s *ProviderDescription) SetProviderType(v string) *ProviderDescription { + s.ProviderType = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroupResponse -type ListUsersInGroupOutput struct { +// A container for information about an identity provider for a user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ProviderUserIdentifierType +type ProviderUserIdentifierType struct { _ struct{} `type:"structure"` - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` + // The name of the provider attribute to link to, for example, NameID. + ProviderAttributeName *string `type:"string"` - // The users returned in the request to list users. - Users []*UserType `type:"list"` + // The value of the provider attribute to link to, for example, xxxxx_account. + ProviderAttributeValue *string `type:"string"` + + // The name of the provider, for example, Facebook, Google, or Login with Amazon. + ProviderName *string `min:"1" type:"string"` } // String returns the string representation -func (s ListUsersInGroupOutput) String() string { +func (s ProviderUserIdentifierType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUsersInGroupOutput) GoString() string { +func (s ProviderUserIdentifierType) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListUsersInGroupOutput) SetNextToken(v string) *ListUsersInGroupOutput { - s.NextToken = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProviderUserIdentifierType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProviderUserIdentifierType"} + if s.ProviderName != nil && len(*s.ProviderName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProviderAttributeName sets the ProviderAttributeName field's value. +func (s *ProviderUserIdentifierType) SetProviderAttributeName(v string) *ProviderUserIdentifierType { + s.ProviderAttributeName = &v return s } -// SetUsers sets the Users field's value. -func (s *ListUsersInGroupOutput) SetUsers(v []*UserType) *ListUsersInGroupOutput { - s.Users = v +// SetProviderAttributeValue sets the ProviderAttributeValue field's value. +func (s *ProviderUserIdentifierType) SetProviderAttributeValue(v string) *ProviderUserIdentifierType { + s.ProviderAttributeValue = &v return s } -// Represents the request to list users. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersRequest -type ListUsersInput struct { +// SetProviderName sets the ProviderName field's value. +func (s *ProviderUserIdentifierType) SetProviderName(v string) *ProviderUserIdentifierType { + s.ProviderName = &v + return s +} + +// Represents the request to resend the confirmation code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCodeRequest +type ResendConfirmationCodeInput struct { _ struct{} `type:"structure"` - // An array of strings, where each string is the name of a user attribute to - // be returned for each user in the search results. If the array is empty, all - // attributes are returned. - AttributesToGet []*string `type:"list"` + // The Amazon Pinpoint analytics metadata for collecting metrics for ResendConfirmationCode + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` - // A filter string of the form "AttributeNameFilter-Type "AttributeValue"". - // Quotation marks within the filter string must be escaped using the backslash - // (\) character. For example, "family_name = \"Reddy\"". - // - // * AttributeName: The name of the attribute to search for. You can only - // search for one attribute at a time. - // - // * Filter-Type: For an exact match, use =, for example, "given_name = \"Jon\"". - // For a prefix ("starts with") match, use ^=, for example, "given_name ^= - // \"Jon\"". - // - // * AttributeValue: The attribute value that must be matched for each user. - // - // If the filter string is empty, ListUsers returns all users in the user pool. - // - // You can only search for the following standard attributes: - // - // * username (case-sensitive) - // - // * email - // - // * phone_number - // - // * name - // - // * given_name - // - // * family_name - // - // * preferred_username - // - // * cognito:user_status (called Enabled in the Console) (case-sensitive) - // - // * status (case-insensitive) - // - // Custom attributes are not searchable. + // The ID of the client associated with the user pool. // - // For more information, see Searching for Users Using the ListUsers API (http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-using-listusers-api) - // and Examples of Using the ListUsers API (http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-listusers-api-examples) - // in the Amazon Cognito Developer Guide. - Filter *string `type:"string"` + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` - // Maximum number of users to be returned. - Limit *int64 `type:"integer"` + // A keyed-hash message authentication code (HMAC) calculated using the secret + // key of a user pool client and username plus the client ID in the message. + SecretHash *string `min:"1" type:"string"` - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - PaginationToken *string `min:"1" type:"string"` + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + UserContextData *UserContextDataType `type:"structure"` - // The user pool ID for the user pool on which the search should be performed. + // The user name of the user to whom you wish to resend a confirmation code. // - // UserPoolId is a required field - UserPoolId *string `min:"1" type:"string" required:"true"` + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListUsersInput) String() string { +func (s ResendConfirmationCodeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUsersInput) GoString() string { +func (s ResendConfirmationCodeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListUsersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} - if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) +func (s *ResendConfirmationCodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResendConfirmationCodeInput"} + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + if s.SecretHash != nil && len(*s.SecretHash) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) } if invalidParams.Len() > 0 { @@ -16617,154 +19997,247 @@ func (s *ListUsersInput) Validate() error { return nil } -// SetAttributesToGet sets the AttributesToGet field's value. -func (s *ListUsersInput) SetAttributesToGet(v []*string) *ListUsersInput { - s.AttributesToGet = v +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *ResendConfirmationCodeInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *ResendConfirmationCodeInput { + s.AnalyticsMetadata = v return s } -// SetFilter sets the Filter field's value. -func (s *ListUsersInput) SetFilter(v string) *ListUsersInput { - s.Filter = &v +// SetClientId sets the ClientId field's value. +func (s *ResendConfirmationCodeInput) SetClientId(v string) *ResendConfirmationCodeInput { + s.ClientId = &v return s } -// SetLimit sets the Limit field's value. -func (s *ListUsersInput) SetLimit(v int64) *ListUsersInput { - s.Limit = &v +// SetSecretHash sets the SecretHash field's value. +func (s *ResendConfirmationCodeInput) SetSecretHash(v string) *ResendConfirmationCodeInput { + s.SecretHash = &v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *ListUsersInput) SetPaginationToken(v string) *ListUsersInput { - s.PaginationToken = &v +// SetUserContextData sets the UserContextData field's value. +func (s *ResendConfirmationCodeInput) SetUserContextData(v *UserContextDataType) *ResendConfirmationCodeInput { + s.UserContextData = v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *ListUsersInput) SetUserPoolId(v string) *ListUsersInput { - s.UserPoolId = &v +// SetUsername sets the Username field's value. +func (s *ResendConfirmationCodeInput) SetUsername(v string) *ResendConfirmationCodeInput { + s.Username = &v return s } -// The response from the request to list users. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersResponse -type ListUsersOutput struct { +// The response from the server when the Amazon Cognito Your User Pools service +// makes the request to resend a confirmation code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCodeResponse +type ResendConfirmationCodeOutput struct { + _ struct{} `type:"structure"` + + // The code delivery details returned by the server in response to the request + // to resend the confirmation code. + CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` +} + +// String returns the string representation +func (s ResendConfirmationCodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResendConfirmationCodeOutput) GoString() string { + return s.String() +} + +// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. +func (s *ResendConfirmationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ResendConfirmationCodeOutput { + s.CodeDeliveryDetails = v + return s +} + +// A resource server scope. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResourceServerScopeType +type ResourceServerScopeType struct { _ struct{} `type:"structure"` - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - PaginationToken *string `min:"1" type:"string"` + // A description of the scope. + // + // ScopeDescription is a required field + ScopeDescription *string `min:"1" type:"string" required:"true"` - // The users returned in the request to list users. - Users []*UserType `type:"list"` + // The name of the scope. + // + // ScopeName is a required field + ScopeName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListUsersOutput) String() string { +func (s ResourceServerScopeType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUsersOutput) GoString() string { +func (s ResourceServerScopeType) GoString() string { return s.String() } -// SetPaginationToken sets the PaginationToken field's value. -func (s *ListUsersOutput) SetPaginationToken(v string) *ListUsersOutput { - s.PaginationToken = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResourceServerScopeType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResourceServerScopeType"} + if s.ScopeDescription == nil { + invalidParams.Add(request.NewErrParamRequired("ScopeDescription")) + } + if s.ScopeDescription != nil && len(*s.ScopeDescription) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScopeDescription", 1)) + } + if s.ScopeName == nil { + invalidParams.Add(request.NewErrParamRequired("ScopeName")) + } + if s.ScopeName != nil && len(*s.ScopeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScopeName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScopeDescription sets the ScopeDescription field's value. +func (s *ResourceServerScopeType) SetScopeDescription(v string) *ResourceServerScopeType { + s.ScopeDescription = &v return s } -// SetUsers sets the Users field's value. -func (s *ListUsersOutput) SetUsers(v []*UserType) *ListUsersOutput { - s.Users = v +// SetScopeName sets the ScopeName field's value. +func (s *ResourceServerScopeType) SetScopeName(v string) *ResourceServerScopeType { + s.ScopeName = &v return s } -// Specifies the different settings for multi-factor authentication (MFA). -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/MFAOptionType -type MFAOptionType struct { +// A container for information about a resource server for a user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResourceServerType +type ResourceServerType struct { _ struct{} `type:"structure"` - // The attribute name of the MFA option type. - AttributeName *string `min:"1" type:"string"` + // The identifier for the resource server. + Identifier *string `min:"1" type:"string"` - // The delivery medium (email message or SMS message) to send the MFA code. - DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"` + // The name of the resource server. + Name *string `min:"1" type:"string"` + + // A list of scopes that are defined for the resource server. + Scopes []*ResourceServerScopeType `type:"list"` + + // The user pool ID for the user pool that hosts the resource server. + UserPoolId *string `min:"1" type:"string"` } // String returns the string representation -func (s MFAOptionType) String() string { +func (s ResourceServerType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MFAOptionType) GoString() string { +func (s ResourceServerType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MFAOptionType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MFAOptionType"} - if s.AttributeName != nil && len(*s.AttributeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) - } +// SetIdentifier sets the Identifier field's value. +func (s *ResourceServerType) SetIdentifier(v string) *ResourceServerType { + s.Identifier = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetName sets the Name field's value. +func (s *ResourceServerType) SetName(v string) *ResourceServerType { + s.Name = &v + return s } -// SetAttributeName sets the AttributeName field's value. -func (s *MFAOptionType) SetAttributeName(v string) *MFAOptionType { - s.AttributeName = &v +// SetScopes sets the Scopes field's value. +func (s *ResourceServerType) SetScopes(v []*ResourceServerScopeType) *ResourceServerType { + s.Scopes = v return s } -// SetDeliveryMedium sets the DeliveryMedium field's value. -func (s *MFAOptionType) SetDeliveryMedium(v string) *MFAOptionType { - s.DeliveryMedium = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *ResourceServerType) SetUserPoolId(v string) *ResourceServerType { + s.UserPoolId = &v return s } -// The message template structure. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/MessageTemplateType -type MessageTemplateType struct { +// The request to respond to an authentication challenge. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallengeRequest +type RespondToAuthChallengeInput struct { _ struct{} `type:"structure"` - // The message template for email messages. - EmailMessage *string `min:"6" type:"string"` + // The Amazon Pinpoint analytics metadata for collecting metrics for RespondToAuthChallenge + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` - // The subject line for email messages. - EmailSubject *string `min:"1" type:"string"` + // The challenge name. For more information, see . + // + // ADMIN_NO_SRP_AUTH is not a valid value. + // + // ChallengeName is a required field + ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"` - // The message template for SMS messages. - SMSMessage *string `min:"6" type:"string"` + // The challenge responses. These are inputs corresponding to the value of ChallengeName, + // for example: + // + // * SMS_MFA: SMS_MFA_CODE, USERNAME, SECRET_HASH (if app client is configured + // with client secret). + // + // * PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, + // TIMESTAMP, USERNAME, SECRET_HASH (if app client is configured with client + // secret). + // + // * NEW_PASSWORD_REQUIRED: NEW_PASSWORD, any other required attributes, + // USERNAME, SECRET_HASH (if app client is configured with client secret). + ChallengeResponses map[string]*string `type:"map"` + + // The app client ID. + // + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` + + // The session which should be passed both ways in challenge-response calls + // to the service. If InitiateAuth or RespondToAuthChallenge API call determines + // that the caller needs to go through another challenge, they return a session + // with other challenge parameters. This session should be passed as it is to + // the next RespondToAuthChallenge API call. + Session *string `min:"20" type:"string"` + + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + UserContextData *UserContextDataType `type:"structure"` } // String returns the string representation -func (s MessageTemplateType) String() string { +func (s RespondToAuthChallengeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MessageTemplateType) GoString() string { +func (s RespondToAuthChallengeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MessageTemplateType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MessageTemplateType"} - if s.EmailMessage != nil && len(*s.EmailMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("EmailMessage", 6)) +func (s *RespondToAuthChallengeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RespondToAuthChallengeInput"} + if s.ChallengeName == nil { + invalidParams.Add(request.NewErrParamRequired("ChallengeName")) } - if s.EmailSubject != nil && len(*s.EmailSubject) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EmailSubject", 1)) + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) } - if s.SMSMessage != nil && len(*s.SMSMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("SMSMessage", 6)) + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) + } + if s.Session != nil && len(*s.Session) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Session", 20)) } if invalidParams.Len() > 0 { @@ -16773,327 +20246,286 @@ func (s *MessageTemplateType) Validate() error { return nil } -// SetEmailMessage sets the EmailMessage field's value. -func (s *MessageTemplateType) SetEmailMessage(v string) *MessageTemplateType { - s.EmailMessage = &v +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *RespondToAuthChallengeInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *RespondToAuthChallengeInput { + s.AnalyticsMetadata = v return s } -// SetEmailSubject sets the EmailSubject field's value. -func (s *MessageTemplateType) SetEmailSubject(v string) *MessageTemplateType { - s.EmailSubject = &v +// SetChallengeName sets the ChallengeName field's value. +func (s *RespondToAuthChallengeInput) SetChallengeName(v string) *RespondToAuthChallengeInput { + s.ChallengeName = &v return s } -// SetSMSMessage sets the SMSMessage field's value. -func (s *MessageTemplateType) SetSMSMessage(v string) *MessageTemplateType { - s.SMSMessage = &v +// SetChallengeResponses sets the ChallengeResponses field's value. +func (s *RespondToAuthChallengeInput) SetChallengeResponses(v map[string]*string) *RespondToAuthChallengeInput { + s.ChallengeResponses = v return s } -// The new device metadata type. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/NewDeviceMetadataType -type NewDeviceMetadataType struct { - _ struct{} `type:"structure"` - - // The device group key. - DeviceGroupKey *string `type:"string"` - - // The device key. - DeviceKey *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s NewDeviceMetadataType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s NewDeviceMetadataType) GoString() string { - return s.String() +// SetClientId sets the ClientId field's value. +func (s *RespondToAuthChallengeInput) SetClientId(v string) *RespondToAuthChallengeInput { + s.ClientId = &v + return s } -// SetDeviceGroupKey sets the DeviceGroupKey field's value. -func (s *NewDeviceMetadataType) SetDeviceGroupKey(v string) *NewDeviceMetadataType { - s.DeviceGroupKey = &v +// SetSession sets the Session field's value. +func (s *RespondToAuthChallengeInput) SetSession(v string) *RespondToAuthChallengeInput { + s.Session = &v return s } -// SetDeviceKey sets the DeviceKey field's value. -func (s *NewDeviceMetadataType) SetDeviceKey(v string) *NewDeviceMetadataType { - s.DeviceKey = &v +// SetUserContextData sets the UserContextData field's value. +func (s *RespondToAuthChallengeInput) SetUserContextData(v *UserContextDataType) *RespondToAuthChallengeInput { + s.UserContextData = v return s } -// The minimum and maximum value of an attribute that is of the number data -// type. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/NumberAttributeConstraintsType -type NumberAttributeConstraintsType struct { +// The response to respond to the authentication challenge. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallengeResponse +type RespondToAuthChallengeOutput struct { _ struct{} `type:"structure"` - // The maximum value of an attribute that is of the number data type. - MaxValue *string `type:"string"` + // The result returned by the server in response to the request to respond to + // the authentication challenge. + AuthenticationResult *AuthenticationResultType `type:"structure"` - // The minimum value of an attribute that is of the number data type. - MinValue *string `type:"string"` + // The challenge name. For more information, see . + ChallengeName *string `type:"string" enum:"ChallengeNameType"` + + // The challenge parameters. For more information, see . + ChallengeParameters map[string]*string `type:"map"` + + // The session which should be passed both ways in challenge-response calls + // to the service. If the or API call determines that the caller needs to go + // through another challenge, they return a session with other challenge parameters. + // This session should be passed as it is to the next RespondToAuthChallenge + // API call. + Session *string `min:"20" type:"string"` } // String returns the string representation -func (s NumberAttributeConstraintsType) String() string { +func (s RespondToAuthChallengeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NumberAttributeConstraintsType) GoString() string { +func (s RespondToAuthChallengeOutput) GoString() string { return s.String() } -// SetMaxValue sets the MaxValue field's value. -func (s *NumberAttributeConstraintsType) SetMaxValue(v string) *NumberAttributeConstraintsType { - s.MaxValue = &v +// SetAuthenticationResult sets the AuthenticationResult field's value. +func (s *RespondToAuthChallengeOutput) SetAuthenticationResult(v *AuthenticationResultType) *RespondToAuthChallengeOutput { + s.AuthenticationResult = v + return s +} + +// SetChallengeName sets the ChallengeName field's value. +func (s *RespondToAuthChallengeOutput) SetChallengeName(v string) *RespondToAuthChallengeOutput { + s.ChallengeName = &v + return s +} + +// SetChallengeParameters sets the ChallengeParameters field's value. +func (s *RespondToAuthChallengeOutput) SetChallengeParameters(v map[string]*string) *RespondToAuthChallengeOutput { + s.ChallengeParameters = v return s } -// SetMinValue sets the MinValue field's value. -func (s *NumberAttributeConstraintsType) SetMinValue(v string) *NumberAttributeConstraintsType { - s.MinValue = &v +// SetSession sets the Session field's value. +func (s *RespondToAuthChallengeOutput) SetSession(v string) *RespondToAuthChallengeOutput { + s.Session = &v return s } -// The password policy type. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/PasswordPolicyType -type PasswordPolicyType struct { +// The risk configuration type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RiskConfigurationType +type RiskConfigurationType struct { _ struct{} `type:"structure"` - // The minimum length of the password policy that you have set. Cannot be less - // than 6. - MinimumLength *int64 `min:"6" type:"integer"` + // The account takeover risk configuration object including the NotifyConfiguration + // object and Actions to take in the case of an account takeover. + AccountTakeoverRiskConfiguration *AccountTakeoverRiskConfigurationType `type:"structure"` - // In the password policy that you have set, refers to whether you have required - // users to use at least one lowercase letter in their password. - RequireLowercase *bool `type:"boolean"` + // The app client ID. + ClientId *string `min:"1" type:"string"` - // In the password policy that you have set, refers to whether you have required - // users to use at least one number in their password. - RequireNumbers *bool `type:"boolean"` + // The compromised credentials risk configuration object including the EventFilter + // and the EventAction + CompromisedCredentialsRiskConfiguration *CompromisedCredentialsRiskConfigurationType `type:"structure"` - // In the password policy that you have set, refers to whether you have required - // users to use at least one symbol in their password. - RequireSymbols *bool `type:"boolean"` + // The last modified date. + LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // In the password policy that you have set, refers to whether you have required - // users to use at least one uppercase letter in their password. - RequireUppercase *bool `type:"boolean"` + // The configuration to override the risk decision. + RiskExceptionConfiguration *RiskExceptionConfigurationType `type:"structure"` + + // The user pool ID. + UserPoolId *string `min:"1" type:"string"` } // String returns the string representation -func (s PasswordPolicyType) String() string { +func (s RiskConfigurationType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PasswordPolicyType) GoString() string { +func (s RiskConfigurationType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PasswordPolicyType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PasswordPolicyType"} - if s.MinimumLength != nil && *s.MinimumLength < 6 { - invalidParams.Add(request.NewErrParamMinValue("MinimumLength", 6)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAccountTakeoverRiskConfiguration sets the AccountTakeoverRiskConfiguration field's value. +func (s *RiskConfigurationType) SetAccountTakeoverRiskConfiguration(v *AccountTakeoverRiskConfigurationType) *RiskConfigurationType { + s.AccountTakeoverRiskConfiguration = v + return s } -// SetMinimumLength sets the MinimumLength field's value. -func (s *PasswordPolicyType) SetMinimumLength(v int64) *PasswordPolicyType { - s.MinimumLength = &v +// SetClientId sets the ClientId field's value. +func (s *RiskConfigurationType) SetClientId(v string) *RiskConfigurationType { + s.ClientId = &v return s } -// SetRequireLowercase sets the RequireLowercase field's value. -func (s *PasswordPolicyType) SetRequireLowercase(v bool) *PasswordPolicyType { - s.RequireLowercase = &v +// SetCompromisedCredentialsRiskConfiguration sets the CompromisedCredentialsRiskConfiguration field's value. +func (s *RiskConfigurationType) SetCompromisedCredentialsRiskConfiguration(v *CompromisedCredentialsRiskConfigurationType) *RiskConfigurationType { + s.CompromisedCredentialsRiskConfiguration = v return s } -// SetRequireNumbers sets the RequireNumbers field's value. -func (s *PasswordPolicyType) SetRequireNumbers(v bool) *PasswordPolicyType { - s.RequireNumbers = &v +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *RiskConfigurationType) SetLastModifiedDate(v time.Time) *RiskConfigurationType { + s.LastModifiedDate = &v return s } -// SetRequireSymbols sets the RequireSymbols field's value. -func (s *PasswordPolicyType) SetRequireSymbols(v bool) *PasswordPolicyType { - s.RequireSymbols = &v +// SetRiskExceptionConfiguration sets the RiskExceptionConfiguration field's value. +func (s *RiskConfigurationType) SetRiskExceptionConfiguration(v *RiskExceptionConfigurationType) *RiskConfigurationType { + s.RiskExceptionConfiguration = v return s } -// SetRequireUppercase sets the RequireUppercase field's value. -func (s *PasswordPolicyType) SetRequireUppercase(v bool) *PasswordPolicyType { - s.RequireUppercase = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *RiskConfigurationType) SetUserPoolId(v string) *RiskConfigurationType { + s.UserPoolId = &v return s } -// A container for identity provider details. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ProviderDescription -type ProviderDescription struct { +// The type of the configuration to override the risk decision. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RiskExceptionConfigurationType +type RiskExceptionConfigurationType struct { _ struct{} `type:"structure"` - // The date the provider was added to the user pool. - CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The date the provider was last modified. - LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The identity provider name. - ProviderName *string `min:"1" type:"string"` + // Overrides the risk decision to always block the pre-authentication requests. + // The IP range is in CIDR notation: a compact representation of an IP address + // and its associated routing prefix. + BlockedIPRangeList []*string `type:"list"` - // The identity provider type. - ProviderType *string `type:"string" enum:"IdentityProviderTypeType"` + // Risk detection is not performed on the IP addresses in the range list. The + // IP range is in CIDR notation. + SkippedIPRangeList []*string `type:"list"` } // String returns the string representation -func (s ProviderDescription) String() string { +func (s RiskExceptionConfigurationType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProviderDescription) GoString() string { +func (s RiskExceptionConfigurationType) GoString() string { return s.String() } -// SetCreationDate sets the CreationDate field's value. -func (s *ProviderDescription) SetCreationDate(v time.Time) *ProviderDescription { - s.CreationDate = &v - return s -} - -// SetLastModifiedDate sets the LastModifiedDate field's value. -func (s *ProviderDescription) SetLastModifiedDate(v time.Time) *ProviderDescription { - s.LastModifiedDate = &v - return s -} - -// SetProviderName sets the ProviderName field's value. -func (s *ProviderDescription) SetProviderName(v string) *ProviderDescription { - s.ProviderName = &v +// SetBlockedIPRangeList sets the BlockedIPRangeList field's value. +func (s *RiskExceptionConfigurationType) SetBlockedIPRangeList(v []*string) *RiskExceptionConfigurationType { + s.BlockedIPRangeList = v return s } -// SetProviderType sets the ProviderType field's value. -func (s *ProviderDescription) SetProviderType(v string) *ProviderDescription { - s.ProviderType = &v +// SetSkippedIPRangeList sets the SkippedIPRangeList field's value. +func (s *RiskExceptionConfigurationType) SetSkippedIPRangeList(v []*string) *RiskExceptionConfigurationType { + s.SkippedIPRangeList = v return s } -// A container for information about an identity provider for a user pool. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ProviderUserIdentifierType -type ProviderUserIdentifierType struct { +// The SMS multi-factor authentication (MFA) settings type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SMSMfaSettingsType +type SMSMfaSettingsType struct { _ struct{} `type:"structure"` - // The name of the provider attribute to link to, for example, NameID. - ProviderAttributeName *string `type:"string"` - - // The value of the provider attribute to link to, for example, xxxxx_account. - ProviderAttributeValue *string `type:"string"` + // Specifies whether SMS text message MFA is enabled. + Enabled *bool `type:"boolean"` - // The name of the provider, for example, Facebook, Google, or Login with Amazon. - ProviderName *string `min:"1" type:"string"` + // The preferred MFA method. + PreferredMfa *bool `type:"boolean"` } // String returns the string representation -func (s ProviderUserIdentifierType) String() string { +func (s SMSMfaSettingsType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProviderUserIdentifierType) GoString() string { +func (s SMSMfaSettingsType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ProviderUserIdentifierType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ProviderUserIdentifierType"} - if s.ProviderName != nil && len(*s.ProviderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetProviderAttributeName sets the ProviderAttributeName field's value. -func (s *ProviderUserIdentifierType) SetProviderAttributeName(v string) *ProviderUserIdentifierType { - s.ProviderAttributeName = &v - return s -} - -// SetProviderAttributeValue sets the ProviderAttributeValue field's value. -func (s *ProviderUserIdentifierType) SetProviderAttributeValue(v string) *ProviderUserIdentifierType { - s.ProviderAttributeValue = &v +// SetEnabled sets the Enabled field's value. +func (s *SMSMfaSettingsType) SetEnabled(v bool) *SMSMfaSettingsType { + s.Enabled = &v return s } -// SetProviderName sets the ProviderName field's value. -func (s *ProviderUserIdentifierType) SetProviderName(v string) *ProviderUserIdentifierType { - s.ProviderName = &v +// SetPreferredMfa sets the PreferredMfa field's value. +func (s *SMSMfaSettingsType) SetPreferredMfa(v bool) *SMSMfaSettingsType { + s.PreferredMfa = &v return s } -// Represents the request to resend the confirmation code. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCodeRequest -type ResendConfirmationCodeInput struct { +// Contains information about the schema attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SchemaAttributeType +type SchemaAttributeType struct { _ struct{} `type:"structure"` - // The ID of the client associated with the user pool. - // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + // The attribute data type. + AttributeDataType *string `type:"string" enum:"AttributeDataType"` - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` + // Specifies whether the attribute type is developer only. + DeveloperOnlyAttribute *bool `type:"boolean"` - // The user name of the user to whom you wish to resend a confirmation code. - // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // Specifies whether the attribute can be changed once it has been created. + Mutable *bool `type:"boolean"` + + // A schema attribute of the name type. + Name *string `min:"1" type:"string"` + + // Specifies the constraints for an attribute of the number type. + NumberAttributeConstraints *NumberAttributeConstraintsType `type:"structure"` + + // Specifies whether a user pool attribute is required. If the attribute is + // required and the user does not provide a value, registration or sign-in will + // fail. + Required *bool `type:"boolean"` + + // Specifies the constraints for an attribute of the string type. + StringAttributeConstraints *StringAttributeConstraintsType `type:"structure"` } // String returns the string representation -func (s ResendConfirmationCodeInput) String() string { +func (s SchemaAttributeType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResendConfirmationCodeInput) GoString() string { +func (s SchemaAttributeType) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ResendConfirmationCodeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResendConfirmationCodeInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) +func (s *SchemaAttributeType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SchemaAttributeType"} + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { @@ -17102,91 +20534,107 @@ func (s *ResendConfirmationCodeInput) Validate() error { return nil } -// SetClientId sets the ClientId field's value. -func (s *ResendConfirmationCodeInput) SetClientId(v string) *ResendConfirmationCodeInput { - s.ClientId = &v +// SetAttributeDataType sets the AttributeDataType field's value. +func (s *SchemaAttributeType) SetAttributeDataType(v string) *SchemaAttributeType { + s.AttributeDataType = &v return s } -// SetSecretHash sets the SecretHash field's value. -func (s *ResendConfirmationCodeInput) SetSecretHash(v string) *ResendConfirmationCodeInput { - s.SecretHash = &v +// SetDeveloperOnlyAttribute sets the DeveloperOnlyAttribute field's value. +func (s *SchemaAttributeType) SetDeveloperOnlyAttribute(v bool) *SchemaAttributeType { + s.DeveloperOnlyAttribute = &v return s } -// SetUsername sets the Username field's value. -func (s *ResendConfirmationCodeInput) SetUsername(v string) *ResendConfirmationCodeInput { - s.Username = &v +// SetMutable sets the Mutable field's value. +func (s *SchemaAttributeType) SetMutable(v bool) *SchemaAttributeType { + s.Mutable = &v return s } -// The response from the server when the Amazon Cognito Your User Pools service -// makes the request to resend a confirmation code. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCodeResponse -type ResendConfirmationCodeOutput struct { - _ struct{} `type:"structure"` - - // The code delivery details returned by the server in response to the request - // to resend the confirmation code. - CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` -} - -// String returns the string representation -func (s ResendConfirmationCodeOutput) String() string { - return awsutil.Prettify(s) +// SetName sets the Name field's value. +func (s *SchemaAttributeType) SetName(v string) *SchemaAttributeType { + s.Name = &v + return s } -// GoString returns the string representation -func (s ResendConfirmationCodeOutput) GoString() string { - return s.String() +// SetNumberAttributeConstraints sets the NumberAttributeConstraints field's value. +func (s *SchemaAttributeType) SetNumberAttributeConstraints(v *NumberAttributeConstraintsType) *SchemaAttributeType { + s.NumberAttributeConstraints = v + return s } -// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. -func (s *ResendConfirmationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ResendConfirmationCodeOutput { - s.CodeDeliveryDetails = v +// SetRequired sets the Required field's value. +func (s *SchemaAttributeType) SetRequired(v bool) *SchemaAttributeType { + s.Required = &v + return s +} + +// SetStringAttributeConstraints sets the StringAttributeConstraints field's value. +func (s *SchemaAttributeType) SetStringAttributeConstraints(v *StringAttributeConstraintsType) *SchemaAttributeType { + s.StringAttributeConstraints = v return s } -// A resource server scope. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResourceServerScopeType -type ResourceServerScopeType struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetRiskConfigurationRequest +type SetRiskConfigurationInput struct { _ struct{} `type:"structure"` - // A description of the scope. + // The account takeover risk configuration. + AccountTakeoverRiskConfiguration *AccountTakeoverRiskConfigurationType `type:"structure"` + + // The app client ID. If ClientId is null, then the risk configuration is mapped + // to userPoolId. When the client ID is null, the same risk configuration is + // applied to all the clients in the userPool. // - // ScopeDescription is a required field - ScopeDescription *string `min:"1" type:"string" required:"true"` + // Otherwise, ClientId is mapped to the client. When the client ID is not null, + // the user pool configuration is overridden and the risk configuration for + // the client is used instead. + ClientId *string `min:"1" type:"string"` - // The name of the scope. + // The compromised credentials risk configuration. + CompromisedCredentialsRiskConfiguration *CompromisedCredentialsRiskConfigurationType `type:"structure"` + + // The configuration to override the risk decision. + RiskExceptionConfiguration *RiskExceptionConfigurationType `type:"structure"` + + // The user pool ID. // - // ScopeName is a required field - ScopeName *string `min:"1" type:"string" required:"true"` + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ResourceServerScopeType) String() string { +func (s SetRiskConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResourceServerScopeType) GoString() string { +func (s SetRiskConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ResourceServerScopeType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResourceServerScopeType"} - if s.ScopeDescription == nil { - invalidParams.Add(request.NewErrParamRequired("ScopeDescription")) +func (s *SetRiskConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SetRiskConfigurationInput"} + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } - if s.ScopeDescription != nil && len(*s.ScopeDescription) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ScopeDescription", 1)) + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } - if s.ScopeName == nil { - invalidParams.Add(request.NewErrParamRequired("ScopeName")) + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } - if s.ScopeName != nil && len(*s.ScopeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ScopeName", 1)) + if s.AccountTakeoverRiskConfiguration != nil { + if err := s.AccountTakeoverRiskConfiguration.Validate(); err != nil { + invalidParams.AddNested("AccountTakeoverRiskConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.CompromisedCredentialsRiskConfiguration != nil { + if err := s.CompromisedCredentialsRiskConfiguration.Validate(); err != nil { + invalidParams.AddNested("CompromisedCredentialsRiskConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -17195,133 +20643,104 @@ func (s *ResourceServerScopeType) Validate() error { return nil } -// SetScopeDescription sets the ScopeDescription field's value. -func (s *ResourceServerScopeType) SetScopeDescription(v string) *ResourceServerScopeType { - s.ScopeDescription = &v +// SetAccountTakeoverRiskConfiguration sets the AccountTakeoverRiskConfiguration field's value. +func (s *SetRiskConfigurationInput) SetAccountTakeoverRiskConfiguration(v *AccountTakeoverRiskConfigurationType) *SetRiskConfigurationInput { + s.AccountTakeoverRiskConfiguration = v return s } -// SetScopeName sets the ScopeName field's value. -func (s *ResourceServerScopeType) SetScopeName(v string) *ResourceServerScopeType { - s.ScopeName = &v +// SetClientId sets the ClientId field's value. +func (s *SetRiskConfigurationInput) SetClientId(v string) *SetRiskConfigurationInput { + s.ClientId = &v return s } -// A container for information about a resource server for a user pool. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResourceServerType -type ResourceServerType struct { - _ struct{} `type:"structure"` +// SetCompromisedCredentialsRiskConfiguration sets the CompromisedCredentialsRiskConfiguration field's value. +func (s *SetRiskConfigurationInput) SetCompromisedCredentialsRiskConfiguration(v *CompromisedCredentialsRiskConfigurationType) *SetRiskConfigurationInput { + s.CompromisedCredentialsRiskConfiguration = v + return s +} - // The identifier for the resource server. - Identifier *string `min:"1" type:"string"` +// SetRiskExceptionConfiguration sets the RiskExceptionConfiguration field's value. +func (s *SetRiskConfigurationInput) SetRiskExceptionConfiguration(v *RiskExceptionConfigurationType) *SetRiskConfigurationInput { + s.RiskExceptionConfiguration = v + return s +} - // The name of the resource server. - Name *string `min:"1" type:"string"` +// SetUserPoolId sets the UserPoolId field's value. +func (s *SetRiskConfigurationInput) SetUserPoolId(v string) *SetRiskConfigurationInput { + s.UserPoolId = &v + return s +} - // A list of scopes that are defined for the resource server. - Scopes []*ResourceServerScopeType `type:"list"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetRiskConfigurationResponse +type SetRiskConfigurationOutput struct { + _ struct{} `type:"structure"` - // The user pool ID for the user pool that hosts the resource server. - UserPoolId *string `min:"1" type:"string"` + // The risk configuration. + // + // RiskConfiguration is a required field + RiskConfiguration *RiskConfigurationType `type:"structure" required:"true"` } // String returns the string representation -func (s ResourceServerType) String() string { +func (s SetRiskConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResourceServerType) GoString() string { +func (s SetRiskConfigurationOutput) GoString() string { return s.String() } -// SetIdentifier sets the Identifier field's value. -func (s *ResourceServerType) SetIdentifier(v string) *ResourceServerType { - s.Identifier = &v - return s -} - -// SetName sets the Name field's value. -func (s *ResourceServerType) SetName(v string) *ResourceServerType { - s.Name = &v - return s -} - -// SetScopes sets the Scopes field's value. -func (s *ResourceServerType) SetScopes(v []*ResourceServerScopeType) *ResourceServerType { - s.Scopes = v - return s -} - -// SetUserPoolId sets the UserPoolId field's value. -func (s *ResourceServerType) SetUserPoolId(v string) *ResourceServerType { - s.UserPoolId = &v +// SetRiskConfiguration sets the RiskConfiguration field's value. +func (s *SetRiskConfigurationOutput) SetRiskConfiguration(v *RiskConfigurationType) *SetRiskConfigurationOutput { + s.RiskConfiguration = v return s } -// The request to respond to an authentication challenge. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallengeRequest -type RespondToAuthChallengeInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomizationRequest +type SetUICustomizationInput struct { _ struct{} `type:"structure"` - // The challenge name. For more information, see InitiateAuth (API_InitiateAuth.html). - // - // ADMIN_NO_SRP_AUTH is not a valid value. - // - // ChallengeName is a required field - ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"` + // The CSS values in the UI customization. + CSS *string `type:"string"` - // The challenge responses. These are inputs corresponding to the value of ChallengeName, - // for example: - // - // * SMS_MFA: SMS_MFA_CODE, USERNAME, SECRET_HASH (if app client is configured - // with client secret). - // - // * PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, - // TIMESTAMP, USERNAME, SECRET_HASH (if app client is configured with client - // secret). - // - // * NEW_PASSWORD_REQUIRED: NEW_PASSWORD, any other required attributes, - // USERNAME, SECRET_HASH (if app client is configured with client secret). - ChallengeResponses map[string]*string `type:"map"` + // The client ID for the client app. + ClientId *string `min:"1" type:"string"` - // The app client ID. + // The uploaded logo image for the UI customization. // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + // ImageFile is automatically base64 encoded/decoded by the SDK. + ImageFile []byte `type:"blob"` - // The session which should be passed both ways in challenge-response calls - // to the service. If InitiateAuth or RespondToAuthChallenge API call determines - // that the caller needs to go through another challenge, they return a session - // with other challenge parameters. This session should be passed as it is to - // the next RespondToAuthChallenge API call. - Session *string `min:"20" type:"string"` + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s RespondToAuthChallengeInput) String() string { +func (s SetUICustomizationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RespondToAuthChallengeInput) GoString() string { +func (s SetUICustomizationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *RespondToAuthChallengeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RespondToAuthChallengeInput"} - if s.ChallengeName == nil { - invalidParams.Add(request.NewErrParamRequired("ChallengeName")) - } - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } +func (s *SetUICustomizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SetUICustomizationInput"} if s.ClientId != nil && len(*s.ClientId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } - if s.Session != nil && len(*s.Session) < 20 { - invalidParams.Add(request.NewErrParamMinLen("Session", 20)) + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } if invalidParams.Len() > 0 { @@ -17330,132 +20749,87 @@ func (s *RespondToAuthChallengeInput) Validate() error { return nil } -// SetChallengeName sets the ChallengeName field's value. -func (s *RespondToAuthChallengeInput) SetChallengeName(v string) *RespondToAuthChallengeInput { - s.ChallengeName = &v +// SetCSS sets the CSS field's value. +func (s *SetUICustomizationInput) SetCSS(v string) *SetUICustomizationInput { + s.CSS = &v return s } -// SetChallengeResponses sets the ChallengeResponses field's value. -func (s *RespondToAuthChallengeInput) SetChallengeResponses(v map[string]*string) *RespondToAuthChallengeInput { - s.ChallengeResponses = v +// SetClientId sets the ClientId field's value. +func (s *SetUICustomizationInput) SetClientId(v string) *SetUICustomizationInput { + s.ClientId = &v return s } -// SetClientId sets the ClientId field's value. -func (s *RespondToAuthChallengeInput) SetClientId(v string) *RespondToAuthChallengeInput { - s.ClientId = &v +// SetImageFile sets the ImageFile field's value. +func (s *SetUICustomizationInput) SetImageFile(v []byte) *SetUICustomizationInput { + s.ImageFile = v return s } -// SetSession sets the Session field's value. -func (s *RespondToAuthChallengeInput) SetSession(v string) *RespondToAuthChallengeInput { - s.Session = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *SetUICustomizationInput) SetUserPoolId(v string) *SetUICustomizationInput { + s.UserPoolId = &v return s } -// The response to respond to the authentication challenge. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallengeResponse -type RespondToAuthChallengeOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomizationResponse +type SetUICustomizationOutput struct { _ struct{} `type:"structure"` - // The result returned by the server in response to the request to respond to - // the authentication challenge. - AuthenticationResult *AuthenticationResultType `type:"structure"` - - // The challenge name. For more information, see InitiateAuth (API_InitiateAuth.html). - ChallengeName *string `type:"string" enum:"ChallengeNameType"` - - // The challenge parameters. For more information, see InitiateAuth (API_InitiateAuth.html). - ChallengeParameters map[string]*string `type:"map"` - - // The session which should be passed both ways in challenge-response calls - // to the service. If the InitiateAuth (API_InitiateAuth.html) or RespondToAuthChallenge - // (API_RespondToAuthChallenge.html) API call determines that the caller needs - // to go through another challenge, they return a session with other challenge - // parameters. This session should be passed as it is to the next RespondToAuthChallenge - // API call. - Session *string `min:"20" type:"string"` + // The UI customization information. + // + // UICustomization is a required field + UICustomization *UICustomizationType `type:"structure" required:"true"` } // String returns the string representation -func (s RespondToAuthChallengeOutput) String() string { +func (s SetUICustomizationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RespondToAuthChallengeOutput) GoString() string { +func (s SetUICustomizationOutput) GoString() string { return s.String() } -// SetAuthenticationResult sets the AuthenticationResult field's value. -func (s *RespondToAuthChallengeOutput) SetAuthenticationResult(v *AuthenticationResultType) *RespondToAuthChallengeOutput { - s.AuthenticationResult = v - return s -} - -// SetChallengeName sets the ChallengeName field's value. -func (s *RespondToAuthChallengeOutput) SetChallengeName(v string) *RespondToAuthChallengeOutput { - s.ChallengeName = &v - return s -} - -// SetChallengeParameters sets the ChallengeParameters field's value. -func (s *RespondToAuthChallengeOutput) SetChallengeParameters(v map[string]*string) *RespondToAuthChallengeOutput { - s.ChallengeParameters = v - return s -} - -// SetSession sets the Session field's value. -func (s *RespondToAuthChallengeOutput) SetSession(v string) *RespondToAuthChallengeOutput { - s.Session = &v +// SetUICustomization sets the UICustomization field's value. +func (s *SetUICustomizationOutput) SetUICustomization(v *UICustomizationType) *SetUICustomizationOutput { + s.UICustomization = v return s } -// Contains information about the schema attribute. -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SchemaAttributeType -type SchemaAttributeType struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserMFAPreferenceRequest +type SetUserMFAPreferenceInput struct { _ struct{} `type:"structure"` - // The attribute data type. - AttributeDataType *string `type:"string" enum:"AttributeDataType"` - - // Specifies whether the attribute type is developer only. - DeveloperOnlyAttribute *bool `type:"boolean"` - - // Specifies whether the attribute can be changed once it has been created. - Mutable *bool `type:"boolean"` - - // A schema attribute of the name type. - Name *string `min:"1" type:"string"` - - // Specifies the constraints for an attribute of the number type. - NumberAttributeConstraints *NumberAttributeConstraintsType `type:"structure"` + // The access token. + // + // AccessToken is a required field + AccessToken *string `type:"string" required:"true"` - // Specifies whether a user pool attribute is required. If the attribute is - // required and the user does not provide a value, registration or sign-in will - // fail. - Required *bool `type:"boolean"` + // The SMS text message multi-factor authentication (MFA) settings. + SMSMfaSettings *SMSMfaSettingsType `type:"structure"` - // Specifies the constraints for an attribute of the string type. - StringAttributeConstraints *StringAttributeConstraintsType `type:"structure"` + // The time-based one-time password software token MFA settings. + SoftwareTokenMfaSettings *SoftwareTokenMfaSettingsType `type:"structure"` } // String returns the string representation -func (s SchemaAttributeType) String() string { +func (s SetUserMFAPreferenceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SchemaAttributeType) GoString() string { +func (s SetUserMFAPreferenceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SchemaAttributeType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SchemaAttributeType"} - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) +func (s *SetUserMFAPreferenceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SetUserMFAPreferenceInput"} + if s.AccessToken == nil { + invalidParams.Add(request.NewErrParamRequired("AccessToken")) } if invalidParams.Len() > 0 { @@ -17464,91 +20838,82 @@ func (s *SchemaAttributeType) Validate() error { return nil } -// SetAttributeDataType sets the AttributeDataType field's value. -func (s *SchemaAttributeType) SetAttributeDataType(v string) *SchemaAttributeType { - s.AttributeDataType = &v - return s -} - -// SetDeveloperOnlyAttribute sets the DeveloperOnlyAttribute field's value. -func (s *SchemaAttributeType) SetDeveloperOnlyAttribute(v bool) *SchemaAttributeType { - s.DeveloperOnlyAttribute = &v +// SetAccessToken sets the AccessToken field's value. +func (s *SetUserMFAPreferenceInput) SetAccessToken(v string) *SetUserMFAPreferenceInput { + s.AccessToken = &v return s } -// SetMutable sets the Mutable field's value. -func (s *SchemaAttributeType) SetMutable(v bool) *SchemaAttributeType { - s.Mutable = &v +// SetSMSMfaSettings sets the SMSMfaSettings field's value. +func (s *SetUserMFAPreferenceInput) SetSMSMfaSettings(v *SMSMfaSettingsType) *SetUserMFAPreferenceInput { + s.SMSMfaSettings = v return s } -// SetName sets the Name field's value. -func (s *SchemaAttributeType) SetName(v string) *SchemaAttributeType { - s.Name = &v +// SetSoftwareTokenMfaSettings sets the SoftwareTokenMfaSettings field's value. +func (s *SetUserMFAPreferenceInput) SetSoftwareTokenMfaSettings(v *SoftwareTokenMfaSettingsType) *SetUserMFAPreferenceInput { + s.SoftwareTokenMfaSettings = v return s } -// SetNumberAttributeConstraints sets the NumberAttributeConstraints field's value. -func (s *SchemaAttributeType) SetNumberAttributeConstraints(v *NumberAttributeConstraintsType) *SchemaAttributeType { - s.NumberAttributeConstraints = v - return s +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserMFAPreferenceResponse +type SetUserMFAPreferenceOutput struct { + _ struct{} `type:"structure"` } -// SetRequired sets the Required field's value. -func (s *SchemaAttributeType) SetRequired(v bool) *SchemaAttributeType { - s.Required = &v - return s +// String returns the string representation +func (s SetUserMFAPreferenceOutput) String() string { + return awsutil.Prettify(s) } -// SetStringAttributeConstraints sets the StringAttributeConstraints field's value. -func (s *SchemaAttributeType) SetStringAttributeConstraints(v *StringAttributeConstraintsType) *SchemaAttributeType { - s.StringAttributeConstraints = v - return s +// GoString returns the string representation +func (s SetUserMFAPreferenceOutput) GoString() string { + return s.String() } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomizationRequest -type SetUICustomizationInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserPoolMfaConfigRequest +type SetUserPoolMfaConfigInput struct { _ struct{} `type:"structure"` - // The CSS values in the UI customization. - CSS *string `type:"string"` + // The MFA configuration. + MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` - // The client ID for the client app. - ClientId *string `min:"1" type:"string"` + // The SMS text message MFA configuration. + SmsMfaConfiguration *SmsMfaConfigType `type:"structure"` - // The uploaded logo image for the UI customization. - // - // ImageFile is automatically base64 encoded/decoded by the SDK. - ImageFile []byte `type:"blob"` + // The software token MFA configuration. + SoftwareTokenMfaConfiguration *SoftwareTokenMfaConfigType `type:"structure"` - // The user pool ID for the user pool. + // The user pool ID. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s SetUICustomizationInput) String() string { +func (s SetUserPoolMfaConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SetUICustomizationInput) GoString() string { +func (s SetUserPoolMfaConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SetUICustomizationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetUICustomizationInput"} - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } +func (s *SetUserPoolMfaConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SetUserPoolMfaConfigInput"} if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } + if s.SmsMfaConfiguration != nil { + if err := s.SmsMfaConfiguration.Validate(); err != nil { + invalidParams.AddNested("SmsMfaConfiguration", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -17556,53 +20921,69 @@ func (s *SetUICustomizationInput) Validate() error { return nil } -// SetCSS sets the CSS field's value. -func (s *SetUICustomizationInput) SetCSS(v string) *SetUICustomizationInput { - s.CSS = &v +// SetMfaConfiguration sets the MfaConfiguration field's value. +func (s *SetUserPoolMfaConfigInput) SetMfaConfiguration(v string) *SetUserPoolMfaConfigInput { + s.MfaConfiguration = &v return s } -// SetClientId sets the ClientId field's value. -func (s *SetUICustomizationInput) SetClientId(v string) *SetUICustomizationInput { - s.ClientId = &v +// SetSmsMfaConfiguration sets the SmsMfaConfiguration field's value. +func (s *SetUserPoolMfaConfigInput) SetSmsMfaConfiguration(v *SmsMfaConfigType) *SetUserPoolMfaConfigInput { + s.SmsMfaConfiguration = v return s } -// SetImageFile sets the ImageFile field's value. -func (s *SetUICustomizationInput) SetImageFile(v []byte) *SetUICustomizationInput { - s.ImageFile = v +// SetSoftwareTokenMfaConfiguration sets the SoftwareTokenMfaConfiguration field's value. +func (s *SetUserPoolMfaConfigInput) SetSoftwareTokenMfaConfiguration(v *SoftwareTokenMfaConfigType) *SetUserPoolMfaConfigInput { + s.SoftwareTokenMfaConfiguration = v return s } // SetUserPoolId sets the UserPoolId field's value. -func (s *SetUICustomizationInput) SetUserPoolId(v string) *SetUICustomizationInput { +func (s *SetUserPoolMfaConfigInput) SetUserPoolId(v string) *SetUserPoolMfaConfigInput { s.UserPoolId = &v return s } -// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomizationResponse -type SetUICustomizationOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserPoolMfaConfigResponse +type SetUserPoolMfaConfigOutput struct { _ struct{} `type:"structure"` - // The UI customization information. - // - // UICustomization is a required field - UICustomization *UICustomizationType `type:"structure" required:"true"` + // The MFA configuration. + MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` + + // The SMS text message MFA configuration. + SmsMfaConfiguration *SmsMfaConfigType `type:"structure"` + + // The software token MFA configuration. + SoftwareTokenMfaConfiguration *SoftwareTokenMfaConfigType `type:"structure"` } // String returns the string representation -func (s SetUICustomizationOutput) String() string { +func (s SetUserPoolMfaConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SetUICustomizationOutput) GoString() string { +func (s SetUserPoolMfaConfigOutput) GoString() string { return s.String() } -// SetUICustomization sets the UICustomization field's value. -func (s *SetUICustomizationOutput) SetUICustomization(v *UICustomizationType) *SetUICustomizationOutput { - s.UICustomization = v +// SetMfaConfiguration sets the MfaConfiguration field's value. +func (s *SetUserPoolMfaConfigOutput) SetMfaConfiguration(v string) *SetUserPoolMfaConfigOutput { + s.MfaConfiguration = &v + return s +} + +// SetSmsMfaConfiguration sets the SmsMfaConfiguration field's value. +func (s *SetUserPoolMfaConfigOutput) SetSmsMfaConfiguration(v *SmsMfaConfigType) *SetUserPoolMfaConfigOutput { + s.SmsMfaConfiguration = v + return s +} + +// SetSoftwareTokenMfaConfiguration sets the SoftwareTokenMfaConfiguration field's value. +func (s *SetUserPoolMfaConfigOutput) SetSoftwareTokenMfaConfiguration(v *SoftwareTokenMfaConfigType) *SetUserPoolMfaConfigOutput { + s.SoftwareTokenMfaConfiguration = v return s } @@ -17691,6 +21072,10 @@ func (s SetUserSettingsOutput) GoString() string { type SignUpInput struct { _ struct{} `type:"structure"` + // The Amazon Pinpoint analytics metadata for collecting metrics for SignUp + // calls. + AnalyticsMetadata *AnalyticsMetadataType `type:"structure"` + // The ID of the client associated with the user pool. // // ClientId is a required field @@ -17711,6 +21096,11 @@ type SignUpInput struct { // name. UserAttributes []*AttributeType `type:"list"` + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + UserContextData *UserContextDataType `type:"structure"` + // The user name of the user you wish to register. // // Username is a required field @@ -17781,6 +21171,12 @@ func (s *SignUpInput) Validate() error { return nil } +// SetAnalyticsMetadata sets the AnalyticsMetadata field's value. +func (s *SignUpInput) SetAnalyticsMetadata(v *AnalyticsMetadataType) *SignUpInput { + s.AnalyticsMetadata = v + return s +} + // SetClientId sets the ClientId field's value. func (s *SignUpInput) SetClientId(v string) *SignUpInput { s.ClientId = &v @@ -17805,6 +21201,12 @@ func (s *SignUpInput) SetUserAttributes(v []*AttributeType) *SignUpInput { return s } +// SetUserContextData sets the UserContextData field's value. +func (s *SignUpInput) SetUserContextData(v *UserContextDataType) *SignUpInput { + s.UserContextData = v + return s +} + // SetUsername sets the Username field's value. func (s *SignUpInput) SetUsername(v string) *SignUpInput { s.Username = &v @@ -17918,6 +21320,117 @@ func (s *SmsConfigurationType) SetSnsCallerArn(v string) *SmsConfigurationType { return s } +// The SMS text message multi-factor authentication (MFA) configuration type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SmsMfaConfigType +type SmsMfaConfigType struct { + _ struct{} `type:"structure"` + + // The SMS authentication message. + SmsAuthenticationMessage *string `min:"6" type:"string"` + + // The SMS configuration. + SmsConfiguration *SmsConfigurationType `type:"structure"` +} + +// String returns the string representation +func (s SmsMfaConfigType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SmsMfaConfigType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SmsMfaConfigType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SmsMfaConfigType"} + if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 { + invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6)) + } + if s.SmsConfiguration != nil { + if err := s.SmsConfiguration.Validate(); err != nil { + invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSmsAuthenticationMessage sets the SmsAuthenticationMessage field's value. +func (s *SmsMfaConfigType) SetSmsAuthenticationMessage(v string) *SmsMfaConfigType { + s.SmsAuthenticationMessage = &v + return s +} + +// SetSmsConfiguration sets the SmsConfiguration field's value. +func (s *SmsMfaConfigType) SetSmsConfiguration(v *SmsConfigurationType) *SmsMfaConfigType { + s.SmsConfiguration = v + return s +} + +// The type used for enabling software token MFA at the user pool level. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SoftwareTokenMfaConfigType +type SoftwareTokenMfaConfigType struct { + _ struct{} `type:"structure"` + + // Specifies whether software token MFA is enabled. + Enabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s SoftwareTokenMfaConfigType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SoftwareTokenMfaConfigType) GoString() string { + return s.String() +} + +// SetEnabled sets the Enabled field's value. +func (s *SoftwareTokenMfaConfigType) SetEnabled(v bool) *SoftwareTokenMfaConfigType { + s.Enabled = &v + return s +} + +// The type used for enabling software token MFA at the user level. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SoftwareTokenMfaSettingsType +type SoftwareTokenMfaSettingsType struct { + _ struct{} `type:"structure"` + + // Specifies whether software token MFA is enabled. + Enabled *bool `type:"boolean"` + + // The preferred MFA method. + PreferredMfa *bool `type:"boolean"` +} + +// String returns the string representation +func (s SoftwareTokenMfaSettingsType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SoftwareTokenMfaSettingsType) GoString() string { + return s.String() +} + +// SetEnabled sets the Enabled field's value. +func (s *SoftwareTokenMfaSettingsType) SetEnabled(v bool) *SoftwareTokenMfaSettingsType { + s.Enabled = &v + return s +} + +// SetPreferredMfa sets the PreferredMfa field's value. +func (s *SoftwareTokenMfaSettingsType) SetPreferredMfa(v bool) *SoftwareTokenMfaSettingsType { + s.PreferredMfa = &v + return s +} + // Represents the request to start the user import job. // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJobRequest type StartUserImportJobInput struct { @@ -18090,15 +21603,15 @@ func (s *StopUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *StopUs return s } -// The type of constraints associated with an attribute of the string type. +// The constraints associated with a string attribute. // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StringAttributeConstraintsType type StringAttributeConstraintsType struct { _ struct{} `type:"structure"` - // The maximum length of an attribute value of the string type. + // The maximum length. MaxLength *string `type:"string"` - // The minimum length of an attribute value of the string type. + // The minimum length. MinLength *string `type:"string"` } @@ -18153,55 +21666,174 @@ type UICustomizationType struct { } // String returns the string representation -func (s UICustomizationType) String() string { +func (s UICustomizationType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UICustomizationType) GoString() string { + return s.String() +} + +// SetCSS sets the CSS field's value. +func (s *UICustomizationType) SetCSS(v string) *UICustomizationType { + s.CSS = &v + return s +} + +// SetCSSVersion sets the CSSVersion field's value. +func (s *UICustomizationType) SetCSSVersion(v string) *UICustomizationType { + s.CSSVersion = &v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *UICustomizationType) SetClientId(v string) *UICustomizationType { + s.ClientId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *UICustomizationType) SetCreationDate(v time.Time) *UICustomizationType { + s.CreationDate = &v + return s +} + +// SetImageUrl sets the ImageUrl field's value. +func (s *UICustomizationType) SetImageUrl(v string) *UICustomizationType { + s.ImageUrl = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *UICustomizationType) SetLastModifiedDate(v time.Time) *UICustomizationType { + s.LastModifiedDate = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *UICustomizationType) SetUserPoolId(v string) *UICustomizationType { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateAuthEventFeedbackRequest +type UpdateAuthEventFeedbackInput struct { + _ struct{} `type:"structure"` + + // The event ID. + // + // EventId is a required field + EventId *string `min:"1" type:"string" required:"true"` + + // The feedback token. + // + // FeedbackToken is a required field + FeedbackToken *string `type:"string" required:"true"` + + // The authentication event feedback value. + // + // FeedbackValue is a required field + FeedbackValue *string `type:"string" required:"true" enum:"FeedbackValueType"` + + // The user pool ID. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user pool username. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateAuthEventFeedbackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UICustomizationType) GoString() string { +func (s UpdateAuthEventFeedbackInput) GoString() string { return s.String() } -// SetCSS sets the CSS field's value. -func (s *UICustomizationType) SetCSS(v string) *UICustomizationType { - s.CSS = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAuthEventFeedbackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAuthEventFeedbackInput"} + if s.EventId == nil { + invalidParams.Add(request.NewErrParamRequired("EventId")) + } + if s.EventId != nil && len(*s.EventId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventId", 1)) + } + if s.FeedbackToken == nil { + invalidParams.Add(request.NewErrParamRequired("FeedbackToken")) + } + if s.FeedbackValue == nil { + invalidParams.Add(request.NewErrParamRequired("FeedbackValue")) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetCSSVersion sets the CSSVersion field's value. -func (s *UICustomizationType) SetCSSVersion(v string) *UICustomizationType { - s.CSSVersion = &v +// SetEventId sets the EventId field's value. +func (s *UpdateAuthEventFeedbackInput) SetEventId(v string) *UpdateAuthEventFeedbackInput { + s.EventId = &v return s } -// SetClientId sets the ClientId field's value. -func (s *UICustomizationType) SetClientId(v string) *UICustomizationType { - s.ClientId = &v +// SetFeedbackToken sets the FeedbackToken field's value. +func (s *UpdateAuthEventFeedbackInput) SetFeedbackToken(v string) *UpdateAuthEventFeedbackInput { + s.FeedbackToken = &v return s } -// SetCreationDate sets the CreationDate field's value. -func (s *UICustomizationType) SetCreationDate(v time.Time) *UICustomizationType { - s.CreationDate = &v +// SetFeedbackValue sets the FeedbackValue field's value. +func (s *UpdateAuthEventFeedbackInput) SetFeedbackValue(v string) *UpdateAuthEventFeedbackInput { + s.FeedbackValue = &v return s } -// SetImageUrl sets the ImageUrl field's value. -func (s *UICustomizationType) SetImageUrl(v string) *UICustomizationType { - s.ImageUrl = &v +// SetUserPoolId sets the UserPoolId field's value. +func (s *UpdateAuthEventFeedbackInput) SetUserPoolId(v string) *UpdateAuthEventFeedbackInput { + s.UserPoolId = &v return s } -// SetLastModifiedDate sets the LastModifiedDate field's value. -func (s *UICustomizationType) SetLastModifiedDate(v time.Time) *UICustomizationType { - s.LastModifiedDate = &v +// SetUsername sets the Username field's value. +func (s *UpdateAuthEventFeedbackInput) SetUsername(v string) *UpdateAuthEventFeedbackInput { + s.Username = &v return s } -// SetUserPoolId sets the UserPoolId field's value. -func (s *UICustomizationType) SetUserPoolId(v string) *UICustomizationType { - s.UserPoolId = &v - return s +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateAuthEventFeedbackResponse +type UpdateAuthEventFeedbackOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateAuthEventFeedbackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAuthEventFeedbackOutput) GoString() string { + return s.String() } // Represents the request to update the device status. @@ -18299,7 +21931,7 @@ type UpdateGroupInput struct { GroupName *string `min:"1" type:"string" required:"true"` // The new precedence value for the group. For more information about this parameter, - // see CreateGroup (API_CreateGroup.html). + // see . Precedence *int64 `type:"integer"` // The new role ARN for the group. This is used for setting the cognito:roles @@ -18748,6 +22380,10 @@ type UpdateUserPoolClientInput struct { // "openid", and "Cognito". AllowedOAuthScopes []*string `type:"list"` + // The Amazon Pinpoint analytics configuration for collecting metrics for this + // user pool. + AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"` + // A list of allowed callback URLs for the identity providers. CallbackURLs []*string `type:"list"` @@ -18820,6 +22456,11 @@ func (s *UpdateUserPoolClientInput) Validate() error { if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } + if s.AnalyticsConfiguration != nil { + if err := s.AnalyticsConfiguration.Validate(); err != nil { + invalidParams.AddNested("AnalyticsConfiguration", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -18845,6 +22486,12 @@ func (s *UpdateUserPoolClientInput) SetAllowedOAuthScopes(v []*string) *UpdateUs return s } +// SetAnalyticsConfiguration sets the AnalyticsConfiguration field's value. +func (s *UpdateUserPoolClientInput) SetAnalyticsConfiguration(v *AnalyticsConfigurationType) *UpdateUserPoolClientInput { + s.AnalyticsConfiguration = v + return s +} + // SetCallbackURLs sets the CallbackURLs field's value. func (s *UpdateUserPoolClientInput) SetCallbackURLs(v []*string) *UpdateUserPoolClientInput { s.CallbackURLs = v @@ -18989,6 +22636,10 @@ type UpdateUserPoolInput struct { // A container with information about the SMS verification message. SmsVerificationMessage *string `min:"6" type:"string"` + // Used to enable advanced security risk detection. Set the key AdvancedSecurityMode + // to the value "AUDIT". + UserPoolAddOns *UserPoolAddOnsType `type:"structure"` + // The user pool ID for the user pool you want to update. // // UserPoolId is a required field @@ -19058,6 +22709,11 @@ func (s *UpdateUserPoolInput) Validate() error { invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams)) } } + if s.UserPoolAddOns != nil { + if err := s.UserPoolAddOns.Validate(); err != nil { + invalidParams.AddNested("UserPoolAddOns", err.(request.ErrInvalidParams)) + } + } if s.VerificationMessageTemplate != nil { if err := s.VerificationMessageTemplate.Validate(); err != nil { invalidParams.AddNested("VerificationMessageTemplate", err.(request.ErrInvalidParams)) @@ -19142,6 +22798,12 @@ func (s *UpdateUserPoolInput) SetSmsVerificationMessage(v string) *UpdateUserPoo return s } +// SetUserPoolAddOns sets the UserPoolAddOns field's value. +func (s *UpdateUserPoolInput) SetUserPoolAddOns(v *UserPoolAddOnsType) *UpdateUserPoolInput { + s.UserPoolAddOns = v + return s +} + // SetUserPoolId sets the UserPoolId field's value. func (s *UpdateUserPoolInput) SetUserPoolId(v string) *UpdateUserPoolInput { s.UserPoolId = &v @@ -19177,6 +22839,35 @@ func (s UpdateUserPoolOutput) GoString() string { return s.String() } +// Contextual data such as the user's device fingerprint, IP address, or location +// used for evaluating the risk of an unexpected event by Amazon Cognito advanced +// security. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserContextDataType +type UserContextDataType struct { + _ struct{} `type:"structure"` + + // Contextual data such as the user's device fingerprint, IP address, or location + // used for evaluating the risk of an unexpected event by Amazon Cognito advanced + // security. + EncodedData *string `type:"string"` +} + +// String returns the string representation +func (s UserContextDataType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserContextDataType) GoString() string { + return s.String() +} + +// SetEncodedData sets the EncodedData field's value. +func (s *UserContextDataType) SetEncodedData(v string) *UserContextDataType { + s.EncodedData = &v + return s +} + // The user import job type. // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserImportJobType type UserImportJobType struct { @@ -19333,6 +23024,46 @@ func (s *UserImportJobType) SetUserPoolId(v string) *UserImportJobType { return s } +// The user pool add-ons type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolAddOnsType +type UserPoolAddOnsType struct { + _ struct{} `type:"structure"` + + // The advanced security mode. + // + // AdvancedSecurityMode is a required field + AdvancedSecurityMode *string `type:"string" required:"true" enum:"AdvancedSecurityModeType"` +} + +// String returns the string representation +func (s UserPoolAddOnsType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserPoolAddOnsType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UserPoolAddOnsType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UserPoolAddOnsType"} + if s.AdvancedSecurityMode == nil { + invalidParams.Add(request.NewErrParamRequired("AdvancedSecurityMode")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdvancedSecurityMode sets the AdvancedSecurityMode field's value. +func (s *UserPoolAddOnsType) SetAdvancedSecurityMode(v string) *UserPoolAddOnsType { + s.AdvancedSecurityMode = &v + return s +} + // The description of the user pool client. // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolClientDescription type UserPoolClientDescription struct { @@ -19398,6 +23129,9 @@ type UserPoolClientType struct { // "openid", and "Cognito". AllowedOAuthScopes []*string `type:"list"` + // The Amazon Pinpoint analytics configuration for the user pool client. + AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"` + // A list of allowed callback URLs for the identity providers. CallbackURLs []*string `type:"list"` @@ -19471,6 +23205,12 @@ func (s *UserPoolClientType) SetAllowedOAuthScopes(v []*string) *UserPoolClientT return s } +// SetAnalyticsConfiguration sets the AnalyticsConfiguration field's value. +func (s *UserPoolClientType) SetAnalyticsConfiguration(v *AnalyticsConfigurationType) *UserPoolClientType { + s.AnalyticsConfiguration = v + return s +} + // SetCallbackURLs sets the CallbackURLs field's value. func (s *UserPoolClientType) SetCallbackURLs(v []*string) *UserPoolClientType { s.CallbackURLs = v @@ -19625,12 +23365,12 @@ func (s *UserPoolDescriptionType) SetStatus(v string) *UserPoolDescriptionType { return s } -// The type of policy in a user pool. +// The policy associated with a user pool. // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolPolicyType type UserPoolPolicyType struct { _ struct{} `type:"structure"` - // A container for information about the user pool password policy. + // The password policy. PasswordPolicy *PasswordPolicyType `type:"structure"` } @@ -19665,7 +23405,7 @@ func (s *UserPoolPolicyType) SetPasswordPolicy(v *PasswordPolicyType) *UserPoolP return s } -// A container for information about the user pool type. +// A container for information about the user pool. // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolType type UserPoolType struct { _ struct{} `type:"structure"` @@ -19703,7 +23443,7 @@ type UserPoolType struct { // The ID of the user pool. Id *string `min:"1" type:"string"` - // A container for the AWS Lambda triggers associated with a user pool. + // The AWS Lambda triggers associated with tue user pool. LambdaConfig *LambdaConfigType `type:"structure"` // The date the user pool was last modified. @@ -19723,7 +23463,7 @@ type UserPoolType struct { // The name of the user pool. Name *string `min:"1" type:"string"` - // A container for the policies associated with a user pool. + // The policies associated with the user pool. Policies *UserPoolPolicyType `type:"structure"` // A container with the schema attributes of a user pool. @@ -19744,6 +23484,9 @@ type UserPoolType struct { // The status of a user pool. Status *string `type:"string" enum:"StatusType"` + // The user pool add-ons. + UserPoolAddOns *UserPoolAddOnsType `type:"structure"` + // The cost allocation tags for the user pool. For more information, see Adding // Cost Allocation Tags to Your User Pool (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html) UserPoolTags map[string]*string `type:"map"` @@ -19898,6 +23641,12 @@ func (s *UserPoolType) SetStatus(v string) *UserPoolType { return s } +// SetUserPoolAddOns sets the UserPoolAddOns field's value. +func (s *UserPoolType) SetUserPoolAddOns(v *UserPoolAddOnsType) *UserPoolType { + s.UserPoolAddOns = v + return s +} + // SetUserPoolTags sets the UserPoolTags field's value. func (s *UserPoolType) SetUserPoolTags(v map[string]*string) *UserPoolType { s.UserPoolTags = v @@ -20101,6 +23850,113 @@ func (s *VerificationMessageTemplateType) SetSmsMessage(v string) *VerificationM return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifySoftwareTokenRequest +type VerifySoftwareTokenInput struct { + _ struct{} `type:"structure"` + + // The access token. + AccessToken *string `type:"string"` + + // The friendly device name. + FriendlyDeviceName *string `type:"string"` + + // The session which should be passed both ways in challenge-response calls + // to the service. + Session *string `min:"20" type:"string"` + + // The one time password computed using the secret code returned by + // + // UserCode is a required field + UserCode *string `min:"6" type:"string" required:"true"` +} + +// String returns the string representation +func (s VerifySoftwareTokenInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VerifySoftwareTokenInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *VerifySoftwareTokenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "VerifySoftwareTokenInput"} + if s.Session != nil && len(*s.Session) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Session", 20)) + } + if s.UserCode == nil { + invalidParams.Add(request.NewErrParamRequired("UserCode")) + } + if s.UserCode != nil && len(*s.UserCode) < 6 { + invalidParams.Add(request.NewErrParamMinLen("UserCode", 6)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccessToken sets the AccessToken field's value. +func (s *VerifySoftwareTokenInput) SetAccessToken(v string) *VerifySoftwareTokenInput { + s.AccessToken = &v + return s +} + +// SetFriendlyDeviceName sets the FriendlyDeviceName field's value. +func (s *VerifySoftwareTokenInput) SetFriendlyDeviceName(v string) *VerifySoftwareTokenInput { + s.FriendlyDeviceName = &v + return s +} + +// SetSession sets the Session field's value. +func (s *VerifySoftwareTokenInput) SetSession(v string) *VerifySoftwareTokenInput { + s.Session = &v + return s +} + +// SetUserCode sets the UserCode field's value. +func (s *VerifySoftwareTokenInput) SetUserCode(v string) *VerifySoftwareTokenInput { + s.UserCode = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifySoftwareTokenResponse +type VerifySoftwareTokenOutput struct { + _ struct{} `type:"structure"` + + // The session which should be passed both ways in challenge-response calls + // to the service. + Session *string `min:"20" type:"string"` + + // The status of the verify software token. + Status *string `type:"string" enum:"VerifySoftwareTokenResponseType"` +} + +// String returns the string representation +func (s VerifySoftwareTokenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VerifySoftwareTokenOutput) GoString() string { + return s.String() +} + +// SetSession sets the Session field's value. +func (s *VerifySoftwareTokenOutput) SetSession(v string) *VerifySoftwareTokenOutput { + s.Session = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *VerifySoftwareTokenOutput) SetStatus(v string) *VerifySoftwareTokenOutput { + s.Status = &v + return s +} + // Represents the request to verify user attributes. // Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttributeRequest type VerifyUserAttributeInput struct { @@ -20192,6 +24048,31 @@ func (s VerifyUserAttributeOutput) GoString() string { return s.String() } +const ( + // AccountTakeoverEventActionTypeBlock is a AccountTakeoverEventActionType enum value + AccountTakeoverEventActionTypeBlock = "BLOCK" + + // AccountTakeoverEventActionTypeMfaIfConfigured is a AccountTakeoverEventActionType enum value + AccountTakeoverEventActionTypeMfaIfConfigured = "MFA_IF_CONFIGURED" + + // AccountTakeoverEventActionTypeMfaRequired is a AccountTakeoverEventActionType enum value + AccountTakeoverEventActionTypeMfaRequired = "MFA_REQUIRED" + + // AccountTakeoverEventActionTypeNoAction is a AccountTakeoverEventActionType enum value + AccountTakeoverEventActionTypeNoAction = "NO_ACTION" +) + +const ( + // AdvancedSecurityModeTypeOff is a AdvancedSecurityModeType enum value + AdvancedSecurityModeTypeOff = "OFF" + + // AdvancedSecurityModeTypeAudit is a AdvancedSecurityModeType enum value + AdvancedSecurityModeTypeAudit = "AUDIT" + + // AdvancedSecurityModeTypeEnforced is a AdvancedSecurityModeType enum value + AdvancedSecurityModeTypeEnforced = "ENFORCED" +) + const ( // AliasAttributeTypePhoneNumber is a AliasAttributeType enum value AliasAttributeTypePhoneNumber = "phone_number" @@ -20234,10 +24115,27 @@ const ( AuthFlowTypeAdminNoSrpAuth = "ADMIN_NO_SRP_AUTH" ) +const ( + // ChallengeNamePassword is a ChallengeName enum value + ChallengeNamePassword = "Password" + + // ChallengeNameMfa is a ChallengeName enum value + ChallengeNameMfa = "Mfa" +) + const ( // ChallengeNameTypeSmsMfa is a ChallengeNameType enum value ChallengeNameTypeSmsMfa = "SMS_MFA" + // ChallengeNameTypeSoftwareTokenMfa is a ChallengeNameType enum value + ChallengeNameTypeSoftwareTokenMfa = "SOFTWARE_TOKEN_MFA" + + // ChallengeNameTypeSelectMfaType is a ChallengeNameType enum value + ChallengeNameTypeSelectMfaType = "SELECT_MFA_TYPE" + + // ChallengeNameTypeMfaSetup is a ChallengeNameType enum value + ChallengeNameTypeMfaSetup = "MFA_SETUP" + // ChallengeNameTypePasswordVerifier is a ChallengeNameType enum value ChallengeNameTypePasswordVerifier = "PASSWORD_VERIFIER" @@ -20257,6 +24155,22 @@ const ( ChallengeNameTypeNewPasswordRequired = "NEW_PASSWORD_REQUIRED" ) +const ( + // ChallengeResponseSuccess is a ChallengeResponse enum value + ChallengeResponseSuccess = "Success" + + // ChallengeResponseFailure is a ChallengeResponse enum value + ChallengeResponseFailure = "Failure" +) + +const ( + // CompromisedCredentialsEventActionTypeBlock is a CompromisedCredentialsEventActionType enum value + CompromisedCredentialsEventActionTypeBlock = "BLOCK" + + // CompromisedCredentialsEventActionTypeNoAction is a CompromisedCredentialsEventActionType enum value + CompromisedCredentialsEventActionTypeNoAction = "NO_ACTION" +) + const ( // DefaultEmailOptionTypeConfirmWithLink is a DefaultEmailOptionType enum value DefaultEmailOptionTypeConfirmWithLink = "CONFIRM_WITH_LINK" @@ -20298,6 +24212,36 @@ const ( DomainStatusTypeFailed = "FAILED" ) +const ( + // EventFilterTypeSignIn is a EventFilterType enum value + EventFilterTypeSignIn = "SIGN_IN" + + // EventFilterTypePasswordChange is a EventFilterType enum value + EventFilterTypePasswordChange = "PASSWORD_CHANGE" + + // EventFilterTypeSignUp is a EventFilterType enum value + EventFilterTypeSignUp = "SIGN_UP" +) + +const ( + // EventResponseTypeSuccess is a EventResponseType enum value + EventResponseTypeSuccess = "Success" + + // EventResponseTypeFailure is a EventResponseType enum value + EventResponseTypeFailure = "Failure" +) + +const ( + // EventTypeSignIn is a EventType enum value + EventTypeSignIn = "SignIn" + + // EventTypeSignUp is a EventType enum value + EventTypeSignUp = "SignUp" + + // EventTypeForgotPassword is a EventType enum value + EventTypeForgotPassword = "ForgotPassword" +) + const ( // ExplicitAuthFlowsTypeAdminNoSrpAuth is a ExplicitAuthFlowsType enum value ExplicitAuthFlowsTypeAdminNoSrpAuth = "ADMIN_NO_SRP_AUTH" @@ -20306,6 +24250,14 @@ const ( ExplicitAuthFlowsTypeCustomAuthFlowOnly = "CUSTOM_AUTH_FLOW_ONLY" ) +const ( + // FeedbackValueTypeValid is a FeedbackValueType enum value + FeedbackValueTypeValid = "Valid" + + // FeedbackValueTypeInvalid is a FeedbackValueType enum value + FeedbackValueTypeInvalid = "Invalid" +) + const ( // IdentityProviderTypeTypeSaml is a IdentityProviderTypeType enum value IdentityProviderTypeTypeSaml = "SAML" @@ -20339,6 +24291,28 @@ const ( OAuthFlowTypeClientCredentials = "client_credentials" ) +const ( + // RiskDecisionTypeNoRisk is a RiskDecisionType enum value + RiskDecisionTypeNoRisk = "NoRisk" + + // RiskDecisionTypeAccountTakeover is a RiskDecisionType enum value + RiskDecisionTypeAccountTakeover = "AccountTakeover" + + // RiskDecisionTypeBlock is a RiskDecisionType enum value + RiskDecisionTypeBlock = "Block" +) + +const ( + // RiskLevelTypeLow is a RiskLevelType enum value + RiskLevelTypeLow = "Low" + + // RiskLevelTypeMedium is a RiskLevelType enum value + RiskLevelTypeMedium = "Medium" + + // RiskLevelTypeHigh is a RiskLevelType enum value + RiskLevelTypeHigh = "High" +) + const ( // StatusTypeEnabled is a StatusType enum value StatusTypeEnabled = "Enabled" @@ -20422,3 +24396,11 @@ const ( // VerifiedAttributeTypeEmail is a VerifiedAttributeType enum value VerifiedAttributeTypeEmail = "email" ) + +const ( + // VerifySoftwareTokenResponseTypeSuccess is a VerifySoftwareTokenResponseType enum value + VerifySoftwareTokenResponseTypeSuccess = "SUCCESS" + + // VerifySoftwareTokenResponseTypeError is a VerifySoftwareTokenResponseType enum value + VerifySoftwareTokenResponseTypeError = "ERROR" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/errors.go index cc9a5951b15..302ec049a87 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/errors.go @@ -39,6 +39,13 @@ const ( // pool. ErrCodeDuplicateProviderException = "DuplicateProviderException" + // ErrCodeEnableSoftwareTokenMFAException for service response error code + // "EnableSoftwareTokenMFAException". + // + // This exception is thrown when there is a code mismatch and the service fails + // to configure the software token TOTP multi-factor authentication (MFA). + ErrCodeEnableSoftwareTokenMFAException = "EnableSoftwareTokenMFAException" + // ErrCodeExpiredCodeException for service response error code // "ExpiredCodeException". // @@ -159,6 +166,13 @@ const ( // This exception is thrown when the specified scope does not exist. ErrCodeScopeDoesNotExistException = "ScopeDoesNotExistException" + // ErrCodeSoftwareTokenMFANotFoundException for service response error code + // "SoftwareTokenMFANotFoundException". + // + // This exception is thrown when the software token TOTP multi-factor authentication + // (MFA) is not enabled for the user pool. + ErrCodeSoftwareTokenMFANotFoundException = "SoftwareTokenMFANotFoundException" + // ErrCodeTooManyFailedAttemptsException for service response error code // "TooManyFailedAttemptsException". // @@ -218,6 +232,12 @@ const ( // This exception is thrown when a user is not found. ErrCodeUserNotFoundException = "UserNotFoundException" + // ErrCodeUserPoolAddOnNotEnabledException for service response error code + // "UserPoolAddOnNotEnabledException". + // + // This exception is thrown when user pool add-ons are not enabled. + ErrCodeUserPoolAddOnNotEnabledException = "UserPoolAddOnNotEnabledException" + // ErrCodeUserPoolTaggingException for service response error code // "UserPoolTaggingException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go index d1ceacc9e9a..ba778f5cef2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go @@ -88,6 +88,81 @@ func (c *EC2) AcceptReservedInstancesExchangeQuoteWithContext(ctx aws.Context, i return out, req.Send() } +const opAcceptVpcEndpointConnections = "AcceptVpcEndpointConnections" + +// AcceptVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the +// client's request for the AcceptVpcEndpointConnections operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AcceptVpcEndpointConnections for more information on using the AcceptVpcEndpointConnections +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AcceptVpcEndpointConnectionsRequest method. +// req, resp := client.AcceptVpcEndpointConnectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnections +func (c *EC2) AcceptVpcEndpointConnectionsRequest(input *AcceptVpcEndpointConnectionsInput) (req *request.Request, output *AcceptVpcEndpointConnectionsOutput) { + op := &request.Operation{ + Name: opAcceptVpcEndpointConnections, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AcceptVpcEndpointConnectionsInput{} + } + + output = &AcceptVpcEndpointConnectionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// AcceptVpcEndpointConnections API operation for Amazon Elastic Compute Cloud. +// +// Accepts one or more interface VPC endpoint connection requests to your VPC +// endpoint service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AcceptVpcEndpointConnections for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnections +func (c *EC2) AcceptVpcEndpointConnections(input *AcceptVpcEndpointConnectionsInput) (*AcceptVpcEndpointConnectionsOutput, error) { + req, out := c.AcceptVpcEndpointConnectionsRequest(input) + return out, req.Send() +} + +// AcceptVpcEndpointConnectionsWithContext is the same as AcceptVpcEndpointConnections with the addition of +// the ability to pass a context and additional request options. +// +// See AcceptVpcEndpointConnections for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) AcceptVpcEndpointConnectionsWithContext(ctx aws.Context, input *AcceptVpcEndpointConnectionsInput, opts ...request.Option) (*AcceptVpcEndpointConnectionsOutput, error) { + req, out := c.AcceptVpcEndpointConnectionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection" // AcceptVpcPeeringConnectionRequest generates a "aws/request.Request" representing the @@ -2109,12 +2184,12 @@ func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput // CancelSpotFleetRequests API operation for Amazon Elastic Compute Cloud. // -// Cancels the specified Spot fleet requests. +// Cancels the specified Spot Fleet requests. // -// After you cancel a Spot fleet request, the Spot fleet launches no new Spot -// instances. You must specify whether the Spot fleet should also terminate -// its Spot instances. If you terminate the instances, the Spot fleet request -// enters the cancelled_terminating state. Otherwise, the Spot fleet request +// After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot +// Instances. You must specify whether the Spot Fleet should also terminate +// its Spot Instances. If you terminate the instances, the Spot Fleet request +// enters the cancelled_terminating state. Otherwise, the Spot Fleet request // enters the cancelled_running state and the instances continue to run until // they are interrupted or you terminate them manually. // @@ -2190,14 +2265,13 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest // CancelSpotInstanceRequests API operation for Amazon Elastic Compute Cloud. // -// Cancels one or more Spot instance requests. Spot instances are instances -// that Amazon EC2 starts on your behalf when the bid price that you specify -// exceeds the current Spot price. Amazon EC2 periodically sets the Spot price -// based on available Spot instance capacity and current Spot instance requests. -// For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) -// in the Amazon Elastic Compute Cloud User Guide. +// Cancels one or more Spot Instance requests. Spot Instances are instances +// that Amazon EC2 starts on your behalf when the maximum price that you specify +// exceeds the current Spot price. For more information, see Spot Instance Requests +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) in +// the Amazon Elastic Compute Cloud User Guide. // -// Canceling a Spot instance request does not terminate running Spot instances +// Canceling a Spot Instance request does not terminate running Spot Instances // associated with the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3453,15 +3527,16 @@ func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Requ // // Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores // the public key and displays the private key for you to save to a file. The -// private key is returned as an unencrypted PEM encoded PKCS#8 private key. +// private key is returned as an unencrypted PEM encoded PKCS#1 private key. // If a key with the specified name already exists, Amazon EC2 returns an error. // // You can have up to five thousand key pairs per region. // // The key pair returned to you is available only in the region in which you -// create it. To create a key pair that is available in all regions, use ImportKeyPair. +// create it. If you prefer, you can create your own key pair using a third-party +// tool and upload it to any region using ImportKeyPair. // -// For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) +// For more information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3492,6 +3567,160 @@ func (c *EC2) CreateKeyPairWithContext(ctx aws.Context, input *CreateKeyPairInpu return out, req.Send() } +const opCreateLaunchTemplate = "CreateLaunchTemplate" + +// CreateLaunchTemplateRequest generates a "aws/request.Request" representing the +// client's request for the CreateLaunchTemplate operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLaunchTemplate for more information on using the CreateLaunchTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLaunchTemplateRequest method. +// req, resp := client.CreateLaunchTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate +func (c *EC2) CreateLaunchTemplateRequest(input *CreateLaunchTemplateInput) (req *request.Request, output *CreateLaunchTemplateOutput) { + op := &request.Operation{ + Name: opCreateLaunchTemplate, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLaunchTemplateInput{} + } + + output = &CreateLaunchTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLaunchTemplate API operation for Amazon Elastic Compute Cloud. +// +// Creates a launch template. A launch template contains the parameters to launch +// an instance. When you launch an instance using RunInstances, you can specify +// a launch template instead of providing the launch parameters in the request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateLaunchTemplate for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate +func (c *EC2) CreateLaunchTemplate(input *CreateLaunchTemplateInput) (*CreateLaunchTemplateOutput, error) { + req, out := c.CreateLaunchTemplateRequest(input) + return out, req.Send() +} + +// CreateLaunchTemplateWithContext is the same as CreateLaunchTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLaunchTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateLaunchTemplateWithContext(ctx aws.Context, input *CreateLaunchTemplateInput, opts ...request.Option) (*CreateLaunchTemplateOutput, error) { + req, out := c.CreateLaunchTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateLaunchTemplateVersion = "CreateLaunchTemplateVersion" + +// CreateLaunchTemplateVersionRequest generates a "aws/request.Request" representing the +// client's request for the CreateLaunchTemplateVersion operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLaunchTemplateVersion for more information on using the CreateLaunchTemplateVersion +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLaunchTemplateVersionRequest method. +// req, resp := client.CreateLaunchTemplateVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion +func (c *EC2) CreateLaunchTemplateVersionRequest(input *CreateLaunchTemplateVersionInput) (req *request.Request, output *CreateLaunchTemplateVersionOutput) { + op := &request.Operation{ + Name: opCreateLaunchTemplateVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLaunchTemplateVersionInput{} + } + + output = &CreateLaunchTemplateVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLaunchTemplateVersion API operation for Amazon Elastic Compute Cloud. +// +// Creates a new version for a launch template. You can specify an existing +// version of launch template from which to base the new version. +// +// Launch template versions are numbered in the order in which they are created. +// You cannot specify, change, or replace the numbering of launch template versions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateLaunchTemplateVersion for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion +func (c *EC2) CreateLaunchTemplateVersion(input *CreateLaunchTemplateVersionInput) (*CreateLaunchTemplateVersionOutput, error) { + req, out := c.CreateLaunchTemplateVersionRequest(input) + return out, req.Send() +} + +// CreateLaunchTemplateVersionWithContext is the same as CreateLaunchTemplateVersion with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLaunchTemplateVersion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateLaunchTemplateVersionWithContext(ctx aws.Context, input *CreateLaunchTemplateVersionInput, opts ...request.Option) (*CreateLaunchTemplateVersionOutput, error) { + req, out := c.CreateLaunchTemplateVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateNatGateway = "CreateNatGateway" // CreateNatGatewayRequest generates a "aws/request.Request" representing the @@ -4491,7 +4720,7 @@ func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSub // CreateSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud. // -// Creates a data feed for Spot instances, enabling you to view Spot instance +// Creates a data feed for Spot Instances, enabling you to view Spot Instance // usage logs. You can create one data feed per AWS account. For more information, // see Spot Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -4936,20 +5165,23 @@ func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *requ // CreateVpcEndpoint API operation for Amazon Elastic Compute Cloud. // -// Creates a VPC endpoint for a specified AWS service. An endpoint enables you -// to create a private connection between your VPC and another AWS service in -// your account. You can create a gateway endpoint or an interface endpoint. +// Creates a VPC endpoint for a specified service. An endpoint enables you to +// create a private connection between your VPC and the service. The service +// may be provided by AWS, an AWS Marketplace partner, or another AWS account. +// For more information, see VPC Endpoints (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html) +// in the Amazon Virtual Private Cloud User Guide. // // A gateway endpoint serves as a target for a route in your route table for -// traffic destined for the AWS service. You can specify the VPC route tables -// that use the endpoint, and you can optionally specify an endpoint policy +// traffic destined for the AWS service. You can specify an endpoint policy // to attach to the endpoint that will control access to the service from your -// VPC. +// VPC. You can also specify the VPC route tables that use the endpoint. // -// An interface endpoint is a network interface in your subnet with a private -// IP address that serves as an entry point for traffic destined to the AWS -// service. You can specify the subnets in which to create an endpoint, and -// the security groups to associate with the network interface. +// An interface endpoint is a network interface in your subnet that serves as +// an endpoint for communicating with the specified service. You can specify +// the subnets in which to create an endpoint, and the security groups to associate +// with the endpoint network interface. +// +// Use DescribeVpcEndpointServices to get a list of supported services. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4979,6 +5211,167 @@ func (c *EC2) CreateVpcEndpointWithContext(ctx aws.Context, input *CreateVpcEndp return out, req.Send() } +const opCreateVpcEndpointConnectionNotification = "CreateVpcEndpointConnectionNotification" + +// CreateVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the +// client's request for the CreateVpcEndpointConnectionNotification operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateVpcEndpointConnectionNotification for more information on using the CreateVpcEndpointConnectionNotification +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateVpcEndpointConnectionNotificationRequest method. +// req, resp := client.CreateVpcEndpointConnectionNotificationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification +func (c *EC2) CreateVpcEndpointConnectionNotificationRequest(input *CreateVpcEndpointConnectionNotificationInput) (req *request.Request, output *CreateVpcEndpointConnectionNotificationOutput) { + op := &request.Operation{ + Name: opCreateVpcEndpointConnectionNotification, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateVpcEndpointConnectionNotificationInput{} + } + + output = &CreateVpcEndpointConnectionNotificationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud. +// +// Creates a connection notification for a specified VPC endpoint or VPC endpoint +// service. A connection notification notifies you of specific endpoint events. +// You must create an SNS topic to receive notifications. For more information, +// see Create a Topic (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html) +// in the Amazon Simple Notification Service Developer Guide. +// +// You can create a connection notification for interface endpoints only. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVpcEndpointConnectionNotification for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification +func (c *EC2) CreateVpcEndpointConnectionNotification(input *CreateVpcEndpointConnectionNotificationInput) (*CreateVpcEndpointConnectionNotificationOutput, error) { + req, out := c.CreateVpcEndpointConnectionNotificationRequest(input) + return out, req.Send() +} + +// CreateVpcEndpointConnectionNotificationWithContext is the same as CreateVpcEndpointConnectionNotification with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVpcEndpointConnectionNotification for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *CreateVpcEndpointConnectionNotificationInput, opts ...request.Option) (*CreateVpcEndpointConnectionNotificationOutput, error) { + req, out := c.CreateVpcEndpointConnectionNotificationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateVpcEndpointServiceConfiguration = "CreateVpcEndpointServiceConfiguration" + +// CreateVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the CreateVpcEndpointServiceConfiguration operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateVpcEndpointServiceConfiguration for more information on using the CreateVpcEndpointServiceConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateVpcEndpointServiceConfigurationRequest method. +// req, resp := client.CreateVpcEndpointServiceConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration +func (c *EC2) CreateVpcEndpointServiceConfigurationRequest(input *CreateVpcEndpointServiceConfigurationInput) (req *request.Request, output *CreateVpcEndpointServiceConfigurationOutput) { + op := &request.Operation{ + Name: opCreateVpcEndpointServiceConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateVpcEndpointServiceConfigurationInput{} + } + + output = &CreateVpcEndpointServiceConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud. +// +// Creates a VPC endpoint service configuration to which service consumers (AWS +// accounts, IAM users, and IAM roles) can connect. Service consumers can create +// an interface VPC endpoint to connect to your service. +// +// To create an endpoint service configuration, you must first create a Network +// Load Balancer for your service. For more information, see VPC Endpoint Services +// (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/endpoint-service.html) +// in the Amazon Virtual Private Cloud User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVpcEndpointServiceConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration +func (c *EC2) CreateVpcEndpointServiceConfiguration(input *CreateVpcEndpointServiceConfigurationInput) (*CreateVpcEndpointServiceConfigurationOutput, error) { + req, out := c.CreateVpcEndpointServiceConfigurationRequest(input) + return out, req.Send() +} + +// CreateVpcEndpointServiceConfigurationWithContext is the same as CreateVpcEndpointServiceConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVpcEndpointServiceConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *CreateVpcEndpointServiceConfigurationInput, opts ...request.Option) (*CreateVpcEndpointServiceConfigurationOutput, error) { + req, out := c.CreateVpcEndpointServiceConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection" // CreateVpcPeeringConnectionRequest generates a "aws/request.Request" representing the @@ -5849,6 +6242,158 @@ func (c *EC2) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInpu return out, req.Send() } +const opDeleteLaunchTemplate = "DeleteLaunchTemplate" + +// DeleteLaunchTemplateRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLaunchTemplate operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLaunchTemplate for more information on using the DeleteLaunchTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteLaunchTemplateRequest method. +// req, resp := client.DeleteLaunchTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate +func (c *EC2) DeleteLaunchTemplateRequest(input *DeleteLaunchTemplateInput) (req *request.Request, output *DeleteLaunchTemplateOutput) { + op := &request.Operation{ + Name: opDeleteLaunchTemplate, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteLaunchTemplateInput{} + } + + output = &DeleteLaunchTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteLaunchTemplate API operation for Amazon Elastic Compute Cloud. +// +// Deletes a launch template. Deleting a launch template deletes all of its +// versions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteLaunchTemplate for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate +func (c *EC2) DeleteLaunchTemplate(input *DeleteLaunchTemplateInput) (*DeleteLaunchTemplateOutput, error) { + req, out := c.DeleteLaunchTemplateRequest(input) + return out, req.Send() +} + +// DeleteLaunchTemplateWithContext is the same as DeleteLaunchTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLaunchTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteLaunchTemplateWithContext(ctx aws.Context, input *DeleteLaunchTemplateInput, opts ...request.Option) (*DeleteLaunchTemplateOutput, error) { + req, out := c.DeleteLaunchTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteLaunchTemplateVersions = "DeleteLaunchTemplateVersions" + +// DeleteLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLaunchTemplateVersions operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLaunchTemplateVersions for more information on using the DeleteLaunchTemplateVersions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteLaunchTemplateVersionsRequest method. +// req, resp := client.DeleteLaunchTemplateVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions +func (c *EC2) DeleteLaunchTemplateVersionsRequest(input *DeleteLaunchTemplateVersionsInput) (req *request.Request, output *DeleteLaunchTemplateVersionsOutput) { + op := &request.Operation{ + Name: opDeleteLaunchTemplateVersions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteLaunchTemplateVersionsInput{} + } + + output = &DeleteLaunchTemplateVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteLaunchTemplateVersions API operation for Amazon Elastic Compute Cloud. +// +// Deletes one or more versions of a launch template. You cannot delete the +// default version of a launch template; you must first assign a different version +// as the default. If the default version is the only version for the launch +// template, you must delete the entire launch template using DeleteLaunchTemplate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteLaunchTemplateVersions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions +func (c *EC2) DeleteLaunchTemplateVersions(input *DeleteLaunchTemplateVersionsInput) (*DeleteLaunchTemplateVersionsOutput, error) { + req, out := c.DeleteLaunchTemplateVersionsRequest(input) + return out, req.Send() +} + +// DeleteLaunchTemplateVersionsWithContext is the same as DeleteLaunchTemplateVersions with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLaunchTemplateVersions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteLaunchTemplateVersionsWithContext(ctx aws.Context, input *DeleteLaunchTemplateVersionsInput, opts ...request.Option) (*DeleteLaunchTemplateVersionsOutput, error) { + req, out := c.DeleteLaunchTemplateVersionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteNatGateway = "DeleteNatGateway" // DeleteNatGatewayRequest generates a "aws/request.Request" representing the @@ -6682,7 +7227,7 @@ func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSub // DeleteSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud. // -// Deletes the data feed for Spot instances. +// Deletes the data feed for Spot Instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -7031,6 +7576,157 @@ func (c *EC2) DeleteVpcWithContext(ctx aws.Context, input *DeleteVpcInput, opts return out, req.Send() } +const opDeleteVpcEndpointConnectionNotifications = "DeleteVpcEndpointConnectionNotifications" + +// DeleteVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVpcEndpointConnectionNotifications operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVpcEndpointConnectionNotifications for more information on using the DeleteVpcEndpointConnectionNotifications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteVpcEndpointConnectionNotificationsRequest method. +// req, resp := client.DeleteVpcEndpointConnectionNotificationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications +func (c *EC2) DeleteVpcEndpointConnectionNotificationsRequest(input *DeleteVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DeleteVpcEndpointConnectionNotificationsOutput) { + op := &request.Operation{ + Name: opDeleteVpcEndpointConnectionNotifications, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteVpcEndpointConnectionNotificationsInput{} + } + + output = &DeleteVpcEndpointConnectionNotificationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud. +// +// Deletes one or more VPC endpoint connection notifications. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVpcEndpointConnectionNotifications for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications +func (c *EC2) DeleteVpcEndpointConnectionNotifications(input *DeleteVpcEndpointConnectionNotificationsInput) (*DeleteVpcEndpointConnectionNotificationsOutput, error) { + req, out := c.DeleteVpcEndpointConnectionNotificationsRequest(input) + return out, req.Send() +} + +// DeleteVpcEndpointConnectionNotificationsWithContext is the same as DeleteVpcEndpointConnectionNotifications with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVpcEndpointConnectionNotifications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DeleteVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DeleteVpcEndpointConnectionNotificationsOutput, error) { + req, out := c.DeleteVpcEndpointConnectionNotificationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVpcEndpointServiceConfigurations = "DeleteVpcEndpointServiceConfigurations" + +// DeleteVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVpcEndpointServiceConfigurations operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVpcEndpointServiceConfigurations for more information on using the DeleteVpcEndpointServiceConfigurations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteVpcEndpointServiceConfigurationsRequest method. +// req, resp := client.DeleteVpcEndpointServiceConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations +func (c *EC2) DeleteVpcEndpointServiceConfigurationsRequest(input *DeleteVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DeleteVpcEndpointServiceConfigurationsOutput) { + op := &request.Operation{ + Name: opDeleteVpcEndpointServiceConfigurations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteVpcEndpointServiceConfigurationsInput{} + } + + output = &DeleteVpcEndpointServiceConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud. +// +// Deletes one or more VPC endpoint service configurations in your account. +// Before you delete the endpoint service configuration, you must reject any +// Available or PendingAcceptance interface endpoint connections that are attached +// to the service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVpcEndpointServiceConfigurations for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations +func (c *EC2) DeleteVpcEndpointServiceConfigurations(input *DeleteVpcEndpointServiceConfigurationsInput) (*DeleteVpcEndpointServiceConfigurationsOutput, error) { + req, out := c.DeleteVpcEndpointServiceConfigurationsRequest(input) + return out, req.Send() +} + +// DeleteVpcEndpointServiceConfigurationsWithContext is the same as DeleteVpcEndpointServiceConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVpcEndpointServiceConfigurations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DeleteVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DeleteVpcEndpointServiceConfigurationsOutput, error) { + req, out := c.DeleteVpcEndpointServiceConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteVpcEndpoints = "DeleteVpcEndpoints" // DeleteVpcEndpointsRequest generates a "aws/request.Request" representing the @@ -9911,6 +10607,155 @@ func (c *EC2) DescribeKeyPairsWithContext(ctx aws.Context, input *DescribeKeyPai return out, req.Send() } +const opDescribeLaunchTemplateVersions = "DescribeLaunchTemplateVersions" + +// DescribeLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLaunchTemplateVersions operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeLaunchTemplateVersions for more information on using the DescribeLaunchTemplateVersions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeLaunchTemplateVersionsRequest method. +// req, resp := client.DescribeLaunchTemplateVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions +func (c *EC2) DescribeLaunchTemplateVersionsRequest(input *DescribeLaunchTemplateVersionsInput) (req *request.Request, output *DescribeLaunchTemplateVersionsOutput) { + op := &request.Operation{ + Name: opDescribeLaunchTemplateVersions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLaunchTemplateVersionsInput{} + } + + output = &DescribeLaunchTemplateVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLaunchTemplateVersions API operation for Amazon Elastic Compute Cloud. +// +// Describes one or more versions of a specified launch template. You can describe +// all versions, individual versions, or a range of versions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeLaunchTemplateVersions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions +func (c *EC2) DescribeLaunchTemplateVersions(input *DescribeLaunchTemplateVersionsInput) (*DescribeLaunchTemplateVersionsOutput, error) { + req, out := c.DescribeLaunchTemplateVersionsRequest(input) + return out, req.Send() +} + +// DescribeLaunchTemplateVersionsWithContext is the same as DescribeLaunchTemplateVersions with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeLaunchTemplateVersions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeLaunchTemplateVersionsWithContext(ctx aws.Context, input *DescribeLaunchTemplateVersionsInput, opts ...request.Option) (*DescribeLaunchTemplateVersionsOutput, error) { + req, out := c.DescribeLaunchTemplateVersionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeLaunchTemplates = "DescribeLaunchTemplates" + +// DescribeLaunchTemplatesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLaunchTemplates operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeLaunchTemplates for more information on using the DescribeLaunchTemplates +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeLaunchTemplatesRequest method. +// req, resp := client.DescribeLaunchTemplatesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates +func (c *EC2) DescribeLaunchTemplatesRequest(input *DescribeLaunchTemplatesInput) (req *request.Request, output *DescribeLaunchTemplatesOutput) { + op := &request.Operation{ + Name: opDescribeLaunchTemplates, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLaunchTemplatesInput{} + } + + output = &DescribeLaunchTemplatesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLaunchTemplates API operation for Amazon Elastic Compute Cloud. +// +// Describes one or more launch templates. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeLaunchTemplates for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates +func (c *EC2) DescribeLaunchTemplates(input *DescribeLaunchTemplatesInput) (*DescribeLaunchTemplatesOutput, error) { + req, out := c.DescribeLaunchTemplatesRequest(input) + return out, req.Send() +} + +// DescribeLaunchTemplatesWithContext is the same as DescribeLaunchTemplates with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeLaunchTemplates for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeLaunchTemplatesWithContext(ctx aws.Context, input *DescribeLaunchTemplatesInput, opts ...request.Option) (*DescribeLaunchTemplatesOutput, error) { + req, out := c.DescribeLaunchTemplatesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeMovingAddresses = "DescribeMovingAddresses" // DescribeMovingAddressesRequest generates a "aws/request.Request" representing the @@ -10541,7 +11386,7 @@ func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req * // the prefix list name and prefix list ID of the service and the IP address // range for the service. A prefix list ID is required for creating an outbound // security group rule that allows traffic from a VPC to access an AWS service -// through a VPC endpoint. +// through a gateway VPC endpoint. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -11788,7 +12633,7 @@ func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafee // DescribeSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud. // -// Describes the data feed for Spot instances. For more information, see Spot +// Describes the data feed for Spot Instances. For more information, see Spot // Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) // in the Amazon Elastic Compute Cloud User Guide. // @@ -11864,7 +12709,7 @@ func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstance // DescribeSpotFleetInstances API operation for Amazon Elastic Compute Cloud. // -// Describes the running instances for the specified Spot fleet. +// Describes the running instances for the specified Spot Fleet. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -11938,10 +12783,10 @@ func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetReq // DescribeSpotFleetRequestHistory API operation for Amazon Elastic Compute Cloud. // -// Describes the events for the specified Spot fleet request during the specified +// Describes the events for the specified Spot Fleet request during the specified // time. // -// Spot fleet events are delayed by up to 30 seconds before they can be described. +// Spot Fleet events are delayed by up to 30 seconds before they can be described. // This ensures that you can query by the last evaluated time and not miss a // recorded event. // @@ -12023,9 +12868,9 @@ func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsI // DescribeSpotFleetRequests API operation for Amazon Elastic Compute Cloud. // -// Describes your Spot fleet requests. +// Describes your Spot Fleet requests. // -// Spot fleet requests are deleted 48 hours after they are canceled and their +// Spot Fleet requests are deleted 48 hours after they are canceled and their // instances are terminated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -12150,20 +12995,19 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq // DescribeSpotInstanceRequests API operation for Amazon Elastic Compute Cloud. // -// Describes the Spot instance requests that belong to your account. Spot instances -// are instances that Amazon EC2 launches when the bid price that you specify -// exceeds the current Spot price. Amazon EC2 periodically sets the Spot price -// based on available Spot instance capacity and current Spot instance requests. -// For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) -// in the Amazon Elastic Compute Cloud User Guide. +// Describes the Spot Instance requests that belong to your account. Spot Instances +// are instances that Amazon EC2 launches when the Spot price that you specify +// exceeds the current Spot price. For more information, see Spot Instance Requests +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) in +// the Amazon Elastic Compute Cloud User Guide. // -// You can use DescribeSpotInstanceRequests to find a running Spot instance -// by examining the response. If the status of the Spot instance is fulfilled, +// You can use DescribeSpotInstanceRequests to find a running Spot Instance +// by examining the response. If the status of the Spot Instance is fulfilled, // the instance ID appears in the response and contains the identifier of the // instance. Alternatively, you can use DescribeInstances with a filter to look // for instances where the instance lifecycle is spot. // -// Spot instance requests are deleted 4 hours after they are canceled and their +// Spot Instance requests are deleted 4 hours after they are canceled and their // instances are terminated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -13315,6 +14159,305 @@ func (c *EC2) DescribeVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input return out, req.Send() } +const opDescribeVpcEndpointConnectionNotifications = "DescribeVpcEndpointConnectionNotifications" + +// DescribeVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVpcEndpointConnectionNotifications operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeVpcEndpointConnectionNotifications for more information on using the DescribeVpcEndpointConnectionNotifications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeVpcEndpointConnectionNotificationsRequest method. +// req, resp := client.DescribeVpcEndpointConnectionNotificationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications +func (c *EC2) DescribeVpcEndpointConnectionNotificationsRequest(input *DescribeVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DescribeVpcEndpointConnectionNotificationsOutput) { + op := &request.Operation{ + Name: opDescribeVpcEndpointConnectionNotifications, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeVpcEndpointConnectionNotificationsInput{} + } + + output = &DescribeVpcEndpointConnectionNotificationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud. +// +// Describes the connection notifications for VPC endpoints and VPC endpoint +// services. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcEndpointConnectionNotifications for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications +func (c *EC2) DescribeVpcEndpointConnectionNotifications(input *DescribeVpcEndpointConnectionNotificationsInput) (*DescribeVpcEndpointConnectionNotificationsOutput, error) { + req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input) + return out, req.Send() +} + +// DescribeVpcEndpointConnectionNotificationsWithContext is the same as DescribeVpcEndpointConnectionNotifications with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeVpcEndpointConnectionNotifications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionNotificationsOutput, error) { + req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeVpcEndpointConnections = "DescribeVpcEndpointConnections" + +// DescribeVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVpcEndpointConnections operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeVpcEndpointConnections for more information on using the DescribeVpcEndpointConnections +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeVpcEndpointConnectionsRequest method. +// req, resp := client.DescribeVpcEndpointConnectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections +func (c *EC2) DescribeVpcEndpointConnectionsRequest(input *DescribeVpcEndpointConnectionsInput) (req *request.Request, output *DescribeVpcEndpointConnectionsOutput) { + op := &request.Operation{ + Name: opDescribeVpcEndpointConnections, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeVpcEndpointConnectionsInput{} + } + + output = &DescribeVpcEndpointConnectionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVpcEndpointConnections API operation for Amazon Elastic Compute Cloud. +// +// Describes the VPC endpoint connections to your VPC endpoint services, including +// any endpoints that are pending your acceptance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcEndpointConnections for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections +func (c *EC2) DescribeVpcEndpointConnections(input *DescribeVpcEndpointConnectionsInput) (*DescribeVpcEndpointConnectionsOutput, error) { + req, out := c.DescribeVpcEndpointConnectionsRequest(input) + return out, req.Send() +} + +// DescribeVpcEndpointConnectionsWithContext is the same as DescribeVpcEndpointConnections with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeVpcEndpointConnections for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeVpcEndpointConnectionsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionsOutput, error) { + req, out := c.DescribeVpcEndpointConnectionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeVpcEndpointServiceConfigurations = "DescribeVpcEndpointServiceConfigurations" + +// DescribeVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVpcEndpointServiceConfigurations operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeVpcEndpointServiceConfigurations for more information on using the DescribeVpcEndpointServiceConfigurations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeVpcEndpointServiceConfigurationsRequest method. +// req, resp := client.DescribeVpcEndpointServiceConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations +func (c *EC2) DescribeVpcEndpointServiceConfigurationsRequest(input *DescribeVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DescribeVpcEndpointServiceConfigurationsOutput) { + op := &request.Operation{ + Name: opDescribeVpcEndpointServiceConfigurations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeVpcEndpointServiceConfigurationsInput{} + } + + output = &DescribeVpcEndpointServiceConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud. +// +// Describes the VPC endpoint service configurations in your account (your services). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcEndpointServiceConfigurations for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations +func (c *EC2) DescribeVpcEndpointServiceConfigurations(input *DescribeVpcEndpointServiceConfigurationsInput) (*DescribeVpcEndpointServiceConfigurationsOutput, error) { + req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input) + return out, req.Send() +} + +// DescribeVpcEndpointServiceConfigurationsWithContext is the same as DescribeVpcEndpointServiceConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeVpcEndpointServiceConfigurations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DescribeVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DescribeVpcEndpointServiceConfigurationsOutput, error) { + req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeVpcEndpointServicePermissions = "DescribeVpcEndpointServicePermissions" + +// DescribeVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVpcEndpointServicePermissions operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeVpcEndpointServicePermissions for more information on using the DescribeVpcEndpointServicePermissions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeVpcEndpointServicePermissionsRequest method. +// req, resp := client.DescribeVpcEndpointServicePermissionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions +func (c *EC2) DescribeVpcEndpointServicePermissionsRequest(input *DescribeVpcEndpointServicePermissionsInput) (req *request.Request, output *DescribeVpcEndpointServicePermissionsOutput) { + op := &request.Operation{ + Name: opDescribeVpcEndpointServicePermissions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeVpcEndpointServicePermissionsInput{} + } + + output = &DescribeVpcEndpointServicePermissionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud. +// +// Describes the principals (service consumers) that are permitted to discover +// your VPC endpoint service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcEndpointServicePermissions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions +func (c *EC2) DescribeVpcEndpointServicePermissions(input *DescribeVpcEndpointServicePermissionsInput) (*DescribeVpcEndpointServicePermissionsOutput, error) { + req, out := c.DescribeVpcEndpointServicePermissionsRequest(input) + return out, req.Send() +} + +// DescribeVpcEndpointServicePermissionsWithContext is the same as DescribeVpcEndpointServicePermissions with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeVpcEndpointServicePermissions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *DescribeVpcEndpointServicePermissionsInput, opts ...request.Option) (*DescribeVpcEndpointServicePermissionsOutput, error) { + req, out := c.DescribeVpcEndpointServicePermissionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices" // DescribeVpcEndpointServicesRequest generates a "aws/request.Request" representing the @@ -13359,8 +14502,7 @@ func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServi // DescribeVpcEndpointServices API operation for Amazon Elastic Compute Cloud. // -// Describes all supported AWS services that can be specified when creating -// a VPC endpoint. +// Describes available services to which you can create a VPC endpoint. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -15355,6 +16497,81 @@ func (c *EC2) GetHostReservationPurchasePreviewWithContext(ctx aws.Context, inpu return out, req.Send() } +const opGetLaunchTemplateData = "GetLaunchTemplateData" + +// GetLaunchTemplateDataRequest generates a "aws/request.Request" representing the +// client's request for the GetLaunchTemplateData operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetLaunchTemplateData for more information on using the GetLaunchTemplateData +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetLaunchTemplateDataRequest method. +// req, resp := client.GetLaunchTemplateDataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData +func (c *EC2) GetLaunchTemplateDataRequest(input *GetLaunchTemplateDataInput) (req *request.Request, output *GetLaunchTemplateDataOutput) { + op := &request.Operation{ + Name: opGetLaunchTemplateData, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetLaunchTemplateDataInput{} + } + + output = &GetLaunchTemplateDataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLaunchTemplateData API operation for Amazon Elastic Compute Cloud. +// +// Retrieves the configuration data of the specified instance. You can use this +// data to create a launch template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation GetLaunchTemplateData for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData +func (c *EC2) GetLaunchTemplateData(input *GetLaunchTemplateDataInput) (*GetLaunchTemplateDataOutput, error) { + req, out := c.GetLaunchTemplateDataRequest(input) + return out, req.Send() +} + +// GetLaunchTemplateDataWithContext is the same as GetLaunchTemplateData with the addition of +// the ability to pass a context and additional request options. +// +// See GetLaunchTemplateData for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) GetLaunchTemplateDataWithContext(ctx aws.Context, input *GetLaunchTemplateDataInput, opts ...request.Option) (*GetLaunchTemplateDataOutput, error) { + req, out := c.GetLaunchTemplateDataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetPasswordData = "GetPasswordData" // GetPasswordDataRequest generates a "aws/request.Request" representing the @@ -16505,6 +17722,82 @@ func (c *EC2) ModifyInstancePlacementWithContext(ctx aws.Context, input *ModifyI return out, req.Send() } +const opModifyLaunchTemplate = "ModifyLaunchTemplate" + +// ModifyLaunchTemplateRequest generates a "aws/request.Request" representing the +// client's request for the ModifyLaunchTemplate operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyLaunchTemplate for more information on using the ModifyLaunchTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyLaunchTemplateRequest method. +// req, resp := client.ModifyLaunchTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate +func (c *EC2) ModifyLaunchTemplateRequest(input *ModifyLaunchTemplateInput) (req *request.Request, output *ModifyLaunchTemplateOutput) { + op := &request.Operation{ + Name: opModifyLaunchTemplate, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyLaunchTemplateInput{} + } + + output = &ModifyLaunchTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyLaunchTemplate API operation for Amazon Elastic Compute Cloud. +// +// Modifies a launch template. You can specify which version of the launch template +// to set as the default version. When launching an instance, the default version +// applies when a launch template version is not specified. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyLaunchTemplate for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate +func (c *EC2) ModifyLaunchTemplate(input *ModifyLaunchTemplateInput) (*ModifyLaunchTemplateOutput, error) { + req, out := c.ModifyLaunchTemplateRequest(input) + return out, req.Send() +} + +// ModifyLaunchTemplateWithContext is the same as ModifyLaunchTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyLaunchTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ModifyLaunchTemplateWithContext(ctx aws.Context, input *ModifyLaunchTemplateInput, opts ...request.Option) (*ModifyLaunchTemplateOutput, error) { + req, out := c.ModifyLaunchTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute" // ModifyNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the @@ -16794,26 +18087,29 @@ func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) // ModifySpotFleetRequest API operation for Amazon Elastic Compute Cloud. // -// Modifies the specified Spot fleet request. +// Modifies the specified Spot Fleet request. // -// While the Spot fleet request is being modified, it is in the modifying state. +// While the Spot Fleet request is being modified, it is in the modifying state. // -// To scale up your Spot fleet, increase its target capacity. The Spot fleet -// launches the additional Spot instances according to the allocation strategy -// for the Spot fleet request. If the allocation strategy is lowestPrice, the -// Spot fleet launches instances using the Spot pool with the lowest price. -// If the allocation strategy is diversified, the Spot fleet distributes the +// To scale up your Spot Fleet, increase its target capacity. The Spot Fleet +// launches the additional Spot Instances according to the allocation strategy +// for the Spot Fleet request. If the allocation strategy is lowestPrice, the +// Spot Fleet launches instances using the Spot pool with the lowest price. +// If the allocation strategy is diversified, the Spot Fleet distributes the // instances across the Spot pools. // -// To scale down your Spot fleet, decrease its target capacity. First, the Spot -// fleet cancels any open bids that exceed the new target capacity. You can -// request that the Spot fleet terminate Spot instances until the size of the -// fleet no longer exceeds the new target capacity. If the allocation strategy -// is lowestPrice, the Spot fleet terminates the instances with the highest -// price per unit. If the allocation strategy is diversified, the Spot fleet +// To scale down your Spot Fleet, decrease its target capacity. First, the Spot +// Fleet cancels any open requests that exceed the new target capacity. You +// can request that the Spot Fleet terminate Spot Instances until the size of +// the fleet no longer exceeds the new target capacity. If the allocation strategy +// is lowestPrice, the Spot Fleet terminates the instances with the highest +// price per unit. If the allocation strategy is diversified, the Spot Fleet // terminates instances across the Spot pools. Alternatively, you can request -// that the Spot fleet keep the fleet at its current size, but not replace any -// Spot instances that are interrupted or that you terminate manually. +// that the Spot Fleet keep the fleet at its current size, but not replace any +// Spot Instances that are interrupted or that you terminate manually. +// +// If you are finished with your Spot Fleet for now, but will use it again later, +// you can set the target capacity to 0. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -17263,6 +18559,235 @@ func (c *EC2) ModifyVpcEndpointWithContext(ctx aws.Context, input *ModifyVpcEndp return out, req.Send() } +const opModifyVpcEndpointConnectionNotification = "ModifyVpcEndpointConnectionNotification" + +// ModifyVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the +// client's request for the ModifyVpcEndpointConnectionNotification operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyVpcEndpointConnectionNotification for more information on using the ModifyVpcEndpointConnectionNotification +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyVpcEndpointConnectionNotificationRequest method. +// req, resp := client.ModifyVpcEndpointConnectionNotificationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification +func (c *EC2) ModifyVpcEndpointConnectionNotificationRequest(input *ModifyVpcEndpointConnectionNotificationInput) (req *request.Request, output *ModifyVpcEndpointConnectionNotificationOutput) { + op := &request.Operation{ + Name: opModifyVpcEndpointConnectionNotification, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyVpcEndpointConnectionNotificationInput{} + } + + output = &ModifyVpcEndpointConnectionNotificationOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud. +// +// Modifies a connection notification for VPC endpoint or VPC endpoint service. +// You can change the SNS topic for the notification, or the events for which +// to be notified. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyVpcEndpointConnectionNotification for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification +func (c *EC2) ModifyVpcEndpointConnectionNotification(input *ModifyVpcEndpointConnectionNotificationInput) (*ModifyVpcEndpointConnectionNotificationOutput, error) { + req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input) + return out, req.Send() +} + +// ModifyVpcEndpointConnectionNotificationWithContext is the same as ModifyVpcEndpointConnectionNotification with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyVpcEndpointConnectionNotification for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ModifyVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *ModifyVpcEndpointConnectionNotificationInput, opts ...request.Option) (*ModifyVpcEndpointConnectionNotificationOutput, error) { + req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opModifyVpcEndpointServiceConfiguration = "ModifyVpcEndpointServiceConfiguration" + +// ModifyVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the ModifyVpcEndpointServiceConfiguration operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyVpcEndpointServiceConfiguration for more information on using the ModifyVpcEndpointServiceConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyVpcEndpointServiceConfigurationRequest method. +// req, resp := client.ModifyVpcEndpointServiceConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration +func (c *EC2) ModifyVpcEndpointServiceConfigurationRequest(input *ModifyVpcEndpointServiceConfigurationInput) (req *request.Request, output *ModifyVpcEndpointServiceConfigurationOutput) { + op := &request.Operation{ + Name: opModifyVpcEndpointServiceConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyVpcEndpointServiceConfigurationInput{} + } + + output = &ModifyVpcEndpointServiceConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud. +// +// Modifies the attributes of your VPC endpoint service configuration. You can +// change the Network Load Balancers for your service, and you can specify whether +// acceptance is required for requests to connect to your endpoint service through +// an interface VPC endpoint. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyVpcEndpointServiceConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration +func (c *EC2) ModifyVpcEndpointServiceConfiguration(input *ModifyVpcEndpointServiceConfigurationInput) (*ModifyVpcEndpointServiceConfigurationOutput, error) { + req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input) + return out, req.Send() +} + +// ModifyVpcEndpointServiceConfigurationWithContext is the same as ModifyVpcEndpointServiceConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyVpcEndpointServiceConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ModifyVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *ModifyVpcEndpointServiceConfigurationInput, opts ...request.Option) (*ModifyVpcEndpointServiceConfigurationOutput, error) { + req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opModifyVpcEndpointServicePermissions = "ModifyVpcEndpointServicePermissions" + +// ModifyVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the +// client's request for the ModifyVpcEndpointServicePermissions operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyVpcEndpointServicePermissions for more information on using the ModifyVpcEndpointServicePermissions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyVpcEndpointServicePermissionsRequest method. +// req, resp := client.ModifyVpcEndpointServicePermissionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions +func (c *EC2) ModifyVpcEndpointServicePermissionsRequest(input *ModifyVpcEndpointServicePermissionsInput) (req *request.Request, output *ModifyVpcEndpointServicePermissionsOutput) { + op := &request.Operation{ + Name: opModifyVpcEndpointServicePermissions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyVpcEndpointServicePermissionsInput{} + } + + output = &ModifyVpcEndpointServicePermissionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud. +// +// Modifies the permissions for your VPC endpoint service. You can add or remove +// permissions for service consumers (IAM users, IAM roles, and AWS accounts) +// to discover your endpoint service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyVpcEndpointServicePermissions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions +func (c *EC2) ModifyVpcEndpointServicePermissions(input *ModifyVpcEndpointServicePermissionsInput) (*ModifyVpcEndpointServicePermissionsOutput, error) { + req, out := c.ModifyVpcEndpointServicePermissionsRequest(input) + return out, req.Send() +} + +// ModifyVpcEndpointServicePermissionsWithContext is the same as ModifyVpcEndpointServicePermissions with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyVpcEndpointServicePermissions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ModifyVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *ModifyVpcEndpointServicePermissionsInput, opts ...request.Option) (*ModifyVpcEndpointServicePermissionsOutput, error) { + req, out := c.ModifyVpcEndpointServicePermissionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions" // ModifyVpcPeeringConnectionOptionsRequest generates a "aws/request.Request" representing the @@ -18029,6 +19554,81 @@ func (c *EC2) RegisterImageWithContext(ctx aws.Context, input *RegisterImageInpu return out, req.Send() } +const opRejectVpcEndpointConnections = "RejectVpcEndpointConnections" + +// RejectVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the +// client's request for the RejectVpcEndpointConnections operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RejectVpcEndpointConnections for more information on using the RejectVpcEndpointConnections +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RejectVpcEndpointConnectionsRequest method. +// req, resp := client.RejectVpcEndpointConnectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections +func (c *EC2) RejectVpcEndpointConnectionsRequest(input *RejectVpcEndpointConnectionsInput) (req *request.Request, output *RejectVpcEndpointConnectionsOutput) { + op := &request.Operation{ + Name: opRejectVpcEndpointConnections, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RejectVpcEndpointConnectionsInput{} + } + + output = &RejectVpcEndpointConnectionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// RejectVpcEndpointConnections API operation for Amazon Elastic Compute Cloud. +// +// Rejects one or more VPC endpoint connection requests to your VPC endpoint +// service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RejectVpcEndpointConnections for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections +func (c *EC2) RejectVpcEndpointConnections(input *RejectVpcEndpointConnectionsInput) (*RejectVpcEndpointConnectionsOutput, error) { + req, out := c.RejectVpcEndpointConnectionsRequest(input) + return out, req.Send() +} + +// RejectVpcEndpointConnectionsWithContext is the same as RejectVpcEndpointConnections with the addition of +// the ability to pass a context and additional request options. +// +// See RejectVpcEndpointConnections for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) RejectVpcEndpointConnectionsWithContext(ctx aws.Context, input *RejectVpcEndpointConnectionsInput, opts ...request.Option) (*RejectVpcEndpointConnectionsOutput, error) { + req, out := c.RejectVpcEndpointConnectionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection" // RejectVpcPeeringConnectionRequest generates a "aws/request.Request" representing the @@ -18809,21 +20409,24 @@ func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *reques // RequestSpotFleet API operation for Amazon Elastic Compute Cloud. // -// Creates a Spot fleet request. +// Creates a Spot Fleet request. // // You can submit a single request that includes multiple launch specifications // that vary by instance type, AMI, Availability Zone, or subnet. // -// By default, the Spot fleet requests Spot instances in the Spot pool where +// By default, the Spot Fleet requests Spot Instances in the Spot pool where // the price per unit is the lowest. Each launch specification can include its // own instance weighting that reflects the value of the instance type to your // application workload. // -// Alternatively, you can specify that the Spot fleet distribute the target +// Alternatively, you can specify that the Spot Fleet distribute the target // capacity across the Spot pools included in its launch specifications. By -// ensuring that the Spot instances in your Spot fleet are in different Spot +// ensuring that the Spot Instances in your Spot Fleet are in different Spot // pools, you can improve the availability of your fleet. // +// You can specify tags for the Spot Instances. You cannot tag other resource +// types in a Spot Fleet request; only the instance resource type is supported. +// // For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html) // in the Amazon Elastic Compute Cloud User Guide. // @@ -18899,11 +20502,9 @@ func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req // RequestSpotInstances API operation for Amazon Elastic Compute Cloud. // -// Creates a Spot instance request. Spot instances are instances that Amazon -// EC2 launches when the bid price that you specify exceeds the current Spot -// price. Amazon EC2 periodically sets the Spot price based on available Spot -// Instance capacity and current Spot instance requests. For more information, -// see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) +// Creates a Spot Instance request. Spot Instances are instances that Amazon +// EC2 launches when the maximum price that you specify exceeds the current +// Spot price. For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -19658,6 +21259,11 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques // * If any of the AMIs have a product code attached for which the user has // not subscribed, the request fails. // +// You can create a launch template (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html), +// which is a resource that contains the parameters to launch an instance. When +// you launch an instance using RunInstances, you can specify the launch template +// instead of specifying the launch parameters. +// // To ensure faster instance launches, break up large requests into smaller // batches. For example, create five separate launch requests for 100 instances // each instead of one launch request for 500 instances. @@ -20574,6 +22180,95 @@ func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *Ac return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnectionsRequest +type AcceptVpcEndpointConnectionsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the endpoint service. + // + // ServiceId is a required field + ServiceId *string `type:"string" required:"true"` + + // The IDs of one or more interface VPC endpoints. + // + // VpcEndpointIds is a required field + VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"` +} + +// String returns the string representation +func (s AcceptVpcEndpointConnectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptVpcEndpointConnectionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AcceptVpcEndpointConnectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AcceptVpcEndpointConnectionsInput"} + if s.ServiceId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceId")) + } + if s.VpcEndpointIds == nil { + invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *AcceptVpcEndpointConnectionsInput) SetDryRun(v bool) *AcceptVpcEndpointConnectionsInput { + s.DryRun = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *AcceptVpcEndpointConnectionsInput) SetServiceId(v string) *AcceptVpcEndpointConnectionsInput { + s.ServiceId = &v + return s +} + +// SetVpcEndpointIds sets the VpcEndpointIds field's value. +func (s *AcceptVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *AcceptVpcEndpointConnectionsInput { + s.VpcEndpointIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnectionsResult +type AcceptVpcEndpointConnectionsOutput struct { + _ struct{} `type:"structure"` + + // Information about the interface endpoints that were not accepted, if applicable. + Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s AcceptVpcEndpointConnectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptVpcEndpointConnectionsOutput) GoString() string { + return s.String() +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *AcceptVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *AcceptVpcEndpointConnectionsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for AcceptVpcPeeringConnection. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnectionRequest type AcceptVpcPeeringConnectionInput struct { @@ -20695,7 +22390,7 @@ func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeVal return s } -// Describes a running instance in a Spot fleet. +// Describes a running instance in a Spot Fleet. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ActiveInstance type ActiveInstance struct { _ struct{} `type:"structure"` @@ -20711,7 +22406,7 @@ type ActiveInstance struct { // The instance type. InstanceType *string `locationName:"instanceType" type:"string"` - // The ID of the Spot instance request. + // The ID of the Spot Instance request. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"` } @@ -21053,6 +22748,40 @@ func (s *AllocateHostsOutput) SetHostIds(v []*string) *AllocateHostsOutput { return s } +// Describes a principal. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllowedPrincipal +type AllowedPrincipal struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the principal. + Principal *string `locationName:"principal" type:"string"` + + // The type of principal. + PrincipalType *string `locationName:"principalType" type:"string" enum:"PrincipalType"` +} + +// String returns the string representation +func (s AllowedPrincipal) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AllowedPrincipal) GoString() string { + return s.String() +} + +// SetPrincipal sets the Principal field's value. +func (s *AllowedPrincipal) SetPrincipal(v string) *AllowedPrincipal { + s.Principal = &v + return s +} + +// SetPrincipalType sets the PrincipalType field's value. +func (s *AllowedPrincipal) SetPrincipalType(v string) *AllowedPrincipal { + s.PrincipalType = &v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6AddressesRequest type AssignIpv6AddressesInput struct { _ struct{} `type:"structure"` @@ -23369,7 +25098,7 @@ func (s *CancelReservedInstancesListingOutput) SetReservedInstancesListings(v [] return s } -// Describes a Spot fleet error. +// Describes a Spot Fleet error. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsError type CancelSpotFleetRequestsError struct { _ struct{} `type:"structure"` @@ -23407,7 +25136,7 @@ func (s *CancelSpotFleetRequestsError) SetMessage(v string) *CancelSpotFleetRequ return s } -// Describes a Spot fleet request that was not successfully canceled. +// Describes a Spot Fleet request that was not successfully canceled. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsErrorItem type CancelSpotFleetRequestsErrorItem struct { _ struct{} `type:"structure"` @@ -23417,7 +25146,7 @@ type CancelSpotFleetRequestsErrorItem struct { // Error is a required field Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure" required:"true"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` @@ -23456,12 +25185,12 @@ type CancelSpotFleetRequestsInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // The IDs of the Spot fleet requests. + // The IDs of the Spot Fleet requests. // // SpotFleetRequestIds is a required field SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list" required:"true"` - // Indicates whether to terminate instances for a Spot fleet request if it is + // Indicates whether to terminate instances for a Spot Fleet request if it is // canceled successfully. // // TerminateInstances is a required field @@ -23517,10 +25246,10 @@ func (s *CancelSpotFleetRequestsInput) SetTerminateInstances(v bool) *CancelSpot type CancelSpotFleetRequestsOutput struct { _ struct{} `type:"structure"` - // Information about the Spot fleet requests that are successfully canceled. + // Information about the Spot Fleet requests that are successfully canceled. SuccessfulFleetRequests []*CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"` - // Information about the Spot fleet requests that are not successfully canceled. + // Information about the Spot Fleet requests that are not successfully canceled. UnsuccessfulFleetRequests []*CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"` } @@ -23546,22 +25275,22 @@ func (s *CancelSpotFleetRequestsOutput) SetUnsuccessfulFleetRequests(v []*Cancel return s } -// Describes a Spot fleet request that was successfully canceled. +// Describes a Spot Fleet request that was successfully canceled. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsSuccessItem type CancelSpotFleetRequestsSuccessItem struct { _ struct{} `type:"structure"` - // The current state of the Spot fleet request. + // The current state of the Spot Fleet request. // // CurrentSpotFleetRequestState is a required field CurrentSpotFleetRequestState *string `locationName:"currentSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"` - // The previous state of the Spot fleet request. + // The previous state of the Spot Fleet request. // // PreviousSpotFleetRequestState is a required field PreviousSpotFleetRequestState *string `locationName:"previousSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` @@ -23606,7 +25335,7 @@ type CancelSpotInstanceRequestsInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // One or more Spot instance request IDs. + // One or more Spot Instance request IDs. // // SpotInstanceRequestIds is a required field SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"` @@ -23652,7 +25381,7 @@ func (s *CancelSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) type CancelSpotInstanceRequestsOutput struct { _ struct{} `type:"structure"` - // One or more Spot instance requests. + // One or more Spot Instance requests. CancelledSpotInstanceRequests []*CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"` } @@ -23672,15 +25401,15 @@ func (s *CancelSpotInstanceRequestsOutput) SetCancelledSpotInstanceRequests(v [] return s } -// Describes a request to cancel a Spot instance. +// Describes a request to cancel a Spot Instance. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelledSpotInstanceRequest type CancelledSpotInstanceRequest struct { _ struct{} `type:"structure"` - // The ID of the Spot instance request. + // The ID of the Spot Instance request. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"` - // The state of the Spot instance request. + // The state of the Spot Instance request. State *string `locationName:"state" type:"string" enum:"CancelSpotInstanceRequestState"` } @@ -23857,8 +25586,8 @@ func (s *ClassicLoadBalancer) SetName(v string) *ClassicLoadBalancer { return s } -// Describes the Classic Load Balancers to attach to a Spot fleet. Spot fleet -// registers the running Spot instances with these Classic Load Balancers. +// Describes the Classic Load Balancers to attach to a Spot Fleet. Spot Fleet +// registers the running Spot Instances with these Classic Load Balancers. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLoadBalancersConfig type ClassicLoadBalancersConfig struct { _ struct{} `type:"structure"` @@ -24065,6 +25794,86 @@ func (s *ConfirmProductInstanceOutput) SetReturn(v bool) *ConfirmProductInstance return s } +// Describes a connection notification for a VPC endpoint or VPC endpoint service. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConnectionNotification +type ConnectionNotification struct { + _ struct{} `type:"structure"` + + // The events for the notification. Valid values are Accept, Connect, Delete, + // and Reject. + ConnectionEvents []*string `locationName:"connectionEvents" locationNameList:"item" type:"list"` + + // The ARN of the SNS topic for the notification. + ConnectionNotificationArn *string `locationName:"connectionNotificationArn" type:"string"` + + // The ID of the notification. + ConnectionNotificationId *string `locationName:"connectionNotificationId" type:"string"` + + // The state of the notification. + ConnectionNotificationState *string `locationName:"connectionNotificationState" type:"string" enum:"ConnectionNotificationState"` + + // The type of notification. + ConnectionNotificationType *string `locationName:"connectionNotificationType" type:"string" enum:"ConnectionNotificationType"` + + // The ID of the endpoint service. + ServiceId *string `locationName:"serviceId" type:"string"` + + // The ID of the VPC endpoint. + VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"` +} + +// String returns the string representation +func (s ConnectionNotification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConnectionNotification) GoString() string { + return s.String() +} + +// SetConnectionEvents sets the ConnectionEvents field's value. +func (s *ConnectionNotification) SetConnectionEvents(v []*string) *ConnectionNotification { + s.ConnectionEvents = v + return s +} + +// SetConnectionNotificationArn sets the ConnectionNotificationArn field's value. +func (s *ConnectionNotification) SetConnectionNotificationArn(v string) *ConnectionNotification { + s.ConnectionNotificationArn = &v + return s +} + +// SetConnectionNotificationId sets the ConnectionNotificationId field's value. +func (s *ConnectionNotification) SetConnectionNotificationId(v string) *ConnectionNotification { + s.ConnectionNotificationId = &v + return s +} + +// SetConnectionNotificationState sets the ConnectionNotificationState field's value. +func (s *ConnectionNotification) SetConnectionNotificationState(v string) *ConnectionNotification { + s.ConnectionNotificationState = &v + return s +} + +// SetConnectionNotificationType sets the ConnectionNotificationType field's value. +func (s *ConnectionNotification) SetConnectionNotificationType(v string) *ConnectionNotification { + s.ConnectionNotificationType = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *ConnectionNotification) SetServiceId(v string) *ConnectionNotification { + s.ServiceId = &v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *ConnectionNotification) SetVpcEndpointId(v string) *ConnectionNotification { + s.VpcEndpointId = &v + return s +} + // Describes a conversion task. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConversionTask type ConversionTask struct { @@ -25640,6 +27449,255 @@ func (s *CreateKeyPairOutput) SetKeyName(v string) *CreateKeyPairOutput { return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateRequest +type CreateLaunchTemplateInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string `type:"string"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The information for the launch template. + // + // LaunchTemplateData is a required field + LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"` + + // A name for the launch template. + // + // LaunchTemplateName is a required field + LaunchTemplateName *string `min:"3" type:"string" required:"true"` + + // A description for the first version of the launch template. + VersionDescription *string `type:"string"` +} + +// String returns the string representation +func (s CreateLaunchTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLaunchTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLaunchTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateInput"} + if s.LaunchTemplateData == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData")) + } + if s.LaunchTemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchTemplateName")) + } + if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3)) + } + if s.LaunchTemplateData != nil { + if err := s.LaunchTemplateData.Validate(); err != nil { + invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateLaunchTemplateInput) SetClientToken(v string) *CreateLaunchTemplateInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateLaunchTemplateInput) SetDryRun(v bool) *CreateLaunchTemplateInput { + s.DryRun = &v + return s +} + +// SetLaunchTemplateData sets the LaunchTemplateData field's value. +func (s *CreateLaunchTemplateInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateInput { + s.LaunchTemplateData = v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *CreateLaunchTemplateInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateInput { + s.LaunchTemplateName = &v + return s +} + +// SetVersionDescription sets the VersionDescription field's value. +func (s *CreateLaunchTemplateInput) SetVersionDescription(v string) *CreateLaunchTemplateInput { + s.VersionDescription = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateResult +type CreateLaunchTemplateOutput struct { + _ struct{} `type:"structure"` + + // Information about the launch template. + LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"` +} + +// String returns the string representation +func (s CreateLaunchTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLaunchTemplateOutput) GoString() string { + return s.String() +} + +// SetLaunchTemplate sets the LaunchTemplate field's value. +func (s *CreateLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *CreateLaunchTemplateOutput { + s.LaunchTemplate = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersionRequest +type CreateLaunchTemplateVersionInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string `type:"string"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The information for the launch template. + // + // LaunchTemplateData is a required field + LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"` + + // The ID of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateId *string `type:"string"` + + // The name of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateName *string `min:"3" type:"string"` + + // The version number of the launch template version on which to base the new + // version. The new version inherits the same launch parameters as the source + // version, except for parameters that you specify in LaunchTemplateData. + SourceVersion *string `type:"string"` + + // A description for the version of the launch template. + VersionDescription *string `type:"string"` +} + +// String returns the string representation +func (s CreateLaunchTemplateVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLaunchTemplateVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLaunchTemplateVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateVersionInput"} + if s.LaunchTemplateData == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData")) + } + if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3)) + } + if s.LaunchTemplateData != nil { + if err := s.LaunchTemplateData.Validate(); err != nil { + invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateLaunchTemplateVersionInput) SetClientToken(v string) *CreateLaunchTemplateVersionInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateLaunchTemplateVersionInput) SetDryRun(v bool) *CreateLaunchTemplateVersionInput { + s.DryRun = &v + return s +} + +// SetLaunchTemplateData sets the LaunchTemplateData field's value. +func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateVersionInput { + s.LaunchTemplateData = v + return s +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateId(v string) *CreateLaunchTemplateVersionInput { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateVersionInput { + s.LaunchTemplateName = &v + return s +} + +// SetSourceVersion sets the SourceVersion field's value. +func (s *CreateLaunchTemplateVersionInput) SetSourceVersion(v string) *CreateLaunchTemplateVersionInput { + s.SourceVersion = &v + return s +} + +// SetVersionDescription sets the VersionDescription field's value. +func (s *CreateLaunchTemplateVersionInput) SetVersionDescription(v string) *CreateLaunchTemplateVersionInput { + s.VersionDescription = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersionResult +type CreateLaunchTemplateVersionOutput struct { + _ struct{} `type:"structure"` + + // Information about the launch template version. + LaunchTemplateVersion *LaunchTemplateVersion `locationName:"launchTemplateVersion" type:"structure"` +} + +// String returns the string representation +func (s CreateLaunchTemplateVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLaunchTemplateVersionOutput) GoString() string { + return s.String() +} + +// SetLaunchTemplateVersion sets the LaunchTemplateVersion field's value. +func (s *CreateLaunchTemplateVersionOutput) SetLaunchTemplateVersion(v *LaunchTemplateVersion) *CreateLaunchTemplateVersionOutput { + s.LaunchTemplateVersion = v + return s +} + // Contains the parameters for CreateNatGateway. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayRequest type CreateNatGatewayInput struct { @@ -26871,7 +28929,7 @@ func (s *CreateSnapshotInput) SetVolumeId(v string) *CreateSnapshotInput { type CreateSpotDatafeedSubscriptionInput struct { _ struct{} `type:"structure"` - // The Amazon S3 bucket in which to store the Spot instance data feed. + // The Amazon S3 bucket in which to store the Spot Instance data feed. // // Bucket is a required field Bucket *string `locationName:"bucket" type:"string" required:"true"` @@ -26932,7 +28990,7 @@ func (s *CreateSpotDatafeedSubscriptionInput) SetPrefix(v string) *CreateSpotDat type CreateSpotDatafeedSubscriptionOutput struct { _ struct{} `type:"structure"` - // The Spot instance data feed subscription. + // The Spot Instance data feed subscription. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"` } @@ -27364,6 +29422,134 @@ func (s *CreateVolumePermissionModifications) SetRemove(v []*CreateVolumePermiss return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotificationRequest +type CreateVpcEndpointConnectionNotificationInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string `type:"string"` + + // One or more endpoint events for which to receive notifications. Valid values + // are Accept, Connect, Delete, and Reject. + // + // ConnectionEvents is a required field + ConnectionEvents []*string `locationNameList:"item" type:"list" required:"true"` + + // The ARN of the SNS topic for the notifications. + // + // ConnectionNotificationArn is a required field + ConnectionNotificationArn *string `type:"string" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the endpoint service. + ServiceId *string `type:"string"` + + // The ID of the endpoint. + VpcEndpointId *string `type:"string"` +} + +// String returns the string representation +func (s CreateVpcEndpointConnectionNotificationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVpcEndpointConnectionNotificationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVpcEndpointConnectionNotificationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointConnectionNotificationInput"} + if s.ConnectionEvents == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionEvents")) + } + if s.ConnectionNotificationArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationInput { + s.ClientToken = &v + return s +} + +// SetConnectionEvents sets the ConnectionEvents field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *CreateVpcEndpointConnectionNotificationInput { + s.ConnectionEvents = v + return s +} + +// SetConnectionNotificationArn sets the ConnectionNotificationArn field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *CreateVpcEndpointConnectionNotificationInput { + s.ConnectionNotificationArn = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *CreateVpcEndpointConnectionNotificationInput { + s.DryRun = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetServiceId(v string) *CreateVpcEndpointConnectionNotificationInput { + s.ServiceId = &v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetVpcEndpointId(v string) *CreateVpcEndpointConnectionNotificationInput { + s.VpcEndpointId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotificationResult +type CreateVpcEndpointConnectionNotificationOutput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the notification. + ConnectionNotification *ConnectionNotification `locationName:"connectionNotification" type:"structure"` +} + +// String returns the string representation +func (s CreateVpcEndpointConnectionNotificationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVpcEndpointConnectionNotificationOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointConnectionNotificationOutput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationOutput { + s.ClientToken = &v + return s +} + +// SetConnectionNotification sets the ConnectionNotification field's value. +func (s *CreateVpcEndpointConnectionNotificationOutput) SetConnectionNotification(v *ConnectionNotification) *CreateVpcEndpointConnectionNotificationOutput { + s.ConnectionNotification = v + return s +} + // Contains the parameters for CreateVpcEndpoint. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointRequest type CreateVpcEndpointInput struct { @@ -27404,20 +29590,22 @@ type CreateVpcEndpointInput struct { RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"` // (Interface endpoint) The ID of one or more security groups to associate with - // the network interface. + // the endpoint network interface. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"` - // The AWS service name, in the form com.amazonaws.region.service. To get a - // list of available services, use the DescribeVpcEndpointServices request. + // The service name. To get a list of available services, use the DescribeVpcEndpointServices + // request. // // ServiceName is a required field ServiceName *string `type:"string" required:"true"` - // (Interface endpoint) The ID of one or more subnets in which to create a network - // interface for the endpoint. + // (Interface endpoint) The ID of one or more subnets in which to create an + // endpoint network interface. SubnetIds []*string `locationName:"SubnetId" locationNameList:"item" type:"list"` - // The type of endpoint. If not specified, the default is a gateway endpoint. + // The type of endpoint. + // + // Default: Gateway VpcEndpointType *string `type:"string" enum:"VpcEndpointType"` // The ID of the VPC in which the endpoint will be used. @@ -27547,6 +29735,112 @@ func (s *CreateVpcEndpointOutput) SetVpcEndpoint(v *VpcEndpoint) *CreateVpcEndpo return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfigurationRequest +type CreateVpcEndpointServiceConfigurationInput struct { + _ struct{} `type:"structure"` + + // Indicate whether requests from service consumers to create an endpoint to + // your service must be accepted. To accept a request, use AcceptVpcEndpointConnections. + AcceptanceRequired *bool `type:"boolean"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). + ClientToken *string `type:"string"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The Amazon Resource Names (ARNs) of one or more Network Load Balancers for + // your service. + // + // NetworkLoadBalancerArns is a required field + NetworkLoadBalancerArns []*string `locationName:"NetworkLoadBalancerArn" locationNameList:"item" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateVpcEndpointServiceConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVpcEndpointServiceConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVpcEndpointServiceConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointServiceConfigurationInput"} + if s.NetworkLoadBalancerArns == nil { + invalidParams.Add(request.NewErrParamRequired("NetworkLoadBalancerArns")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptanceRequired sets the AcceptanceRequired field's value. +func (s *CreateVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *CreateVpcEndpointServiceConfigurationInput { + s.AcceptanceRequired = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointServiceConfigurationInput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *CreateVpcEndpointServiceConfigurationInput { + s.DryRun = &v + return s +} + +// SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value. +func (s *CreateVpcEndpointServiceConfigurationInput) SetNetworkLoadBalancerArns(v []*string) *CreateVpcEndpointServiceConfigurationInput { + s.NetworkLoadBalancerArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfigurationResult +type CreateVpcEndpointServiceConfigurationOutput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the service configuration. + ServiceConfiguration *ServiceConfiguration `locationName:"serviceConfiguration" type:"structure"` +} + +// String returns the string representation +func (s CreateVpcEndpointServiceConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVpcEndpointServiceConfigurationOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointServiceConfigurationOutput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationOutput { + s.ClientToken = &v + return s +} + +// SetServiceConfiguration sets the ServiceConfiguration field's value. +func (s *CreateVpcEndpointServiceConfigurationOutput) SetServiceConfiguration(v *ServiceConfiguration) *CreateVpcEndpointServiceConfigurationOutput { + s.ServiceConfiguration = v + return s +} + // Contains the parameters for CreateVpc. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcRequest type CreateVpcInput struct { @@ -28017,6 +30311,57 @@ func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayO return s } +// Describes the credit option for CPU usage of a T2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreditSpecification +type CreditSpecification struct { + _ struct{} `type:"structure"` + + // The credit option for CPU usage of a T2 instance. + CpuCredits *string `locationName:"cpuCredits" type:"string"` +} + +// String returns the string representation +func (s CreditSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreditSpecification) GoString() string { + return s.String() +} + +// SetCpuCredits sets the CpuCredits field's value. +func (s *CreditSpecification) SetCpuCredits(v string) *CreditSpecification { + s.CpuCredits = &v + return s +} + +// The credit option for CPU usage of a T2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreditSpecificationRequest +type CreditSpecificationRequest struct { + _ struct{} `type:"structure"` + + // The credit option for CPU usage of a T2 instance. Valid values are standard + // and unlimited. + CpuCredits *string `type:"string"` +} + +// String returns the string representation +func (s CreditSpecificationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreditSpecificationRequest) GoString() string { + return s.String() +} + +// SetCpuCredits sets the CpuCredits field's value. +func (s *CreditSpecificationRequest) SetCpuCredits(v string) *CreditSpecificationRequest { + s.CpuCredits = &v + return s +} + // Describes a customer gateway. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CustomerGateway type CustomerGateway struct { @@ -28572,6 +30917,292 @@ func (s DeleteKeyPairOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateRequest +type DeleteLaunchTemplateInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateId *string `type:"string"` + + // The name of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateName *string `min:"3" type:"string"` +} + +// String returns the string representation +func (s DeleteLaunchTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLaunchTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLaunchTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateInput"} + if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteLaunchTemplateInput) SetDryRun(v bool) *DeleteLaunchTemplateInput { + s.DryRun = &v + return s +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *DeleteLaunchTemplateInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateInput { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *DeleteLaunchTemplateInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateInput { + s.LaunchTemplateName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateResult +type DeleteLaunchTemplateOutput struct { + _ struct{} `type:"structure"` + + // Information about the launch template. + LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"` +} + +// String returns the string representation +func (s DeleteLaunchTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLaunchTemplateOutput) GoString() string { + return s.String() +} + +// SetLaunchTemplate sets the LaunchTemplate field's value. +func (s *DeleteLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *DeleteLaunchTemplateOutput { + s.LaunchTemplate = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersionsRequest +type DeleteLaunchTemplateVersionsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateId *string `type:"string"` + + // The name of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateName *string `min:"3" type:"string"` + + // The version numbers of one or more launch template versions to delete. + // + // Versions is a required field + Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list" required:"true"` +} + +// String returns the string representation +func (s DeleteLaunchTemplateVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLaunchTemplateVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLaunchTemplateVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateVersionsInput"} + if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3)) + } + if s.Versions == nil { + invalidParams.Add(request.NewErrParamRequired("Versions")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteLaunchTemplateVersionsInput) SetDryRun(v bool) *DeleteLaunchTemplateVersionsInput { + s.DryRun = &v + return s +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsInput { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsInput { + s.LaunchTemplateName = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *DeleteLaunchTemplateVersionsInput) SetVersions(v []*string) *DeleteLaunchTemplateVersionsInput { + s.Versions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersionsResult +type DeleteLaunchTemplateVersionsOutput struct { + _ struct{} `type:"structure"` + + // Information about the launch template versions that were successfully deleted. + SuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseSuccessItem `locationName:"successfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"` + + // Information about the launch template versions that could not be deleted. + UnsuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseErrorItem `locationName:"unsuccessfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DeleteLaunchTemplateVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLaunchTemplateVersionsOutput) GoString() string { + return s.String() +} + +// SetSuccessfullyDeletedLaunchTemplateVersions sets the SuccessfullyDeletedLaunchTemplateVersions field's value. +func (s *DeleteLaunchTemplateVersionsOutput) SetSuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseSuccessItem) *DeleteLaunchTemplateVersionsOutput { + s.SuccessfullyDeletedLaunchTemplateVersions = v + return s +} + +// SetUnsuccessfullyDeletedLaunchTemplateVersions sets the UnsuccessfullyDeletedLaunchTemplateVersions field's value. +func (s *DeleteLaunchTemplateVersionsOutput) SetUnsuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseErrorItem) *DeleteLaunchTemplateVersionsOutput { + s.UnsuccessfullyDeletedLaunchTemplateVersions = v + return s +} + +// Describes a launch template version that could not be deleted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersionsResponseErrorItem +type DeleteLaunchTemplateVersionsResponseErrorItem struct { + _ struct{} `type:"structure"` + + // The ID of the launch template. + LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"` + + // The name of the launch template. + LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"` + + // Information about the error. + ResponseError *ResponseError `locationName:"responseError" type:"structure"` + + // The version number of the launch template. + VersionNumber *int64 `locationName:"versionNumber" type:"long"` +} + +// String returns the string representation +func (s DeleteLaunchTemplateVersionsResponseErrorItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLaunchTemplateVersionsResponseErrorItem) GoString() string { + return s.String() +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseErrorItem { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseErrorItem { + s.LaunchTemplateName = &v + return s +} + +// SetResponseError sets the ResponseError field's value. +func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetResponseError(v *ResponseError) *DeleteLaunchTemplateVersionsResponseErrorItem { + s.ResponseError = v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseErrorItem { + s.VersionNumber = &v + return s +} + +// Describes a launch template version that was successfully deleted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersionsResponseSuccessItem +type DeleteLaunchTemplateVersionsResponseSuccessItem struct { + _ struct{} `type:"structure"` + + // The ID of the launch template. + LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"` + + // The name of the launch template. + LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"` + + // The version number of the launch template. + VersionNumber *int64 `locationName:"versionNumber" type:"long"` +} + +// String returns the string representation +func (s DeleteLaunchTemplateVersionsResponseSuccessItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLaunchTemplateVersionsResponseSuccessItem) GoString() string { + return s.String() +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem { + s.LaunchTemplateName = &v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseSuccessItem { + s.VersionNumber = &v + return s +} + // Contains the parameters for DeleteNatGateway. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGatewayRequest type DeleteNatGatewayInput struct { @@ -29561,6 +32192,156 @@ func (s DeleteVolumeOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotificationsRequest +type DeleteVpcEndpointConnectionNotificationsInput struct { + _ struct{} `type:"structure"` + + // One or more notification IDs. + // + // ConnectionNotificationIds is a required field + ConnectionNotificationIds []*string `locationName:"ConnectionNotificationId" locationNameList:"item" type:"list" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` +} + +// String returns the string representation +func (s DeleteVpcEndpointConnectionNotificationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVpcEndpointConnectionNotificationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVpcEndpointConnectionNotificationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointConnectionNotificationsInput"} + if s.ConnectionNotificationIds == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionNotificationIds sets the ConnectionNotificationIds field's value. +func (s *DeleteVpcEndpointConnectionNotificationsInput) SetConnectionNotificationIds(v []*string) *DeleteVpcEndpointConnectionNotificationsInput { + s.ConnectionNotificationIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DeleteVpcEndpointConnectionNotificationsInput { + s.DryRun = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotificationsResult +type DeleteVpcEndpointConnectionNotificationsOutput struct { + _ struct{} `type:"structure"` + + // Information about the notifications that could not be deleted successfully. + Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DeleteVpcEndpointConnectionNotificationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVpcEndpointConnectionNotificationsOutput) GoString() string { + return s.String() +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *DeleteVpcEndpointConnectionNotificationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointConnectionNotificationsOutput { + s.Unsuccessful = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurationsRequest +type DeleteVpcEndpointServiceConfigurationsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The IDs of one or more services. + // + // ServiceIds is a required field + ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list" required:"true"` +} + +// String returns the string representation +func (s DeleteVpcEndpointServiceConfigurationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVpcEndpointServiceConfigurationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVpcEndpointServiceConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointServiceConfigurationsInput"} + if s.ServiceIds == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DeleteVpcEndpointServiceConfigurationsInput { + s.DryRun = &v + return s +} + +// SetServiceIds sets the ServiceIds field's value. +func (s *DeleteVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DeleteVpcEndpointServiceConfigurationsInput { + s.ServiceIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurationsResult +type DeleteVpcEndpointServiceConfigurationsOutput struct { + _ struct{} `type:"structure"` + + // Information about the service configurations that were not deleted, if applicable. + Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DeleteVpcEndpointServiceConfigurationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVpcEndpointServiceConfigurationsOutput) GoString() string { + return s.String() +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *DeleteVpcEndpointServiceConfigurationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointServiceConfigurationsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for DeleteVpcEndpoints. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointsRequest type DeleteVpcEndpointsInput struct { @@ -29572,7 +32353,7 @@ type DeleteVpcEndpointsInput struct { // it is UnauthorizedOperation. DryRun *bool `type:"boolean"` - // One or more endpoint IDs. + // One or more VPC endpoint IDs. // // VpcEndpointIds is a required field VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"` @@ -29618,7 +32399,7 @@ func (s *DeleteVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DeleteVpcEndpo type DeleteVpcEndpointsOutput struct { _ struct{} `type:"structure"` - // Information about the endpoints that were not successfully deleted. + // Information about the VPC endpoints that were not successfully deleted. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` } @@ -33369,6 +36150,286 @@ func (s *DescribeKeyPairsOutput) SetKeyPairs(v []*KeyPairInfo) *DescribeKeyPairs return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersionsRequest +type DescribeLaunchTemplateVersionsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more filters. + // + // * create-time - The time the launch template version was created. + // + // * ebs-optimized - A boolean that indicates whether the instance is optimized + // for Amazon EBS I/O. + // + // * iam-instance-profile - The ARN of the IAM instance profile. + // + // * image-id - The ID of the AMI. + // + // * instance-type - The instance type. + // + // * is-default-version - A boolean that indicates whether the launch template + // version is the default version. + // + // * kernel-id - The kernel ID. + // + // * ram-disk-id - The RAM disk ID. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The ID of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateId *string `type:"string"` + + // The name of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateName *string `min:"3" type:"string"` + + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned NextToken value. This + // value can be between 5 and 1000. + MaxResults *int64 `type:"integer"` + + // The version number up to which to describe launch template versions. + MaxVersion *string `type:"string"` + + // The version number after which to describe launch template versions. + MinVersion *string `type:"string"` + + // The token to request the next page of results. + NextToken *string `type:"string"` + + // One or more versions of the launch template. + Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeLaunchTemplateVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLaunchTemplateVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeLaunchTemplateVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLaunchTemplateVersionsInput"} + if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetDryRun(v bool) *DescribeLaunchTemplateVersionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetFilters(v []*Filter) *DescribeLaunchTemplateVersionsInput { + s.Filters = v + return s +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DescribeLaunchTemplateVersionsInput { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DescribeLaunchTemplateVersionsInput { + s.LaunchTemplateName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetMaxResults(v int64) *DescribeLaunchTemplateVersionsInput { + s.MaxResults = &v + return s +} + +// SetMaxVersion sets the MaxVersion field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetMaxVersion(v string) *DescribeLaunchTemplateVersionsInput { + s.MaxVersion = &v + return s +} + +// SetMinVersion sets the MinVersion field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetMinVersion(v string) *DescribeLaunchTemplateVersionsInput { + s.MinVersion = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetNextToken(v string) *DescribeLaunchTemplateVersionsInput { + s.NextToken = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *DescribeLaunchTemplateVersionsInput) SetVersions(v []*string) *DescribeLaunchTemplateVersionsInput { + s.Versions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersionsResult +type DescribeLaunchTemplateVersionsOutput struct { + _ struct{} `type:"structure"` + + // Information about the launch template versions. + LaunchTemplateVersions []*LaunchTemplateVersion `locationName:"launchTemplateVersionSet" locationNameList:"item" type:"list"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeLaunchTemplateVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLaunchTemplateVersionsOutput) GoString() string { + return s.String() +} + +// SetLaunchTemplateVersions sets the LaunchTemplateVersions field's value. +func (s *DescribeLaunchTemplateVersionsOutput) SetLaunchTemplateVersions(v []*LaunchTemplateVersion) *DescribeLaunchTemplateVersionsOutput { + s.LaunchTemplateVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLaunchTemplateVersionsOutput) SetNextToken(v string) *DescribeLaunchTemplateVersionsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplatesRequest +type DescribeLaunchTemplatesInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more filters. + // + // * create-time - The time the launch template was created. + // + // * launch-template-name - The name of the launch template. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // One or more launch template IDs. + LaunchTemplateIds []*string `locationName:"LaunchTemplateId" locationNameList:"item" type:"list"` + + // One or more launch template names. + LaunchTemplateNames []*string `locationName:"LaunchTemplateName" locationNameList:"item" type:"list"` + + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned NextToken value. This + // value can be between 5 and 1000. + MaxResults *int64 `type:"integer"` + + // The token to request the next page of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeLaunchTemplatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLaunchTemplatesInput) GoString() string { + return s.String() +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeLaunchTemplatesInput) SetDryRun(v bool) *DescribeLaunchTemplatesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeLaunchTemplatesInput) SetFilters(v []*Filter) *DescribeLaunchTemplatesInput { + s.Filters = v + return s +} + +// SetLaunchTemplateIds sets the LaunchTemplateIds field's value. +func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateIds(v []*string) *DescribeLaunchTemplatesInput { + s.LaunchTemplateIds = v + return s +} + +// SetLaunchTemplateNames sets the LaunchTemplateNames field's value. +func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateNames(v []*string) *DescribeLaunchTemplatesInput { + s.LaunchTemplateNames = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeLaunchTemplatesInput) SetMaxResults(v int64) *DescribeLaunchTemplatesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLaunchTemplatesInput) SetNextToken(v string) *DescribeLaunchTemplatesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplatesResult +type DescribeLaunchTemplatesOutput struct { + _ struct{} `type:"structure"` + + // Information about the launch templates. + LaunchTemplates []*LaunchTemplate `locationName:"launchTemplates" locationNameList:"item" type:"list"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeLaunchTemplatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLaunchTemplatesOutput) GoString() string { + return s.String() +} + +// SetLaunchTemplates sets the LaunchTemplates field's value. +func (s *DescribeLaunchTemplatesOutput) SetLaunchTemplates(v []*LaunchTemplate) *DescribeLaunchTemplatesOutput { + s.LaunchTemplates = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLaunchTemplatesOutput) SetNextToken(v string) *DescribeLaunchTemplatesOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeMovingAddresses. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddressesRequest type DescribeMovingAddressesInput struct { @@ -35965,7 +39026,7 @@ func (s *DescribeSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DescribeSpotD type DescribeSpotDatafeedSubscriptionOutput struct { _ struct{} `type:"structure"` - // The Spot instance data feed subscription. + // The Spot Instance data feed subscription. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"` } @@ -36004,7 +39065,7 @@ type DescribeSpotFleetInstancesInput struct { // The token for the next set of results. NextToken *string `locationName:"nextToken" type:"string"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` @@ -36072,7 +39133,7 @@ type DescribeSpotFleetInstancesOutput struct { // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` @@ -36128,7 +39189,7 @@ type DescribeSpotFleetRequestHistoryInput struct { // The token for the next set of results. NextToken *string `locationName:"nextToken" type:"string"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` @@ -36206,7 +39267,7 @@ func (s *DescribeSpotFleetRequestHistoryInput) SetStartTime(v time.Time) *Descri type DescribeSpotFleetRequestHistoryOutput struct { _ struct{} `type:"structure"` - // Information about the events in the history of the Spot fleet request. + // Information about the events in the history of the Spot Fleet request. // // HistoryRecords is a required field HistoryRecords []*HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list" required:"true"` @@ -36223,7 +39284,7 @@ type DescribeSpotFleetRequestHistoryOutput struct { // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` @@ -36293,7 +39354,7 @@ type DescribeSpotFleetRequestsInput struct { // The token for the next set of results. NextToken *string `locationName:"nextToken" type:"string"` - // The IDs of the Spot fleet requests. + // The IDs of the Spot Fleet requests. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"` } @@ -36340,7 +39401,7 @@ type DescribeSpotFleetRequestsOutput struct { // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` - // Information about the configuration of your Spot fleet. + // Information about the configuration of your Spot Fleet. // // SpotFleetRequestConfigs is a required field SpotFleetRequestConfigs []*SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list" required:"true"` @@ -36383,7 +39444,7 @@ type DescribeSpotInstanceRequestsInput struct { // // * availability-zone-group - The Availability Zone group. // - // * create-time - The time stamp when the Spot instance request was created. + // * create-time - The time stamp when the Spot Instance request was created. // // * fault-code - The fault code related to the request. // @@ -36391,7 +39452,7 @@ type DescribeSpotInstanceRequestsInput struct { // // * instance-id - The ID of the instance that fulfilled the request. // - // * launch-group - The Spot instance launch group. + // * launch-group - The Spot Instance launch group. // // * launch.block-device-mapping.delete-on-termination - Indicates whether // the EBS volume is deleted on instance termination. @@ -36420,11 +39481,11 @@ type DescribeSpotInstanceRequestsInput struct { // * launch.key-name - The name of the key pair the instance launched with. // // * launch.monitoring-enabled - Whether detailed monitoring is enabled for - // the Spot instance. + // the Spot Instance. // // * launch.ramdisk-id - The RAM disk ID. // - // * launched-availability-zone - The Availability Zone in which the bid + // * launched-availability-zone - The Availability Zone in which the request // is launched. // // * network-interface.addresses.primary - Indicates whether the IP address @@ -36451,21 +39512,21 @@ type DescribeSpotInstanceRequestsInput struct { // * product-description - The product description associated with the instance // (Linux/UNIX | Windows). // - // * spot-instance-request-id - The Spot instance request ID. + // * spot-instance-request-id - The Spot Instance request ID. // - // * spot-price - The maximum hourly price for any Spot instance launched + // * spot-price - The maximum hourly price for any Spot Instance launched // to fulfill the request. // - // * state - The state of the Spot instance request (open | active | closed - // | cancelled | failed). Spot bid status information can help you track - // your Amazon EC2 Spot instance requests. For more information, see Spot - // Bid Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) + // * state - The state of the Spot Instance request (open | active | closed + // | cancelled | failed). Spot request status information can help you track + // your Amazon EC2 Spot Instance requests. For more information, see Spot + // Request Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) // in the Amazon Elastic Compute Cloud User Guide. // // * status-code - The short code describing the most recent evaluation of - // your Spot instance request. + // your Spot Instance request. // - // * status-message - The message explaining the status of the Spot instance + // * status-message - The message explaining the status of the Spot Instance // request. // // * tag:key=value - The key/value combination of a tag assigned to the resource. @@ -36484,14 +39545,14 @@ type DescribeSpotInstanceRequestsInput struct { // * tag-value - The value of a tag assigned to the resource. This filter // is independent of the tag-key filter. // - // * type - The type of Spot instance request (one-time | persistent). + // * type - The type of Spot Instance request (one-time | persistent). // // * valid-from - The start date of the request. // // * valid-until - The end date of the request. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - // One or more Spot instance request IDs. + // One or more Spot Instance request IDs. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"` } @@ -36528,7 +39589,7 @@ func (s *DescribeSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*strin type DescribeSpotInstanceRequestsOutput struct { _ struct{} `type:"structure"` - // One or more Spot instance requests. + // One or more Spot Instance requests. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"` } @@ -36585,8 +39646,7 @@ type DescribeSpotPriceHistoryInput struct { // than or less than comparison is not supported. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - // Filters the results by the specified instance types. Note that T2 and HS1 - // instance types are not supported. + // Filters the results by the specified instance types. InstanceTypes []*string `locationName:"InstanceType" type:"list"` // The maximum number of results to return in a single call. Specify a value @@ -37840,6 +40900,447 @@ func (s *DescribeVpcClassicLinkOutput) SetVpcs(v []*VpcClassicLink) *DescribeVpc return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotificationsRequest +type DescribeVpcEndpointConnectionNotificationsInput struct { + _ struct{} `type:"structure"` + + // The ID of the notification. + ConnectionNotificationId *string `type:"string"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more filters. + // + // * connection-notification-arn - The ARN of SNS topic for the notification. + // + // * connection-notification-id - The ID of the notification. + // + // * connection-notification-state - The state of the notification (Enabled + // | Disabled). + // + // * connection-notification-type - The type of notification (Topic). + // + // * service-id - The ID of the endpoint service. + // + // * vpc-endpoint-id - The ID of the VPC endpoint. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another request with the returned NextToken value. + MaxResults *int64 `type:"integer"` + + // The token to request the next page of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeVpcEndpointConnectionNotificationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVpcEndpointConnectionNotificationsInput) GoString() string { + return s.String() +} + +// SetConnectionNotificationId sets the ConnectionNotificationId field's value. +func (s *DescribeVpcEndpointConnectionNotificationsInput) SetConnectionNotificationId(v string) *DescribeVpcEndpointConnectionNotificationsInput { + s.ConnectionNotificationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionNotificationsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcEndpointConnectionNotificationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionNotificationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcEndpointConnectionNotificationsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionNotificationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointConnectionNotificationsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotificationsResult +type DescribeVpcEndpointConnectionNotificationsOutput struct { + _ struct{} `type:"structure"` + + // One or more notifications. + ConnectionNotificationSet []*ConnectionNotification `locationName:"connectionNotificationSet" locationNameList:"item" type:"list"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeVpcEndpointConnectionNotificationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVpcEndpointConnectionNotificationsOutput) GoString() string { + return s.String() +} + +// SetConnectionNotificationSet sets the ConnectionNotificationSet field's value. +func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetConnectionNotificationSet(v []*ConnectionNotification) *DescribeVpcEndpointConnectionNotificationsOutput { + s.ConnectionNotificationSet = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionsRequest +type DescribeVpcEndpointConnectionsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more filters. + // + // * customer-account-id - The AWS account number of the owner of the endpoint. + // + // * endpoint-connection-state - The state of the endpoint (PendingAcceptance + // | Pending | Available | Deleting | Deleted | Rejected | Failed). + // + // * vpc-endpoint-id - The ID of the endpoint. + // + // * vpc-endpoint-service-id - The ID of the service. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return for the request in a single page. + // The remaining results of the initial request can be seen by sending another + // request with the returned NextToken value. This value can be between 5 and + // 1000; if MaxResults is given a value larger than 1000, only 1000 results + // are returned. + MaxResults *int64 `type:"integer"` + + // The token to retrieve the next page of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeVpcEndpointConnectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVpcEndpointConnectionsInput) GoString() string { + return s.String() +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcEndpointConnectionsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcEndpointConnectionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcEndpointConnectionsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointConnectionsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionsResult +type DescribeVpcEndpointConnectionsOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` + + // Information about one or more VPC endpoint connections. + VpcEndpointConnections []*VpcEndpointConnection `locationName:"vpcEndpointConnectionSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeVpcEndpointConnectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVpcEndpointConnectionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointConnectionsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionsOutput { + s.NextToken = &v + return s +} + +// SetVpcEndpointConnections sets the VpcEndpointConnections field's value. +func (s *DescribeVpcEndpointConnectionsOutput) SetVpcEndpointConnections(v []*VpcEndpointConnection) *DescribeVpcEndpointConnectionsOutput { + s.VpcEndpointConnections = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurationsRequest +type DescribeVpcEndpointServiceConfigurationsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more filters. + // + // * service-name - The ARN of the service. + // + // * vpc-endpoint-service-id - The ID of the service. + // + // * vpc-endpoint-service-state - The state of the service (Pending | Available + // | Deleting | Deleted | Failed). + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return for the request in a single page. + // The remaining results of the initial request can be seen by sending another + // request with the returned NextToken value. This value can be between 5 and + // 1000; if MaxResults is given a value larger than 1000, only 1000 results + // are returned. + MaxResults *int64 `type:"integer"` + + // The token to retrieve the next page of results. + NextToken *string `type:"string"` + + // The IDs of one or more services. + ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeVpcEndpointServiceConfigurationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVpcEndpointServiceConfigurationsInput) GoString() string { + return s.String() +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DescribeVpcEndpointServiceConfigurationsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcEndpointServiceConfigurationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServiceConfigurationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcEndpointServiceConfigurationsInput) SetMaxResults(v int64) *DescribeVpcEndpointServiceConfigurationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointServiceConfigurationsInput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsInput { + s.NextToken = &v + return s +} + +// SetServiceIds sets the ServiceIds field's value. +func (s *DescribeVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DescribeVpcEndpointServiceConfigurationsInput { + s.ServiceIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurationsResult +type DescribeVpcEndpointServiceConfigurationsOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` + + // Information about one or more services. + ServiceConfigurations []*ServiceConfiguration `locationName:"serviceConfigurationSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeVpcEndpointServiceConfigurationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVpcEndpointServiceConfigurationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsOutput { + s.NextToken = &v + return s +} + +// SetServiceConfigurations sets the ServiceConfigurations field's value. +func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetServiceConfigurations(v []*ServiceConfiguration) *DescribeVpcEndpointServiceConfigurationsOutput { + s.ServiceConfigurations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissionsRequest +type DescribeVpcEndpointServicePermissionsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more filters. + // + // * principal - The ARN of the principal. + // + // * principal-type - The principal type (All | Service | OrganizationUnit + // | Account | User | Role). + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return for the request in a single page. + // The remaining results of the initial request can be seen by sending another + // request with the returned NextToken value. This value can be between 5 and + // 1000; if MaxResults is given a value larger than 1000, only 1000 results + // are returned. + MaxResults *int64 `type:"integer"` + + // The token to retrieve the next page of results. + NextToken *string `type:"string"` + + // The ID of the service. + // + // ServiceId is a required field + ServiceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeVpcEndpointServicePermissionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVpcEndpointServicePermissionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeVpcEndpointServicePermissionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeVpcEndpointServicePermissionsInput"} + if s.ServiceId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcEndpointServicePermissionsInput) SetDryRun(v bool) *DescribeVpcEndpointServicePermissionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcEndpointServicePermissionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicePermissionsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcEndpointServicePermissionsInput) SetMaxResults(v int64) *DescribeVpcEndpointServicePermissionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointServicePermissionsInput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsInput { + s.NextToken = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *DescribeVpcEndpointServicePermissionsInput) SetServiceId(v string) *DescribeVpcEndpointServicePermissionsInput { + s.ServiceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissionsResult +type DescribeVpcEndpointServicePermissionsOutput struct { + _ struct{} `type:"structure"` + + // Information about one or more allowed principals. + AllowedPrincipals []*AllowedPrincipal `locationName:"allowedPrincipals" locationNameList:"item" type:"list"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeVpcEndpointServicePermissionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVpcEndpointServicePermissionsOutput) GoString() string { + return s.String() +} + +// SetAllowedPrincipals sets the AllowedPrincipals field's value. +func (s *DescribeVpcEndpointServicePermissionsOutput) SetAllowedPrincipals(v []*AllowedPrincipal) *DescribeVpcEndpointServicePermissionsOutput { + s.AllowedPrincipals = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointServicePermissionsOutput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeVpcEndpointServices. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicesRequest type DescribeVpcEndpointServicesInput struct { @@ -37923,7 +41424,7 @@ type DescribeVpcEndpointServicesOutput struct { // Information about the service. ServiceDetails []*ServiceDetail `locationName:"serviceDetailSet" locationNameList:"item" type:"list"` - // A list of supported AWS services. + // A list of supported services. ServiceNames []*string `locationName:"serviceNameSet" locationNameList:"item" type:"list"` } @@ -37968,7 +41469,7 @@ type DescribeVpcEndpointsInput struct { // One or more filters. // - // * service-name: The name of the AWS service. + // * service-name: The name of the service. // // * vpc-id: The ID of the VPC in which the endpoint resides. // @@ -39860,6 +43361,14 @@ type EbsBlockDevice struct { // it is not used in requests to create gp2, st1, sc1, or standard volumes. Iops *int64 `locationName:"iops" type:"integer"` + // ID for a user-managed CMK under which the EBS volume is encrypted. + // + // Note: This parameter is only supported on BlockDeviceMapping objects called + // by RunInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html), + // RequestSpotFleet (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html), + // and RequestSpotInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html). + KmsKeyId *string `type:"string"` + // The ID of the snapshot. SnapshotId *string `locationName:"snapshotId" type:"string"` @@ -39909,6 +43418,12 @@ func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice { return s } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *EbsBlockDevice) SetKmsKeyId(v string) *EbsBlockDevice { + s.KmsKeyId = &v + return s +} + // SetSnapshotId sets the SnapshotId field's value. func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice { s.SnapshotId = &v @@ -40165,6 +43680,31 @@ func (s *ElasticGpuSpecification) SetType(v string) *ElasticGpuSpecification { return s } +// Describes an elastic GPU. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ElasticGpuSpecificationResponse +type ElasticGpuSpecificationResponse struct { + _ struct{} `type:"structure"` + + // The elastic GPU type. + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s ElasticGpuSpecificationResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ElasticGpuSpecificationResponse) GoString() string { + return s.String() +} + +// SetType sets the Type field's value. +func (s *ElasticGpuSpecificationResponse) SetType(v string) *ElasticGpuSpecificationResponse { + s.Type = &v + return s +} + // Describes an Elastic GPU. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ElasticGpus type ElasticGpus struct { @@ -40498,7 +44038,7 @@ func (s *EnableVpcClassicLinkOutput) SetReturn(v bool) *EnableVpcClassicLinkOutp return s } -// Describes a Spot fleet event. +// Describes a Spot Fleet event. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EventInformation type EventInformation struct { _ struct{} `type:"structure"` @@ -40510,7 +44050,7 @@ type EventInformation struct { // // The following are the error events: // - // * iamFleetRoleInvalid - The Spot fleet did not have the required permissions + // * iamFleetRoleInvalid - The Spot Fleet did not have the required permissions // either to launch or terminate an instance. // // * launchSpecTemporarilyBlacklisted - The configuration is not valid and @@ -40521,53 +44061,52 @@ type EventInformation struct { // For more information, see the description of the event. // // * spotInstanceCountLimitExceeded - You've reached the limit on the number - // of Spot instances that you can launch. + // of Spot Instances that you can launch. // // The following are the fleetRequestChange events: // - // * active - The Spot fleet has been validated and Amazon EC2 is attempting - // to maintain the target number of running Spot instances. + // * active - The Spot Fleet has been validated and Amazon EC2 is attempting + // to maintain the target number of running Spot Instances. // - // * cancelled - The Spot fleet is canceled and has no running Spot instances. - // The Spot fleet will be deleted two days after its instances were terminated. + // * cancelled - The Spot Fleet is canceled and has no running Spot Instances. + // The Spot Fleet will be deleted two days after its instances were terminated. // - // * cancelled_running - The Spot fleet is canceled and will not launch additional - // Spot instances, but its existing Spot instances continue to run until + // * cancelled_running - The Spot Fleet is canceled and will not launch additional + // Spot Instances, but its existing Spot Instances continue to run until // they are interrupted or terminated. // - // * cancelled_terminating - The Spot fleet is canceled and its Spot instances + // * cancelled_terminating - The Spot Fleet is canceled and its Spot Instances // are terminating. // - // * expired - The Spot fleet request has expired. A subsequent event indicates + // * expired - The Spot Fleet request has expired. A subsequent event indicates // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration // set. // - // * modify_in_progress - A request to modify the Spot fleet request was + // * modify_in_progress - A request to modify the Spot Fleet request was // accepted and is in progress. // - // * modify_successful - The Spot fleet request was modified. + // * modify_successful - The Spot Fleet request was modified. // - // * price_update - The bid price for a launch configuration was adjusted - // because it was too high. This change is permanent. + // * price_update - The price for a launch configuration was adjusted because + // it was too high. This change is permanent. // - // * submitted - The Spot fleet request is being evaluated and Amazon EC2 - // is preparing to launch the target number of Spot instances. + // * submitted - The Spot Fleet request is being evaluated and Amazon EC2 + // is preparing to launch the target number of Spot Instances. // // The following are the instanceChange events: // - // * launched - A bid was fulfilled and a new instance was launched. + // * launched - A request was fulfilled and a new instance was launched. // // * terminated - An instance was terminated by the user. // // The following are the Information events: // - // * launchSpecUnusable - The bid price of a launch specification is not - // valid because it is below the market price or the market price is above - // the On-Demand price. + // * launchSpecUnusable - The price in a launch specification is not valid + // because it is below the Spot price or the Spot price is above the On-Demand + // price. // - // * fleetProgressHalted - The bid price of every launch specification is - // not valid. A launch specification might become valid if the market price - // changes. + // * fleetProgressHalted - The price in every launch specification is not + // valid. A launch specification might become valid if the Spot price changes. EventSubType *string `locationName:"eventSubType" type:"string"` // The ID of the instance. This information is available only for instanceChange @@ -40818,6 +44357,65 @@ func (s *Filter) SetValues(v []*string) *Filter { return s } +// Describes a launch template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetLaunchTemplateSpecification +type FleetLaunchTemplateSpecification struct { + _ struct{} `type:"structure"` + + // The ID of the launch template. You must specify either a template ID or a + // template name. + LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"` + + // The name of the launch template. You must specify either a template name + // or a template ID. + LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"` + + // The version number. By default, the default version of the launch template + // is used. + Version *string `locationName:"version" type:"string"` +} + +// String returns the string representation +func (s FleetLaunchTemplateSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FleetLaunchTemplateSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FleetLaunchTemplateSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateSpecification"} + if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateId(v string) *FleetLaunchTemplateSpecification { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateName(v string) *FleetLaunchTemplateSpecification { + s.LaunchTemplateName = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *FleetLaunchTemplateSpecification) SetVersion(v string) *FleetLaunchTemplateSpecification { + s.Version = &v + return s +} + // Describes a flow log. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FlowLog type FlowLog struct { @@ -41465,6 +45063,81 @@ func (s *GetHostReservationPurchasePreviewOutput) SetTotalUpfrontPrice(v string) return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateDataRequest +type GetLaunchTemplateDataInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the instance. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLaunchTemplateDataInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLaunchTemplateDataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLaunchTemplateDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLaunchTemplateDataInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *GetLaunchTemplateDataInput) SetDryRun(v bool) *GetLaunchTemplateDataInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetLaunchTemplateDataInput) SetInstanceId(v string) *GetLaunchTemplateDataInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateDataResult +type GetLaunchTemplateDataOutput struct { + _ struct{} `type:"structure"` + + // The instance data. + LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"` +} + +// String returns the string representation +func (s GetLaunchTemplateDataOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLaunchTemplateDataOutput) GoString() string { + return s.String() +} + +// SetLaunchTemplateData sets the LaunchTemplateData field's value. +func (s *GetLaunchTemplateDataOutput) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *GetLaunchTemplateDataOutput { + s.LaunchTemplateData = v + return s +} + // Contains the parameters for GetPasswordData. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordDataRequest type GetPasswordDataInput struct { @@ -41764,7 +45437,7 @@ func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier { return s } -// Describes an event in the history of the Spot fleet request. +// Describes an event in the history of the Spot Fleet request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HistoryRecord type HistoryRecord struct { _ struct{} `type:"structure"` @@ -41776,10 +45449,10 @@ type HistoryRecord struct { // The event type. // - // * error - An error with the Spot fleet request. + // * error - An error with the Spot Fleet request. // // * fleetRequestChange - A change in the status or configuration of the - // Spot fleet request. + // Spot Fleet request. // // * instanceChange - An instance was launched or terminated. // @@ -44547,6 +48220,65 @@ func (s *InstanceIpv6Address) SetIpv6Address(v string) *InstanceIpv6Address { return s } +// Describes an IPv6 address. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceIpv6AddressRequest +type InstanceIpv6AddressRequest struct { + _ struct{} `type:"structure"` + + // The IPv6 address. + Ipv6Address *string `type:"string"` +} + +// String returns the string representation +func (s InstanceIpv6AddressRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceIpv6AddressRequest) GoString() string { + return s.String() +} + +// SetIpv6Address sets the Ipv6Address field's value. +func (s *InstanceIpv6AddressRequest) SetIpv6Address(v string) *InstanceIpv6AddressRequest { + s.Ipv6Address = &v + return s +} + +// Describes the market (purchasing) option for the instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMarketOptionsRequest +type InstanceMarketOptionsRequest struct { + _ struct{} `type:"structure"` + + // The market type. + MarketType *string `type:"string" enum:"MarketType"` + + // The options for Spot Instances. + SpotOptions *SpotMarketOptions `type:"structure"` +} + +// String returns the string representation +func (s InstanceMarketOptionsRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceMarketOptionsRequest) GoString() string { + return s.String() +} + +// SetMarketType sets the MarketType field's value. +func (s *InstanceMarketOptionsRequest) SetMarketType(v string) *InstanceMarketOptionsRequest { + s.MarketType = &v + return s +} + +// SetSpotOptions sets the SpotOptions field's value. +func (s *InstanceMarketOptionsRequest) SetSpotOptions(v *SpotMarketOptions) *InstanceMarketOptionsRequest { + s.SpotOptions = v + return s +} + // Describes the monitoring of an instance. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMonitoring type InstanceMonitoring struct { @@ -45900,8 +49632,1419 @@ func (s *LaunchSpecification) SetUserData(v string) *LaunchSpecification { return s } +// Describes a launch template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplate +type LaunchTemplate struct { + _ struct{} `type:"structure"` + + // The time launch template was created. + CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"` + + // The principal that created the launch template. + CreatedBy *string `locationName:"createdBy" type:"string"` + + // The version number of the default version of the launch template. + DefaultVersionNumber *int64 `locationName:"defaultVersionNumber" type:"long"` + + // The version number of the latest version of the launch template. + LatestVersionNumber *int64 `locationName:"latestVersionNumber" type:"long"` + + // The ID of the launch template. + LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"` + + // The name of the launch template. + LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"` + + // The tags for the launch template. + Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s LaunchTemplate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplate) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *LaunchTemplate) SetCreateTime(v time.Time) *LaunchTemplate { + s.CreateTime = &v + return s +} + +// SetCreatedBy sets the CreatedBy field's value. +func (s *LaunchTemplate) SetCreatedBy(v string) *LaunchTemplate { + s.CreatedBy = &v + return s +} + +// SetDefaultVersionNumber sets the DefaultVersionNumber field's value. +func (s *LaunchTemplate) SetDefaultVersionNumber(v int64) *LaunchTemplate { + s.DefaultVersionNumber = &v + return s +} + +// SetLatestVersionNumber sets the LatestVersionNumber field's value. +func (s *LaunchTemplate) SetLatestVersionNumber(v int64) *LaunchTemplate { + s.LatestVersionNumber = &v + return s +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *LaunchTemplate) SetLaunchTemplateId(v string) *LaunchTemplate { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *LaunchTemplate) SetLaunchTemplateName(v string) *LaunchTemplate { + s.LaunchTemplateName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *LaunchTemplate) SetTags(v []*Tag) *LaunchTemplate { + s.Tags = v + return s +} + +// Describes a block device mapping. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateBlockDeviceMapping +type LaunchTemplateBlockDeviceMapping struct { + _ struct{} `type:"structure"` + + // The device name. + DeviceName *string `locationName:"deviceName" type:"string"` + + // Information about the block device for an EBS volume. + Ebs *LaunchTemplateEbsBlockDevice `locationName:"ebs" type:"structure"` + + // Suppresses the specified device included in the block device mapping of the + // AMI. + NoDevice *string `locationName:"noDevice" type:"string"` + + // The virtual device name (ephemeralN). + VirtualName *string `locationName:"virtualName" type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateBlockDeviceMapping) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateBlockDeviceMapping) GoString() string { + return s.String() +} + +// SetDeviceName sets the DeviceName field's value. +func (s *LaunchTemplateBlockDeviceMapping) SetDeviceName(v string) *LaunchTemplateBlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *LaunchTemplateBlockDeviceMapping) SetEbs(v *LaunchTemplateEbsBlockDevice) *LaunchTemplateBlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *LaunchTemplateBlockDeviceMapping) SetNoDevice(v string) *LaunchTemplateBlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *LaunchTemplateBlockDeviceMapping) SetVirtualName(v string) *LaunchTemplateBlockDeviceMapping { + s.VirtualName = &v + return s +} + +// Describes a block device mapping. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateBlockDeviceMappingRequest +type LaunchTemplateBlockDeviceMappingRequest struct { + _ struct{} `type:"structure"` + + // The device name (for example, /dev/sdh or xvdh). + DeviceName *string `type:"string"` + + // Parameters used to automatically set up EBS volumes when the instance is + // launched. + Ebs *LaunchTemplateEbsBlockDeviceRequest `type:"structure"` + + // Suppresses the specified device included in the block device mapping of the + // AMI. + NoDevice *string `type:"string"` + + // The virtual device name (ephemeralN). Instance store volumes are numbered + // starting from 0. An instance type with 2 available instance store volumes + // can specify mappings for ephemeral0 and ephemeral1. The number of available + // instance store volumes depends on the instance type. After you connect to + // the instance, you must mount the volume. + VirtualName *string `type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateBlockDeviceMappingRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateBlockDeviceMappingRequest) GoString() string { + return s.String() +} + +// SetDeviceName sets the DeviceName field's value. +func (s *LaunchTemplateBlockDeviceMappingRequest) SetDeviceName(v string) *LaunchTemplateBlockDeviceMappingRequest { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *LaunchTemplateBlockDeviceMappingRequest) SetEbs(v *LaunchTemplateEbsBlockDeviceRequest) *LaunchTemplateBlockDeviceMappingRequest { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *LaunchTemplateBlockDeviceMappingRequest) SetNoDevice(v string) *LaunchTemplateBlockDeviceMappingRequest { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *LaunchTemplateBlockDeviceMappingRequest) SetVirtualName(v string) *LaunchTemplateBlockDeviceMappingRequest { + s.VirtualName = &v + return s +} + +// Describes a launch template and overrides. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateConfig +type LaunchTemplateConfig struct { + _ struct{} `type:"structure"` + + // The launch template. + LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"` + + // Any parameters that you specify override the same parameters in the launch + // template. + Overrides []*LaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s LaunchTemplateConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LaunchTemplateConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateConfig"} + if s.LaunchTemplateSpecification != nil { + if err := s.LaunchTemplateSpecification.Validate(); err != nil { + invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value. +func (s *LaunchTemplateConfig) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *LaunchTemplateConfig { + s.LaunchTemplateSpecification = v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *LaunchTemplateConfig) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTemplateConfig { + s.Overrides = v + return s +} + +// Describes a block device for an EBS volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateEbsBlockDevice +type LaunchTemplateEbsBlockDevice struct { + _ struct{} `type:"structure"` + + // Indicates whether the EBS volume is deleted on instance termination. + DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` + + // Indicates whether the EBS volume is encrypted. + Encrypted *bool `locationName:"encrypted" type:"boolean"` + + // The number of I/O operations per second (IOPS) that the volume supports. + Iops *int64 `locationName:"iops" type:"integer"` + + // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + + // The ID of the snapshot. + SnapshotId *string `locationName:"snapshotId" type:"string"` + + // The size of the volume, in GiB. + VolumeSize *int64 `locationName:"volumeSize" type:"integer"` + + // The volume type. + VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"` +} + +// String returns the string representation +func (s LaunchTemplateEbsBlockDevice) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateEbsBlockDevice) GoString() string { + return s.String() +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *LaunchTemplateEbsBlockDevice) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDevice { + s.DeleteOnTermination = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *LaunchTemplateEbsBlockDevice) SetEncrypted(v bool) *LaunchTemplateEbsBlockDevice { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *LaunchTemplateEbsBlockDevice) SetIops(v int64) *LaunchTemplateEbsBlockDevice { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *LaunchTemplateEbsBlockDevice) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDevice { + s.KmsKeyId = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *LaunchTemplateEbsBlockDevice) SetSnapshotId(v string) *LaunchTemplateEbsBlockDevice { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *LaunchTemplateEbsBlockDevice) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDevice { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *LaunchTemplateEbsBlockDevice) SetVolumeType(v string) *LaunchTemplateEbsBlockDevice { + s.VolumeType = &v + return s +} + +// The parameters for a block device for an EBS volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateEbsBlockDeviceRequest +type LaunchTemplateEbsBlockDeviceRequest struct { + _ struct{} `type:"structure"` + + // Indicates whether the EBS volume is deleted on instance termination. + DeleteOnTermination *bool `type:"boolean"` + + // Indicates whether the EBS volume is encrypted. Encrypted volumes can only + // be attached to instances that support Amazon EBS encryption. If you are creating + // a volume from a snapshot, you can't specify an encryption value. + Encrypted *bool `type:"boolean"` + + // The number of I/O operations per second (IOPS) that the volume supports. + // For io1, this represents the number of IOPS that are provisioned for the + // volume. For gp2, this represents the baseline performance of the volume and + // the rate at which the volume accumulates I/O credits for bursting. For more + // information about General Purpose SSD baseline performance, I/O credits, + // and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud + // User Guide. + // + // Condition: This parameter is required for requests to create io1 volumes; + // it is not used in requests to create gp2, st1, sc1, or standard volumes. + Iops *int64 `type:"integer"` + + // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption. + KmsKeyId *string `type:"string"` + + // The ID of the snapshot. + SnapshotId *string `type:"string"` + + // The size of the volume, in GiB. + // + // Default: If you're creating the volume from a snapshot and don't specify + // a volume size, the default is the snapshot size. + VolumeSize *int64 `type:"integer"` + + // The volume type. + VolumeType *string `type:"string" enum:"VolumeType"` +} + +// String returns the string representation +func (s LaunchTemplateEbsBlockDeviceRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateEbsBlockDeviceRequest) GoString() string { + return s.String() +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *LaunchTemplateEbsBlockDeviceRequest) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDeviceRequest { + s.DeleteOnTermination = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *LaunchTemplateEbsBlockDeviceRequest) SetEncrypted(v bool) *LaunchTemplateEbsBlockDeviceRequest { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *LaunchTemplateEbsBlockDeviceRequest) SetIops(v int64) *LaunchTemplateEbsBlockDeviceRequest { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *LaunchTemplateEbsBlockDeviceRequest) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDeviceRequest { + s.KmsKeyId = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *LaunchTemplateEbsBlockDeviceRequest) SetSnapshotId(v string) *LaunchTemplateEbsBlockDeviceRequest { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDeviceRequest { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeType(v string) *LaunchTemplateEbsBlockDeviceRequest { + s.VolumeType = &v + return s +} + +// Describes an IAM instance profile. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateIamInstanceProfileSpecification +type LaunchTemplateIamInstanceProfileSpecification struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the instance profile. + Arn *string `locationName:"arn" type:"string"` + + // The name of the instance profile. + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateIamInstanceProfileSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateIamInstanceProfileSpecification) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *LaunchTemplateIamInstanceProfileSpecification) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecification { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *LaunchTemplateIamInstanceProfileSpecification) SetName(v string) *LaunchTemplateIamInstanceProfileSpecification { + s.Name = &v + return s +} + +// An IAM instance profile. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateIamInstanceProfileSpecificationRequest +type LaunchTemplateIamInstanceProfileSpecificationRequest struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the instance profile. + Arn *string `type:"string"` + + // The name of the instance profile. + Name *string `type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateIamInstanceProfileSpecificationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateIamInstanceProfileSpecificationRequest) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetName(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest { + s.Name = &v + return s +} + +// The market (purchasing) option for the instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceMarketOptions +type LaunchTemplateInstanceMarketOptions struct { + _ struct{} `type:"structure"` + + // The market type. + MarketType *string `locationName:"marketType" type:"string" enum:"MarketType"` + + // The options for Spot Instances. + SpotOptions *LaunchTemplateSpotMarketOptions `locationName:"spotOptions" type:"structure"` +} + +// String returns the string representation +func (s LaunchTemplateInstanceMarketOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateInstanceMarketOptions) GoString() string { + return s.String() +} + +// SetMarketType sets the MarketType field's value. +func (s *LaunchTemplateInstanceMarketOptions) SetMarketType(v string) *LaunchTemplateInstanceMarketOptions { + s.MarketType = &v + return s +} + +// SetSpotOptions sets the SpotOptions field's value. +func (s *LaunchTemplateInstanceMarketOptions) SetSpotOptions(v *LaunchTemplateSpotMarketOptions) *LaunchTemplateInstanceMarketOptions { + s.SpotOptions = v + return s +} + +// The market (purchasing) option for the instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceMarketOptionsRequest +type LaunchTemplateInstanceMarketOptionsRequest struct { + _ struct{} `type:"structure"` + + // The market type. + MarketType *string `type:"string" enum:"MarketType"` + + // The options for Spot Instances. + SpotOptions *LaunchTemplateSpotMarketOptionsRequest `type:"structure"` +} + +// String returns the string representation +func (s LaunchTemplateInstanceMarketOptionsRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateInstanceMarketOptionsRequest) GoString() string { + return s.String() +} + +// SetMarketType sets the MarketType field's value. +func (s *LaunchTemplateInstanceMarketOptionsRequest) SetMarketType(v string) *LaunchTemplateInstanceMarketOptionsRequest { + s.MarketType = &v + return s +} + +// SetSpotOptions sets the SpotOptions field's value. +func (s *LaunchTemplateInstanceMarketOptionsRequest) SetSpotOptions(v *LaunchTemplateSpotMarketOptionsRequest) *LaunchTemplateInstanceMarketOptionsRequest { + s.SpotOptions = v + return s +} + +// Describes a network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceNetworkInterfaceSpecification +type LaunchTemplateInstanceNetworkInterfaceSpecification struct { + _ struct{} `type:"structure"` + + // Indicates whether to associate a public IPv4 address with eth0 for a new + // network interface. + AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"` + + // Indicates whether the network interface is deleted when the instance is terminated. + DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` + + // A description for the network interface. + Description *string `locationName:"description" type:"string"` + + // The device index for the network interface attachment. + DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"` + + // The IDs of one or more security groups. + Groups []*string `locationName:"groupSet" locationNameList:"groupId" type:"list"` + + // The number of IPv6 addresses for the network interface. + Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"` + + // The IPv6 addresses for the network interface. + Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"` + + // The ID of the network interface. + NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` + + // The primary private IPv4 address of the network interface. + PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` + + // One or more private IPv4 addresses. + PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"` + + // The number of secondary private IPv4 addresses for the network interface. + SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"` + + // The ID of the subnet for the network interface. + SubnetId *string `locationName:"subnetId" type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateInstanceNetworkInterfaceSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateInstanceNetworkInterfaceSpecification) GoString() string { + return s.String() +} + +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.AssociatePublicIpAddress = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.DeleteOnTermination = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.Description = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.DeviceIndex = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.Groups = v + return s +} + +// SetIpv6AddressCount sets the Ipv6AddressCount field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.Ipv6AddressCount = &v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.Ipv6Addresses = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.PrivateIpAddresses = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification { + s.SubnetId = &v + return s +} + +// The parameters for a network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceNetworkInterfaceSpecificationRequest +type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { + _ struct{} `type:"structure"` + + // Associates a public IPv4 address with eth0 for a new network interface. + AssociatePublicIpAddress *bool `type:"boolean"` + + // Indicates whether the network interface is deleted when the instance is terminated. + DeleteOnTermination *bool `type:"boolean"` + + // A description for the network interface. + Description *string `type:"string"` + + // The device index for the network interface attachment. + DeviceIndex *int64 `type:"integer"` + + // The IDs of one or more security groups. + Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` + + // The number of IPv6 addresses to assign to a network interface. Amazon EC2 + // automatically selects the IPv6 addresses from the subnet range. You can't + // use this option if specifying specific IPv6 addresses. + Ipv6AddressCount *int64 `type:"integer"` + + // One or more specific IPv6 addresses from the IPv6 CIDR block range of your + // subnet. You can't use this option if you're specifying a number of IPv6 addresses. + Ipv6Addresses []*InstanceIpv6AddressRequest `locationNameList:"InstanceIpv6Address" type:"list"` + + // The ID of the network interface. + NetworkInterfaceId *string `type:"string"` + + // The primary private IPv4 address of the network interface. + PrivateIpAddress *string `type:"string"` + + // One or more private IPv4 addresses. + PrivateIpAddresses []*PrivateIpAddressSpecification `locationNameList:"item" type:"list"` + + // The number of secondary private IPv4 addresses to assign to a network interface. + SecondaryPrivateIpAddressCount *int64 `type:"integer"` + + // The ID of the subnet for the network interface. + SubnetId *string `type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest"} + if s.PrivateIpAddresses != nil { + for i, v := range s.PrivateIpAddresses { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.AssociatePublicIpAddress = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.DeleteOnTermination = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.Description = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.DeviceIndex = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.Groups = v + return s +} + +// SetIpv6AddressCount sets the Ipv6AddressCount field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.Ipv6AddressCount = &v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6Addresses(v []*InstanceIpv6AddressRequest) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.Ipv6Addresses = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.PrivateIpAddresses = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest { + s.SubnetId = &v + return s +} + +// Describes overrides for a launch template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateOverrides +type LaunchTemplateOverrides struct { + _ struct{} `type:"structure"` + + // The Availability Zone in which to launch the instances. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The instance type. + InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` + + // The maximum price per unit hour that you are willing to pay for a Spot Instance. + SpotPrice *string `locationName:"spotPrice" type:"string"` + + // The ID of the subnet in which to launch the instances. + SubnetId *string `locationName:"subnetId" type:"string"` + + // The number of units provided by the specified instance type. + WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"` +} + +// String returns the string representation +func (s LaunchTemplateOverrides) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateOverrides) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *LaunchTemplateOverrides) SetAvailabilityZone(v string) *LaunchTemplateOverrides { + s.AvailabilityZone = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *LaunchTemplateOverrides) SetInstanceType(v string) *LaunchTemplateOverrides { + s.InstanceType = &v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *LaunchTemplateOverrides) SetSpotPrice(v string) *LaunchTemplateOverrides { + s.SpotPrice = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *LaunchTemplateOverrides) SetSubnetId(v string) *LaunchTemplateOverrides { + s.SubnetId = &v + return s +} + +// SetWeightedCapacity sets the WeightedCapacity field's value. +func (s *LaunchTemplateOverrides) SetWeightedCapacity(v float64) *LaunchTemplateOverrides { + s.WeightedCapacity = &v + return s +} + +// Describes the placement of an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplatePlacement +type LaunchTemplatePlacement struct { + _ struct{} `type:"structure"` + + // The affinity setting for the instance on the Dedicated Host. + Affinity *string `locationName:"affinity" type:"string"` + + // The Availability Zone of the instance. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The name of the placement group for the instance. + GroupName *string `locationName:"groupName" type:"string"` + + // The ID of the Dedicated Host for the instance. + HostId *string `locationName:"hostId" type:"string"` + + // Reserved for future use. + SpreadDomain *string `locationName:"spreadDomain" type:"string"` + + // The tenancy of the instance (if the instance is running in a VPC). An instance + // with a tenancy of dedicated runs on single-tenant hardware. + Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"` +} + +// String returns the string representation +func (s LaunchTemplatePlacement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplatePlacement) GoString() string { + return s.String() +} + +// SetAffinity sets the Affinity field's value. +func (s *LaunchTemplatePlacement) SetAffinity(v string) *LaunchTemplatePlacement { + s.Affinity = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *LaunchTemplatePlacement) SetAvailabilityZone(v string) *LaunchTemplatePlacement { + s.AvailabilityZone = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *LaunchTemplatePlacement) SetGroupName(v string) *LaunchTemplatePlacement { + s.GroupName = &v + return s +} + +// SetHostId sets the HostId field's value. +func (s *LaunchTemplatePlacement) SetHostId(v string) *LaunchTemplatePlacement { + s.HostId = &v + return s +} + +// SetSpreadDomain sets the SpreadDomain field's value. +func (s *LaunchTemplatePlacement) SetSpreadDomain(v string) *LaunchTemplatePlacement { + s.SpreadDomain = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *LaunchTemplatePlacement) SetTenancy(v string) *LaunchTemplatePlacement { + s.Tenancy = &v + return s +} + +// The placement for the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplatePlacementRequest +type LaunchTemplatePlacementRequest struct { + _ struct{} `type:"structure"` + + // The affinity setting for an instance on a Dedicated Host. + Affinity *string `type:"string"` + + // The Availability Zone for the instance. + AvailabilityZone *string `type:"string"` + + // The name of the placement group for the instance. + GroupName *string `type:"string"` + + // The ID of the Dedicated Host for the instance. + HostId *string `type:"string"` + + // Reserved for future use. + SpreadDomain *string `type:"string"` + + // The tenancy of the instance (if the instance is running in a VPC). An instance + // with a tenancy of dedicated runs on single-tenant hardware. + Tenancy *string `type:"string" enum:"Tenancy"` +} + +// String returns the string representation +func (s LaunchTemplatePlacementRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplatePlacementRequest) GoString() string { + return s.String() +} + +// SetAffinity sets the Affinity field's value. +func (s *LaunchTemplatePlacementRequest) SetAffinity(v string) *LaunchTemplatePlacementRequest { + s.Affinity = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *LaunchTemplatePlacementRequest) SetAvailabilityZone(v string) *LaunchTemplatePlacementRequest { + s.AvailabilityZone = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *LaunchTemplatePlacementRequest) SetGroupName(v string) *LaunchTemplatePlacementRequest { + s.GroupName = &v + return s +} + +// SetHostId sets the HostId field's value. +func (s *LaunchTemplatePlacementRequest) SetHostId(v string) *LaunchTemplatePlacementRequest { + s.HostId = &v + return s +} + +// SetSpreadDomain sets the SpreadDomain field's value. +func (s *LaunchTemplatePlacementRequest) SetSpreadDomain(v string) *LaunchTemplatePlacementRequest { + s.SpreadDomain = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *LaunchTemplatePlacementRequest) SetTenancy(v string) *LaunchTemplatePlacementRequest { + s.Tenancy = &v + return s +} + +// The launch template to use. You must specify either the launch template ID +// or launch template name in the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateSpecification +type LaunchTemplateSpecification struct { + _ struct{} `type:"structure"` + + // The ID of the launch template. + LaunchTemplateId *string `type:"string"` + + // The name of the launch template. + LaunchTemplateName *string `type:"string"` + + // The version number of the launch template. + // + // Default: The default version for the launch template. + Version *string `type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateSpecification) GoString() string { + return s.String() +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *LaunchTemplateSpecification) SetLaunchTemplateId(v string) *LaunchTemplateSpecification { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *LaunchTemplateSpecification) SetLaunchTemplateName(v string) *LaunchTemplateSpecification { + s.LaunchTemplateName = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecification { + s.Version = &v + return s +} + +// The options for Spot Instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateSpotMarketOptions +type LaunchTemplateSpotMarketOptions struct { + _ struct{} `type:"structure"` + + // The required duration for the Spot Instances (also known as Spot blocks), + // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, + // or 360). + BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"` + + // The behavior when a Spot Instance is interrupted. + InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"` + + // The maximum hourly price you're willing to pay for the Spot Instances. + MaxPrice *string `locationName:"maxPrice" type:"string"` + + // The Spot Instance request type. + SpotInstanceType *string `locationName:"spotInstanceType" type:"string" enum:"SpotInstanceType"` + + // The end date of the request. For a one-time request, the request remains + // active until all instances launch, the request is canceled, or this date + // is reached. If the request is persistent, it remains active until it is canceled + // or this date and time is reached. + ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation +func (s LaunchTemplateSpotMarketOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateSpotMarketOptions) GoString() string { + return s.String() +} + +// SetBlockDurationMinutes sets the BlockDurationMinutes field's value. +func (s *LaunchTemplateSpotMarketOptions) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptions { + s.BlockDurationMinutes = &v + return s +} + +// SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value. +func (s *LaunchTemplateSpotMarketOptions) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptions { + s.InstanceInterruptionBehavior = &v + return s +} + +// SetMaxPrice sets the MaxPrice field's value. +func (s *LaunchTemplateSpotMarketOptions) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptions { + s.MaxPrice = &v + return s +} + +// SetSpotInstanceType sets the SpotInstanceType field's value. +func (s *LaunchTemplateSpotMarketOptions) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptions { + s.SpotInstanceType = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *LaunchTemplateSpotMarketOptions) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptions { + s.ValidUntil = &v + return s +} + +// The options for Spot Instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateSpotMarketOptionsRequest +type LaunchTemplateSpotMarketOptionsRequest struct { + _ struct{} `type:"structure"` + + // The required duration for the Spot Instances (also known as Spot blocks), + // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, + // or 360). + BlockDurationMinutes *int64 `type:"integer"` + + // The behavior when a Spot Instance is interrupted. The default is terminate. + InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"` + + // The maximum hourly price you're willing to pay for the Spot Instances. + MaxPrice *string `type:"string"` + + // The Spot Instance request type. + SpotInstanceType *string `type:"string" enum:"SpotInstanceType"` + + // The end date of the request. For a one-time request, the request remains + // active until all instances launch, the request is canceled, or this date + // is reached. If the request is persistent, it remains active until it is canceled + // or this date and time is reached. The default end date is 7 days from the + // current date. + ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation +func (s LaunchTemplateSpotMarketOptionsRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateSpotMarketOptionsRequest) GoString() string { + return s.String() +} + +// SetBlockDurationMinutes sets the BlockDurationMinutes field's value. +func (s *LaunchTemplateSpotMarketOptionsRequest) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptionsRequest { + s.BlockDurationMinutes = &v + return s +} + +// SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value. +func (s *LaunchTemplateSpotMarketOptionsRequest) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptionsRequest { + s.InstanceInterruptionBehavior = &v + return s +} + +// SetMaxPrice sets the MaxPrice field's value. +func (s *LaunchTemplateSpotMarketOptionsRequest) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptionsRequest { + s.MaxPrice = &v + return s +} + +// SetSpotInstanceType sets the SpotInstanceType field's value. +func (s *LaunchTemplateSpotMarketOptionsRequest) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptionsRequest { + s.SpotInstanceType = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *LaunchTemplateSpotMarketOptionsRequest) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptionsRequest { + s.ValidUntil = &v + return s +} + +// The tag specification for the launch template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateTagSpecification +type LaunchTemplateTagSpecification struct { + _ struct{} `type:"structure"` + + // The type of resource. + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The tags for the resource. + Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s LaunchTemplateTagSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateTagSpecification) GoString() string { + return s.String() +} + +// SetResourceType sets the ResourceType field's value. +func (s *LaunchTemplateTagSpecification) SetResourceType(v string) *LaunchTemplateTagSpecification { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *LaunchTemplateTagSpecification) SetTags(v []*Tag) *LaunchTemplateTagSpecification { + s.Tags = v + return s +} + +// The tags specification for the launch template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateTagSpecificationRequest +type LaunchTemplateTagSpecificationRequest struct { + _ struct{} `type:"structure"` + + // The type of resource to tag. Currently, the resource types that support tagging + // on creation are instance and volume. + ResourceType *string `type:"string" enum:"ResourceType"` + + // The tags to apply to the resource. + Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s LaunchTemplateTagSpecificationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateTagSpecificationRequest) GoString() string { + return s.String() +} + +// SetResourceType sets the ResourceType field's value. +func (s *LaunchTemplateTagSpecificationRequest) SetResourceType(v string) *LaunchTemplateTagSpecificationRequest { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *LaunchTemplateTagSpecificationRequest) SetTags(v []*Tag) *LaunchTemplateTagSpecificationRequest { + s.Tags = v + return s +} + +// Describes a launch template version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateVersion +type LaunchTemplateVersion struct { + _ struct{} `type:"structure"` + + // The time the version was created. + CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"` + + // The principal that created the version. + CreatedBy *string `locationName:"createdBy" type:"string"` + + // Indicates whether the version is the default version. + DefaultVersion *bool `locationName:"defaultVersion" type:"boolean"` + + // Information about the launch template. + LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"` + + // The ID of the launch template. + LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"` + + // The name of the launch template. + LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"` + + // The description for the version. + VersionDescription *string `locationName:"versionDescription" type:"string"` + + // The version number. + VersionNumber *int64 `locationName:"versionNumber" type:"long"` +} + +// String returns the string representation +func (s LaunchTemplateVersion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateVersion) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *LaunchTemplateVersion) SetCreateTime(v time.Time) *LaunchTemplateVersion { + s.CreateTime = &v + return s +} + +// SetCreatedBy sets the CreatedBy field's value. +func (s *LaunchTemplateVersion) SetCreatedBy(v string) *LaunchTemplateVersion { + s.CreatedBy = &v + return s +} + +// SetDefaultVersion sets the DefaultVersion field's value. +func (s *LaunchTemplateVersion) SetDefaultVersion(v bool) *LaunchTemplateVersion { + s.DefaultVersion = &v + return s +} + +// SetLaunchTemplateData sets the LaunchTemplateData field's value. +func (s *LaunchTemplateVersion) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *LaunchTemplateVersion { + s.LaunchTemplateData = v + return s +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *LaunchTemplateVersion) SetLaunchTemplateId(v string) *LaunchTemplateVersion { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *LaunchTemplateVersion) SetLaunchTemplateName(v string) *LaunchTemplateVersion { + s.LaunchTemplateName = &v + return s +} + +// SetVersionDescription sets the VersionDescription field's value. +func (s *LaunchTemplateVersion) SetVersionDescription(v string) *LaunchTemplateVersion { + s.VersionDescription = &v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *LaunchTemplateVersion) SetVersionNumber(v int64) *LaunchTemplateVersion { + s.VersionNumber = &v + return s +} + +// Describes the monitoring for the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplatesMonitoring +type LaunchTemplatesMonitoring struct { + _ struct{} `type:"structure"` + + // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring + // is enabled. + Enabled *bool `locationName:"enabled" type:"boolean"` +} + +// String returns the string representation +func (s LaunchTemplatesMonitoring) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplatesMonitoring) GoString() string { + return s.String() +} + +// SetEnabled sets the Enabled field's value. +func (s *LaunchTemplatesMonitoring) SetEnabled(v bool) *LaunchTemplatesMonitoring { + s.Enabled = &v + return s +} + +// Describes the monitoring for the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplatesMonitoringRequest +type LaunchTemplatesMonitoringRequest struct { + _ struct{} `type:"structure"` + + // Specify true to enable detailed monitoring. Otherwise, basic monitoring is + // enabled. + Enabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s LaunchTemplatesMonitoringRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplatesMonitoringRequest) GoString() string { + return s.String() +} + +// SetEnabled sets the Enabled field's value. +func (s *LaunchTemplatesMonitoringRequest) SetEnabled(v bool) *LaunchTemplatesMonitoringRequest { + s.Enabled = &v + return s +} + // Describes the Classic Load Balancers and target groups to attach to a Spot -// fleet request. +// Fleet request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LoadBalancersConfig type LoadBalancersConfig struct { _ struct{} `type:"structure"` @@ -46920,6 +52063,109 @@ func (s *ModifyInstancePlacementOutput) SetReturn(v bool) *ModifyInstancePlaceme return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplateRequest +type ModifyLaunchTemplateInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string `type:"string"` + + // The version number of the launch template to set as the default version. + DefaultVersion *string `locationName:"SetDefaultVersion" type:"string"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateId *string `type:"string"` + + // The name of the launch template. You must specify either the launch template + // ID or launch template name in the request. + LaunchTemplateName *string `min:"3" type:"string"` +} + +// String returns the string representation +func (s ModifyLaunchTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyLaunchTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyLaunchTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyLaunchTemplateInput"} + if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *ModifyLaunchTemplateInput) SetClientToken(v string) *ModifyLaunchTemplateInput { + s.ClientToken = &v + return s +} + +// SetDefaultVersion sets the DefaultVersion field's value. +func (s *ModifyLaunchTemplateInput) SetDefaultVersion(v string) *ModifyLaunchTemplateInput { + s.DefaultVersion = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyLaunchTemplateInput) SetDryRun(v bool) *ModifyLaunchTemplateInput { + s.DryRun = &v + return s +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *ModifyLaunchTemplateInput) SetLaunchTemplateId(v string) *ModifyLaunchTemplateInput { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *ModifyLaunchTemplateInput) SetLaunchTemplateName(v string) *ModifyLaunchTemplateInput { + s.LaunchTemplateName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplateResult +type ModifyLaunchTemplateOutput struct { + _ struct{} `type:"structure"` + + // Information about the launch template. + LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"` +} + +// String returns the string representation +func (s ModifyLaunchTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyLaunchTemplateOutput) GoString() string { + return s.String() +} + +// SetLaunchTemplate sets the LaunchTemplate field's value. +func (s *ModifyLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *ModifyLaunchTemplateOutput { + s.LaunchTemplate = v + return s +} + // Contains the parameters for ModifyNetworkInterfaceAttribute. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeRequest type ModifyNetworkInterfaceAttributeInput struct { @@ -47239,12 +52485,12 @@ func (s ModifySnapshotAttributeOutput) GoString() string { type ModifySpotFleetRequestInput struct { _ struct{} `type:"structure"` - // Indicates whether running Spot instances should be terminated if the target - // capacity of the Spot fleet request is decreased below the current size of - // the Spot fleet. + // Indicates whether running Spot Instances should be terminated if the target + // capacity of the Spot Fleet request is decreased below the current size of + // the Spot Fleet. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` @@ -47679,6 +52925,100 @@ func (s ModifyVpcAttributeOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotificationRequest +type ModifyVpcEndpointConnectionNotificationInput struct { + _ struct{} `type:"structure"` + + // One or more events for the endpoint. Valid values are Accept, Connect, Delete, + // and Reject. + ConnectionEvents []*string `locationNameList:"item" type:"list"` + + // The ARN for the SNS topic for the notification. + ConnectionNotificationArn *string `type:"string"` + + // The ID of the notification. + // + // ConnectionNotificationId is a required field + ConnectionNotificationId *string `type:"string" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` +} + +// String returns the string representation +func (s ModifyVpcEndpointConnectionNotificationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyVpcEndpointConnectionNotificationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyVpcEndpointConnectionNotificationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointConnectionNotificationInput"} + if s.ConnectionNotificationId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionEvents sets the ConnectionEvents field's value. +func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *ModifyVpcEndpointConnectionNotificationInput { + s.ConnectionEvents = v + return s +} + +// SetConnectionNotificationArn sets the ConnectionNotificationArn field's value. +func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *ModifyVpcEndpointConnectionNotificationInput { + s.ConnectionNotificationArn = &v + return s +} + +// SetConnectionNotificationId sets the ConnectionNotificationId field's value. +func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationId(v string) *ModifyVpcEndpointConnectionNotificationInput { + s.ConnectionNotificationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *ModifyVpcEndpointConnectionNotificationInput { + s.DryRun = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotificationResult +type ModifyVpcEndpointConnectionNotificationOutput struct { + _ struct{} `type:"structure"` + + // Returns true if the request succeeds; otherwise, it returns an error. + ReturnValue *bool `locationName:"return" type:"boolean"` +} + +// String returns the string representation +func (s ModifyVpcEndpointConnectionNotificationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyVpcEndpointConnectionNotificationOutput) GoString() string { + return s.String() +} + +// SetReturnValue sets the ReturnValue field's value. +func (s *ModifyVpcEndpointConnectionNotificationOutput) SetReturnValue(v bool) *ModifyVpcEndpointConnectionNotificationOutput { + s.ReturnValue = &v + return s +} + // Contains the parameters for ModifyVpcEndpoint. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointRequest type ModifyVpcEndpointInput struct { @@ -47841,6 +53181,205 @@ func (s *ModifyVpcEndpointOutput) SetReturn(v bool) *ModifyVpcEndpointOutput { return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfigurationRequest +type ModifyVpcEndpointServiceConfigurationInput struct { + _ struct{} `type:"structure"` + + // Indicate whether requests to create an endpoint to your service must be accepted. + AcceptanceRequired *bool `type:"boolean"` + + // The Amazon Resource Names (ARNs) of Network Load Balancers to add to your + // service configuration. + AddNetworkLoadBalancerArns []*string `locationName:"addNetworkLoadBalancerArn" locationNameList:"item" type:"list"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The Amazon Resource Names (ARNs) of Network Load Balancers to remove from + // your service configuration. + RemoveNetworkLoadBalancerArns []*string `locationName:"removeNetworkLoadBalancerArn" locationNameList:"item" type:"list"` + + // The ID of the service. + // + // ServiceId is a required field + ServiceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ModifyVpcEndpointServiceConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyVpcEndpointServiceConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyVpcEndpointServiceConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServiceConfigurationInput"} + if s.ServiceId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptanceRequired sets the AcceptanceRequired field's value. +func (s *ModifyVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *ModifyVpcEndpointServiceConfigurationInput { + s.AcceptanceRequired = &v + return s +} + +// SetAddNetworkLoadBalancerArns sets the AddNetworkLoadBalancerArns field's value. +func (s *ModifyVpcEndpointServiceConfigurationInput) SetAddNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput { + s.AddNetworkLoadBalancerArns = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *ModifyVpcEndpointServiceConfigurationInput { + s.DryRun = &v + return s +} + +// SetRemoveNetworkLoadBalancerArns sets the RemoveNetworkLoadBalancerArns field's value. +func (s *ModifyVpcEndpointServiceConfigurationInput) SetRemoveNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput { + s.RemoveNetworkLoadBalancerArns = v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *ModifyVpcEndpointServiceConfigurationInput) SetServiceId(v string) *ModifyVpcEndpointServiceConfigurationInput { + s.ServiceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfigurationResult +type ModifyVpcEndpointServiceConfigurationOutput struct { + _ struct{} `type:"structure"` + + // Returns true if the request succeeds; otherwise, it returns an error. + Return *bool `locationName:"return" type:"boolean"` +} + +// String returns the string representation +func (s ModifyVpcEndpointServiceConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyVpcEndpointServiceConfigurationOutput) GoString() string { + return s.String() +} + +// SetReturn sets the Return field's value. +func (s *ModifyVpcEndpointServiceConfigurationOutput) SetReturn(v bool) *ModifyVpcEndpointServiceConfigurationOutput { + s.Return = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissionsRequest +type ModifyVpcEndpointServicePermissionsInput struct { + _ struct{} `type:"structure"` + + // One or more Amazon Resource Names (ARNs) of principals for which to allow + // permission. Specify * to allow all principals. + AddAllowedPrincipals []*string `locationNameList:"item" type:"list"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more Amazon Resource Names (ARNs) of principals for which to remove + // permission. + RemoveAllowedPrincipals []*string `locationNameList:"item" type:"list"` + + // The ID of the service. + // + // ServiceId is a required field + ServiceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ModifyVpcEndpointServicePermissionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyVpcEndpointServicePermissionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyVpcEndpointServicePermissionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServicePermissionsInput"} + if s.ServiceId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddAllowedPrincipals sets the AddAllowedPrincipals field's value. +func (s *ModifyVpcEndpointServicePermissionsInput) SetAddAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput { + s.AddAllowedPrincipals = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVpcEndpointServicePermissionsInput) SetDryRun(v bool) *ModifyVpcEndpointServicePermissionsInput { + s.DryRun = &v + return s +} + +// SetRemoveAllowedPrincipals sets the RemoveAllowedPrincipals field's value. +func (s *ModifyVpcEndpointServicePermissionsInput) SetRemoveAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput { + s.RemoveAllowedPrincipals = v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *ModifyVpcEndpointServicePermissionsInput) SetServiceId(v string) *ModifyVpcEndpointServicePermissionsInput { + s.ServiceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissionsResult +type ModifyVpcEndpointServicePermissionsOutput struct { + _ struct{} `type:"structure"` + + // Returns true if the request succeeds; otherwise, it returns an error. + ReturnValue *bool `locationName:"return" type:"boolean"` +} + +// String returns the string representation +func (s ModifyVpcEndpointServicePermissionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyVpcEndpointServicePermissionsOutput) GoString() string { + return s.String() +} + +// SetReturnValue sets the ReturnValue field's value. +func (s *ModifyVpcEndpointServicePermissionsOutput) SetReturnValue(v bool) *ModifyVpcEndpointServicePermissionsOutput { + s.ReturnValue = &v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptionsRequest type ModifyVpcPeeringConnectionOptionsInput struct { _ struct{} `type:"structure"` @@ -50657,7 +56196,7 @@ type RegisterImageInput struct { // PV AMI can make instances launched from the AMI unreachable. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"` - // The type of virtualization. + // The type of virtualization (hvm | paravirtual). // // Default: paravirtual VirtualizationType *string `locationName:"virtualizationType" type:"string"` @@ -50789,6 +56328,95 @@ func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput { return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnectionsRequest +type RejectVpcEndpointConnectionsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the service. + // + // ServiceId is a required field + ServiceId *string `type:"string" required:"true"` + + // The IDs of one or more VPC endpoints. + // + // VpcEndpointIds is a required field + VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"` +} + +// String returns the string representation +func (s RejectVpcEndpointConnectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectVpcEndpointConnectionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RejectVpcEndpointConnectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectVpcEndpointConnectionsInput"} + if s.ServiceId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceId")) + } + if s.VpcEndpointIds == nil { + invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *RejectVpcEndpointConnectionsInput) SetDryRun(v bool) *RejectVpcEndpointConnectionsInput { + s.DryRun = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *RejectVpcEndpointConnectionsInput) SetServiceId(v string) *RejectVpcEndpointConnectionsInput { + s.ServiceId = &v + return s +} + +// SetVpcEndpointIds sets the VpcEndpointIds field's value. +func (s *RejectVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *RejectVpcEndpointConnectionsInput { + s.VpcEndpointIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnectionsResult +type RejectVpcEndpointConnectionsOutput struct { + _ struct{} `type:"structure"` + + // Information about the endpoints that were not rejected, if applicable. + Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s RejectVpcEndpointConnectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectVpcEndpointConnectionsOutput) GoString() string { + return s.String() +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *RejectVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *RejectVpcEndpointConnectionsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for RejectVpcPeeringConnection. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnectionRequest type RejectVpcPeeringConnectionInput struct { @@ -51715,6 +57343,270 @@ func (s ReportInstanceStatusOutput) GoString() string { return s.String() } +// The information to include in the launch template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestLaunchTemplateData +type RequestLaunchTemplateData struct { + _ struct{} `type:"structure"` + + // The block device mapping. + // + // Supplying both a snapshot ID and an encryption value as arguments for block-device + // mapping results in an error. This is because only blank volumes can be encrypted + // on start, and these are not created from a snapshot. If a snapshot is the + // basis for the volume, it contains data by definition and its encryption status + // cannot be changed using this action. + BlockDeviceMappings []*LaunchTemplateBlockDeviceMappingRequest `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"` + + // The credit option for CPU usage of the instance. Valid for T2 instances only. + CreditSpecification *CreditSpecificationRequest `type:"structure"` + + // If set to true, you can't terminate the instance using the Amazon EC2 console, + // CLI, or API. To change this attribute to false after launch, use ModifyInstanceAttribute. + DisableApiTermination *bool `type:"boolean"` + + // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization + // provides dedicated throughput to Amazon EBS and an optimized configuration + // stack to provide optimal Amazon EBS I/O performance. This optimization isn't + // available with all instance types. Additional usage charges apply when using + // an EBS-optimized instance. + EbsOptimized *bool `type:"boolean"` + + // An elastic GPU to associate with the instance. + ElasticGpuSpecifications []*ElasticGpuSpecification `locationName:"ElasticGpuSpecification" locationNameList:"ElasticGpuSpecification" type:"list"` + + // The IAM instance profile. + IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest `type:"structure"` + + // The ID of the AMI, which you can get by using DescribeImages. + ImageId *string `type:"string"` + + // Indicates whether an instance stops or terminates when you initiate shutdown + // from the instance (using the operating system command for system shutdown). + // + // Default: stop + InstanceInitiatedShutdownBehavior *string `type:"string" enum:"ShutdownBehavior"` + + // The market (purchasing) option for the instances. + InstanceMarketOptions *LaunchTemplateInstanceMarketOptionsRequest `type:"structure"` + + // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + // in the Amazon Elastic Compute Cloud User Guide. + InstanceType *string `type:"string" enum:"InstanceType"` + + // The ID of the kernel. + // + // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more + // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + // in the Amazon Elastic Compute Cloud User Guide. + KernelId *string `type:"string"` + + // The name of the key pair. You can create a key pair using CreateKeyPair or + // ImportKeyPair. + // + // If you do not specify a key pair, you can't connect to the instance unless + // you choose an AMI that is configured to allow users another way to log in. + KeyName *string `type:"string"` + + // The monitoring for the instance. + Monitoring *LaunchTemplatesMonitoringRequest `type:"structure"` + + // One or more network interfaces. + NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest `locationName:"NetworkInterface" locationNameList:"InstanceNetworkInterfaceSpecification" type:"list"` + + // The placement for the instance. + Placement *LaunchTemplatePlacementRequest `type:"structure"` + + // The ID of the RAM disk. + // + // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more + // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + // in the Amazon Elastic Compute Cloud User Guide. + RamDiskId *string `type:"string"` + + // One or more security group IDs. You can create a security group using CreateSecurityGroup. + // You cannot specify both a security group ID and security name in the same + // request. + SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` + + // [EC2-Classic, default VPC] One or more security group names. For a nondefault + // VPC, you must use security group IDs instead. You cannot specify both a security + // group ID and security name in the same request. + SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"` + + // The tags to apply to the resources during launch. You can tag instances and + // volumes. The specified tags are applied to all instances or volumes that + // are created during launch. + TagSpecifications []*LaunchTemplateTagSpecificationRequest `locationName:"TagSpecification" locationNameList:"LaunchTemplateTagSpecificationRequest" type:"list"` + + // The user data to make available to the instance. For more information, see + // Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) + // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data) + // (Windows). If you are using a command line tool, base64-encoding is performed + // for you and you can load the text from a file. Otherwise, you must provide + // base64-encoded text. + UserData *string `type:"string"` +} + +// String returns the string representation +func (s RequestLaunchTemplateData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestLaunchTemplateData) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RequestLaunchTemplateData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RequestLaunchTemplateData"} + if s.ElasticGpuSpecifications != nil { + for i, v := range s.ElasticGpuSpecifications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecifications", i), err.(request.ErrInvalidParams)) + } + } + } + if s.NetworkInterfaces != nil { + for i, v := range s.NetworkInterfaces { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *RequestLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMappingRequest) *RequestLaunchTemplateData { + s.BlockDeviceMappings = v + return s +} + +// SetCreditSpecification sets the CreditSpecification field's value. +func (s *RequestLaunchTemplateData) SetCreditSpecification(v *CreditSpecificationRequest) *RequestLaunchTemplateData { + s.CreditSpecification = v + return s +} + +// SetDisableApiTermination sets the DisableApiTermination field's value. +func (s *RequestLaunchTemplateData) SetDisableApiTermination(v bool) *RequestLaunchTemplateData { + s.DisableApiTermination = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *RequestLaunchTemplateData) SetEbsOptimized(v bool) *RequestLaunchTemplateData { + s.EbsOptimized = &v + return s +} + +// SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value. +func (s *RequestLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecification) *RequestLaunchTemplateData { + s.ElasticGpuSpecifications = v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *RequestLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecificationRequest) *RequestLaunchTemplateData { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *RequestLaunchTemplateData) SetImageId(v string) *RequestLaunchTemplateData { + s.ImageId = &v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *RequestLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *RequestLaunchTemplateData { + s.InstanceInitiatedShutdownBehavior = &v + return s +} + +// SetInstanceMarketOptions sets the InstanceMarketOptions field's value. +func (s *RequestLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptionsRequest) *RequestLaunchTemplateData { + s.InstanceMarketOptions = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *RequestLaunchTemplateData) SetInstanceType(v string) *RequestLaunchTemplateData { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *RequestLaunchTemplateData) SetKernelId(v string) *RequestLaunchTemplateData { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *RequestLaunchTemplateData) SetKeyName(v string) *RequestLaunchTemplateData { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *RequestLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoringRequest) *RequestLaunchTemplateData { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *RequestLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) *RequestLaunchTemplateData { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *RequestLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacementRequest) *RequestLaunchTemplateData { + s.Placement = v + return s +} + +// SetRamDiskId sets the RamDiskId field's value. +func (s *RequestLaunchTemplateData) SetRamDiskId(v string) *RequestLaunchTemplateData { + s.RamDiskId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *RequestLaunchTemplateData) SetSecurityGroupIds(v []*string) *RequestLaunchTemplateData { + s.SecurityGroupIds = v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *RequestLaunchTemplateData) SetSecurityGroups(v []*string) *RequestLaunchTemplateData { + s.SecurityGroups = v + return s +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *RequestLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecificationRequest) *RequestLaunchTemplateData { + s.TagSpecifications = v + return s +} + +// SetUserData sets the UserData field's value. +func (s *RequestLaunchTemplateData) SetUserData(v string) *RequestLaunchTemplateData { + s.UserData = &v + return s +} + // Contains the parameters for RequestSpotFleet. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleetRequest type RequestSpotFleetInput struct { @@ -51726,7 +57618,7 @@ type RequestSpotFleetInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // The configuration for the Spot fleet request. + // The configuration for the Spot Fleet request. // // SpotFleetRequestConfig is a required field SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"` @@ -51777,7 +57669,7 @@ func (s *RequestSpotFleetInput) SetSpotFleetRequestConfig(v *SpotFleetRequestCon type RequestSpotFleetOutput struct { _ struct{} `type:"structure"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` @@ -51804,34 +57696,34 @@ func (s *RequestSpotFleetOutput) SetSpotFleetRequestId(v string) *RequestSpotFle type RequestSpotInstancesInput struct { _ struct{} `type:"structure"` - // The user-specified name for a logical grouping of bids. + // The user-specified name for a logical grouping of requests. // // When you specify an Availability Zone group in a Spot Instance request, all - // Spot instances in the request are launched in the same Availability Zone. + // Spot Instances in the request are launched in the same Availability Zone. // Instance proximity is maintained with this parameter, but the choice of Availability - // Zone is not. The group applies only to bids for Spot Instances of the same - // instance type. Any additional Spot instance requests that are specified with - // the same Availability Zone group name are launched in that same Availability + // Zone is not. The group applies only to requests for Spot Instances of the + // same instance type. Any additional Spot Instance requests that are specified + // with the same Availability Zone group name are launched in that same Availability // Zone, as long as at least one instance from the group is still active. // // If there is no active instance running in the Availability Zone group that - // you specify for a new Spot instance request (all instances are terminated, - // the bid is expired, or the bid falls below current market), then Amazon EC2 - // launches the instance in any Availability Zone where the constraint can be - // met. Consequently, the subsequent set of Spot instances could be placed in - // a different zone from the original request, even if you specified the same - // Availability Zone group. + // you specify for a new Spot Instance request (all instances are terminated, + // the request is expired, or the maximum price you specified falls below current + // Spot price), then Amazon EC2 launches the instance in any Availability Zone + // where the constraint can be met. Consequently, the subsequent set of Spot + // Instances could be placed in a different zone from the original request, + // even if you specified the same Availability Zone group. // // Default: Instances are launched in any available Availability Zone. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"` - // The required duration for the Spot instances (also known as Spot blocks), + // The required duration for the Spot Instances (also known as Spot blocks), // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, // or 360). // - // The duration period starts as soon as your Spot instance receives its instance - // ID. At the end of the duration period, Amazon EC2 marks the Spot instance - // for termination and provides a Spot instance termination notice, which gives + // The duration period starts as soon as your Spot Instance receives its instance + // ID. At the end of the duration period, Amazon EC2 marks the Spot Instance + // for termination and provides a Spot Instance termination notice, which gives // the instance a two-minute warning before it terminates. // // Note that you can't specify an Availability Zone group or a launch group @@ -51849,15 +57741,15 @@ type RequestSpotInstancesInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // The maximum number of Spot instances to launch. + // The maximum number of Spot Instances to launch. // // Default: 1 InstanceCount *int64 `locationName:"instanceCount" type:"integer"` - // Indicates whether a Spot instance stops or terminates when it is interrupted. + // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"` - // The instance launch group. Launch groups are Spot instances that launch together + // The instance launch group. Launch groups are Spot Instances that launch together // and terminate together. // // Default: Instances are launched and terminated individually @@ -51866,13 +57758,11 @@ type RequestSpotInstancesInput struct { // The launch specification. LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"` - // The maximum hourly price (bid) for any Spot instance launched to fulfill - // the request. - // - // SpotPrice is a required field - SpotPrice *string `locationName:"spotPrice" type:"string" required:"true"` + // The maximum price per hour that you are willing to pay for a Spot Instance. + // The default is the On-Demand price. + SpotPrice *string `locationName:"spotPrice" type:"string"` - // The Spot instance request type. + // The Spot Instance request type. // // Default: one-time Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"` @@ -51882,16 +57772,13 @@ type RequestSpotInstancesInput struct { // launch, the request expires, or the request is canceled. If the request is // persistent, the request becomes active at this date and time and remains // active until it expires or is canceled. - // - // Default: The request is effective indefinitely. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"` // The end date of the request. If this is a one-time request, the request remains // active until all instances launch, the request is canceled, or this date // is reached. If the request is persistent, it remains active until it is canceled - // or this date and time is reached. - // - // Default: The request is effective indefinitely. + // or this date is reached. The default end date is 7 days from the current + // date. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"` } @@ -51908,9 +57795,6 @@ func (s RequestSpotInstancesInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *RequestSpotInstancesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RequestSpotInstancesInput"} - if s.SpotPrice == nil { - invalidParams.Add(request.NewErrParamRequired("SpotPrice")) - } if s.LaunchSpecification != nil { if err := s.LaunchSpecification.Validate(); err != nil { invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams)) @@ -52000,7 +57884,7 @@ func (s *RequestSpotInstancesInput) SetValidUntil(v time.Time) *RequestSpotInsta type RequestSpotInstancesOutput struct { _ struct{} `type:"structure"` - // One or more Spot instance requests. + // One or more Spot Instance requests. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"` } @@ -53474,6 +59358,239 @@ func (s ResetSnapshotAttributeOutput) GoString() string { return s.String() } +// Describes the error that's returned when you cannot delete a launch template +// version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResponseError +type ResponseError struct { + _ struct{} `type:"structure"` + + // The error code. + Code *string `locationName:"code" type:"string" enum:"LaunchTemplateErrorCode"` + + // The error message, if applicable. + Message *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResponseError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResponseError) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *ResponseError) SetCode(v string) *ResponseError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ResponseError) SetMessage(v string) *ResponseError { + s.Message = &v + return s +} + +// The information for a launch template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResponseLaunchTemplateData +type ResponseLaunchTemplateData struct { + _ struct{} `type:"structure"` + + // The block device mappings. + BlockDeviceMappings []*LaunchTemplateBlockDeviceMapping `locationName:"blockDeviceMappingSet" locationNameList:"item" type:"list"` + + // The credit option for CPU usage of the instance. + CreditSpecification *CreditSpecification `locationName:"creditSpecification" type:"structure"` + + // If set to true, indicates that the instance cannot be terminated using the + // Amazon EC2 console, command line tool, or API. + DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"` + + // Indicates whether the instance is optimized for Amazon EBS I/O. + EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"` + + // The elastic GPU specification. + ElasticGpuSpecifications []*ElasticGpuSpecificationResponse `locationName:"elasticGpuSpecificationSet" locationNameList:"item" type:"list"` + + // The IAM instance profile. + IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"` + + // The ID of the AMI that was used to launch the instance. + ImageId *string `locationName:"imageId" type:"string"` + + // Indicates whether an instance stops or terminates when you initiate shutdown + // from the instance (using the operating system command for system shutdown). + InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"` + + // The market (purchasing) option for the instances. + InstanceMarketOptions *LaunchTemplateInstanceMarketOptions `locationName:"instanceMarketOptions" type:"structure"` + + // The instance type. + InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` + + // The ID of the kernel, if applicable. + KernelId *string `locationName:"kernelId" type:"string"` + + // The name of the key pair. + KeyName *string `locationName:"keyName" type:"string"` + + // The monitoring for the instance. + Monitoring *LaunchTemplatesMonitoring `locationName:"monitoring" type:"structure"` + + // The network interfaces. + NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"` + + // The placement of the instance. + Placement *LaunchTemplatePlacement `locationName:"placement" type:"structure"` + + // The ID of the RAM disk, if applicable. + RamDiskId *string `locationName:"ramDiskId" type:"string"` + + // The security group IDs. + SecurityGroupIds []*string `locationName:"securityGroupIdSet" locationNameList:"item" type:"list"` + + // The security group names. + SecurityGroups []*string `locationName:"securityGroupSet" locationNameList:"item" type:"list"` + + // The tags. + TagSpecifications []*LaunchTemplateTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"` + + // The user data for the instance. + UserData *string `locationName:"userData" type:"string"` +} + +// String returns the string representation +func (s ResponseLaunchTemplateData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResponseLaunchTemplateData) GoString() string { + return s.String() +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *ResponseLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMapping) *ResponseLaunchTemplateData { + s.BlockDeviceMappings = v + return s +} + +// SetCreditSpecification sets the CreditSpecification field's value. +func (s *ResponseLaunchTemplateData) SetCreditSpecification(v *CreditSpecification) *ResponseLaunchTemplateData { + s.CreditSpecification = v + return s +} + +// SetDisableApiTermination sets the DisableApiTermination field's value. +func (s *ResponseLaunchTemplateData) SetDisableApiTermination(v bool) *ResponseLaunchTemplateData { + s.DisableApiTermination = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *ResponseLaunchTemplateData) SetEbsOptimized(v bool) *ResponseLaunchTemplateData { + s.EbsOptimized = &v + return s +} + +// SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value. +func (s *ResponseLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecificationResponse) *ResponseLaunchTemplateData { + s.ElasticGpuSpecifications = v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *ResponseLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecification) *ResponseLaunchTemplateData { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ResponseLaunchTemplateData) SetImageId(v string) *ResponseLaunchTemplateData { + s.ImageId = &v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *ResponseLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *ResponseLaunchTemplateData { + s.InstanceInitiatedShutdownBehavior = &v + return s +} + +// SetInstanceMarketOptions sets the InstanceMarketOptions field's value. +func (s *ResponseLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptions) *ResponseLaunchTemplateData { + s.InstanceMarketOptions = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ResponseLaunchTemplateData) SetInstanceType(v string) *ResponseLaunchTemplateData { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *ResponseLaunchTemplateData) SetKernelId(v string) *ResponseLaunchTemplateData { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ResponseLaunchTemplateData) SetKeyName(v string) *ResponseLaunchTemplateData { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *ResponseLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoring) *ResponseLaunchTemplateData { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *ResponseLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecification) *ResponseLaunchTemplateData { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *ResponseLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacement) *ResponseLaunchTemplateData { + s.Placement = v + return s +} + +// SetRamDiskId sets the RamDiskId field's value. +func (s *ResponseLaunchTemplateData) SetRamDiskId(v string) *ResponseLaunchTemplateData { + s.RamDiskId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ResponseLaunchTemplateData) SetSecurityGroupIds(v []*string) *ResponseLaunchTemplateData { + s.SecurityGroupIds = v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *ResponseLaunchTemplateData) SetSecurityGroups(v []*string) *ResponseLaunchTemplateData { + s.SecurityGroups = v + return s +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *ResponseLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecification) *ResponseLaunchTemplateData { + s.TagSpecifications = v + return s +} + +// SetUserData sets the UserData field's value. +func (s *ResponseLaunchTemplateData) SetUserData(v string) *ResponseLaunchTemplateData { + s.UserData = &v + return s +} + // Contains the parameters for RestoreAddressToClassic. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassicRequest type RestoreAddressToClassicInput struct { @@ -54135,16 +60252,14 @@ type RunInstancesInput struct { // Default: false EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"` - // An Elastic GPU to associate with the instance. + // An elastic GPU to associate with the instance. ElasticGpuSpecification []*ElasticGpuSpecification `locationNameList:"item" type:"list"` // The IAM instance profile. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"` // The ID of the AMI, which you can get by calling DescribeImages. - // - // ImageId is a required field - ImageId *string `type:"string" required:"true"` + ImageId *string `type:"string"` // Indicates whether an instance stops or terminates when you initiate shutdown // from the instance (using the operating system command for system shutdown). @@ -54152,6 +60267,9 @@ type RunInstancesInput struct { // Default: stop InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"` + // The market (purchasing) option for the instances. + InstanceMarketOptions *InstanceMarketOptionsRequest `type:"structure"` + // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) // in the Amazon Elastic Compute Cloud User Guide. // @@ -54186,6 +60304,10 @@ type RunInstancesInput struct { // you choose an AMI that is configured to allow users another way to log in. KeyName *string `type:"string"` + // The launch template to use to launch the instances. Any parameters that you + // specify in RunInstances override the same parameters in the launch template. + LaunchTemplate *LaunchTemplateSpecification `type:"structure"` + // The maximum number of instances to launch. If you specify more instances // than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches // the largest possible number of instances above MinCount. @@ -54276,9 +60398,6 @@ func (s RunInstancesInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *RunInstancesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RunInstancesInput"} - if s.ImageId == nil { - invalidParams.Add(request.NewErrParamRequired("ImageId")) - } if s.MaxCount == nil { invalidParams.Add(request.NewErrParamRequired("MaxCount")) } @@ -54377,6 +60496,12 @@ func (s *RunInstancesInput) SetInstanceInitiatedShutdownBehavior(v string) *RunI return s } +// SetInstanceMarketOptions sets the InstanceMarketOptions field's value. +func (s *RunInstancesInput) SetInstanceMarketOptions(v *InstanceMarketOptionsRequest) *RunInstancesInput { + s.InstanceMarketOptions = v + return s +} + // SetInstanceType sets the InstanceType field's value. func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput { s.InstanceType = &v @@ -54407,6 +60532,12 @@ func (s *RunInstancesInput) SetKeyName(v string) *RunInstancesInput { return s } +// SetLaunchTemplate sets the LaunchTemplate field's value. +func (s *RunInstancesInput) SetLaunchTemplate(v *LaunchTemplateSpecification) *RunInstancesInput { + s.LaunchTemplate = v + return s +} + // SetMaxCount sets the MaxCount field's value. func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput { s.MaxCount = &v @@ -55895,7 +62026,105 @@ func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGr return s } -// Describes a service. +// Describes a service configuration for a VPC endpoint service. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ServiceConfiguration +type ServiceConfiguration struct { + _ struct{} `type:"structure"` + + // Indicates whether requests from other AWS accounts to create an endpoint + // to the service must first be accepted. + AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"` + + // In the Availability Zones in which the service is available. + AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"` + + // The DNS names for the service. + BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"` + + // The Amazon Resource Names (ARNs) of the Network Load Balancers for the service. + NetworkLoadBalancerArns []*string `locationName:"networkLoadBalancerArnSet" locationNameList:"item" type:"list"` + + // The private DNS name for the service. + PrivateDnsName *string `locationName:"privateDnsName" type:"string"` + + // The ID of the service. + ServiceId *string `locationName:"serviceId" type:"string"` + + // The name of the service. + ServiceName *string `locationName:"serviceName" type:"string"` + + // The service state. + ServiceState *string `locationName:"serviceState" type:"string" enum:"ServiceState"` + + // The type of service. + ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s ServiceConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceConfiguration) GoString() string { + return s.String() +} + +// SetAcceptanceRequired sets the AcceptanceRequired field's value. +func (s *ServiceConfiguration) SetAcceptanceRequired(v bool) *ServiceConfiguration { + s.AcceptanceRequired = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *ServiceConfiguration) SetAvailabilityZones(v []*string) *ServiceConfiguration { + s.AvailabilityZones = v + return s +} + +// SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value. +func (s *ServiceConfiguration) SetBaseEndpointDnsNames(v []*string) *ServiceConfiguration { + s.BaseEndpointDnsNames = v + return s +} + +// SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value. +func (s *ServiceConfiguration) SetNetworkLoadBalancerArns(v []*string) *ServiceConfiguration { + s.NetworkLoadBalancerArns = v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *ServiceConfiguration) SetPrivateDnsName(v string) *ServiceConfiguration { + s.PrivateDnsName = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *ServiceConfiguration) SetServiceId(v string) *ServiceConfiguration { + s.ServiceId = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ServiceConfiguration) SetServiceName(v string) *ServiceConfiguration { + s.ServiceName = &v + return s +} + +// SetServiceState sets the ServiceState field's value. +func (s *ServiceConfiguration) SetServiceState(v string) *ServiceConfiguration { + s.ServiceState = &v + return s +} + +// SetServiceType sets the ServiceType field's value. +func (s *ServiceConfiguration) SetServiceType(v []*ServiceTypeDetail) *ServiceConfiguration { + s.ServiceType = v + return s +} + +// Describes a VPC endpoint service. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ServiceDetail type ServiceDetail struct { _ struct{} `type:"structure"` @@ -56516,15 +62745,15 @@ func (s *SnapshotTaskDetail) SetUserBucket(v *UserBucketDetails) *SnapshotTaskDe return s } -// Describes the data feed for a Spot instance. +// Describes the data feed for a Spot Instance. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotDatafeedSubscription type SpotDatafeedSubscription struct { _ struct{} `type:"structure"` - // The Amazon S3 bucket where the Spot instance data feed is located. + // The Amazon S3 bucket where the Spot Instance data feed is located. Bucket *string `locationName:"bucket" type:"string"` - // The fault codes for the Spot instance request, if any. + // The fault codes for the Spot Instance request, if any. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"` // The AWS account ID of the account. @@ -56533,7 +62762,7 @@ type SpotDatafeedSubscription struct { // The prefix that is prepended to data feed files. Prefix *string `locationName:"prefix" type:"string"` - // The state of the Spot instance data feed subscription. + // The state of the Spot Instance data feed subscription. State *string `locationName:"state" type:"string" enum:"DatafeedSubscriptionState"` } @@ -56577,7 +62806,7 @@ func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription return s } -// Describes the launch specification for one or more Spot instances. +// Describes the launch specification for one or more Spot Instances. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetLaunchSpecification type SpotFleetLaunchSpecification struct { _ struct{} `type:"structure"` @@ -56606,7 +62835,7 @@ type SpotFleetLaunchSpecification struct { // The ID of the AMI. ImageId *string `locationName:"imageId" type:"string"` - // The instance type. Note that T2 and HS1 instance types are not supported. + // The instance type. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` // The ID of the kernel. @@ -56633,10 +62862,10 @@ type SpotFleetLaunchSpecification struct { // you can specify the names or the IDs of the security groups. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` - // The bid price per unit hour for the specified instance type. If this value - // is not specified, the default is the Spot bid price specified for the fleet. - // To determine the bid price per unit hour, divide the Spot bid price by the - // value of WeightedCapacity. + // The maximum price per unit hour that you are willing to pay for a Spot Instance. + // If this value is not specified, the default is the Spot price specified for + // the fleet. To determine the Spot price per unit hour, divide the Spot price + // by the value of WeightedCapacity. SpotPrice *string `locationName:"spotPrice" type:"string"` // The ID of the subnet in which to launch the instances. To specify multiple @@ -56826,16 +63055,16 @@ func (s *SpotFleetMonitoring) SetEnabled(v bool) *SpotFleetMonitoring { return s } -// Describes a Spot fleet request. +// Describes a Spot Fleet request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetRequestConfig type SpotFleetRequestConfig struct { _ struct{} `type:"structure"` - // The progress of the Spot fleet request. If there is an error, the status - // is error. After all bids are placed, the status is pending_fulfillment. If - // the size of the fleet is equal to or greater than its target capacity, the - // status is fulfilled. If the size of the fleet is decreased, the status is - // pending_termination while Spot instances are terminating. + // The progress of the Spot Fleet request. If there is an error, the status + // is error. After all requests are placed, the status is pending_fulfillment. + // If the size of the fleet is equal to or greater than its target capacity, + // the status is fulfilled. If the size of the fleet is decreased, the status + // is pending_termination while Spot Instances are terminating. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"ActivityStatus"` // The creation date and time of the request. @@ -56843,17 +63072,17 @@ type SpotFleetRequestConfig struct { // CreateTime is a required field CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601" required:"true"` - // Information about the configuration of the Spot fleet request. + // The configuration of the Spot Fleet request. // // SpotFleetRequestConfig is a required field SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"` - // The ID of the Spot fleet request. + // The ID of the Spot Fleet request. // // SpotFleetRequestId is a required field SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` - // The state of the Spot fleet request. + // The state of the Spot Fleet request. // // SpotFleetRequestState is a required field SpotFleetRequestState *string `locationName:"spotFleetRequestState" type:"string" required:"true" enum:"BatchState"` @@ -56899,13 +63128,13 @@ func (s *SpotFleetRequestConfig) SetSpotFleetRequestState(v string) *SpotFleetRe return s } -// Describes the configuration of a Spot fleet request. +// Describes the configuration of a Spot Fleet request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetRequestConfigData type SpotFleetRequestConfigData struct { _ struct{} `type:"structure"` // Indicates how to allocate the target capacity across the Spot pools specified - // by the Spot fleet request. The default is lowestPrice. + // by the Spot Fleet request. The default is lowestPrice. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"` // A unique, case-sensitive identifier you provide to ensure idempotency of @@ -56913,66 +63142,68 @@ type SpotFleetRequestConfigData struct { // see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string `locationName:"clientToken" type:"string"` - // Indicates whether running Spot instances should be terminated if the target - // capacity of the Spot fleet request is decreased below the current size of - // the Spot fleet. + // Indicates whether running Spot Instances should be terminated if the target + // capacity of the Spot Fleet request is decreased below the current size of + // the Spot Fleet. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"` // The number of units fulfilled by this request compared to the set target // capacity. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"` - // Grants the Spot fleet permission to terminate Spot instances on your behalf - // when you cancel its Spot fleet request using CancelSpotFleetRequests or when - // the Spot fleet request expires, if you set terminateInstancesWithExpiration. + // Grants the Spot Fleet permission to terminate Spot Instances on your behalf + // when you cancel its Spot Fleet request using CancelSpotFleetRequests or when + // the Spot Fleet request expires, if you set terminateInstancesWithExpiration. // // IamFleetRole is a required field IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"` - // Indicates whether a Spot instance stops or terminates when it is interrupted. + // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"` - // Information about the launch specifications for the Spot fleet request. - // - // LaunchSpecifications is a required field - LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" min:"1" type:"list" required:"true"` + // The launch specifications for the Spot Fleet request. + LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" type:"list"` + + // The launch template and overrides. + LaunchTemplateConfigs []*LaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"` // One or more Classic Load Balancers and target groups to attach to the Spot - // fleet request. Spot fleet registers the running Spot instances with the specified + // Fleet request. Spot Fleet registers the running Spot Instances with the specified // Classic Load Balancers and target groups. // - // With Network Load Balancers, Spot fleet cannot register instances that have + // With Network Load Balancers, Spot Fleet cannot register instances that have // the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, // HS1, M1, M2, M3, and T1. LoadBalancersConfig *LoadBalancersConfig `locationName:"loadBalancersConfig" type:"structure"` - // Indicates whether Spot fleet should replace unhealthy instances. + // Indicates whether Spot Fleet should replace unhealthy instances. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"` - // The bid price per unit hour. - // - // SpotPrice is a required field - SpotPrice *string `locationName:"spotPrice" type:"string" required:"true"` + // The maximum price per unit hour that you are willing to pay for a Spot Instance. + // The default is the On-Demand price. + SpotPrice *string `locationName:"spotPrice" type:"string"` // The number of units to request. You can choose to set the target capacity // in terms of instances or a performance characteristic that is important to - // your application workload, such as vCPUs, memory, or I/O. + // your application workload, such as vCPUs, memory, or I/O. If the request + // type is maintain, you can specify a target capacity of 0 and add capacity + // later. // // TargetCapacity is a required field TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"` - // Indicates whether running Spot instances should be terminated when the Spot - // fleet request expires. + // Indicates whether running Spot Instances should be terminated when the Spot + // Fleet request expires. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"` // The type of request. Indicates whether the fleet will only request the target // capacity or also attempt to maintain it. When you request a certain target - // capacity, the fleet will only place the required bids. It will not attempt - // to replenish Spot instances if capacity is diminished, nor will it submit - // bids in alternative Spot pools if capacity is not available. When you want - // to maintain a certain target capacity, fleet will place the required bids - // to meet this target capacity. It will also automatically replenish any interrupted - // instances. Default: maintain. + // capacity, the fleet will only place the required requests. It will not attempt + // to replenish Spot Instances if capacity is diminished, nor will it submit + // requests in alternative Spot pools if capacity is not available. When you + // want to maintain a certain target capacity, fleet will place the required + // requests to meet this target capacity. It will also automatically replenish + // any interrupted instances. Default: maintain. Type *string `locationName:"type" type:"string" enum:"FleetType"` // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). @@ -56980,8 +63211,8 @@ type SpotFleetRequestConfigData struct { ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"` // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). - // At this point, no new Spot instance requests are placed or enabled to fulfill - // the request. + // At this point, no new Spot Instance requests are placed or able to fulfill + // the request. The default end date is 7 days from the current date. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"` } @@ -57001,15 +63232,6 @@ func (s *SpotFleetRequestConfigData) Validate() error { if s.IamFleetRole == nil { invalidParams.Add(request.NewErrParamRequired("IamFleetRole")) } - if s.LaunchSpecifications == nil { - invalidParams.Add(request.NewErrParamRequired("LaunchSpecifications")) - } - if s.LaunchSpecifications != nil && len(s.LaunchSpecifications) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LaunchSpecifications", 1)) - } - if s.SpotPrice == nil { - invalidParams.Add(request.NewErrParamRequired("SpotPrice")) - } if s.TargetCapacity == nil { invalidParams.Add(request.NewErrParamRequired("TargetCapacity")) } @@ -57023,6 +63245,16 @@ func (s *SpotFleetRequestConfigData) Validate() error { } } } + if s.LaunchTemplateConfigs != nil { + for i, v := range s.LaunchTemplateConfigs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchTemplateConfigs", i), err.(request.ErrInvalidParams)) + } + } + } if s.LoadBalancersConfig != nil { if err := s.LoadBalancersConfig.Validate(); err != nil { invalidParams.AddNested("LoadBalancersConfig", err.(request.ErrInvalidParams)) @@ -57077,6 +63309,12 @@ func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunc return s } +// SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value. +func (s *SpotFleetRequestConfigData) SetLaunchTemplateConfigs(v []*LaunchTemplateConfig) *SpotFleetRequestConfigData { + s.LaunchTemplateConfigs = v + return s +} + // SetLoadBalancersConfig sets the LoadBalancersConfig field's value. func (s *SpotFleetRequestConfigData) SetLoadBalancersConfig(v *LoadBalancersConfig) *SpotFleetRequestConfigData { s.LoadBalancersConfig = v @@ -57125,7 +63363,7 @@ func (s *SpotFleetRequestConfigData) SetValidUntil(v time.Time) *SpotFleetReques return s } -// The tags for a Spot fleet resource. +// The tags for a Spot Fleet resource. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetTagSpecification type SpotFleetTagSpecification struct { _ struct{} `type:"structure"` @@ -57160,70 +63398,69 @@ func (s *SpotFleetTagSpecification) SetTags(v []*Tag) *SpotFleetTagSpecification return s } -// Describes a Spot instance request. +// Describes a Spot Instance request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceRequest type SpotInstanceRequest struct { _ struct{} `type:"structure"` - // If you specified a duration and your Spot instance request was fulfilled, - // this is the fixed hourly price in effect for the Spot instance while it runs. + // If you specified a duration and your Spot Instance request was fulfilled, + // this is the fixed hourly price in effect for the Spot Instance while it runs. ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"` // The Availability Zone group. If you specify the same Availability Zone group - // for all Spot instance requests, all Spot instances are launched in the same + // for all Spot Instance requests, all Spot Instances are launched in the same // Availability Zone. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"` - // The duration for the Spot instance, in minutes. + // The duration for the Spot Instance, in minutes. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"` - // The date and time when the Spot instance request was created, in UTC format + // The date and time when the Spot Instance request was created, in UTC format // (for example, YYYY-MM-DDTHH:MM:SSZ). CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"` - // The fault codes for the Spot instance request, if any. + // The fault codes for the Spot Instance request, if any. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"` - // The instance ID, if an instance has been launched to fulfill the Spot instance + // The instance ID, if an instance has been launched to fulfill the Spot Instance // request. InstanceId *string `locationName:"instanceId" type:"string"` - // Indicates whether a Spot instance stops or terminates when it is interrupted. + // The behavior when a Spot Instance is interrupted. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"` - // The instance launch group. Launch groups are Spot instances that launch together + // The instance launch group. Launch groups are Spot Instances that launch together // and terminate together. LaunchGroup *string `locationName:"launchGroup" type:"string"` // Additional information for launching instances. LaunchSpecification *LaunchSpecification `locationName:"launchSpecification" type:"structure"` - // The Availability Zone in which the bid is launched. + // The Availability Zone in which the request is launched. LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"` - // The product description associated with the Spot instance. + // The product description associated with the Spot Instance. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"` - // The ID of the Spot instance request. + // The ID of the Spot Instance request. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"` - // The maximum hourly price (bid) for the Spot instance launched to fulfill - // the request. + // The maximum price per hour that you are willing to pay for a Spot Instance. SpotPrice *string `locationName:"spotPrice" type:"string"` - // The state of the Spot instance request. Spot bid status information can help - // you track your Spot instance requests. For more information, see Spot Bid - // Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) + // The state of the Spot Instance request. Spot status information can help + // you track your Spot Instance requests. For more information, see Spot Status + // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) // in the Amazon Elastic Compute Cloud User Guide. State *string `locationName:"state" type:"string" enum:"SpotInstanceState"` - // The status code and status message describing the Spot instance request. + // The status code and status message describing the Spot Instance request. Status *SpotInstanceStatus `locationName:"status" type:"structure"` // Any tags assigned to the resource. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` - // The Spot instance request type. + // The Spot Instance request type. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"` // The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). @@ -57233,7 +63470,8 @@ type SpotInstanceRequest struct { // The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). // If this is a one-time request, it remains active until all instances launch, // the request is canceled, or this date is reached. If the request is persistent, - // it remains active until it is canceled or this date is reached. + // it remains active until it is canceled or this date is reached. The default + // end date is 7 days from the current date. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"` } @@ -57361,15 +63599,15 @@ func (s *SpotInstanceRequest) SetValidUntil(v time.Time) *SpotInstanceRequest { return s } -// Describes a Spot instance state change. +// Describes a Spot Instance state change. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceStateFault type SpotInstanceStateFault struct { _ struct{} `type:"structure"` - // The reason code for the Spot instance state change. + // The reason code for the Spot Instance state change. Code *string `locationName:"code" type:"string"` - // The message for the Spot instance state change. + // The message for the Spot Instance state change. Message *string `locationName:"message" type:"string"` } @@ -57395,12 +63633,12 @@ func (s *SpotInstanceStateFault) SetMessage(v string) *SpotInstanceStateFault { return s } -// Describes the status of a Spot instance request. +// Describes the status of a Spot Instance request. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceStatus type SpotInstanceStatus struct { _ struct{} `type:"structure"` - // The status code. For a list of status codes, see Spot Bid Status Codes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html#spot-instance-bid-status-understand) + // The status code. For a list of status codes, see Spot Status Codes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html#spot-instance-bid-status-understand) // in the Amazon Elastic Compute Cloud User Guide. Code *string `locationName:"code" type:"string"` @@ -57440,14 +63678,82 @@ func (s *SpotInstanceStatus) SetUpdateTime(v time.Time) *SpotInstanceStatus { return s } -// Describes Spot instance placement. +// The options for Spot Instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotMarketOptions +type SpotMarketOptions struct { + _ struct{} `type:"structure"` + + // The required duration for the Spot Instances (also known as Spot blocks), + // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, + // or 360). + BlockDurationMinutes *int64 `type:"integer"` + + // The behavior when a Spot Instance is interrupted. The default is terminate. + InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"` + + // The maximum hourly price you're willing to pay for the Spot Instances. The + // default is the On-Demand price. + MaxPrice *string `type:"string"` + + // The Spot Instance request type. + SpotInstanceType *string `type:"string" enum:"SpotInstanceType"` + + // The end date of the request. For a one-time request, the request remains + // active until all instances launch, the request is canceled, or this date + // is reached. If the request is persistent, it remains active until it is canceled + // or this date and time is reached. The default end date is 7 days from the + // current date. + ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation +func (s SpotMarketOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SpotMarketOptions) GoString() string { + return s.String() +} + +// SetBlockDurationMinutes sets the BlockDurationMinutes field's value. +func (s *SpotMarketOptions) SetBlockDurationMinutes(v int64) *SpotMarketOptions { + s.BlockDurationMinutes = &v + return s +} + +// SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value. +func (s *SpotMarketOptions) SetInstanceInterruptionBehavior(v string) *SpotMarketOptions { + s.InstanceInterruptionBehavior = &v + return s +} + +// SetMaxPrice sets the MaxPrice field's value. +func (s *SpotMarketOptions) SetMaxPrice(v string) *SpotMarketOptions { + s.MaxPrice = &v + return s +} + +// SetSpotInstanceType sets the SpotInstanceType field's value. +func (s *SpotMarketOptions) SetSpotInstanceType(v string) *SpotMarketOptions { + s.SpotInstanceType = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *SpotMarketOptions) SetValidUntil(v time.Time) *SpotMarketOptions { + s.ValidUntil = &v + return s +} + +// Describes Spot Instance placement. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPlacement type SpotPlacement struct { _ struct{} `type:"structure"` // The Availability Zone. // - // [Spot fleet only] To specify multiple Availability Zones, separate them using + // [Spot Fleet only] To specify multiple Availability Zones, separate them using // commas; for example, "us-west-2a, us-west-2b". AvailabilityZone *string `locationName:"availabilityZone" type:"string"` @@ -57456,7 +63762,7 @@ type SpotPlacement struct { // The tenancy of the instance (if the instance is running in a VPC). An instance // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy - // is not supported for Spot instances. + // is not supported for Spot Instances. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"` } @@ -57488,8 +63794,8 @@ func (s *SpotPlacement) SetTenancy(v string) *SpotPlacement { return s } -// Describes the maximum hourly price (bid) for any Spot instance launched to -// fulfill the request. +// Describes the maximum price per hour that you are willing to pay for a Spot +// Instance. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPrice type SpotPrice struct { _ struct{} `type:"structure"` @@ -57497,13 +63803,13 @@ type SpotPrice struct { // The Availability Zone. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - // The instance type. Note that T2 and HS1 instance types are not supported. + // The instance type. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` // A general description of the AMI. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"` - // The maximum price (bid) that you are willing to pay for a Spot instance. + // The maximum price per hour that you are willing to pay for a Spot Instance. SpotPrice *string `locationName:"spotPrice" type:"string"` // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). @@ -57802,7 +64108,7 @@ type StateReason struct { // * Server.ScheduledStop: The instance was stopped due to a scheduled retirement. // // * Server.SpotInstanceTermination: A Spot Instance was terminated due to - // an increase in the market price. + // an increase in the Spot price. // // * Client.InternalError: A client error caused the instance to terminate // on launch. @@ -58443,8 +64749,8 @@ func (s *TargetGroup) SetArn(v string) *TargetGroup { return s } -// Describes the target groups to attach to a Spot fleet. Spot fleet registers -// the running Spot instances with these target groups. +// Describes the target groups to attach to a Spot Fleet. Spot Fleet registers +// the running Spot Instances with these target groups. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetGroupsConfig type TargetGroupsConfig struct { _ struct{} `type:"structure"` @@ -60262,7 +66568,7 @@ type VpcEndpoint struct { // (Gateway endpoint) One or more route tables associated with the endpoint. RouteTableIds []*string `locationName:"routeTableIdSet" locationNameList:"item" type:"list"` - // The name of the AWS service to which the endpoint is associated. + // The name of the service to which the endpoint is associated. ServiceName *string `locationName:"serviceName" type:"string"` // The state of the VPC endpoint. @@ -60369,6 +66675,67 @@ func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint { return s } +// Describes a VPC endpoint connection to a service. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcEndpointConnection +type VpcEndpointConnection struct { + _ struct{} `type:"structure"` + + // The date and time the VPC endpoint was created. + CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"` + + // The ID of the service to which the endpoint is connected. + ServiceId *string `locationName:"serviceId" type:"string"` + + // The ID of the VPC endpoint. + VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"` + + // The AWS account ID of the owner of the VPC endpoint. + VpcEndpointOwner *string `locationName:"vpcEndpointOwner" type:"string"` + + // The state of the VPC endpoint. + VpcEndpointState *string `locationName:"vpcEndpointState" type:"string" enum:"State"` +} + +// String returns the string representation +func (s VpcEndpointConnection) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VpcEndpointConnection) GoString() string { + return s.String() +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *VpcEndpointConnection) SetCreationTimestamp(v time.Time) *VpcEndpointConnection { + s.CreationTimestamp = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *VpcEndpointConnection) SetServiceId(v string) *VpcEndpointConnection { + s.ServiceId = &v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *VpcEndpointConnection) SetVpcEndpointId(v string) *VpcEndpointConnection { + s.VpcEndpointId = &v + return s +} + +// SetVpcEndpointOwner sets the VpcEndpointOwner field's value. +func (s *VpcEndpointConnection) SetVpcEndpointOwner(v string) *VpcEndpointConnection { + s.VpcEndpointOwner = &v + return s +} + +// SetVpcEndpointState sets the VpcEndpointState field's value. +func (s *VpcEndpointConnection) SetVpcEndpointState(v string) *VpcEndpointConnection { + s.VpcEndpointState = &v + return s +} + // Describes an IPv6 CIDR block associated with a VPC. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcIpv6CidrBlockAssociation type VpcIpv6CidrBlockAssociation struct { @@ -61176,6 +67543,19 @@ const ( CancelSpotInstanceRequestStateCompleted = "completed" ) +const ( + // ConnectionNotificationStateEnabled is a ConnectionNotificationState enum value + ConnectionNotificationStateEnabled = "Enabled" + + // ConnectionNotificationStateDisabled is a ConnectionNotificationState enum value + ConnectionNotificationStateDisabled = "Disabled" +) + +const ( + // ConnectionNotificationTypeTopic is a ConnectionNotificationType enum value + ConnectionNotificationTypeTopic = "Topic" +) + const ( // ContainerFormatOva is a ContainerFormat enum value ContainerFormatOva = "ova" @@ -61501,6 +67881,9 @@ const ( ) const ( + // InstanceInterruptionBehaviorHibernate is a InstanceInterruptionBehavior enum value + InstanceInterruptionBehaviorHibernate = "hibernate" + // InstanceInterruptionBehaviorStop is a InstanceInterruptionBehavior enum value InstanceInterruptionBehaviorStop = "stop" @@ -61831,6 +68214,26 @@ const ( InterfacePermissionTypeEipAssociate = "EIP-ASSOCIATE" ) +const ( + // LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist is a LaunchTemplateErrorCode enum value + LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist = "launchTemplateIdDoesNotExist" + + // LaunchTemplateErrorCodeLaunchTemplateIdMalformed is a LaunchTemplateErrorCode enum value + LaunchTemplateErrorCodeLaunchTemplateIdMalformed = "launchTemplateIdMalformed" + + // LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist is a LaunchTemplateErrorCode enum value + LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist = "launchTemplateNameDoesNotExist" + + // LaunchTemplateErrorCodeLaunchTemplateNameMalformed is a LaunchTemplateErrorCode enum value + LaunchTemplateErrorCodeLaunchTemplateNameMalformed = "launchTemplateNameMalformed" + + // LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist is a LaunchTemplateErrorCode enum value + LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist = "launchTemplateVersionDoesNotExist" + + // LaunchTemplateErrorCodeUnexpectedError is a LaunchTemplateErrorCode enum value + LaunchTemplateErrorCodeUnexpectedError = "unexpectedError" +) + const ( // ListingStateAvailable is a ListingState enum value ListingStateAvailable = "available" @@ -61859,6 +68262,11 @@ const ( ListingStatusClosed = "closed" ) +const ( + // MarketTypeSpot is a MarketType enum value + MarketTypeSpot = "spot" +) + const ( // MonitoringStateDisabled is a MonitoringState enum value MonitoringStateDisabled = "disabled" @@ -62024,6 +68432,26 @@ const ( PlatformValuesWindows = "Windows" ) +const ( + // PrincipalTypeAll is a PrincipalType enum value + PrincipalTypeAll = "All" + + // PrincipalTypeService is a PrincipalType enum value + PrincipalTypeService = "Service" + + // PrincipalTypeOrganizationUnit is a PrincipalType enum value + PrincipalTypeOrganizationUnit = "OrganizationUnit" + + // PrincipalTypeAccount is a PrincipalType enum value + PrincipalTypeAccount = "Account" + + // PrincipalTypeUser is a PrincipalType enum value + PrincipalTypeUser = "User" + + // PrincipalTypeRole is a PrincipalType enum value + PrincipalTypeRole = "Role" +) + const ( // ProductCodeValuesDevpay is a ProductCodeValues enum value ProductCodeValuesDevpay = "devpay" @@ -62206,6 +68634,23 @@ const ( RuleActionDeny = "deny" ) +const ( + // ServiceStatePending is a ServiceState enum value + ServiceStatePending = "Pending" + + // ServiceStateAvailable is a ServiceState enum value + ServiceStateAvailable = "Available" + + // ServiceStateDeleting is a ServiceState enum value + ServiceStateDeleting = "Deleting" + + // ServiceStateDeleted is a ServiceState enum value + ServiceStateDeleted = "Deleted" + + // ServiceStateFailed is a ServiceState enum value + ServiceStateFailed = "Failed" +) + const ( // ServiceTypeInterface is a ServiceType enum value ServiceTypeInterface = "Interface" @@ -62417,6 +68862,9 @@ const ( // VolumeAttachmentStateDetached is a VolumeAttachmentState enum value VolumeAttachmentStateDetached = "detached" + + // VolumeAttachmentStateBusy is a VolumeAttachmentState enum value + VolumeAttachmentStateBusy = "busy" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go index 9c4bc147a2e..538707938ad 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go @@ -96,7 +96,8 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodePolicyLengthExceededException "PolicyLengthExceededException" // Lambda function access policy is limited to 20 KB. @@ -198,7 +199,8 @@ func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Reque // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -310,7 +312,8 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. @@ -414,7 +417,8 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) @@ -517,7 +521,8 @@ func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Reque // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -613,7 +618,8 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -721,7 +727,8 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. @@ -905,7 +912,8 @@ func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, ou // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -1000,7 +1008,8 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -1106,7 +1115,8 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) { @@ -1210,7 +1220,8 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error) { @@ -1309,7 +1320,8 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { @@ -1422,7 +1434,8 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeEC2UnexpectedException "EC2UnexpectedException" // AWS Lambda received an unexpected EC2 client exception while setting up for @@ -1663,7 +1676,8 @@ func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Reque // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -1773,7 +1787,8 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -1927,7 +1942,8 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { @@ -2068,7 +2084,8 @@ func (c *Lambda) ListTagsRequest(input *ListTagsInput) (req *request.Request, ou // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2161,7 +2178,8 @@ func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInpu // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2257,7 +2275,8 @@ func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2366,7 +2385,8 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2462,7 +2482,8 @@ func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Reque // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2557,7 +2578,8 @@ func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) (req *request.R // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2653,7 +2675,8 @@ func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Reque // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2761,7 +2784,8 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2864,7 +2888,8 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -2969,7 +2994,8 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such -// as Node v0.10.42. +// as Node v0.10.42 or if you point to an additional version when the version +// specified is $LATEST. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // @@ -3016,7 +3042,7 @@ type AccountLimit struct { // Number of simultaneous executions of your function per region. For more information // or to request a limit increase for concurrent executions, see Lambda Function // Concurrent Executions (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). - // The default limit is 100. + // The default limit is 1000. ConcurrentExecutions *int64 `type:"integer"` // Maximum size, in bytes, of a code package you can upload per region. The @@ -3308,6 +3334,11 @@ type AliasConfiguration struct { // Alias name. Name *string `min:"1" type:"string"` + + // Specifies an additional function versions the alias points to, allowing you + // to dictate what percentage of traffic will invoke each version. For more + // information, see lambda-traffic-shifting-using-aliases. + RoutingConfig *AliasRoutingConfiguration `type:"structure"` } // String returns the string representation @@ -3344,6 +3375,40 @@ func (s *AliasConfiguration) SetName(v string) *AliasConfiguration { return s } +// SetRoutingConfig sets the RoutingConfig field's value. +func (s *AliasConfiguration) SetRoutingConfig(v *AliasRoutingConfiguration) *AliasConfiguration { + s.RoutingConfig = v + return s +} + +// The parent object that implements what percentage of traffic will invoke +// each function version. For more information, see lambda-traffic-shifting-using-aliases. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasRoutingConfiguration +type AliasRoutingConfiguration struct { + _ struct{} `type:"structure"` + + // Set this property value to dictate what percentage of traffic will invoke + // the updated function version. If set to an empty string, 100 percent of traffic + // will invoke function-version. + AdditionalVersionWeights map[string]*float64 `type:"map"` +} + +// String returns the string representation +func (s AliasRoutingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AliasRoutingConfiguration) GoString() string { + return s.String() +} + +// SetAdditionalVersionWeights sets the AdditionalVersionWeights field's value. +func (s *AliasRoutingConfiguration) SetAdditionalVersionWeights(v map[string]*float64) *AliasRoutingConfiguration { + s.AdditionalVersionWeights = v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAliasRequest type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -3367,6 +3432,11 @@ type CreateAliasInput struct { // // Name is a required field Name *string `min:"1" type:"string" required:"true"` + + // Specifies an additional version your alias can point to, allowing you to + // dictate what percentage of traffic will invoke each version. For more information, + // see lambda-traffic-shifting-using-aliases. + RoutingConfig *AliasRoutingConfiguration `type:"structure"` } // String returns the string representation @@ -3431,6 +3501,12 @@ func (s *CreateAliasInput) SetName(v string) *CreateAliasInput { return s } +// SetRoutingConfig sets the RoutingConfig field's value. +func (s *CreateAliasInput) SetRoutingConfig(v *AliasRoutingConfiguration) *CreateAliasInput { + s.RoutingConfig = v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest type CreateEventSourceMappingInput struct { _ struct{} `type:"structure"` @@ -4758,7 +4834,7 @@ type GetFunctionInput struct { // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - // Using this optional parameter to specify a function version or an alias name. + // Use this optional parameter to specify a function version or an alias name. // If you specify function version, the API uses qualified function ARN for // the request and returns information about the specific Lambda function version. // If you specify an alias name, the API uses the alias ARN and returns information @@ -5037,7 +5113,8 @@ type InvokeInput struct { // of a ClientContext JSON, see PutEvents (http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html) // in the Amazon Mobile Analytics API Reference and User Guide. // - // The ClientContext JSON must be base64-encoded. + // The ClientContext JSON must be base64-encoded and has a maximum size of 3583 + // bytes. ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" type:"string"` // The Lambda function name. @@ -5150,6 +5227,10 @@ func (s *InvokeInput) SetQualifier(v string) *InvokeInput { type InvokeOutput struct { _ struct{} `type:"structure" payload:"Payload"` + // The function version that has been executed. This value is returned only + // if the invocation type is RequestResponse. + ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"` + // Indicates whether an error occurred while executing the Lambda function. // If an error occurred this field will have one of two values; Handled or Unhandled. // Handled errors are errors that are reported by the function while the Unhandled @@ -5188,6 +5269,12 @@ func (s InvokeOutput) GoString() string { return s.String() } +// SetExecutedVersion sets the ExecutedVersion field's value. +func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput { + s.ExecutedVersion = &v + return s +} + // SetFunctionError sets the FunctionError field's value. func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput { s.FunctionError = &v @@ -5449,7 +5536,7 @@ type ListFunctionsInput struct { // // Valid value: // - // ALL _ Will return all versions, including $LATEST which will have fully qualified + // ALL: Will return all versions, including $LATEST which will have fully qualified // ARNs (Amazon Resource Names). FunctionVersion *string `location:"querystring" locationName:"FunctionVersion" type:"string" enum:"FunctionVersion"` @@ -5465,7 +5552,7 @@ type ListFunctionsInput struct { // The region from which the functions are replicated. For example, if you specify // us-east-1, only functions replicated from that region will be returned. // - // ALL _ Will return all functions from any region. If specified, you also must + // ALL: Will return all functions from any region. If specified, you also must // specify a valid FunctionVersion parameter. MasterRegion *string `location:"querystring" locationName:"MasterRegion" type:"string"` @@ -5726,9 +5813,10 @@ type PublishVersionInput struct { _ struct{} `type:"structure"` // The SHA256 hash of the deployment package you want to publish. This provides - // validation on the code you are publishing. If you provide this parameter - // value must match the SHA256 of the $LATEST version for the publication to - // succeed. + // validation on the code you are publishing. If you provide this parameter, + // the value must match the SHA256 of the $LATEST version for the publication + // to succeed. You can use the DryRun parameter of UpdateFunctionCode to verify + // the hash value that will be returned before publishing your new version. CodeSha256 *string `type:"string"` // The description for the version you are publishing. If not provided, AWS @@ -6097,6 +6185,11 @@ type UpdateAliasInput struct { // // Name is a required field Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` + + // Specifies an additional version your alias can point to, allowing you to + // dictate what percentage of traffic will invoke each version. For more information, + // see lambda-traffic-shifting-using-aliases. + RoutingConfig *AliasRoutingConfiguration `type:"structure"` } // String returns the string representation @@ -6158,6 +6251,12 @@ func (s *UpdateAliasInput) SetName(v string) *UpdateAliasInput { return s } +// SetRoutingConfig sets the RoutingConfig field's value. +func (s *UpdateAliasInput) SetRoutingConfig(v *AliasRoutingConfiguration) *UpdateAliasInput { + s.RoutingConfig = v + return s +} + // Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest type UpdateEventSourceMappingInput struct { _ struct{} `type:"structure"` @@ -6254,8 +6353,8 @@ type UpdateFunctionCodeInput struct { // update the Lambda function and publish a version as an atomic operation. // It will do all necessary computation and validation of your code but will // not upload it or a publish a version. Each time this operation is invoked, - // the CodeSha256 hash value the provided code will also be computed and returned - // in the response. + // the CodeSha256 hash value of the provided code will also be computed and + // returned in the response. DryRun *bool `type:"boolean"` // The existing Lambda function name whose code you want to replace. diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go index dd2c9df2304..9b6d1088152 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go @@ -43,7 +43,8 @@ const ( // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. You // will also get this exception if you have selected a deprecated runtime, such - // as Node v0.10.42. + // as Node v0.10.42 or if you point to an additional version when the version + // specified is $LATEST. ErrCodeInvalidParameterValueException = "InvalidParameterValueException" // ErrCodeInvalidRequestContentException for service response error code diff --git a/vendor/vendor.json b/vendor/vendor.json index 4a386c2da8f..1d1af68b070 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -141,748 +141,748 @@ "revisionTime": "2017-07-27T15:54:43Z" }, { - "checksumSHA1": "eRUmyUWvOPK7gRZCc3g3TqwBnr8=", + "checksumSHA1": "h/m5SH4paAbQZ/2fttRwEVt/JzE=", "path": "github.com/aws/aws-sdk-go/aws", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "DtuTqKH29YnLjrIJkRYX0HQtXY0=", "path": "github.com/aws/aws-sdk-go/aws/arn", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "Y9W+4GimK4Fuxq+vyIskVYFRnX4=", "path": "github.com/aws/aws-sdk-go/aws/awserr", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "yyYr41HZ1Aq0hWc3J5ijXwYEcac=", "path": "github.com/aws/aws-sdk-go/aws/awsutil", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "9nE/FjZ4pYrT883KtV2/aI+Gayo=", "path": "github.com/aws/aws-sdk-go/aws/client", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "ieAJ+Cvp/PKv1LpUEnUXpc3OI6E=", "path": "github.com/aws/aws-sdk-go/aws/client/metadata", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "7/8j/q0TWtOgXyvEcv4B2Dhl00o=", "path": "github.com/aws/aws-sdk-go/aws/corehandlers", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "Y+cPwQL0dZMyqp3wI+KJWmA9KQ8=", "path": "github.com/aws/aws-sdk-go/aws/credentials", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "u3GOAJLmdvbuNUeUEcZSEAOeL/0=", "path": "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "NUJUTWlc1sV8b7WjfiYc4JZbXl0=", "path": "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "JEYqmF83O5n5bHkupAzA6STm0no=", "path": "github.com/aws/aws-sdk-go/aws/credentials/stscreds", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "ZdtYh3ZHSgP/WEIaqwJHTEhpkbs=", "path": "github.com/aws/aws-sdk-go/aws/defaults", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "/EXbk/z2TWjWc1Hvb4QYs3Wmhb8=", "path": "github.com/aws/aws-sdk-go/aws/ec2metadata", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { - "checksumSHA1": "3Zvhi9PXEQXGz8e7FE2RcxBXZ0s=", + "checksumSHA1": "2Rcu4ZCsQkoBFN0NpveADCcES8Q=", "path": "github.com/aws/aws-sdk-go/aws/endpoints", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "9GvAyILJ7g+VUg8Ef5DsT5GuYsg=", "path": "github.com/aws/aws-sdk-go/aws/request", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "HcGL4e6Uep4/80eCUI5xkcWjpQ0=", "path": "github.com/aws/aws-sdk-go/aws/session", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "iU00ZjhAml/13g+1YXT21IqoXqg=", "path": "github.com/aws/aws-sdk-go/aws/signer/v4", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "04ypv4x12l4q0TksA1zEVsmgpvw=", "path": "github.com/aws/aws-sdk-go/internal/shareddefaults", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "NStHCXEvYqG72GknZyv1jaKaeH0=", "path": "github.com/aws/aws-sdk-go/private/protocol", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "1QmQ3FqV37w0Zi44qv8pA1GeR0A=", "path": "github.com/aws/aws-sdk-go/private/protocol/ec2query", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "yHfT5DTbeCLs4NE2Rgnqrhe15ls=", "path": "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "R00RL5jJXRYq1iiK1+PGvMfvXyM=", "path": "github.com/aws/aws-sdk-go/private/protocol/jsonrpc", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "ZqY5RWavBLWTo6j9xqdyBEaNFRk=", "path": "github.com/aws/aws-sdk-go/private/protocol/query", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "9V1PvtFQ9MObZTc3sa86WcuOtOU=", "path": "github.com/aws/aws-sdk-go/private/protocol/query/queryutil", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "pkeoOfZpHRvFG/AOZeTf0lwtsFg=", "path": "github.com/aws/aws-sdk-go/private/protocol/rest", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "Rpu8KBtHZgvhkwHxUfaky+qW+G4=", "path": "github.com/aws/aws-sdk-go/private/protocol/restjson", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "ODo+ko8D6unAxZuN1jGzMcN4QCc=", "path": "github.com/aws/aws-sdk-go/private/protocol/restxml", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "0qYPUga28aQVkxZgBR3Z86AbGUQ=", "path": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "F6mth+G7dXN1GI+nktaGo8Lx8aE=", "path": "github.com/aws/aws-sdk-go/private/signer/v2", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { - "checksumSHA1": "2O+F6NwIHEgAHqLGKTJbxYwsUHs=", + "checksumSHA1": "2CNaABTsz1Dl+cRpvKKhSS2Udgk=", "path": "github.com/aws/aws-sdk-go/service/acm", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { - "checksumSHA1": "iF8FO4xVatyPaAq5sF0jQ86kXpA=", + "checksumSHA1": "C4vMftQYHGigucKljPRM6m6iko4=", "path": "github.com/aws/aws-sdk-go/service/apigateway", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "s+mt8VBjyMOBCZbr4/uOhUGZdYY=", "path": "github.com/aws/aws-sdk-go/service/applicationautoscaling", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "1/p8oChMJW38gBTOA8AUCWkHuM8=", "path": "github.com/aws/aws-sdk-go/service/athena", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "ILLTTjBCwDHKcx6D/Ja5k4Nn5Ww=", "path": "github.com/aws/aws-sdk-go/service/autoscaling", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { - "checksumSHA1": "kR7Urxv5JUC6cx3bBQ3lX1/0cEM=", + "checksumSHA1": "DTKp8JsJ4NvsSoeLVp72lPPT2jc=", "path": "github.com/aws/aws-sdk-go/service/batch", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "86Gd/aNE5+OAAibFQg6YWh7YKU0=", "path": "github.com/aws/aws-sdk-go/service/budgets", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "NTUkkfytXTRTbjLiiZrHS0FO9A4=", "path": "github.com/aws/aws-sdk-go/service/cloudformation", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "vbSfNKXjDDYLLAYafrD37T5xBFk=", "path": "github.com/aws/aws-sdk-go/service/cloudfront", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "V5UO7ojp8/EuLhPIS4OOOurke3M=", "path": "github.com/aws/aws-sdk-go/service/cloudtrail", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "Rx8tIQPEmYZhy1zbRpDmMBmGfvg=", "path": "github.com/aws/aws-sdk-go/service/cloudwatch", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "UlNtqtd2PcKoWqqXmOj4kfu8hyc=", "path": "github.com/aws/aws-sdk-go/service/cloudwatchevents", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "7SPaq0IXgoe1Cqph7ws9vFYr3zg=", "path": "github.com/aws/aws-sdk-go/service/cloudwatchlogs", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "iOGHSGv16gPEKX+DHoOoXIeGm70=", "path": "github.com/aws/aws-sdk-go/service/codebuild", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "B8CSJW3k+VJ6neD1ddrSJJ/5TF8=", "path": "github.com/aws/aws-sdk-go/service/codecommit", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "8T1UkQcbxF08m5xJL16lsWLdT6k=", "path": "github.com/aws/aws-sdk-go/service/codedeploy", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "EEVCD+xa8rnlVXoFULjc9fWcVzY=", "path": "github.com/aws/aws-sdk-go/service/codepipeline", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "GHaVqY5f85olNwlO5J4f160D+mI=", "path": "github.com/aws/aws-sdk-go/service/cognitoidentity", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { - "checksumSHA1": "svRJtQKo7tvAZYpW7UCpxFlG8mQ=", + "checksumSHA1": "00Mr7fjKuKIzfjNkNA7b7psEseI=", "path": "github.com/aws/aws-sdk-go/service/cognitoidentityprovider", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "YONbbZXdr13qIiKYzqk4cptd2XE=", "path": "github.com/aws/aws-sdk-go/service/configservice", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "3EkRSF6NzJkEuZUvOt3TdpABXYc=", "path": "github.com/aws/aws-sdk-go/service/databasemigrationservice", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "TSYWqKDCe6RaR2kYrExoDIC+7LU=", "path": "github.com/aws/aws-sdk-go/service/devicefarm", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "2139YRKSqXN9N49CFTopzwftCDw=", "path": "github.com/aws/aws-sdk-go/service/directconnect", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "0T4esELn9yJKr3D7b1/apnu1ZOA=", "path": "github.com/aws/aws-sdk-go/service/directoryservice", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "kEGGjvoqrbTSX3Kno7GJrV7UflY=", "path": "github.com/aws/aws-sdk-go/service/dynamodb", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { - "checksumSHA1": "hGhUGbG0E3RrhhJpfKq6bKUebz4=", + "checksumSHA1": "+0rHsZmOR2E3suixKJGHRGAmWqg=", "path": "github.com/aws/aws-sdk-go/service/ec2", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "tvxhxL5w10Qau4eUabsLK4L60iA=", "path": "github.com/aws/aws-sdk-go/service/ecr", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "vIOUiTgp58sppu4baTu5VxXKs/s=", "path": "github.com/aws/aws-sdk-go/service/ecs", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "9I1RdgcMUEYJlyNIqdtSgFTdWKM=", "path": "github.com/aws/aws-sdk-go/service/efs", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "jmTYmZVr8dw9kPDYlBhe4oG556U=", "path": "github.com/aws/aws-sdk-go/service/elasticache", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "xylCApLVAqLTW6uTYCziTDxgRMI=", "path": "github.com/aws/aws-sdk-go/service/elasticbeanstalk", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "RmVY7K2zivKjDe0ad8Grd+81J/M=", "path": "github.com/aws/aws-sdk-go/service/elasticsearchservice", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "SZ7yLDZ6RvMhpWe0Goyem64kgyA=", "path": "github.com/aws/aws-sdk-go/service/elastictranscoder", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "i+zp7see74G8qx251yfQiTvbz4U=", "path": "github.com/aws/aws-sdk-go/service/elb", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "i9eKrHV2n3LuYoMVnMpNjF34ih8=", "path": "github.com/aws/aws-sdk-go/service/elbv2", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "LJrVm902tsUu83HoxW5+twvlMSA=", "path": "github.com/aws/aws-sdk-go/service/emr", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "cEKm/PVdmVyoRD1wu9jDHIh52G4=", "path": "github.com/aws/aws-sdk-go/service/firehose", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "+gED8OQZsY/taXgjkGbBJlx1hnY=", "path": "github.com/aws/aws-sdk-go/service/glacier", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "GEw6g6/GwkskwL5bGj/KYJ8BENY=", "path": "github.com/aws/aws-sdk-go/service/glue", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "HBlNyNP2zLI589MIX82zMvANmLY=", "path": "github.com/aws/aws-sdk-go/service/iam", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "WoIsJOP3M2BAhZ5p46LJNd9FQPk=", "path": "github.com/aws/aws-sdk-go/service/inspector", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "jWoHNr5dOtwUmlC5bi5kRcW30wE=", "path": "github.com/aws/aws-sdk-go/service/iot", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "yrji9KybkQLQBcP0ti5X6FrEXoc=", "path": "github.com/aws/aws-sdk-go/service/kinesis", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "CqvUs/OKC5GYojf8InoQpTWUI30=", "path": "github.com/aws/aws-sdk-go/service/kms", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { - "checksumSHA1": "UNmVsLSjqCWcNd30lHo3T/qOHOY=", + "checksumSHA1": "bOgniixFKS4I8P0jg6GKOK34iB0=", "path": "github.com/aws/aws-sdk-go/service/lambda", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "c51LPR75+eskzYq8cj9zdKd3DXk=", "path": "github.com/aws/aws-sdk-go/service/lightsail", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "xkNWwN2rw+szg+zXAxCun34zxhs=", "path": "github.com/aws/aws-sdk-go/service/opsworks", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "saFo2jqsWU43Lax6lL8PhQKRl8s=", "path": "github.com/aws/aws-sdk-go/service/rds", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "BwFxr+n+xU7TOQxxONFxdtrWjG4=", "path": "github.com/aws/aws-sdk-go/service/redshift", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "S1md3W8h4/TLxScptLYbD5ukfrM=", "path": "github.com/aws/aws-sdk-go/service/route53", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "soLaAo4O4kxArCMP1r3ctgwhmC4=", "path": "github.com/aws/aws-sdk-go/service/s3", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "Tz5NbDa/SGUINmuFD8KQLh1HDOI=", "path": "github.com/aws/aws-sdk-go/service/servicecatalog", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "/ztCHg70ElmJqzKYIRwDB6TiBOc=", "path": "github.com/aws/aws-sdk-go/service/ses", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "4fkXdvKPVnJvu6yUBc+MHkN4t20=", "path": "github.com/aws/aws-sdk-go/service/sfn", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "rrsHusPbMvyKM0WvbZyYjDgKG00=", "path": "github.com/aws/aws-sdk-go/service/shield", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "B3CgAFSREebpsFoFOo4vrQ6u04w=", "path": "github.com/aws/aws-sdk-go/service/simpledb", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "rwSNHPn9iLEaoDx6vX0KbWefcHY=", "path": "github.com/aws/aws-sdk-go/service/sns", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "aWWSD60GhNwldZ7mxL9Z8Q+fiXo=", "path": "github.com/aws/aws-sdk-go/service/sqs", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "U1lCM+/AZ5khvQcsgZy1c/qp86Q=", "path": "github.com/aws/aws-sdk-go/service/ssm", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "d9vR1rl8kmJxJBwe00byziVFR/o=", "path": "github.com/aws/aws-sdk-go/service/sts", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "Uw4pOUxSMbx4xBHUcOUkNhtnywE=", "path": "github.com/aws/aws-sdk-go/service/swf", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "sjZeBzVjWM2tWSIOr7p13Kx2iNU=", "path": "github.com/aws/aws-sdk-go/service/waf", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "rM51Xn6MSt2XJzSF1p51m6G4u/8=", "path": "github.com/aws/aws-sdk-go/service/wafregional", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "AUwsvYff1GCOYtCgB6wd0doC9kc=", "path": "github.com/aws/aws-sdk-go/service/workspaces", - "revision": "991fe2497a95d757bb53f95cbcebf3d26134c9fe", - "revisionTime": "2017-11-22T01:35:17Z", - "version": "v1.12.32", - "versionExact": "v1.12.32" + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" }, { "checksumSHA1": "usT4LCSQItkFvFOQT7cBlkCuGaE=", From 635cf32a4300153991e52f50be33a91a891009e1 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Wed, 29 Nov 2017 03:44:21 -0800 Subject: [PATCH 2/2] vendor: github.com/aws/aws-sdk-go/service/mq@v1.12.35 --- .../aws/aws-sdk-go/service/mq/api.go | 3786 +++++++++++++++++ .../aws/aws-sdk-go/service/mq/doc.go | 31 + .../aws/aws-sdk-go/service/mq/errors.go | 42 + .../aws/aws-sdk-go/service/mq/service.go | 97 + vendor/vendor.json | 8 + 5 files changed, 3964 insertions(+) create mode 100644 vendor/github.com/aws/aws-sdk-go/service/mq/api.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/mq/doc.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/mq/errors.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/mq/service.go 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 new file mode 100644 index 00000000000..778ca09cb93 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mq/api.go @@ -0,0 +1,3786 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package mq + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateBroker = "CreateBroker" + +// CreateBrokerRequest generates a "aws/request.Request" representing the +// client's request for the CreateBroker operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateBroker for more information on using the CreateBroker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateBrokerRequest method. +// req, resp := client.CreateBrokerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBroker +func (c *MQ) CreateBrokerRequest(input *CreateBrokerRequest) (req *request.Request, output *CreateBrokerResponse) { + op := &request.Operation{ + Name: opCreateBroker, + HTTPMethod: "POST", + HTTPPath: "/v1/brokers", + } + + if input == nil { + input = &CreateBrokerRequest{} + } + + output = &CreateBrokerResponse{} + req = c.newRequest(op, input, output) + return +} + +// CreateBroker API operation for AmazonMQ. +// +// Creates a broker. Note: This API is asynchronous. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation CreateBroker for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returns information about an error. +// +// * ErrCodeConflictException "ConflictException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBroker +func (c *MQ) CreateBroker(input *CreateBrokerRequest) (*CreateBrokerResponse, error) { + req, out := c.CreateBrokerRequest(input) + return out, req.Send() +} + +// CreateBrokerWithContext is the same as CreateBroker with the addition of +// the ability to pass a context and additional request options. +// +// See CreateBroker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) CreateBrokerWithContext(ctx aws.Context, input *CreateBrokerRequest, opts ...request.Option) (*CreateBrokerResponse, error) { + req, out := c.CreateBrokerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateConfiguration = "CreateConfiguration" + +// CreateConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfiguration operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateConfiguration for more information on using the CreateConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateConfigurationRequest method. +// req, resp := client.CreateConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration +func (c *MQ) CreateConfigurationRequest(input *CreateConfigurationRequest) (req *request.Request, output *CreateConfigurationResponse) { + op := &request.Operation{ + Name: opCreateConfiguration, + HTTPMethod: "POST", + HTTPPath: "/v1/configurations", + } + + if input == nil { + input = &CreateConfigurationRequest{} + } + + output = &CreateConfigurationResponse{} + req = c.newRequest(op, input, output) + return +} + +// CreateConfiguration API operation for AmazonMQ. +// +// Creates a new configuration for the specified configuration name. Amazon +// MQ uses the default configuration (the engine type and version). Note: If +// the configuration name already exists, Amazon MQ doesn't create a configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation CreateConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeConflictException "ConflictException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration +func (c *MQ) CreateConfiguration(input *CreateConfigurationRequest) (*CreateConfigurationResponse, error) { + req, out := c.CreateConfigurationRequest(input) + return out, req.Send() +} + +// CreateConfigurationWithContext is the same as CreateConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) CreateConfigurationWithContext(ctx aws.Context, input *CreateConfigurationRequest, opts ...request.Option) (*CreateConfigurationResponse, error) { + req, out := c.CreateConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateUser = "CreateUser" + +// CreateUserRequest generates a "aws/request.Request" representing the +// client's request for the CreateUser operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateUser for more information on using the CreateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateUserRequest method. +// req, resp := client.CreateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser +func (c *MQ) CreateUserRequest(input *CreateUserRequest) (req *request.Request, output *CreateUserOutput) { + op := &request.Operation{ + Name: opCreateUser, + HTTPMethod: "POST", + HTTPPath: "/v1/brokers/{broker-id}/users/{username}", + } + + if input == nil { + input = &CreateUserRequest{} + } + + output = &CreateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateUser API operation for AmazonMQ. +// +// Creates an ActiveMQ user. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation CreateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeConflictException "ConflictException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser +func (c *MQ) CreateUser(input *CreateUserRequest) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) + return out, req.Send() +} + +// CreateUserWithContext is the same as CreateUser with the addition of +// the ability to pass a context and additional request options. +// +// See CreateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) CreateUserWithContext(ctx aws.Context, input *CreateUserRequest, opts ...request.Option) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteBroker = "DeleteBroker" + +// DeleteBrokerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBroker operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteBroker for more information on using the DeleteBroker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteBrokerRequest method. +// req, resp := client.DeleteBrokerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker +func (c *MQ) DeleteBrokerRequest(input *DeleteBrokerInput) (req *request.Request, output *DeleteBrokerResponse) { + op := &request.Operation{ + Name: opDeleteBroker, + HTTPMethod: "DELETE", + HTTPPath: "/v1/brokers/{broker-id}", + } + + if input == nil { + input = &DeleteBrokerInput{} + } + + output = &DeleteBrokerResponse{} + req = c.newRequest(op, input, output) + return +} + +// DeleteBroker API operation for AmazonMQ. +// +// Deletes a broker. Note: This API is asynchronous. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation DeleteBroker for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker +func (c *MQ) DeleteBroker(input *DeleteBrokerInput) (*DeleteBrokerResponse, error) { + req, out := c.DeleteBrokerRequest(input) + return out, req.Send() +} + +// DeleteBrokerWithContext is the same as DeleteBroker with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteBroker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) DeleteBrokerWithContext(ctx aws.Context, input *DeleteBrokerInput, opts ...request.Option) (*DeleteBrokerResponse, error) { + req, out := c.DeleteBrokerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteUser = "DeleteUser" + +// DeleteUserRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUser operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteUser for more information on using the DeleteUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteUserRequest method. +// req, resp := client.DeleteUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser +func (c *MQ) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { + op := &request.Operation{ + Name: opDeleteUser, + HTTPMethod: "DELETE", + HTTPPath: "/v1/brokers/{broker-id}/users/{username}", + } + + if input == nil { + input = &DeleteUserInput{} + } + + output = &DeleteUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteUser API operation for AmazonMQ. +// +// Deletes an ActiveMQ user. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation DeleteUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser +func (c *MQ) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + return out, req.Send() +} + +// DeleteUserWithContext is the same as DeleteUser with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeBroker = "DescribeBroker" + +// DescribeBrokerRequest generates a "aws/request.Request" representing the +// client's request for the DescribeBroker operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeBroker for more information on using the DescribeBroker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeBrokerRequest method. +// req, resp := client.DescribeBrokerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker +func (c *MQ) DescribeBrokerRequest(input *DescribeBrokerInput) (req *request.Request, output *DescribeBrokerResponse) { + op := &request.Operation{ + Name: opDescribeBroker, + HTTPMethod: "GET", + HTTPPath: "/v1/brokers/{broker-id}", + } + + if input == nil { + input = &DescribeBrokerInput{} + } + + output = &DescribeBrokerResponse{} + req = c.newRequest(op, input, output) + return +} + +// DescribeBroker API operation for AmazonMQ. +// +// Returns information about the specified broker. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation DescribeBroker for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker +func (c *MQ) DescribeBroker(input *DescribeBrokerInput) (*DescribeBrokerResponse, error) { + req, out := c.DescribeBrokerRequest(input) + return out, req.Send() +} + +// DescribeBrokerWithContext is the same as DescribeBroker with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeBroker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) DescribeBrokerWithContext(ctx aws.Context, input *DescribeBrokerInput, opts ...request.Option) (*DescribeBrokerResponse, error) { + req, out := c.DescribeBrokerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeConfiguration = "DescribeConfiguration" + +// DescribeConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeConfiguration operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeConfiguration for more information on using the DescribeConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeConfigurationRequest method. +// req, resp := client.DescribeConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration +func (c *MQ) DescribeConfigurationRequest(input *DescribeConfigurationInput) (req *request.Request, output *DescribeConfigurationOutput) { + op := &request.Operation{ + Name: opDescribeConfiguration, + HTTPMethod: "GET", + HTTPPath: "/v1/configurations/{configuration-id}", + } + + if input == nil { + input = &DescribeConfigurationInput{} + } + + output = &DescribeConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeConfiguration API operation for AmazonMQ. +// +// Returns information about the specified configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation DescribeConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration +func (c *MQ) DescribeConfiguration(input *DescribeConfigurationInput) (*DescribeConfigurationOutput, error) { + req, out := c.DescribeConfigurationRequest(input) + return out, req.Send() +} + +// DescribeConfigurationWithContext is the same as DescribeConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) DescribeConfigurationWithContext(ctx aws.Context, input *DescribeConfigurationInput, opts ...request.Option) (*DescribeConfigurationOutput, error) { + req, out := c.DescribeConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeConfigurationRevision = "DescribeConfigurationRevision" + +// DescribeConfigurationRevisionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeConfigurationRevision operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeConfigurationRevision for more information on using the DescribeConfigurationRevision +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeConfigurationRevisionRequest method. +// req, resp := client.DescribeConfigurationRevisionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision +func (c *MQ) DescribeConfigurationRevisionRequest(input *DescribeConfigurationRevisionInput) (req *request.Request, output *DescribeConfigurationRevisionResponse) { + op := &request.Operation{ + Name: opDescribeConfigurationRevision, + HTTPMethod: "GET", + HTTPPath: "/v1/configurations/{configuration-id}/revisions/{configuration-revision}", + } + + if input == nil { + input = &DescribeConfigurationRevisionInput{} + } + + output = &DescribeConfigurationRevisionResponse{} + req = c.newRequest(op, input, output) + return +} + +// DescribeConfigurationRevision API operation for AmazonMQ. +// +// Returns the specified configuration revision for the specified configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation DescribeConfigurationRevision for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision +func (c *MQ) DescribeConfigurationRevision(input *DescribeConfigurationRevisionInput) (*DescribeConfigurationRevisionResponse, error) { + req, out := c.DescribeConfigurationRevisionRequest(input) + return out, req.Send() +} + +// DescribeConfigurationRevisionWithContext is the same as DescribeConfigurationRevision with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeConfigurationRevision for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) DescribeConfigurationRevisionWithContext(ctx aws.Context, input *DescribeConfigurationRevisionInput, opts ...request.Option) (*DescribeConfigurationRevisionResponse, error) { + req, out := c.DescribeConfigurationRevisionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeUser = "DescribeUser" + +// DescribeUserRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUser operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeUser for more information on using the DescribeUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeUserRequest method. +// req, resp := client.DescribeUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser +func (c *MQ) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserResponse) { + op := &request.Operation{ + Name: opDescribeUser, + HTTPMethod: "GET", + HTTPPath: "/v1/brokers/{broker-id}/users/{username}", + } + + if input == nil { + input = &DescribeUserInput{} + } + + output = &DescribeUserResponse{} + req = c.newRequest(op, input, output) + return +} + +// DescribeUser API operation for AmazonMQ. +// +// Returns information about an ActiveMQ user. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation DescribeUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser +func (c *MQ) DescribeUser(input *DescribeUserInput) (*DescribeUserResponse, error) { + req, out := c.DescribeUserRequest(input) + return out, req.Send() +} + +// DescribeUserWithContext is the same as DescribeUser with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserResponse, error) { + req, out := c.DescribeUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListBrokers = "ListBrokers" + +// ListBrokersRequest generates a "aws/request.Request" representing the +// client's request for the ListBrokers operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListBrokers for more information on using the ListBrokers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListBrokersRequest method. +// req, resp := client.ListBrokersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers +func (c *MQ) ListBrokersRequest(input *ListBrokersInput) (req *request.Request, output *ListBrokersResponse) { + op := &request.Operation{ + Name: opListBrokers, + HTTPMethod: "GET", + HTTPPath: "/v1/brokers", + } + + if input == nil { + input = &ListBrokersInput{} + } + + output = &ListBrokersResponse{} + req = c.newRequest(op, input, output) + return +} + +// ListBrokers API operation for AmazonMQ. +// +// Returns a list of all brokers. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation ListBrokers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers +func (c *MQ) ListBrokers(input *ListBrokersInput) (*ListBrokersResponse, error) { + req, out := c.ListBrokersRequest(input) + return out, req.Send() +} + +// ListBrokersWithContext is the same as ListBrokers with the addition of +// the ability to pass a context and additional request options. +// +// See ListBrokers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) ListBrokersWithContext(ctx aws.Context, input *ListBrokersInput, opts ...request.Option) (*ListBrokersResponse, error) { + req, out := c.ListBrokersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListConfigurationRevisions = "ListConfigurationRevisions" + +// ListConfigurationRevisionsRequest generates a "aws/request.Request" representing the +// client's request for the ListConfigurationRevisions operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListConfigurationRevisions for more information on using the ListConfigurationRevisions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListConfigurationRevisionsRequest method. +// req, resp := client.ListConfigurationRevisionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions +func (c *MQ) ListConfigurationRevisionsRequest(input *ListConfigurationRevisionsInput) (req *request.Request, output *ListConfigurationRevisionsResponse) { + op := &request.Operation{ + Name: opListConfigurationRevisions, + HTTPMethod: "GET", + HTTPPath: "/v1/configurations/{configuration-id}/revisions", + } + + if input == nil { + input = &ListConfigurationRevisionsInput{} + } + + output = &ListConfigurationRevisionsResponse{} + req = c.newRequest(op, input, output) + return +} + +// ListConfigurationRevisions API operation for AmazonMQ. +// +// Returns a list of all revisions for the specified configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation ListConfigurationRevisions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions +func (c *MQ) ListConfigurationRevisions(input *ListConfigurationRevisionsInput) (*ListConfigurationRevisionsResponse, error) { + req, out := c.ListConfigurationRevisionsRequest(input) + return out, req.Send() +} + +// ListConfigurationRevisionsWithContext is the same as ListConfigurationRevisions with the addition of +// the ability to pass a context and additional request options. +// +// See ListConfigurationRevisions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) ListConfigurationRevisionsWithContext(ctx aws.Context, input *ListConfigurationRevisionsInput, opts ...request.Option) (*ListConfigurationRevisionsResponse, error) { + req, out := c.ListConfigurationRevisionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListConfigurations = "ListConfigurations" + +// ListConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListConfigurations operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListConfigurations for more information on using the ListConfigurations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListConfigurationsRequest method. +// req, resp := client.ListConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations +func (c *MQ) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsResponse) { + op := &request.Operation{ + Name: opListConfigurations, + HTTPMethod: "GET", + HTTPPath: "/v1/configurations", + } + + if input == nil { + input = &ListConfigurationsInput{} + } + + output = &ListConfigurationsResponse{} + req = c.newRequest(op, input, output) + return +} + +// ListConfigurations API operation for AmazonMQ. +// +// Returns a list of all configurations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation ListConfigurations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations +func (c *MQ) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsResponse, error) { + req, out := c.ListConfigurationsRequest(input) + return out, req.Send() +} + +// ListConfigurationsWithContext is the same as ListConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See ListConfigurations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) ListConfigurationsWithContext(ctx aws.Context, input *ListConfigurationsInput, opts ...request.Option) (*ListConfigurationsResponse, error) { + req, out := c.ListConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListUsers = "ListUsers" + +// ListUsersRequest generates a "aws/request.Request" representing the +// client's request for the ListUsers operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListUsers for more information on using the ListUsers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListUsersRequest method. +// req, resp := client.ListUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers +func (c *MQ) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersResponse) { + op := &request.Operation{ + Name: opListUsers, + HTTPMethod: "GET", + HTTPPath: "/v1/brokers/{broker-id}/users", + } + + if input == nil { + input = &ListUsersInput{} + } + + output = &ListUsersResponse{} + req = c.newRequest(op, input, output) + return +} + +// ListUsers API operation for AmazonMQ. +// +// Returns a list of all ActiveMQ users. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation ListUsers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers +func (c *MQ) ListUsers(input *ListUsersInput) (*ListUsersResponse, error) { + req, out := c.ListUsersRequest(input) + return out, req.Send() +} + +// ListUsersWithContext is the same as ListUsers with the addition of +// the ability to pass a context and additional request options. +// +// See ListUsers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersResponse, error) { + req, out := c.ListUsersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRebootBroker = "RebootBroker" + +// RebootBrokerRequest generates a "aws/request.Request" representing the +// client's request for the RebootBroker operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RebootBroker for more information on using the RebootBroker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RebootBrokerRequest method. +// req, resp := client.RebootBrokerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker +func (c *MQ) RebootBrokerRequest(input *RebootBrokerInput) (req *request.Request, output *RebootBrokerOutput) { + op := &request.Operation{ + Name: opRebootBroker, + HTTPMethod: "POST", + HTTPPath: "/v1/brokers/{broker-id}/reboot", + } + + if input == nil { + input = &RebootBrokerInput{} + } + + output = &RebootBrokerOutput{} + req = c.newRequest(op, input, output) + return +} + +// RebootBroker API operation for AmazonMQ. +// +// Reboots a broker. Note: This API is asynchronous. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation RebootBroker for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker +func (c *MQ) RebootBroker(input *RebootBrokerInput) (*RebootBrokerOutput, error) { + req, out := c.RebootBrokerRequest(input) + return out, req.Send() +} + +// RebootBrokerWithContext is the same as RebootBroker with the addition of +// the ability to pass a context and additional request options. +// +// See RebootBroker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) RebootBrokerWithContext(ctx aws.Context, input *RebootBrokerInput, opts ...request.Option) (*RebootBrokerOutput, error) { + req, out := c.RebootBrokerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateBroker = "UpdateBroker" + +// UpdateBrokerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateBroker operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateBroker for more information on using the UpdateBroker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateBrokerRequest method. +// req, resp := client.UpdateBrokerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker +func (c *MQ) UpdateBrokerRequest(input *UpdateBrokerRequest) (req *request.Request, output *UpdateBrokerResponse) { + op := &request.Operation{ + Name: opUpdateBroker, + HTTPMethod: "PUT", + HTTPPath: "/v1/brokers/{broker-id}", + } + + if input == nil { + input = &UpdateBrokerRequest{} + } + + output = &UpdateBrokerResponse{} + req = c.newRequest(op, input, output) + return +} + +// UpdateBroker API operation for AmazonMQ. +// +// Adds a pending configuration change to a broker. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation UpdateBroker for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker +func (c *MQ) UpdateBroker(input *UpdateBrokerRequest) (*UpdateBrokerResponse, error) { + req, out := c.UpdateBrokerRequest(input) + return out, req.Send() +} + +// UpdateBrokerWithContext is the same as UpdateBroker with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateBroker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) UpdateBrokerWithContext(ctx aws.Context, input *UpdateBrokerRequest, opts ...request.Option) (*UpdateBrokerResponse, error) { + req, out := c.UpdateBrokerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateConfiguration = "UpdateConfiguration" + +// UpdateConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConfiguration operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateConfiguration for more information on using the UpdateConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateConfigurationRequest method. +// req, resp := client.UpdateConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration +func (c *MQ) UpdateConfigurationRequest(input *UpdateConfigurationRequest) (req *request.Request, output *UpdateConfigurationResponse) { + op := &request.Operation{ + Name: opUpdateConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/v1/configurations/{configuration-id}", + } + + if input == nil { + input = &UpdateConfigurationRequest{} + } + + output = &UpdateConfigurationResponse{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConfiguration API operation for AmazonMQ. +// +// Updates the specified configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation UpdateConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeConflictException "ConflictException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration +func (c *MQ) UpdateConfiguration(input *UpdateConfigurationRequest) (*UpdateConfigurationResponse, error) { + req, out := c.UpdateConfigurationRequest(input) + return out, req.Send() +} + +// UpdateConfigurationWithContext is the same as UpdateConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) UpdateConfigurationWithContext(ctx aws.Context, input *UpdateConfigurationRequest, opts ...request.Option) (*UpdateConfigurationResponse, error) { + req, out := c.UpdateConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUser = "UpdateUser" + +// UpdateUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUser operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateUser for more information on using the UpdateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateUserRequest method. +// req, resp := client.UpdateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser +func (c *MQ) UpdateUserRequest(input *UpdateUserRequest) (req *request.Request, output *UpdateUserOutput) { + op := &request.Operation{ + Name: opUpdateUser, + HTTPMethod: "PUT", + HTTPPath: "/v1/brokers/{broker-id}/users/{username}", + } + + if input == nil { + input = &UpdateUserRequest{} + } + + output = &UpdateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateUser API operation for AmazonMQ. +// +// Updates the information for an ActiveMQ user. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AmazonMQ's +// API operation UpdateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeConflictException "ConflictException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser +func (c *MQ) UpdateUser(input *UpdateUserRequest) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + return out, req.Send() +} + +// UpdateUserWithContext is the same as UpdateUser with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MQ) UpdateUserWithContext(ctx aws.Context, input *UpdateUserRequest, opts ...request.Option) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Returns information about all brokers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/BrokerInstance +type BrokerInstance struct { + _ struct{} `type:"structure"` + + // The URL of the broker's ActiveMQ Web Console. + ConsoleURL *string `locationName:"consoleURL" type:"string"` + + // The broker's wire-level protocol endpoints. + Endpoints []*string `locationName:"endpoints" type:"list"` +} + +// String returns the string representation +func (s BrokerInstance) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BrokerInstance) GoString() string { + return s.String() +} + +// SetConsoleURL sets the ConsoleURL field's value. +func (s *BrokerInstance) SetConsoleURL(v string) *BrokerInstance { + s.ConsoleURL = &v + return s +} + +// SetEndpoints sets the Endpoints field's value. +func (s *BrokerInstance) SetEndpoints(v []*string) *BrokerInstance { + s.Endpoints = v + return s +} + +// The Amazon Resource Name (ARN) of the broker. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/BrokerSummary +type BrokerSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the broker. + BrokerArn *string `locationName:"brokerArn" type:"string"` + + // The unique ID that Amazon MQ generates for the broker. + BrokerId *string `locationName:"brokerId" type:"string"` + + // The name of the broker. This value must be unique in your AWS account, 1-50 + // characters long, must contain only letters, numbers, dashes, and underscores, + // and must not contain whitespaces, brackets, wildcard characters, or special + // characters. + BrokerName *string `locationName:"brokerName" type:"string"` + + // The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED, + // DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS + BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"` + + // Required. The deployment mode of the broker. Possible values: SINGLE_INSTANCE, + // ACTIVE_STANDBY_MULTI_AZ SINGLE_INSTANCE creates a single-instance broker + // in a single Availability Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby + // broker for high availability. + DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"` + + // The broker's instance type. Possible values: mq.t2.micro, mq.m4.large + HostInstanceType *string `locationName:"hostInstanceType" type:"string"` +} + +// String returns the string representation +func (s BrokerSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BrokerSummary) GoString() string { + return s.String() +} + +// SetBrokerArn sets the BrokerArn field's value. +func (s *BrokerSummary) SetBrokerArn(v string) *BrokerSummary { + s.BrokerArn = &v + return s +} + +// SetBrokerId sets the BrokerId field's value. +func (s *BrokerSummary) SetBrokerId(v string) *BrokerSummary { + s.BrokerId = &v + return s +} + +// SetBrokerName sets the BrokerName field's value. +func (s *BrokerSummary) SetBrokerName(v string) *BrokerSummary { + s.BrokerName = &v + return s +} + +// SetBrokerState sets the BrokerState field's value. +func (s *BrokerSummary) SetBrokerState(v string) *BrokerSummary { + s.BrokerState = &v + return s +} + +// SetDeploymentMode sets the DeploymentMode field's value. +func (s *BrokerSummary) SetDeploymentMode(v string) *BrokerSummary { + s.DeploymentMode = &v + return s +} + +// SetHostInstanceType sets the HostInstanceType field's value. +func (s *BrokerSummary) SetHostInstanceType(v string) *BrokerSummary { + s.HostInstanceType = &v + return s +} + +// Returns information about all configurations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/Configuration +type Configuration struct { + _ struct{} `type:"structure"` + + // Required. The ARN of the configuration. + Arn *string `locationName:"arn" type:"string"` + + // Required. The description of the configuration. + Description *string `locationName:"description" type:"string"` + + // Required. The type of broker engine. Note: Currently, Amazon MQ supports + // only ACTIVEMQ. + EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` + + // Required. The version of the broker engine. + EngineVersion *string `locationName:"engineVersion" type:"string"` + + // Required. The unique ID that Amazon MQ generates for the configuration. + Id *string `locationName:"id" type:"string"` + + // Required. The latest revision of the configuration. + LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"` + + // Required. The name of the configuration. This value can contain only alphanumeric + // characters, dashes, periods, underscores, and tildes (- . _ ~). This value + // must be 1-150 characters long. + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s Configuration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Configuration) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Configuration) SetArn(v string) *Configuration { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Configuration) SetDescription(v string) *Configuration { + s.Description = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *Configuration) SetEngineType(v string) *Configuration { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *Configuration) SetEngineVersion(v string) *Configuration { + s.EngineVersion = &v + return s +} + +// SetId sets the Id field's value. +func (s *Configuration) SetId(v string) *Configuration { + s.Id = &v + return s +} + +// SetLatestRevision sets the LatestRevision field's value. +func (s *Configuration) SetLatestRevision(v *ConfigurationRevision) *Configuration { + s.LatestRevision = v + return s +} + +// SetName sets the Name field's value. +func (s *Configuration) SetName(v string) *Configuration { + s.Name = &v + return s +} + +// A list of information about the configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ConfigurationId +type ConfigurationId struct { + _ struct{} `type:"structure"` + + // Required. The unique ID that Amazon MQ generates for the configuration. + Id *string `locationName:"id" type:"string"` + + // The Universally Unique Identifier (UUID) of the request. + Revision *int64 `locationName:"revision" type:"integer"` +} + +// String returns the string representation +func (s ConfigurationId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigurationId) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *ConfigurationId) SetId(v string) *ConfigurationId { + s.Id = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *ConfigurationId) SetRevision(v int64) *ConfigurationId { + s.Revision = &v + return s +} + +// Returns information about the specified configuration revision. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ConfigurationRevision +type ConfigurationRevision struct { + _ struct{} `type:"structure"` + + // The description of the configuration revision. + Description *string `locationName:"description" type:"string"` + + // Required. The revision of the configuration. + Revision *int64 `locationName:"revision" type:"integer"` +} + +// String returns the string representation +func (s ConfigurationRevision) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigurationRevision) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *ConfigurationRevision) SetDescription(v string) *ConfigurationRevision { + s.Description = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *ConfigurationRevision) SetRevision(v int64) *ConfigurationRevision { + s.Revision = &v + return s +} + +// Broker configuration information +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/Configurations +type Configurations struct { + _ struct{} `type:"structure"` + + // The current configuration of the broker. + Current *ConfigurationId `locationName:"current" type:"structure"` + + // The history of configurations applied to the broker. + History []*ConfigurationId `locationName:"history" type:"list"` + + // The pending configuration of the broker. + Pending *ConfigurationId `locationName:"pending" type:"structure"` +} + +// String returns the string representation +func (s Configurations) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Configurations) GoString() string { + return s.String() +} + +// SetCurrent sets the Current field's value. +func (s *Configurations) SetCurrent(v *ConfigurationId) *Configurations { + s.Current = v + return s +} + +// SetHistory sets the History field's value. +func (s *Configurations) SetHistory(v []*ConfigurationId) *Configurations { + s.History = v + return s +} + +// SetPending sets the Pending field's value. +func (s *Configurations) SetPending(v *ConfigurationId) *Configurations { + s.Pending = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBrokerRequest +type CreateBrokerRequest struct { + _ struct{} `type:"structure"` + + AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"` + + BrokerName *string `locationName:"brokerName" type:"string"` + + // A list of information about the configuration. + Configuration *ConfigurationId `locationName:"configuration" type:"structure"` + + CreatorRequestId *string `locationName:"creatorRequestId" type:"string" idempotencyToken:"true"` + + // The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ + // SINGLE_INSTANCE creates a single-instance broker in a single Availability + // Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability. + DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"` + + // The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. + EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` + + EngineVersion *string `locationName:"engineVersion" type:"string"` + + HostInstanceType *string `locationName:"hostInstanceType" type:"string"` + + // The scheduled time period relative to UTC during which Amazon MQ begins to + // apply pending updates or patches to the broker. + MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"` + + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + SecurityGroups []*string `locationName:"securityGroups" type:"list"` + + SubnetIds []*string `locationName:"subnetIds" type:"list"` + + Users []*User `locationName:"users" type:"list"` +} + +// String returns the string representation +func (s CreateBrokerRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBrokerRequest) GoString() string { + return s.String() +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateBrokerRequest) SetAutoMinorVersionUpgrade(v bool) *CreateBrokerRequest { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetBrokerName sets the BrokerName field's value. +func (s *CreateBrokerRequest) SetBrokerName(v string) *CreateBrokerRequest { + s.BrokerName = &v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *CreateBrokerRequest) SetConfiguration(v *ConfigurationId) *CreateBrokerRequest { + s.Configuration = v + return s +} + +// SetCreatorRequestId sets the CreatorRequestId field's value. +func (s *CreateBrokerRequest) SetCreatorRequestId(v string) *CreateBrokerRequest { + s.CreatorRequestId = &v + return s +} + +// SetDeploymentMode sets the DeploymentMode field's value. +func (s *CreateBrokerRequest) SetDeploymentMode(v string) *CreateBrokerRequest { + s.DeploymentMode = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *CreateBrokerRequest) SetEngineType(v string) *CreateBrokerRequest { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateBrokerRequest) SetEngineVersion(v string) *CreateBrokerRequest { + s.EngineVersion = &v + return s +} + +// SetHostInstanceType sets the HostInstanceType field's value. +func (s *CreateBrokerRequest) SetHostInstanceType(v string) *CreateBrokerRequest { + s.HostInstanceType = &v + return s +} + +// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value. +func (s *CreateBrokerRequest) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *CreateBrokerRequest { + s.MaintenanceWindowStartTime = v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateBrokerRequest) SetPubliclyAccessible(v bool) *CreateBrokerRequest { + s.PubliclyAccessible = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateBrokerRequest) SetSecurityGroups(v []*string) *CreateBrokerRequest { + s.SecurityGroups = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateBrokerRequest) SetSubnetIds(v []*string) *CreateBrokerRequest { + s.SubnetIds = v + return s +} + +// SetUsers sets the Users field's value. +func (s *CreateBrokerRequest) SetUsers(v []*User) *CreateBrokerRequest { + s.Users = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBrokerResponse +type CreateBrokerResponse struct { + _ struct{} `type:"structure"` + + BrokerArn *string `locationName:"brokerArn" type:"string"` + + BrokerId *string `locationName:"brokerId" type:"string"` +} + +// String returns the string representation +func (s CreateBrokerResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBrokerResponse) GoString() string { + return s.String() +} + +// SetBrokerArn sets the BrokerArn field's value. +func (s *CreateBrokerResponse) SetBrokerArn(v string) *CreateBrokerResponse { + s.BrokerArn = &v + return s +} + +// SetBrokerId sets the BrokerId field's value. +func (s *CreateBrokerResponse) SetBrokerId(v string) *CreateBrokerResponse { + s.BrokerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfigurationRequest +type CreateConfigurationRequest struct { + _ struct{} `type:"structure"` + + // The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. + EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` + + EngineVersion *string `locationName:"engineVersion" type:"string"` + + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s CreateConfigurationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationRequest) GoString() string { + return s.String() +} + +// SetEngineType sets the EngineType field's value. +func (s *CreateConfigurationRequest) SetEngineType(v string) *CreateConfigurationRequest { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateConfigurationRequest) SetEngineVersion(v string) *CreateConfigurationRequest { + s.EngineVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateConfigurationRequest) SetName(v string) *CreateConfigurationRequest { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfigurationResponse +type CreateConfigurationResponse struct { + _ struct{} `type:"structure"` + + Arn *string `locationName:"arn" type:"string"` + + Id *string `locationName:"id" type:"string"` + + // Returns information about the specified configuration revision. + LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"` + + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s CreateConfigurationResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationResponse) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateConfigurationResponse) SetArn(v string) *CreateConfigurationResponse { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateConfigurationResponse) SetId(v string) *CreateConfigurationResponse { + s.Id = &v + return s +} + +// SetLatestRevision sets the LatestRevision field's value. +func (s *CreateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *CreateConfigurationResponse { + s.LatestRevision = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateConfigurationResponse) SetName(v string) *CreateConfigurationResponse { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUserResponse +type CreateUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUserRequest +type CreateUserRequest struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` + + ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` + + Groups []*string `locationName:"groups" type:"list"` + + Password *string `locationName:"password" type:"string"` + + // Username is a required field + Username *string `location:"uri" locationName:"username" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateUserRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateUserRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserRequest"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *CreateUserRequest) SetBrokerId(v string) *CreateUserRequest { + s.BrokerId = &v + return s +} + +// SetConsoleAccess sets the ConsoleAccess field's value. +func (s *CreateUserRequest) SetConsoleAccess(v bool) *CreateUserRequest { + s.ConsoleAccess = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *CreateUserRequest) SetGroups(v []*string) *CreateUserRequest { + s.Groups = v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateUserRequest) SetPassword(v string) *CreateUserRequest { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *CreateUserRequest) SetUsername(v string) *CreateUserRequest { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBrokerRequest +type DeleteBrokerInput struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBrokerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBrokerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBrokerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBrokerInput"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *DeleteBrokerInput) SetBrokerId(v string) *DeleteBrokerInput { + s.BrokerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBrokerResponse +type DeleteBrokerResponse struct { + _ struct{} `type:"structure"` + + BrokerId *string `locationName:"brokerId" type:"string"` +} + +// String returns the string representation +func (s DeleteBrokerResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBrokerResponse) GoString() string { + return s.String() +} + +// SetBrokerId sets the BrokerId field's value. +func (s *DeleteBrokerResponse) SetBrokerId(v string) *DeleteBrokerResponse { + s.BrokerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUserRequest +type DeleteUserInput struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` + + // Username is a required field + Username *string `location:"uri" locationName:"username" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *DeleteUserInput) SetBrokerId(v string) *DeleteUserInput { + s.BrokerId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *DeleteUserInput) SetUsername(v string) *DeleteUserInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUserResponse +type DeleteUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteUserOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerRequest +type DescribeBrokerInput struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeBrokerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBrokerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeBrokerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBrokerInput"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *DescribeBrokerInput) SetBrokerId(v string) *DescribeBrokerInput { + s.BrokerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerResponse +type DescribeBrokerResponse struct { + _ struct{} `type:"structure"` + + AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"` + + BrokerArn *string `locationName:"brokerArn" type:"string"` + + BrokerId *string `locationName:"brokerId" type:"string"` + + BrokerInstances []*BrokerInstance `locationName:"brokerInstances" type:"list"` + + BrokerName *string `locationName:"brokerName" type:"string"` + + // The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED, + // DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS + BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"` + + // Broker configuration information + Configurations *Configurations `locationName:"configurations" type:"structure"` + + // The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ + // SINGLE_INSTANCE creates a single-instance broker in a single Availability + // Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability. + DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"` + + // The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. + EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` + + EngineVersion *string `locationName:"engineVersion" type:"string"` + + HostInstanceType *string `locationName:"hostInstanceType" type:"string"` + + // The scheduled time period relative to UTC during which Amazon MQ begins to + // apply pending updates or patches to the broker. + MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"` + + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + SecurityGroups []*string `locationName:"securityGroups" type:"list"` + + SubnetIds []*string `locationName:"subnetIds" type:"list"` + + Users []*UserSummary `locationName:"users" type:"list"` +} + +// String returns the string representation +func (s DescribeBrokerResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBrokerResponse) GoString() string { + return s.String() +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *DescribeBrokerResponse) SetAutoMinorVersionUpgrade(v bool) *DescribeBrokerResponse { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetBrokerArn sets the BrokerArn field's value. +func (s *DescribeBrokerResponse) SetBrokerArn(v string) *DescribeBrokerResponse { + s.BrokerArn = &v + return s +} + +// SetBrokerId sets the BrokerId field's value. +func (s *DescribeBrokerResponse) SetBrokerId(v string) *DescribeBrokerResponse { + s.BrokerId = &v + return s +} + +// SetBrokerInstances sets the BrokerInstances field's value. +func (s *DescribeBrokerResponse) SetBrokerInstances(v []*BrokerInstance) *DescribeBrokerResponse { + s.BrokerInstances = v + return s +} + +// SetBrokerName sets the BrokerName field's value. +func (s *DescribeBrokerResponse) SetBrokerName(v string) *DescribeBrokerResponse { + s.BrokerName = &v + return s +} + +// SetBrokerState sets the BrokerState field's value. +func (s *DescribeBrokerResponse) SetBrokerState(v string) *DescribeBrokerResponse { + s.BrokerState = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *DescribeBrokerResponse) SetConfigurations(v *Configurations) *DescribeBrokerResponse { + s.Configurations = v + return s +} + +// SetDeploymentMode sets the DeploymentMode field's value. +func (s *DescribeBrokerResponse) SetDeploymentMode(v string) *DescribeBrokerResponse { + s.DeploymentMode = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *DescribeBrokerResponse) SetEngineType(v string) *DescribeBrokerResponse { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DescribeBrokerResponse) SetEngineVersion(v string) *DescribeBrokerResponse { + s.EngineVersion = &v + return s +} + +// SetHostInstanceType sets the HostInstanceType field's value. +func (s *DescribeBrokerResponse) SetHostInstanceType(v string) *DescribeBrokerResponse { + s.HostInstanceType = &v + return s +} + +// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value. +func (s *DescribeBrokerResponse) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *DescribeBrokerResponse { + s.MaintenanceWindowStartTime = v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *DescribeBrokerResponse) SetPubliclyAccessible(v bool) *DescribeBrokerResponse { + s.PubliclyAccessible = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *DescribeBrokerResponse) SetSecurityGroups(v []*string) *DescribeBrokerResponse { + s.SecurityGroups = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DescribeBrokerResponse) SetSubnetIds(v []*string) *DescribeBrokerResponse { + s.SubnetIds = v + return s +} + +// SetUsers sets the Users field's value. +func (s *DescribeBrokerResponse) SetUsers(v []*UserSummary) *DescribeBrokerResponse { + s.Users = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRequest +type DescribeConfigurationInput struct { + _ struct{} `type:"structure"` + + // ConfigurationId is a required field + ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationInput"} + if s.ConfigurationId == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *DescribeConfigurationInput) SetConfigurationId(v string) *DescribeConfigurationInput { + s.ConfigurationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationResponse +type DescribeConfigurationOutput struct { + _ struct{} `type:"structure"` + + Arn *string `locationName:"arn" type:"string"` + + Description *string `locationName:"description" type:"string"` + + // The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. + EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` + + EngineVersion *string `locationName:"engineVersion" type:"string"` + + Id *string `locationName:"id" type:"string"` + + // Returns information about the specified configuration revision. + LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"` + + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s DescribeConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConfigurationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribeConfigurationOutput) SetArn(v string) *DescribeConfigurationOutput { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeConfigurationOutput) SetDescription(v string) *DescribeConfigurationOutput { + s.Description = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *DescribeConfigurationOutput) SetEngineType(v string) *DescribeConfigurationOutput { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DescribeConfigurationOutput) SetEngineVersion(v string) *DescribeConfigurationOutput { + s.EngineVersion = &v + return s +} + +// SetId sets the Id field's value. +func (s *DescribeConfigurationOutput) SetId(v string) *DescribeConfigurationOutput { + s.Id = &v + return s +} + +// SetLatestRevision sets the LatestRevision field's value. +func (s *DescribeConfigurationOutput) SetLatestRevision(v *ConfigurationRevision) *DescribeConfigurationOutput { + s.LatestRevision = v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeConfigurationOutput) SetName(v string) *DescribeConfigurationOutput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevisionRequest +type DescribeConfigurationRevisionInput struct { + _ struct{} `type:"structure"` + + // ConfigurationId is a required field + ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"` + + // ConfigurationRevision is a required field + ConfigurationRevision *string `location:"uri" locationName:"configuration-revision" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeConfigurationRevisionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConfigurationRevisionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeConfigurationRevisionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationRevisionInput"} + if s.ConfigurationId == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) + } + if s.ConfigurationRevision == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationRevision")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *DescribeConfigurationRevisionInput) SetConfigurationId(v string) *DescribeConfigurationRevisionInput { + s.ConfigurationId = &v + return s +} + +// SetConfigurationRevision sets the ConfigurationRevision field's value. +func (s *DescribeConfigurationRevisionInput) SetConfigurationRevision(v string) *DescribeConfigurationRevisionInput { + s.ConfigurationRevision = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevisionResponse +type DescribeConfigurationRevisionResponse struct { + _ struct{} `type:"structure"` + + ConfigurationId *string `locationName:"configurationId" type:"string"` + + Data *string `locationName:"data" type:"string"` + + Description *string `locationName:"description" type:"string"` +} + +// String returns the string representation +func (s DescribeConfigurationRevisionResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConfigurationRevisionResponse) GoString() string { + return s.String() +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *DescribeConfigurationRevisionResponse) SetConfigurationId(v string) *DescribeConfigurationRevisionResponse { + s.ConfigurationId = &v + return s +} + +// SetData sets the Data field's value. +func (s *DescribeConfigurationRevisionResponse) SetData(v string) *DescribeConfigurationRevisionResponse { + s.Data = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeConfigurationRevisionResponse) SetDescription(v string) *DescribeConfigurationRevisionResponse { + s.Description = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUserRequest +type DescribeUserInput struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` + + // Username is a required field + Username *string `location:"uri" locationName:"username" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *DescribeUserInput) SetBrokerId(v string) *DescribeUserInput { + s.BrokerId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *DescribeUserInput) SetUsername(v string) *DescribeUserInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUserResponse +type DescribeUserResponse struct { + _ struct{} `type:"structure"` + + BrokerId *string `locationName:"brokerId" type:"string"` + + ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` + + Groups []*string `locationName:"groups" type:"list"` + + // Returns information about the status of the changes pending for the ActiveMQ + // user. + Pending *UserPendingChanges `locationName:"pending" type:"structure"` + + Username *string `locationName:"username" type:"string"` +} + +// String returns the string representation +func (s DescribeUserResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserResponse) GoString() string { + return s.String() +} + +// SetBrokerId sets the BrokerId field's value. +func (s *DescribeUserResponse) SetBrokerId(v string) *DescribeUserResponse { + s.BrokerId = &v + return s +} + +// SetConsoleAccess sets the ConsoleAccess field's value. +func (s *DescribeUserResponse) SetConsoleAccess(v bool) *DescribeUserResponse { + s.ConsoleAccess = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *DescribeUserResponse) SetGroups(v []*string) *DescribeUserResponse { + s.Groups = v + return s +} + +// SetPending sets the Pending field's value. +func (s *DescribeUserResponse) SetPending(v *UserPendingChanges) *DescribeUserResponse { + s.Pending = v + return s +} + +// SetUsername sets the Username field's value. +func (s *DescribeUserResponse) SetUsername(v string) *DescribeUserResponse { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokersRequest +type ListBrokersInput struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBrokersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBrokersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBrokersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBrokersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBrokersInput) SetMaxResults(v int64) *ListBrokersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBrokersInput) SetNextToken(v string) *ListBrokersInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokersResponse +type ListBrokersResponse struct { + _ struct{} `type:"structure"` + + BrokerSummaries []*BrokerSummary `locationName:"brokerSummaries" type:"list"` + + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBrokersResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBrokersResponse) GoString() string { + return s.String() +} + +// SetBrokerSummaries sets the BrokerSummaries field's value. +func (s *ListBrokersResponse) SetBrokerSummaries(v []*BrokerSummary) *ListBrokersResponse { + s.BrokerSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBrokersResponse) SetNextToken(v string) *ListBrokersResponse { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisionsRequest +type ListConfigurationRevisionsInput struct { + _ struct{} `type:"structure"` + + // ConfigurationId is a required field + ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListConfigurationRevisionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConfigurationRevisionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListConfigurationRevisionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListConfigurationRevisionsInput"} + if s.ConfigurationId == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *ListConfigurationRevisionsInput) SetConfigurationId(v string) *ListConfigurationRevisionsInput { + s.ConfigurationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListConfigurationRevisionsInput) SetMaxResults(v int64) *ListConfigurationRevisionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationRevisionsInput) SetNextToken(v string) *ListConfigurationRevisionsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisionsResponse +type ListConfigurationRevisionsResponse struct { + _ struct{} `type:"structure"` + + ConfigurationId *string `locationName:"configurationId" type:"string"` + + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + NextToken *string `locationName:"nextToken" type:"string"` + + Revisions []*ConfigurationRevision `locationName:"revisions" type:"list"` +} + +// String returns the string representation +func (s ListConfigurationRevisionsResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConfigurationRevisionsResponse) GoString() string { + return s.String() +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *ListConfigurationRevisionsResponse) SetConfigurationId(v string) *ListConfigurationRevisionsResponse { + s.ConfigurationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListConfigurationRevisionsResponse) SetMaxResults(v int64) *ListConfigurationRevisionsResponse { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationRevisionsResponse) SetNextToken(v string) *ListConfigurationRevisionsResponse { + s.NextToken = &v + return s +} + +// SetRevisions sets the Revisions field's value. +func (s *ListConfigurationRevisionsResponse) SetRevisions(v []*ConfigurationRevision) *ListConfigurationRevisionsResponse { + s.Revisions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationsRequest +type ListConfigurationsInput struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListConfigurationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConfigurationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationsResponse +type ListConfigurationsResponse struct { + _ struct{} `type:"structure"` + + Configurations []*Configuration `locationName:"configurations" type:"list"` + + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListConfigurationsResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConfigurationsResponse) GoString() string { + return s.String() +} + +// SetConfigurations sets the Configurations field's value. +func (s *ListConfigurationsResponse) SetConfigurations(v []*Configuration) *ListConfigurationsResponse { + s.Configurations = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListConfigurationsResponse) SetMaxResults(v int64) *ListConfigurationsResponse { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationsResponse) SetNextToken(v string) *ListConfigurationsResponse { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsersRequest +type ListUsersInput struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListUsersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *ListUsersInput) SetBrokerId(v string) *ListUsersInput { + s.BrokerId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsersResponse +type ListUsersResponse struct { + _ struct{} `type:"structure"` + + BrokerId *string `locationName:"brokerId" type:"string"` + + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + NextToken *string `locationName:"nextToken" type:"string"` + + Users []*UserSummary `locationName:"users" type:"list"` +} + +// String returns the string representation +func (s ListUsersResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersResponse) GoString() string { + return s.String() +} + +// SetBrokerId sets the BrokerId field's value. +func (s *ListUsersResponse) SetBrokerId(v string) *ListUsersResponse { + s.BrokerId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListUsersResponse) SetMaxResults(v int64) *ListUsersResponse { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersResponse) SetNextToken(v string) *ListUsersResponse { + s.NextToken = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *ListUsersResponse) SetUsers(v []*UserSummary) *ListUsersResponse { + s.Users = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBrokerRequest +type RebootBrokerInput struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s RebootBrokerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RebootBrokerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RebootBrokerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RebootBrokerInput"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *RebootBrokerInput) SetBrokerId(v string) *RebootBrokerInput { + s.BrokerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBrokerResponse +type RebootBrokerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RebootBrokerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RebootBrokerOutput) GoString() string { + return s.String() +} + +// Returns information about the XML element or attribute that was sanitized +// in the configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/SanitizationWarning +type SanitizationWarning struct { + _ struct{} `type:"structure"` + + // The name of the XML attribute that has been sanitized. + AttributeName *string `locationName:"attributeName" type:"string"` + + // The name of the XML element that has been sanitized. + ElementName *string `locationName:"elementName" type:"string"` + + // Required. The reason for which the XML elements or attributes were sanitized. + // Possible values: DISALLOWED_ELEMENT_REMOVED, DISALLOWED_ATTRIBUTE_REMOVED, + // INVALID_ATTRIBUTE_VALUE_REMOVED DISALLOWED_ELEMENT_REMOVED shows that the + // provided element isn't allowed and has been removed. DISALLOWED_ATTRIBUTE_REMOVED + // shows that the provided attribute isn't allowed and has been removed. INVALID_ATTRIBUTE_VALUE_REMOVED + // shows that the provided value for the attribute isn't allowed and has been + // removed. + Reason *string `locationName:"reason" type:"string" enum:"SanitizationWarningReason"` +} + +// String returns the string representation +func (s SanitizationWarning) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SanitizationWarning) GoString() string { + return s.String() +} + +// SetAttributeName sets the AttributeName field's value. +func (s *SanitizationWarning) SetAttributeName(v string) *SanitizationWarning { + s.AttributeName = &v + return s +} + +// SetElementName sets the ElementName field's value. +func (s *SanitizationWarning) SetElementName(v string) *SanitizationWarning { + s.ElementName = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *SanitizationWarning) SetReason(v string) *SanitizationWarning { + s.Reason = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBrokerRequest +type UpdateBrokerRequest struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` + + // A list of information about the configuration. + Configuration *ConfigurationId `locationName:"configuration" type:"structure"` +} + +// String returns the string representation +func (s UpdateBrokerRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBrokerRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateBrokerRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateBrokerRequest"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *UpdateBrokerRequest) SetBrokerId(v string) *UpdateBrokerRequest { + s.BrokerId = &v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *UpdateBrokerRequest) SetConfiguration(v *ConfigurationId) *UpdateBrokerRequest { + s.Configuration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBrokerResponse +type UpdateBrokerResponse struct { + _ struct{} `type:"structure"` + + BrokerId *string `locationName:"brokerId" type:"string"` + + // A list of information about the configuration. + Configuration *ConfigurationId `locationName:"configuration" type:"structure"` +} + +// String returns the string representation +func (s UpdateBrokerResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBrokerResponse) GoString() string { + return s.String() +} + +// SetBrokerId sets the BrokerId field's value. +func (s *UpdateBrokerResponse) SetBrokerId(v string) *UpdateBrokerResponse { + s.BrokerId = &v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *UpdateBrokerResponse) SetConfiguration(v *ConfigurationId) *UpdateBrokerResponse { + s.Configuration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfigurationRequest +type UpdateConfigurationRequest struct { + _ struct{} `type:"structure"` + + // ConfigurationId is a required field + ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"` + + Data *string `locationName:"data" type:"string"` + + Description *string `locationName:"description" type:"string"` +} + +// String returns the string representation +func (s UpdateConfigurationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConfigurationRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateConfigurationRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationRequest"} + if s.ConfigurationId == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *UpdateConfigurationRequest) SetConfigurationId(v string) *UpdateConfigurationRequest { + s.ConfigurationId = &v + return s +} + +// SetData sets the Data field's value. +func (s *UpdateConfigurationRequest) SetData(v string) *UpdateConfigurationRequest { + s.Data = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateConfigurationRequest) SetDescription(v string) *UpdateConfigurationRequest { + s.Description = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfigurationResponse +type UpdateConfigurationResponse struct { + _ struct{} `type:"structure"` + + Arn *string `locationName:"arn" type:"string"` + + Id *string `locationName:"id" type:"string"` + + // Returns information about the specified configuration revision. + LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"` + + Name *string `locationName:"name" type:"string"` + + Warnings []*SanitizationWarning `locationName:"warnings" type:"list"` +} + +// String returns the string representation +func (s UpdateConfigurationResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConfigurationResponse) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *UpdateConfigurationResponse) SetArn(v string) *UpdateConfigurationResponse { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateConfigurationResponse) SetId(v string) *UpdateConfigurationResponse { + s.Id = &v + return s +} + +// SetLatestRevision sets the LatestRevision field's value. +func (s *UpdateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *UpdateConfigurationResponse { + s.LatestRevision = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateConfigurationResponse) SetName(v string) *UpdateConfigurationResponse { + s.Name = &v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *UpdateConfigurationResponse) SetWarnings(v []*SanitizationWarning) *UpdateConfigurationResponse { + s.Warnings = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUserResponse +type UpdateUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateUserOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUserRequest +type UpdateUserRequest struct { + _ struct{} `type:"structure"` + + // BrokerId is a required field + BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` + + ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` + + Groups []*string `locationName:"groups" type:"list"` + + Password *string `locationName:"password" type:"string"` + + // Username is a required field + Username *string `location:"uri" locationName:"username" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateUserRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateUserRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateUserRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateUserRequest"} + if s.BrokerId == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerId")) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerId sets the BrokerId field's value. +func (s *UpdateUserRequest) SetBrokerId(v string) *UpdateUserRequest { + s.BrokerId = &v + return s +} + +// SetConsoleAccess sets the ConsoleAccess field's value. +func (s *UpdateUserRequest) SetConsoleAccess(v bool) *UpdateUserRequest { + s.ConsoleAccess = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *UpdateUserRequest) SetGroups(v []*string) *UpdateUserRequest { + s.Groups = v + return s +} + +// SetPassword sets the Password field's value. +func (s *UpdateUserRequest) SetPassword(v string) *UpdateUserRequest { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *UpdateUserRequest) SetUsername(v string) *UpdateUserRequest { + s.Username = &v + return s +} + +// An ActiveMQ user associated with the broker. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/User +type User struct { + _ struct{} `type:"structure"` + + // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. + ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` + + // The list of groups (20 maximum) to which the ActiveMQ user belongs. This + // value can contain only alphanumeric characters, dashes, periods, underscores, + // and tildes (- . _ ~). This value must be 2-100 characters long. + Groups []*string `locationName:"groups" type:"list"` + + // Required. The password of the ActiveMQ user. This value must be at least + // 12 characters long, must contain at least 4 unique characters, and must not + // contain commas. + Password *string `locationName:"password" type:"string"` + + // Required. The username of the ActiveMQ user. This value can contain only + // alphanumeric characters, dashes, periods, underscores, and tildes (- . _ + // ~). This value must be 2-100 characters long. + Username *string `locationName:"username" type:"string"` +} + +// String returns the string representation +func (s User) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s User) GoString() string { + return s.String() +} + +// SetConsoleAccess sets the ConsoleAccess field's value. +func (s *User) SetConsoleAccess(v bool) *User { + s.ConsoleAccess = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *User) SetGroups(v []*string) *User { + s.Groups = v + return s +} + +// SetPassword sets the Password field's value. +func (s *User) SetPassword(v string) *User { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *User) SetUsername(v string) *User { + s.Username = &v + return s +} + +// Returns information about the status of the changes pending for the ActiveMQ +// user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UserPendingChanges +type UserPendingChanges struct { + _ struct{} `type:"structure"` + + // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. + ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` + + // The list of groups (20 maximum) to which the ActiveMQ user belongs. This + // value can contain only alphanumeric characters, dashes, periods, underscores, + // and tildes (- . _ ~). This value must be 2-100 characters long. + Groups []*string `locationName:"groups" type:"list"` + + // Required. The type of change pending for the ActiveMQ user. Possible values: + // CREATE, UPDATE, DELETE + PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"` +} + +// String returns the string representation +func (s UserPendingChanges) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserPendingChanges) GoString() string { + return s.String() +} + +// SetConsoleAccess sets the ConsoleAccess field's value. +func (s *UserPendingChanges) SetConsoleAccess(v bool) *UserPendingChanges { + s.ConsoleAccess = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *UserPendingChanges) SetGroups(v []*string) *UserPendingChanges { + s.Groups = v + return s +} + +// SetPendingChange sets the PendingChange field's value. +func (s *UserPendingChanges) SetPendingChange(v string) *UserPendingChanges { + s.PendingChange = &v + return s +} + +// Returns a list of all ActiveMQ users. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UserSummary +type UserSummary struct { + _ struct{} `type:"structure"` + + // The type of change pending for the ActiveMQ user. Possible values: CREATE, + // UPDATE, DELETE + PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"` + + // Required. The username of the ActiveMQ user. This value can contain only + // alphanumeric characters, dashes, periods, underscores, and tildes (- . _ + // ~). This value must be 2-100 characters long. + Username *string `locationName:"username" type:"string"` +} + +// String returns the string representation +func (s UserSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserSummary) GoString() string { + return s.String() +} + +// SetPendingChange sets the PendingChange field's value. +func (s *UserSummary) SetPendingChange(v string) *UserSummary { + s.PendingChange = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *UserSummary) SetUsername(v string) *UserSummary { + s.Username = &v + return s +} + +// The scheduled time period relative to UTC during which Amazon MQ begins to +// apply pending updates or patches to the broker. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/WeeklyStartTime +type WeeklyStartTime struct { + _ struct{} `type:"structure"` + + // Required. The day of the week. Possible values: MONDAY, TUESDAY, WEDNESDAY, + // THURSDAY, FRIDAY, SATURDAY, SUNDAY + DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"` + + // Required. The time, in 24-hour format. + TimeOfDay *string `locationName:"timeOfDay" type:"string"` + + // The time zone, UTC by default, in either the Country/City format, or the + // UTC offset format. + TimeZone *string `locationName:"timeZone" type:"string"` +} + +// String returns the string representation +func (s WeeklyStartTime) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WeeklyStartTime) GoString() string { + return s.String() +} + +// SetDayOfWeek sets the DayOfWeek field's value. +func (s *WeeklyStartTime) SetDayOfWeek(v string) *WeeklyStartTime { + s.DayOfWeek = &v + return s +} + +// SetTimeOfDay sets the TimeOfDay field's value. +func (s *WeeklyStartTime) SetTimeOfDay(v string) *WeeklyStartTime { + s.TimeOfDay = &v + return s +} + +// SetTimeZone sets the TimeZone field's value. +func (s *WeeklyStartTime) SetTimeZone(v string) *WeeklyStartTime { + s.TimeZone = &v + return s +} + +// The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED, +// DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS +const ( + // BrokerStateCreationInProgress is a BrokerState enum value + BrokerStateCreationInProgress = "CREATION_IN_PROGRESS" + + // BrokerStateCreationFailed is a BrokerState enum value + BrokerStateCreationFailed = "CREATION_FAILED" + + // BrokerStateDeletionInProgress is a BrokerState enum value + BrokerStateDeletionInProgress = "DELETION_IN_PROGRESS" + + // BrokerStateRunning is a BrokerState enum value + BrokerStateRunning = "RUNNING" + + // BrokerStateRebootInProgress is a BrokerState enum value + BrokerStateRebootInProgress = "REBOOT_IN_PROGRESS" +) + +// The type of change pending for the ActiveMQ user. Possible values: CREATE, +// UPDATE, DELETE +const ( + // ChangeTypeCreate is a ChangeType enum value + ChangeTypeCreate = "CREATE" + + // ChangeTypeUpdate is a ChangeType enum value + ChangeTypeUpdate = "UPDATE" + + // ChangeTypeDelete is a ChangeType enum value + ChangeTypeDelete = "DELETE" +) + +const ( + // DayOfWeekMonday is a DayOfWeek enum value + DayOfWeekMonday = "MONDAY" + + // DayOfWeekTuesday is a DayOfWeek enum value + DayOfWeekTuesday = "TUESDAY" + + // DayOfWeekWednesday is a DayOfWeek enum value + DayOfWeekWednesday = "WEDNESDAY" + + // DayOfWeekThursday is a DayOfWeek enum value + DayOfWeekThursday = "THURSDAY" + + // DayOfWeekFriday is a DayOfWeek enum value + DayOfWeekFriday = "FRIDAY" + + // DayOfWeekSaturday is a DayOfWeek enum value + DayOfWeekSaturday = "SATURDAY" + + // DayOfWeekSunday is a DayOfWeek enum value + DayOfWeekSunday = "SUNDAY" +) + +// The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ +// SINGLE_INSTANCE creates a single-instance broker in a single Availability +// Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability. +const ( + // DeploymentModeSingleInstance is a DeploymentMode enum value + DeploymentModeSingleInstance = "SINGLE_INSTANCE" + + // DeploymentModeActiveStandbyMultiAz is a DeploymentMode enum value + DeploymentModeActiveStandbyMultiAz = "ACTIVE_STANDBY_MULTI_AZ" +) + +// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. +const ( + // EngineTypeActivemq is a EngineType enum value + EngineTypeActivemq = "ACTIVEMQ" +) + +// The reason for which the XML elements or attributes were sanitized. Possible +// values: DISALLOWED_ELEMENT_REMOVED, DISALLOWED_ATTRIBUTE_REMOVED, INVALID_ATTRIBUTE_VALUE_REMOVED +// DISALLOWED_ELEMENT_REMOVED shows that the provided element isn't allowed +// and has been removed. DISALLOWED_ATTRIBUTE_REMOVED shows that the provided +// attribute isn't allowed and has been removed. INVALID_ATTRIBUTE_VALUE_REMOVED +// shows that the provided value for the attribute isn't allowed and has been +// removed. +const ( + // SanitizationWarningReasonDisallowedElementRemoved is a SanitizationWarningReason enum value + SanitizationWarningReasonDisallowedElementRemoved = "DISALLOWED_ELEMENT_REMOVED" + + // SanitizationWarningReasonDisallowedAttributeRemoved is a SanitizationWarningReason enum value + SanitizationWarningReasonDisallowedAttributeRemoved = "DISALLOWED_ATTRIBUTE_REMOVED" + + // SanitizationWarningReasonInvalidAttributeValueRemoved is a SanitizationWarningReason enum value + SanitizationWarningReasonInvalidAttributeValueRemoved = "INVALID_ATTRIBUTE_VALUE_REMOVED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mq/doc.go b/vendor/github.com/aws/aws-sdk-go/service/mq/doc.go new file mode 100644 index 00000000000..70472ab6641 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mq/doc.go @@ -0,0 +1,31 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package mq provides the client and types for making API +// requests to AmazonMQ. +// +// Amazon MQ is a managed message broker service for Apache ActiveMQ that makes +// it easy to set up and operate message brokers in the cloud. A message broker +// allows software applications and components to communicate using various +// programming languages, operating systems, and formal messaging protocols. +// +// See https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27 for more information on this service. +// +// See mq package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/mq/ +// +// Using the Client +// +// To contact AmazonMQ with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AmazonMQ client MQ for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/mq/#New +package mq diff --git a/vendor/github.com/aws/aws-sdk-go/service/mq/errors.go b/vendor/github.com/aws/aws-sdk-go/service/mq/errors.go new file mode 100644 index 00000000000..064fc8e5b71 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mq/errors.go @@ -0,0 +1,42 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package mq + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // Returns information about an error. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // Returns information about an error. + ErrCodeConflictException = "ConflictException" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + // + // Returns information about an error. + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeInternalServerErrorException for service response error code + // "InternalServerErrorException". + // + // Returns information about an error. + ErrCodeInternalServerErrorException = "InternalServerErrorException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // Returns information about an error. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // Returns information about an error. + ErrCodeUnauthorizedException = "UnauthorizedException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mq/service.go b/vendor/github.com/aws/aws-sdk-go/service/mq/service.go new file mode 100644 index 00000000000..91b17544c4d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mq/service.go @@ -0,0 +1,97 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package mq + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// MQ provides the API operation methods for making requests to +// AmazonMQ. See this package's package overview docs +// for details on the service. +// +// MQ methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type MQ struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "mq" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the MQ client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a MQ client from just a session. +// svc := mq.New(mySession) +// +// // Create a MQ client with additional configuration +// svc := mq.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *MQ { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *MQ { + if len(signingName) == 0 { + signingName = "mq" + } + svc := &MQ{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2017-11-27", + JSONVersion: "1.1", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a MQ operation and runs any +// custom request initialization. +func (c *MQ) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/vendor.json b/vendor/vendor.json index 1d1af68b070..14713c96751 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -740,6 +740,14 @@ "version": "v1.12.35", "versionExact": "v1.12.35" }, + { + "checksumSHA1": "75LM8oENH3zGsQhNKuwIfEjXRDw=", + "path": "github.com/aws/aws-sdk-go/service/mq", + "revision": "80bf27afd5602f55c398d43621b9900583df3661", + "revisionTime": "2017-11-29T07:44:19Z", + "version": "v1.12.35", + "versionExact": "v1.12.35" + }, { "checksumSHA1": "xkNWwN2rw+szg+zXAxCun34zxhs=", "path": "github.com/aws/aws-sdk-go/service/opsworks",