aws-sdk-acm 1.39.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-acm.rb +1 -1
- data/lib/aws-sdk-acm/client.rb +80 -19
- data/lib/aws-sdk-acm/client_api.rb +58 -0
- data/lib/aws-sdk-acm/errors.rb +64 -0
- data/lib/aws-sdk-acm/types.rb +147 -22
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf4e007e5396308c190c530ace7658aabb717e344636409431594980930f4f92
|
4
|
+
data.tar.gz: bf52b05e06054df5cc25dfda814e99c9dcf1e189c477ba92159ef0c18b60ce38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3183e9d6b0be6077c5b30371cfdd622ccabeb2ae3f52029230c3c6c35124138afc9e84d7bcdc504fed85dd2aef820aa8c74b8fc3f7450489be824e2e80e906da
|
7
|
+
data.tar.gz: f151d347d32eebb5850258b2f6d02e7d60a6f084ff541f9b69f9969e9e4518caad0d94db679794584327214f2bcd4ab1d13c89fe4f5b5587a26cf7a089295969
|
data/lib/aws-sdk-acm.rb
CHANGED
data/lib/aws-sdk-acm/client.rb
CHANGED
@@ -367,8 +367,8 @@ module Aws::ACM
|
|
367
367
|
#
|
368
368
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
369
369
|
#
|
370
|
-
# For more information about ARNs, see [Amazon Resource Names
|
371
|
-
#
|
370
|
+
# For more information about ARNs, see [Amazon Resource Names
|
371
|
+
# (ARNs)][1].
|
372
372
|
#
|
373
373
|
#
|
374
374
|
#
|
@@ -418,8 +418,8 @@ module Aws::ACM
|
|
418
418
|
#
|
419
419
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
420
420
|
#
|
421
|
-
# For more information about ARNs, see [Amazon Resource Names
|
422
|
-
#
|
421
|
+
# For more information about ARNs, see [Amazon Resource Names
|
422
|
+
# (ARNs)][1].
|
423
423
|
#
|
424
424
|
#
|
425
425
|
#
|
@@ -450,8 +450,8 @@ module Aws::ACM
|
|
450
450
|
#
|
451
451
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
452
452
|
#
|
453
|
-
# For more information about ARNs, see [Amazon Resource Names
|
454
|
-
#
|
453
|
+
# For more information about ARNs, see [Amazon Resource Names
|
454
|
+
# (ARNs)][1].
|
455
455
|
#
|
456
456
|
#
|
457
457
|
#
|
@@ -592,6 +592,26 @@ module Aws::ACM
|
|
592
592
|
req.send_request(options)
|
593
593
|
end
|
594
594
|
|
595
|
+
# Returns the account configuration options associated with an AWS
|
596
|
+
# account.
|
597
|
+
#
|
598
|
+
# @return [Types::GetAccountConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
599
|
+
#
|
600
|
+
# * {Types::GetAccountConfigurationResponse#expiry_events #expiry_events} => Types::ExpiryEventsConfiguration
|
601
|
+
#
|
602
|
+
# @example Response structure
|
603
|
+
#
|
604
|
+
# resp.expiry_events.days_before_expiry #=> Integer
|
605
|
+
#
|
606
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration AWS API Documentation
|
607
|
+
#
|
608
|
+
# @overload get_account_configuration(params = {})
|
609
|
+
# @param [Hash] params ({})
|
610
|
+
def get_account_configuration(params = {}, options = {})
|
611
|
+
req = build_request(:get_account_configuration, params)
|
612
|
+
req.send_request(options)
|
613
|
+
end
|
614
|
+
|
595
615
|
# Retrieves an Amazon-issued certificate and its certificate chain. The
|
596
616
|
# chain consists of the certificate of the issuing CA and the
|
597
617
|
# intermediate certificates of any other subordinate CAs. All of the
|
@@ -607,8 +627,8 @@ module Aws::ACM
|
|
607
627
|
#
|
608
628
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
609
629
|
#
|
610
|
-
# For more information about ARNs, see [Amazon Resource Names
|
611
|
-
#
|
630
|
+
# For more information about ARNs, see [Amazon Resource Names
|
631
|
+
# (ARNs)][1].
|
612
632
|
#
|
613
633
|
#
|
614
634
|
#
|
@@ -661,6 +681,8 @@ module Aws::ACM
|
|
661
681
|
# * The private key must be unencrypted. You cannot import a private key
|
662
682
|
# that is protected by a password or a passphrase.
|
663
683
|
#
|
684
|
+
# * The private key must be no larger than 5 KB (5,120 bytes).
|
685
|
+
#
|
664
686
|
# * If the certificate you are importing is not self-signed, you must
|
665
687
|
# enter its certificate chain.
|
666
688
|
#
|
@@ -679,13 +701,13 @@ module Aws::ACM
|
|
679
701
|
#
|
680
702
|
# * To import a new certificate, omit the `CertificateArn` argument.
|
681
703
|
# Include this argument only when you want to replace a previously
|
682
|
-
# imported
|
704
|
+
# imported certificate.
|
683
705
|
#
|
684
706
|
# * When you import a certificate by using the CLI, you must specify the
|
685
707
|
# certificate, the certificate chain, and the private key by their
|
686
|
-
# file names preceded by `
|
708
|
+
# file names preceded by `fileb://`. For example, you can specify a
|
687
709
|
# certificate saved in the `C:\temp` folder as
|
688
|
-
# `
|
710
|
+
# `fileb://C:\temp\certificate_to_import.pem`. If you are making an
|
689
711
|
# HTTP or HTTPS Query request, include these arguments as BLOBs.
|
690
712
|
#
|
691
713
|
# * When you import a certificate by using an SDK, you must specify the
|
@@ -833,8 +855,8 @@ module Aws::ACM
|
|
833
855
|
#
|
834
856
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
835
857
|
#
|
836
|
-
# For more information about ARNs, see [Amazon Resource Names
|
837
|
-
#
|
858
|
+
# For more information about ARNs, see [Amazon Resource Names
|
859
|
+
# (ARNs)][1].
|
838
860
|
#
|
839
861
|
#
|
840
862
|
#
|
@@ -865,6 +887,45 @@ module Aws::ACM
|
|
865
887
|
req.send_request(options)
|
866
888
|
end
|
867
889
|
|
890
|
+
# Adds or modifies account-level configurations in ACM.
|
891
|
+
#
|
892
|
+
# The supported configuration option is `DaysBeforeExpiry`. This option
|
893
|
+
# specifies the number of days prior to certificate expiration when ACM
|
894
|
+
# starts generating `EventBridge` events. ACM sends one event per day
|
895
|
+
# per certificate until the certificate expires. By default, accounts
|
896
|
+
# receive events starting 45 days before certificate expiration.
|
897
|
+
#
|
898
|
+
# @option params [Types::ExpiryEventsConfiguration] :expiry_events
|
899
|
+
# Specifies expiration events associated with an account.
|
900
|
+
#
|
901
|
+
# @option params [required, String] :idempotency_token
|
902
|
+
# Customer-chosen string used to distinguish between calls to
|
903
|
+
# `PutAccountConfiguration`. Idempotency tokens time out after one hour.
|
904
|
+
# If you call `PutAccountConfiguration` multiple times with the same
|
905
|
+
# unexpired idempotency token, ACM treats it as the same request and
|
906
|
+
# returns the original result. If you change the idempotency token for
|
907
|
+
# each call, ACM treats each call as a new request.
|
908
|
+
#
|
909
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
910
|
+
#
|
911
|
+
# @example Request syntax with placeholder values
|
912
|
+
#
|
913
|
+
# resp = client.put_account_configuration({
|
914
|
+
# expiry_events: {
|
915
|
+
# days_before_expiry: 1,
|
916
|
+
# },
|
917
|
+
# idempotency_token: "IdempotencyToken", # required
|
918
|
+
# })
|
919
|
+
#
|
920
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration AWS API Documentation
|
921
|
+
#
|
922
|
+
# @overload put_account_configuration(params = {})
|
923
|
+
# @param [Hash] params ({})
|
924
|
+
def put_account_configuration(params = {}, options = {})
|
925
|
+
req = build_request(:put_account_configuration, params)
|
926
|
+
req.send_request(options)
|
927
|
+
end
|
928
|
+
|
868
929
|
# Remove one or more tags from an ACM certificate. A tag consists of a
|
869
930
|
# key-value pair. If you do not specify the value portion of the tag
|
870
931
|
# when calling this function, the tag will be removed regardless of
|
@@ -881,8 +942,8 @@ module Aws::ACM
|
|
881
942
|
#
|
882
943
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
883
944
|
#
|
884
|
-
# For more information about ARNs, see [Amazon Resource Names
|
885
|
-
#
|
945
|
+
# For more information about ARNs, see [Amazon Resource Names
|
946
|
+
# (ARNs)][1].
|
886
947
|
#
|
887
948
|
#
|
888
949
|
#
|
@@ -914,7 +975,7 @@ module Aws::ACM
|
|
914
975
|
req.send_request(options)
|
915
976
|
end
|
916
977
|
|
917
|
-
# Renews an
|
978
|
+
# Renews an eligible ACM certificate. At this time, only exported
|
918
979
|
# private certificates can be renewed with this operation. In order to
|
919
980
|
# renew your ACM PCA certificates with ACM, you must first [grant the
|
920
981
|
# ACM service principal permission to do so][1]. For more information,
|
@@ -931,8 +992,8 @@ module Aws::ACM
|
|
931
992
|
#
|
932
993
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
933
994
|
#
|
934
|
-
# For more information about ARNs, see [Amazon Resource Names
|
935
|
-
#
|
995
|
+
# For more information about ARNs, see [Amazon Resource Names
|
996
|
+
# (ARNs)][1].
|
936
997
|
#
|
937
998
|
#
|
938
999
|
#
|
@@ -1233,7 +1294,7 @@ module Aws::ACM
|
|
1233
1294
|
params: params,
|
1234
1295
|
config: config)
|
1235
1296
|
context[:gem_name] = 'aws-sdk-acm'
|
1236
|
-
context[:gem_version] = '1.
|
1297
|
+
context[:gem_version] = '1.40.0'
|
1237
1298
|
Seahorse::Client::Request.new(handlers, context)
|
1238
1299
|
end
|
1239
1300
|
|
@@ -13,8 +13,10 @@ module Aws::ACM
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
16
17
|
AddTagsToCertificateRequest = Shapes::StructureShape.new(name: 'AddTagsToCertificateRequest')
|
17
18
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
19
|
+
AvailabilityErrorMessage = Shapes::StringShape.new(name: 'AvailabilityErrorMessage')
|
18
20
|
CertificateBody = Shapes::StringShape.new(name: 'CertificateBody')
|
19
21
|
CertificateBodyBlob = Shapes::BlobShape.new(name: 'CertificateBodyBlob')
|
20
22
|
CertificateChain = Shapes::StringShape.new(name: 'CertificateChain')
|
@@ -27,6 +29,7 @@ module Aws::ACM
|
|
27
29
|
CertificateSummaryList = Shapes::ListShape.new(name: 'CertificateSummaryList')
|
28
30
|
CertificateTransparencyLoggingPreference = Shapes::StringShape.new(name: 'CertificateTransparencyLoggingPreference')
|
29
31
|
CertificateType = Shapes::StringShape.new(name: 'CertificateType')
|
32
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
30
33
|
DeleteCertificateRequest = Shapes::StructureShape.new(name: 'DeleteCertificateRequest')
|
31
34
|
DescribeCertificateRequest = Shapes::StructureShape.new(name: 'DescribeCertificateRequest')
|
32
35
|
DescribeCertificateResponse = Shapes::StructureShape.new(name: 'DescribeCertificateResponse')
|
@@ -37,6 +40,7 @@ module Aws::ACM
|
|
37
40
|
DomainValidationList = Shapes::ListShape.new(name: 'DomainValidationList')
|
38
41
|
DomainValidationOption = Shapes::StructureShape.new(name: 'DomainValidationOption')
|
39
42
|
DomainValidationOptionList = Shapes::ListShape.new(name: 'DomainValidationOptionList')
|
43
|
+
ExpiryEventsConfiguration = Shapes::StructureShape.new(name: 'ExpiryEventsConfiguration')
|
40
44
|
ExportCertificateRequest = Shapes::StructureShape.new(name: 'ExportCertificateRequest')
|
41
45
|
ExportCertificateResponse = Shapes::StructureShape.new(name: 'ExportCertificateResponse')
|
42
46
|
ExtendedKeyUsage = Shapes::StructureShape.new(name: 'ExtendedKeyUsage')
|
@@ -45,6 +49,7 @@ module Aws::ACM
|
|
45
49
|
ExtendedKeyUsageName = Shapes::StringShape.new(name: 'ExtendedKeyUsageName')
|
46
50
|
FailureReason = Shapes::StringShape.new(name: 'FailureReason')
|
47
51
|
Filters = Shapes::StructureShape.new(name: 'Filters')
|
52
|
+
GetAccountConfigurationResponse = Shapes::StructureShape.new(name: 'GetAccountConfigurationResponse')
|
48
53
|
GetCertificateRequest = Shapes::StructureShape.new(name: 'GetCertificateRequest')
|
49
54
|
GetCertificateResponse = Shapes::StructureShape.new(name: 'GetCertificateResponse')
|
50
55
|
IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
|
@@ -71,8 +76,10 @@ module Aws::ACM
|
|
71
76
|
MaxItems = Shapes::IntegerShape.new(name: 'MaxItems')
|
72
77
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
73
78
|
PassphraseBlob = Shapes::BlobShape.new(name: 'PassphraseBlob')
|
79
|
+
PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
|
74
80
|
PrivateKey = Shapes::StringShape.new(name: 'PrivateKey')
|
75
81
|
PrivateKeyBlob = Shapes::BlobShape.new(name: 'PrivateKeyBlob')
|
82
|
+
PutAccountConfigurationRequest = Shapes::StructureShape.new(name: 'PutAccountConfigurationRequest')
|
76
83
|
RecordType = Shapes::StringShape.new(name: 'RecordType')
|
77
84
|
RemoveTagsFromCertificateRequest = Shapes::StructureShape.new(name: 'RemoveTagsFromCertificateRequest')
|
78
85
|
RenewCertificateRequest = Shapes::StructureShape.new(name: 'RenewCertificateRequest')
|
@@ -87,6 +94,7 @@ module Aws::ACM
|
|
87
94
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
88
95
|
ResourceRecord = Shapes::StructureShape.new(name: 'ResourceRecord')
|
89
96
|
RevocationReason = Shapes::StringShape.new(name: 'RevocationReason')
|
97
|
+
ServiceErrorMessage = Shapes::StringShape.new(name: 'ServiceErrorMessage')
|
90
98
|
String = Shapes::StringShape.new(name: 'String')
|
91
99
|
TStamp = Shapes::TimestampShape.new(name: 'TStamp')
|
92
100
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
@@ -94,11 +102,17 @@ module Aws::ACM
|
|
94
102
|
TagList = Shapes::ListShape.new(name: 'TagList')
|
95
103
|
TagPolicyException = Shapes::StructureShape.new(name: 'TagPolicyException')
|
96
104
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
105
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
97
106
|
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
98
107
|
UpdateCertificateOptionsRequest = Shapes::StructureShape.new(name: 'UpdateCertificateOptionsRequest')
|
99
108
|
ValidationEmailList = Shapes::ListShape.new(name: 'ValidationEmailList')
|
109
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
110
|
+
ValidationExceptionMessage = Shapes::StringShape.new(name: 'ValidationExceptionMessage')
|
100
111
|
ValidationMethod = Shapes::StringShape.new(name: 'ValidationMethod')
|
101
112
|
|
113
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ServiceErrorMessage, location_name: "Message"))
|
114
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
115
|
+
|
102
116
|
AddTagsToCertificateRequest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CertificateArn"))
|
103
117
|
AddTagsToCertificateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
104
118
|
AddTagsToCertificateRequest.struct_class = Types::AddTagsToCertificateRequest
|
@@ -142,6 +156,9 @@ module Aws::ACM
|
|
142
156
|
|
143
157
|
CertificateSummaryList.member = Shapes::ShapeRef.new(shape: CertificateSummary)
|
144
158
|
|
159
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
160
|
+
ConflictException.struct_class = Types::ConflictException
|
161
|
+
|
145
162
|
DeleteCertificateRequest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CertificateArn"))
|
146
163
|
DeleteCertificateRequest.struct_class = Types::DeleteCertificateRequest
|
147
164
|
|
@@ -169,6 +186,9 @@ module Aws::ACM
|
|
169
186
|
|
170
187
|
DomainValidationOptionList.member = Shapes::ShapeRef.new(shape: DomainValidationOption)
|
171
188
|
|
189
|
+
ExpiryEventsConfiguration.add_member(:days_before_expiry, Shapes::ShapeRef.new(shape: PositiveInteger, location_name: "DaysBeforeExpiry"))
|
190
|
+
ExpiryEventsConfiguration.struct_class = Types::ExpiryEventsConfiguration
|
191
|
+
|
172
192
|
ExportCertificateRequest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CertificateArn"))
|
173
193
|
ExportCertificateRequest.add_member(:passphrase, Shapes::ShapeRef.new(shape: PassphraseBlob, required: true, location_name: "Passphrase"))
|
174
194
|
ExportCertificateRequest.struct_class = Types::ExportCertificateRequest
|
@@ -191,6 +211,9 @@ module Aws::ACM
|
|
191
211
|
Filters.add_member(:key_types, Shapes::ShapeRef.new(shape: KeyAlgorithmList, location_name: "keyTypes"))
|
192
212
|
Filters.struct_class = Types::Filters
|
193
213
|
|
214
|
+
GetAccountConfigurationResponse.add_member(:expiry_events, Shapes::ShapeRef.new(shape: ExpiryEventsConfiguration, location_name: "ExpiryEvents"))
|
215
|
+
GetAccountConfigurationResponse.struct_class = Types::GetAccountConfigurationResponse
|
216
|
+
|
194
217
|
GetCertificateRequest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CertificateArn"))
|
195
218
|
GetCertificateRequest.struct_class = Types::GetCertificateRequest
|
196
219
|
|
@@ -256,6 +279,10 @@ module Aws::ACM
|
|
256
279
|
ListTagsForCertificateResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
257
280
|
ListTagsForCertificateResponse.struct_class = Types::ListTagsForCertificateResponse
|
258
281
|
|
282
|
+
PutAccountConfigurationRequest.add_member(:expiry_events, Shapes::ShapeRef.new(shape: ExpiryEventsConfiguration, location_name: "ExpiryEvents"))
|
283
|
+
PutAccountConfigurationRequest.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: IdempotencyToken, required: true, location_name: "IdempotencyToken"))
|
284
|
+
PutAccountConfigurationRequest.struct_class = Types::PutAccountConfigurationRequest
|
285
|
+
|
259
286
|
RemoveTagsFromCertificateRequest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CertificateArn"))
|
260
287
|
RemoveTagsFromCertificateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
261
288
|
RemoveTagsFromCertificateRequest.struct_class = Types::RemoveTagsFromCertificateRequest
|
@@ -310,6 +337,9 @@ module Aws::ACM
|
|
310
337
|
TagPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
311
338
|
TagPolicyException.struct_class = Types::TagPolicyException
|
312
339
|
|
340
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: AvailabilityErrorMessage, location_name: "message"))
|
341
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
342
|
+
|
313
343
|
TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
314
344
|
TooManyTagsException.struct_class = Types::TooManyTagsException
|
315
345
|
|
@@ -319,6 +349,9 @@ module Aws::ACM
|
|
319
349
|
|
320
350
|
ValidationEmailList.member = Shapes::ShapeRef.new(shape: String)
|
321
351
|
|
352
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ValidationExceptionMessage, location_name: "message"))
|
353
|
+
ValidationException.struct_class = Types::ValidationException
|
354
|
+
|
322
355
|
|
323
356
|
# @api private
|
324
357
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -350,6 +383,7 @@ module Aws::ACM
|
|
350
383
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
351
384
|
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
352
385
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
386
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
353
387
|
end)
|
354
388
|
|
355
389
|
api.add_operation(:delete_certificate, Seahorse::Model::Operation.new.tap do |o|
|
@@ -384,6 +418,16 @@ module Aws::ACM
|
|
384
418
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
385
419
|
end)
|
386
420
|
|
421
|
+
api.add_operation(:get_account_configuration, Seahorse::Model::Operation.new.tap do |o|
|
422
|
+
o.name = "GetAccountConfiguration"
|
423
|
+
o.http_method = "POST"
|
424
|
+
o.http_request_uri = "/"
|
425
|
+
o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
426
|
+
o.output = Shapes::ShapeRef.new(shape: GetAccountConfigurationResponse)
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
428
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
429
|
+
end)
|
430
|
+
|
387
431
|
api.add_operation(:get_certificate, Seahorse::Model::Operation.new.tap do |o|
|
388
432
|
o.name = "GetCertificate"
|
389
433
|
o.http_method = "POST"
|
@@ -407,6 +451,7 @@ module Aws::ACM
|
|
407
451
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
408
452
|
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
409
453
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
454
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
410
455
|
end)
|
411
456
|
|
412
457
|
api.add_operation(:list_certificates, Seahorse::Model::Operation.new.tap do |o|
|
@@ -434,6 +479,18 @@ module Aws::ACM
|
|
434
479
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
435
480
|
end)
|
436
481
|
|
482
|
+
api.add_operation(:put_account_configuration, Seahorse::Model::Operation.new.tap do |o|
|
483
|
+
o.name = "PutAccountConfiguration"
|
484
|
+
o.http_method = "POST"
|
485
|
+
o.http_request_uri = "/"
|
486
|
+
o.input = Shapes::ShapeRef.new(shape: PutAccountConfigurationRequest)
|
487
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
488
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
489
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
490
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
491
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
492
|
+
end)
|
493
|
+
|
437
494
|
api.add_operation(:remove_tags_from_certificate, Seahorse::Model::Operation.new.tap do |o|
|
438
495
|
o.name = "RemoveTagsFromCertificate"
|
439
496
|
o.http_method = "POST"
|
@@ -445,6 +502,7 @@ module Aws::ACM
|
|
445
502
|
o.errors << Shapes::ShapeRef.new(shape: InvalidTagException)
|
446
503
|
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
447
504
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
505
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
448
506
|
end)
|
449
507
|
|
450
508
|
api.add_operation(:renew_certificate, Seahorse::Model::Operation.new.tap do |o|
|
data/lib/aws-sdk-acm/errors.rb
CHANGED
@@ -27,6 +27,8 @@ module Aws::ACM
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
31
|
+
# * {ConflictException}
|
30
32
|
# * {InvalidArgsException}
|
31
33
|
# * {InvalidArnException}
|
32
34
|
# * {InvalidDomainValidationOptionsException}
|
@@ -38,7 +40,9 @@ module Aws::ACM
|
|
38
40
|
# * {ResourceInUseException}
|
39
41
|
# * {ResourceNotFoundException}
|
40
42
|
# * {TagPolicyException}
|
43
|
+
# * {ThrottlingException}
|
41
44
|
# * {TooManyTagsException}
|
45
|
+
# * {ValidationException}
|
42
46
|
#
|
43
47
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
44
48
|
# if they are not defined above.
|
@@ -46,6 +50,36 @@ module Aws::ACM
|
|
46
50
|
|
47
51
|
extend Aws::Errors::DynamicErrors
|
48
52
|
|
53
|
+
class AccessDeniedException < ServiceError
|
54
|
+
|
55
|
+
# @param [Seahorse::Client::RequestContext] context
|
56
|
+
# @param [String] message
|
57
|
+
# @param [Aws::ACM::Types::AccessDeniedException] data
|
58
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
59
|
+
super(context, message, data)
|
60
|
+
end
|
61
|
+
|
62
|
+
# @return [String]
|
63
|
+
def message
|
64
|
+
@message || @data[:message]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
class ConflictException < ServiceError
|
69
|
+
|
70
|
+
# @param [Seahorse::Client::RequestContext] context
|
71
|
+
# @param [String] message
|
72
|
+
# @param [Aws::ACM::Types::ConflictException] data
|
73
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
74
|
+
super(context, message, data)
|
75
|
+
end
|
76
|
+
|
77
|
+
# @return [String]
|
78
|
+
def message
|
79
|
+
@message || @data[:message]
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
49
83
|
class InvalidArgsException < ServiceError
|
50
84
|
|
51
85
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -211,6 +245,21 @@ module Aws::ACM
|
|
211
245
|
end
|
212
246
|
end
|
213
247
|
|
248
|
+
class ThrottlingException < ServiceError
|
249
|
+
|
250
|
+
# @param [Seahorse::Client::RequestContext] context
|
251
|
+
# @param [String] message
|
252
|
+
# @param [Aws::ACM::Types::ThrottlingException] data
|
253
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
254
|
+
super(context, message, data)
|
255
|
+
end
|
256
|
+
|
257
|
+
# @return [String]
|
258
|
+
def message
|
259
|
+
@message || @data[:message]
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
214
263
|
class TooManyTagsException < ServiceError
|
215
264
|
|
216
265
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -226,5 +275,20 @@ module Aws::ACM
|
|
226
275
|
end
|
227
276
|
end
|
228
277
|
|
278
|
+
class ValidationException < ServiceError
|
279
|
+
|
280
|
+
# @param [Seahorse::Client::RequestContext] context
|
281
|
+
# @param [String] message
|
282
|
+
# @param [Aws::ACM::Types::ValidationException] data
|
283
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
284
|
+
super(context, message, data)
|
285
|
+
end
|
286
|
+
|
287
|
+
# @return [String]
|
288
|
+
def message
|
289
|
+
@message || @data[:message]
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
229
293
|
end
|
230
294
|
end
|
data/lib/aws-sdk-acm/types.rb
CHANGED
@@ -10,6 +10,19 @@
|
|
10
10
|
module Aws::ACM
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# You do not have access required to perform this action.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AccessDeniedException AWS API Documentation
|
19
|
+
#
|
20
|
+
class AccessDeniedException < Struct.new(
|
21
|
+
:message)
|
22
|
+
SENSITIVE = []
|
23
|
+
include Aws::Structure
|
24
|
+
end
|
25
|
+
|
13
26
|
# @note When making an API call, you may pass AddTagsToCertificateRequest
|
14
27
|
# data as a hash:
|
15
28
|
#
|
@@ -29,8 +42,8 @@ module Aws::ACM
|
|
29
42
|
#
|
30
43
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
31
44
|
#
|
32
|
-
# For more information about ARNs, see [Amazon Resource Names
|
33
|
-
#
|
45
|
+
# For more information about ARNs, see [Amazon Resource Names
|
46
|
+
# (ARNs)][1].
|
34
47
|
#
|
35
48
|
#
|
36
49
|
#
|
@@ -55,8 +68,8 @@ module Aws::ACM
|
|
55
68
|
#
|
56
69
|
# @!attribute [rw] certificate_arn
|
57
70
|
# The Amazon Resource Name (ARN) of the certificate. For more
|
58
|
-
# information about ARNs, see [Amazon Resource Names (ARNs)
|
59
|
-
#
|
71
|
+
# information about ARNs, see [Amazon Resource Names (ARNs)][1] in the
|
72
|
+
# *AWS General Reference*.
|
60
73
|
#
|
61
74
|
#
|
62
75
|
#
|
@@ -98,8 +111,7 @@ module Aws::ACM
|
|
98
111
|
# @return [String]
|
99
112
|
#
|
100
113
|
# @!attribute [rw] created_at
|
101
|
-
# The time at which the certificate was requested.
|
102
|
-
# only when the certificate type is `AMAZON_ISSUED`.
|
114
|
+
# The time at which the certificate was requested.
|
103
115
|
# @return [Time]
|
104
116
|
#
|
105
117
|
# @!attribute [rw] issued_at
|
@@ -293,8 +305,8 @@ module Aws::ACM
|
|
293
305
|
#
|
294
306
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
295
307
|
#
|
296
|
-
# For more information about ARNs, see [Amazon Resource Names
|
297
|
-
#
|
308
|
+
# For more information about ARNs, see [Amazon Resource Names
|
309
|
+
# (ARNs)][1].
|
298
310
|
#
|
299
311
|
#
|
300
312
|
#
|
@@ -315,6 +327,21 @@ module Aws::ACM
|
|
315
327
|
include Aws::Structure
|
316
328
|
end
|
317
329
|
|
330
|
+
# You are trying to update a resource or configuration that is already
|
331
|
+
# being created or updated. Wait for the previous operation to finish
|
332
|
+
# and try again.
|
333
|
+
#
|
334
|
+
# @!attribute [rw] message
|
335
|
+
# @return [String]
|
336
|
+
#
|
337
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ConflictException AWS API Documentation
|
338
|
+
#
|
339
|
+
class ConflictException < Struct.new(
|
340
|
+
:message)
|
341
|
+
SENSITIVE = []
|
342
|
+
include Aws::Structure
|
343
|
+
end
|
344
|
+
|
318
345
|
# @note When making an API call, you may pass DeleteCertificateRequest
|
319
346
|
# data as a hash:
|
320
347
|
#
|
@@ -328,8 +355,8 @@ module Aws::ACM
|
|
328
355
|
#
|
329
356
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
330
357
|
#
|
331
|
-
# For more information about ARNs, see [Amazon Resource Names
|
332
|
-
#
|
358
|
+
# For more information about ARNs, see [Amazon Resource Names
|
359
|
+
# (ARNs)][1].
|
333
360
|
#
|
334
361
|
#
|
335
362
|
#
|
@@ -357,8 +384,8 @@ module Aws::ACM
|
|
357
384
|
#
|
358
385
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
359
386
|
#
|
360
|
-
# For more information about ARNs, see [Amazon Resource Names
|
361
|
-
#
|
387
|
+
# For more information about ARNs, see [Amazon Resource Names
|
388
|
+
# (ARNs)][1].
|
362
389
|
#
|
363
390
|
#
|
364
391
|
#
|
@@ -490,6 +517,32 @@ module Aws::ACM
|
|
490
517
|
include Aws::Structure
|
491
518
|
end
|
492
519
|
|
520
|
+
# Object containing expiration events options associated with an AWS
|
521
|
+
# account.
|
522
|
+
#
|
523
|
+
# @note When making an API call, you may pass ExpiryEventsConfiguration
|
524
|
+
# data as a hash:
|
525
|
+
#
|
526
|
+
# {
|
527
|
+
# days_before_expiry: 1,
|
528
|
+
# }
|
529
|
+
#
|
530
|
+
# @!attribute [rw] days_before_expiry
|
531
|
+
# Specifies the number of days prior to certificate expiration when
|
532
|
+
# ACM starts generating `EventBridge` events. ACM sends one event per
|
533
|
+
# day per certificate until the certificate expires. By default,
|
534
|
+
# accounts receive events starting 45 days before certificate
|
535
|
+
# expiration.
|
536
|
+
# @return [Integer]
|
537
|
+
#
|
538
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExpiryEventsConfiguration AWS API Documentation
|
539
|
+
#
|
540
|
+
class ExpiryEventsConfiguration < Struct.new(
|
541
|
+
:days_before_expiry)
|
542
|
+
SENSITIVE = []
|
543
|
+
include Aws::Structure
|
544
|
+
end
|
545
|
+
|
493
546
|
# @note When making an API call, you may pass ExportCertificateRequest
|
494
547
|
# data as a hash:
|
495
548
|
#
|
@@ -613,8 +666,9 @@ module Aws::ACM
|
|
613
666
|
# Specify one or more algorithms that can be used to generate key
|
614
667
|
# pairs.
|
615
668
|
#
|
616
|
-
# Default filtering returns only `
|
617
|
-
#
|
669
|
+
# Default filtering returns only `RSA_1024` and `RSA_2048`
|
670
|
+
# certificates that have at least one domain. To return other
|
671
|
+
# certificate types, provide the desired type signatures in a
|
618
672
|
# comma-separated list. For example, `"keyTypes":
|
619
673
|
# ["RSA_2048,RSA_4096"]` returns both `RSA_2048` and `RSA_4096`
|
620
674
|
# certificates.
|
@@ -630,6 +684,19 @@ module Aws::ACM
|
|
630
684
|
include Aws::Structure
|
631
685
|
end
|
632
686
|
|
687
|
+
# @!attribute [rw] expiry_events
|
688
|
+
# Expiration events configuration options associated with the AWS
|
689
|
+
# account.
|
690
|
+
# @return [Types::ExpiryEventsConfiguration]
|
691
|
+
#
|
692
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfigurationResponse AWS API Documentation
|
693
|
+
#
|
694
|
+
class GetAccountConfigurationResponse < Struct.new(
|
695
|
+
:expiry_events)
|
696
|
+
SENSITIVE = []
|
697
|
+
include Aws::Structure
|
698
|
+
end
|
699
|
+
|
633
700
|
# @note When making an API call, you may pass GetCertificateRequest
|
634
701
|
# data as a hash:
|
635
702
|
#
|
@@ -642,8 +709,8 @@ module Aws::ACM
|
|
642
709
|
#
|
643
710
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
644
711
|
#
|
645
|
-
# For more information about ARNs, see [Amazon Resource Names
|
646
|
-
#
|
712
|
+
# For more information about ARNs, see [Amazon Resource Names
|
713
|
+
# (ARNs)][1].
|
647
714
|
#
|
648
715
|
#
|
649
716
|
#
|
@@ -941,8 +1008,8 @@ module Aws::ACM
|
|
941
1008
|
#
|
942
1009
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
943
1010
|
#
|
944
|
-
# For more information about ARNs, see [Amazon Resource Names
|
945
|
-
#
|
1011
|
+
# For more information about ARNs, see [Amazon Resource Names
|
1012
|
+
# (ARNs)][1].
|
946
1013
|
#
|
947
1014
|
#
|
948
1015
|
#
|
@@ -969,6 +1036,38 @@ module Aws::ACM
|
|
969
1036
|
include Aws::Structure
|
970
1037
|
end
|
971
1038
|
|
1039
|
+
# @note When making an API call, you may pass PutAccountConfigurationRequest
|
1040
|
+
# data as a hash:
|
1041
|
+
#
|
1042
|
+
# {
|
1043
|
+
# expiry_events: {
|
1044
|
+
# days_before_expiry: 1,
|
1045
|
+
# },
|
1046
|
+
# idempotency_token: "IdempotencyToken", # required
|
1047
|
+
# }
|
1048
|
+
#
|
1049
|
+
# @!attribute [rw] expiry_events
|
1050
|
+
# Specifies expiration events associated with an account.
|
1051
|
+
# @return [Types::ExpiryEventsConfiguration]
|
1052
|
+
#
|
1053
|
+
# @!attribute [rw] idempotency_token
|
1054
|
+
# Customer-chosen string used to distinguish between calls to
|
1055
|
+
# `PutAccountConfiguration`. Idempotency tokens time out after one
|
1056
|
+
# hour. If you call `PutAccountConfiguration` multiple times with the
|
1057
|
+
# same unexpired idempotency token, ACM treats it as the same request
|
1058
|
+
# and returns the original result. If you change the idempotency token
|
1059
|
+
# for each call, ACM treats each call as a new request.
|
1060
|
+
# @return [String]
|
1061
|
+
#
|
1062
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfigurationRequest AWS API Documentation
|
1063
|
+
#
|
1064
|
+
class PutAccountConfigurationRequest < Struct.new(
|
1065
|
+
:expiry_events,
|
1066
|
+
:idempotency_token)
|
1067
|
+
SENSITIVE = []
|
1068
|
+
include Aws::Structure
|
1069
|
+
end
|
1070
|
+
|
972
1071
|
# @note When making an API call, you may pass RemoveTagsFromCertificateRequest
|
973
1072
|
# data as a hash:
|
974
1073
|
#
|
@@ -988,8 +1087,8 @@ module Aws::ACM
|
|
988
1087
|
#
|
989
1088
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
990
1089
|
#
|
991
|
-
# For more information about ARNs, see [Amazon Resource Names
|
992
|
-
#
|
1090
|
+
# For more information about ARNs, see [Amazon Resource Names
|
1091
|
+
# (ARNs)][1].
|
993
1092
|
#
|
994
1093
|
#
|
995
1094
|
#
|
@@ -1022,8 +1121,8 @@ module Aws::ACM
|
|
1022
1121
|
#
|
1023
1122
|
# `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012`
|
1024
1123
|
#
|
1025
|
-
# For more information about ARNs, see [Amazon Resource Names
|
1026
|
-
#
|
1124
|
+
# For more information about ARNs, see [Amazon Resource Names
|
1125
|
+
# (ARNs)][1].
|
1027
1126
|
#
|
1028
1127
|
#
|
1029
1128
|
#
|
@@ -1412,6 +1511,19 @@ module Aws::ACM
|
|
1412
1511
|
include Aws::Structure
|
1413
1512
|
end
|
1414
1513
|
|
1514
|
+
# The request was denied because it exceeded a quota.
|
1515
|
+
#
|
1516
|
+
# @!attribute [rw] message
|
1517
|
+
# @return [String]
|
1518
|
+
#
|
1519
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ThrottlingException AWS API Documentation
|
1520
|
+
#
|
1521
|
+
class ThrottlingException < Struct.new(
|
1522
|
+
:message)
|
1523
|
+
SENSITIVE = []
|
1524
|
+
include Aws::Structure
|
1525
|
+
end
|
1526
|
+
|
1415
1527
|
# The request contains too many tags. Try the request again with fewer
|
1416
1528
|
# tags.
|
1417
1529
|
#
|
@@ -1462,5 +1574,18 @@ module Aws::ACM
|
|
1462
1574
|
include Aws::Structure
|
1463
1575
|
end
|
1464
1576
|
|
1577
|
+
# The supplied input failed to satisfy constraints of an AWS service.
|
1578
|
+
#
|
1579
|
+
# @!attribute [rw] message
|
1580
|
+
# @return [String]
|
1581
|
+
#
|
1582
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ValidationException AWS API Documentation
|
1583
|
+
#
|
1584
|
+
class ValidationException < Struct.new(
|
1585
|
+
:message)
|
1586
|
+
SENSITIVE = []
|
1587
|
+
include Aws::Structure
|
1588
|
+
end
|
1589
|
+
|
1465
1590
|
end
|
1466
1591
|
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.
|
4
|
+
version: 1.40.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: 2021-
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|