Class: Aws::ACM::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ACM::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb
Overview
An API client for ACM. To construct a client, you need to configure a :region and :credentials.
client = Aws::ACM::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#add_tags_to_certificate(params = {}) ⇒ Struct
Adds one or more tags to an ACM certificate.
-
#create_acme_domain_validation(params = {}) ⇒ Types::CreateAcmeDomainValidationResponse
Creates a domain validation for an ACME endpoint.
-
#create_acme_endpoint(params = {}) ⇒ Types::CreateAcmeEndpointResponse
Creates an ACME endpoint, which is a managed ACME server with a unique endpoint URL.
-
#create_acme_external_account_binding(params = {}) ⇒ Types::CreateAcmeExternalAccountBindingResponse
Creates an external account binding (EAB) for an ACME endpoint.
-
#delete_acme_domain_validation(params = {}) ⇒ Struct
Deletes a domain validation.
-
#delete_acme_endpoint(params = {}) ⇒ Struct
Deletes an ACME endpoint.
-
#delete_acme_external_account_binding(params = {}) ⇒ Struct
Deletes an external account binding.
-
#delete_certificate(params = {}) ⇒ Struct
Deletes a certificate and its associated private key.
-
#delete_member_certificate(params = {}) ⇒ Struct
Deletes an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization.
-
#delete_member_certificate_authority(params = {}) ⇒ Struct
Deletes a private certificate authority (CA) in a member account of the caller's organization.
-
#describe_acme_account(params = {}) ⇒ Types::DescribeAcmeAccountResponse
Returns detailed metadata about the specified ACME account, including its status, public key thumbprint, and associated external account binding.
-
#describe_acme_domain_validation(params = {}) ⇒ Types::DescribeAcmeDomainValidationResponse
Returns detailed metadata about the specified domain validation, including its status, domain scope, and DNS resource records required for validation.
-
#describe_acme_endpoint(params = {}) ⇒ Types::DescribeAcmeEndpointResponse
Returns detailed metadata about the specified ACME endpoint, including its status, URL, authorization behavior, and certificate authority configuration.
-
#describe_acme_external_account_binding(params = {}) ⇒ Types::DescribeAcmeExternalAccountBindingResponse
Returns detailed metadata about the specified external account binding, including the associated IAM role, expiration time, and usage history.
-
#describe_certificate(params = {}) ⇒ Types::DescribeCertificateResponse
Returns detailed metadata about the specified ACM certificate.
-
#export_certificate(params = {}) ⇒ Types::ExportCertificateResponse
Exports a private certificate issued by a private certificate authority (CA) or a public certificate for use anywhere.
-
#get_account_configuration(params = {}) ⇒ Types::GetAccountConfigurationResponse
Returns the account configuration options associated with an Amazon Web Services account.
-
#get_acme_external_account_binding_credentials(params = {}) ⇒ Types::GetAcmeExternalAccountBindingCredentialsResponse
Retrieves the key ID and MAC key credentials for an external account binding.
-
#get_certificate(params = {}) ⇒ Types::GetCertificateResponse
Retrieves a certificate and its certificate chain.
-
#get_inventory_configuration(params = {}) ⇒ Types::GetInventoryConfigurationOutput
Returns the organization's configuration for Certificate inventory for organizations.
-
#get_inventory_insights(params = {}) ⇒ Types::GetInventoryInsightsOutput
Returns certificate counts from Certificate inventory for organizations, broken down by the requested aggregates.
-
#import_certificate(params = {}) ⇒ Types::ImportCertificateResponse
Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with ACM.
-
#list_acme_accounts(params = {}) ⇒ Types::ListAcmeAccountsResponse
Retrieves a list of ACME accounts registered with the specified ACME endpoint.
-
#list_acme_domain_validations(params = {}) ⇒ Types::ListAcmeDomainValidationsResponse
Retrieves a list of domain validations for the specified ACME endpoint.
-
#list_acme_endpoints(params = {}) ⇒ Types::ListAcmeEndpointsResponse
Retrieves a list of ACME endpoints in your account.
-
#list_acme_external_account_bindings(params = {}) ⇒ Types::ListAcmeExternalAccountBindingsResponse
Retrieves a list of external account bindings for the specified ACME endpoint.
-
#list_certificate_domain_validations(params = {}) ⇒ Types::ListCertificateDomainValidationsResponse
Returns per-domain validation summaries for an ACM certificate.
-
#list_certificates(params = {}) ⇒ Types::ListCertificatesResponse
Retrieves a list of certificate ARNs and domain names.
-
#list_inventory_findings(params = {}) ⇒ Types::ListInventoryFindingsOutput
Lists the open findings for one certificate.
-
#list_inventory_related_resources(params = {}) ⇒ Types::ListInventoryRelatedResourcesOutput
Lists the resources that one certificate maps to: AWS Certificate Manager certificates, AWS Private Certificate Authority (AWS Private CA) certificates, and AWS Private CA certificate authorities.
-
#list_inventory_usages(params = {}) ⇒ Types::ListInventoryUsagesOutput
Lists the places where one certificate was observed in use, such as load balancers and Amazon CloudFront distributions.
-
#list_tags_for_certificate(params = {}) ⇒ Types::ListTagsForCertificateResponse
Lists the tags that have been applied to the ACM certificate.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags associated with an ACM resource.
-
#put_account_configuration(params = {}) ⇒ Struct
Adds or modifies account-level configurations in ACM.
-
#put_inventory_configuration(params = {}) ⇒ Types::PutInventoryConfigurationOutput
Sets the organization's configuration for Certificate inventory for organizations, and returns it.
-
#remove_tags_from_certificate(params = {}) ⇒ Struct
Remove one or more tags from an ACM certificate.
-
#renew_certificate(params = {}) ⇒ Struct
Renews an [eligible ACM certificate][1].
-
#renew_member_certificate(params = {}) ⇒ Struct
Renews an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization.
-
#request_certificate(params = {}) ⇒ Types::RequestCertificateResponse
Requests an ACM certificate for use with other Amazon Web Services services.
-
#resend_validation_email(params = {}) ⇒ Struct
Resends the email that requests domain ownership validation.
-
#restore_member_certificate_authority(params = {}) ⇒ Struct
Restores a deleted private certificate authority (CA) in a member account of the caller's organization.
-
#revoke_acme_account(params = {}) ⇒ Struct
Revokes an ACME account, preventing it from requesting or revoking certificates.
-
#revoke_acme_external_account_binding(params = {}) ⇒ Struct
Revokes an external account binding, preventing new ACME accounts from being registered using this binding.
-
#revoke_certificate(params = {}) ⇒ Types::RevokeCertificateResponse
Revokes a public ACM certificate.
-
#revoke_member_certificate(params = {}) ⇒ Types::RevokeMemberCertificateOutput
Revokes an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization, and returns the ARN of the revoked certificate.
-
#revoke_member_issued_certificate(params = {}) ⇒ Struct
Revokes a certificate that a private certificate authority (CA) in a member account of the caller's organization issued.
-
#search_certificates(params = {}) ⇒ Types::SearchCertificatesResponse
Retrieves a list of certificates matching search criteria.
-
#search_inventory(params = {}) ⇒ Types::SearchInventoryOutput
Searches Certificate inventory for organizations and returns one page of certificates, with the number that match.
-
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to an ACM resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from an ACM resource.
-
#update_acme_domain_validation(params = {}) ⇒ Struct
Updates the prevalidation configuration of an existing domain validation.
-
#update_acme_endpoint(params = {}) ⇒ Struct
Updates the configuration of an existing ACME endpoint.
-
#update_certificate_options(params = {}) ⇒ Struct
Updates certificate options.
-
#update_member_certificate_authority(params = {}) ⇒ Struct
Updates the status or the revocation configuration of a private certificate authority (CA) in a member account of the caller's organization.
-
#update_member_certificate_options(params = {}) ⇒ Struct
Updates the options of an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
489 490 491 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 489 def initialize(*args) super end |
Instance Method Details
#add_tags_to_certificate(params = {}) ⇒ Struct
Adds one or more tags to an ACM certificate. Tags are labels that you
can use to identify and organize your Amazon Web Services 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.
certificate resource type. For all
other ACM resource types, use TagResource instead.
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.
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.
558 559 560 561 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 558 def (params = {}, = {}) req = build_request(:add_tags_to_certificate, params) req.send_request() end |
#create_acme_domain_validation(params = {}) ⇒ Types::CreateAcmeDomainValidationResponse
Creates a domain validation for an ACME endpoint. Domain validations authorize the endpoint to issue certificates for specified domain names. You configure prevalidation to prove domain ownership.
622 623 624 625 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 622 def create_acme_domain_validation(params = {}, = {}) req = build_request(:create_acme_domain_validation, params) req.send_request() end |
#create_acme_endpoint(params = {}) ⇒ Types::CreateAcmeEndpointResponse
Creates an ACME endpoint, which is a managed ACME server with a unique endpoint URL. After creation, ACME clients can use the endpoint URL to automate certificate issuance using the ACME protocol.
692 693 694 695 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 692 def create_acme_endpoint(params = {}, = {}) req = build_request(:create_acme_endpoint, params) req.send_request() end |
#create_acme_external_account_binding(params = {}) ⇒ Types::CreateAcmeExternalAccountBindingResponse
Creates an external account binding (EAB) for an ACME endpoint. An EAB provides credentials that authorize an ACME client to register an account with the endpoint. Each EAB is associated with an IAM role that controls what certificate operations the ACME client can perform.
759 760 761 762 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 759 def create_acme_external_account_binding(params = {}, = {}) req = build_request(:create_acme_external_account_binding, params) req.send_request() end |
#delete_acme_domain_validation(params = {}) ⇒ Struct
Deletes a domain validation. After deletion, the ACME endpoint can no longer issue certificates for the associated domain.
783 784 785 786 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 783 def delete_acme_domain_validation(params = {}, = {}) req = build_request(:delete_acme_domain_validation, params) req.send_request() end |
#delete_acme_endpoint(params = {}) ⇒ Struct
Deletes an ACME endpoint. After deletion, the endpoint URL is no longer accessible and ACME clients cannot issue certificates through it. Any existing external account bindings and domain validations associated with the endpoint are also deleted.
808 809 810 811 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 808 def delete_acme_endpoint(params = {}, = {}) req = build_request(:delete_acme_endpoint, params) req.send_request() end |
#delete_acme_external_account_binding(params = {}) ⇒ Struct
Deletes an external account binding. Previously fetched credentials for this binding will no longer be usable for account registration. A deleted binding cannot be recovered.
833 834 835 836 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 833 def delete_acme_external_account_binding(params = {}, = {}) req = build_request(:delete_acme_external_account_binding, params) req.send_request() end |
#delete_certificate(params = {}) ⇒ Struct
Deletes a certificate and its associated private key. If this action succeeds, the certificate is not available for use by Amazon Web Services services integrated with ACM. Deleting a certificate is eventually consistent. The may be a short delay before 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.
Deleting a certificate issued by a private certificate authority (CA) has no effect on the CA. You will continue to be charged for the CA until it is deleted. For more information, see Deleting Your Private CA in the Private Certificate Authority User Guide.
You cannot delete a certificate with a CertificateKeyPairOrigin of
ACME. ACM automatically deletes these certificates 1 year after they
expire.
Deleting a certificate issued by a private certificate authority (CA) has no effect on the CA. You will continue to be charged for the CA until it is deleted. For more information, see Deleting your private CA in the Amazon Web Services Private Certificate Authority User Guide.
897 898 899 900 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 897 def delete_certificate(params = {}, = {}) req = build_request(:delete_certificate, params) req.send_request() end |
#delete_member_certificate(params = {}) ⇒ Struct
Deletes an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization. ACM applies the rules of its DeleteCertificate operation, including when it cannot delete a certificate. For details, see DeleteCertificate in the AWS Certificate Manager API Reference.
The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see RenewMemberCertificate.
949 950 951 952 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 949 def delete_member_certificate(params = {}, = {}) req = build_request(:delete_member_certificate, params) req.send_request() end |
#delete_member_certificate_authority(params = {}) ⇒ Struct
Deletes a private certificate authority (CA) in a member account of the caller's organization. AWS Private Certificate Authority (AWS Private CA) applies the rules of its DeleteCertificateAuthority operation, including which CA states can be deleted and how long a deleted CA can be restored. For details, see DeleteCertificateAuthority in the AWS Private CA API Reference.
The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see UpdateMemberCertificateAuthority.
1010 1011 1012 1013 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1010 def (params = {}, = {}) req = build_request(:delete_member_certificate_authority, params) req.send_request() end |
#describe_acme_account(params = {}) ⇒ Types::DescribeAcmeAccountResponse
Returns detailed metadata about the specified ACME account, including its status, public key thumbprint, and associated external account binding.
1050 1051 1052 1053 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1050 def describe_acme_account(params = {}, = {}) req = build_request(:describe_acme_account, params) req.send_request() end |
#describe_acme_domain_validation(params = {}) ⇒ Types::DescribeAcmeDomainValidationResponse
Returns detailed metadata about the specified domain validation, including its status, domain scope, and DNS resource records required for validation.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- acme_domain_validation_deleted
- acme_domain_validation_validated
1101 1102 1103 1104 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1101 def describe_acme_domain_validation(params = {}, = {}) req = build_request(:describe_acme_domain_validation, params) req.send_request() end |
#describe_acme_endpoint(params = {}) ⇒ Types::DescribeAcmeEndpointResponse
Returns detailed metadata about the specified ACME endpoint, including its status, URL, authorization behavior, and certificate authority configuration.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- acme_endpoint_active
- acme_endpoint_deleted
1149 1150 1151 1152 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1149 def describe_acme_endpoint(params = {}, = {}) req = build_request(:describe_acme_endpoint, params) req.send_request() end |
#describe_acme_external_account_binding(params = {}) ⇒ Types::DescribeAcmeExternalAccountBindingResponse
Returns detailed metadata about the specified external account binding, including the associated IAM role, expiration time, and usage history.
1186 1187 1188 1189 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1186 def describe_acme_external_account_binding(params = {}, = {}) req = build_request(:describe_acme_external_account_binding, params) req.send_request() end |
#describe_certificate(params = {}) ⇒ Types::DescribeCertificateResponse
Returns detailed metadata about the specified ACM certificate.
If you have just created a certificate using the RequestCertificate
action, there is a delay of several seconds before you can retrieve
information about it.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- certificate_validated
1302 1303 1304 1305 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1302 def describe_certificate(params = {}, = {}) req = build_request(:describe_certificate, params) req.send_request() end |
#export_certificate(params = {}) ⇒ Types::ExportCertificateResponse
Exports a private certificate issued by a private certificate authority (CA) or a public certificate for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it.
For information about exporting and formatting a certificate using the ACM console or CLI, see Export a private certificate and Export a public certificate.
1372 1373 1374 1375 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1372 def export_certificate(params = {}, = {}) req = build_request(:export_certificate, params) req.send_request() end |
#get_account_configuration(params = {}) ⇒ Types::GetAccountConfigurationResponse
Returns the account configuration options associated with an Amazon Web Services account.
1392 1393 1394 1395 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1392 def get_account_configuration(params = {}, = {}) req = build_request(:get_account_configuration, params) req.send_request() end |
#get_acme_external_account_binding_credentials(params = {}) ⇒ Types::GetAcmeExternalAccountBindingCredentialsResponse
Retrieves the key ID and MAC key credentials for an external account binding. These credentials are used by ACME clients during account registration to bind to the endpoint.
1424 1425 1426 1427 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1424 def get_acme_external_account_binding_credentials(params = {}, = {}) req = build_request(:get_acme_external_account_binding_credentials, params) req.send_request() end |
#get_certificate(params = {}) ⇒ Types::GetCertificateResponse
Retrieves a certificate and its certificate chain. The certificate may
be either a public or private certificate issued using the ACM
RequestCertificate action, or a certificate imported into ACM using
the ImportCertificate action. The chain consists of the certificate
of the issuing CA and the intermediate certificates of any other
subordinate CAs. All of the certificates are base64 encoded. You can
use OpenSSL to decode the certificates and inspect individual
fields.
1474 1475 1476 1477 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1474 def get_certificate(params = {}, = {}) req = build_request(:get_certificate, params) req.send_request() end |
#get_inventory_configuration(params = {}) ⇒ Types::GetInventoryConfigurationOutput
Returns the organization's configuration for Certificate inventory for organizations. The certificate inventory is the set of certificates observed in the organization's accounts. The configuration says which Regions and accounts are collected, how long data is kept, and whether collection is on. It also shows how far setup has progressed, the organization's AWS Certificate Manager (ACM) plan (Essentials or Pro), and whether Certificate actions for organizations are on. Certificate actions are the operations that act on certificates and certificate authorities in the organization's member accounts.
The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition. Before the first PutInventoryConfiguration call, the operation returns ResourceNotFoundException.
1669 1670 1671 1672 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 1669 def get_inventory_configuration(params = {}, = {}) req = build_request(:get_inventory_configuration, params) req.send_request() end |
#get_inventory_insights(params = {}) ⇒ Types::GetInventoryInsightsOutput
Returns certificate counts from Certificate inventory for organizations, broken down by the requested aggregates. The certificate inventory is the set of certificates observed in the organization's accounts. An aggregate groups the count by one property, such as Region or key algorithm. Every aggregate except EXPIRY_WINDOW is ranked: it lists groups largest first and omits empty groups.
The counts are precomputed, so the response and each aggregate result carry their own UpdatedAt, which can be earlier than the request. For a count under any other filter, use SearchInventory, whose TotalCount is computed at query time.
Each aggregate is computed on its own, so one aggregate can be FAILED while the others are COMPLETE. Before the first PutInventoryConfiguration call, and while ProvisioningStatus is ENABLING, the counts might not be computed yet. Until they are, CertificateCount is 0 and UpdatedAt is absent. Ranked aggregates are COMPLETE with an empty Groups list. EXPIRY_WINDOW is FAILED until the first daily EXPIRY_WINDOW computation has run. While Status is DISABLED, retained data is served until retention removes it.
The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition. GetInventoryInsights does not return ResourceNotFoundException. Before the first PutInventoryConfiguration call, only the management account can call it; a delegated administrator receives AccessDeniedException.
A repeated aggregate returns ValidationException. An entry that selects no aggregate, or more than one, also returns ValidationException.
2114 2115 2116 2117 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2114 def get_inventory_insights(params = {}, = {}) req = build_request(:get_inventory_insights, params) req.send_request() end |
#import_certificate(params = {}) ⇒ Types::ImportCertificateResponse
Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services 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 in the Certificate Manager User Guide.
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.
The private key must be no larger than 5 KB (5,120 bytes).
The certificate, private key, and certificate chain must be PEM-encoded.
The current time must be between the
Not BeforeandNot Aftercertificate fields.The
Issuerfield must not be empty.The OCSP authority URL, if present, must not exceed 1000 characters.
To import a new certificate, omit the
CertificateArnargument. 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
fileb://. For example, you can specify a certificate saved in theC:\tempfolder asfileb://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.
The cryptographic algorithm of an imported certificate must match the algorithm of the signing CA. For example, if the signing CA key type is RSA, then the certificate key type must also be RSA.
This operation returns the Amazon Resource Name (ARN) of the imported certificate.
2231 2232 2233 2234 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2231 def import_certificate(params = {}, = {}) req = build_request(:import_certificate, params) req.send_request() end |
#list_acme_accounts(params = {}) ⇒ Types::ListAcmeAccountsResponse
Retrieves a list of ACME accounts registered with the specified ACME endpoint. ACME accounts are created when clients use external account binding credentials to register.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2280 2281 2282 2283 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2280 def list_acme_accounts(params = {}, = {}) req = build_request(:list_acme_accounts, params) req.send_request() end |
#list_acme_domain_validations(params = {}) ⇒ Types::ListAcmeDomainValidationsResponse
Retrieves a list of domain validations for the specified ACME endpoint.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2337 2338 2339 2340 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2337 def list_acme_domain_validations(params = {}, = {}) req = build_request(:list_acme_domain_validations, params) req.send_request() end |
#list_acme_endpoints(params = {}) ⇒ Types::ListAcmeEndpointsResponse
Retrieves a list of ACME endpoints in your account. Use this operation to view all configured ACME endpoints and their current status.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2387 2388 2389 2390 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2387 def list_acme_endpoints(params = {}, = {}) req = build_request(:list_acme_endpoints, params) req.send_request() end |
#list_acme_external_account_bindings(params = {}) ⇒ Types::ListAcmeExternalAccountBindingsResponse
Retrieves a list of external account bindings for the specified ACME endpoint.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2436 2437 2438 2439 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2436 def list_acme_external_account_bindings(params = {}, = {}) req = build_request(:list_acme_external_account_bindings, params) req.send_request() end |
#list_certificate_domain_validations(params = {}) ⇒ Types::ListCertificateDomainValidationsResponse
Returns per-domain validation summaries for an ACM certificate. Each summary includes the domain name, the active validation configuration, and the requested validation configuration when a validation method migration is in progress. You can use the results to monitor the progress of an email-to-DNS validation migration and to retrieve the CNAME records required for DNS validation.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2502 2503 2504 2505 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2502 def list_certificate_domain_validations(params = {}, = {}) req = build_request(:list_certificate_domain_validations, params) req.send_request() end |
#list_certificates(params = {}) ⇒ Types::ListCertificatesResponse
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. Default
filtering returns only RSA_2048 certificates. For more information,
see Filters.
CertificateKeyPairOrigin of ACME. To include ACME certificates,
specify ACME in the CertificateKeyPairOrigins filter.
RootHierarchyType of N2_AMAZON_MANAGED or
N2_SFG2_AMAZON_MANAGED. To list only Amazon N2 certificates, specify
one or both of these values in the RootHierarchyTypes filter.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2629 2630 2631 2632 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2629 def list_certificates(params = {}, = {}) req = build_request(:list_certificates, params) req.send_request() end |
#list_inventory_findings(params = {}) ⇒ Types::ListInventoryFindingsOutput
Lists the open findings for one certificate. Returns one page of findings and the total number of findings.
A finding says that a certificate series has a problem you can fix, and how severe it is. A series is the set of certificates that one AWS Certificate Manager (ACM) certificate holds across renewals and reimports. A certificate's findings are the open findings of every series in which it is a current certificate. A rule that passes or does not apply produces no finding, so a certificate with no problems returns an empty list.
Findings are sorted by severity, highest first, and then by RuleId in alphabetical order. Ties are broken in a fixed order that is unique to each finding, so paging returns every finding at least once. A finding can change while you page, for example when its severity rises. Then it is returned again, with its new values, at the top of a later page. Its FindingId does not change, so you can replace the copy you already have.
To read the next page, repeat the request with the NextToken from the previous response. Keep the same CertificateIdentifier and Severity. A NextToken from a request with a different CertificateIdentifier or Severity returns ValidationException.
Every response also reports the certificate's HighestFindingSeverity. It is NOT_EVALUATED until the certificate's findings have been evaluated.
The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition.
The operation returns ResourceNotFoundException in two cases, each with its own message:
- The inventory is not configured: no PutInventoryConfiguration call has run.
- The inventory has no certificate with the identifier.
Do not match on the message to tell the cases apart. GetInventoryConfiguration says whether the inventory is configured.
Before the first PutInventoryConfiguration call, only the management account can call it; a delegated administrator receives AccessDeniedException.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2827 2828 2829 2830 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2827 def list_inventory_findings(params = {}, = {}) req = build_request(:list_inventory_findings, params) req.send_request() end |
#list_inventory_related_resources(params = {}) ⇒ Types::ListInventoryRelatedResourcesOutput
Lists the resources that one certificate maps to: AWS Certificate Manager certificates, AWS Private Certificate Authority (AWS Private CA) certificates, and AWS Private CA certificate authorities. Returns one page of related resources and the total number of related resources.
Related resources are sorted by ResourceArn, in ascending order. To read the next page, repeat the request with the NextToken from the previous response and the same CertificateIdentifier. A NextToken from a request for a different certificate returns ValidationException.
The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition.
The operation returns ResourceNotFoundException before the first PutInventoryConfiguration call. Until then, only the management account can call it; a delegated administrator receives AccessDeniedException. It also returns ResourceNotFoundException when the inventory has no certificate with the identifier.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2988 2989 2990 2991 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 2988 def (params = {}, = {}) req = build_request(:list_inventory_related_resources, params) req.send_request() end |
#list_inventory_usages(params = {}) ⇒ Types::ListInventoryUsagesOutput
Lists the places where one certificate was observed in use, such as load balancers and Amazon CloudFront distributions. Returns one page of usages and the total number of usages.
Usages are sorted by target, in ascending order. To read the next page, repeat the request with the NextToken from the previous response and the same CertificateIdentifier. A NextToken from a request for a different certificate returns ValidationException.
The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition.
The operation returns ResourceNotFoundException before the first PutInventoryConfiguration call. Until then, only the management account can call it; a delegated administrator receives AccessDeniedException. It also returns ResourceNotFoundException when the inventory has no certificate with the identifier.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3105 3106 3107 3108 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 3105 def list_inventory_usages(params = {}, = {}) req = build_request(:list_inventory_usages, params) req.send_request() end |
#list_tags_for_certificate(params = {}) ⇒ Types::ListTagsForCertificateResponse
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.
certificate resource type. For all
other ACM resource types, use ListTagsForResource instead.
3153 3154 3155 3156 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 3153 def (params = {}, = {}) req = build_request(:list_tags_for_certificate, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags associated with an ACM resource.
certificate
resource type. For certificate resources, use ListTagsForCertificate
instead.
To add one or more tags, use the TagResource action. To remove one or more tags, use the UntagResource action.
3192 3193 3194 3195 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 3192 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_account_configuration(params = {}) ⇒ Struct
Adds or modifies account-level configurations in ACM.
The supported configuration option is DaysBeforeExpiry. This option
specifies the number of days prior to certificate expiration when ACM
starts generating EventBridge events. ACM sends one event per day
per certificate until the certificate expires. By default, accounts
receive events starting 45 days before certificate expiration.
3231 3232 3233 3234 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 3231 def put_account_configuration(params = {}, = {}) req = build_request(:put_account_configuration, params) req.send_request() end |
#put_inventory_configuration(params = {}) ⇒ Types::PutInventoryConfigurationOutput
Sets the organization's configuration for Certificate inventory for organizations, and returns it. The certificate inventory is the set of certificates observed in the organization's accounts.
The first call with Status ENABLED creates the configuration. The Region of that call becomes the home Region, and later calls must be made there. Setup in the organization's accounts continues after the call returns. To follow it, read ProvisioningStatus with GetInventoryConfiguration.
The caller must be the organization's management account or its delegated administrator in AWS Organizations. Otherwise, the operation returns AccessDeniedException. The first call starts the organization's AWS Certificate Manager (ACM) plan (Essentials or Pro), so only the management account can make it. A delegated administrator can make later calls as soon as it is registered.
The call does not require that AWS Organizations trusted access is on, that all features are enabled in the organization, or that a delegated administrator is registered. Setup requires them. If a requirement is not met, GetInventoryConfiguration shows ProvisioningStatus FAILED, with a reason code and a message.
The operation returns ConflictException for these calls:
- A first call with Status DISABLED.
- A call from a Region other than the home Region.
- A call while a previous change is still being set up, unless it repeats the stored configuration.
DataRetentionDays is not kept when you omit it. A call without it sets retention to 90 days, even if a different value is stored.
LifecycleManagement turns Certificate actions for organizations on or off. Certificate actions are the operations that act on certificates and certificate authorities in the organization's member accounts. Omit LifecycleManagement to keep the stored value. The first call can turn certificate actions on, and no registered delegated administrator is needed. Status DISABLED also turns certificate actions off. Turning them on while Status is DISABLED returns ValidationException. To follow setup in the member accounts, read LifecycleManagement.ProvisioningStatus with GetInventoryConfiguration.
ExpiryNotification sets certificate expiry notifications. Omit it to keep the stored setting, or set Enabled to false to turn notifications off. With Enabled true, Channel and TopicArn are required. The topic must be a standard (non-FIFO) Amazon SNS topic in the management account and the home Region. It must also be in the partition of the endpoint you call. Otherwise, the operation returns ValidationException. Each save with Enabled true verifies the topic again after the call returns. To follow it, read LastDeliveryStatus with GetInventoryConfiguration.
A call that repeats the stored configuration returns it, even while a previous change is still being set up. To retry a failed setup, repeat the call with Status ENABLED after ProvisioningStatus is FAILED. With ExpiryNotification Enabled true, a repeated call also verifies the topic again.
InventoryTier names the organization's ACM plan: Essentials or Pro. It is optional. Omit it to keep the current plan. While the organization has no plan, such as on the first call, a call with Status ENABLED must name one. Otherwise, it returns ValidationException. With Status ENABLED, the named plan is the plan to subscribe to. The first plan and a higher plan take effect immediately. A lower plan takes effect at the end of the billing period.
With Status DISABLED, InventoryTier is ignored. Certificate actions turn off immediately. The plan ends at the end of the billing period, and collection stays on until then. Repeating the DISABLED call before then does not change the plan again. If the organization has no plan, a DISABLED call turns collection off immediately.
Until the plan ends, a Status ENABLED call that omits InventoryTier leaves the end in place. To read the scheduled end, use InventoryTierConfiguration.ScheduledChange in GetInventoryConfiguration. A call that names the ending plan returns ConflictException. A call that names the other plan replaces the scheduled end with that plan. A scheduled downgrade cannot be taken back either. While one is scheduled, a call that names the plan in effect returns ConflictException.
Only the management account can start, change, or end the plan. A delegated administrator call that would do so returns AccessDeniedException. A delegated administrator call succeeds when it omits InventoryTier or names the plan last requested. While the plan is scheduled to end, there is no requested plan, so a delegated administrator call that names any plan returns AccessDeniedException. The response does not include the plan. Read InventoryTierConfiguration with GetInventoryConfiguration, which can take a few seconds to show a change.
3744 3745 3746 3747 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 3744 def put_inventory_configuration(params = {}, = {}) req = build_request(:put_inventory_configuration, params) req.send_request() end |
#remove_tags_from_certificate(params = {}) ⇒ Struct
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.
certificate resource type. For all
other ACM resource types, use UntagResource instead.
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.
3798 3799 3800 3801 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 3798 def (params = {}, = {}) req = build_request(:remove_tags_from_certificate, params) req.send_request() end |
#renew_certificate(params = {}) ⇒ Struct
Renews an eligible ACM certificate. In order to renew your Amazon Web Services Private CA certificates with ACM, you must first grant the ACM service principal permission to do so. For more information, see Testing Managed Renewal in the ACM User Guide.
3838 3839 3840 3841 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 3838 def renew_certificate(params = {}, = {}) req = build_request(:renew_certificate, params) req.send_request() end |
#renew_member_certificate(params = {}) ⇒ Struct
Renews an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization. ACM applies the rules of its RenewCertificate operation, including which certificates it can renew. For details, see RenewCertificate in the AWS Certificate Manager API Reference.
The caller must be the organization's management account or its delegated administrator. The operation acts in the member account and Region that the certificate ARN names. It returns AccessDeniedException in these cases, and, except where noted, the message names the unmet condition:
- The caller's account is not in an organization, or the organization is not active in AWS Certificate Manager.
- The caller is neither the management account nor the delegated administrator.
- The certificate is in the caller's own account. Call the ACM operation in that account instead.
- The organization has no certificate inventory configuration.
- Certificate actions for organizations are turned off. Certificate actions are the operations that act on certificates and certificate authorities in member accounts. Turn them on with LifecycleManagement in PutInventoryConfiguration.
- The certificate's Region is outside the RegionalScope of the configuration.
- The certificate's account is not an active member of the organization, or is outside the AccountScope of the configuration.
- The Regions enabled for the certificate's account are not recorded yet.
- AWS Certificate Manager is not authorized to act in the certificate's account, because the account is not in the organization or access setup there has not finished.
If member operations are not available in the Region you call, the operation returns AccessDeniedException with the message Unauthorized, before any of the checks above. An ARN that is malformed, does not name an ACM certificate, is in another partition, or names an unknown Region also returns AccessDeniedException with the message Unauthorized. A call outside the organization's home Region returns ResourceNotFoundException, and the message names the home Region. A certificate ARN whose Region is not enabled for its account, or where ACM is not available, returns ValidationException. A certificate ARN that is too long for the operation to act on, even within the length limit of CertificateArn, also returns ValidationException.
Errors that ACM returns in the member account are returned as these errors:
- ResourceNotFoundException: ACM did not find the certificate.
- ConflictException: ACM reports a conflict, such as a certificate state that does not allow the change.
- ValidationException: ACM rejects the request, or reports that a quota is reached.
- ThrottlingException: ACM throttles the call.
Any other error returns InternalServerException.
3936 3937 3938 3939 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 3936 def renew_member_certificate(params = {}, = {}) req = build_request(:renew_member_certificate, params) req.send_request() end |
#request_certificate(params = {}) ⇒ Types::RequestCertificateResponse
Requests an ACM certificate for use with other Amazon Web Services
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 or email validation. We recommend that you use DNS validation.
After successful completion of the RequestCertificate action, there
is a delay of several seconds before you can retrieve information
about the new certificate.
4211 4212 4213 4214 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4211 def request_certificate(params = {}, = {}) req = build_request(:request_certificate, params) req.send_request() end |
#resend_validation_email(params = {}) ⇒ Struct
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.
4279 4280 4281 4282 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4279 def resend_validation_email(params = {}, = {}) req = build_request(:resend_validation_email, params) req.send_request() end |
#restore_member_certificate_authority(params = {}) ⇒ Struct
Restores a deleted private certificate authority (CA) in a member account of the caller's organization. AWS Private Certificate Authority (AWS Private CA) applies the rules of its RestoreCertificateAuthority operation, including which CAs can be restored and until when. For details, see RestoreCertificateAuthority in the AWS Private CA API Reference.
The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see UpdateMemberCertificateAuthority.
4332 4333 4334 4335 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4332 def (params = {}, = {}) req = build_request(:restore_member_certificate_authority, params) req.send_request() end |
#revoke_acme_account(params = {}) ⇒ Struct
Revokes an ACME account, preventing it from requesting or revoking certificates. This operation is irreversible.
4359 4360 4361 4362 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4359 def revoke_acme_account(params = {}, = {}) req = build_request(:revoke_acme_account, params) req.send_request() end |
#revoke_acme_external_account_binding(params = {}) ⇒ Struct
Revokes an external account binding, preventing new ACME accounts from being registered using this binding. Existing ACME accounts that were previously registered using the binding are not affected and must be revoked separately.
4385 4386 4387 4388 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4385 def revoke_acme_external_account_binding(params = {}, = {}) req = build_request(:revoke_acme_external_account_binding, params) req.send_request() end |
#revoke_certificate(params = {}) ⇒ Types::RevokeCertificateResponse
Revokes a public ACM certificate. You can only revoke certificates that have been previously exported.
Once a certificate is revoked, you cannot reuse the certificate. Revoking a certificate is permanent.
4424 4425 4426 4427 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4424 def revoke_certificate(params = {}, = {}) req = build_request(:revoke_certificate, params) req.send_request() end |
#revoke_member_certificate(params = {}) ⇒ Types::RevokeMemberCertificateOutput
Revokes an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization, and returns the ARN of the revoked certificate. ACM applies the rules of its RevokeCertificate operation, including which certificates it can revoke. For details, see RevokeCertificate in the AWS Certificate Manager API Reference.
The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see RenewMemberCertificate.
4489 4490 4491 4492 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4489 def revoke_member_certificate(params = {}, = {}) req = build_request(:revoke_member_certificate, params) req.send_request() end |
#revoke_member_issued_certificate(params = {}) ⇒ Struct
Revokes a certificate that a private certificate authority (CA) in a member account of the caller's organization issued. AWS Private Certificate Authority (AWS Private CA) applies the rules of its RevokeCertificate operation, including which certificates it can revoke. For details, see RevokeCertificate in the AWS Private CA API Reference.
The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see UpdateMemberCertificateAuthority.
4554 4555 4556 4557 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4554 def revoke_member_issued_certificate(params = {}, = {}) req = build_request(:revoke_member_issued_certificate, params) req.send_request() end |
#search_certificates(params = {}) ⇒ Types::SearchCertificatesResponse
Retrieves a list of certificates matching search criteria. You can filter certificates by X.509 attributes and ACM specific properties like certificate status, type and renewal eligibility. This operation provides more flexible filtering than ListCertificates by supporting complex filter statements.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4766 4767 4768 4769 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 4766 def search_certificates(params = {}, = {}) req = build_request(:search_certificates, params) req.send_request() end |
#search_inventory(params = {}) ⇒ Types::SearchInventoryOutput
Searches Certificate inventory for organizations and returns one page of certificates, with the number that match. The certificate inventory is the set of certificates observed in the organization's accounts.
Filter combines typed predicates with And, Or, and Not. Omit it to search every certificate. These limits apply:
- An And or Or list holds 1 to 15 statements.
- Statements nest at most 3 levels deep. Filter itself is level 1, and each statement inside an And, Or, or Not is one level deeper. For example, an And of Not statements that each hold a predicate is 3 levels deep.
- A filter holds at most 20 predicates in total.
Results are sorted by NotAfter, latest first, unless SortBy and SortOrder say otherwise. To read the next page, repeat the request with the NextToken from the previous response. Keep the same Filter, SortBy, and SortOrder. A NextToken from a search with a different Filter, SortBy, or SortOrder returns ValidationException.
The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition. Before the first PutInventoryConfiguration call, the operation returns ResourceNotFoundException. Until then, only the management account can call it; a delegated administrator receives AccessDeniedException.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5004 5005 5006 5007 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5004 def search_inventory(params = {}, = {}) req = build_request(:search_inventory, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to an ACM resource. Tags are labels that you can
use to identify and organize your Amazon Web Services resources. Each
tag consists of a key and an optional value.
certificate
resource type. For certificate resources, use AddTagsToCertificate
instead.
To remove one or more tags, use the UntagResource action. To view all of the tags that have been applied to a resource, use the ListTagsForResource action.
5047 5048 5049 5050 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5047 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from an ACM resource.
certificate
resource type. For certificate resources, use
RemoveTagsFromCertificate instead.
To add one or more tags, use the TagResource action. To view all of the tags that have been applied to a resource, use the ListTagsForResource action.
5083 5084 5085 5086 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5083 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_acme_domain_validation(params = {}) ⇒ Struct
Updates the prevalidation configuration of an existing domain validation.
5120 5121 5122 5123 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5120 def update_acme_domain_validation(params = {}, = {}) req = build_request(:update_acme_domain_validation, params) req.send_request() end |
#update_acme_endpoint(params = {}) ⇒ Struct
Updates the configuration of an existing ACME endpoint. You can change the authorization behavior, contact requirement, or certificate authority settings.
5160 5161 5162 5163 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5160 def update_acme_endpoint(params = {}, = {}) req = build_request(:update_acme_endpoint, params) req.send_request() end |
#update_certificate_options(params = {}) ⇒ Struct
Updates certificate options. You can use this operation to change the domain validation method or specify whether to export your certificate. For more information, see Migrate from email to DNS validation and Certificate Manager Exportable Managed Certificates.
5209 5210 5211 5212 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5209 def (params = {}, = {}) req = build_request(:update_certificate_options, params) req.send_request() end |
#update_member_certificate_authority(params = {}) ⇒ Struct
Updates the status or the revocation configuration of a private certificate authority (CA) in a member account of the caller's organization. AWS Private Certificate Authority (AWS Private CA) applies the rules of its UpdateCertificateAuthority operation, including which status changes and revocation settings it accepts. For details, see UpdateCertificateAuthority in the AWS Private CA API Reference.
A parameter you omit is not sent to AWS Private CA, so that setting is unchanged. AWS Private CA writes CRLs to the Amazon S3 bucket named by S3BucketName in its own CrlConfiguration, which you set with AWS Private CA in the member account.
The caller must be the organization's management account or its delegated administrator. The operation acts in the member account and Region that the certificate authority ARN names. It returns AccessDeniedException in these cases, and, except where noted, the message names the unmet condition:
- The caller's account is not in an organization, or the organization is not active in AWS Certificate Manager.
- The caller is neither the management account nor the delegated administrator.
- The certificate authority is in the caller's own account. Call the AWS Private CA operation in that account instead.
- The organization has no certificate inventory configuration.
- Certificate actions for organizations are turned off. Certificate actions are the operations that act on certificates and certificate authorities in member accounts. Turn them on with LifecycleManagement in PutInventoryConfiguration.
- The certificate authority's Region is outside the RegionalScope of the configuration.
- The certificate authority's account is not an active member of the organization, or is outside the AccountScope of the configuration.
- The Regions enabled for the certificate authority's account are not recorded yet.
- AWS Certificate Manager is not authorized to act in the certificate authority's account, because the account is not in the organization or access setup there has not finished.
If member operations are not available in the Region you call, the operation returns AccessDeniedException with the message Unauthorized, before any of the checks above. An ARN that is malformed, does not name an AWS Private CA certificate authority, is in another partition, or names an unknown Region also returns AccessDeniedException with the message Unauthorized. A call outside the organization's home Region returns ResourceNotFoundException, and the message names the home Region. A certificate authority ARN whose Region is not enabled for its account, or where AWS Private CA is not available, returns ValidationException. A certificate authority ARN that is too long for the operation to act on, even within the length limit of CertificateAuthorityArn, also returns ValidationException.
Errors that AWS Private CA returns in the member account are returned as these errors:
- ResourceNotFoundException: AWS Private CA did not find the certificate authority.
- ConflictException: AWS Private CA reports a conflict, such as a certificate authority state that does not allow the change.
- ValidationException: AWS Private CA rejects the request, or reports that a quota is reached.
- ThrottlingException: AWS Private CA throttles the call.
Any other error returns InternalServerException.
5350 5351 5352 5353 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5350 def (params = {}, = {}) req = build_request(:update_member_certificate_authority, params) req.send_request() end |
#update_member_certificate_options(params = {}) ⇒ Struct
Updates the options of an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization. ACM applies the rules of its UpdateCertificateOptions operation, including which options can change after a certificate is created. For details, see UpdateCertificateOptions in the AWS Certificate Manager API Reference.
An option you omit is not sent to ACM, so it is unchanged. A request that sets neither Export nor ValidationMethod returns ValidationException.
The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see RenewMemberCertificate.
5421 5422 5423 5424 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5421 def (params = {}, = {}) req = build_request(:update_member_certificate_options, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| acme_domain_validation_deleted | #describe_acme_domain_validation | 5 | 60 |
| acme_domain_validation_validated | #describe_acme_domain_validation | 5 | 60 |
| acme_endpoint_active | #describe_acme_endpoint | 5 | 60 |
| acme_endpoint_deleted | #describe_acme_endpoint | 5 | 60 |
| certificate_validated | #describe_certificate | 60 | 5 |
5540 5541 5542 5543 5544 |
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/client.rb', line 5540 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |