mirror of
https://github.com/rclone/rclone.git
synced 2025-12-22 03:03:20 +00:00
vendor: update all dependencies
* Update all dependencies * Remove all `[[constraint]]` from Gopkg.toml * Add in the minimum number of `[[override]]` to build * Remove go get of github.com/inconshreveable/mousetrap as it is vendored * Update docs with new policy on constraints
This commit is contained in:
651
vendor/github.com/aws/aws-sdk-go/service/acm/api.go
generated
vendored
651
vendor/github.com/aws/aws-sdk-go/service/acm/api.go
generated
vendored
@@ -17,7 +17,7 @@ const opAddTagsToCertificate = "AddTagsToCertificate"
|
||||
|
||||
// AddTagsToCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTagsToCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -59,7 +59,7 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req
|
||||
|
||||
// AddTagsToCertificate API operation for AWS Certificate Manager.
|
||||
//
|
||||
// Adds one or more tags to an ACM Certificate. Tags are labels that you can
|
||||
// Adds one or more tags to an ACM certificate. Tags are labels that you can
|
||||
// use to identify and organize your AWS resources. Each tag consists of a key
|
||||
// and an optional value. You specify the certificate on input by its Amazon
|
||||
// Resource Name (ARN). You specify the tag by using a key-value pair.
|
||||
@@ -69,9 +69,9 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req
|
||||
// certificates if you want to filter for a common relationship among those
|
||||
// certificates. Similarly, you can apply the same tag to multiple resources
|
||||
// if you want to specify a relationship among those resources. For example,
|
||||
// you can add the same tag to an ACM Certificate and an Elastic Load Balancing
|
||||
// you can add the same tag to an ACM certificate and an Elastic Load Balancing
|
||||
// load balancer to indicate that they are both used by the same website. For
|
||||
// more information, see Tagging ACM Certificates (http://docs.aws.amazon.com/acm/latest/userguide/tags.html).
|
||||
// more information, see Tagging ACM certificates (http://docs.aws.amazon.com/acm/latest/userguide/tags.html).
|
||||
//
|
||||
// To remove one or more tags, use the RemoveTagsFromCertificate action. To
|
||||
// view all of the tags that have been applied to the certificate, use the ListTagsForCertificate
|
||||
@@ -86,7 +86,7 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account, or the
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
@@ -125,7 +125,7 @@ const opDeleteCertificate = "DeleteCertificate"
|
||||
|
||||
// DeleteCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -173,7 +173,7 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ
|
||||
// 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.
|
||||
// You cannot delete an ACM certificate that is being used by another AWS service.
|
||||
// To delete a certificate that is in use, the certificate association must
|
||||
// first be removed.
|
||||
//
|
||||
@@ -186,7 +186,7 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account, or the
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeResourceInUseException "ResourceInUseException"
|
||||
@@ -222,7 +222,7 @@ const opDescribeCertificate = "DescribeCertificate"
|
||||
|
||||
// DescribeCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -262,7 +262,7 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req *
|
||||
|
||||
// DescribeCertificate API operation for AWS Certificate Manager.
|
||||
//
|
||||
// Returns detailed metadata about the specified ACM Certificate.
|
||||
// Returns detailed metadata about the specified ACM 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
|
||||
@@ -273,7 +273,7 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req *
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account, or the
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
@@ -301,11 +301,106 @@ func (c *ACM) DescribeCertificateWithContext(ctx aws.Context, input *DescribeCer
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opExportCertificate = "ExportCertificate"
|
||||
|
||||
// ExportCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ExportCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// 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 ExportCertificate for more information on using the ExportCertificate
|
||||
// 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 ExportCertificateRequest method.
|
||||
// req, resp := client.ExportCertificateRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate
|
||||
func (c *ACM) ExportCertificateRequest(input *ExportCertificateInput) (req *request.Request, output *ExportCertificateOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opExportCertificate,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &ExportCertificateInput{}
|
||||
}
|
||||
|
||||
output = &ExportCertificateOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// ExportCertificate API operation for AWS Certificate Manager.
|
||||
//
|
||||
// Exports a private certificate issued by a private certificate authority (CA)
|
||||
// for use anywhere. You can export the certificate, the certificate chain,
|
||||
// and the encrypted private key associated with the public key embedded in
|
||||
// the certificate. You must store the private key securely. The private key
|
||||
// is a 2048 bit RSA key. You must provide a passphrase for the private key
|
||||
// when exporting it. You can use the following OpenSSL command to decrypt it
|
||||
// later. Provide the passphrase when prompted.
|
||||
//
|
||||
// openssl rsa -in encrypted_key.pem -out decrypted_key.pem
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for AWS Certificate Manager's
|
||||
// API operation ExportCertificate for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeRequestInProgressException "RequestInProgressException"
|
||||
// The certificate request is in process and the certificate in your account
|
||||
// has not yet been issued.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate
|
||||
func (c *ACM) ExportCertificate(input *ExportCertificateInput) (*ExportCertificateOutput, error) {
|
||||
req, out := c.ExportCertificateRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// ExportCertificateWithContext is the same as ExportCertificate with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See ExportCertificate 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 *ACM) ExportCertificateWithContext(ctx aws.Context, input *ExportCertificateInput, opts ...request.Option) (*ExportCertificateOutput, error) {
|
||||
req, out := c.ExportCertificateRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opGetCertificate = "GetCertificate"
|
||||
|
||||
// GetCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -361,7 +456,7 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account, or the
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeRequestInProgressException "RequestInProgressException"
|
||||
@@ -397,7 +492,7 @@ const opImportCertificate = "ImportCertificate"
|
||||
|
||||
// ImportCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ImportCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -475,13 +570,17 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ
|
||||
// * To import a new certificate, omit the CertificateArn argument. Include
|
||||
// this argument 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, the certificate chain, and the private key
|
||||
// by their file names preceded by file://. For example, you can specify
|
||||
// a certificate saved in the C:\temp folder as file://C:\temp\certificate_to_import.pem.
|
||||
// * When you import a certificate by using the CLI, you must specify the
|
||||
// certificate, the certificate chain, and the private key by their file
|
||||
// names preceded by file://. For example, you can specify a certificate
|
||||
// saved in the C:\temp folder as file://C:\temp\certificate_to_import.pem.
|
||||
// If you are making an HTTP or HTTPS Query request, include these arguments
|
||||
// as BLOBs.
|
||||
//
|
||||
// * When you import a certificate by using an SDK, you must specify the
|
||||
// certificate, the certificate chain, and the private key files in the manner
|
||||
// required by the programming language you're using.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
@@ -494,15 +593,11 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account, or the
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// An ACM limit has been exceeded. For example, you may have input more domains
|
||||
// than are allowed or you've requested too many certificates for your account.
|
||||
// See the exception message returned by ACM to determine which limit you have
|
||||
// violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html)
|
||||
// topic.
|
||||
// An ACM limit has been exceeded.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate
|
||||
func (c *ACM) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) {
|
||||
@@ -530,7 +625,7 @@ const opListCertificates = "ListCertificates"
|
||||
|
||||
// ListCertificatesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListCertificates operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -662,7 +757,7 @@ const opListTagsForCertificate = "ListTagsForCertificate"
|
||||
|
||||
// ListTagsForCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTagsForCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -702,9 +797,9 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput)
|
||||
|
||||
// ListTagsForCertificate API operation for AWS Certificate Manager.
|
||||
//
|
||||
// Lists the tags that have been applied to the ACM Certificate. Use the certificate's
|
||||
// Lists the tags that have been applied to the ACM certificate. Use the certificate's
|
||||
// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an
|
||||
// ACM Certificate, use the AddTagsToCertificate action. To delete a tag, use
|
||||
// ACM certificate, use the AddTagsToCertificate action. To delete a tag, use
|
||||
// the RemoveTagsFromCertificate action.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
@@ -716,7 +811,7 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput)
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account, or the
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
@@ -748,7 +843,7 @@ const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate"
|
||||
|
||||
// RemoveTagsFromCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTagsFromCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -790,13 +885,13 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI
|
||||
|
||||
// RemoveTagsFromCertificate API operation for AWS Certificate Manager.
|
||||
//
|
||||
// Remove one or more tags from an ACM Certificate. A tag consists of a key-value
|
||||
// Remove one or more tags from an ACM certificate. A tag consists of a key-value
|
||||
// pair. If you do not specify the value portion of the tag when calling this
|
||||
// function, the tag will be removed regardless of value. If you specify a value,
|
||||
// the tag is removed only if it is associated with the specified value.
|
||||
//
|
||||
// To add tags to a certificate, use the AddTagsToCertificate action. To view
|
||||
// all of the tags that have been applied to a specific ACM Certificate, use
|
||||
// all of the tags that have been applied to a specific ACM certificate, use
|
||||
// the ListTagsForCertificate action.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
@@ -808,7 +903,7 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account, or the
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
@@ -844,7 +939,7 @@ const opRequestCertificate = "RequestCertificate"
|
||||
|
||||
// RequestCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RequestCertificate operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -884,20 +979,18 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re
|
||||
|
||||
// RequestCertificate API operation for AWS Certificate Manager.
|
||||
//
|
||||
// Requests an ACM Certificate for use with other AWS services. To request an
|
||||
// ACM Certificate, you must specify the fully qualified domain name (FQDN)
|
||||
// for your site in the DomainName parameter. You can also specify additional
|
||||
// FQDNs in the SubjectAlternativeNames parameter if users can reach your site
|
||||
// by using other names.
|
||||
// Requests an ACM certificate for use with other AWS services. To request an
|
||||
// ACM certificate, you must specify a fully qualified domain name (FQDN) in
|
||||
// the DomainName parameter. You can also specify additional FQDNs in the SubjectAlternativeNames
|
||||
// parameter.
|
||||
//
|
||||
// For each domain name you specify, email is sent to the domain owner to request
|
||||
// approval to issue the certificate. Email is sent to three registered contact
|
||||
// addresses in the WHOIS database and to five common system administration
|
||||
// addresses formed from the DomainName you enter or the optional ValidationDomain
|
||||
// parameter. For more information, see Validate Domain Ownership (http://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate.html).
|
||||
//
|
||||
// After receiving approval from the domain owner, the ACM Certificate is issued.
|
||||
// For more information, see the AWS Certificate Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/).
|
||||
// If you are requesting a private certificate, domain validation is not required.
|
||||
// If you are requesting a public certificate, each domain name that you specify
|
||||
// must be validated to verify that you own or control the domain. You can use
|
||||
// DNS validation (http://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html)
|
||||
// or email validation (http://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html).
|
||||
// We recommend that you use DNS validation. ACM issues public certificates
|
||||
// after receiving approval from the domain owner.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
@@ -908,15 +1001,14 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// An ACM limit has been exceeded. For example, you may have input more domains
|
||||
// than are allowed or you've requested too many certificates for your account.
|
||||
// See the exception message returned by ACM to determine which limit you have
|
||||
// violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html)
|
||||
// topic.
|
||||
// An ACM limit has been exceeded.
|
||||
//
|
||||
// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException"
|
||||
// One or more values in the DomainValidationOption structure is incorrect.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate
|
||||
func (c *ACM) RequestCertificate(input *RequestCertificateInput) (*RequestCertificateOutput, error) {
|
||||
req, out := c.RequestCertificateRequest(input)
|
||||
@@ -943,7 +1035,7 @@ const opResendValidationEmail = "ResendValidationEmail"
|
||||
|
||||
// ResendValidationEmailRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ResendValidationEmail operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -986,12 +1078,12 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r
|
||||
// ResendValidationEmail API operation for AWS Certificate Manager.
|
||||
//
|
||||
// Resends the email that requests domain ownership validation. The domain owner
|
||||
// or an authorized representative must approve the ACM Certificate before it
|
||||
// or an authorized representative must approve the ACM certificate before it
|
||||
// can be issued. The certificate can be approved by clicking a link in the
|
||||
// mail to navigate to the Amazon certificate approval website and then clicking
|
||||
// I Approve. However, the validation email can be blocked by spam filters.
|
||||
// Therefore, if you do not receive the original mail, you can request that
|
||||
// the mail be resent within 72 hours of requesting the ACM Certificate. If
|
||||
// the mail be resent within 72 hours of requesting the ACM certificate. If
|
||||
// more than 72 hours have elapsed since your original request or since your
|
||||
// last attempt to resend validation mail, you must request a new certificate.
|
||||
// For more information about setting up your contact email addresses, see Configure
|
||||
@@ -1006,14 +1098,11 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account, or the
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeInvalidStateException "InvalidStateException"
|
||||
// Processing has reached an invalid state. For example, this exception can
|
||||
// occur if the specified domain is not using email validation, or the current
|
||||
// certificate status does not permit the requested operation. See the exception
|
||||
// message returned by ACM to determine which state is not valid.
|
||||
// Processing has reached an invalid state.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
||||
@@ -1043,10 +1132,104 @@ func (c *ACM) ResendValidationEmailWithContext(ctx aws.Context, input *ResendVal
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opUpdateCertificateOptions = "UpdateCertificateOptions"
|
||||
|
||||
// UpdateCertificateOptionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateCertificateOptions operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// 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 UpdateCertificateOptions for more information on using the UpdateCertificateOptions
|
||||
// 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 UpdateCertificateOptionsRequest method.
|
||||
// req, resp := client.UpdateCertificateOptionsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions
|
||||
func (c *ACM) UpdateCertificateOptionsRequest(input *UpdateCertificateOptionsInput) (req *request.Request, output *UpdateCertificateOptionsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateCertificateOptions,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &UpdateCertificateOptionsInput{}
|
||||
}
|
||||
|
||||
output = &UpdateCertificateOptionsOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateCertificateOptions API operation for AWS Certificate Manager.
|
||||
//
|
||||
// Updates a certificate. Currently, you can use this function to specify whether
|
||||
// to opt in to or out of recording your certificate in a certificate transparency
|
||||
// log. For more information, see Opting Out of Certificate Transparency Logging
|
||||
// (http://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency).
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for AWS Certificate Manager's
|
||||
// API operation UpdateCertificateOptions for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified certificate cannot be found in the caller's account or the
|
||||
// caller's account cannot be found.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// An ACM limit has been exceeded.
|
||||
//
|
||||
// * ErrCodeInvalidStateException "InvalidStateException"
|
||||
// Processing has reached an invalid state.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions
|
||||
func (c *ACM) UpdateCertificateOptions(input *UpdateCertificateOptionsInput) (*UpdateCertificateOptionsOutput, error) {
|
||||
req, out := c.UpdateCertificateOptionsRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// UpdateCertificateOptionsWithContext is the same as UpdateCertificateOptions with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See UpdateCertificateOptions 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 *ACM) UpdateCertificateOptionsWithContext(ctx aws.Context, input *UpdateCertificateOptionsInput, opts ...request.Option) (*UpdateCertificateOptionsOutput, error) {
|
||||
req, out := c.UpdateCertificateOptionsRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
type AddTagsToCertificateInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// String that contains the ARN of the ACM Certificate to which the tag is to
|
||||
// String that contains the ARN of the ACM certificate to which the tag is to
|
||||
// be applied. This must be of the form:
|
||||
//
|
||||
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
||||
@@ -1141,6 +1324,12 @@ type CertificateDetail struct {
|
||||
// in the AWS General Reference.
|
||||
CertificateArn *string `min:"20" type:"string"`
|
||||
|
||||
// The Amazon Resource Name (ARN) of the ACM PCA private certificate authority
|
||||
// (CA) that issued the certificate. This has the following format:
|
||||
//
|
||||
// arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
|
||||
CertificateAuthorityArn *string `min:"20" type:"string"`
|
||||
|
||||
// The time at which the certificate was requested. This value exists only when
|
||||
// the certificate type is AMAZON_ISSUED.
|
||||
CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
@@ -1195,6 +1384,16 @@ type CertificateDetail struct {
|
||||
// The time before which the certificate is not valid.
|
||||
NotBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
|
||||
// Value that specifies whether to add the certificate to a transparency log.
|
||||
// Certificate transparency makes it possible to detect SSL certificates that
|
||||
// have been mistakenly or maliciously issued. A browser might respond to certificate
|
||||
// that has not been logged by showing an error message. The logs are cryptographically
|
||||
// secure.
|
||||
Options *CertificateOptions `type:"structure"`
|
||||
|
||||
// Specifies whether the certificate is eligible for renewal.
|
||||
RenewalEligibility *string `type:"string" enum:"RenewalEligibility"`
|
||||
|
||||
// Contains information about the status of ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
|
||||
// for the certificate. This field exists only when the certificate type is
|
||||
// AMAZON_ISSUED.
|
||||
@@ -1254,6 +1453,12 @@ func (s *CertificateDetail) SetCertificateArn(v string) *CertificateDetail {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
|
||||
func (s *CertificateDetail) SetCertificateAuthorityArn(v string) *CertificateDetail {
|
||||
s.CertificateAuthorityArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the CreatedAt field's value.
|
||||
func (s *CertificateDetail) SetCreatedAt(v time.Time) *CertificateDetail {
|
||||
s.CreatedAt = &v
|
||||
@@ -1332,6 +1537,18 @@ func (s *CertificateDetail) SetNotBefore(v time.Time) *CertificateDetail {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetOptions sets the Options field's value.
|
||||
func (s *CertificateDetail) SetOptions(v *CertificateOptions) *CertificateDetail {
|
||||
s.Options = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRenewalEligibility sets the RenewalEligibility field's value.
|
||||
func (s *CertificateDetail) SetRenewalEligibility(v string) *CertificateDetail {
|
||||
s.RenewalEligibility = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRenewalSummary sets the RenewalSummary field's value.
|
||||
func (s *CertificateDetail) SetRenewalSummary(v *RenewalSummary) *CertificateDetail {
|
||||
s.RenewalSummary = v
|
||||
@@ -1386,6 +1603,37 @@ func (s *CertificateDetail) SetType(v string) *CertificateDetail {
|
||||
return s
|
||||
}
|
||||
|
||||
// Structure that contains options for your certificate. Currently, you can
|
||||
// use this only to specify whether to opt in to or out of certificate transparency
|
||||
// logging. Some browsers require that public certificates issued for your domain
|
||||
// be recorded in a log. Certificates that are not logged typically generate
|
||||
// a browser error. Transparency makes it possible for you to detect SSL/TLS
|
||||
// certificates that have been mistakenly or maliciously issued for your domain.
|
||||
// For general information, see Certificate Transparency Logging (http://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency).
|
||||
type CertificateOptions struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// You can opt out of certificate transparency logging by specifying the DISABLED
|
||||
// option. Opt in by specifying ENABLED.
|
||||
CertificateTransparencyLoggingPreference *string `type:"string" enum:"CertificateTransparencyLoggingPreference"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s CertificateOptions) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s CertificateOptions) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetCertificateTransparencyLoggingPreference sets the CertificateTransparencyLoggingPreference field's value.
|
||||
func (s *CertificateOptions) SetCertificateTransparencyLoggingPreference(v string) *CertificateOptions {
|
||||
s.CertificateTransparencyLoggingPreference = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// This structure is returned in the response object of ListCertificates action.
|
||||
type CertificateSummary struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -1428,7 +1676,7 @@ func (s *CertificateSummary) SetDomainName(v string) *CertificateSummary {
|
||||
type DeleteCertificateInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// String that contains the ARN of the ACM Certificate to be deleted. This must
|
||||
// String that contains the ARN of the ACM certificate to be deleted. This must
|
||||
// be of the form:
|
||||
//
|
||||
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
||||
@@ -1489,7 +1737,7 @@ func (s DeleteCertificateOutput) GoString() string {
|
||||
type DescribeCertificateInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The Amazon Resource Name (ARN) of the ACM Certificate. The ARN must have
|
||||
// The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have
|
||||
// the following form:
|
||||
//
|
||||
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
||||
@@ -1711,6 +1959,115 @@ func (s *DomainValidationOption) SetValidationDomain(v string) *DomainValidation
|
||||
return s
|
||||
}
|
||||
|
||||
type ExportCertificateInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// An Amazon Resource Name (ARN) of the issued certificate. This must be of
|
||||
// the form:
|
||||
//
|
||||
// arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012
|
||||
//
|
||||
// CertificateArn is a required field
|
||||
CertificateArn *string `min:"20" type:"string" required:"true"`
|
||||
|
||||
// Passphrase to associate with the encrypted exported private key. If you want
|
||||
// to later decrypt the private key, you must have the passphrase. You can use
|
||||
// the following OpenSSL command to decrypt a private key:
|
||||
//
|
||||
// openssl rsa -in encrypted_key.pem -out decrypted_key.pem
|
||||
//
|
||||
// Passphrase is automatically base64 encoded/decoded by the SDK.
|
||||
//
|
||||
// Passphrase is a required field
|
||||
Passphrase []byte `min:"4" type:"blob" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ExportCertificateInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ExportCertificateInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *ExportCertificateInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "ExportCertificateInput"}
|
||||
if s.CertificateArn == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
|
||||
}
|
||||
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
|
||||
}
|
||||
if s.Passphrase == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Passphrase"))
|
||||
}
|
||||
if s.Passphrase != nil && len(s.Passphrase) < 4 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Passphrase", 4))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetCertificateArn sets the CertificateArn field's value.
|
||||
func (s *ExportCertificateInput) SetCertificateArn(v string) *ExportCertificateInput {
|
||||
s.CertificateArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPassphrase sets the Passphrase field's value.
|
||||
func (s *ExportCertificateInput) SetPassphrase(v []byte) *ExportCertificateInput {
|
||||
s.Passphrase = v
|
||||
return s
|
||||
}
|
||||
|
||||
type ExportCertificateOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The base64 PEM-encoded certificate.
|
||||
Certificate *string `min:"1" type:"string"`
|
||||
|
||||
// The base64 PEM-encoded certificate chain. This does not include the certificate
|
||||
// that you are exporting.
|
||||
CertificateChain *string `min:"1" type:"string"`
|
||||
|
||||
// The PEM-encoded private key associated with the public key in the certificate.
|
||||
PrivateKey *string `min:"1" type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ExportCertificateOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ExportCertificateOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetCertificate sets the Certificate field's value.
|
||||
func (s *ExportCertificateOutput) SetCertificate(v string) *ExportCertificateOutput {
|
||||
s.Certificate = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetCertificateChain sets the CertificateChain field's value.
|
||||
func (s *ExportCertificateOutput) SetCertificateChain(v string) *ExportCertificateOutput {
|
||||
s.CertificateChain = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPrivateKey sets the PrivateKey field's value.
|
||||
func (s *ExportCertificateOutput) SetPrivateKey(v string) *ExportCertificateOutput {
|
||||
s.PrivateKey = &v
|
||||
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.
|
||||
@@ -1858,7 +2215,7 @@ func (s *GetCertificateInput) SetCertificateArn(v string) *GetCertificateInput {
|
||||
type GetCertificateOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// String that contains the ACM Certificate represented by the ARN specified
|
||||
// String that contains the ACM certificate represented by the ARN specified
|
||||
// at input.
|
||||
Certificate *string `min:"1" type:"string"`
|
||||
|
||||
@@ -2102,7 +2459,7 @@ func (s *ListCertificatesInput) SetNextToken(v string) *ListCertificatesInput {
|
||||
type ListCertificatesOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A list of ACM Certificates.
|
||||
// A list of ACM certificates.
|
||||
CertificateSummaryList []*CertificateSummary `type:"list"`
|
||||
|
||||
// When the list is truncated, this value is present and contains the value
|
||||
@@ -2135,7 +2492,7 @@ func (s *ListCertificatesOutput) SetNextToken(v string) *ListCertificatesOutput
|
||||
type ListTagsForCertificateInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// String that contains the ARN of the ACM Certificate for which you want to
|
||||
// String that contains the ARN of the ACM certificate for which you want to
|
||||
// list the tags. This must have the following form:
|
||||
//
|
||||
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
||||
@@ -2337,10 +2694,20 @@ func (s *RenewalSummary) SetRenewalStatus(v string) *RenewalSummary {
|
||||
type RequestCertificateInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Fully qualified domain name (FQDN), such as www.example.com, of the site
|
||||
// that you want to secure with an ACM Certificate. Use an asterisk (*) to create
|
||||
// a wildcard certificate that protects several sites in the same domain. For
|
||||
// example, *.example.com protects www.example.com, site.example.com, and images.example.com.
|
||||
// The Amazon Resource Name (ARN) of the private certificate authority (CA)
|
||||
// that will be used to issue the certificate. If you do not provide an ARN
|
||||
// and you are trying to request a private certificate, ACM will attempt to
|
||||
// issue a public certificate. For more information about private CAs, see the
|
||||
// AWS Certificate Manager Private Certificate Authority (PCA) (http://docs.aws.amazon.com/acm-pca/latest/userguide/PcaWelcome.html)
|
||||
// user guide. The ARN must have the following form:
|
||||
//
|
||||
// arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
|
||||
CertificateAuthorityArn *string `min:"20" type:"string"`
|
||||
|
||||
// Fully qualified domain name (FQDN), such as www.example.com, that you want
|
||||
// to secure with an ACM certificate. Use an asterisk (*) to create a wildcard
|
||||
// certificate that protects several sites in the same domain. For example,
|
||||
// *.example.com protects www.example.com, site.example.com, and images.example.com.
|
||||
//
|
||||
// The first domain name you enter cannot exceed 63 octets, including periods.
|
||||
// Each subsequent Subject Alternative Name (SAN), however, can be up to 253
|
||||
@@ -2361,11 +2728,19 @@ type RequestCertificateInput struct {
|
||||
// requesting multiple certificates.
|
||||
IdempotencyToken *string `min:"1" type:"string"`
|
||||
|
||||
// Currently, you can use this parameter to specify whether to add the certificate
|
||||
// to a certificate transparency log. Certificate transparency makes it possible
|
||||
// to detect SSL/TLS certificates that have been mistakenly or maliciously issued.
|
||||
// Certificates that have not been logged typically produce an error message
|
||||
// in a browser. For more information, see Opting Out of Certificate Transparency
|
||||
// Logging (http://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency).
|
||||
Options *CertificateOptions `type:"structure"`
|
||||
|
||||
// Additional FQDNs to be included in the Subject Alternative Name extension
|
||||
// of the ACM Certificate. For example, add the name www.example.net to a certificate
|
||||
// of the ACM certificate. For example, add the name www.example.net to a certificate
|
||||
// for which the DomainName field is www.example.com if users can reach your
|
||||
// site by using either name. The maximum number of domain names that you can
|
||||
// add to an ACM Certificate is 100. However, the initial limit is 10 domain
|
||||
// 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).
|
||||
//
|
||||
@@ -2385,7 +2760,10 @@ type RequestCertificateInput struct {
|
||||
// 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.
|
||||
// The method you want to use if you are requesting a public certificate to
|
||||
// validate that you own or control domain. You can validate with DNS (http://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html)
|
||||
// or validate with email (http://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html).
|
||||
// We recommend that you use DNS validation.
|
||||
ValidationMethod *string `type:"string" enum:"ValidationMethod"`
|
||||
}
|
||||
|
||||
@@ -2402,6 +2780,9 @@ func (s RequestCertificateInput) GoString() string {
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *RequestCertificateInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "RequestCertificateInput"}
|
||||
if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 20 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 20))
|
||||
}
|
||||
if s.DomainName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("DomainName"))
|
||||
}
|
||||
@@ -2434,6 +2815,12 @@ func (s *RequestCertificateInput) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
|
||||
func (s *RequestCertificateInput) SetCertificateAuthorityArn(v string) *RequestCertificateInput {
|
||||
s.CertificateAuthorityArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetDomainName sets the DomainName field's value.
|
||||
func (s *RequestCertificateInput) SetDomainName(v string) *RequestCertificateInput {
|
||||
s.DomainName = &v
|
||||
@@ -2452,6 +2839,12 @@ func (s *RequestCertificateInput) SetIdempotencyToken(v string) *RequestCertific
|
||||
return s
|
||||
}
|
||||
|
||||
// SetOptions sets the Options field's value.
|
||||
func (s *RequestCertificateInput) SetOptions(v *CertificateOptions) *RequestCertificateInput {
|
||||
s.Options = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value.
|
||||
func (s *RequestCertificateInput) SetSubjectAlternativeNames(v []*string) *RequestCertificateInput {
|
||||
s.SubjectAlternativeNames = v
|
||||
@@ -2703,6 +3096,81 @@ func (s *Tag) SetValue(v string) *Tag {
|
||||
return s
|
||||
}
|
||||
|
||||
type UpdateCertificateOptionsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// ARN of the requested certificate to update. This must be of the form:
|
||||
//
|
||||
// arn:aws:acm:us-east-1:account:certificate/12345678-1234-1234-1234-123456789012
|
||||
//
|
||||
// CertificateArn is a required field
|
||||
CertificateArn *string `min:"20" type:"string" required:"true"`
|
||||
|
||||
// Use to update the options for your certificate. Currently, you can specify
|
||||
// whether to add your certificate to a transparency log. Certificate transparency
|
||||
// makes it possible to detect SSL/TLS certificates that have been mistakenly
|
||||
// or maliciously issued. Certificates that have not been logged typically produce
|
||||
// an error message in a browser.
|
||||
//
|
||||
// Options is a required field
|
||||
Options *CertificateOptions `type:"structure" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s UpdateCertificateOptionsInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s UpdateCertificateOptionsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *UpdateCertificateOptionsInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "UpdateCertificateOptionsInput"}
|
||||
if s.CertificateArn == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
|
||||
}
|
||||
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
|
||||
}
|
||||
if s.Options == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Options"))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetCertificateArn sets the CertificateArn field's value.
|
||||
func (s *UpdateCertificateOptionsInput) SetCertificateArn(v string) *UpdateCertificateOptionsInput {
|
||||
s.CertificateArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetOptions sets the Options field's value.
|
||||
func (s *UpdateCertificateOptionsInput) SetOptions(v *CertificateOptions) *UpdateCertificateOptionsInput {
|
||||
s.Options = v
|
||||
return s
|
||||
}
|
||||
|
||||
type UpdateCertificateOptionsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s UpdateCertificateOptionsOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s UpdateCertificateOptionsOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
const (
|
||||
// CertificateStatusPendingValidation is a CertificateStatus enum value
|
||||
CertificateStatusPendingValidation = "PENDING_VALIDATION"
|
||||
@@ -2726,12 +3194,23 @@ const (
|
||||
CertificateStatusFailed = "FAILED"
|
||||
)
|
||||
|
||||
const (
|
||||
// CertificateTransparencyLoggingPreferenceEnabled is a CertificateTransparencyLoggingPreference enum value
|
||||
CertificateTransparencyLoggingPreferenceEnabled = "ENABLED"
|
||||
|
||||
// CertificateTransparencyLoggingPreferenceDisabled is a CertificateTransparencyLoggingPreference enum value
|
||||
CertificateTransparencyLoggingPreferenceDisabled = "DISABLED"
|
||||
)
|
||||
|
||||
const (
|
||||
// CertificateTypeImported is a CertificateType enum value
|
||||
CertificateTypeImported = "IMPORTED"
|
||||
|
||||
// CertificateTypeAmazonIssued is a CertificateType enum value
|
||||
CertificateTypeAmazonIssued = "AMAZON_ISSUED"
|
||||
|
||||
// CertificateTypePrivate is a CertificateType enum value
|
||||
CertificateTypePrivate = "PRIVATE"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -2799,6 +3278,24 @@ const (
|
||||
// FailureReasonCaaError is a FailureReason enum value
|
||||
FailureReasonCaaError = "CAA_ERROR"
|
||||
|
||||
// FailureReasonPcaLimitExceeded is a FailureReason enum value
|
||||
FailureReasonPcaLimitExceeded = "PCA_LIMIT_EXCEEDED"
|
||||
|
||||
// FailureReasonPcaInvalidArn is a FailureReason enum value
|
||||
FailureReasonPcaInvalidArn = "PCA_INVALID_ARN"
|
||||
|
||||
// FailureReasonPcaInvalidState is a FailureReason enum value
|
||||
FailureReasonPcaInvalidState = "PCA_INVALID_STATE"
|
||||
|
||||
// FailureReasonPcaRequestFailed is a FailureReason enum value
|
||||
FailureReasonPcaRequestFailed = "PCA_REQUEST_FAILED"
|
||||
|
||||
// FailureReasonPcaResourceNotFound is a FailureReason enum value
|
||||
FailureReasonPcaResourceNotFound = "PCA_RESOURCE_NOT_FOUND"
|
||||
|
||||
// FailureReasonPcaInvalidArgs is a FailureReason enum value
|
||||
FailureReasonPcaInvalidArgs = "PCA_INVALID_ARGS"
|
||||
|
||||
// FailureReasonOther is a FailureReason enum value
|
||||
FailureReasonOther = "OTHER"
|
||||
)
|
||||
@@ -2863,6 +3360,14 @@ const (
|
||||
RecordTypeCname = "CNAME"
|
||||
)
|
||||
|
||||
const (
|
||||
// RenewalEligibilityEligible is a RenewalEligibility enum value
|
||||
RenewalEligibilityEligible = "ELIGIBLE"
|
||||
|
||||
// RenewalEligibilityIneligible is a RenewalEligibility enum value
|
||||
RenewalEligibilityIneligible = "INELIGIBLE"
|
||||
)
|
||||
|
||||
const (
|
||||
// RenewalStatusPendingAutoRenewal is a RenewalStatus enum value
|
||||
RenewalStatusPendingAutoRenewal = "PENDING_AUTO_RENEWAL"
|
||||
|
||||
Reference in New Issue
Block a user