aws-sdk-acm 1.51.0 → 1.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 913896ae7a069734051c3ef60f44db29225f87d75fbe0c571895ab69ffd8e486
4
- data.tar.gz: a62b762978d0e1cba90b37928f374de4949464308ea96ffcd6b7e8023dcd7666
3
+ metadata.gz: d40f231cc976aae38e21848b5e67991e6ea65b358eb032d99d7b87a0b246ce65
4
+ data.tar.gz: df1771e3a3e00edf015c00c3043e3ef9810b3ad01674414868d40c3d88067657
5
5
  SHA512:
6
- metadata.gz: a6bd487e6d40855eb724c08ef8a4bdc8e99563aae3578752dc5f36871bc9ab5419657dd6f914e7a8b70ac9603691517579c6aab511783c3ba0ea8fd92540d30b
7
- data.tar.gz: 9d4f7b888cd376c94e4ec8a69b414fe95bf5b8da99e271702b6773606b22c5f672548c525164ce7073704c3042f243f722df0f8ea2aeea56d1d65252f2303aa8
6
+ metadata.gz: e0e1788365a14476e749d8a5a5df200237ccf97b1d8c9a892fb913fad5ab4a5ae6c521c64fc939a46a8218c65e67ccdc98742cc40a7760819ba30746e38e2cc1
7
+ data.tar.gz: c27445af49d323b48952579b1db87a2bd5f4f10c791d1a2531228e40cde7c01bb6a2d87426fa2ffa46ba7dd0868befd0416a64eeb793e21e100b4cda5f0b4df9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.53.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.52.0 (2022-09-29)
10
+ ------------------
11
+
12
+ * Feature - This update returns additional certificate details such as certificate SANs and allows sorting in the ListCertificates API.
13
+
4
14
  1.51.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.53.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:acm)
@@ -79,8 +79,9 @@ module Aws::ACM
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::ACM::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::ACM
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::ACM
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::ACM::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ACM::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -468,6 +485,10 @@ module Aws::ACM
468
485
 
469
486
  # Returns detailed metadata about the specified ACM certificate.
470
487
  #
488
+ # If you have just created a certificate using the `RequestCertificate`
489
+ # action, there is a delay of several seconds before you can retrieve
490
+ # information about it.
491
+ #
471
492
  # @option params [required, String] :certificate_arn
472
493
  # The Amazon Resource Name (ARN) of the ACM certificate. The ARN must
473
494
  # have the following form:
@@ -581,10 +602,17 @@ module Aws::ACM
581
602
  # `arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012`
582
603
  #
583
604
  # @option params [required, String, StringIO, File] :passphrase
584
- # Passphrase to associate with the encrypted exported private key. If
585
- # you want to later decrypt the private key, you must have the
605
+ # Passphrase to associate with the encrypted exported private key.
606
+ #
607
+ # <note markdown="1"> When creating your passphrase, you can use any ASCII character except
608
+ # #, $, or %.
609
+ #
610
+ # </note>
611
+ #
612
+ # If you want to later decrypt the private key, you must have the
586
613
  # passphrase. You can use the following OpenSSL command to decrypt a
587
- # private key:
614
+ # private key. After entering the command, you are prompted for the
615
+ # passphrase.
588
616
  #
589
617
  # `openssl rsa -in encrypted_key.pem -out decrypted_key.pem`
590
618
  #
@@ -683,15 +711,14 @@ module Aws::ACM
683
711
  req.send_request(options)
684
712
  end
685
713
 
686
- # Imports a certificate into Amazon Web Services Certificate Manager
687
- # (ACM) to use with services that are integrated with ACM. Note that
688
- # [integrated services][1] allow only certificate types and keys they
689
- # support to be associated with their resources. Further, their support
690
- # differs depending on whether the certificate is imported into IAM or
691
- # into ACM. For more information, see the documentation for each
692
- # service. For more information about importing certificates into ACM,
693
- # see [Importing Certificates][2] in the *Amazon Web Services
694
- # Certificate Manager User Guide*.
714
+ # Imports a certificate into Certificate Manager (ACM) to use with
715
+ # services that are integrated with ACM. Note that [integrated
716
+ # services][1] allow only certificate types and keys they support to be
717
+ # associated with their resources. Further, their support differs
718
+ # depending on whether the certificate is imported into IAM or into ACM.
719
+ # For more information, see the documentation for each service. For more
720
+ # information about importing certificates into ACM, see [Importing
721
+ # Certificates][2] in the *Certificate Manager User Guide*.
695
722
  #
696
723
  # <note markdown="1"> ACM does not provide [managed renewal][3] for certificates that you
697
724
  # import.
@@ -833,6 +860,14 @@ module Aws::ACM
833
860
  # response. Use this `NextToken` value in a subsequent request to
834
861
  # retrieve additional items.
835
862
  #
863
+ # @option params [String] :sort_by
864
+ # Specifies the field to sort results by. If you specify `SortBy`, you
865
+ # must also specify `SortOrder`.
866
+ #
867
+ # @option params [String] :sort_order
868
+ # Specifies the order of sorted results. If you specify `SortOrder`, you
869
+ # must also specify `SortBy`.
870
+ #
836
871
  # @return [Types::ListCertificatesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
837
872
  #
838
873
  # * {Types::ListCertificatesResponse#next_token #next_token} => String
@@ -851,6 +886,8 @@ module Aws::ACM
851
886
  # },
852
887
  # next_token: "NextToken",
853
888
  # max_items: 1,
889
+ # sort_by: "CREATED_AT", # accepts CREATED_AT
890
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
854
891
  # })
855
892
  #
856
893
  # @example Response structure
@@ -859,6 +896,25 @@ module Aws::ACM
859
896
  # resp.certificate_summary_list #=> Array
860
897
  # resp.certificate_summary_list[0].certificate_arn #=> String
861
898
  # resp.certificate_summary_list[0].domain_name #=> String
899
+ # resp.certificate_summary_list[0].subject_alternative_name_summaries #=> Array
900
+ # resp.certificate_summary_list[0].subject_alternative_name_summaries[0] #=> String
901
+ # resp.certificate_summary_list[0].has_additional_subject_alternative_names #=> Boolean
902
+ # resp.certificate_summary_list[0].status #=> String, one of "PENDING_VALIDATION", "ISSUED", "INACTIVE", "EXPIRED", "VALIDATION_TIMED_OUT", "REVOKED", "FAILED"
903
+ # resp.certificate_summary_list[0].type #=> String, one of "IMPORTED", "AMAZON_ISSUED", "PRIVATE"
904
+ # resp.certificate_summary_list[0].key_algorithm #=> String, one of "RSA_1024", "RSA_2048", "RSA_3072", "RSA_4096", "EC_prime256v1", "EC_secp384r1", "EC_secp521r1"
905
+ # resp.certificate_summary_list[0].key_usages #=> Array
906
+ # resp.certificate_summary_list[0].key_usages[0] #=> String, one of "DIGITAL_SIGNATURE", "NON_REPUDIATION", "KEY_ENCIPHERMENT", "DATA_ENCIPHERMENT", "KEY_AGREEMENT", "CERTIFICATE_SIGNING", "CRL_SIGNING", "ENCIPHER_ONLY", "DECIPHER_ONLY", "ANY", "CUSTOM"
907
+ # resp.certificate_summary_list[0].extended_key_usages #=> Array
908
+ # resp.certificate_summary_list[0].extended_key_usages[0] #=> String, one of "TLS_WEB_SERVER_AUTHENTICATION", "TLS_WEB_CLIENT_AUTHENTICATION", "CODE_SIGNING", "EMAIL_PROTECTION", "TIME_STAMPING", "OCSP_SIGNING", "IPSEC_END_SYSTEM", "IPSEC_TUNNEL", "IPSEC_USER", "ANY", "NONE", "CUSTOM"
909
+ # resp.certificate_summary_list[0].in_use #=> Boolean
910
+ # resp.certificate_summary_list[0].exported #=> Boolean
911
+ # resp.certificate_summary_list[0].renewal_eligibility #=> String, one of "ELIGIBLE", "INELIGIBLE"
912
+ # resp.certificate_summary_list[0].not_before #=> Time
913
+ # resp.certificate_summary_list[0].not_after #=> Time
914
+ # resp.certificate_summary_list[0].created_at #=> Time
915
+ # resp.certificate_summary_list[0].issued_at #=> Time
916
+ # resp.certificate_summary_list[0].imported_at #=> Time
917
+ # resp.certificate_summary_list[0].revoked_at #=> Time
862
918
  #
863
919
  # @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates AWS API Documentation
864
920
  #
@@ -1002,9 +1058,9 @@ module Aws::ACM
1002
1058
 
1003
1059
  # Renews an eligible ACM certificate. At this time, only exported
1004
1060
  # private certificates can be renewed with this operation. In order to
1005
- # renew your ACM PCA certificates with ACM, you must first [grant the
1006
- # ACM service principal permission to do so][1]. For more information,
1007
- # see [Testing Managed Renewal][2] in the ACM User Guide.
1061
+ # renew your ACM Private CA certificates with ACM, you must first [grant
1062
+ # the ACM service principal permission to do so][1]. For more
1063
+ # information, see [Testing Managed Renewal][2] in the ACM User Guide.
1008
1064
  #
1009
1065
  #
1010
1066
  #
@@ -1054,19 +1110,21 @@ module Aws::ACM
1054
1110
  # We recommend that you use DNS validation. ACM issues public
1055
1111
  # certificates after receiving approval from the domain owner.
1056
1112
  #
1057
- # <note markdown="1"> ACM behavior differs from the
1058
- # [https://tools.ietf.org/html/rfc6125#appendix-B.2][3]RFC 6125
1059
- # specification of the certificate validation process. first checks for
1060
- # a subject alternative name, and, if it finds one, ignores the common
1061
- # name (CN)
1113
+ # <note markdown="1"> ACM behavior differs from the [RFC 6125][3] specification of the
1114
+ # certificate validation process. ACM first checks for a Subject
1115
+ # Alternative Name, and, if it finds one, ignores the common name (CN).
1062
1116
  #
1063
1117
  # </note>
1064
1118
  #
1119
+ # After successful completion of the `RequestCertificate` action, there
1120
+ # is a delay of several seconds before you can retrieve information
1121
+ # about the new certificate.
1122
+ #
1065
1123
  #
1066
1124
  #
1067
1125
  # [1]: https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html
1068
1126
  # [2]: https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html
1069
- # [3]: https://tools.ietf.org/html/rfc6125#appendix-B.2
1127
+ # [3]: https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2
1070
1128
  #
1071
1129
  # @option params [required, String] :domain_name
1072
1130
  # Fully qualified domain name (FQDN), such as www.example.com, that you
@@ -1075,9 +1133,15 @@ module Aws::ACM
1075
1133
  # For example, *.example.com protects www.example.com,
1076
1134
  # site.example.com, and images.example.com.
1077
1135
  #
1078
- # The first domain name you enter cannot exceed 64 octets, including
1079
- # periods. Each subsequent Subject Alternative Name (SAN), however, can
1080
- # be up to 253 octets in length.
1136
+ # In compliance with [RFC 5280][1], the length of the domain name
1137
+ # (technically, the Common Name) that you provide cannot exceed 64
1138
+ # octets (characters), including periods. To add a longer domain name,
1139
+ # specify it in the Subject Alternative Name field, which supports names
1140
+ # up to 253 octets in length.
1141
+ #
1142
+ #
1143
+ #
1144
+ # [1]: https://datatracker.ietf.org/doc/html/rfc5280
1081
1145
  #
1082
1146
  # @option params [String] :validation_method
1083
1147
  # The method you want to use if you are requesting a public certificate
@@ -1150,9 +1214,8 @@ module Aws::ACM
1150
1214
  # (CA) that will be used to issue the certificate. If you do not provide
1151
1215
  # an ARN and you are trying to request a private certificate, ACM will
1152
1216
  # attempt to issue a public certificate. For more information about
1153
- # private CAs, see the [Amazon Web Services Certificate Manager Private
1154
- # Certificate Authority (PCA)][1] user guide. The ARN must have the
1155
- # following form:
1217
+ # private CAs, see the [Certificate Manager Private Certificate
1218
+ # Authority][1] user guide. The ARN must have the following form:
1156
1219
  #
1157
1220
  # `arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012`
1158
1221
  #
@@ -1330,7 +1393,7 @@ module Aws::ACM
1330
1393
  params: params,
1331
1394
  config: config)
1332
1395
  context[:gem_name] = 'aws-sdk-acm'
1333
- context[:gem_version] = '1.51.0'
1396
+ context[:gem_version] = '1.53.0'
1334
1397
  Seahorse::Client::Request.new(handlers, context)
1335
1398
  end
1336
1399
 
@@ -47,6 +47,7 @@ module Aws::ACM
47
47
  ExtendedKeyUsageFilterList = Shapes::ListShape.new(name: 'ExtendedKeyUsageFilterList')
48
48
  ExtendedKeyUsageList = Shapes::ListShape.new(name: 'ExtendedKeyUsageList')
49
49
  ExtendedKeyUsageName = Shapes::StringShape.new(name: 'ExtendedKeyUsageName')
50
+ ExtendedKeyUsageNames = Shapes::ListShape.new(name: 'ExtendedKeyUsageNames')
50
51
  FailureReason = Shapes::StringShape.new(name: 'FailureReason')
51
52
  Filters = Shapes::StructureShape.new(name: 'Filters')
52
53
  GetAccountConfigurationResponse = Shapes::StructureShape.new(name: 'GetAccountConfigurationResponse')
@@ -68,6 +69,7 @@ module Aws::ACM
68
69
  KeyUsageFilterList = Shapes::ListShape.new(name: 'KeyUsageFilterList')
69
70
  KeyUsageList = Shapes::ListShape.new(name: 'KeyUsageList')
70
71
  KeyUsageName = Shapes::StringShape.new(name: 'KeyUsageName')
72
+ KeyUsageNames = Shapes::ListShape.new(name: 'KeyUsageNames')
71
73
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
72
74
  ListCertificatesRequest = Shapes::StructureShape.new(name: 'ListCertificatesRequest')
73
75
  ListCertificatesResponse = Shapes::StructureShape.new(name: 'ListCertificatesResponse')
@@ -75,6 +77,7 @@ module Aws::ACM
75
77
  ListTagsForCertificateResponse = Shapes::StructureShape.new(name: 'ListTagsForCertificateResponse')
76
78
  MaxItems = Shapes::IntegerShape.new(name: 'MaxItems')
77
79
  NextToken = Shapes::StringShape.new(name: 'NextToken')
80
+ NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
78
81
  PassphraseBlob = Shapes::BlobShape.new(name: 'PassphraseBlob')
79
82
  PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
80
83
  PrivateKey = Shapes::StringShape.new(name: 'PrivateKey')
@@ -95,6 +98,8 @@ module Aws::ACM
95
98
  ResourceRecord = Shapes::StructureShape.new(name: 'ResourceRecord')
96
99
  RevocationReason = Shapes::StringShape.new(name: 'RevocationReason')
97
100
  ServiceErrorMessage = Shapes::StringShape.new(name: 'ServiceErrorMessage')
101
+ SortBy = Shapes::StringShape.new(name: 'SortBy')
102
+ SortOrder = Shapes::StringShape.new(name: 'SortOrder')
98
103
  String = Shapes::StringShape.new(name: 'String')
99
104
  TStamp = Shapes::TimestampShape.new(name: 'TStamp')
100
105
  Tag = Shapes::StructureShape.new(name: 'Tag')
@@ -152,6 +157,22 @@ module Aws::ACM
152
157
 
153
158
  CertificateSummary.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateArn"))
154
159
  CertificateSummary.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainNameString, location_name: "DomainName"))
160
+ CertificateSummary.add_member(:subject_alternative_name_summaries, Shapes::ShapeRef.new(shape: DomainList, location_name: "SubjectAlternativeNameSummaries"))
161
+ CertificateSummary.add_member(:has_additional_subject_alternative_names, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "HasAdditionalSubjectAlternativeNames", metadata: {"box"=>true}))
162
+ CertificateSummary.add_member(:status, Shapes::ShapeRef.new(shape: CertificateStatus, location_name: "Status"))
163
+ CertificateSummary.add_member(:type, Shapes::ShapeRef.new(shape: CertificateType, location_name: "Type"))
164
+ CertificateSummary.add_member(:key_algorithm, Shapes::ShapeRef.new(shape: KeyAlgorithm, location_name: "KeyAlgorithm"))
165
+ CertificateSummary.add_member(:key_usages, Shapes::ShapeRef.new(shape: KeyUsageNames, location_name: "KeyUsages"))
166
+ CertificateSummary.add_member(:extended_key_usages, Shapes::ShapeRef.new(shape: ExtendedKeyUsageNames, location_name: "ExtendedKeyUsages"))
167
+ CertificateSummary.add_member(:in_use, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "InUse", metadata: {"box"=>true}))
168
+ CertificateSummary.add_member(:exported, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "Exported", metadata: {"box"=>true}))
169
+ CertificateSummary.add_member(:renewal_eligibility, Shapes::ShapeRef.new(shape: RenewalEligibility, location_name: "RenewalEligibility"))
170
+ CertificateSummary.add_member(:not_before, Shapes::ShapeRef.new(shape: TStamp, location_name: "NotBefore"))
171
+ CertificateSummary.add_member(:not_after, Shapes::ShapeRef.new(shape: TStamp, location_name: "NotAfter"))
172
+ CertificateSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: TStamp, location_name: "CreatedAt"))
173
+ CertificateSummary.add_member(:issued_at, Shapes::ShapeRef.new(shape: TStamp, location_name: "IssuedAt"))
174
+ CertificateSummary.add_member(:imported_at, Shapes::ShapeRef.new(shape: TStamp, location_name: "ImportedAt"))
175
+ CertificateSummary.add_member(:revoked_at, Shapes::ShapeRef.new(shape: TStamp, location_name: "RevokedAt"))
155
176
  CertificateSummary.struct_class = Types::CertificateSummary
156
177
 
157
178
  CertificateSummaryList.member = Shapes::ShapeRef.new(shape: CertificateSummary)
@@ -206,6 +227,8 @@ module Aws::ACM
206
227
 
207
228
  ExtendedKeyUsageList.member = Shapes::ShapeRef.new(shape: ExtendedKeyUsage)
208
229
 
230
+ ExtendedKeyUsageNames.member = Shapes::ShapeRef.new(shape: ExtendedKeyUsageName)
231
+
209
232
  Filters.add_member(:extended_key_usage, Shapes::ShapeRef.new(shape: ExtendedKeyUsageFilterList, location_name: "extendedKeyUsage"))
210
233
  Filters.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageFilterList, location_name: "keyUsage"))
211
234
  Filters.add_member(:key_types, Shapes::ShapeRef.new(shape: KeyAlgorithmList, location_name: "keyTypes"))
@@ -260,6 +283,8 @@ module Aws::ACM
260
283
 
261
284
  KeyUsageList.member = Shapes::ShapeRef.new(shape: KeyUsage)
262
285
 
286
+ KeyUsageNames.member = Shapes::ShapeRef.new(shape: KeyUsageName)
287
+
263
288
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
264
289
  LimitExceededException.struct_class = Types::LimitExceededException
265
290
 
@@ -267,6 +292,8 @@ module Aws::ACM
267
292
  ListCertificatesRequest.add_member(:includes, Shapes::ShapeRef.new(shape: Filters, location_name: "Includes"))
268
293
  ListCertificatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
269
294
  ListCertificatesRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxItems, location_name: "MaxItems"))
295
+ ListCertificatesRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortBy, location_name: "SortBy"))
296
+ ListCertificatesRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "SortOrder"))
270
297
  ListCertificatesRequest.struct_class = Types::ListCertificatesRequest
271
298
 
272
299
  ListCertificatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::ACM
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,116 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::ACM
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
+ dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
+ ZGVmYXVsdCI6ZmFsc2Us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2IjpbdHJ1ZSx7ImZuIjoiZ2V0
102
+ QXR0ciIsImFyZ3YiOlt7InJlZiI6IlBhcnRpdGlvblJlc3VsdCJ9LCJzdXBw
103
+ b3J0c0R1YWxTdGFjayJdfV19XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3si
104
+ Y29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYWNt
105
+ LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4
106
+ fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRw
107
+ b2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sg
108
+ aXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9y
109
+ dCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6
110
+ W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYWNtLntSZWdpb259LntQ
111
+ YXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJo
112
+ ZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
113
+
114
+ JSON
115
+ end
116
+ end
@@ -0,0 +1,225 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::ACM
12
+ module Endpoints
13
+
14
+ class AddTagsToCertificate
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::ACM::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class DeleteCertificate
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::ACM::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DescribeCertificate
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::ACM::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class ExportCertificate
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::ACM::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class GetAccountConfiguration
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::ACM::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class GetCertificate
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::ACM::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class ImportCertificate
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::ACM::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class ListCertificates
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::ACM::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class ListTagsForCertificate
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::ACM::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class PutAccountConfiguration
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::ACM::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class RemoveTagsFromCertificate
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::ACM::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class RenewCertificate
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::ACM::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class RequestCertificate
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::ACM::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class ResendValidationEmail
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::ACM::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class UpdateCertificateOptions
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::ACM::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ end
225
+ end
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::ACM
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::ACM::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::ACM::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::ACM::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :add_tags_to_certificate
60
+ Aws::ACM::Endpoints::AddTagsToCertificate.build(context)
61
+ when :delete_certificate
62
+ Aws::ACM::Endpoints::DeleteCertificate.build(context)
63
+ when :describe_certificate
64
+ Aws::ACM::Endpoints::DescribeCertificate.build(context)
65
+ when :export_certificate
66
+ Aws::ACM::Endpoints::ExportCertificate.build(context)
67
+ when :get_account_configuration
68
+ Aws::ACM::Endpoints::GetAccountConfiguration.build(context)
69
+ when :get_certificate
70
+ Aws::ACM::Endpoints::GetCertificate.build(context)
71
+ when :import_certificate
72
+ Aws::ACM::Endpoints::ImportCertificate.build(context)
73
+ when :list_certificates
74
+ Aws::ACM::Endpoints::ListCertificates.build(context)
75
+ when :list_tags_for_certificate
76
+ Aws::ACM::Endpoints::ListTagsForCertificate.build(context)
77
+ when :put_account_configuration
78
+ Aws::ACM::Endpoints::PutAccountConfiguration.build(context)
79
+ when :remove_tags_from_certificate
80
+ Aws::ACM::Endpoints::RemoveTagsFromCertificate.build(context)
81
+ when :renew_certificate
82
+ Aws::ACM::Endpoints::RenewCertificate.build(context)
83
+ when :request_certificate
84
+ Aws::ACM::Endpoints::RequestCertificate.build(context)
85
+ when :resend_validation_email
86
+ Aws::ACM::Endpoints::ResendValidationEmail.build(context)
87
+ when :update_certificate_options
88
+ Aws::ACM::Endpoints::UpdateCertificateOptions.build(context)
89
+ end
90
+ end
91
+ end
92
+
93
+ def add_handlers(handlers, _config)
94
+ handlers.add(Handler, step: :build, priority: 75)
95
+ end
96
+ end
97
+ end
98
+ end
@@ -120,12 +120,27 @@ module Aws::ACM
120
120
  # @return [Time]
121
121
  #
122
122
  # @!attribute [rw] imported_at
123
- # The date and time at which the certificate was imported. This value
123
+ # The date and time when the certificate was imported. This value
124
124
  # exists only when the certificate type is `IMPORTED`.
125
125
  # @return [Time]
126
126
  #
127
127
  # @!attribute [rw] status
128
128
  # The status of the certificate.
129
+ #
130
+ # A certificate enters status PENDING\_VALIDATION upon being
131
+ # requested, unless it fails for any of the reasons given in the
132
+ # troubleshooting topic [Certificate request fails][1]. ACM makes
133
+ # repeated attempts to validate a certificate for 72 hours and then
134
+ # times out. If a certificate shows status FAILED or
135
+ # VALIDATION\_TIMED\_OUT, delete the request, correct the issue with
136
+ # [DNS validation][2] or [Email validation][3], and try again. If
137
+ # validation succeeds, the certificate enters status ISSUED.
138
+ #
139
+ #
140
+ #
141
+ # [1]: https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting-failed.html
142
+ # [2]: https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
143
+ # [3]: https://docs.aws.amazon.com/acm/latest/userguide/email-validation.html
129
144
  # @return [String]
130
145
  #
131
146
  # @!attribute [rw] revoked_at
@@ -163,8 +178,8 @@ module Aws::ACM
163
178
  # @!attribute [rw] failure_reason
164
179
  # The reason the certificate request failed. This value exists only
165
180
  # when the certificate status is `FAILED`. For more information, see
166
- # [Certificate Request Failed][1] in the *Amazon Web Services
167
- # Certificate Manager User Guide*.
181
+ # [Certificate Request Failed][1] in the *Certificate Manager User
182
+ # Guide*.
168
183
  #
169
184
  #
170
185
  #
@@ -178,7 +193,7 @@ module Aws::ACM
178
193
  # provide [managed renewal][1] for imported certificates. For more
179
194
  # information about the differences between certificates that you
180
195
  # import and those that ACM provides, see [Importing Certificates][2]
181
- # in the *Amazon Web Services Certificate Manager User Guide*.
196
+ # in the *Certificate Manager User Guide*.
182
197
  #
183
198
  #
184
199
  #
@@ -210,9 +225,8 @@ module Aws::ACM
210
225
  # @return [Array<Types::ExtendedKeyUsage>]
211
226
  #
212
227
  # @!attribute [rw] certificate_authority_arn
213
- # The Amazon Resource Name (ARN) of the ACM PCA private certificate
214
- # authority (CA) that issued the certificate. This has the following
215
- # format:
228
+ # The Amazon Resource Name (ARN) of the private certificate authority
229
+ # (CA) that issued the certificate. This has the following format:
216
230
  #
217
231
  # `arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012`
218
232
  # @return [String]
@@ -319,11 +333,155 @@ module Aws::ACM
319
333
  # example.com, for the certificate.
320
334
  # @return [String]
321
335
  #
336
+ # @!attribute [rw] subject_alternative_name_summaries
337
+ # One or more domain names (subject alternative names) included in the
338
+ # certificate. This list contains the domain names that are bound to
339
+ # the public key that is contained in the certificate. The subject
340
+ # alternative names include the canonical domain name (CN) of the
341
+ # certificate and additional domain names that can be used to connect
342
+ # to the website.
343
+ #
344
+ # When called by [ListCertificates][1], this parameter will only
345
+ # return the first 100 subject alternative names included in the
346
+ # certificate. To display the full list of subject alternative names,
347
+ # use [DescribeCertificate][2].
348
+ #
349
+ #
350
+ #
351
+ # [1]: https://docs.aws.amazon.com/acm/latestAPIReference/API_ListCertificates.html
352
+ # [2]: https://docs.aws.amazon.com/acm/latestAPIReference/API_DescribeCertificate.html
353
+ # @return [Array<String>]
354
+ #
355
+ # @!attribute [rw] has_additional_subject_alternative_names
356
+ # When called by [ListCertificates][1], indicates whether the full
357
+ # list of subject alternative names has been included in the response.
358
+ # If false, the response includes all of the subject alternative names
359
+ # included in the certificate. If true, the response only includes the
360
+ # first 100 subject alternative names included in the certificate. To
361
+ # display the full list of subject alternative names, use
362
+ # [DescribeCertificate][2].
363
+ #
364
+ #
365
+ #
366
+ # [1]: https://docs.aws.amazon.com/acm/latestAPIReference/API_ListCertificates.html
367
+ # [2]: https://docs.aws.amazon.com/acm/latestAPIReference/API_DescribeCertificate.html
368
+ # @return [Boolean]
369
+ #
370
+ # @!attribute [rw] status
371
+ # The status of the certificate.
372
+ #
373
+ # A certificate enters status PENDING\_VALIDATION upon being
374
+ # requested, unless it fails for any of the reasons given in the
375
+ # troubleshooting topic [Certificate request fails][1]. ACM makes
376
+ # repeated attempts to validate a certificate for 72 hours and then
377
+ # times out. If a certificate shows status FAILED or
378
+ # VALIDATION\_TIMED\_OUT, delete the request, correct the issue with
379
+ # [DNS validation][2] or [Email validation][3], and try again. If
380
+ # validation succeeds, the certificate enters status ISSUED.
381
+ #
382
+ #
383
+ #
384
+ # [1]: https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting-failed.html
385
+ # [2]: https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
386
+ # [3]: https://docs.aws.amazon.com/acm/latest/userguide/email-validation.html
387
+ # @return [String]
388
+ #
389
+ # @!attribute [rw] type
390
+ # The source of the certificate. For certificates provided by ACM,
391
+ # this value is `AMAZON_ISSUED`. For certificates that you imported
392
+ # with ImportCertificate, this value is `IMPORTED`. ACM does not
393
+ # provide [managed renewal][1] for imported certificates. For more
394
+ # information about the differences between certificates that you
395
+ # import and those that ACM provides, see [Importing Certificates][2]
396
+ # in the *Certificate Manager User Guide*.
397
+ #
398
+ #
399
+ #
400
+ # [1]: https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html
401
+ # [2]: https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html
402
+ # @return [String]
403
+ #
404
+ # @!attribute [rw] key_algorithm
405
+ # The algorithm that was used to generate the public-private key pair.
406
+ # @return [String]
407
+ #
408
+ # @!attribute [rw] key_usages
409
+ # A list of Key Usage X.509 v3 extension objects. Each object is a
410
+ # string value that identifies the purpose of the public key contained
411
+ # in the certificate. Possible extension values include
412
+ # DIGITAL\_SIGNATURE, KEY\_ENCHIPHERMENT, NON\_REPUDIATION, and more.
413
+ # @return [Array<String>]
414
+ #
415
+ # @!attribute [rw] extended_key_usages
416
+ # Contains a list of Extended Key Usage X.509 v3 extension objects.
417
+ # Each object specifies a purpose for which the certificate public key
418
+ # can be used and consists of a name and an object identifier (OID).
419
+ # @return [Array<String>]
420
+ #
421
+ # @!attribute [rw] in_use
422
+ # Indicates whether the certificate is currently in use by any Amazon
423
+ # Web Services resources.
424
+ # @return [Boolean]
425
+ #
426
+ # @!attribute [rw] exported
427
+ # Indicates whether the certificate has been exported. This value
428
+ # exists only when the certificate type is `PRIVATE`.
429
+ # @return [Boolean]
430
+ #
431
+ # @!attribute [rw] renewal_eligibility
432
+ # Specifies whether the certificate is eligible for renewal. At this
433
+ # time, only exported private certificates can be renewed with the
434
+ # RenewCertificate command.
435
+ # @return [String]
436
+ #
437
+ # @!attribute [rw] not_before
438
+ # The time before which the certificate is not valid.
439
+ # @return [Time]
440
+ #
441
+ # @!attribute [rw] not_after
442
+ # The time after which the certificate is not valid.
443
+ # @return [Time]
444
+ #
445
+ # @!attribute [rw] created_at
446
+ # The time at which the certificate was requested.
447
+ # @return [Time]
448
+ #
449
+ # @!attribute [rw] issued_at
450
+ # The time at which the certificate was issued. This value exists only
451
+ # when the certificate type is `AMAZON_ISSUED`.
452
+ # @return [Time]
453
+ #
454
+ # @!attribute [rw] imported_at
455
+ # The date and time when the certificate was imported. This value
456
+ # exists only when the certificate type is `IMPORTED`.
457
+ # @return [Time]
458
+ #
459
+ # @!attribute [rw] revoked_at
460
+ # The time at which the certificate was revoked. This value exists
461
+ # only when the certificate status is `REVOKED`.
462
+ # @return [Time]
463
+ #
322
464
  # @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/CertificateSummary AWS API Documentation
323
465
  #
324
466
  class CertificateSummary < Struct.new(
325
467
  :certificate_arn,
326
- :domain_name)
468
+ :domain_name,
469
+ :subject_alternative_name_summaries,
470
+ :has_additional_subject_alternative_names,
471
+ :status,
472
+ :type,
473
+ :key_algorithm,
474
+ :key_usages,
475
+ :extended_key_usages,
476
+ :in_use,
477
+ :exported,
478
+ :renewal_eligibility,
479
+ :not_before,
480
+ :not_after,
481
+ :created_at,
482
+ :issued_at,
483
+ :imported_at,
484
+ :revoked_at)
327
485
  SENSITIVE = []
328
486
  include Aws::Structure
329
487
  end
@@ -560,10 +718,17 @@ module Aws::ACM
560
718
  # @return [String]
561
719
  #
562
720
  # @!attribute [rw] passphrase
563
- # Passphrase to associate with the encrypted exported private key. If
564
- # you want to later decrypt the private key, you must have the
721
+ # Passphrase to associate with the encrypted exported private key.
722
+ #
723
+ # <note markdown="1"> When creating your passphrase, you can use any ASCII character
724
+ # except #, $, or %.
725
+ #
726
+ # </note>
727
+ #
728
+ # If you want to later decrypt the private key, you must have the
565
729
  # passphrase. You can use the following OpenSSL command to decrypt a
566
- # private key:
730
+ # private key. After entering the command, you are prompted for the
731
+ # passphrase.
567
732
  #
568
733
  # `openssl rsa -in encrypted_key.pem -out decrypted_key.pem`
569
734
  # @return [String]
@@ -671,7 +836,7 @@ module Aws::ACM
671
836
  # certificates that have at least one domain. To return other
672
837
  # certificate types, provide the desired type signatures in a
673
838
  # comma-separated list. For example, `"keyTypes":
674
- # ["RSA_2048,RSA_4096"]` returns both `RSA_2048` and `RSA_4096`
839
+ # ["RSA_2048","RSA_4096"]` returns both `RSA_2048` and `RSA_4096`
675
840
  # certificates.
676
841
  # @return [Array<String>]
677
842
  #
@@ -940,6 +1105,8 @@ module Aws::ACM
940
1105
  # },
941
1106
  # next_token: "NextToken",
942
1107
  # max_items: 1,
1108
+ # sort_by: "CREATED_AT", # accepts CREATED_AT
1109
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
943
1110
  # }
944
1111
  #
945
1112
  # @!attribute [rw] certificate_statuses
@@ -966,13 +1133,25 @@ module Aws::ACM
966
1133
  # retrieve additional items.
967
1134
  # @return [Integer]
968
1135
  #
1136
+ # @!attribute [rw] sort_by
1137
+ # Specifies the field to sort results by. If you specify `SortBy`, you
1138
+ # must also specify `SortOrder`.
1139
+ # @return [String]
1140
+ #
1141
+ # @!attribute [rw] sort_order
1142
+ # Specifies the order of sorted results. If you specify `SortOrder`,
1143
+ # you must also specify `SortBy`.
1144
+ # @return [String]
1145
+ #
969
1146
  # @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificatesRequest AWS API Documentation
970
1147
  #
971
1148
  class ListCertificatesRequest < Struct.new(
972
1149
  :certificate_statuses,
973
1150
  :includes,
974
1151
  :next_token,
975
- :max_items)
1152
+ :max_items,
1153
+ :sort_by,
1154
+ :sort_order)
976
1155
  SENSITIVE = []
977
1156
  include Aws::Structure
978
1157
  end
@@ -1218,9 +1397,15 @@ module Aws::ACM
1218
1397
  # same domain. For example, *.example.com protects www.example.com,
1219
1398
  # site.example.com, and images.example.com.
1220
1399
  #
1221
- # The first domain name you enter cannot exceed 64 octets, including
1222
- # periods. Each subsequent Subject Alternative Name (SAN), however,
1223
- # can be up to 253 octets in length.
1400
+ # In compliance with [RFC 5280][1], the length of the domain name
1401
+ # (technically, the Common Name) that you provide cannot exceed 64
1402
+ # octets (characters), including periods. To add a longer domain name,
1403
+ # specify it in the Subject Alternative Name field, which supports
1404
+ # names up to 253 octets in length.
1405
+ #
1406
+ #
1407
+ #
1408
+ # [1]: https://datatracker.ietf.org/doc/html/rfc5280
1224
1409
  # @return [String]
1225
1410
  #
1226
1411
  # @!attribute [rw] validation_method
@@ -1300,9 +1485,8 @@ module Aws::ACM
1300
1485
  # (CA) that will be used to issue the certificate. If you do not
1301
1486
  # provide an ARN and you are trying to request a private certificate,
1302
1487
  # ACM will attempt to issue a public certificate. For more information
1303
- # about private CAs, see the [Amazon Web Services Certificate Manager
1304
- # Private Certificate Authority (PCA)][1] user guide. The ARN must
1305
- # have the following form:
1488
+ # about private CAs, see the [Certificate Manager Private Certificate
1489
+ # Authority][1] user guide. The ARN must have the following form:
1306
1490
  #
1307
1491
  # `arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012`
1308
1492
  #
data/lib/aws-sdk-acm.rb CHANGED
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-acm/types'
15
15
  require_relative 'aws-sdk-acm/client_api'
16
+ require_relative 'aws-sdk-acm/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-acm/client'
17
18
  require_relative 'aws-sdk-acm/errors'
18
19
  require_relative 'aws-sdk-acm/waiters'
19
20
  require_relative 'aws-sdk-acm/resource'
21
+ require_relative 'aws-sdk-acm/endpoint_parameters'
22
+ require_relative 'aws-sdk-acm/endpoint_provider'
23
+ require_relative 'aws-sdk-acm/endpoints'
20
24
  require_relative 'aws-sdk-acm/customizations'
21
25
 
22
26
  # This module provides support for AWS Certificate Manager. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-acm/customizations'
49
53
  # @!group service
50
54
  module Aws::ACM
51
55
 
52
- GEM_VERSION = '1.51.0'
56
+ GEM_VERSION = '1.53.0'
53
57
 
54
58
  end
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.51.0
4
+ version: 1.53.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: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-acm/client.rb
60
60
  - lib/aws-sdk-acm/client_api.rb
61
61
  - lib/aws-sdk-acm/customizations.rb
62
+ - lib/aws-sdk-acm/endpoint_parameters.rb
63
+ - lib/aws-sdk-acm/endpoint_provider.rb
64
+ - lib/aws-sdk-acm/endpoints.rb
62
65
  - lib/aws-sdk-acm/errors.rb
66
+ - lib/aws-sdk-acm/plugins/endpoints.rb
63
67
  - lib/aws-sdk-acm/resource.rb
64
68
  - lib/aws-sdk-acm/types.rb
65
69
  - lib/aws-sdk-acm/waiters.rb