AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ACMPCA

import "github.com/aws/aws-sdk-go/service/acmpca"

type ACMPCA struct { *client.Client }

ACMPCA provides the API operation methods for making requests to AWS Certificate Manager Private Certificate Authority. See this package's package overview docs for details on the service.

ACMPCA methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

CreateCertificateAuthority

func (c *ACMPCA) CreateCertificateAuthority(input *CreateCertificateAuthorityInput) (*CreateCertificateAuthorityOutput, error)

CreateCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.

Creates a private subordinate certificate authority (CA). You must specify the CA configuration, the revocation configuration, the CA type, and an optional idempotency token. The CA configuration specifies the name of the algorithm and key size to be used to create the CA private key, the type of signing algorithm that the CA uses to sign, and X.500 subject information. The CRL (certificate revocation list) configuration specifies the CRL expiration period in days (the validity period of the CRL), the Amazon S3 bucket that will contain the CRL, and a CNAME alias for the S3 bucket that is included in certificates issued by the CA. If successful, this operation returns the Amazon Resource Name (ARN) of the CA.

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 Private Certificate Authority's API operation CreateCertificateAuthority for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidArgsException "InvalidArgsException" One or more of the specified arguments was not valid.

  • ErrCodeInvalidPolicyException "InvalidPolicyException" The S3 bucket policy is not valid. The policy must give ACM PCA rights to read from and write to the bucket and find the bucket location.

  • ErrCodeInvalidTagException "InvalidTagException" The tag associated with the CA is not valid. The invalid argument is contained in the message field.

  • ErrCodeLimitExceededException "LimitExceededException" An ACM PCA limit has been exceeded. See the exception message returned to determine the limit that was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreateCertificateAuthority

CreateCertificateAuthorityAuditReport

func (c *ACMPCA) CreateCertificateAuthorityAuditReport(input *CreateCertificateAuthorityAuditReportInput) (*CreateCertificateAuthorityAuditReportOutput, error)

CreateCertificateAuthorityAuditReport API operation for AWS Certificate Manager Private Certificate Authority.

Creates an audit report that lists every time that the your CA private key is used. The report is saved in the Amazon S3 bucket that you specify on input. The IssueCertificate and RevokeCertificate operations use the private key. You can generate a new report every 30 minutes.

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 Private Certificate Authority's API operation CreateCertificateAuthorityAuditReport for usage and error information.

Returned Error Codes:

  • ErrCodeRequestInProgressException "RequestInProgressException" Your request is already in progress.

  • ErrCodeRequestFailedException "RequestFailedException" The request has failed for an unspecified reason.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidArgsException "InvalidArgsException" One or more of the specified arguments was not valid.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreateCertificateAuthorityAuditReport

CreateCertificateAuthorityAuditReportRequest

func (c *ACMPCA) CreateCertificateAuthorityAuditReportRequest(input *CreateCertificateAuthorityAuditReportInput) (req *request.Request, output *CreateCertificateAuthorityAuditReportOutput)

CreateCertificateAuthorityAuditReportRequest generates a "aws/request.Request" representing the client's request for the CreateCertificateAuthorityAuditReport operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCertificateAuthorityAuditReport for more information on using the CreateCertificateAuthorityAuditReport API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCertificateAuthorityAuditReportRequest method. req, resp := client.CreateCertificateAuthorityAuditReportRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreateCertificateAuthorityAuditReport

CreateCertificateAuthorityAuditReportWithContext

func (c *ACMPCA) CreateCertificateAuthorityAuditReportWithContext(ctx aws.Context, input *CreateCertificateAuthorityAuditReportInput, opts ...request.Option) (*CreateCertificateAuthorityAuditReportOutput, error)

CreateCertificateAuthorityAuditReportWithContext is the same as CreateCertificateAuthorityAuditReport with the addition of the ability to pass a context and additional request options.

See CreateCertificateAuthorityAuditReport 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.

See Also

For more information about using this API, see AWS API Documentation.

CreateCertificateAuthorityRequest

func (c *ACMPCA) CreateCertificateAuthorityRequest(input *CreateCertificateAuthorityInput) (req *request.Request, output *CreateCertificateAuthorityOutput)

CreateCertificateAuthorityRequest generates a "aws/request.Request" representing the client's request for the CreateCertificateAuthority operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCertificateAuthority for more information on using the CreateCertificateAuthority API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCertificateAuthorityRequest method. req, resp := client.CreateCertificateAuthorityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreateCertificateAuthority

CreateCertificateAuthorityWithContext

func (c *ACMPCA) CreateCertificateAuthorityWithContext(ctx aws.Context, input *CreateCertificateAuthorityInput, opts ...request.Option) (*CreateCertificateAuthorityOutput, error)

CreateCertificateAuthorityWithContext is the same as CreateCertificateAuthority with the addition of the ability to pass a context and additional request options.

See CreateCertificateAuthority 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.

See Also

For more information about using this API, see AWS API Documentation.

DeleteCertificateAuthority

func (c *ACMPCA) DeleteCertificateAuthority(input *DeleteCertificateAuthorityInput) (*DeleteCertificateAuthorityOutput, error)

DeleteCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.

Deletes a private certificate authority (CA). You must provide the ARN (Amazon Resource Name) of the private CA that you want to delete. You can find the ARN by calling the ListCertificateAuthorities operation. Before you can delete a CA, you must disable it. Call the UpdateCertificateAuthority operation and set the CertificateAuthorityStatus parameter to DISABLED.

Additionally, you can delete a CA if you are waiting for it to be created (the Status field of the CertificateAuthority is CREATING). You can also delete it if the CA has been created but you haven't yet imported the signed certificate (the Status is PENDING_CERTIFICATE) into ACM PCA.

If the CA is in one of the aforementioned states and you call DeleteCertificateAuthority, the CA's status changes to DELETED. However, the CA won't be permentantly deleted until the restoration period has passed. By default, if you do not set the PermanentDeletionTimeInDays parameter, the CA remains restorable for 30 days. You can set the parameter from 7 to 30 days. The DescribeCertificateAuthority operation returns the time remaining in the restoration window of a Private CA in the DELETED state. To restore an eligable CA, call the RestoreCertificateAuthority operation.

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 Private Certificate Authority's API operation DeleteCertificateAuthority for usage and error information.

Returned Error Codes:

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" A previous update to your private CA is still ongoing.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DeleteCertificateAuthority

DeleteCertificateAuthorityRequest

func (c *ACMPCA) DeleteCertificateAuthorityRequest(input *DeleteCertificateAuthorityInput) (req *request.Request, output *DeleteCertificateAuthorityOutput)

DeleteCertificateAuthorityRequest generates a "aws/request.Request" representing the client's request for the DeleteCertificateAuthority operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCertificateAuthority for more information on using the DeleteCertificateAuthority API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCertificateAuthorityRequest method. req, resp := client.DeleteCertificateAuthorityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DeleteCertificateAuthority

DeleteCertificateAuthorityWithContext

func (c *ACMPCA) DeleteCertificateAuthorityWithContext(ctx aws.Context, input *DeleteCertificateAuthorityInput, opts ...request.Option) (*DeleteCertificateAuthorityOutput, error)

DeleteCertificateAuthorityWithContext is the same as DeleteCertificateAuthority with the addition of the ability to pass a context and additional request options.

See DeleteCertificateAuthority 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.

See Also

For more information about using this API, see AWS API Documentation.

DescribeCertificateAuthority

func (c *ACMPCA) DescribeCertificateAuthority(input *DescribeCertificateAuthorityInput) (*DescribeCertificateAuthorityOutput, error)

DescribeCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.

Lists information about your private certificate authority (CA). You specify the private CA on input by its ARN (Amazon Resource Name). The output contains the status of your CA. This can be any of the following:

  • CREATING - ACM PCA is creating your private certificate authority.

  • PENDING_CERTIFICATE - The certificate is pending. You must use your on-premises root or subordinate CA to sign your private CA CSR and then import it into PCA.

  • ACTIVE - Your private CA is active.

  • DISABLED - Your private CA has been disabled.

  • EXPIRED - Your private CA certificate has expired.

  • FAILED - Your private CA has failed. Your CA can fail because of problems such a network outage or backend AWS failure or other errors. A failed CA can never return to the pending state. You must create a new CA.

  • DELETED - Your private CA is within the restoration period, after which it is permanently deleted. The length of time remaining in the CA's restoration period is also included in this operation's output.

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 Private Certificate Authority's API operation DescribeCertificateAuthority for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthority

DescribeCertificateAuthorityAuditReport

func (c *ACMPCA) DescribeCertificateAuthorityAuditReport(input *DescribeCertificateAuthorityAuditReportInput) (*DescribeCertificateAuthorityAuditReportOutput, error)

DescribeCertificateAuthorityAuditReport API operation for AWS Certificate Manager Private Certificate Authority.

Lists information about a specific audit report created by calling the CreateCertificateAuthorityAuditReport operation. Audit information is created every time the certificate authority (CA) private key is used. The private key is used when you call the IssueCertificate operation or the RevokeCertificate operation.

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 Private Certificate Authority's API operation DescribeCertificateAuthorityAuditReport for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidArgsException "InvalidArgsException" One or more of the specified arguments was not valid.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthorityAuditReport

DescribeCertificateAuthorityAuditReportRequest

func (c *ACMPCA) DescribeCertificateAuthorityAuditReportRequest(input *DescribeCertificateAuthorityAuditReportInput) (req *request.Request, output *DescribeCertificateAuthorityAuditReportOutput)

DescribeCertificateAuthorityAuditReportRequest generates a "aws/request.Request" representing the client's request for the DescribeCertificateAuthorityAuditReport operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeCertificateAuthorityAuditReport for more information on using the DescribeCertificateAuthorityAuditReport API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeCertificateAuthorityAuditReportRequest method. req, resp := client.DescribeCertificateAuthorityAuditReportRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthorityAuditReport

DescribeCertificateAuthorityAuditReportWithContext

func (c *ACMPCA) DescribeCertificateAuthorityAuditReportWithContext(ctx aws.Context, input *DescribeCertificateAuthorityAuditReportInput, opts ...request.Option) (*DescribeCertificateAuthorityAuditReportOutput, error)

DescribeCertificateAuthorityAuditReportWithContext is the same as DescribeCertificateAuthorityAuditReport with the addition of the ability to pass a context and additional request options.

See DescribeCertificateAuthorityAuditReport 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.

See Also

For more information about using this API, see AWS API Documentation.

DescribeCertificateAuthorityRequest

func (c *ACMPCA) DescribeCertificateAuthorityRequest(input *DescribeCertificateAuthorityInput) (req *request.Request, output *DescribeCertificateAuthorityOutput)

DescribeCertificateAuthorityRequest generates a "aws/request.Request" representing the client's request for the DescribeCertificateAuthority operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeCertificateAuthority for more information on using the DescribeCertificateAuthority API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeCertificateAuthorityRequest method. req, resp := client.DescribeCertificateAuthorityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthority

DescribeCertificateAuthorityWithContext

func (c *ACMPCA) DescribeCertificateAuthorityWithContext(ctx aws.Context, input *DescribeCertificateAuthorityInput, opts ...request.Option) (*DescribeCertificateAuthorityOutput, error)

DescribeCertificateAuthorityWithContext is the same as DescribeCertificateAuthority with the addition of the ability to pass a context and additional request options.

See DescribeCertificateAuthority 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.

See Also

For more information about using this API, see AWS API Documentation.

GetCertificate

func (c *ACMPCA) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error)

GetCertificate API operation for AWS Certificate Manager Private Certificate Authority.

Retrieves a certificate from your private CA. The ARN of the certificate is returned when you call the IssueCertificate operation. You must specify both the ARN of your private CA and the ARN of the issued certificate when calling the GetCertificate operation. You can retrieve the certificate if it is in the ISSUED state. You can call the CreateCertificateAuthorityAuditReport operation to create a report that contains information about all of the certificates issued and revoked by your private CA.

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 Private Certificate Authority's API operation GetCertificate for usage and error information.

Returned Error Codes:

  • ErrCodeRequestInProgressException "RequestInProgressException" Your request is already in progress.

  • ErrCodeRequestFailedException "RequestFailedException" The request has failed for an unspecified reason.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificate

GetCertificateAuthorityCertificate

func (c *ACMPCA) GetCertificateAuthorityCertificate(input *GetCertificateAuthorityCertificateInput) (*GetCertificateAuthorityCertificateOutput, error)

GetCertificateAuthorityCertificate API operation for AWS Certificate Manager Private Certificate Authority.

Retrieves the certificate and certificate chain for your private certificate authority (CA). Both the certificate and the chain are base64 PEM-encoded. The chain does not include the CA certificate. Each certificate in the chain signs the one before it.

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 Private Certificate Authority's API operation GetCertificateAuthorityCertificate for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCertificate

GetCertificateAuthorityCertificateRequest

func (c *ACMPCA) GetCertificateAuthorityCertificateRequest(input *GetCertificateAuthorityCertificateInput) (req *request.Request, output *GetCertificateAuthorityCertificateOutput)

GetCertificateAuthorityCertificateRequest generates a "aws/request.Request" representing the client's request for the GetCertificateAuthorityCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCertificateAuthorityCertificate for more information on using the GetCertificateAuthorityCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCertificateAuthorityCertificateRequest method. req, resp := client.GetCertificateAuthorityCertificateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCertificate

GetCertificateAuthorityCertificateWithContext

func (c *ACMPCA) GetCertificateAuthorityCertificateWithContext(ctx aws.Context, input *GetCertificateAuthorityCertificateInput, opts ...request.Option) (*GetCertificateAuthorityCertificateOutput, error)

GetCertificateAuthorityCertificateWithContext is the same as GetCertificateAuthorityCertificate with the addition of the ability to pass a context and additional request options.

See GetCertificateAuthorityCertificate 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.

See Also

For more information about using this API, see AWS API Documentation.

GetCertificateAuthorityCsr

func (c *ACMPCA) GetCertificateAuthorityCsr(input *GetCertificateAuthorityCsrInput) (*GetCertificateAuthorityCsrOutput, error)

GetCertificateAuthorityCsr API operation for AWS Certificate Manager Private Certificate Authority.

Retrieves the certificate signing request (CSR) for your private certificate authority (CA). The CSR is created when you call the CreateCertificateAuthority operation. Take the CSR to your on-premises X.509 infrastructure and sign it by using your root or a subordinate CA. Then import the signed certificate back into ACM PCA by calling the ImportCertificateAuthorityCertificate operation. The CSR is returned as a base64 PEM-encoded string.

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 Private Certificate Authority's API operation GetCertificateAuthorityCsr for usage and error information.

Returned Error Codes:

  • ErrCodeRequestInProgressException "RequestInProgressException" Your request is already in progress.

  • ErrCodeRequestFailedException "RequestFailedException" The request has failed for an unspecified reason.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCsr

GetCertificateAuthorityCsrRequest

func (c *ACMPCA) GetCertificateAuthorityCsrRequest(input *GetCertificateAuthorityCsrInput) (req *request.Request, output *GetCertificateAuthorityCsrOutput)

GetCertificateAuthorityCsrRequest generates a "aws/request.Request" representing the client's request for the GetCertificateAuthorityCsr operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCertificateAuthorityCsr for more information on using the GetCertificateAuthorityCsr API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCertificateAuthorityCsrRequest method. req, resp := client.GetCertificateAuthorityCsrRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCsr

GetCertificateAuthorityCsrWithContext

func (c *ACMPCA) GetCertificateAuthorityCsrWithContext(ctx aws.Context, input *GetCertificateAuthorityCsrInput, opts ...request.Option) (*GetCertificateAuthorityCsrOutput, error)

GetCertificateAuthorityCsrWithContext is the same as GetCertificateAuthorityCsr with the addition of the ability to pass a context and additional request options.

See GetCertificateAuthorityCsr 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.

See Also

For more information about using this API, see AWS API Documentation.

GetCertificateRequest

func (c *ACMPCA) GetCertificateRequest(input *GetCertificateInput) (req *request.Request, output *GetCertificateOutput)

GetCertificateRequest generates a "aws/request.Request" representing the client's request for the GetCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCertificate for more information on using the GetCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCertificateRequest method. req, resp := client.GetCertificateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificate

GetCertificateWithContext

func (c *ACMPCA) GetCertificateWithContext(ctx aws.Context, input *GetCertificateInput, opts ...request.Option) (*GetCertificateOutput, error)

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.

See Also

For more information about using this API, see AWS API Documentation.

ImportCertificateAuthorityCertificate

func (c *ACMPCA) ImportCertificateAuthorityCertificate(input *ImportCertificateAuthorityCertificateInput) (*ImportCertificateAuthorityCertificateOutput, error)

ImportCertificateAuthorityCertificate API operation for AWS Certificate Manager Private Certificate Authority.

Imports your signed private CA certificate into ACM PCA. Before you can call this operation, you must create the private certificate authority by calling the CreateCertificateAuthority operation. You must then generate a certificate signing request (CSR) by calling the GetCertificateAuthorityCsr operation. Take the CSR to your on-premises CA and use the root certificate or a subordinate certificate to sign it. Create a certificate chain and copy the signed certificate and the certificate chain to your working directory.

Your certificate chain must not include the private CA certificate that you are importing.

Your on-premises CA certificate must be the last certificate in your chain. The subordinate certificate, if any, that your root CA signed must be next to last. The subordinate certificate signed by the preceding subordinate CA must come next, and so on until your chain is built.

The chain must be PEM-encoded.

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 Private Certificate Authority's API operation ImportCertificateAuthorityCertificate for usage and error information.

Returned Error Codes:

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" A previous update to your private CA is still ongoing.

  • ErrCodeRequestInProgressException "RequestInProgressException" Your request is already in progress.

  • ErrCodeRequestFailedException "RequestFailedException" The request has failed for an unspecified reason.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

  • ErrCodeMalformedCertificateException "MalformedCertificateException" One or more fields in the certificate are invalid.

  • ErrCodeCertificateMismatchException "CertificateMismatchException" The certificate authority certificate you are importing does not comply with conditions specified in the certificate that signed it.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ImportCertificateAuthorityCertificate

ImportCertificateAuthorityCertificateRequest

func (c *ACMPCA) ImportCertificateAuthorityCertificateRequest(input *ImportCertificateAuthorityCertificateInput) (req *request.Request, output *ImportCertificateAuthorityCertificateOutput)

ImportCertificateAuthorityCertificateRequest generates a "aws/request.Request" representing the client's request for the ImportCertificateAuthorityCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ImportCertificateAuthorityCertificate for more information on using the ImportCertificateAuthorityCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ImportCertificateAuthorityCertificateRequest method. req, resp := client.ImportCertificateAuthorityCertificateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ImportCertificateAuthorityCertificate

ImportCertificateAuthorityCertificateWithContext

func (c *ACMPCA) ImportCertificateAuthorityCertificateWithContext(ctx aws.Context, input *ImportCertificateAuthorityCertificateInput, opts ...request.Option) (*ImportCertificateAuthorityCertificateOutput, error)

ImportCertificateAuthorityCertificateWithContext is the same as ImportCertificateAuthorityCertificate with the addition of the ability to pass a context and additional request options.

See ImportCertificateAuthorityCertificate 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.

See Also

For more information about using this API, see AWS API Documentation.

IssueCertificate

func (c *ACMPCA) IssueCertificate(input *IssueCertificateInput) (*IssueCertificateOutput, error)

IssueCertificate API operation for AWS Certificate Manager Private Certificate Authority.

Uses your private certificate authority (CA) to issue a client certificate. This operation returns the Amazon Resource Name (ARN) of the certificate. You can retrieve the certificate by calling the GetCertificate operation and specifying the ARN.

You cannot use the ACM ListCertificateAuthorities operation to retrieve the ARNs of the certificates that you issue by using ACM PCA.

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 Private Certificate Authority's API operation IssueCertificate for usage and error information.

Returned Error Codes:

  • ErrCodeLimitExceededException "LimitExceededException" An ACM PCA limit has been exceeded. See the exception message returned to determine the limit that was exceeded.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidArgsException "InvalidArgsException" One or more of the specified arguments was not valid.

  • ErrCodeMalformedCSRException "MalformedCSRException" The certificate signing request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/IssueCertificate

IssueCertificateRequest

func (c *ACMPCA) IssueCertificateRequest(input *IssueCertificateInput) (req *request.Request, output *IssueCertificateOutput)

IssueCertificateRequest generates a "aws/request.Request" representing the client's request for the IssueCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See IssueCertificate for more information on using the IssueCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the IssueCertificateRequest method. req, resp := client.IssueCertificateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/IssueCertificate

IssueCertificateWithContext

func (c *ACMPCA) IssueCertificateWithContext(ctx aws.Context, input *IssueCertificateInput, opts ...request.Option) (*IssueCertificateOutput, error)

IssueCertificateWithContext is the same as IssueCertificate with the addition of the ability to pass a context and additional request options.

See IssueCertificate 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.

See Also

For more information about using this API, see AWS API Documentation.

ListCertificateAuthorities

func (c *ACMPCA) ListCertificateAuthorities(input *ListCertificateAuthoritiesInput) (*ListCertificateAuthoritiesOutput, error)

ListCertificateAuthorities API operation for AWS Certificate Manager Private Certificate Authority.

Lists the private certificate authorities that you created by using the CreateCertificateAuthority operation.

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 Private Certificate Authority's API operation ListCertificateAuthorities for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The token specified in the NextToken argument is not valid. Use the token returned from your previous call to ListCertificateAuthorities.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListCertificateAuthorities

ListCertificateAuthoritiesPages

func (c *ACMPCA) ListCertificateAuthoritiesPages(input *ListCertificateAuthoritiesInput, fn func(*ListCertificateAuthoritiesOutput, bool) bool) error

ListCertificateAuthoritiesPages iterates over the pages of a ListCertificateAuthorities operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListCertificateAuthorities 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 ListCertificateAuthorities operation. pageNum := 0 err := client.ListCertificateAuthoritiesPages(params, func(page *ListCertificateAuthoritiesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListCertificateAuthoritiesPagesWithContext

func (c *ACMPCA) ListCertificateAuthoritiesPagesWithContext(ctx aws.Context, input *ListCertificateAuthoritiesInput, fn func(*ListCertificateAuthoritiesOutput, bool) bool, opts ...request.Option) error

ListCertificateAuthoritiesPagesWithContext same as ListCertificateAuthoritiesPages 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.

See Also

For more information about using this API, see AWS API Documentation.

ListCertificateAuthoritiesRequest

func (c *ACMPCA) ListCertificateAuthoritiesRequest(input *ListCertificateAuthoritiesInput) (req *request.Request, output *ListCertificateAuthoritiesOutput)

ListCertificateAuthoritiesRequest generates a "aws/request.Request" representing the client's request for the ListCertificateAuthorities operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListCertificateAuthorities for more information on using the ListCertificateAuthorities API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListCertificateAuthoritiesRequest method. req, resp := client.ListCertificateAuthoritiesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListCertificateAuthorities

ListCertificateAuthoritiesWithContext

func (c *ACMPCA) ListCertificateAuthoritiesWithContext(ctx aws.Context, input *ListCertificateAuthoritiesInput, opts ...request.Option) (*ListCertificateAuthoritiesOutput, error)

ListCertificateAuthoritiesWithContext is the same as ListCertificateAuthorities with the addition of the ability to pass a context and additional request options.

See ListCertificateAuthorities 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.

See Also

For more information about using this API, see AWS API Documentation.

ListTags

func (c *ACMPCA) ListTags(input *ListTagsInput) (*ListTagsOutput, error)

ListTags API operation for AWS Certificate Manager Private Certificate Authority.

Lists the tags, if any, that are associated with your private CA. Tags are labels that you can use to identify and organize your CAs. Each tag consists of a key and an optional value. Call the TagCertificateAuthority operation to add one or more tags to your CA. Call the UntagCertificateAuthority operation to remove tags.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's API operation ListTags for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListTags

ListTagsRequest

func (c *ACMPCA) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput)

ListTagsRequest generates a "aws/request.Request" representing the client's request for the ListTags operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTags for more information on using the ListTags API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsRequest method. req, resp := client.ListTagsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListTags

ListTagsWithContext

func (c *ACMPCA) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error)

ListTagsWithContext is the same as ListTags with the addition of the ability to pass a context and additional request options.

See ListTags 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.

See Also

For more information about using this API, see AWS API Documentation.

RestoreCertificateAuthority

func (c *ACMPCA) RestoreCertificateAuthority(input *RestoreCertificateAuthorityInput) (*RestoreCertificateAuthorityOutput, error)

RestoreCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.

Restores a certificate authority (CA) that is in the DELETED state. You can restore a CA during the period that you defined in the PermanentDeletionTimeInDays parameter of the DeleteCertificateAuthority operation. Currently, you can specify 7 to 30 days. If you did not specify a PermanentDeletionTimeInDays value, by default you can restore the CA at any time in a 30 day period. You can check the time remaining in the restoration period of a private CA in the DELETED state by calling the DescribeCertificateAuthority or ListCertificateAuthorities operations. The status of a restored CA is set to its pre-deletion status when the RestoreCertificateAuthority operation returns. To change its status to ACTIVE, call the UpdateCertificateAuthority operation. If the private CA was in the PENDING_CERTIFICATE state at deletion, you must use the ImportCertificateAuthorityCertificate operation to import a certificate authority into the private CA before it can be activated. You cannot restore a CA after the restoration period has ended.

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 Private Certificate Authority's API operation RestoreCertificateAuthority for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RestoreCertificateAuthority

RestoreCertificateAuthorityRequest

func (c *ACMPCA) RestoreCertificateAuthorityRequest(input *RestoreCertificateAuthorityInput) (req *request.Request, output *RestoreCertificateAuthorityOutput)

RestoreCertificateAuthorityRequest generates a "aws/request.Request" representing the client's request for the RestoreCertificateAuthority operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RestoreCertificateAuthority for more information on using the RestoreCertificateAuthority API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RestoreCertificateAuthorityRequest method. req, resp := client.RestoreCertificateAuthorityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RestoreCertificateAuthority

RestoreCertificateAuthorityWithContext

func (c *ACMPCA) RestoreCertificateAuthorityWithContext(ctx aws.Context, input *RestoreCertificateAuthorityInput, opts ...request.Option) (*RestoreCertificateAuthorityOutput, error)

RestoreCertificateAuthorityWithContext is the same as RestoreCertificateAuthority with the addition of the ability to pass a context and additional request options.

See RestoreCertificateAuthority 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.

See Also

For more information about using this API, see AWS API Documentation.

RevokeCertificate

func (c *ACMPCA) RevokeCertificate(input *RevokeCertificateInput) (*RevokeCertificateOutput, error)

RevokeCertificate API operation for AWS Certificate Manager Private Certificate Authority.

Revokes a certificate that you issued by calling the IssueCertificate operation. If you enable a certificate revocation list (CRL) when you create or update your private CA, information about the revoked certificates will be included in the CRL. ACM PCA writes the CRL to an S3 bucket that you specify. For more information about revocation, see the CrlConfiguration structure. ACM PCA also writes revocation information to the audit report. For more information, see CreateCertificateAuthorityAuditReport.

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 Private Certificate Authority's API operation RevokeCertificate for usage and error information.

Returned Error Codes:

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" A previous update to your private CA is still ongoing.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

  • ErrCodeLimitExceededException "LimitExceededException" An ACM PCA limit has been exceeded. See the exception message returned to determine the limit that was exceeded.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeRequestAlreadyProcessedException "RequestAlreadyProcessedException" Your request has already been completed.

  • ErrCodeRequestInProgressException "RequestInProgressException" Your request is already in progress.

  • ErrCodeRequestFailedException "RequestFailedException" The request has failed for an unspecified reason.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RevokeCertificate

RevokeCertificateRequest

func (c *ACMPCA) RevokeCertificateRequest(input *RevokeCertificateInput) (req *request.Request, output *RevokeCertificateOutput)

RevokeCertificateRequest generates a "aws/request.Request" representing the client's request for the RevokeCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RevokeCertificate for more information on using the RevokeCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RevokeCertificateRequest method. req, resp := client.RevokeCertificateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RevokeCertificate

RevokeCertificateWithContext

func (c *ACMPCA) RevokeCertificateWithContext(ctx aws.Context, input *RevokeCertificateInput, opts ...request.Option) (*RevokeCertificateOutput, error)

RevokeCertificateWithContext is the same as RevokeCertificate with the addition of the ability to pass a context and additional request options.

See RevokeCertificate 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.

See Also

For more information about using this API, see AWS API Documentation.

TagCertificateAuthority

func (c *ACMPCA) TagCertificateAuthority(input *TagCertificateAuthorityInput) (*TagCertificateAuthorityOutput, error)

TagCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.

Adds one or more tags to your private CA. 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 private CA 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 private CA if you want to identify a specific characteristic of that CA, or you can apply the same tag to multiple private CAs if you want to filter for a common relationship among those CAs. To remove one or more tags, use the UntagCertificateAuthority operation. Call the ListTags operation to see what tags are associated with your CA.

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 Private Certificate Authority's API operation TagCertificateAuthority for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

  • ErrCodeInvalidTagException "InvalidTagException" The tag associated with the CA is not valid. The invalid argument is contained in the message field.

  • ErrCodeTooManyTagsException "TooManyTagsException" You can associate up to 50 tags with a private CA. Exception information is contained in the exception message field.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/TagCertificateAuthority

TagCertificateAuthorityRequest

func (c *ACMPCA) TagCertificateAuthorityRequest(input *TagCertificateAuthorityInput) (req *request.Request, output *TagCertificateAuthorityOutput)

TagCertificateAuthorityRequest generates a "aws/request.Request" representing the client's request for the TagCertificateAuthority operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TagCertificateAuthority for more information on using the TagCertificateAuthority API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TagCertificateAuthorityRequest method. req, resp := client.TagCertificateAuthorityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/TagCertificateAuthority

TagCertificateAuthorityWithContext

func (c *ACMPCA) TagCertificateAuthorityWithContext(ctx aws.Context, input *TagCertificateAuthorityInput, opts ...request.Option) (*TagCertificateAuthorityOutput, error)

TagCertificateAuthorityWithContext is the same as TagCertificateAuthority with the addition of the ability to pass a context and additional request options.

See TagCertificateAuthority 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.

See Also

For more information about using this API, see AWS API Documentation.

UntagCertificateAuthority

func (c *ACMPCA) UntagCertificateAuthority(input *UntagCertificateAuthorityInput) (*UntagCertificateAuthorityOutput, error)

UntagCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.

Remove one or more tags from your private CA. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this operation, 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 private CA, use the TagCertificateAuthority. Call the ListTags operation to see what tags are associated with your CA.

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 Private Certificate Authority's API operation UntagCertificateAuthority for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

  • ErrCodeInvalidTagException "InvalidTagException" The tag associated with the CA is not valid. The invalid argument is contained in the message field.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/UntagCertificateAuthority

UntagCertificateAuthorityRequest

func (c *ACMPCA) UntagCertificateAuthorityRequest(input *UntagCertificateAuthorityInput) (req *request.Request, output *UntagCertificateAuthorityOutput)

UntagCertificateAuthorityRequest generates a "aws/request.Request" representing the client's request for the UntagCertificateAuthority operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UntagCertificateAuthority for more information on using the UntagCertificateAuthority API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UntagCertificateAuthorityRequest method. req, resp := client.UntagCertificateAuthorityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/UntagCertificateAuthority

UntagCertificateAuthorityWithContext

func (c *ACMPCA) UntagCertificateAuthorityWithContext(ctx aws.Context, input *UntagCertificateAuthorityInput, opts ...request.Option) (*UntagCertificateAuthorityOutput, error)

UntagCertificateAuthorityWithContext is the same as UntagCertificateAuthority with the addition of the ability to pass a context and additional request options.

See UntagCertificateAuthority 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.

See Also

For more information about using this API, see AWS API Documentation.

UpdateCertificateAuthority

func (c *ACMPCA) UpdateCertificateAuthority(input *UpdateCertificateAuthorityInput) (*UpdateCertificateAuthorityOutput, error)

UpdateCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.

Updates the status or configuration of a private certificate authority (CA). Your private CA must be in the ACTIVE or DISABLED state before you can update it. You can disable a private CA that is in the ACTIVE state or make a CA that is in the DISABLED state active again.

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 Private Certificate Authority's API operation UpdateCertificateAuthority for usage and error information.

Returned Error Codes:

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" A previous update to your private CA is still ongoing.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource such as a private CA, S3 bucket, certificate, or audit report cannot be found.

  • ErrCodeInvalidArgsException "InvalidArgsException" One or more of the specified arguments was not valid.

  • ErrCodeInvalidArnException "InvalidArnException" The requested Amazon Resource Name (ARN) does not refer to an existing resource.

  • ErrCodeInvalidStateException "InvalidStateException" The private CA is in a state during which a report or certificate cannot be generated.

  • ErrCodeInvalidPolicyException "InvalidPolicyException" The S3 bucket policy is not valid. The policy must give ACM PCA rights to read from and write to the bucket and find the bucket location.

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/UpdateCertificateAuthority

UpdateCertificateAuthorityRequest

func (c *ACMPCA) UpdateCertificateAuthorityRequest(input *UpdateCertificateAuthorityInput) (req *request.Request, output *UpdateCertificateAuthorityOutput)

UpdateCertificateAuthorityRequest generates a "aws/request.Request" representing the client's request for the UpdateCertificateAuthority operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateCertificateAuthority for more information on using the UpdateCertificateAuthority API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateCertificateAuthorityRequest method. req, resp := client.UpdateCertificateAuthorityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/UpdateCertificateAuthority

UpdateCertificateAuthorityWithContext

func (c *ACMPCA) UpdateCertificateAuthorityWithContext(ctx aws.Context, input *UpdateCertificateAuthorityInput, opts ...request.Option) (*UpdateCertificateAuthorityOutput, error)

UpdateCertificateAuthorityWithContext is the same as UpdateCertificateAuthority with the addition of the ability to pass a context and additional request options.

See UpdateCertificateAuthority 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.

See Also

For more information about using this API, see AWS API Documentation.

WaitUntilAuditReportCreated

func (c *ACMPCA) WaitUntilAuditReportCreated(input *DescribeCertificateAuthorityAuditReportInput) error

WaitUntilAuditReportCreated uses the ACM-PCA API operation DescribeCertificateAuthorityAuditReport 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.

WaitUntilAuditReportCreatedWithContext

func (c *ACMPCA) WaitUntilAuditReportCreatedWithContext(ctx aws.Context, input *DescribeCertificateAuthorityAuditReportInput, opts ...request.WaiterOption) error

WaitUntilAuditReportCreatedWithContext is an extended version of WaitUntilAuditReportCreated. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

WaitUntilCertificateAuthorityCSRCreated

func (c *ACMPCA) WaitUntilCertificateAuthorityCSRCreated(input *GetCertificateAuthorityCsrInput) error

WaitUntilCertificateAuthorityCSRCreated uses the ACM-PCA API operation GetCertificateAuthorityCsr 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.

WaitUntilCertificateAuthorityCSRCreatedWithContext

func (c *ACMPCA) WaitUntilCertificateAuthorityCSRCreatedWithContext(ctx aws.Context, input *GetCertificateAuthorityCsrInput, opts ...request.WaiterOption) error

WaitUntilCertificateAuthorityCSRCreatedWithContext is an extended version of WaitUntilCertificateAuthorityCSRCreated. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

WaitUntilCertificateIssued

func (c *ACMPCA) WaitUntilCertificateIssued(input *GetCertificateInput) error

WaitUntilCertificateIssued uses the ACM-PCA API operation GetCertificate 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.

WaitUntilCertificateIssuedWithContext

func (c *ACMPCA) WaitUntilCertificateIssuedWithContext(ctx aws.Context, input *GetCertificateInput, opts ...request.WaiterOption) error

WaitUntilCertificateIssuedWithContext is an extended version of WaitUntilCertificateIssued. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

On this page: