Documentation ¶
Overview ¶
Package acm provides the client and types for making API requests to ACM.
Welcome to the AWS Certificate Manager (ACM) API documentation.
You can use ACM to manage SSL/TLS certificates for your AWS-based websites and applications. For general information about using ACM, see the AWS Certificate Manager User Guide (https://docs.aws.amazon.com/acm/latest/userguide/).
See https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08 for more information on this service.
See acm package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/acm/
Using the Client ¶
To use ACM with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the ACM client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/acm/#New
Index ¶
- Constants
- type AddTagsToCertificateInput
- type AddTagsToCertificateOutput
- type AddTagsToCertificateRequest
- type AddTagsToCertificateResponse
- type CertificateDetail
- type CertificateOptions
- type CertificateStatus
- type CertificateSummary
- type CertificateTransparencyLoggingPreference
- type CertificateType
- type Client
- func (c *Client) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) AddTagsToCertificateRequest
- func (c *Client) DeleteCertificateRequest(input *DeleteCertificateInput) DeleteCertificateRequest
- func (c *Client) DescribeCertificateRequest(input *DescribeCertificateInput) DescribeCertificateRequest
- func (c *Client) ExportCertificateRequest(input *ExportCertificateInput) ExportCertificateRequest
- func (c *Client) GetCertificateRequest(input *GetCertificateInput) GetCertificateRequest
- func (c *Client) ImportCertificateRequest(input *ImportCertificateInput) ImportCertificateRequest
- func (c *Client) ListCertificatesRequest(input *ListCertificatesInput) ListCertificatesRequest
- func (c *Client) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) ListTagsForCertificateRequest
- func (c *Client) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateInput) RemoveTagsFromCertificateRequest
- func (c *Client) RenewCertificateRequest(input *RenewCertificateInput) RenewCertificateRequest
- func (c *Client) RequestCertificateRequest(input *RequestCertificateInput) RequestCertificateRequest
- func (c *Client) ResendValidationEmailRequest(input *ResendValidationEmailInput) ResendValidationEmailRequest
- func (c *Client) UpdateCertificateOptionsRequest(input *UpdateCertificateOptionsInput) UpdateCertificateOptionsRequest
- func (c *Client) WaitUntilCertificateValidated(ctx context.Context, input *DescribeCertificateInput, opts ...aws.WaiterOption) error
- type DeleteCertificateInput
- type DeleteCertificateOutput
- type DeleteCertificateRequest
- type DeleteCertificateResponse
- type DescribeCertificateInput
- type DescribeCertificateOutput
- type DescribeCertificateRequest
- type DescribeCertificateResponse
- type DomainStatus
- type DomainValidation
- type DomainValidationOption
- type ExportCertificateInput
- type ExportCertificateOutput
- type ExportCertificateRequest
- type ExportCertificateResponse
- type ExtendedKeyUsage
- type ExtendedKeyUsageName
- type FailureReason
- type Filters
- type GetCertificateInput
- type GetCertificateOutput
- type GetCertificateRequest
- type GetCertificateResponse
- type ImportCertificateInput
- type ImportCertificateOutput
- type ImportCertificateRequest
- type ImportCertificateResponse
- type KeyAlgorithm
- type KeyUsage
- type KeyUsageName
- type ListCertificatesInput
- type ListCertificatesOutput
- type ListCertificatesPaginator
- type ListCertificatesRequest
- type ListCertificatesResponse
- type ListTagsForCertificateInput
- type ListTagsForCertificateOutput
- type ListTagsForCertificateRequest
- type ListTagsForCertificateResponse
- type RecordType
- type RemoveTagsFromCertificateInput
- type RemoveTagsFromCertificateOutput
- type RemoveTagsFromCertificateRequest
- type RemoveTagsFromCertificateResponse
- type RenewCertificateInput
- type RenewCertificateOutput
- type RenewCertificateRequest
- type RenewCertificateResponse
- type RenewalEligibility
- type RenewalStatus
- type RenewalSummary
- type RequestCertificateInput
- type RequestCertificateOutput
- type RequestCertificateRequest
- type RequestCertificateResponse
- type ResendValidationEmailInput
- type ResendValidationEmailOutput
- type ResendValidationEmailRequest
- type ResendValidationEmailResponse
- type ResourceRecord
- type RevocationReason
- type Tag
- type UpdateCertificateOptionsInput
- type UpdateCertificateOptionsOutput
- type UpdateCertificateOptionsRequest
- type UpdateCertificateOptionsResponse
- type ValidationMethod
Constants ¶
const ( ServiceName = "ACM" // Service's name ServiceID = "ACM" // Service's identifier EndpointsID = "acm" // Service's Endpoint identifier )
const ( // ErrCodeInvalidArgsException for service response error code // "InvalidArgsException". // // One or more of of request parameters specified is not valid. ErrCodeInvalidArgsException = "InvalidArgsException" // ErrCodeInvalidArnException for service response error code // "InvalidArnException". // // The requested Amazon Resource Name (ARN) does not refer to an existing resource. ErrCodeInvalidArnException = "InvalidArnException" // ErrCodeInvalidDomainValidationOptionsException for service response error code // "InvalidDomainValidationOptionsException". // // One or more values in the DomainValidationOption structure is incorrect. ErrCodeInvalidDomainValidationOptionsException = "InvalidDomainValidationOptionsException" // ErrCodeInvalidStateException for service response error code // "InvalidStateException". // // Processing has reached an invalid state. ErrCodeInvalidStateException = "InvalidStateException" // ErrCodeInvalidTagException for service response error code // "InvalidTagException". // // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. ErrCodeInvalidTagException = "InvalidTagException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // An ACM limit has been exceeded. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeRequestInProgressException for service response error code // "RequestInProgressException". // // The certificate request is in process and the certificate in your account // has not yet been issued. ErrCodeRequestInProgressException = "RequestInProgressException" // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // // The certificate is in use by another AWS service in the caller's account. // Remove the association and try again. ErrCodeResourceInUseException = "ResourceInUseException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeTooManyTagsException for service response error code // "TooManyTagsException". // // The request contains too many tags. Try the request again with fewer tags. ErrCodeTooManyTagsException = "TooManyTagsException" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTagsToCertificateInput ¶
type AddTagsToCertificateInput struct { // String that contains the ARN of the ACM certificate to which the tag is to // be applied. This must be of the form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // The key-value pair that defines the tag. The tag value is optional. // // Tags is a required field Tags []Tag `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
func (AddTagsToCertificateInput) String ¶
func (s AddTagsToCertificateInput) String() string
String returns the string representation
func (*AddTagsToCertificateInput) Validate ¶
func (s *AddTagsToCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AddTagsToCertificateOutput ¶
type AddTagsToCertificateOutput struct {
// contains filtered or unexported fields
}
func (AddTagsToCertificateOutput) String ¶
func (s AddTagsToCertificateOutput) String() string
String returns the string representation
type AddTagsToCertificateRequest ¶
type AddTagsToCertificateRequest struct { *aws.Request Input *AddTagsToCertificateInput Copy func(*AddTagsToCertificateInput) AddTagsToCertificateRequest }
AddTagsToCertificateRequest is the request type for the AddTagsToCertificate API operation.
func (AddTagsToCertificateRequest) Send ¶
func (r AddTagsToCertificateRequest) Send(ctx context.Context) (*AddTagsToCertificateResponse, error)
Send marshals and sends the AddTagsToCertificate API request.
type AddTagsToCertificateResponse ¶ added in v0.9.0
type AddTagsToCertificateResponse struct { *AddTagsToCertificateOutput // contains filtered or unexported fields }
AddTagsToCertificateResponse is the response type for the AddTagsToCertificate API operation.
func (*AddTagsToCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *AddTagsToCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the AddTagsToCertificate request.
type CertificateDetail ¶
type CertificateDetail struct { // The Amazon Resource Name (ARN) of the certificate. For more information about // ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. CertificateArn *string `min:"20" type:"string"` // The Amazon Resource Name (ARN) of the ACM PCA private certificate authority // (CA) that issued the certificate. This has the following format: // // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 CertificateAuthorityArn *string `min:"20" type:"string"` // The time at which the certificate was requested. This value exists only when // the certificate type is AMAZON_ISSUED. CreatedAt *time.Time `type:"timestamp"` // The fully qualified domain name for the certificate, such as www.example.com // or example.com. DomainName *string `min:"1" type:"string"` // Contains information about the 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. DomainValidationOptions []DomainValidation `min:"1" type:"list"` // Contains a list of Extended Key Usage X.509 v3 extension objects. Each object // specifies a purpose for which the certificate public key can be used and // consists of a name and an object identifier (OID). ExtendedKeyUsages []ExtendedKeyUsage `type:"list"` // The reason the certificate request failed. This value exists only when the // certificate status is FAILED. For more information, see Certificate Request // Failed (https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed) // in the AWS Certificate Manager User Guide. FailureReason FailureReason `type:"string" enum:"true"` // 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"` // A list of ARNs for the AWS resources that are using the certificate. A certificate // can be used by multiple AWS resources. InUseBy []string `type:"list"` // The time at which the certificate was issued. This value exists only when // the certificate type is AMAZON_ISSUED. IssuedAt *time.Time `type:"timestamp"` // The name of the certificate authority that issued and signed the certificate. Issuer *string `type:"string"` // The algorithm that was used to generate the public-private key pair. KeyAlgorithm KeyAlgorithm `type:"string" enum:"true"` // A list of Key Usage X.509 v3 extension objects. Each object is a string value // that identifies the purpose of the public key contained in the certificate. // Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, // and more. KeyUsages []KeyUsage `type:"list"` // The time after which the certificate is not valid. NotAfter *time.Time `type:"timestamp"` // The time before which the certificate is not valid. NotBefore *time.Time `type:"timestamp"` // Value that specifies whether to add the certificate to a transparency log. // Certificate transparency makes it possible to detect SSL certificates that // have been mistakenly or maliciously issued. A browser might respond to certificate // that has not been logged by showing an error message. The logs are cryptographically // secure. Options *CertificateOptions `type:"structure"` // Specifies whether the certificate is eligible for renewal. At this time, // only exported private certificates can be renewed with the RenewCertificate // command. RenewalEligibility RenewalEligibility `type:"string" enum:"true"` // Contains information about the status of ACM's managed renewal (https://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"` // The reason the certificate was revoked. This value exists only when the certificate // status is REVOKED. RevocationReason RevocationReason `type:"string" enum:"true"` // The time at which the certificate was revoked. This value exists only when // the certificate status is REVOKED. RevokedAt *time.Time `type:"timestamp"` // The serial number of the certificate. Serial *string `type:"string"` // The algorithm that was used to sign the certificate. SignatureAlgorithm *string `type:"string"` // The status of the certificate. Status CertificateStatus `type:"string" enum:"true"` // The name of the entity that is associated with the public key contained in // the certificate. Subject *string `type:"string"` // One or more domain names (subject alternative names) included in the certificate. // This list contains the domain names that are bound to the public key that // is contained in the certificate. The subject alternative names include the // canonical domain name (CN) of the certificate and additional domain names // that can be used to connect to the website. SubjectAlternativeNames []string `min:"1" type:"list"` // The source of the certificate. For certificates provided by ACM, this value // is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, // this value is IMPORTED. ACM does not provide managed renewal (https://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 // (https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) // in the AWS Certificate Manager User Guide. Type CertificateType `type:"string" enum:"true"` // contains filtered or unexported fields }
Contains metadata about an ACM certificate. This structure is returned in the response to a DescribeCertificate request.
func (CertificateDetail) String ¶
func (s CertificateDetail) String() string
String returns the string representation
type CertificateOptions ¶ added in v0.4.0
type CertificateOptions struct { // You can opt out of certificate transparency logging by specifying the DISABLED // option. Opt in by specifying ENABLED. CertificateTransparencyLoggingPreference CertificateTransparencyLoggingPreference `type:"string" enum:"true"` // contains filtered or unexported fields }
Structure that contains options for your certificate. Currently, you can use this only to specify whether to opt in to or out of certificate transparency logging. Some browsers require that public certificates issued for your domain be recorded in a log. Certificates that are not logged typically generate a browser error. Transparency makes it possible for you to detect SSL/TLS certificates that have been mistakenly or maliciously issued for your domain. For general information, see Certificate Transparency Logging (https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency).
func (CertificateOptions) String ¶ added in v0.4.0
func (s CertificateOptions) String() string
String returns the string representation
type CertificateStatus ¶
type CertificateStatus string
const ( CertificateStatusPendingValidation CertificateStatus = "PENDING_VALIDATION" CertificateStatusIssued CertificateStatus = "ISSUED" CertificateStatusInactive CertificateStatus = "INACTIVE" CertificateStatusExpired CertificateStatus = "EXPIRED" CertificateStatusValidationTimedOut CertificateStatus = "VALIDATION_TIMED_OUT" CertificateStatusRevoked CertificateStatus = "REVOKED" CertificateStatusFailed CertificateStatus = "FAILED" )
Enum values for CertificateStatus
func (CertificateStatus) MarshalValue ¶ added in v0.3.0
func (enum CertificateStatus) MarshalValue() (string, error)
func (CertificateStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum CertificateStatus) MarshalValueBuf(b []byte) ([]byte, error)
type CertificateSummary ¶
type CertificateSummary struct { // Amazon Resource Name (ARN) of the certificate. This is of the form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (https://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"` // contains filtered or unexported fields }
This structure is returned in the response object of ListCertificates action.
func (CertificateSummary) String ¶
func (s CertificateSummary) String() string
String returns the string representation
type CertificateTransparencyLoggingPreference ¶ added in v0.4.0
type CertificateTransparencyLoggingPreference string
const ( CertificateTransparencyLoggingPreferenceEnabled CertificateTransparencyLoggingPreference = "ENABLED" CertificateTransparencyLoggingPreferenceDisabled CertificateTransparencyLoggingPreference = "DISABLED" )
Enum values for CertificateTransparencyLoggingPreference
func (CertificateTransparencyLoggingPreference) MarshalValue ¶ added in v0.4.0
func (enum CertificateTransparencyLoggingPreference) MarshalValue() (string, error)
func (CertificateTransparencyLoggingPreference) MarshalValueBuf ¶ added in v0.4.0
func (enum CertificateTransparencyLoggingPreference) MarshalValueBuf(b []byte) ([]byte, error)
type CertificateType ¶
type CertificateType string
const ( CertificateTypeImported CertificateType = "IMPORTED" CertificateTypeAmazonIssued CertificateType = "AMAZON_ISSUED" CertificateTypePrivate CertificateType = "PRIVATE" )
Enum values for CertificateType
func (CertificateType) MarshalValue ¶ added in v0.3.0
func (enum CertificateType) MarshalValue() (string, error)
func (CertificateType) MarshalValueBuf ¶ added in v0.3.0
func (enum CertificateType) MarshalValueBuf(b []byte) ([]byte, error)
type Client ¶ added in v0.9.0
Client provides the API operation methods for making requests to ACM. See this package's package overview docs for details on the service.
The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the client from the provided Config.
Example:
// Create a client from just a config. svc := acm.New(myConfig)
func (*Client) AddTagsToCertificateRequest ¶ added in v0.9.0
func (c *Client) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) AddTagsToCertificateRequest
AddTagsToCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key and an optional value. You specify the certificate on input by its Amazon 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 (https://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.
// Example sending a request using AddTagsToCertificateRequest. req := client.AddTagsToCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate
func (*Client) DeleteCertificateRequest ¶ added in v0.9.0
func (c *Client) DeleteCertificateRequest(input *DeleteCertificateInput) DeleteCertificateRequest
DeleteCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Deletes a certificate and its associated private key. If this action succeeds, the certificate no longer appears in the list that can be displayed by calling the ListCertificates action or be retrieved by calling the GetCertificate action. The certificate will not be available for use by AWS services integrated with ACM.
You cannot delete an ACM certificate that is being used by another AWS service. To delete a certificate that is in use, the certificate association must first be removed.
// Example sending a request using DeleteCertificateRequest. req := client.DeleteCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate
func (*Client) DescribeCertificateRequest ¶ added in v0.9.0
func (c *Client) DescribeCertificateRequest(input *DescribeCertificateInput) DescribeCertificateRequest
DescribeCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Returns detailed metadata about the specified ACM certificate.
// Example sending a request using DescribeCertificateRequest. req := client.DescribeCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate
func (*Client) ExportCertificateRequest ¶ added in v0.9.0
func (c *Client) ExportCertificateRequest(input *ExportCertificateInput) ExportCertificateRequest
ExportCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Exports a private certificate issued by a private certificate authority (CA) for use anywhere. You can export the certificate, the certificate chain, and the encrypted private key associated with the public key embedded in the certificate. You must store the private key securely. The private key is a 2048 bit RSA key. You must provide a passphrase for the private key when exporting it. You can use the following OpenSSL command to decrypt it later. Provide the passphrase when prompted.
openssl rsa -in encrypted_key.pem -out decrypted_key.pem
// Example sending a request using ExportCertificateRequest. req := client.ExportCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate
func (*Client) GetCertificateRequest ¶ added in v0.9.0
func (c *Client) GetCertificateRequest(input *GetCertificateInput) GetCertificateRequest
GetCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Retrieves a certificate specified by an ARN and its certificate chain . The chain is an ordered list of certificates that contains the end entity certificate, intermediate certificates of subordinate CAs, and the root certificate in that order. The certificate and certificate chain are base64 encoded. If you want to decode the certificate to see the individual fields, you can use OpenSSL.
// Example sending a request using GetCertificateRequest. req := client.GetCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate
func (*Client) ImportCertificateRequest ¶ added in v0.9.0
func (c *Client) ImportCertificateRequest(input *ImportCertificateInput) ImportCertificateRequest
ImportCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Imports a certificate into AWS Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services (https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html) allow only certificate types and keys they support to be associated with their resources. Further, their support differs depending on whether the certificate is imported into IAM or into ACM. For more information, see the documentation for each service. For more information about importing certificates into ACM, see Importing Certificates (https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) in the AWS Certificate Manager User Guide.
ACM does not provide managed renewal (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) for certificates that you import.
Note the following guidelines when importing third party certificates:
You must enter the private key that matches the certificate you are importing.
The private key must be unencrypted. You cannot import a private key that is protected by a password or a passphrase.
If the certificate you are importing is not self-signed, you must enter its certificate chain.
If a certificate chain is included, the issuer must be the subject of one of the certificates in the chain.
The certificate, private key, and certificate chain must be PEM-encoded.
The current time must be between the Not Before and Not After certificate fields.
The Issuer field must not be empty.
The OCSP authority URL, if present, must not exceed 1000 characters.
To import a new certificate, omit the CertificateArn argument. Include this argument only when you want to replace a previously imported certificate.
When you import a certificate by using the CLI, you must specify the certificate, the certificate chain, and the private key by their file names preceded by file://. For example, you can specify a certificate saved in the C:\temp folder as file://C:\temp\certificate_to_import.pem. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs.
When you import a certificate by using an SDK, you must specify the certificate, the certificate chain, and the private key files in the manner required by the programming language you're using.
This operation returns the Amazon Resource Name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the imported certificate.
// Example sending a request using ImportCertificateRequest. req := client.ImportCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate
func (*Client) ListCertificatesRequest ¶ added in v0.9.0
func (c *Client) ListCertificatesRequest(input *ListCertificatesInput) ListCertificatesRequest
ListCertificatesRequest returns a request value for making API operation for AWS Certificate Manager.
Retrieves a list of certificate ARNs and domain names. You can request that only certificates that match a specific status be listed. You can also filter by specific attributes of the certificate.
// Example sending a request using ListCertificatesRequest. req := client.ListCertificatesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates
func (*Client) ListTagsForCertificateRequest ¶ added in v0.9.0
func (c *Client) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) ListTagsForCertificateRequest
ListTagsForCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
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.
// Example sending a request using ListTagsForCertificateRequest. req := client.ListTagsForCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate
func (*Client) RemoveTagsFromCertificateRequest ¶ added in v0.9.0
func (c *Client) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateInput) RemoveTagsFromCertificateRequest
RemoveTagsFromCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this function, the tag will be removed regardless of value. If you specify a value, 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.
// Example sending a request using RemoveTagsFromCertificateRequest. req := client.RemoveTagsFromCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate
func (*Client) RenewCertificateRequest ¶ added in v0.9.0
func (c *Client) RenewCertificateRequest(input *RenewCertificateInput) RenewCertificateRequest
RenewCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Renews an eligable ACM certificate. At this time, only exported private certificates can be renewed with this operation. In order to renew your ACM PCA certificates with ACM, you must first grant the ACM service principal permission to do so (https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaPermissions.html). For more information, see Testing Managed Renewal (https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html) in the ACM User Guide.
// Example sending a request using RenewCertificateRequest. req := client.RenewCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate
func (*Client) RequestCertificateRequest ¶ added in v0.9.0
func (c *Client) RequestCertificateRequest(input *RequestCertificateInput) RequestCertificateRequest
RequestCertificateRequest returns a request value for making API operation for AWS Certificate Manager.
Requests an ACM certificate for use with other AWS services. To request an ACM certificate, you must specify a fully qualified domain name (FQDN) in the DomainName parameter. You can also specify additional FQDNs in the SubjectAlternativeNames parameter.
If you are requesting a private certificate, domain validation is not required. If you are requesting a public certificate, each domain name that you specify must be validated to verify that you own or control the domain. You can use DNS validation (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html) or email validation (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html). We recommend that you use DNS validation. ACM issues public certificates after receiving approval from the domain owner.
// Example sending a request using RequestCertificateRequest. req := client.RequestCertificateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate
func (*Client) ResendValidationEmailRequest ¶ added in v0.9.0
func (c *Client) ResendValidationEmailRequest(input *ResendValidationEmailInput) ResendValidationEmailRequest
ResendValidationEmailRequest returns a request value for making API operation for AWS Certificate Manager.
Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM certificate before it can be issued. The certificate can be approved by clicking a link in the 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. For more information about setting up your contact email addresses, see Configure Email for your Domain (https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html).
// Example sending a request using ResendValidationEmailRequest. req := client.ResendValidationEmailRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail
func (*Client) UpdateCertificateOptionsRequest ¶ added in v0.9.0
func (c *Client) UpdateCertificateOptionsRequest(input *UpdateCertificateOptionsInput) UpdateCertificateOptionsRequest
UpdateCertificateOptionsRequest returns a request value for making API operation for AWS Certificate Manager.
Updates a certificate. Currently, you can use this function to specify whether to opt in to or out of recording your certificate in a certificate transparency log. For more information, see Opting Out of Certificate Transparency Logging (https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency).
// Example sending a request using UpdateCertificateOptionsRequest. req := client.UpdateCertificateOptionsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions
func (*Client) WaitUntilCertificateValidated ¶ added in v0.9.0
func (c *Client) WaitUntilCertificateValidated(ctx context.Context, input *DescribeCertificateInput, opts ...aws.WaiterOption) error
WaitUntilCertificateValidated uses the ACM API operation DescribeCertificate to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
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.
type DeleteCertificateInput ¶
type DeleteCertificateInput struct { // String that contains the ARN of the ACM certificate to be deleted. This must // be of the form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteCertificateInput) String ¶
func (s DeleteCertificateInput) String() string
String returns the string representation
func (*DeleteCertificateInput) Validate ¶
func (s *DeleteCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteCertificateOutput ¶
type DeleteCertificateOutput struct {
// contains filtered or unexported fields
}
func (DeleteCertificateOutput) String ¶
func (s DeleteCertificateOutput) String() string
String returns the string representation
type DeleteCertificateRequest ¶
type DeleteCertificateRequest struct { *aws.Request Input *DeleteCertificateInput Copy func(*DeleteCertificateInput) DeleteCertificateRequest }
DeleteCertificateRequest is the request type for the DeleteCertificate API operation.
func (DeleteCertificateRequest) Send ¶
func (r DeleteCertificateRequest) Send(ctx context.Context) (*DeleteCertificateResponse, error)
Send marshals and sends the DeleteCertificate API request.
type DeleteCertificateResponse ¶ added in v0.9.0
type DeleteCertificateResponse struct { *DeleteCertificateOutput // contains filtered or unexported fields }
DeleteCertificateResponse is the response type for the DeleteCertificate API operation.
func (*DeleteCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteCertificate request.
type DescribeCertificateInput ¶
type DescribeCertificateInput struct { // The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have // the following form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeCertificateInput) String ¶
func (s DescribeCertificateInput) String() string
String returns the string representation
func (*DescribeCertificateInput) Validate ¶
func (s *DescribeCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeCertificateOutput ¶
type DescribeCertificateOutput struct { // Metadata about an ACM certificate. Certificate *CertificateDetail `type:"structure"` // contains filtered or unexported fields }
func (DescribeCertificateOutput) String ¶
func (s DescribeCertificateOutput) String() string
String returns the string representation
type DescribeCertificateRequest ¶
type DescribeCertificateRequest struct { *aws.Request Input *DescribeCertificateInput Copy func(*DescribeCertificateInput) DescribeCertificateRequest }
DescribeCertificateRequest is the request type for the DescribeCertificate API operation.
func (DescribeCertificateRequest) Send ¶
func (r DescribeCertificateRequest) Send(ctx context.Context) (*DescribeCertificateResponse, error)
Send marshals and sends the DescribeCertificate API request.
type DescribeCertificateResponse ¶ added in v0.9.0
type DescribeCertificateResponse struct { *DescribeCertificateOutput // contains filtered or unexported fields }
DescribeCertificateResponse is the response type for the DescribeCertificate API operation.
func (*DescribeCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeCertificate request.
type DomainStatus ¶
type DomainStatus string
const ( DomainStatusPendingValidation DomainStatus = "PENDING_VALIDATION" DomainStatusSuccess DomainStatus = "SUCCESS" DomainStatusFailed DomainStatus = "FAILED" )
Enum values for DomainStatus
func (DomainStatus) MarshalValue ¶ added in v0.3.0
func (enum DomainStatus) MarshalValue() (string, error)
func (DomainStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum DomainStatus) MarshalValueBuf(b []byte) ([]byte, error)
type DomainValidation ¶
type DomainValidation struct { // A fully qualified domain name (FQDN) in the certificate. For example, www.example.com // or example.com. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // Contains the CNAME record that you add to your DNS database for domain validation. // For more information, see Use DNS to Validate Domain Ownership (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html). ResourceRecord *ResourceRecord `type:"structure"` // The domain name that ACM used to send domain validation emails. ValidationDomain *string `min:"1" type:"string"` // A list of email addresses that ACM used to send domain validation emails. ValidationEmails []string `type:"list"` // Specifies the domain validation method. ValidationMethod ValidationMethod `type:"string" enum:"true"` // The validation status of the domain name. This can be one of the following // values: // // * PENDING_VALIDATION // // * SUCCESS // // * FAILED ValidationStatus DomainStatus `type:"string" enum:"true"` // contains filtered or unexported fields }
Contains information about the validation of each domain name in the certificate.
func (DomainValidation) String ¶
func (s DomainValidation) String() string
String returns the string representation
type DomainValidationOption ¶
type DomainValidationOption struct { // A fully qualified domain name (FQDN) in the certificate request. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // The domain name that you want ACM to use to send you 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: // // * admin@example.com // // * administrator@example.com // // * hostmaster@example.com // // * postmaster@example.com // // * webmaster@example.com // // ValidationDomain is a required field ValidationDomain *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Contains information about the domain names that you want ACM to use to send you emails that enable you to validate domain ownership.
func (DomainValidationOption) String ¶
func (s DomainValidationOption) String() string
String returns the string representation
func (*DomainValidationOption) Validate ¶
func (s *DomainValidationOption) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExportCertificateInput ¶ added in v0.4.0
type ExportCertificateInput struct { // An Amazon Resource Name (ARN) of the issued certificate. This must be of // the form: // // arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // Passphrase to associate with the encrypted exported private key. If you want // to later decrypt the private key, you must have the passphrase. You can use // the following OpenSSL command to decrypt a private key: // // openssl rsa -in encrypted_key.pem -out decrypted_key.pem // // Passphrase is automatically base64 encoded/decoded by the SDK. // // Passphrase is a required field Passphrase []byte `min:"4" type:"blob" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (ExportCertificateInput) String ¶ added in v0.4.0
func (s ExportCertificateInput) String() string
String returns the string representation
func (*ExportCertificateInput) Validate ¶ added in v0.4.0
func (s *ExportCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExportCertificateOutput ¶ added in v0.4.0
type ExportCertificateOutput struct { // The base64 PEM-encoded certificate. Certificate *string `min:"1" type:"string"` // The base64 PEM-encoded certificate chain. This does not include the certificate // that you are exporting. CertificateChain *string `min:"1" type:"string"` // The encrypted private key associated with the public key in the certificate. // The key is output in PKCS #8 format and is base64 PEM-encoded. PrivateKey *string `min:"1" type:"string" sensitive:"true"` // contains filtered or unexported fields }
func (ExportCertificateOutput) String ¶ added in v0.4.0
func (s ExportCertificateOutput) String() string
String returns the string representation
type ExportCertificateRequest ¶ added in v0.4.0
type ExportCertificateRequest struct { *aws.Request Input *ExportCertificateInput Copy func(*ExportCertificateInput) ExportCertificateRequest }
ExportCertificateRequest is the request type for the ExportCertificate API operation.
func (ExportCertificateRequest) Send ¶ added in v0.4.0
func (r ExportCertificateRequest) Send(ctx context.Context) (*ExportCertificateResponse, error)
Send marshals and sends the ExportCertificate API request.
type ExportCertificateResponse ¶ added in v0.9.0
type ExportCertificateResponse struct { *ExportCertificateOutput // contains filtered or unexported fields }
ExportCertificateResponse is the response type for the ExportCertificate API operation.
func (*ExportCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ExportCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ExportCertificate request.
type ExtendedKeyUsage ¶ added in v0.2.0
type ExtendedKeyUsage struct { // The name of an Extended Key Usage value. Name ExtendedKeyUsageName `type:"string" enum:"true"` // An object identifier (OID) for the extension value. OIDs are strings of numbers // separated by periods. The following OIDs are defined in RFC 3280 and RFC // 5280. // // * 1.3.6.1.5.5.7.3.1 (TLS_WEB_SERVER_AUTHENTICATION) // // * 1.3.6.1.5.5.7.3.2 (TLS_WEB_CLIENT_AUTHENTICATION) // // * 1.3.6.1.5.5.7.3.3 (CODE_SIGNING) // // * 1.3.6.1.5.5.7.3.4 (EMAIL_PROTECTION) // // * 1.3.6.1.5.5.7.3.8 (TIME_STAMPING) // // * 1.3.6.1.5.5.7.3.9 (OCSP_SIGNING) // // * 1.3.6.1.5.5.7.3.5 (IPSEC_END_SYSTEM) // // * 1.3.6.1.5.5.7.3.6 (IPSEC_TUNNEL) // // * 1.3.6.1.5.5.7.3.7 (IPSEC_USER) OID *string `type:"string"` // contains filtered or unexported fields }
The Extended Key Usage X.509 v3 extension defines one or more purposes for which the public key can be used. This is in addition to or in place of the basic purposes specified by the Key Usage extension.
func (ExtendedKeyUsage) String ¶ added in v0.2.0
func (s ExtendedKeyUsage) String() string
String returns the string representation
type ExtendedKeyUsageName ¶ added in v0.2.0
type ExtendedKeyUsageName string
const ( ExtendedKeyUsageNameTlsWebServerAuthentication ExtendedKeyUsageName = "TLS_WEB_SERVER_AUTHENTICATION" ExtendedKeyUsageNameTlsWebClientAuthentication ExtendedKeyUsageName = "TLS_WEB_CLIENT_AUTHENTICATION" ExtendedKeyUsageNameCodeSigning ExtendedKeyUsageName = "CODE_SIGNING" ExtendedKeyUsageNameEmailProtection ExtendedKeyUsageName = "EMAIL_PROTECTION" ExtendedKeyUsageNameTimeStamping ExtendedKeyUsageName = "TIME_STAMPING" ExtendedKeyUsageNameOcspSigning ExtendedKeyUsageName = "OCSP_SIGNING" ExtendedKeyUsageNameIpsecEndSystem ExtendedKeyUsageName = "IPSEC_END_SYSTEM" ExtendedKeyUsageNameIpsecTunnel ExtendedKeyUsageName = "IPSEC_TUNNEL" ExtendedKeyUsageNameIpsecUser ExtendedKeyUsageName = "IPSEC_USER" ExtendedKeyUsageNameAny ExtendedKeyUsageName = "ANY" ExtendedKeyUsageNameNone ExtendedKeyUsageName = "NONE" ExtendedKeyUsageNameCustom ExtendedKeyUsageName = "CUSTOM" )
Enum values for ExtendedKeyUsageName
func (ExtendedKeyUsageName) MarshalValue ¶ added in v0.3.0
func (enum ExtendedKeyUsageName) MarshalValue() (string, error)
func (ExtendedKeyUsageName) MarshalValueBuf ¶ added in v0.3.0
func (enum ExtendedKeyUsageName) MarshalValueBuf(b []byte) ([]byte, error)
type FailureReason ¶
type FailureReason string
const ( FailureReasonNoAvailableContacts FailureReason = "NO_AVAILABLE_CONTACTS" FailureReasonAdditionalVerificationRequired FailureReason = "ADDITIONAL_VERIFICATION_REQUIRED" FailureReasonDomainNotAllowed FailureReason = "DOMAIN_NOT_ALLOWED" FailureReasonInvalidPublicDomain FailureReason = "INVALID_PUBLIC_DOMAIN" FailureReasonDomainValidationDenied FailureReason = "DOMAIN_VALIDATION_DENIED" FailureReasonCaaError FailureReason = "CAA_ERROR" FailureReasonPcaLimitExceeded FailureReason = "PCA_LIMIT_EXCEEDED" FailureReasonPcaInvalidArn FailureReason = "PCA_INVALID_ARN" FailureReasonPcaInvalidState FailureReason = "PCA_INVALID_STATE" FailureReasonPcaRequestFailed FailureReason = "PCA_REQUEST_FAILED" FailureReasonPcaResourceNotFound FailureReason = "PCA_RESOURCE_NOT_FOUND" FailureReasonPcaInvalidArgs FailureReason = "PCA_INVALID_ARGS" FailureReasonPcaInvalidDuration FailureReason = "PCA_INVALID_DURATION" FailureReasonPcaAccessDenied FailureReason = "PCA_ACCESS_DENIED" FailureReasonOther FailureReason = "OTHER" )
Enum values for FailureReason
func (FailureReason) MarshalValue ¶ added in v0.3.0
func (enum FailureReason) MarshalValue() (string, error)
func (FailureReason) MarshalValueBuf ¶ added in v0.3.0
func (enum FailureReason) MarshalValueBuf(b []byte) ([]byte, error)
type Filters ¶ added in v0.2.0
type Filters struct { // Specify one or more ExtendedKeyUsage extension values. ExtendedKeyUsage []ExtendedKeyUsageName `locationName:"extendedKeyUsage" type:"list"` // Specify one or more algorithms that can be used to generate key pairs. KeyTypes []KeyAlgorithm `locationName:"keyTypes" type:"list"` // Specify one or more KeyUsage extension values. KeyUsage []KeyUsageName `locationName:"keyUsage" type:"list"` // contains filtered or unexported fields }
This structure can be used in the ListCertificates action to filter the output of the certificate list.
type GetCertificateInput ¶
type GetCertificateInput struct { // String that contains a certificate ARN in the following format: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetCertificateInput) String ¶
func (s GetCertificateInput) String() string
String returns the string representation
func (*GetCertificateInput) Validate ¶
func (s *GetCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetCertificateOutput ¶
type GetCertificateOutput struct { // 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"` // contains filtered or unexported fields }
func (GetCertificateOutput) String ¶
func (s GetCertificateOutput) String() string
String returns the string representation
type GetCertificateRequest ¶
type GetCertificateRequest struct { *aws.Request Input *GetCertificateInput Copy func(*GetCertificateInput) GetCertificateRequest }
GetCertificateRequest is the request type for the GetCertificate API operation.
func (GetCertificateRequest) Send ¶
func (r GetCertificateRequest) Send(ctx context.Context) (*GetCertificateResponse, error)
Send marshals and sends the GetCertificate API request.
type GetCertificateResponse ¶ added in v0.9.0
type GetCertificateResponse struct { *GetCertificateOutput // contains filtered or unexported fields }
GetCertificateResponse is the response type for the GetCertificate API operation.
func (*GetCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetCertificate request.
type ImportCertificateInput ¶
type ImportCertificateInput struct { // The certificate to import. // // 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) (https://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 PEM encoded certificate chain. // // CertificateChain is automatically base64 encoded/decoded by the SDK. CertificateChain []byte `min:"1" type:"blob"` // The private key that matches the public key in the certificate. // // PrivateKey is automatically base64 encoded/decoded by the SDK. // // PrivateKey is a required field PrivateKey []byte `min:"1" type:"blob" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (ImportCertificateInput) String ¶
func (s ImportCertificateInput) String() string
String returns the string representation
func (*ImportCertificateInput) Validate ¶
func (s *ImportCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ImportCertificateOutput ¶
type ImportCertificateOutput struct { // The Amazon Resource Name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // of the imported certificate. CertificateArn *string `min:"20" type:"string"` // contains filtered or unexported fields }
func (ImportCertificateOutput) String ¶
func (s ImportCertificateOutput) String() string
String returns the string representation
type ImportCertificateRequest ¶
type ImportCertificateRequest struct { *aws.Request Input *ImportCertificateInput Copy func(*ImportCertificateInput) ImportCertificateRequest }
ImportCertificateRequest is the request type for the ImportCertificate API operation.
func (ImportCertificateRequest) Send ¶
func (r ImportCertificateRequest) Send(ctx context.Context) (*ImportCertificateResponse, error)
Send marshals and sends the ImportCertificate API request.
type ImportCertificateResponse ¶ added in v0.9.0
type ImportCertificateResponse struct { *ImportCertificateOutput // contains filtered or unexported fields }
ImportCertificateResponse is the response type for the ImportCertificate API operation.
func (*ImportCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ImportCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ImportCertificate request.
type KeyAlgorithm ¶
type KeyAlgorithm string
const ( KeyAlgorithmRsa2048 KeyAlgorithm = "RSA_2048" KeyAlgorithmRsa1024 KeyAlgorithm = "RSA_1024" KeyAlgorithmRsa4096 KeyAlgorithm = "RSA_4096" KeyAlgorithmEcPrime256v1 KeyAlgorithm = "EC_prime256v1" KeyAlgorithmEcSecp384r1 KeyAlgorithm = "EC_secp384r1" KeyAlgorithmEcSecp521r1 KeyAlgorithm = "EC_secp521r1" )
Enum values for KeyAlgorithm
func (KeyAlgorithm) MarshalValue ¶ added in v0.3.0
func (enum KeyAlgorithm) MarshalValue() (string, error)
func (KeyAlgorithm) MarshalValueBuf ¶ added in v0.3.0
func (enum KeyAlgorithm) MarshalValueBuf(b []byte) ([]byte, error)
type KeyUsage ¶ added in v0.2.0
type KeyUsage struct { // A string value that contains a Key Usage extension name. Name KeyUsageName `type:"string" enum:"true"` // contains filtered or unexported fields }
The Key Usage X.509 v3 extension defines the purpose of the public key contained in the certificate.
type KeyUsageName ¶ added in v0.2.0
type KeyUsageName string
const ( KeyUsageNameDigitalSignature KeyUsageName = "DIGITAL_SIGNATURE" KeyUsageNameNonRepudiation KeyUsageName = "NON_REPUDIATION" KeyUsageNameKeyEncipherment KeyUsageName = "KEY_ENCIPHERMENT" KeyUsageNameDataEncipherment KeyUsageName = "DATA_ENCIPHERMENT" KeyUsageNameKeyAgreement KeyUsageName = "KEY_AGREEMENT" KeyUsageNameCertificateSigning KeyUsageName = "CERTIFICATE_SIGNING" KeyUsageNameCrlSigning KeyUsageName = "CRL_SIGNING" KeyUsageNameEncipherOnly KeyUsageName = "ENCIPHER_ONLY" KeyUsageNameDecipherOnly KeyUsageName = "DECIPHER_ONLY" KeyUsageNameAny KeyUsageName = "ANY" KeyUsageNameCustom KeyUsageName = "CUSTOM" )
Enum values for KeyUsageName
func (KeyUsageName) MarshalValue ¶ added in v0.3.0
func (enum KeyUsageName) MarshalValue() (string, error)
func (KeyUsageName) MarshalValueBuf ¶ added in v0.3.0
func (enum KeyUsageName) MarshalValueBuf(b []byte) ([]byte, error)
type ListCertificatesInput ¶
type ListCertificatesInput struct { // Filter the certificate list by status value. CertificateStatuses []CertificateStatus `type:"list"` // Filter the certificate list. For more information, see the Filters structure. Includes *Filters `type:"structure"` // Use this parameter when paginating results to specify the maximum number // of items to return in the response. If additional items exist beyond the // number you specify, the NextToken element is sent in the response. Use this // 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"` // contains filtered or unexported fields }
func (ListCertificatesInput) String ¶
func (s ListCertificatesInput) String() string
String returns the string representation
func (*ListCertificatesInput) Validate ¶
func (s *ListCertificatesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListCertificatesOutput ¶
type ListCertificatesOutput struct { // 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"` // contains filtered or unexported fields }
func (ListCertificatesOutput) String ¶
func (s ListCertificatesOutput) String() string
String returns the string representation
type ListCertificatesPaginator ¶ added in v0.9.0
ListCertificatesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListCertificatesPaginator ¶ added in v0.9.0
func NewListCertificatesPaginator(req ListCertificatesRequest) ListCertificatesPaginator
NewListCertificatesRequestPaginator returns a paginator for ListCertificates. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListCertificatesRequest(input) p := acm.NewListCertificatesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListCertificatesPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListCertificatesPaginator) CurrentPage() *ListCertificatesOutput
type ListCertificatesRequest ¶
type ListCertificatesRequest struct { *aws.Request Input *ListCertificatesInput Copy func(*ListCertificatesInput) ListCertificatesRequest }
ListCertificatesRequest is the request type for the ListCertificates API operation.
func (ListCertificatesRequest) Send ¶
func (r ListCertificatesRequest) Send(ctx context.Context) (*ListCertificatesResponse, error)
Send marshals and sends the ListCertificates API request.
type ListCertificatesResponse ¶ added in v0.9.0
type ListCertificatesResponse struct { *ListCertificatesOutput // contains filtered or unexported fields }
ListCertificatesResponse is the response type for the ListCertificates API operation.
func (*ListCertificatesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListCertificatesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListCertificates request.
type ListTagsForCertificateInput ¶
type ListTagsForCertificateInput struct { // String that contains the ARN of the ACM certificate for which you want to // list the tags. This must have the following form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // contains filtered or unexported fields }
func (ListTagsForCertificateInput) String ¶
func (s ListTagsForCertificateInput) String() string
String returns the string representation
func (*ListTagsForCertificateInput) Validate ¶
func (s *ListTagsForCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsForCertificateOutput ¶
type ListTagsForCertificateOutput struct { // The key-value pairs that define the applied tags. Tags []Tag `min:"1" type:"list"` // contains filtered or unexported fields }
func (ListTagsForCertificateOutput) String ¶
func (s ListTagsForCertificateOutput) String() string
String returns the string representation
type ListTagsForCertificateRequest ¶
type ListTagsForCertificateRequest struct { *aws.Request Input *ListTagsForCertificateInput Copy func(*ListTagsForCertificateInput) ListTagsForCertificateRequest }
ListTagsForCertificateRequest is the request type for the ListTagsForCertificate API operation.
func (ListTagsForCertificateRequest) Send ¶
func (r ListTagsForCertificateRequest) Send(ctx context.Context) (*ListTagsForCertificateResponse, error)
Send marshals and sends the ListTagsForCertificate API request.
type ListTagsForCertificateResponse ¶ added in v0.9.0
type ListTagsForCertificateResponse struct { *ListTagsForCertificateOutput // contains filtered or unexported fields }
ListTagsForCertificateResponse is the response type for the ListTagsForCertificate API operation.
func (*ListTagsForCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListTagsForCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListTagsForCertificate request.
type RecordType ¶ added in v0.2.0
type RecordType string
const (
RecordTypeCname RecordType = "CNAME"
)
Enum values for RecordType
func (RecordType) MarshalValue ¶ added in v0.3.0
func (enum RecordType) MarshalValue() (string, error)
func (RecordType) MarshalValueBuf ¶ added in v0.3.0
func (enum RecordType) MarshalValueBuf(b []byte) ([]byte, error)
type RemoveTagsFromCertificateInput ¶
type RemoveTagsFromCertificateInput struct { // String that contains the ARN of the ACM Certificate with one or more tags // that you want to remove. This must be of the form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // The key-value pair that defines the tag to remove. // // Tags is a required field Tags []Tag `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
func (RemoveTagsFromCertificateInput) String ¶
func (s RemoveTagsFromCertificateInput) String() string
String returns the string representation
func (*RemoveTagsFromCertificateInput) Validate ¶
func (s *RemoveTagsFromCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RemoveTagsFromCertificateOutput ¶
type RemoveTagsFromCertificateOutput struct {
// contains filtered or unexported fields
}
func (RemoveTagsFromCertificateOutput) String ¶
func (s RemoveTagsFromCertificateOutput) String() string
String returns the string representation
type RemoveTagsFromCertificateRequest ¶
type RemoveTagsFromCertificateRequest struct { *aws.Request Input *RemoveTagsFromCertificateInput Copy func(*RemoveTagsFromCertificateInput) RemoveTagsFromCertificateRequest }
RemoveTagsFromCertificateRequest is the request type for the RemoveTagsFromCertificate API operation.
func (RemoveTagsFromCertificateRequest) Send ¶
func (r RemoveTagsFromCertificateRequest) Send(ctx context.Context) (*RemoveTagsFromCertificateResponse, error)
Send marshals and sends the RemoveTagsFromCertificate API request.
type RemoveTagsFromCertificateResponse ¶ added in v0.9.0
type RemoveTagsFromCertificateResponse struct { *RemoveTagsFromCertificateOutput // contains filtered or unexported fields }
RemoveTagsFromCertificateResponse is the response type for the RemoveTagsFromCertificate API operation.
func (*RemoveTagsFromCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *RemoveTagsFromCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the RemoveTagsFromCertificate request.
type RenewCertificateInput ¶ added in v0.8.0
type RenewCertificateInput struct { // String that contains the ARN of the ACM certificate to be renewed. This must // be of the form: // // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // contains filtered or unexported fields }
func (RenewCertificateInput) String ¶ added in v0.8.0
func (s RenewCertificateInput) String() string
String returns the string representation
func (*RenewCertificateInput) Validate ¶ added in v0.8.0
func (s *RenewCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RenewCertificateOutput ¶ added in v0.8.0
type RenewCertificateOutput struct {
// contains filtered or unexported fields
}
func (RenewCertificateOutput) String ¶ added in v0.8.0
func (s RenewCertificateOutput) String() string
String returns the string representation
type RenewCertificateRequest ¶ added in v0.8.0
type RenewCertificateRequest struct { *aws.Request Input *RenewCertificateInput Copy func(*RenewCertificateInput) RenewCertificateRequest }
RenewCertificateRequest is the request type for the RenewCertificate API operation.
func (RenewCertificateRequest) Send ¶ added in v0.8.0
func (r RenewCertificateRequest) Send(ctx context.Context) (*RenewCertificateResponse, error)
Send marshals and sends the RenewCertificate API request.
type RenewCertificateResponse ¶ added in v0.9.0
type RenewCertificateResponse struct { *RenewCertificateOutput // contains filtered or unexported fields }
RenewCertificateResponse is the response type for the RenewCertificate API operation.
func (*RenewCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *RenewCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the RenewCertificate request.
type RenewalEligibility ¶ added in v0.4.0
type RenewalEligibility string
const ( RenewalEligibilityEligible RenewalEligibility = "ELIGIBLE" RenewalEligibilityIneligible RenewalEligibility = "INELIGIBLE" )
Enum values for RenewalEligibility
func (RenewalEligibility) MarshalValue ¶ added in v0.4.0
func (enum RenewalEligibility) MarshalValue() (string, error)
func (RenewalEligibility) MarshalValueBuf ¶ added in v0.4.0
func (enum RenewalEligibility) MarshalValueBuf(b []byte) ([]byte, error)
type RenewalStatus ¶
type RenewalStatus string
const ( RenewalStatusPendingAutoRenewal RenewalStatus = "PENDING_AUTO_RENEWAL" RenewalStatusPendingValidation RenewalStatus = "PENDING_VALIDATION" RenewalStatusSuccess RenewalStatus = "SUCCESS" RenewalStatusFailed RenewalStatus = "FAILED" )
Enum values for RenewalStatus
func (RenewalStatus) MarshalValue ¶ added in v0.3.0
func (enum RenewalStatus) MarshalValue() (string, error)
func (RenewalStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum RenewalStatus) MarshalValueBuf(b []byte) ([]byte, error)
type RenewalSummary ¶
type RenewalSummary struct { // Contains information about the validation of each domain name in the certificate, // as it pertains to ACM's managed renewal (https://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 (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) // of the certificate. // // RenewalStatus is a required field RenewalStatus RenewalStatus `type:"string" required:"true" enum:"true"` // The reason that a renewal request was unsuccessful. RenewalStatusReason FailureReason `type:"string" enum:"true"` // The time at which the renewal summary was last updated. // // UpdatedAt is a required field UpdatedAt *time.Time `type:"timestamp" required:"true"` // contains filtered or unexported fields }
Contains information about the status of ACM's managed renewal (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) for the certificate. This structure exists only when the certificate type is AMAZON_ISSUED.
func (RenewalSummary) String ¶
func (s RenewalSummary) String() string
String returns the string representation
type RequestCertificateInput ¶
type RequestCertificateInput struct { // The Amazon Resource Name (ARN) of the private certificate authority (CA) // that will be used to issue the certificate. If you do not provide an ARN // and you are trying to request a private certificate, ACM will attempt to // issue a public certificate. For more information about private CAs, see the // AWS Certificate Manager Private Certificate Authority (PCA) (https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaWelcome.html) // user guide. The ARN must have the following form: // // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 CertificateAuthorityArn *string `min:"20" type:"string"` // Fully qualified domain name (FQDN), such as www.example.com, that you want // to secure with an ACM certificate. Use an asterisk (*) to create a wildcard // certificate that protects several sites in the same domain. For example, // *.example.com protects www.example.com, site.example.com, and images.example.com. // // The first domain name you enter cannot exceed 63 octets, including periods. // Each subsequent Subject Alternative Name (SAN), however, can be up to 253 // octets in length. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // The domain name that you want ACM to use to send you emails so that you can // validate domain ownership. 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"` // Currently, you can use this parameter to specify whether to add the certificate // to a certificate transparency log. Certificate transparency makes it possible // to detect SSL/TLS certificates that have been mistakenly or maliciously issued. // Certificates that have not been logged typically produce an error message // in a browser. For more information, see Opting Out of Certificate Transparency // Logging (https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency). Options *CertificateOptions `type:"structure"` // Additional FQDNs to be included in the Subject Alternative Name extension // of the ACM certificate. For example, add the name www.example.net to a certificate // for which the DomainName field is www.example.com if users can reach your // site by using either name. The maximum number of domain names that you can // add to an ACM certificate is 100. However, the initial limit is 10 domain // names. If you need more than 10 names, you must request a limit increase. // For more information, see Limits (https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html). // // The maximum length of a SAN DNS name is 253 octets. The name is made up of // multiple labels separated by periods. No label can be longer than 63 octets. // Consider the following examples: // // * (63 octets).(63 octets).(63 octets).(61 octets) is legal because the // total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 // octets. // // * (64 octets).(63 octets).(63 octets).(61 octets) is not legal because // the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first // label exceeds 63 octets. // // * (63 octets).(63 octets).(63 octets).(62 octets) is not legal because // the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets. SubjectAlternativeNames []string `min:"1" type:"list"` // The method you want to use if you are requesting a public certificate to // validate that you own or control domain. You can validate with DNS (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html) // or validate with email (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html). // We recommend that you use DNS validation. ValidationMethod ValidationMethod `type:"string" enum:"true"` // contains filtered or unexported fields }
func (RequestCertificateInput) String ¶
func (s RequestCertificateInput) String() string
String returns the string representation
func (*RequestCertificateInput) Validate ¶
func (s *RequestCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RequestCertificateOutput ¶
type RequestCertificateOutput struct { // String that contains the ARN of the issued certificate. This must be of the // form: // // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 CertificateArn *string `min:"20" type:"string"` // contains filtered or unexported fields }
func (RequestCertificateOutput) String ¶
func (s RequestCertificateOutput) String() string
String returns the string representation
type RequestCertificateRequest ¶
type RequestCertificateRequest struct { *aws.Request Input *RequestCertificateInput Copy func(*RequestCertificateInput) RequestCertificateRequest }
RequestCertificateRequest is the request type for the RequestCertificate API operation.
func (RequestCertificateRequest) Send ¶
func (r RequestCertificateRequest) Send(ctx context.Context) (*RequestCertificateResponse, error)
Send marshals and sends the RequestCertificate API request.
type RequestCertificateResponse ¶ added in v0.9.0
type RequestCertificateResponse struct { *RequestCertificateOutput // contains filtered or unexported fields }
RequestCertificateResponse is the response type for the RequestCertificate API operation.
func (*RequestCertificateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *RequestCertificateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the RequestCertificate request.
type ResendValidationEmailInput ¶
type ResendValidationEmailInput struct { // String that contains the ARN of the requested certificate. The certificate // ARN is generated and returned by the RequestCertificate action as soon as // the request is made. By default, using this parameter causes email to be // sent to all top-level domains you specified in the certificate request. The // ARN must be of the form: // // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // The fully qualified domain name (FQDN) of the certificate that needs to be // validated. // // Domain is a required field Domain *string `min:"1" type:"string" required:"true"` // The base validation domain that will act as the suffix of the email addresses // 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: // // * admin@subdomain.example.com // // * administrator@subdomain.example.com // // * hostmaster@subdomain.example.com // // * postmaster@subdomain.example.com // // * webmaster@subdomain.example.com // // ValidationDomain is a required field ValidationDomain *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (ResendValidationEmailInput) String ¶
func (s ResendValidationEmailInput) String() string
String returns the string representation
func (*ResendValidationEmailInput) Validate ¶
func (s *ResendValidationEmailInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ResendValidationEmailOutput ¶
type ResendValidationEmailOutput struct {
// contains filtered or unexported fields
}
func (ResendValidationEmailOutput) String ¶
func (s ResendValidationEmailOutput) String() string
String returns the string representation
type ResendValidationEmailRequest ¶
type ResendValidationEmailRequest struct { *aws.Request Input *ResendValidationEmailInput Copy func(*ResendValidationEmailInput) ResendValidationEmailRequest }
ResendValidationEmailRequest is the request type for the ResendValidationEmail API operation.
func (ResendValidationEmailRequest) Send ¶
func (r ResendValidationEmailRequest) Send(ctx context.Context) (*ResendValidationEmailResponse, error)
Send marshals and sends the ResendValidationEmail API request.
type ResendValidationEmailResponse ¶ added in v0.9.0
type ResendValidationEmailResponse struct { *ResendValidationEmailOutput // contains filtered or unexported fields }
ResendValidationEmailResponse is the response type for the ResendValidationEmail API operation.
func (*ResendValidationEmailResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ResendValidationEmailResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ResendValidationEmail request.
type ResourceRecord ¶ added in v0.2.0
type ResourceRecord struct { // The name of the DNS record to create in your domain. This is supplied by // ACM. // // Name is a required field Name *string `type:"string" required:"true"` // The type of DNS record. Currently this can be CNAME. // // Type is a required field Type RecordType `type:"string" required:"true" enum:"true"` // The value of the CNAME record to add to your DNS database. This is supplied // by ACM. // // Value is a required field Value *string `type:"string" required:"true"` // contains filtered or unexported fields }
Contains a DNS record value that you can use to can use to validate ownership or control of a domain. This is used by the DescribeCertificate action.
func (ResourceRecord) String ¶ added in v0.2.0
func (s ResourceRecord) String() string
String returns the string representation
type RevocationReason ¶
type RevocationReason string
const ( RevocationReasonUnspecified RevocationReason = "UNSPECIFIED" RevocationReasonKeyCompromise RevocationReason = "KEY_COMPROMISE" RevocationReasonCaCompromise RevocationReason = "CA_COMPROMISE" RevocationReasonAffiliationChanged RevocationReason = "AFFILIATION_CHANGED" RevocationReasonSuperceded RevocationReason = "SUPERCEDED" RevocationReasonCessationOfOperation RevocationReason = "CESSATION_OF_OPERATION" RevocationReasonCertificateHold RevocationReason = "CERTIFICATE_HOLD" RevocationReasonRemoveFromCrl RevocationReason = "REMOVE_FROM_CRL" RevocationReasonPrivilegeWithdrawn RevocationReason = "PRIVILEGE_WITHDRAWN" RevocationReasonAACompromise RevocationReason = "A_A_COMPROMISE" )
Enum values for RevocationReason
func (RevocationReason) MarshalValue ¶ added in v0.3.0
func (enum RevocationReason) MarshalValue() (string, error)
func (RevocationReason) MarshalValueBuf ¶ added in v0.3.0
func (enum RevocationReason) MarshalValueBuf(b []byte) ([]byte, error)
type Tag ¶
type Tag struct { // The key of the tag. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // The value of the tag. Value *string `type:"string"` // contains filtered or unexported fields }
A key-value pair that identifies or specifies metadata about an ACM resource.
type UpdateCertificateOptionsInput ¶ added in v0.4.0
type UpdateCertificateOptionsInput struct { // ARN of the requested certificate to update. This must be of the form: // // arn:aws:acm:us-east-1:account:certificate/12345678-1234-1234-1234-123456789012 // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` // Use to update the options for your certificate. Currently, you can specify // whether to add your certificate to a transparency log. Certificate transparency // makes it possible to detect SSL/TLS certificates that have been mistakenly // or maliciously issued. Certificates that have not been logged typically produce // an error message in a browser. // // Options is a required field Options *CertificateOptions `type:"structure" required:"true"` // contains filtered or unexported fields }
func (UpdateCertificateOptionsInput) String ¶ added in v0.4.0
func (s UpdateCertificateOptionsInput) String() string
String returns the string representation
func (*UpdateCertificateOptionsInput) Validate ¶ added in v0.4.0
func (s *UpdateCertificateOptionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateCertificateOptionsOutput ¶ added in v0.4.0
type UpdateCertificateOptionsOutput struct {
// contains filtered or unexported fields
}
func (UpdateCertificateOptionsOutput) String ¶ added in v0.4.0
func (s UpdateCertificateOptionsOutput) String() string
String returns the string representation
type UpdateCertificateOptionsRequest ¶ added in v0.4.0
type UpdateCertificateOptionsRequest struct { *aws.Request Input *UpdateCertificateOptionsInput Copy func(*UpdateCertificateOptionsInput) UpdateCertificateOptionsRequest }
UpdateCertificateOptionsRequest is the request type for the UpdateCertificateOptions API operation.
func (UpdateCertificateOptionsRequest) Send ¶ added in v0.4.0
func (r UpdateCertificateOptionsRequest) Send(ctx context.Context) (*UpdateCertificateOptionsResponse, error)
Send marshals and sends the UpdateCertificateOptions API request.
type UpdateCertificateOptionsResponse ¶ added in v0.9.0
type UpdateCertificateOptionsResponse struct { *UpdateCertificateOptionsOutput // contains filtered or unexported fields }
UpdateCertificateOptionsResponse is the response type for the UpdateCertificateOptions API operation.
func (*UpdateCertificateOptionsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *UpdateCertificateOptionsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UpdateCertificateOptions request.
type ValidationMethod ¶ added in v0.2.0
type ValidationMethod string
const ( ValidationMethodEmail ValidationMethod = "EMAIL" ValidationMethodDns ValidationMethod = "DNS" )
Enum values for ValidationMethod
func (ValidationMethod) MarshalValue ¶ added in v0.3.0
func (enum ValidationMethod) MarshalValue() (string, error)
func (ValidationMethod) MarshalValueBuf ¶ added in v0.3.0
func (enum ValidationMethod) MarshalValueBuf(b []byte) ([]byte, error)
Source Files ¶
- api_client.go
- api_doc.go
- api_enums.go
- api_errors.go
- api_op_AddTagsToCertificate.go
- api_op_DeleteCertificate.go
- api_op_DescribeCertificate.go
- api_op_ExportCertificate.go
- api_op_GetCertificate.go
- api_op_ImportCertificate.go
- api_op_ListCertificates.go
- api_op_ListTagsForCertificate.go
- api_op_RemoveTagsFromCertificate.go
- api_op_RenewCertificate.go
- api_op_RequestCertificate.go
- api_op_ResendValidationEmail.go
- api_op_UpdateCertificateOptions.go
- api_types.go
- api_waiters.go