2017-04-05 09:45:27 +02:00
|
|
|
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
2016-08-21 20:44:53 +02:00
|
|
|
|
|
|
|
package acm
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
|
2017-04-05 09:45:27 +02:00
|
|
|
"github.com/aws/aws-sdk-go/aws"
|
2016-08-21 20:44:53 +02:00
|
|
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
|
|
|
"github.com/aws/aws-sdk-go/aws/request"
|
|
|
|
"github.com/aws/aws-sdk-go/private/protocol"
|
|
|
|
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
const opAddTagsToCertificate = "AddTagsToCertificate"
|
|
|
|
|
|
|
|
// AddTagsToCertificateRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the AddTagsToCertificate operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See AddTagsToCertificate for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the AddTagsToCertificate method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the AddTagsToCertificateRequest method.
|
|
|
|
// req, resp := client.AddTagsToCertificateRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req *request.Request, output *AddTagsToCertificateOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opAddTagsToCertificate,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &AddTagsToCertificateInput{}
|
|
|
|
}
|
|
|
|
|
2017-01-23 22:22:31 +01:00
|
|
|
output = &AddTagsToCertificateOutput{}
|
2016-08-21 20:44:53 +02:00
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
|
|
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// AddTagsToCertificate API operation for AWS Certificate Manager.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
// You can apply a tag to just one certificate if you want to identify a specific
|
|
|
|
// characteristic of that certificate, or you can apply the same tag to multiple
|
|
|
|
// 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
|
|
|
|
// 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).
|
|
|
|
//
|
|
|
|
// To remove one or more tags, use the RemoveTagsFromCertificate action. To
|
|
|
|
// view all of the tags that have been applied to the certificate, use the ListTagsForCertificate
|
|
|
|
// action.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation AddTagsToCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The specified certificate cannot be found in the caller's account, or the
|
|
|
|
// caller's account cannot be found.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidArnException "InvalidArnException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidTagException "InvalidTagException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// One or both of the values that make up the key-value pair is not valid. For
|
|
|
|
// example, you cannot specify a tag value that begins with aws:.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeTooManyTagsException "TooManyTagsException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The request contains too many tags. Try the request again with fewer tags.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) AddTagsToCertificate(input *AddTagsToCertificateInput) (*AddTagsToCertificateOutput, error) {
|
|
|
|
req, out := c.AddTagsToCertificateRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddTagsToCertificateWithContext is the same as AddTagsToCertificate with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See AddTagsToCertificate 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) AddTagsToCertificateWithContext(ctx aws.Context, input *AddTagsToCertificateInput, opts ...request.Option) (*AddTagsToCertificateOutput, error) {
|
|
|
|
req, out := c.AddTagsToCertificateRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const opDeleteCertificate = "DeleteCertificate"
|
|
|
|
|
|
|
|
// DeleteCertificateRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the DeleteCertificate operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See DeleteCertificate for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the DeleteCertificate method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the DeleteCertificateRequest method.
|
|
|
|
// req, resp := client.DeleteCertificateRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opDeleteCertificate,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &DeleteCertificateInput{}
|
|
|
|
}
|
|
|
|
|
2017-01-23 22:22:31 +01:00
|
|
|
output = &DeleteCertificateOutput{}
|
2016-08-21 20:44:53 +02:00
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
|
|
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// DeleteCertificate API operation for AWS Certificate Manager.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// 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.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// You cannot delete an ACM Certificate that is being used by another AWS service.
|
|
|
|
// To delete a certificate that is in use, the certificate association must
|
|
|
|
// first be removed.
|
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation DeleteCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The specified certificate cannot be found in the caller's account, or the
|
|
|
|
// caller's account cannot be found.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceInUseException "ResourceInUseException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The certificate is in use by another AWS service in the caller's account.
|
|
|
|
// Remove the association and try again.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidArnException "InvalidArnException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) {
|
|
|
|
req, out := c.DeleteCertificateRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteCertificateWithContext is the same as DeleteCertificate with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See DeleteCertificate 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) DeleteCertificateWithContext(ctx aws.Context, input *DeleteCertificateInput, opts ...request.Option) (*DeleteCertificateOutput, error) {
|
|
|
|
req, out := c.DeleteCertificateRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const opDescribeCertificate = "DescribeCertificate"
|
|
|
|
|
|
|
|
// DescribeCertificateRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the DescribeCertificate operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See DescribeCertificate for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the DescribeCertificate method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the DescribeCertificateRequest method.
|
|
|
|
// req, resp := client.DescribeCertificateRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req *request.Request, output *DescribeCertificateOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opDescribeCertificate,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &DescribeCertificateInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &DescribeCertificateOutput{}
|
2017-01-23 22:22:31 +01:00
|
|
|
req = c.newRequest(op, input, output)
|
2016-08-21 20:44:53 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// DescribeCertificate API operation for AWS Certificate Manager.
|
|
|
|
//
|
2017-01-30 15:18:29 +01:00
|
|
|
// Returns detailed metadata about the specified ACM Certificate.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation DescribeCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The specified certificate cannot be found in the caller's account, or the
|
|
|
|
// caller's account cannot be found.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidArnException "InvalidArnException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) {
|
|
|
|
req, out := c.DescribeCertificateRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// DescribeCertificateWithContext is the same as DescribeCertificate with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See DescribeCertificate 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) DescribeCertificateWithContext(ctx aws.Context, input *DescribeCertificateInput, opts ...request.Option) (*DescribeCertificateOutput, error) {
|
|
|
|
req, out := c.DescribeCertificateRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const opGetCertificate = "GetCertificate"
|
|
|
|
|
|
|
|
// GetCertificateRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the GetCertificate operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See GetCertificate for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the GetCertificate method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the GetCertificateRequest method.
|
|
|
|
// req, resp := client.GetCertificateRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Request, output *GetCertificateOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opGetCertificate,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &GetCertificateInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &GetCertificateOutput{}
|
2017-01-23 22:22:31 +01:00
|
|
|
req = c.newRequest(op, input, output)
|
2016-08-21 20:44:53 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// GetCertificate API operation for AWS Certificate Manager.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Retrieves an ACM Certificate and certificate chain for the certificate specified
|
|
|
|
// by an ARN. The chain is an ordered list of certificates that contains the
|
|
|
|
// root certificate, intermediate certificates of subordinate CAs, and the ACM
|
|
|
|
// Certificate. 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.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// Currently, ACM Certificates can be used only with Elastic Load Balancing
|
2016-08-21 20:44:53 +02:00
|
|
|
// and Amazon CloudFront.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation GetCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The specified certificate cannot be found in the caller's account, or the
|
|
|
|
// caller's account cannot be found.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeRequestInProgressException "RequestInProgressException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The certificate request is in process and the certificate in your account
|
|
|
|
// has not yet been issued.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidArnException "InvalidArnException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error) {
|
|
|
|
req, out := c.GetCertificateRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetCertificateWithContext is the same as GetCertificate with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See GetCertificate 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) GetCertificateWithContext(ctx aws.Context, input *GetCertificateInput, opts ...request.Option) (*GetCertificateOutput, error) {
|
|
|
|
req, out := c.GetCertificateRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
const opImportCertificate = "ImportCertificate"
|
|
|
|
|
|
|
|
// ImportCertificateRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the ImportCertificate operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
|
|
|
// See ImportCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the ImportCertificate method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the ImportCertificateRequest method.
|
|
|
|
// req, resp := client.ImportCertificateRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate
|
2016-11-19 19:41:01 +01:00
|
|
|
func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opImportCertificate,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &ImportCertificateInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &ImportCertificateOutput{}
|
2017-01-23 22:22:31 +01:00
|
|
|
req = c.newRequest(op, input, output)
|
2016-11-19 19:41:01 +01:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// ImportCertificate API operation for AWS Certificate Manager.
|
|
|
|
//
|
|
|
|
// Imports an SSL/TLS certificate into AWS Certificate Manager (ACM) to use
|
|
|
|
// with ACM's integrated AWS services (http://docs.aws.amazon.com/acm/latest/userguide/acm-services.html).
|
|
|
|
//
|
|
|
|
// ACM does not provide managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
|
|
|
|
// for certificates that you import.
|
|
|
|
//
|
|
|
|
// For more information about importing certificates into ACM, including the
|
|
|
|
// differences between certificates that you import and those that ACM provides,
|
|
|
|
// see Importing Certificates (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html)
|
|
|
|
// in the AWS Certificate Manager User Guide.
|
|
|
|
//
|
|
|
|
// To import a certificate, you must provide the certificate and the matching
|
|
|
|
// private key. When the certificate is not self-signed, you must also provide
|
|
|
|
// a certificate chain. You can omit the certificate chain when importing a
|
|
|
|
// self-signed certificate.
|
|
|
|
//
|
|
|
|
// The certificate, private key, and certificate chain must be PEM-encoded.
|
|
|
|
// For more information about converting these items to PEM format, see Importing
|
|
|
|
// Certificates Troubleshooting (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html#import-certificate-troubleshooting)
|
|
|
|
// in the AWS Certificate Manager User Guide.
|
|
|
|
//
|
|
|
|
// To import a new certificate, omit the CertificateArn field. Include this
|
|
|
|
// field only when you want to replace a previously imported certificate.
|
|
|
|
//
|
|
|
|
// This operation returns the Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
|
|
|
|
// of the imported certificate.
|
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation ImportCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The specified certificate cannot be found in the caller's account, or the
|
|
|
|
// caller's account cannot be found.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeLimitExceededException "LimitExceededException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// 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.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate
|
2016-11-19 19:41:01 +01:00
|
|
|
func (c *ACM) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) {
|
|
|
|
req, out := c.ImportCertificateRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// ImportCertificateWithContext is the same as ImportCertificate with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See ImportCertificate 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) ImportCertificateWithContext(ctx aws.Context, input *ImportCertificateInput, opts ...request.Option) (*ImportCertificateOutput, error) {
|
|
|
|
req, out := c.ImportCertificateRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-11-19 19:41:01 +01:00
|
|
|
}
|
|
|
|
|
2016-08-21 20:44:53 +02:00
|
|
|
const opListCertificates = "ListCertificates"
|
|
|
|
|
|
|
|
// ListCertificatesRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the ListCertificates operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See ListCertificates for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the ListCertificates method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the ListCertificatesRequest method.
|
|
|
|
// req, resp := client.ListCertificatesRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *request.Request, output *ListCertificatesOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opListCertificates,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
Paginator: &request.Paginator{
|
|
|
|
InputTokens: []string{"NextToken"},
|
|
|
|
OutputTokens: []string{"NextToken"},
|
|
|
|
LimitToken: "MaxItems",
|
|
|
|
TruncationToken: "",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &ListCertificatesInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &ListCertificatesOutput{}
|
2017-01-23 22:22:31 +01:00
|
|
|
req = c.newRequest(op, input, output)
|
2016-08-21 20:44:53 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// ListCertificates API operation for AWS Certificate Manager.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// 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.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation ListCertificates for usage and error information.
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) {
|
|
|
|
req, out := c.ListCertificatesRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListCertificatesWithContext is the same as ListCertificates with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See ListCertificates 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) ListCertificatesWithContext(ctx aws.Context, input *ListCertificatesInput, opts ...request.Option) (*ListCertificatesOutput, error) {
|
|
|
|
req, out := c.ListCertificatesRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListCertificatesPages iterates over the pages of a ListCertificates operation,
|
|
|
|
// calling the "fn" function with the response data for each page. To stop
|
|
|
|
// iterating, return false from the fn function.
|
|
|
|
//
|
|
|
|
// See ListCertificates method for more information on how to use this operation.
|
|
|
|
//
|
|
|
|
// Note: This operation can generate multiple requests to a service.
|
|
|
|
//
|
|
|
|
// // Example iterating over at most 3 pages of a ListCertificates operation.
|
|
|
|
// pageNum := 0
|
|
|
|
// err := client.ListCertificatesPages(params,
|
|
|
|
// func(page *ListCertificatesOutput, lastPage bool) bool {
|
|
|
|
// pageNum++
|
|
|
|
// fmt.Println(page)
|
|
|
|
// return pageNum <= 3
|
|
|
|
// })
|
|
|
|
//
|
2017-04-05 09:45:27 +02:00
|
|
|
func (c *ACM) ListCertificatesPages(input *ListCertificatesInput, fn func(*ListCertificatesOutput, bool) bool) error {
|
|
|
|
return c.ListCertificatesPagesWithContext(aws.BackgroundContext(), input, fn)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListCertificatesPagesWithContext same as ListCertificatesPages except
|
|
|
|
// it takes a Context and allows setting request options on the pages.
|
|
|
|
//
|
|
|
|
// 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) ListCertificatesPagesWithContext(ctx aws.Context, input *ListCertificatesInput, fn func(*ListCertificatesOutput, bool) bool, opts ...request.Option) error {
|
|
|
|
p := request.Pagination{
|
|
|
|
NewRequest: func() (*request.Request, error) {
|
|
|
|
var inCpy *ListCertificatesInput
|
|
|
|
if input != nil {
|
|
|
|
tmp := *input
|
|
|
|
inCpy = &tmp
|
|
|
|
}
|
|
|
|
req, _ := c.ListCertificatesRequest(inCpy)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return req, nil
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
cont := true
|
|
|
|
for p.Next() && cont {
|
|
|
|
cont = fn(p.Page().(*ListCertificatesOutput), !p.HasNextPage())
|
|
|
|
}
|
|
|
|
return p.Err()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const opListTagsForCertificate = "ListTagsForCertificate"
|
|
|
|
|
|
|
|
// ListTagsForCertificateRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the ListTagsForCertificate operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See ListTagsForCertificate for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the ListTagsForCertificate method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the ListTagsForCertificateRequest method.
|
|
|
|
// req, resp := client.ListTagsForCertificateRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) (req *request.Request, output *ListTagsForCertificateOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opListTagsForCertificate,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &ListTagsForCertificateInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &ListTagsForCertificateOutput{}
|
2017-01-23 22:22:31 +01:00
|
|
|
req = c.newRequest(op, input, output)
|
2016-08-21 20:44:53 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// ListTagsForCertificate API operation for AWS Certificate Manager.
|
|
|
|
//
|
2017-01-30 15:18:29 +01:00
|
|
|
// 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
|
|
|
|
// the RemoveTagsFromCertificate action.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation ListTagsForCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The specified certificate cannot be found in the caller's account, or the
|
|
|
|
// caller's account cannot be found.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidArnException "InvalidArnException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) ListTagsForCertificate(input *ListTagsForCertificateInput) (*ListTagsForCertificateOutput, error) {
|
|
|
|
req, out := c.ListTagsForCertificateRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListTagsForCertificateWithContext is the same as ListTagsForCertificate with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See ListTagsForCertificate 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) ListTagsForCertificateWithContext(ctx aws.Context, input *ListTagsForCertificateInput, opts ...request.Option) (*ListTagsForCertificateOutput, error) {
|
|
|
|
req, out := c.ListTagsForCertificateRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate"
|
|
|
|
|
|
|
|
// RemoveTagsFromCertificateRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the RemoveTagsFromCertificate operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See RemoveTagsFromCertificate for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the RemoveTagsFromCertificate method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the RemoveTagsFromCertificateRequest method.
|
|
|
|
// req, resp := client.RemoveTagsFromCertificateRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateInput) (req *request.Request, output *RemoveTagsFromCertificateOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opRemoveTagsFromCertificate,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &RemoveTagsFromCertificateInput{}
|
|
|
|
}
|
|
|
|
|
2017-01-23 22:22:31 +01:00
|
|
|
output = &RemoveTagsFromCertificateOutput{}
|
2016-08-21 20:44:53 +02:00
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
|
|
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// RemoveTagsFromCertificate API operation for AWS Certificate Manager.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// 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
|
|
|
|
// the ListTagsForCertificate action.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation RemoveTagsFromCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The specified certificate cannot be found in the caller's account, or the
|
|
|
|
// caller's account cannot be found.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidArnException "InvalidArnException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidTagException "InvalidTagException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// One or both of the values that make up the key-value pair is not valid. For
|
|
|
|
// example, you cannot specify a tag value that begins with aws:.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) RemoveTagsFromCertificate(input *RemoveTagsFromCertificateInput) (*RemoveTagsFromCertificateOutput, error) {
|
|
|
|
req, out := c.RemoveTagsFromCertificateRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// RemoveTagsFromCertificateWithContext is the same as RemoveTagsFromCertificate with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See RemoveTagsFromCertificate 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) RemoveTagsFromCertificateWithContext(ctx aws.Context, input *RemoveTagsFromCertificateInput, opts ...request.Option) (*RemoveTagsFromCertificateOutput, error) {
|
|
|
|
req, out := c.RemoveTagsFromCertificateRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const opRequestCertificate = "RequestCertificate"
|
|
|
|
|
|
|
|
// RequestCertificateRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the RequestCertificate operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See RequestCertificate for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the RequestCertificate method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the RequestCertificateRequest method.
|
|
|
|
// req, resp := client.RequestCertificateRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *request.Request, output *RequestCertificateOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opRequestCertificate,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &RequestCertificateInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &RequestCertificateOutput{}
|
2017-01-23 22:22:31 +01:00
|
|
|
req = c.newRequest(op, input, output)
|
2016-08-21 20:44:53 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// RequestCertificate API operation for AWS Certificate Manager.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Requests an ACM Certificate for use with other AWS services. To request an
|
|
|
|
// ACM Certificate, you must specify the fully qualified domain name (FQDN)
|
|
|
|
// for your site. You can also specify additional FQDNs if users can reach your
|
|
|
|
// site by using other names. For each domain name you specify, email is sent
|
|
|
|
// to the domain owner to request approval to issue the certificate. After receiving
|
|
|
|
// approval from the domain owner, the ACM Certificate is issued. For more information,
|
2016-11-19 19:41:01 +01:00
|
|
|
// see the AWS Certificate Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/).
|
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation RequestCertificate for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeLimitExceededException "LimitExceededException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// 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.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// One or more values in the DomainValidationOption structure is incorrect.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) RequestCertificate(input *RequestCertificateInput) (*RequestCertificateOutput, error) {
|
|
|
|
req, out := c.RequestCertificateRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// RequestCertificateWithContext is the same as RequestCertificate with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See RequestCertificate 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) RequestCertificateWithContext(ctx aws.Context, input *RequestCertificateInput, opts ...request.Option) (*RequestCertificateOutput, error) {
|
|
|
|
req, out := c.RequestCertificateRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const opResendValidationEmail = "ResendValidationEmail"
|
|
|
|
|
|
|
|
// ResendValidationEmailRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the ResendValidationEmail operation. The "output" return
|
|
|
|
// value can be used to capture response data after the request's "Send" method
|
|
|
|
// is called.
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// See ResendValidationEmail for usage and error information.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Creating a request object using this method should be used when you want to inject
|
|
|
|
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
|
|
|
// access properties on the request object before or after sending the request. If
|
|
|
|
// you just want the service response, call the ResendValidationEmail method directly
|
|
|
|
// instead.
|
|
|
|
//
|
|
|
|
// Note: You must call the "Send" method on the returned request object in order
|
|
|
|
// to execute the request.
|
|
|
|
//
|
|
|
|
// // Example sending a request using the ResendValidationEmailRequest method.
|
|
|
|
// req, resp := client.ResendValidationEmailRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (req *request.Request, output *ResendValidationEmailOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opResendValidationEmail,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &ResendValidationEmailInput{}
|
|
|
|
}
|
|
|
|
|
2017-01-23 22:22:31 +01:00
|
|
|
output = &ResendValidationEmailOutput{}
|
2016-08-21 20:44:53 +02:00
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
|
|
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// ResendValidationEmail API operation for AWS Certificate Manager.
|
|
|
|
//
|
2016-08-21 20:44:53 +02:00
|
|
|
// Resends the email that requests domain ownership validation. The domain owner
|
|
|
|
// or an authorized representative must approve the ACM Certificate before it
|
|
|
|
// can be issued. The certificate can be approved by clicking a link in the
|
|
|
|
// 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
|
|
|
|
// 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.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
|
|
// the error.
|
|
|
|
//
|
|
|
|
// See the AWS API reference guide for AWS Certificate Manager's
|
|
|
|
// API operation ResendValidationEmail for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The specified certificate cannot be found in the caller's account, or the
|
|
|
|
// caller's account cannot be found.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidStateException "InvalidStateException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// 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.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidArnException "InvalidArnException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
|
|
|
|
//
|
2017-02-08 14:02:41 +01:00
|
|
|
// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException"
|
2016-11-19 19:41:01 +01:00
|
|
|
// One or more values in the DomainValidationOption structure is incorrect.
|
|
|
|
//
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail
|
2016-08-21 20:44:53 +02:00
|
|
|
func (c *ACM) ResendValidationEmail(input *ResendValidationEmailInput) (*ResendValidationEmailOutput, error) {
|
|
|
|
req, out := c.ResendValidationEmailRequest(input)
|
2017-04-05 09:45:27 +02:00
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// ResendValidationEmailWithContext is the same as ResendValidationEmail with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See ResendValidationEmail 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) ResendValidationEmailWithContext(ctx aws.Context, input *ResendValidationEmailInput, opts ...request.Option) (*ResendValidationEmailOutput, error) {
|
|
|
|
req, out := c.ResendValidationEmailRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificateRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type AddTagsToCertificateInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// String that contains the ARN of the ACM Certificate to which the tag is to
|
|
|
|
// be applied. This must be of the form:
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
|
|
|
// For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
|
|
|
|
// Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// CertificateArn is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string" required:"true"`
|
|
|
|
|
|
|
|
// The key-value pair that defines the tag. The tag value is optional.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Tags is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
Tags []*Tag `min:"1" type:"list" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s AddTagsToCertificateInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s AddTagsToCertificateInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *AddTagsToCertificateInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "AddTagsToCertificateInput"}
|
|
|
|
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.Tags == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("Tags"))
|
|
|
|
}
|
|
|
|
if s.Tags != nil && len(s.Tags) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
|
|
|
|
}
|
|
|
|
if s.Tags != nil {
|
|
|
|
for i, v := range s.Tags {
|
|
|
|
if v == nil {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if err := v.Validate(); err != nil {
|
|
|
|
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *AddTagsToCertificateInput) SetCertificateArn(v string) *AddTagsToCertificateInput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetTags sets the Tags field's value.
|
|
|
|
func (s *AddTagsToCertificateInput) SetTags(v []*Tag) *AddTagsToCertificateInput {
|
|
|
|
s.Tags = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificateOutput
|
2016-08-21 20:44:53 +02:00
|
|
|
type AddTagsToCertificateOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s AddTagsToCertificateOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s AddTagsToCertificateOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// Contains metadata about an ACM certificate. This structure is returned in
|
|
|
|
// the response to a DescribeCertificate request.
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/CertificateDetail
|
2016-08-21 20:44:53 +02:00
|
|
|
type CertificateDetail struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// The Amazon Resource Name (ARN) of the certificate. For more information about
|
2016-11-19 19:41:01 +01:00
|
|
|
// ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
|
|
|
|
// in the AWS General Reference.
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// The time at which the certificate was requested. This value exists only when
|
|
|
|
// the certificate type is AMAZON_ISSUED.
|
2016-08-21 20:44:53 +02:00
|
|
|
CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// The fully qualified domain name for the certificate, such as www.example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
// or example.com.
|
|
|
|
DomainName *string `min:"1" type:"string"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// Contains information about the initial validation of each domain name that
|
|
|
|
// occurs as a result of the RequestCertificate request. This field exists only
|
|
|
|
// when the certificate type is AMAZON_ISSUED.
|
2016-08-21 20:44:53 +02:00
|
|
|
DomainValidationOptions []*DomainValidation `min:"1" type:"list"`
|
|
|
|
|
|
|
|
// The reason the certificate request failed. This value exists only when the
|
2016-11-19 19:41:01 +01:00
|
|
|
// certificate status is FAILED. For more information, see Certificate Request
|
2016-08-21 20:44:53 +02:00
|
|
|
// Failed (http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed)
|
|
|
|
// in the AWS Certificate Manager User Guide.
|
|
|
|
FailureReason *string `type:"string" enum:"FailureReason"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// The date and time at which the certificate was imported. This value exists
|
|
|
|
// only when the certificate type is IMPORTED.
|
|
|
|
ImportedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
|
|
|
|
|
|
|
|
// A list of ARNs for the AWS resources that are using the certificate. A certificate
|
2016-08-21 20:44:53 +02:00
|
|
|
// can be used by multiple AWS resources.
|
|
|
|
InUseBy []*string `type:"list"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// The time at which the certificate was issued. This value exists only when
|
|
|
|
// the certificate type is AMAZON_ISSUED.
|
2016-08-21 20:44:53 +02:00
|
|
|
IssuedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// The name of the certificate authority that issued and signed the certificate.
|
2016-08-21 20:44:53 +02:00
|
|
|
Issuer *string `type:"string"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// The algorithm that was used to generate the key pair (the public and private
|
|
|
|
// key).
|
2016-08-21 20:44:53 +02:00
|
|
|
KeyAlgorithm *string `type:"string" enum:"KeyAlgorithm"`
|
|
|
|
|
|
|
|
// The time after which the certificate is not valid.
|
|
|
|
NotAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
|
|
|
|
|
|
|
|
// The time before which the certificate is not valid.
|
|
|
|
NotBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// 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.
|
|
|
|
RenewalSummary *RenewalSummary `type:"structure"`
|
|
|
|
|
2016-08-21 20:44:53 +02:00
|
|
|
// The reason the certificate was revoked. This value exists only when the certificate
|
|
|
|
// status is REVOKED.
|
|
|
|
RevocationReason *string `type:"string" enum:"RevocationReason"`
|
|
|
|
|
|
|
|
// The time at which the certificate was revoked. This value exists only when
|
|
|
|
// the certificate status is REVOKED.
|
|
|
|
RevokedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
|
|
|
|
|
|
|
|
// The serial number of the certificate.
|
|
|
|
Serial *string `type:"string"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// The algorithm that was used to sign the certificate.
|
2016-08-21 20:44:53 +02:00
|
|
|
SignatureAlgorithm *string `type:"string"`
|
|
|
|
|
|
|
|
// The status of the certificate.
|
|
|
|
Status *string `type:"string" enum:"CertificateStatus"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// The name of the entity that is associated with the public key contained in
|
|
|
|
// the certificate.
|
2016-08-21 20:44:53 +02:00
|
|
|
Subject *string `type:"string"`
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// One or more domain names (subject alternative names) included in the certificate.
|
|
|
|
// This list contains the domain names that are bound to the public key that
|
|
|
|
// is contained in the certificate. The subject alternative names include the
|
|
|
|
// canonical domain name (CN) of the certificate and additional domain names
|
|
|
|
// that can be used to connect to the website.
|
2016-08-21 20:44:53 +02:00
|
|
|
SubjectAlternativeNames []*string `min:"1" type:"list"`
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// The source of the certificate. For certificates provided by ACM, this value
|
|
|
|
// is AMAZON_ISSUED. For certificates that you imported with ImportCertificate,
|
|
|
|
// this value is IMPORTED. ACM does not provide managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
|
|
|
|
// for imported certificates. For more information about the differences between
|
|
|
|
// certificates that you import and those that ACM provides, see Importing Certificates
|
|
|
|
// (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html)
|
|
|
|
// in the AWS Certificate Manager User Guide.
|
|
|
|
Type *string `type:"string" enum:"CertificateType"`
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s CertificateDetail) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s CertificateDetail) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *CertificateDetail) SetCertificateArn(v string) *CertificateDetail {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCreatedAt sets the CreatedAt field's value.
|
|
|
|
func (s *CertificateDetail) SetCreatedAt(v time.Time) *CertificateDetail {
|
|
|
|
s.CreatedAt = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetDomainName sets the DomainName field's value.
|
|
|
|
func (s *CertificateDetail) SetDomainName(v string) *CertificateDetail {
|
|
|
|
s.DomainName = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetDomainValidationOptions sets the DomainValidationOptions field's value.
|
|
|
|
func (s *CertificateDetail) SetDomainValidationOptions(v []*DomainValidation) *CertificateDetail {
|
|
|
|
s.DomainValidationOptions = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFailureReason sets the FailureReason field's value.
|
|
|
|
func (s *CertificateDetail) SetFailureReason(v string) *CertificateDetail {
|
|
|
|
s.FailureReason = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetImportedAt sets the ImportedAt field's value.
|
|
|
|
func (s *CertificateDetail) SetImportedAt(v time.Time) *CertificateDetail {
|
|
|
|
s.ImportedAt = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetInUseBy sets the InUseBy field's value.
|
|
|
|
func (s *CertificateDetail) SetInUseBy(v []*string) *CertificateDetail {
|
|
|
|
s.InUseBy = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetIssuedAt sets the IssuedAt field's value.
|
|
|
|
func (s *CertificateDetail) SetIssuedAt(v time.Time) *CertificateDetail {
|
|
|
|
s.IssuedAt = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetIssuer sets the Issuer field's value.
|
|
|
|
func (s *CertificateDetail) SetIssuer(v string) *CertificateDetail {
|
|
|
|
s.Issuer = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetKeyAlgorithm sets the KeyAlgorithm field's value.
|
|
|
|
func (s *CertificateDetail) SetKeyAlgorithm(v string) *CertificateDetail {
|
|
|
|
s.KeyAlgorithm = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetNotAfter sets the NotAfter field's value.
|
|
|
|
func (s *CertificateDetail) SetNotAfter(v time.Time) *CertificateDetail {
|
|
|
|
s.NotAfter = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetNotBefore sets the NotBefore field's value.
|
|
|
|
func (s *CertificateDetail) SetNotBefore(v time.Time) *CertificateDetail {
|
|
|
|
s.NotBefore = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// SetRenewalSummary sets the RenewalSummary field's value.
|
|
|
|
func (s *CertificateDetail) SetRenewalSummary(v *RenewalSummary) *CertificateDetail {
|
|
|
|
s.RenewalSummary = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetRevocationReason sets the RevocationReason field's value.
|
|
|
|
func (s *CertificateDetail) SetRevocationReason(v string) *CertificateDetail {
|
|
|
|
s.RevocationReason = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetRevokedAt sets the RevokedAt field's value.
|
|
|
|
func (s *CertificateDetail) SetRevokedAt(v time.Time) *CertificateDetail {
|
|
|
|
s.RevokedAt = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSerial sets the Serial field's value.
|
|
|
|
func (s *CertificateDetail) SetSerial(v string) *CertificateDetail {
|
|
|
|
s.Serial = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSignatureAlgorithm sets the SignatureAlgorithm field's value.
|
|
|
|
func (s *CertificateDetail) SetSignatureAlgorithm(v string) *CertificateDetail {
|
|
|
|
s.SignatureAlgorithm = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetStatus sets the Status field's value.
|
|
|
|
func (s *CertificateDetail) SetStatus(v string) *CertificateDetail {
|
|
|
|
s.Status = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSubject sets the Subject field's value.
|
|
|
|
func (s *CertificateDetail) SetSubject(v string) *CertificateDetail {
|
|
|
|
s.Subject = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value.
|
|
|
|
func (s *CertificateDetail) SetSubjectAlternativeNames(v []*string) *CertificateDetail {
|
|
|
|
s.SubjectAlternativeNames = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetType sets the Type field's value.
|
|
|
|
func (s *CertificateDetail) SetType(v string) *CertificateDetail {
|
|
|
|
s.Type = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2016-08-21 20:44:53 +02:00
|
|
|
// This structure is returned in the response object of ListCertificates action.
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/CertificateSummary
|
2016-08-21 20:44:53 +02:00
|
|
|
type CertificateSummary struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// Amazon Resource Name (ARN) of the certificate. This is of the form:
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
|
|
|
// For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
|
|
|
|
// Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
|
|
|
|
CertificateArn *string `min:"20" type:"string"`
|
|
|
|
|
|
|
|
// Fully qualified domain name (FQDN), such as www.example.com or example.com,
|
|
|
|
// for the certificate.
|
|
|
|
DomainName *string `min:"1" type:"string"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s CertificateSummary) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s CertificateSummary) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *CertificateSummary) SetCertificateArn(v string) *CertificateSummary {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetDomainName sets the DomainName field's value.
|
|
|
|
func (s *CertificateSummary) SetDomainName(v string) *CertificateSummary {
|
|
|
|
s.DomainName = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificateRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type DeleteCertificateInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// String that contains the ARN of the ACM Certificate to be deleted. This must
|
|
|
|
// be of the form:
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
|
|
|
// For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
|
|
|
|
// Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// CertificateArn is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s DeleteCertificateInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s DeleteCertificateInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *DeleteCertificateInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateInput"}
|
|
|
|
if s.CertificateArn == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
|
|
|
|
}
|
|
|
|
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *DeleteCertificateInput) SetCertificateArn(v string) *DeleteCertificateInput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificateOutput
|
2016-08-21 20:44:53 +02:00
|
|
|
type DeleteCertificateOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s DeleteCertificateOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s DeleteCertificateOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificateRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type DescribeCertificateInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// The Amazon Resource Name (ARN) of the ACM Certificate. The ARN must have
|
|
|
|
// the following form:
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
|
|
|
// For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
|
|
|
|
// Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// CertificateArn is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s DescribeCertificateInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s DescribeCertificateInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *DescribeCertificateInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "DescribeCertificateInput"}
|
|
|
|
if s.CertificateArn == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
|
|
|
|
}
|
|
|
|
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *DescribeCertificateInput) SetCertificateArn(v string) *DescribeCertificateInput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificateResponse
|
2016-08-21 20:44:53 +02:00
|
|
|
type DescribeCertificateOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// Metadata about an ACM certificate.
|
2016-08-21 20:44:53 +02:00
|
|
|
Certificate *CertificateDetail `type:"structure"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s DescribeCertificateOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s DescribeCertificateOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificate sets the Certificate field's value.
|
|
|
|
func (s *DescribeCertificateOutput) SetCertificate(v *CertificateDetail) *DescribeCertificateOutput {
|
|
|
|
s.Certificate = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// Contains information about the validation of each domain name in the certificate.
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DomainValidation
|
2016-08-21 20:44:53 +02:00
|
|
|
type DomainValidation struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// A fully qualified domain name (FQDN) in the certificate. For example, www.example.com
|
|
|
|
// or example.com.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// DomainName is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
DomainName *string `min:"1" type:"string" required:"true"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// The domain name that ACM used to send domain validation emails.
|
2016-08-21 20:44:53 +02:00
|
|
|
ValidationDomain *string `min:"1" type:"string"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// A list of email addresses that ACM used to send domain validation emails.
|
2016-08-21 20:44:53 +02:00
|
|
|
ValidationEmails []*string `type:"list"`
|
2017-01-30 15:18:29 +01:00
|
|
|
|
|
|
|
// The validation status of the domain name.
|
|
|
|
ValidationStatus *string `type:"string" enum:"DomainStatus"`
|
2016-08-21 20:44:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s DomainValidation) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s DomainValidation) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetDomainName sets the DomainName field's value.
|
|
|
|
func (s *DomainValidation) SetDomainName(v string) *DomainValidation {
|
|
|
|
s.DomainName = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetValidationDomain sets the ValidationDomain field's value.
|
|
|
|
func (s *DomainValidation) SetValidationDomain(v string) *DomainValidation {
|
|
|
|
s.ValidationDomain = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetValidationEmails sets the ValidationEmails field's value.
|
|
|
|
func (s *DomainValidation) SetValidationEmails(v []*string) *DomainValidation {
|
|
|
|
s.ValidationEmails = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// SetValidationStatus sets the ValidationStatus field's value.
|
|
|
|
func (s *DomainValidation) SetValidationStatus(v string) *DomainValidation {
|
|
|
|
s.ValidationStatus = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// Contains information about the domain names that you want ACM to use to send
|
|
|
|
// you emails to validate your ownership of the domain.
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DomainValidationOption
|
2016-08-21 20:44:53 +02:00
|
|
|
type DomainValidationOption struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// A fully qualified domain name (FQDN) in the certificate request.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// DomainName is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
DomainName *string `min:"1" type:"string" required:"true"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// The domain name that you want ACM to use to send you validation emails. This
|
|
|
|
// domain name is the suffix of the email addresses that you want ACM to use.
|
|
|
|
// This must be the same as the DomainName value or a superdomain of the DomainName
|
|
|
|
// value. For example, if you request a certificate for testing.example.com,
|
|
|
|
// you can specify example.com for this value. In that case, ACM sends domain
|
|
|
|
// validation emails to the following five addresses:
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2017-01-30 15:18:29 +01:00
|
|
|
// * admin@example.com
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
2017-01-30 15:18:29 +01:00
|
|
|
// * administrator@example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2017-01-30 15:18:29 +01:00
|
|
|
// * hostmaster@example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2017-01-30 15:18:29 +01:00
|
|
|
// * postmaster@example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2017-01-30 15:18:29 +01:00
|
|
|
// * webmaster@example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// ValidationDomain is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
ValidationDomain *string `min:"1" type:"string" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s DomainValidationOption) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s DomainValidationOption) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *DomainValidationOption) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "DomainValidationOption"}
|
|
|
|
if s.DomainName == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("DomainName"))
|
|
|
|
}
|
|
|
|
if s.DomainName != nil && len(*s.DomainName) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
|
|
|
|
}
|
|
|
|
if s.ValidationDomain == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("ValidationDomain"))
|
|
|
|
}
|
|
|
|
if s.ValidationDomain != nil && len(*s.ValidationDomain) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("ValidationDomain", 1))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetDomainName sets the DomainName field's value.
|
|
|
|
func (s *DomainValidationOption) SetDomainName(v string) *DomainValidationOption {
|
|
|
|
s.DomainName = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetValidationDomain sets the ValidationDomain field's value.
|
|
|
|
func (s *DomainValidationOption) SetValidationDomain(v string) *DomainValidationOption {
|
|
|
|
s.ValidationDomain = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificateRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type GetCertificateInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// String that contains a certificate ARN in the following format:
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
|
|
|
// For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
|
|
|
|
// Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// CertificateArn is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s GetCertificateInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s GetCertificateInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *GetCertificateInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "GetCertificateInput"}
|
|
|
|
if s.CertificateArn == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
|
|
|
|
}
|
|
|
|
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *GetCertificateInput) SetCertificateArn(v string) *GetCertificateInput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificateResponse
|
2016-08-21 20:44:53 +02:00
|
|
|
type GetCertificateOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// String that contains the ACM Certificate represented by the ARN specified
|
|
|
|
// at input.
|
|
|
|
Certificate *string `min:"1" type:"string"`
|
|
|
|
|
|
|
|
// The certificate chain that contains the root certificate issued by the certificate
|
|
|
|
// authority (CA).
|
|
|
|
CertificateChain *string `min:"1" type:"string"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s GetCertificateOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s GetCertificateOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificate sets the Certificate field's value.
|
|
|
|
func (s *GetCertificateOutput) SetCertificate(v string) *GetCertificateOutput {
|
|
|
|
s.Certificate = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCertificateChain sets the CertificateChain field's value.
|
|
|
|
func (s *GetCertificateOutput) SetCertificateChain(v string) *GetCertificateOutput {
|
|
|
|
s.CertificateChain = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificateRequest
|
2016-11-19 19:41:01 +01:00
|
|
|
type ImportCertificateInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// The certificate to import. It must meet the following requirements:
|
|
|
|
//
|
|
|
|
// * Must be PEM-encoded.
|
|
|
|
//
|
|
|
|
// * Must contain a 1024-bit or 2048-bit RSA public key.
|
|
|
|
//
|
|
|
|
// * Must be valid at the time of import. You cannot import a certificate
|
|
|
|
// before its validity period begins (the certificate's NotBefore date) or
|
|
|
|
// after it expires (the certificate's NotAfter date).
|
|
|
|
//
|
|
|
|
// Certificate is automatically base64 encoded/decoded by the SDK.
|
|
|
|
//
|
|
|
|
// Certificate is a required field
|
|
|
|
Certificate []byte `min:"1" type:"blob" required:"true"`
|
|
|
|
|
|
|
|
// The Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
|
|
|
|
// of an imported certificate to replace. To import a new certificate, omit
|
|
|
|
// this field.
|
|
|
|
CertificateArn *string `min:"20" type:"string"`
|
|
|
|
|
|
|
|
// The certificate chain. It must be PEM-encoded.
|
|
|
|
//
|
|
|
|
// CertificateChain is automatically base64 encoded/decoded by the SDK.
|
|
|
|
CertificateChain []byte `min:"1" type:"blob"`
|
|
|
|
|
|
|
|
// The private key that matches the public key in the certificate. It must meet
|
|
|
|
// the following requirements:
|
|
|
|
//
|
|
|
|
// * Must be PEM-encoded.
|
|
|
|
//
|
|
|
|
// * Must be unencrypted. You cannot import a private key that is protected
|
|
|
|
// by a password or passphrase.
|
|
|
|
//
|
|
|
|
// PrivateKey is automatically base64 encoded/decoded by the SDK.
|
|
|
|
//
|
|
|
|
// PrivateKey is a required field
|
|
|
|
PrivateKey []byte `min:"1" type:"blob" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s ImportCertificateInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s ImportCertificateInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *ImportCertificateInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "ImportCertificateInput"}
|
|
|
|
if s.Certificate == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("Certificate"))
|
|
|
|
}
|
|
|
|
if s.Certificate != nil && len(s.Certificate) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("Certificate", 1))
|
|
|
|
}
|
|
|
|
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
|
|
|
|
}
|
|
|
|
if s.CertificateChain != nil && len(s.CertificateChain) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("CertificateChain", 1))
|
|
|
|
}
|
|
|
|
if s.PrivateKey == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("PrivateKey"))
|
|
|
|
}
|
|
|
|
if s.PrivateKey != nil && len(s.PrivateKey) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("PrivateKey", 1))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCertificate sets the Certificate field's value.
|
|
|
|
func (s *ImportCertificateInput) SetCertificate(v []byte) *ImportCertificateInput {
|
|
|
|
s.Certificate = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *ImportCertificateInput) SetCertificateArn(v string) *ImportCertificateInput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCertificateChain sets the CertificateChain field's value.
|
|
|
|
func (s *ImportCertificateInput) SetCertificateChain(v []byte) *ImportCertificateInput {
|
|
|
|
s.CertificateChain = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetPrivateKey sets the PrivateKey field's value.
|
|
|
|
func (s *ImportCertificateInput) SetPrivateKey(v []byte) *ImportCertificateInput {
|
|
|
|
s.PrivateKey = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificateResponse
|
2016-11-19 19:41:01 +01:00
|
|
|
type ImportCertificateOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// The Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
|
|
|
|
// of the imported certificate.
|
|
|
|
CertificateArn *string `min:"20" type:"string"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s ImportCertificateOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s ImportCertificateOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *ImportCertificateOutput) SetCertificateArn(v string) *ImportCertificateOutput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificatesRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type ListCertificatesInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// The status or statuses on which to filter the list of ACM Certificates.
|
|
|
|
CertificateStatuses []*string `type:"list"`
|
|
|
|
|
|
|
|
// 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
|
|
|
|
// NextToken value in a subsequent request to retrieve additional items.
|
|
|
|
MaxItems *int64 `min:"1" type:"integer"`
|
|
|
|
|
|
|
|
// Use this parameter only when paginating results and only in a subsequent
|
|
|
|
// request after you receive a response with truncated results. Set it to the
|
|
|
|
// value of NextToken from the response you just received.
|
|
|
|
NextToken *string `min:"1" type:"string"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s ListCertificatesInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s ListCertificatesInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *ListCertificatesInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "ListCertificatesInput"}
|
|
|
|
if s.MaxItems != nil && *s.MaxItems < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1))
|
|
|
|
}
|
|
|
|
if s.NextToken != nil && len(*s.NextToken) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateStatuses sets the CertificateStatuses field's value.
|
|
|
|
func (s *ListCertificatesInput) SetCertificateStatuses(v []*string) *ListCertificatesInput {
|
|
|
|
s.CertificateStatuses = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMaxItems sets the MaxItems field's value.
|
|
|
|
func (s *ListCertificatesInput) SetMaxItems(v int64) *ListCertificatesInput {
|
|
|
|
s.MaxItems = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
|
|
func (s *ListCertificatesInput) SetNextToken(v string) *ListCertificatesInput {
|
|
|
|
s.NextToken = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificatesResponse
|
2016-08-21 20:44:53 +02:00
|
|
|
type ListCertificatesOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// A list of ACM Certificates.
|
|
|
|
CertificateSummaryList []*CertificateSummary `type:"list"`
|
|
|
|
|
|
|
|
// When the list is truncated, this value is present and contains the value
|
|
|
|
// to use for the NextToken parameter in a subsequent pagination request.
|
|
|
|
NextToken *string `min:"1" type:"string"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s ListCertificatesOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s ListCertificatesOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateSummaryList sets the CertificateSummaryList field's value.
|
|
|
|
func (s *ListCertificatesOutput) SetCertificateSummaryList(v []*CertificateSummary) *ListCertificatesOutput {
|
|
|
|
s.CertificateSummaryList = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
|
|
func (s *ListCertificatesOutput) SetNextToken(v string) *ListCertificatesOutput {
|
|
|
|
s.NextToken = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificateRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type ListTagsForCertificateInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// String that contains the ARN of the ACM Certificate for which you want to
|
2017-01-30 15:18:29 +01:00
|
|
|
// list the tags. This has the following form:
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
|
|
|
// For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
|
|
|
|
// Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// CertificateArn is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s ListTagsForCertificateInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s ListTagsForCertificateInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *ListTagsForCertificateInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "ListTagsForCertificateInput"}
|
|
|
|
if s.CertificateArn == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
|
|
|
|
}
|
|
|
|
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *ListTagsForCertificateInput) SetCertificateArn(v string) *ListTagsForCertificateInput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificateResponse
|
2016-08-21 20:44:53 +02:00
|
|
|
type ListTagsForCertificateOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// The key-value pairs that define the applied tags.
|
|
|
|
Tags []*Tag `min:"1" type:"list"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s ListTagsForCertificateOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s ListTagsForCertificateOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetTags sets the Tags field's value.
|
|
|
|
func (s *ListTagsForCertificateOutput) SetTags(v []*Tag) *ListTagsForCertificateOutput {
|
|
|
|
s.Tags = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificateRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type RemoveTagsFromCertificateInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// String that contains the ARN of the ACM Certificate with one or more tags
|
|
|
|
// that you want to remove. This must be of the form:
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
|
|
|
// For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
|
|
|
|
// Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// CertificateArn is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string" required:"true"`
|
|
|
|
|
|
|
|
// The key-value pair that defines the tag to remove.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Tags is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
Tags []*Tag `min:"1" type:"list" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s RemoveTagsFromCertificateInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s RemoveTagsFromCertificateInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *RemoveTagsFromCertificateInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromCertificateInput"}
|
|
|
|
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.Tags == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("Tags"))
|
|
|
|
}
|
|
|
|
if s.Tags != nil && len(s.Tags) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
|
|
|
|
}
|
|
|
|
if s.Tags != nil {
|
|
|
|
for i, v := range s.Tags {
|
|
|
|
if v == nil {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if err := v.Validate(); err != nil {
|
|
|
|
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *RemoveTagsFromCertificateInput) SetCertificateArn(v string) *RemoveTagsFromCertificateInput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetTags sets the Tags field's value.
|
|
|
|
func (s *RemoveTagsFromCertificateInput) SetTags(v []*Tag) *RemoveTagsFromCertificateInput {
|
|
|
|
s.Tags = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificateOutput
|
2016-08-21 20:44:53 +02:00
|
|
|
type RemoveTagsFromCertificateOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s RemoveTagsFromCertificateOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s RemoveTagsFromCertificateOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// 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 structure exists only when the certificate type
|
|
|
|
// is AMAZON_ISSUED.
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewalSummary
|
|
|
|
type RenewalSummary struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// Contains information about the validation of each domain name in the certificate,
|
|
|
|
// as it pertains to ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html).
|
|
|
|
// This is different from the initial validation that occurs as a result of
|
|
|
|
// the RequestCertificate request. This field exists only when the certificate
|
|
|
|
// type is AMAZON_ISSUED.
|
|
|
|
//
|
|
|
|
// DomainValidationOptions is a required field
|
|
|
|
DomainValidationOptions []*DomainValidation `min:"1" type:"list" required:"true"`
|
|
|
|
|
|
|
|
// The status of ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
|
|
|
|
// of the certificate.
|
|
|
|
//
|
|
|
|
// RenewalStatus is a required field
|
|
|
|
RenewalStatus *string `type:"string" required:"true" enum:"RenewalStatus"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s RenewalSummary) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s RenewalSummary) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetDomainValidationOptions sets the DomainValidationOptions field's value.
|
|
|
|
func (s *RenewalSummary) SetDomainValidationOptions(v []*DomainValidation) *RenewalSummary {
|
|
|
|
s.DomainValidationOptions = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetRenewalStatus sets the RenewalStatus field's value.
|
|
|
|
func (s *RenewalSummary) SetRenewalStatus(v string) *RenewalSummary {
|
|
|
|
s.RenewalStatus = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificateRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type RequestCertificateInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// Fully qualified domain name (FQDN), such as www.example.com, of the site
|
2017-01-30 15:18:29 +01:00
|
|
|
// that you want to secure with an ACM Certificate. Use an asterisk (*) to create
|
2016-08-21 20:44:53 +02:00
|
|
|
// 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.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// DomainName is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
DomainName *string `min:"1" type:"string" required:"true"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// The domain name that you want ACM to use to send you emails to validate your
|
|
|
|
// ownership of the domain.
|
2016-08-21 20:44:53 +02:00
|
|
|
DomainValidationOptions []*DomainValidationOption `min:"1" type:"list"`
|
|
|
|
|
|
|
|
// Customer chosen string that can be used to distinguish between calls to RequestCertificate.
|
|
|
|
// Idempotency tokens time out after one hour. Therefore, if you call RequestCertificate
|
|
|
|
// multiple times with the same idempotency token within one hour, ACM recognizes
|
|
|
|
// that you are requesting only one certificate and will issue only one. If
|
|
|
|
// you change the idempotency token for each call, ACM recognizes that you are
|
|
|
|
// requesting multiple certificates.
|
|
|
|
IdempotencyToken *string `min:"1" type:"string"`
|
|
|
|
|
|
|
|
// 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
|
|
|
|
// for which the DomainName field is www.example.com if users can reach your
|
|
|
|
// site by using either name.
|
|
|
|
SubjectAlternativeNames []*string `min:"1" type:"list"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s RequestCertificateInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s RequestCertificateInput) GoString() string {
|
|
|
|
return s.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.DomainName == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("DomainName"))
|
|
|
|
}
|
|
|
|
if s.DomainName != nil && len(*s.DomainName) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
|
|
|
|
}
|
|
|
|
if s.DomainValidationOptions != nil && len(s.DomainValidationOptions) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("DomainValidationOptions", 1))
|
|
|
|
}
|
|
|
|
if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1))
|
|
|
|
}
|
|
|
|
if s.SubjectAlternativeNames != nil && len(s.SubjectAlternativeNames) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("SubjectAlternativeNames", 1))
|
|
|
|
}
|
|
|
|
if s.DomainValidationOptions != nil {
|
|
|
|
for i, v := range s.DomainValidationOptions {
|
|
|
|
if v == nil {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if err := v.Validate(); err != nil {
|
|
|
|
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DomainValidationOptions", i), err.(request.ErrInvalidParams))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetDomainName sets the DomainName field's value.
|
|
|
|
func (s *RequestCertificateInput) SetDomainName(v string) *RequestCertificateInput {
|
|
|
|
s.DomainName = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetDomainValidationOptions sets the DomainValidationOptions field's value.
|
|
|
|
func (s *RequestCertificateInput) SetDomainValidationOptions(v []*DomainValidationOption) *RequestCertificateInput {
|
|
|
|
s.DomainValidationOptions = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetIdempotencyToken sets the IdempotencyToken field's value.
|
|
|
|
func (s *RequestCertificateInput) SetIdempotencyToken(v string) *RequestCertificateInput {
|
|
|
|
s.IdempotencyToken = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value.
|
|
|
|
func (s *RequestCertificateInput) SetSubjectAlternativeNames(v []*string) *RequestCertificateInput {
|
|
|
|
s.SubjectAlternativeNames = v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificateResponse
|
2016-08-21 20:44:53 +02:00
|
|
|
type RequestCertificateOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// String that contains the ARN of the issued certificate. This must be of the
|
|
|
|
// form:
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s RequestCertificateOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s RequestCertificateOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *RequestCertificateOutput) SetCertificateArn(v string) *RequestCertificateOutput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmailRequest
|
2016-08-21 20:44:53 +02:00
|
|
|
type ResendValidationEmailInput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// 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:
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
|
|
|
|
//
|
|
|
|
// CertificateArn is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateArn *string `min:"20" type:"string" required:"true"`
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
// The fully qualified domain name (FQDN) of the certificate that needs to be
|
2016-08-21 20:44:53 +02:00
|
|
|
// validated.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Domain is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
Domain *string `min:"1" type:"string" required:"true"`
|
|
|
|
|
|
|
|
// The base validation domain that will act as the suffix of the email addresses
|
|
|
|
// that are used to send the emails. This must be the same as the Domain value
|
|
|
|
// or a superdomain of the Domain value. For example, if you requested a certificate
|
|
|
|
// for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com,
|
|
|
|
// ACM sends email to the domain registrant, technical contact, and administrative
|
|
|
|
// contact in WHOIS and the following five addresses:
|
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// * admin@subdomain.example.com
|
|
|
|
//
|
|
|
|
// * administrator@subdomain.example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// * hostmaster@subdomain.example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// * postmaster@subdomain.example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// * webmaster@subdomain.example.com
|
2016-08-21 20:44:53 +02:00
|
|
|
//
|
2016-11-19 19:41:01 +01:00
|
|
|
// ValidationDomain is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
ValidationDomain *string `min:"1" type:"string" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s ResendValidationEmailInput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s ResendValidationEmailInput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *ResendValidationEmailInput) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "ResendValidationEmailInput"}
|
|
|
|
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.Domain == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("Domain"))
|
|
|
|
}
|
|
|
|
if s.Domain != nil && len(*s.Domain) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
|
|
|
|
}
|
|
|
|
if s.ValidationDomain == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("ValidationDomain"))
|
|
|
|
}
|
|
|
|
if s.ValidationDomain != nil && len(*s.ValidationDomain) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("ValidationDomain", 1))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetCertificateArn sets the CertificateArn field's value.
|
|
|
|
func (s *ResendValidationEmailInput) SetCertificateArn(v string) *ResendValidationEmailInput {
|
|
|
|
s.CertificateArn = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetDomain sets the Domain field's value.
|
|
|
|
func (s *ResendValidationEmailInput) SetDomain(v string) *ResendValidationEmailInput {
|
|
|
|
s.Domain = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetValidationDomain sets the ValidationDomain field's value.
|
|
|
|
func (s *ResendValidationEmailInput) SetValidationDomain(v string) *ResendValidationEmailInput {
|
|
|
|
s.ValidationDomain = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmailOutput
|
2016-08-21 20:44:53 +02:00
|
|
|
type ResendValidationEmailOutput struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s ResendValidationEmailOutput) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s ResendValidationEmailOutput) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// A key-value pair that identifies or specifies metadata about an ACM resource.
|
2017-01-02 21:35:31 +01:00
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/Tag
|
2016-08-21 20:44:53 +02:00
|
|
|
type Tag struct {
|
|
|
|
_ struct{} `type:"structure"`
|
|
|
|
|
|
|
|
// The key of the tag.
|
2016-11-19 19:41:01 +01:00
|
|
|
//
|
|
|
|
// Key is a required field
|
2016-08-21 20:44:53 +02:00
|
|
|
Key *string `min:"1" type:"string" required:"true"`
|
|
|
|
|
|
|
|
// The value of the tag.
|
|
|
|
Value *string `type:"string"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// String returns the string representation
|
|
|
|
func (s Tag) String() string {
|
|
|
|
return awsutil.Prettify(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GoString returns the string representation
|
|
|
|
func (s Tag) GoString() string {
|
|
|
|
return s.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
|
|
func (s *Tag) Validate() error {
|
|
|
|
invalidParams := request.ErrInvalidParams{Context: "Tag"}
|
|
|
|
if s.Key == nil {
|
|
|
|
invalidParams.Add(request.NewErrParamRequired("Key"))
|
|
|
|
}
|
|
|
|
if s.Key != nil && len(*s.Key) < 1 {
|
|
|
|
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
|
|
|
|
}
|
|
|
|
|
|
|
|
if invalidParams.Len() > 0 {
|
|
|
|
return invalidParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
// SetKey sets the Key field's value.
|
|
|
|
func (s *Tag) SetKey(v string) *Tag {
|
|
|
|
s.Key = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetValue sets the Value field's value.
|
|
|
|
func (s *Tag) SetValue(v string) *Tag {
|
|
|
|
s.Value = &v
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
2016-08-21 20:44:53 +02:00
|
|
|
const (
|
2016-11-19 19:41:01 +01:00
|
|
|
// CertificateStatusPendingValidation is a CertificateStatus enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateStatusPendingValidation = "PENDING_VALIDATION"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// CertificateStatusIssued is a CertificateStatus enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateStatusIssued = "ISSUED"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// CertificateStatusInactive is a CertificateStatus enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateStatusInactive = "INACTIVE"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// CertificateStatusExpired is a CertificateStatus enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateStatusExpired = "EXPIRED"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// CertificateStatusValidationTimedOut is a CertificateStatus enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateStatusValidationTimedOut = "VALIDATION_TIMED_OUT"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// CertificateStatusRevoked is a CertificateStatus enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateStatusRevoked = "REVOKED"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// CertificateStatusFailed is a CertificateStatus enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
CertificateStatusFailed = "FAILED"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2016-11-19 19:41:01 +01:00
|
|
|
// CertificateTypeImported is a CertificateType enum value
|
|
|
|
CertificateTypeImported = "IMPORTED"
|
|
|
|
|
|
|
|
// CertificateTypeAmazonIssued is a CertificateType enum value
|
|
|
|
CertificateTypeAmazonIssued = "AMAZON_ISSUED"
|
|
|
|
)
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
const (
|
|
|
|
// DomainStatusPendingValidation is a DomainStatus enum value
|
|
|
|
DomainStatusPendingValidation = "PENDING_VALIDATION"
|
|
|
|
|
|
|
|
// DomainStatusSuccess is a DomainStatus enum value
|
|
|
|
DomainStatusSuccess = "SUCCESS"
|
|
|
|
|
|
|
|
// DomainStatusFailed is a DomainStatus enum value
|
|
|
|
DomainStatusFailed = "FAILED"
|
|
|
|
)
|
|
|
|
|
2016-11-19 19:41:01 +01:00
|
|
|
const (
|
|
|
|
// FailureReasonNoAvailableContacts is a FailureReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
FailureReasonNoAvailableContacts = "NO_AVAILABLE_CONTACTS"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// FailureReasonAdditionalVerificationRequired is a FailureReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
FailureReasonAdditionalVerificationRequired = "ADDITIONAL_VERIFICATION_REQUIRED"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// FailureReasonDomainNotAllowed is a FailureReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
FailureReasonDomainNotAllowed = "DOMAIN_NOT_ALLOWED"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// FailureReasonInvalidPublicDomain is a FailureReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
FailureReasonInvalidPublicDomain = "INVALID_PUBLIC_DOMAIN"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// FailureReasonOther is a FailureReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
FailureReasonOther = "OTHER"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2016-11-19 19:41:01 +01:00
|
|
|
// KeyAlgorithmRsa2048 is a KeyAlgorithm enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
KeyAlgorithmRsa2048 = "RSA_2048"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// KeyAlgorithmRsa1024 is a KeyAlgorithm enum value
|
|
|
|
KeyAlgorithmRsa1024 = "RSA_1024"
|
|
|
|
|
|
|
|
// KeyAlgorithmEcPrime256v1 is a KeyAlgorithm enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
KeyAlgorithmEcPrime256v1 = "EC_prime256v1"
|
|
|
|
)
|
|
|
|
|
2017-01-30 15:18:29 +01:00
|
|
|
const (
|
|
|
|
// RenewalStatusPendingAutoRenewal is a RenewalStatus enum value
|
|
|
|
RenewalStatusPendingAutoRenewal = "PENDING_AUTO_RENEWAL"
|
|
|
|
|
|
|
|
// RenewalStatusPendingValidation is a RenewalStatus enum value
|
|
|
|
RenewalStatusPendingValidation = "PENDING_VALIDATION"
|
|
|
|
|
|
|
|
// RenewalStatusSuccess is a RenewalStatus enum value
|
|
|
|
RenewalStatusSuccess = "SUCCESS"
|
|
|
|
|
|
|
|
// RenewalStatusFailed is a RenewalStatus enum value
|
|
|
|
RenewalStatusFailed = "FAILED"
|
|
|
|
)
|
|
|
|
|
2016-08-21 20:44:53 +02:00
|
|
|
const (
|
2016-11-19 19:41:01 +01:00
|
|
|
// RevocationReasonUnspecified is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonUnspecified = "UNSPECIFIED"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonKeyCompromise is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonKeyCompromise = "KEY_COMPROMISE"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonCaCompromise is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonCaCompromise = "CA_COMPROMISE"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonAffiliationChanged is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonAffiliationChanged = "AFFILIATION_CHANGED"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonSuperceded is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonSuperceded = "SUPERCEDED"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonCessationOfOperation is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonCessationOfOperation = "CESSATION_OF_OPERATION"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonCertificateHold is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonCertificateHold = "CERTIFICATE_HOLD"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonRemoveFromCrl is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonRemoveFromCrl = "REMOVE_FROM_CRL"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonPrivilegeWithdrawn is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonPrivilegeWithdrawn = "PRIVILEGE_WITHDRAWN"
|
2016-11-19 19:41:01 +01:00
|
|
|
|
|
|
|
// RevocationReasonAACompromise is a RevocationReason enum value
|
2016-08-21 20:44:53 +02:00
|
|
|
RevocationReasonAACompromise = "A_A_COMPROMISE"
|
|
|
|
)
|