lib/aws-sdk-acm/client.rb in aws-sdk-acm-1.39.0 vs lib/aws-sdk-acm/client.rb in aws-sdk-acm-1.40.0
- old
+ new
@@ -365,12 +365,12 @@
# String that contains the ARN of the ACM certificate to which the tag
# is to be applied. This must be of the form:
#
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
#
- # For more information about ARNs, see [Amazon Resource Names (ARNs) and
- # AWS Service Namespaces][1].
+ # For more information about ARNs, see [Amazon Resource Names
+ # (ARNs)][1].
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
#
@@ -416,12 +416,12 @@
# String that contains the ARN of the ACM certificate to be deleted.
# This must be of the form:
#
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
#
- # For more information about ARNs, see [Amazon Resource Names (ARNs) and
- # AWS Service Namespaces][1].
+ # For more information about ARNs, see [Amazon Resource Names
+ # (ARNs)][1].
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
#
@@ -448,12 +448,12 @@
# The Amazon Resource Name (ARN) of the ACM certificate. The ARN must
# have the following form:
#
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
#
- # For more information about ARNs, see [Amazon Resource Names (ARNs) and
- # AWS Service Namespaces][1].
+ # For more information about ARNs, see [Amazon Resource Names
+ # (ARNs)][1].
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
#
@@ -590,10 +590,30 @@
def export_certificate(params = {}, options = {})
req = build_request(:export_certificate, params)
req.send_request(options)
end
+ # Returns the account configuration options associated with an AWS
+ # account.
+ #
+ # @return [Types::GetAccountConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetAccountConfigurationResponse#expiry_events #expiry_events} => Types::ExpiryEventsConfiguration
+ #
+ # @example Response structure
+ #
+ # resp.expiry_events.days_before_expiry #=> Integer
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration AWS API Documentation
+ #
+ # @overload get_account_configuration(params = {})
+ # @param [Hash] params ({})
+ def get_account_configuration(params = {}, options = {})
+ req = build_request(:get_account_configuration, params)
+ req.send_request(options)
+ end
+
# Retrieves an Amazon-issued certificate and its certificate chain. 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][1] to decode
# the certificates and inspect individual fields.
@@ -605,12 +625,12 @@
# @option params [required, String] :certificate_arn
# String that contains a certificate ARN in the following format:
#
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
#
- # For more information about ARNs, see [Amazon Resource Names (ARNs) and
- # AWS Service Namespaces][1].
+ # For more information about ARNs, see [Amazon Resource Names
+ # (ARNs)][1].
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
#
@@ -659,10 +679,12 @@
# 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).
+ #
# * If the certificate you are importing is not self-signed, you must
# enter its certificate chain.
#
# * If a certificate chain is included, the issuer must be the subject
# of one of the certificates in the chain.
@@ -677,17 +699,17 @@
#
# * The OCSP authority URL, if present, must not exceed 1000 characters.
#
# * To import a new certificate, omit the `CertificateArn` argument.
# Include this argument only when you want to replace a previously
- # imported certifica
+ # imported certificate.
#
# * When you import a certificate by using the CLI, you must specify the
# certificate, the certificate chain, and the private key by their
- # file names preceded by `file://`. For example, you can specify a
+ # file names preceded by `fileb://`. For example, you can specify a
# certificate saved in the `C:\temp` folder as
- # `file://C:\temp\certificate_to_import.pem`. If you are making an
+ # `fileb://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.
@@ -831,12 +853,12 @@
# String that contains the ARN of the ACM certificate for which you want
# to list the tags. This must have the following form:
#
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
#
- # For more information about ARNs, see [Amazon Resource Names (ARNs) and
- # AWS Service Namespaces][1].
+ # For more information about ARNs, see [Amazon Resource Names
+ # (ARNs)][1].
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
#
@@ -863,10 +885,49 @@
def list_tags_for_certificate(params = {}, options = {})
req = build_request(:list_tags_for_certificate, params)
req.send_request(options)
end
+ # 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.
+ #
+ # @option params [Types::ExpiryEventsConfiguration] :expiry_events
+ # Specifies expiration events associated with an account.
+ #
+ # @option params [required, String] :idempotency_token
+ # Customer-chosen string used to distinguish between calls to
+ # `PutAccountConfiguration`. Idempotency tokens time out after one hour.
+ # If you call `PutAccountConfiguration` multiple times with the same
+ # unexpired idempotency token, ACM treats it as the same request and
+ # returns the original result. If you change the idempotency token for
+ # each call, ACM treats each call as a new request.
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.put_account_configuration({
+ # expiry_events: {
+ # days_before_expiry: 1,
+ # },
+ # idempotency_token: "IdempotencyToken", # required
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration AWS API Documentation
+ #
+ # @overload put_account_configuration(params = {})
+ # @param [Hash] params ({})
+ def put_account_configuration(params = {}, options = {})
+ req = build_request(:put_account_configuration, params)
+ req.send_request(options)
+ end
+
# 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.
@@ -879,12 +940,12 @@
# String that contains the ARN of the ACM Certificate with one or more
# tags that you want to remove. This must be of the form:
#
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
#
- # For more information about ARNs, see [Amazon Resource Names (ARNs) and
- # AWS Service Namespaces][1].
+ # For more information about ARNs, see [Amazon Resource Names
+ # (ARNs)][1].
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
#
@@ -912,11 +973,11 @@
def remove_tags_from_certificate(params = {}, options = {})
req = build_request(:remove_tags_from_certificate, params)
req.send_request(options)
end
- # Renews an eligable ACM certificate. At this time, only exported
+ # Renews an eligible ACM certificate. At this time, only exported
# private certificates can be renewed with this operation. In order to
# renew your ACM PCA certificates with ACM, you must first [grant the
# ACM service principal permission to do so][1]. For more information,
# see [Testing Managed Renewal][2] in the ACM User Guide.
#
@@ -929,12 +990,12 @@
# String that contains the ARN of the ACM certificate to be renewed.
# This must be of the form:
#
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
#
- # For more information about ARNs, see [Amazon Resource Names (ARNs) and
- # AWS Service Namespaces][1].
+ # For more information about ARNs, see [Amazon Resource Names
+ # (ARNs)][1].
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
#
@@ -1231,10 +1292,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-acm'
- context[:gem_version] = '1.39.0'
+ context[:gem_version] = '1.40.0'
Seahorse::Client::Request.new(handlers, context)
end
# Polls an API operation until a resource enters a desired state.
#