aws-sdk-acm 1.26.0 → 1.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-acm.rb +7 -4
- data/lib/aws-sdk-acm/client.rb +132 -39
- data/lib/aws-sdk-acm/client_api.rb +22 -0
- data/lib/aws-sdk-acm/errors.rb +62 -8
- data/lib/aws-sdk-acm/resource.rb +1 -0
- data/lib/aws-sdk-acm/types.rb +74 -11
- data/lib/aws-sdk-acm/waiters.rb +61 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 475f89f1b601b8d7a9843e9a9a4e5387363df3f7a54e40394cc9ec72fe833914
|
4
|
+
data.tar.gz: 66c928ba717346046d42269e051d4fed2f5a20e91a446dea9b6ab223c425edde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73716fc67b4bc311998c912e73db074f0b01626b5761ee05571f74baf92bd881e566b088699057454abab020e44396a16d96b7a68e976ce33c37eb0ee95a2774
|
7
|
+
data.tar.gz: 931adb2754e328e53afa81ea091b0a6f900f8699af5aad1345b2cac26a6e5a07c3415df248bf72a6e41c8199c3f434579ac3afa51676aa5d881d6fbac7294f7c
|
data/lib/aws-sdk-acm.rb
CHANGED
@@ -25,17 +25,20 @@ require_relative 'aws-sdk-acm/customizations'
|
|
25
25
|
# methods each accept a hash of request parameters and return a response
|
26
26
|
# structure.
|
27
27
|
#
|
28
|
+
# acm = Aws::ACM::Client.new
|
29
|
+
# resp = acm.add_tags_to_certificate(params)
|
30
|
+
#
|
28
31
|
# See {Client} for more information.
|
29
32
|
#
|
30
33
|
# # Errors
|
31
34
|
#
|
32
|
-
# Errors returned from AWS Certificate Manager
|
33
|
-
# extend {Errors::ServiceError}.
|
35
|
+
# Errors returned from AWS Certificate Manager are defined in the
|
36
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
34
37
|
#
|
35
38
|
# begin
|
36
39
|
# # do stuff
|
37
40
|
# rescue Aws::ACM::Errors::ServiceError
|
38
|
-
# # rescues all
|
41
|
+
# # rescues all AWS Certificate Manager API errors
|
39
42
|
# end
|
40
43
|
#
|
41
44
|
# See {Errors} for more information.
|
@@ -43,6 +46,6 @@ require_relative 'aws-sdk-acm/customizations'
|
|
43
46
|
# @service
|
44
47
|
module Aws::ACM
|
45
48
|
|
46
|
-
GEM_VERSION = '1.
|
49
|
+
GEM_VERSION = '1.31.0'
|
47
50
|
|
48
51
|
end
|
data/lib/aws-sdk-acm/client.rb
CHANGED
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:acm)
|
31
31
|
|
32
32
|
module Aws::ACM
|
33
|
+
# An API client for ACM. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::ACM::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -93,7 +105,7 @@ module Aws::ACM
|
|
93
105
|
# @option options [required, String] :region
|
94
106
|
# The AWS region to connect to. The configured `:region` is
|
95
107
|
# used to determine the service `:endpoint`. When not passed,
|
96
|
-
# a default `:region` is
|
108
|
+
# a default `:region` is searched for in the following locations:
|
97
109
|
#
|
98
110
|
# * `Aws.config[:region]`
|
99
111
|
# * `ENV['AWS_REGION']`
|
@@ -108,6 +120,12 @@ module Aws::ACM
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::ACM
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -139,7 +161,7 @@ module Aws::ACM
|
|
139
161
|
# @option options [String] :endpoint
|
140
162
|
# The client endpoint is normally constructed from the `:region`
|
141
163
|
# option. You should only configure an `:endpoint` when connecting
|
142
|
-
# to test endpoints. This should be
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
143
165
|
#
|
144
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -154,7 +176,7 @@ module Aws::ACM
|
|
154
176
|
# requests fetching endpoints information. Defaults to 60 sec.
|
155
177
|
#
|
156
178
|
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
179
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
158
180
|
#
|
159
181
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
182
|
# The log formatter.
|
@@ -166,15 +188,29 @@ module Aws::ACM
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,30 @@ module Aws::ACM
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
190
245
|
#
|
191
246
|
# @option options [String] :secret_access_key
|
192
247
|
#
|
@@ -219,16 +274,15 @@ module Aws::ACM
|
|
219
274
|
# requests through. Formatted like 'http://proxy.com:123'.
|
220
275
|
#
|
221
276
|
# @option options [Float] :http_open_timeout (15) The number of
|
222
|
-
# seconds to wait when opening a HTTP session before
|
277
|
+
# seconds to wait when opening a HTTP session before raising a
|
223
278
|
# `Timeout::Error`.
|
224
279
|
#
|
225
280
|
# @option options [Integer] :http_read_timeout (60) The default
|
226
281
|
# number of seconds to wait for response data. This value can
|
227
|
-
# safely be set
|
228
|
-
# per-request on the session yeidled by {#session_for}.
|
282
|
+
# safely be set per-request on the session.
|
229
283
|
#
|
230
284
|
# @option options [Float] :http_idle_timeout (5) The number of
|
231
|
-
# seconds a connection is allowed to sit
|
285
|
+
# seconds a connection is allowed to sit idle before it is
|
232
286
|
# considered stale. Stale connections are closed and removed
|
233
287
|
# from the pool before making a request.
|
234
288
|
#
|
@@ -237,7 +291,7 @@ module Aws::ACM
|
|
237
291
|
# request body. This option has no effect unless the request has
|
238
292
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
239
293
|
# disables this behaviour. This value can safely be set per
|
240
|
-
# request on the session
|
294
|
+
# request on the session.
|
241
295
|
#
|
242
296
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
243
297
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -425,7 +479,7 @@ module Aws::ACM
|
|
425
479
|
# resp.certificate.signature_algorithm #=> String
|
426
480
|
# resp.certificate.in_use_by #=> Array
|
427
481
|
# resp.certificate.in_use_by[0] #=> String
|
428
|
-
# resp.certificate.failure_reason #=> String, one of "NO_AVAILABLE_CONTACTS", "ADDITIONAL_VERIFICATION_REQUIRED", "DOMAIN_NOT_ALLOWED", "INVALID_PUBLIC_DOMAIN", "DOMAIN_VALIDATION_DENIED", "CAA_ERROR", "PCA_LIMIT_EXCEEDED", "PCA_INVALID_ARN", "PCA_INVALID_STATE", "PCA_REQUEST_FAILED", "PCA_RESOURCE_NOT_FOUND", "PCA_INVALID_ARGS", "PCA_INVALID_DURATION", "PCA_ACCESS_DENIED", "OTHER"
|
482
|
+
# resp.certificate.failure_reason #=> String, one of "NO_AVAILABLE_CONTACTS", "ADDITIONAL_VERIFICATION_REQUIRED", "DOMAIN_NOT_ALLOWED", "INVALID_PUBLIC_DOMAIN", "DOMAIN_VALIDATION_DENIED", "CAA_ERROR", "PCA_LIMIT_EXCEEDED", "PCA_INVALID_ARN", "PCA_INVALID_STATE", "PCA_REQUEST_FAILED", "PCA_NAME_CONSTRAINTS_VALIDATION", "PCA_RESOURCE_NOT_FOUND", "PCA_INVALID_ARGS", "PCA_INVALID_DURATION", "PCA_ACCESS_DENIED", "OTHER"
|
429
483
|
# resp.certificate.type #=> String, one of "IMPORTED", "AMAZON_ISSUED", "PRIVATE"
|
430
484
|
# resp.certificate.renewal_summary.renewal_status #=> String, one of "PENDING_AUTO_RENEWAL", "PENDING_VALIDATION", "SUCCESS", "FAILED"
|
431
485
|
# resp.certificate.renewal_summary.domain_validation_options #=> Array
|
@@ -438,7 +492,7 @@ module Aws::ACM
|
|
438
492
|
# resp.certificate.renewal_summary.domain_validation_options[0].resource_record.type #=> String, one of "CNAME"
|
439
493
|
# resp.certificate.renewal_summary.domain_validation_options[0].resource_record.value #=> String
|
440
494
|
# resp.certificate.renewal_summary.domain_validation_options[0].validation_method #=> String, one of "EMAIL", "DNS"
|
441
|
-
# resp.certificate.renewal_summary.renewal_status_reason #=> String, one of "NO_AVAILABLE_CONTACTS", "ADDITIONAL_VERIFICATION_REQUIRED", "DOMAIN_NOT_ALLOWED", "INVALID_PUBLIC_DOMAIN", "DOMAIN_VALIDATION_DENIED", "CAA_ERROR", "PCA_LIMIT_EXCEEDED", "PCA_INVALID_ARN", "PCA_INVALID_STATE", "PCA_REQUEST_FAILED", "PCA_RESOURCE_NOT_FOUND", "PCA_INVALID_ARGS", "PCA_INVALID_DURATION", "PCA_ACCESS_DENIED", "OTHER"
|
495
|
+
# resp.certificate.renewal_summary.renewal_status_reason #=> String, one of "NO_AVAILABLE_CONTACTS", "ADDITIONAL_VERIFICATION_REQUIRED", "DOMAIN_NOT_ALLOWED", "INVALID_PUBLIC_DOMAIN", "DOMAIN_VALIDATION_DENIED", "CAA_ERROR", "PCA_LIMIT_EXCEEDED", "PCA_INVALID_ARN", "PCA_INVALID_STATE", "PCA_REQUEST_FAILED", "PCA_NAME_CONSTRAINTS_VALIDATION", "PCA_RESOURCE_NOT_FOUND", "PCA_INVALID_ARGS", "PCA_INVALID_DURATION", "PCA_ACCESS_DENIED", "OTHER"
|
442
496
|
# resp.certificate.renewal_summary.updated_at #=> Time
|
443
497
|
# resp.certificate.key_usages #=> Array
|
444
498
|
# resp.certificate.key_usages[0].name #=> String, one of "DIGITAL_SIGNATURE", "NON_REPUDIATION", "KEY_ENCIPHERMENT", "DATA_ENCIPHERMENT", "KEY_AGREEMENT", "CERTIFICATE_SIGNING", "CRL_SIGNING", "ENCIPHER_ONLY", "DECIPHER_ONLY", "ANY", "CUSTOM"
|
@@ -449,6 +503,11 @@ module Aws::ACM
|
|
449
503
|
# resp.certificate.renewal_eligibility #=> String, one of "ELIGIBLE", "INELIGIBLE"
|
450
504
|
# resp.certificate.options.certificate_transparency_logging_preference #=> String, one of "ENABLED", "DISABLED"
|
451
505
|
#
|
506
|
+
#
|
507
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
508
|
+
#
|
509
|
+
# * certificate_validated
|
510
|
+
#
|
452
511
|
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate AWS API Documentation
|
453
512
|
#
|
454
513
|
# @overload describe_certificate(params = {})
|
@@ -459,15 +518,18 @@ module Aws::ACM
|
|
459
518
|
end
|
460
519
|
|
461
520
|
# Exports a private certificate issued by a private certificate
|
462
|
-
# authority (CA) for use anywhere.
|
463
|
-
# certificate chain, and the encrypted private
|
464
|
-
#
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
521
|
+
# authority (CA) for use anywhere. The exported file contains the
|
522
|
+
# certificate, the certificate chain, and the encrypted private 2048-bit
|
523
|
+
# RSA key associated with the public key that is embedded in the
|
524
|
+
# certificate. For security, you must assign a passphrase for the
|
525
|
+
# private key when exporting it.
|
526
|
+
#
|
527
|
+
# For information about exporting and formatting a certificate using the
|
528
|
+
# ACM console or CLI, see [Export a Private Certificate][1].
|
469
529
|
#
|
470
|
-
#
|
530
|
+
#
|
531
|
+
#
|
532
|
+
# [1]: https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html
|
471
533
|
#
|
472
534
|
# @option params [required, String] :certificate_arn
|
473
535
|
# An Amazon Resource Name (ARN) of the issued certificate. This must be
|
@@ -511,12 +573,15 @@ module Aws::ACM
|
|
511
573
|
req.send_request(options)
|
512
574
|
end
|
513
575
|
|
514
|
-
# Retrieves
|
515
|
-
#
|
516
|
-
#
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
576
|
+
# Retrieves an Amazon-issued certificate and its certificate chain. The
|
577
|
+
# chain consists of the certificate of the issuing CA and the
|
578
|
+
# intermediate certificates of any other subordinate CAs. All of the
|
579
|
+
# certificates are base64 encoded. You can use [OpenSSL][1] to decode
|
580
|
+
# the certificates and inspect individual fields.
|
581
|
+
#
|
582
|
+
#
|
583
|
+
#
|
584
|
+
# [1]: https://wiki.openssl.org/index.php/Command_Line_Utilities
|
520
585
|
#
|
521
586
|
# @option params [required, String] :certificate_arn
|
522
587
|
# String that contains a certificate ARN in the following format:
|
@@ -595,7 +660,7 @@ module Aws::ACM
|
|
595
660
|
#
|
596
661
|
# * To import a new certificate, omit the `CertificateArn` argument.
|
597
662
|
# Include this argument only when you want to replace a previously
|
598
|
-
# imported
|
663
|
+
# imported certifica
|
599
664
|
#
|
600
665
|
# * When you import a certificate by using the CLI, you must specify the
|
601
666
|
# certificate, the certificate chain, and the private key by their
|
@@ -608,6 +673,10 @@ module Aws::ACM
|
|
608
673
|
# certificate, the certificate chain, and the private key files in the
|
609
674
|
# manner required by the programming language you're using.
|
610
675
|
#
|
676
|
+
# * The cryptographic algorithm of an imported certificate must match
|
677
|
+
# the algorithm of the signing CA. For example, if the signing CA key
|
678
|
+
# type is RSA, then the certificate key type must also be RSA.
|
679
|
+
#
|
611
680
|
# This operation returns the [Amazon Resource Name (ARN)][4] of the
|
612
681
|
# imported certificate.
|
613
682
|
#
|
@@ -635,6 +704,11 @@ module Aws::ACM
|
|
635
704
|
# @option params [String, IO] :certificate_chain
|
636
705
|
# The PEM encoded certificate chain.
|
637
706
|
#
|
707
|
+
# @option params [Array<Types::Tag>] :tags
|
708
|
+
# One or more resource tags to associate with the imported certificate.
|
709
|
+
#
|
710
|
+
# Note: You cannot apply tags when reimporting a certificate.
|
711
|
+
#
|
638
712
|
# @return [Types::ImportCertificateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
639
713
|
#
|
640
714
|
# * {Types::ImportCertificateResponse#certificate_arn #certificate_arn} => String
|
@@ -646,6 +720,12 @@ module Aws::ACM
|
|
646
720
|
# certificate: "data", # required
|
647
721
|
# private_key: "data", # required
|
648
722
|
# certificate_chain: "data",
|
723
|
+
# tags: [
|
724
|
+
# {
|
725
|
+
# key: "TagKey", # required
|
726
|
+
# value: "TagValue",
|
727
|
+
# },
|
728
|
+
# ],
|
649
729
|
# })
|
650
730
|
#
|
651
731
|
# @example Response structure
|
@@ -663,7 +743,9 @@ module Aws::ACM
|
|
663
743
|
|
664
744
|
# Retrieves a list of certificate ARNs and domain names. You can request
|
665
745
|
# that only certificates that match a specific status be listed. You can
|
666
|
-
# also filter by specific attributes of the certificate.
|
746
|
+
# also filter by specific attributes of the certificate. Default
|
747
|
+
# filtering returns only `RSA_2048` certificates. For more information,
|
748
|
+
# see Filters.
|
667
749
|
#
|
668
750
|
# @option params [Array<String>] :certificate_statuses
|
669
751
|
# Filter the certificate list by status value.
|
@@ -690,6 +772,8 @@ module Aws::ACM
|
|
690
772
|
# * {Types::ListCertificatesResponse#next_token #next_token} => String
|
691
773
|
# * {Types::ListCertificatesResponse#certificate_summary_list #certificate_summary_list} => Array<Types::CertificateSummary>
|
692
774
|
#
|
775
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
776
|
+
#
|
693
777
|
# @example Request syntax with placeholder values
|
694
778
|
#
|
695
779
|
# resp = client.list_certificates({
|
@@ -876,7 +960,7 @@ module Aws::ACM
|
|
876
960
|
# For example, *.example.com protects www.example.com,
|
877
961
|
# site.example.com, and images.example.com.
|
878
962
|
#
|
879
|
-
# The first domain name you enter cannot exceed
|
963
|
+
# The first domain name you enter cannot exceed 64 octets, including
|
880
964
|
# periods. Each subsequent Subject Alternative Name (SAN), however, can
|
881
965
|
# be up to 253 octets in length.
|
882
966
|
#
|
@@ -897,9 +981,9 @@ module Aws::ACM
|
|
897
981
|
# www.example.net to a certificate for which the `DomainName` field is
|
898
982
|
# www.example.com if users can reach your site by using either name. The
|
899
983
|
# maximum number of domain names that you can add to an ACM certificate
|
900
|
-
# is 100. However, the initial
|
901
|
-
# more than 10 names, you must request a
|
902
|
-
# information, see [
|
984
|
+
# is 100. However, the initial quota is 10 domain names. If you need
|
985
|
+
# more than 10 names, you must request a quota increase. For more
|
986
|
+
# information, see [Quotas][1].
|
903
987
|
#
|
904
988
|
# The maximum length of a SAN DNS name is 253 octets. The name is made
|
905
989
|
# up of multiple labels separated by periods. No label can be longer
|
@@ -960,6 +1044,9 @@ module Aws::ACM
|
|
960
1044
|
#
|
961
1045
|
# [1]: https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaWelcome.html
|
962
1046
|
#
|
1047
|
+
# @option params [Array<Types::Tag>] :tags
|
1048
|
+
# One or more resource tags to associate with the certificate.
|
1049
|
+
#
|
963
1050
|
# @return [Types::RequestCertificateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
964
1051
|
#
|
965
1052
|
# * {Types::RequestCertificateResponse#certificate_arn #certificate_arn} => String
|
@@ -981,6 +1068,12 @@ module Aws::ACM
|
|
981
1068
|
# certificate_transparency_logging_preference: "ENABLED", # accepts ENABLED, DISABLED
|
982
1069
|
# },
|
983
1070
|
# certificate_authority_arn: "Arn",
|
1071
|
+
# tags: [
|
1072
|
+
# {
|
1073
|
+
# key: "TagKey", # required
|
1074
|
+
# value: "TagValue",
|
1075
|
+
# },
|
1076
|
+
# ],
|
984
1077
|
# })
|
985
1078
|
#
|
986
1079
|
# @example Response structure
|
@@ -1121,7 +1214,7 @@ module Aws::ACM
|
|
1121
1214
|
params: params,
|
1122
1215
|
config: config)
|
1123
1216
|
context[:gem_name] = 'aws-sdk-acm'
|
1124
|
-
context[:gem_version] = '1.
|
1217
|
+
context[:gem_version] = '1.31.0'
|
1125
1218
|
Seahorse::Client::Request.new(handlers, context)
|
1126
1219
|
end
|
1127
1220
|
|
@@ -1187,9 +1280,9 @@ module Aws::ACM
|
|
1187
1280
|
# The following table lists the valid waiter names, the operations they call,
|
1188
1281
|
# and the default `:delay` and `:max_attempts` values.
|
1189
1282
|
#
|
1190
|
-
# | waiter_name | params
|
1191
|
-
# | --------------------- |
|
1192
|
-
# | certificate_validated | {#describe_certificate} | 60 | 40 |
|
1283
|
+
# | waiter_name | params | :delay | :max_attempts |
|
1284
|
+
# | --------------------- | ----------------------------- | -------- | ------------- |
|
1285
|
+
# | certificate_validated | {Client#describe_certificate} | 60 | 40 |
|
1193
1286
|
#
|
1194
1287
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
1195
1288
|
# because the waiter has entered a state that it will not transition
|
@@ -52,6 +52,7 @@ module Aws::ACM
|
|
52
52
|
InvalidArgsException = Shapes::StructureShape.new(name: 'InvalidArgsException')
|
53
53
|
InvalidArnException = Shapes::StructureShape.new(name: 'InvalidArnException')
|
54
54
|
InvalidDomainValidationOptionsException = Shapes::StructureShape.new(name: 'InvalidDomainValidationOptionsException')
|
55
|
+
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
55
56
|
InvalidStateException = Shapes::StructureShape.new(name: 'InvalidStateException')
|
56
57
|
InvalidTagException = Shapes::StructureShape.new(name: 'InvalidTagException')
|
57
58
|
KeyAlgorithm = Shapes::StringShape.new(name: 'KeyAlgorithm')
|
@@ -89,6 +90,7 @@ module Aws::ACM
|
|
89
90
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
90
91
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
91
92
|
TagList = Shapes::ListShape.new(name: 'TagList')
|
93
|
+
TagPolicyException = Shapes::StructureShape.new(name: 'TagPolicyException')
|
92
94
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
93
95
|
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
94
96
|
UpdateCertificateOptionsRequest = Shapes::StructureShape.new(name: 'UpdateCertificateOptionsRequest')
|
@@ -198,6 +200,7 @@ module Aws::ACM
|
|
198
200
|
ImportCertificateRequest.add_member(:certificate, Shapes::ShapeRef.new(shape: CertificateBodyBlob, required: true, location_name: "Certificate"))
|
199
201
|
ImportCertificateRequest.add_member(:private_key, Shapes::ShapeRef.new(shape: PrivateKeyBlob, required: true, location_name: "PrivateKey"))
|
200
202
|
ImportCertificateRequest.add_member(:certificate_chain, Shapes::ShapeRef.new(shape: CertificateChainBlob, location_name: "CertificateChain"))
|
203
|
+
ImportCertificateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
201
204
|
ImportCertificateRequest.struct_class = Types::ImportCertificateRequest
|
202
205
|
|
203
206
|
ImportCertificateResponse.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateArn"))
|
@@ -214,6 +217,9 @@ module Aws::ACM
|
|
214
217
|
InvalidDomainValidationOptionsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
215
218
|
InvalidDomainValidationOptionsException.struct_class = Types::InvalidDomainValidationOptionsException
|
216
219
|
|
220
|
+
InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
221
|
+
InvalidParameterException.struct_class = Types::InvalidParameterException
|
222
|
+
|
217
223
|
InvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
218
224
|
InvalidStateException.struct_class = Types::InvalidStateException
|
219
225
|
|
@@ -268,6 +274,7 @@ module Aws::ACM
|
|
268
274
|
RequestCertificateRequest.add_member(:domain_validation_options, Shapes::ShapeRef.new(shape: DomainValidationOptionList, location_name: "DomainValidationOptions"))
|
269
275
|
RequestCertificateRequest.add_member(:options, Shapes::ShapeRef.new(shape: CertificateOptions, location_name: "Options"))
|
270
276
|
RequestCertificateRequest.add_member(:certificate_authority_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateAuthorityArn"))
|
277
|
+
RequestCertificateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
271
278
|
RequestCertificateRequest.struct_class = Types::RequestCertificateRequest
|
272
279
|
|
273
280
|
RequestCertificateResponse.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateArn"))
|
@@ -298,6 +305,9 @@ module Aws::ACM
|
|
298
305
|
|
299
306
|
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
300
307
|
|
308
|
+
TagPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
309
|
+
TagPolicyException.struct_class = Types::TagPolicyException
|
310
|
+
|
301
311
|
TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
302
312
|
TooManyTagsException.struct_class = Types::TooManyTagsException
|
303
313
|
|
@@ -336,6 +346,8 @@ module Aws::ACM
|
|
336
346
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
337
347
|
o.errors << Shapes::ShapeRef.new(shape: InvalidTagException)
|
338
348
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
349
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
350
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
339
351
|
end)
|
340
352
|
|
341
353
|
api.add_operation(:delete_certificate, Seahorse::Model::Operation.new.tap do |o|
|
@@ -389,6 +401,10 @@ module Aws::ACM
|
|
389
401
|
o.output = Shapes::ShapeRef.new(shape: ImportCertificateResponse)
|
390
402
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
391
403
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
404
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagException)
|
405
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
406
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
392
408
|
end)
|
393
409
|
|
394
410
|
api.add_operation(:list_certificates, Seahorse::Model::Operation.new.tap do |o|
|
@@ -425,6 +441,8 @@ module Aws::ACM
|
|
425
441
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
426
442
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
427
443
|
o.errors << Shapes::ShapeRef.new(shape: InvalidTagException)
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
445
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
428
446
|
end)
|
429
447
|
|
430
448
|
api.add_operation(:renew_certificate, Seahorse::Model::Operation.new.tap do |o|
|
@@ -446,6 +464,10 @@ module Aws::ACM
|
|
446
464
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
447
465
|
o.errors << Shapes::ShapeRef.new(shape: InvalidDomainValidationOptionsException)
|
448
466
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
467
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagException)
|
468
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
469
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
470
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
449
471
|
end)
|
450
472
|
|
451
473
|
api.add_operation(:resend_validation_email, Seahorse::Model::Operation.new.tap do |o|
|
data/lib/aws-sdk-acm/errors.rb
CHANGED
@@ -6,6 +6,40 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::ACM
|
9
|
+
|
10
|
+
# When ACM returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::ACM::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all ACM errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::ACM::Errors::ServiceError
|
18
|
+
# # rescues all ACM API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {InvalidArgsException}
|
29
|
+
# * {InvalidArnException}
|
30
|
+
# * {InvalidDomainValidationOptionsException}
|
31
|
+
# * {InvalidParameterException}
|
32
|
+
# * {InvalidStateException}
|
33
|
+
# * {InvalidTagException}
|
34
|
+
# * {LimitExceededException}
|
35
|
+
# * {RequestInProgressException}
|
36
|
+
# * {ResourceInUseException}
|
37
|
+
# * {ResourceNotFoundException}
|
38
|
+
# * {TagPolicyException}
|
39
|
+
# * {TooManyTagsException}
|
40
|
+
#
|
41
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
42
|
+
# if they are not defined above.
|
9
43
|
module Errors
|
10
44
|
|
11
45
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +57,6 @@ module Aws::ACM
|
|
23
57
|
def message
|
24
58
|
@message || @data[:message]
|
25
59
|
end
|
26
|
-
|
27
60
|
end
|
28
61
|
|
29
62
|
class InvalidArnException < ServiceError
|
@@ -39,7 +72,6 @@ module Aws::ACM
|
|
39
72
|
def message
|
40
73
|
@message || @data[:message]
|
41
74
|
end
|
42
|
-
|
43
75
|
end
|
44
76
|
|
45
77
|
class InvalidDomainValidationOptionsException < ServiceError
|
@@ -55,7 +87,21 @@ module Aws::ACM
|
|
55
87
|
def message
|
56
88
|
@message || @data[:message]
|
57
89
|
end
|
90
|
+
end
|
91
|
+
|
92
|
+
class InvalidParameterException < ServiceError
|
58
93
|
|
94
|
+
# @param [Seahorse::Client::RequestContext] context
|
95
|
+
# @param [String] message
|
96
|
+
# @param [Aws::ACM::Types::InvalidParameterException] data
|
97
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
98
|
+
super(context, message, data)
|
99
|
+
end
|
100
|
+
|
101
|
+
# @return [String]
|
102
|
+
def message
|
103
|
+
@message || @data[:message]
|
104
|
+
end
|
59
105
|
end
|
60
106
|
|
61
107
|
class InvalidStateException < ServiceError
|
@@ -71,7 +117,6 @@ module Aws::ACM
|
|
71
117
|
def message
|
72
118
|
@message || @data[:message]
|
73
119
|
end
|
74
|
-
|
75
120
|
end
|
76
121
|
|
77
122
|
class InvalidTagException < ServiceError
|
@@ -87,7 +132,6 @@ module Aws::ACM
|
|
87
132
|
def message
|
88
133
|
@message || @data[:message]
|
89
134
|
end
|
90
|
-
|
91
135
|
end
|
92
136
|
|
93
137
|
class LimitExceededException < ServiceError
|
@@ -103,7 +147,6 @@ module Aws::ACM
|
|
103
147
|
def message
|
104
148
|
@message || @data[:message]
|
105
149
|
end
|
106
|
-
|
107
150
|
end
|
108
151
|
|
109
152
|
class RequestInProgressException < ServiceError
|
@@ -119,7 +162,6 @@ module Aws::ACM
|
|
119
162
|
def message
|
120
163
|
@message || @data[:message]
|
121
164
|
end
|
122
|
-
|
123
165
|
end
|
124
166
|
|
125
167
|
class ResourceInUseException < ServiceError
|
@@ -135,7 +177,6 @@ module Aws::ACM
|
|
135
177
|
def message
|
136
178
|
@message || @data[:message]
|
137
179
|
end
|
138
|
-
|
139
180
|
end
|
140
181
|
|
141
182
|
class ResourceNotFoundException < ServiceError
|
@@ -151,7 +192,21 @@ module Aws::ACM
|
|
151
192
|
def message
|
152
193
|
@message || @data[:message]
|
153
194
|
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class TagPolicyException < ServiceError
|
198
|
+
|
199
|
+
# @param [Seahorse::Client::RequestContext] context
|
200
|
+
# @param [String] message
|
201
|
+
# @param [Aws::ACM::Types::TagPolicyException] data
|
202
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
203
|
+
super(context, message, data)
|
204
|
+
end
|
154
205
|
|
206
|
+
# @return [String]
|
207
|
+
def message
|
208
|
+
@message || @data[:message]
|
209
|
+
end
|
155
210
|
end
|
156
211
|
|
157
212
|
class TooManyTagsException < ServiceError
|
@@ -167,7 +222,6 @@ module Aws::ACM
|
|
167
222
|
def message
|
168
223
|
@message || @data[:message]
|
169
224
|
end
|
170
|
-
|
171
225
|
end
|
172
226
|
|
173
227
|
end
|
data/lib/aws-sdk-acm/resource.rb
CHANGED
data/lib/aws-sdk-acm/types.rb
CHANGED
@@ -409,6 +409,12 @@ module Aws::ACM
|
|
409
409
|
# domain validation. For more information, see [Use DNS to Validate
|
410
410
|
# Domain Ownership][1].
|
411
411
|
#
|
412
|
+
# Note: The CNAME information that you need does not include the name
|
413
|
+
# of your domain. If you include
your domain name in the DNS database
|
414
|
+
# CNAME record, validation fails.
For example, if the name is
|
415
|
+
# "\_a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com", only
|
416
|
+
# "\_a79865eb4cd1a6ab990a45779b4e0b96" must be used.
|
417
|
+
#
|
412
418
|
#
|
413
419
|
#
|
414
420
|
# [1]: https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html
|
@@ -592,6 +598,12 @@ module Aws::ACM
|
|
592
598
|
# @!attribute [rw] key_types
|
593
599
|
# Specify one or more algorithms that can be used to generate key
|
594
600
|
# pairs.
|
601
|
+
#
|
602
|
+
# Default filtering returns only `RSA_2048` certificates. To return
|
603
|
+
# other certificate types, provide the desired type signatures in a
|
604
|
+
# comma-separated list. For example, `"keyTypes":
|
605
|
+
# ["RSA_2048,RSA_4096"]` returns both `RSA_2048` and `RSA_4096`
|
606
|
+
# certificates.
|
595
607
|
# @return [Array<String>]
|
596
608
|
#
|
597
609
|
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/Filters AWS API Documentation
|
@@ -631,13 +643,14 @@ module Aws::ACM
|
|
631
643
|
end
|
632
644
|
|
633
645
|
# @!attribute [rw] certificate
|
634
|
-
#
|
635
|
-
#
|
646
|
+
# The ACM-issued certificate corresponding to the ARN specified as
|
647
|
+
# input.
|
636
648
|
# @return [String]
|
637
649
|
#
|
638
650
|
# @!attribute [rw] certificate_chain
|
639
|
-
#
|
640
|
-
# the certificate
|
651
|
+
# Certificates forming the requested certificate's chain of trust.
|
652
|
+
# The chain consists of the certificate of the issuing CA and the
|
653
|
+
# intermediate certificates of any other subordinate CAs.
|
641
654
|
# @return [String]
|
642
655
|
#
|
643
656
|
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificateResponse AWS API Documentation
|
@@ -656,6 +669,12 @@ module Aws::ACM
|
|
656
669
|
# certificate: "data", # required
|
657
670
|
# private_key: "data", # required
|
658
671
|
# certificate_chain: "data",
|
672
|
+
# tags: [
|
673
|
+
# {
|
674
|
+
# key: "TagKey", # required
|
675
|
+
# value: "TagValue",
|
676
|
+
# },
|
677
|
+
# ],
|
659
678
|
# }
|
660
679
|
#
|
661
680
|
# @!attribute [rw] certificate_arn
|
@@ -679,13 +698,21 @@ module Aws::ACM
|
|
679
698
|
# The PEM encoded certificate chain.
|
680
699
|
# @return [String]
|
681
700
|
#
|
701
|
+
# @!attribute [rw] tags
|
702
|
+
# One or more resource tags to associate with the imported
|
703
|
+
# certificate.
|
704
|
+
#
|
705
|
+
# Note: You cannot apply tags when reimporting a certificate.
|
706
|
+
# @return [Array<Types::Tag>]
|
707
|
+
#
|
682
708
|
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificateRequest AWS API Documentation
|
683
709
|
#
|
684
710
|
class ImportCertificateRequest < Struct.new(
|
685
711
|
:certificate_arn,
|
686
712
|
:certificate,
|
687
713
|
:private_key,
|
688
|
-
:certificate_chain
|
714
|
+
:certificate_chain,
|
715
|
+
:tags)
|
689
716
|
include Aws::Structure
|
690
717
|
end
|
691
718
|
|
@@ -742,6 +769,18 @@ module Aws::ACM
|
|
742
769
|
include Aws::Structure
|
743
770
|
end
|
744
771
|
|
772
|
+
# An input parameter was invalid.
|
773
|
+
#
|
774
|
+
# @!attribute [rw] message
|
775
|
+
# @return [String]
|
776
|
+
#
|
777
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/InvalidParameterException AWS API Documentation
|
778
|
+
#
|
779
|
+
class InvalidParameterException < Struct.new(
|
780
|
+
:message)
|
781
|
+
include Aws::Structure
|
782
|
+
end
|
783
|
+
|
745
784
|
# Processing has reached an invalid state.
|
746
785
|
#
|
747
786
|
# @!attribute [rw] message
|
@@ -782,7 +821,7 @@ module Aws::ACM
|
|
782
821
|
include Aws::Structure
|
783
822
|
end
|
784
823
|
|
785
|
-
# An ACM
|
824
|
+
# An ACM quota has been exceeded.
|
786
825
|
#
|
787
826
|
# @!attribute [rw] message
|
788
827
|
# @return [String]
|
@@ -1030,6 +1069,12 @@ module Aws::ACM
|
|
1030
1069
|
# certificate_transparency_logging_preference: "ENABLED", # accepts ENABLED, DISABLED
|
1031
1070
|
# },
|
1032
1071
|
# certificate_authority_arn: "Arn",
|
1072
|
+
# tags: [
|
1073
|
+
# {
|
1074
|
+
# key: "TagKey", # required
|
1075
|
+
# value: "TagValue",
|
1076
|
+
# },
|
1077
|
+
# ],
|
1033
1078
|
# }
|
1034
1079
|
#
|
1035
1080
|
# @!attribute [rw] domain_name
|
@@ -1039,7 +1084,7 @@ module Aws::ACM
|
|
1039
1084
|
# same domain. For example, *.example.com protects www.example.com,
|
1040
1085
|
# site.example.com, and images.example.com.
|
1041
1086
|
#
|
1042
|
-
# The first domain name you enter cannot exceed
|
1087
|
+
# The first domain name you enter cannot exceed 64 octets, including
|
1043
1088
|
# periods. Each subsequent Subject Alternative Name (SAN), however,
|
1044
1089
|
# can be up to 253 octets in length.
|
1045
1090
|
# @return [String]
|
@@ -1062,9 +1107,9 @@ module Aws::ACM
|
|
1062
1107
|
# www.example.net to a certificate for which the `DomainName` field is
|
1063
1108
|
# www.example.com if users can reach your site by using either name.
|
1064
1109
|
# The maximum number of domain names that you can add to an ACM
|
1065
|
-
# certificate is 100. However, the initial
|
1066
|
-
# If you need more than 10 names, you must request a
|
1067
|
-
# For more information, see [
|
1110
|
+
# certificate is 100. However, the initial quota is 10 domain names.
|
1111
|
+
# If you need more than 10 names, you must request a quota increase.
|
1112
|
+
# For more information, see [Quotas][1].
|
1068
1113
|
#
|
1069
1114
|
# The maximum length of a SAN DNS name is 253 octets. The name is made
|
1070
1115
|
# up of multiple labels separated by periods. No label can be longer
|
@@ -1132,6 +1177,10 @@ module Aws::ACM
|
|
1132
1177
|
# [1]: https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaWelcome.html
|
1133
1178
|
# @return [String]
|
1134
1179
|
#
|
1180
|
+
# @!attribute [rw] tags
|
1181
|
+
# One or more resource tags to associate with the certificate.
|
1182
|
+
# @return [Array<Types::Tag>]
|
1183
|
+
#
|
1135
1184
|
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificateRequest AWS API Documentation
|
1136
1185
|
#
|
1137
1186
|
class RequestCertificateRequest < Struct.new(
|
@@ -1141,7 +1190,8 @@ module Aws::ACM
|
|
1141
1190
|
:idempotency_token,
|
1142
1191
|
:domain_validation_options,
|
1143
1192
|
:options,
|
1144
|
-
:certificate_authority_arn
|
1193
|
+
:certificate_authority_arn,
|
1194
|
+
:tags)
|
1145
1195
|
include Aws::Structure
|
1146
1196
|
end
|
1147
1197
|
|
@@ -1306,6 +1356,19 @@ module Aws::ACM
|
|
1306
1356
|
include Aws::Structure
|
1307
1357
|
end
|
1308
1358
|
|
1359
|
+
# A specified tag did not comply with an existing tag policy and was
|
1360
|
+
# rejected.
|
1361
|
+
#
|
1362
|
+
# @!attribute [rw] message
|
1363
|
+
# @return [String]
|
1364
|
+
#
|
1365
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/TagPolicyException AWS API Documentation
|
1366
|
+
#
|
1367
|
+
class TagPolicyException < Struct.new(
|
1368
|
+
:message)
|
1369
|
+
include Aws::Structure
|
1370
|
+
end
|
1371
|
+
|
1309
1372
|
# The request contains too many tags. Try the request again with fewer
|
1310
1373
|
# tags.
|
1311
1374
|
#
|
data/lib/aws-sdk-acm/waiters.rb
CHANGED
@@ -8,6 +8,67 @@
|
|
8
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
10
|
module Aws::ACM
|
11
|
+
# Waiters are utility methods that poll for a particular state to occur
|
12
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
13
|
+
# interval defined for the service client.
|
14
|
+
#
|
15
|
+
# For a list of operations that can be waited for and the
|
16
|
+
# client methods called for each operation, see the table below or the
|
17
|
+
# {Client#wait_until} field documentation for the {Client}.
|
18
|
+
#
|
19
|
+
# # Invoking a Waiter
|
20
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
21
|
+
# is the waiter name, which is specific to the service client and indicates
|
22
|
+
# which operation is being waited for. The second parameter is a hash of
|
23
|
+
# parameters that are passed to the client method called by the waiter,
|
24
|
+
# which varies according to the waiter name.
|
25
|
+
#
|
26
|
+
# # Wait Failures
|
27
|
+
# To catch errors in a waiter, use WaiterFailed,
|
28
|
+
# as shown in the following example.
|
29
|
+
#
|
30
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
31
|
+
# puts "failed waiting for instance running: #{error.message}
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# # Configuring a Waiter
|
35
|
+
# Each waiter has a default polling interval and a maximum number of
|
36
|
+
# attempts it will make before returning control to your program.
|
37
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
38
|
+
# in your `#wait_until` call.
|
39
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
40
|
+
#
|
41
|
+
# client.wait_until(...) do |w|
|
42
|
+
# w.max_attempts = 5
|
43
|
+
# w.delay = 5
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# To disable wait failures, set the value of either of these parameters
|
47
|
+
# to `nil`.
|
48
|
+
#
|
49
|
+
# # Extending a Waiter
|
50
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
51
|
+
# triggered before each polling attempt and before waiting.
|
52
|
+
#
|
53
|
+
# The following example implements an exponential backoff in a waiter
|
54
|
+
# by doubling the amount of time to wait on every attempt.
|
55
|
+
#
|
56
|
+
# client.wait_until(...) do |w|
|
57
|
+
# w.interval = 0 # disable normal sleep
|
58
|
+
# w.before_wait do |n, resp|
|
59
|
+
# sleep(n ** 2)
|
60
|
+
# end
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# # Available Waiters
|
64
|
+
#
|
65
|
+
# The following table lists the valid waiter names, the operations they call,
|
66
|
+
# and the default `:delay` and `:max_attempts` values.
|
67
|
+
#
|
68
|
+
# | waiter_name | params | :delay | :max_attempts |
|
69
|
+
# | --------------------- | ----------------------------- | -------- | ------------- |
|
70
|
+
# | certificate_validated | {Client#describe_certificate} | 60 | 40 |
|
71
|
+
#
|
11
72
|
module Waiters
|
12
73
|
|
13
74
|
class CertificateValidated
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-acm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.7.6.2
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: AWS SDK for Ruby - ACM
|