aws-sdk-signer 1.23.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,10 +29,13 @@ module Aws::Signer
29
29
  # ## Error Classes
30
30
  # * {AccessDeniedException}
31
31
  # * {BadRequestException}
32
+ # * {ConflictException}
32
33
  # * {InternalServiceErrorException}
33
34
  # * {NotFoundException}
34
35
  # * {ResourceNotFoundException}
36
+ # * {ServiceLimitExceededException}
35
37
  # * {ThrottlingException}
38
+ # * {TooManyRequestsException}
36
39
  # * {ValidationException}
37
40
  #
38
41
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -54,6 +57,11 @@ module Aws::Signer
54
57
  def message
55
58
  @message || @data[:message]
56
59
  end
60
+
61
+ # @return [String]
62
+ def code
63
+ @code || @data[:code]
64
+ end
57
65
  end
58
66
 
59
67
  class BadRequestException < ServiceError
@@ -69,6 +77,31 @@ module Aws::Signer
69
77
  def message
70
78
  @message || @data[:message]
71
79
  end
80
+
81
+ # @return [String]
82
+ def code
83
+ @code || @data[:code]
84
+ end
85
+ end
86
+
87
+ class ConflictException < ServiceError
88
+
89
+ # @param [Seahorse::Client::RequestContext] context
90
+ # @param [String] message
91
+ # @param [Aws::Signer::Types::ConflictException] data
92
+ def initialize(context, message, data = Aws::EmptyStructure.new)
93
+ super(context, message, data)
94
+ end
95
+
96
+ # @return [String]
97
+ def message
98
+ @message || @data[:message]
99
+ end
100
+
101
+ # @return [String]
102
+ def code
103
+ @code || @data[:code]
104
+ end
72
105
  end
73
106
 
74
107
  class InternalServiceErrorException < ServiceError
@@ -84,6 +117,11 @@ module Aws::Signer
84
117
  def message
85
118
  @message || @data[:message]
86
119
  end
120
+
121
+ # @return [String]
122
+ def code
123
+ @code || @data[:code]
124
+ end
87
125
  end
88
126
 
89
127
  class NotFoundException < ServiceError
@@ -99,6 +137,11 @@ module Aws::Signer
99
137
  def message
100
138
  @message || @data[:message]
101
139
  end
140
+
141
+ # @return [String]
142
+ def code
143
+ @code || @data[:code]
144
+ end
102
145
  end
103
146
 
104
147
  class ResourceNotFoundException < ServiceError
@@ -114,6 +157,31 @@ module Aws::Signer
114
157
  def message
115
158
  @message || @data[:message]
116
159
  end
160
+
161
+ # @return [String]
162
+ def code
163
+ @code || @data[:code]
164
+ end
165
+ end
166
+
167
+ class ServiceLimitExceededException < ServiceError
168
+
169
+ # @param [Seahorse::Client::RequestContext] context
170
+ # @param [String] message
171
+ # @param [Aws::Signer::Types::ServiceLimitExceededException] data
172
+ def initialize(context, message, data = Aws::EmptyStructure.new)
173
+ super(context, message, data)
174
+ end
175
+
176
+ # @return [String]
177
+ def message
178
+ @message || @data[:message]
179
+ end
180
+
181
+ # @return [String]
182
+ def code
183
+ @code || @data[:code]
184
+ end
117
185
  end
118
186
 
119
187
  class ThrottlingException < ServiceError
@@ -129,6 +197,31 @@ module Aws::Signer
129
197
  def message
130
198
  @message || @data[:message]
131
199
  end
200
+
201
+ # @return [String]
202
+ def code
203
+ @code || @data[:code]
204
+ end
205
+ end
206
+
207
+ class TooManyRequestsException < ServiceError
208
+
209
+ # @param [Seahorse::Client::RequestContext] context
210
+ # @param [String] message
211
+ # @param [Aws::Signer::Types::TooManyRequestsException] data
212
+ def initialize(context, message, data = Aws::EmptyStructure.new)
213
+ super(context, message, data)
214
+ end
215
+
216
+ # @return [String]
217
+ def message
218
+ @message || @data[:message]
219
+ end
220
+
221
+ # @return [String]
222
+ def code
223
+ @code || @data[:code]
224
+ end
132
225
  end
133
226
 
134
227
  class ValidationException < ServiceError
@@ -144,6 +237,11 @@ module Aws::Signer
144
237
  def message
145
238
  @message || @data[:message]
146
239
  end
240
+
241
+ # @return [String]
242
+ def code
243
+ @code || @data[:code]
244
+ end
147
245
  end
148
246
 
149
247
  end
@@ -15,10 +15,77 @@ module Aws::Signer
15
15
  # @!attribute [rw] message
16
16
  # @return [String]
17
17
  #
18
+ # @!attribute [rw] code
19
+ # @return [String]
20
+ #
18
21
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/AccessDeniedException AWS API Documentation
19
22
  #
20
23
  class AccessDeniedException < Struct.new(
21
- :message)
24
+ :message,
25
+ :code)
26
+ SENSITIVE = []
27
+ include Aws::Structure
28
+ end
29
+
30
+ # @note When making an API call, you may pass AddProfilePermissionRequest
31
+ # data as a hash:
32
+ #
33
+ # {
34
+ # profile_name: "ProfileName", # required
35
+ # profile_version: "ProfileVersion",
36
+ # action: "String", # required
37
+ # principal: "String", # required
38
+ # revision_id: "String",
39
+ # statement_id: "String", # required
40
+ # }
41
+ #
42
+ # @!attribute [rw] profile_name
43
+ # The human-readable name of the signing profile.
44
+ # @return [String]
45
+ #
46
+ # @!attribute [rw] profile_version
47
+ # The version of the signing profile.
48
+ # @return [String]
49
+ #
50
+ # @!attribute [rw] action
51
+ # The AWS Signer action permitted as part of cross-account
52
+ # permissions.
53
+ # @return [String]
54
+ #
55
+ # @!attribute [rw] principal
56
+ # The AWS principal receiving cross-account permissions. This may be
57
+ # an IAM role or another AWS account ID.
58
+ # @return [String]
59
+ #
60
+ # @!attribute [rw] revision_id
61
+ # A unique identifier for the current profile revision.
62
+ # @return [String]
63
+ #
64
+ # @!attribute [rw] statement_id
65
+ # A unique identifier for the cross-account permission statement.
66
+ # @return [String]
67
+ #
68
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/AddProfilePermissionRequest AWS API Documentation
69
+ #
70
+ class AddProfilePermissionRequest < Struct.new(
71
+ :profile_name,
72
+ :profile_version,
73
+ :action,
74
+ :principal,
75
+ :revision_id,
76
+ :statement_id)
77
+ SENSITIVE = []
78
+ include Aws::Structure
79
+ end
80
+
81
+ # @!attribute [rw] revision_id
82
+ # A unique identifier for the current profile revision.
83
+ # @return [String]
84
+ #
85
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/AddProfilePermissionResponse AWS API Documentation
86
+ #
87
+ class AddProfilePermissionResponse < Struct.new(
88
+ :revision_id)
22
89
  SENSITIVE = []
23
90
  include Aws::Structure
24
91
  end
@@ -30,10 +97,14 @@ module Aws::Signer
30
97
  # @!attribute [rw] message
31
98
  # @return [String]
32
99
  #
100
+ # @!attribute [rw] code
101
+ # @return [String]
102
+ #
33
103
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/BadRequestException AWS API Documentation
34
104
  #
35
105
  class BadRequestException < Struct.new(
36
- :message)
106
+ :message,
107
+ :code)
37
108
  SENSITIVE = []
38
109
  include Aws::Structure
39
110
  end
@@ -57,6 +128,23 @@ module Aws::Signer
57
128
  include Aws::Structure
58
129
  end
59
130
 
131
+ # The resource encountered a conflicting state.
132
+ #
133
+ # @!attribute [rw] message
134
+ # @return [String]
135
+ #
136
+ # @!attribute [rw] code
137
+ # @return [String]
138
+ #
139
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ConflictException AWS API Documentation
140
+ #
141
+ class ConflictException < Struct.new(
142
+ :message,
143
+ :code)
144
+ SENSITIVE = []
145
+ include Aws::Structure
146
+ end
147
+
60
148
  # @note When making an API call, you may pass DescribeSigningJobRequest
61
149
  # data as a hash:
62
150
  #
@@ -94,10 +182,19 @@ module Aws::Signer
94
182
  # distributed.
95
183
  # @return [String]
96
184
  #
185
+ # @!attribute [rw] platform_display_name
186
+ # A human-readable name for the signing platform associated with the
187
+ # signing job.
188
+ # @return [String]
189
+ #
97
190
  # @!attribute [rw] profile_name
98
191
  # The name of the profile that initiated the signing operation.
99
192
  # @return [String]
100
193
  #
194
+ # @!attribute [rw] profile_version
195
+ # The version of the signing profile used to initiate the signing job.
196
+ # @return [String]
197
+ #
101
198
  # @!attribute [rw] overrides
102
199
  # A list of any overrides that were applied to the signing operation.
103
200
  # @return [Types::SigningPlatformOverrides]
@@ -116,6 +213,11 @@ module Aws::Signer
116
213
  # Date and time that the signing job was completed.
117
214
  # @return [Time]
118
215
  #
216
+ # @!attribute [rw] signature_expires_at
217
+ # Thr expiration timestamp for the signature generated by the signing
218
+ # job.
219
+ # @return [Time]
220
+ #
119
221
  # @!attribute [rw] requested_by
120
222
  # The IAM principal that requested the signing job.
121
223
  # @return [String]
@@ -128,11 +230,25 @@ module Aws::Signer
128
230
  # String value that contains the status reason.
129
231
  # @return [String]
130
232
  #
233
+ # @!attribute [rw] revocation_record
234
+ # A revocation record if the signature generated by the signing job
235
+ # has been revoked. Contains a timestamp and the ID of the IAM entity
236
+ # that revoked the signature.
237
+ # @return [Types::SigningJobRevocationRecord]
238
+ #
131
239
  # @!attribute [rw] signed_object
132
240
  # Name of the S3 bucket where the signed code image is saved by code
133
241
  # signing.
134
242
  # @return [Types::SignedObject]
135
243
  #
244
+ # @!attribute [rw] job_owner
245
+ # The AWS account ID of the job owner.
246
+ # @return [String]
247
+ #
248
+ # @!attribute [rw] job_invoker
249
+ # The IAM entity that initiated the signing job.
250
+ # @return [String]
251
+ #
136
252
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/DescribeSigningJobResponse AWS API Documentation
137
253
  #
138
254
  class DescribeSigningJobResponse < Struct.new(
@@ -140,15 +256,21 @@ module Aws::Signer
140
256
  :source,
141
257
  :signing_material,
142
258
  :platform_id,
259
+ :platform_display_name,
143
260
  :profile_name,
261
+ :profile_version,
144
262
  :overrides,
145
263
  :signing_parameters,
146
264
  :created_at,
147
265
  :completed_at,
266
+ :signature_expires_at,
148
267
  :requested_by,
149
268
  :status,
150
269
  :status_reason,
151
- :signed_object)
270
+ :revocation_record,
271
+ :signed_object,
272
+ :job_owner,
273
+ :job_invoker)
152
274
  SENSITIVE = []
153
275
  include Aws::Structure
154
276
  end
@@ -251,6 +373,11 @@ module Aws::Signer
251
373
  # target platform.
252
374
  # @return [Integer]
253
375
  #
376
+ # @!attribute [rw] revocation_supported
377
+ # A flag indicating whether signatures generated for the signing
378
+ # platform can be revoked.
379
+ # @return [Boolean]
380
+ #
254
381
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningPlatformResponse AWS API Documentation
255
382
  #
256
383
  class GetSigningPlatformResponse < Struct.new(
@@ -261,7 +388,8 @@ module Aws::Signer
261
388
  :category,
262
389
  :signing_configuration,
263
390
  :signing_image_format,
264
- :max_size_in_mb)
391
+ :max_size_in_mb,
392
+ :revocation_supported)
265
393
  SENSITIVE = []
266
394
  include Aws::Structure
267
395
  end
@@ -271,16 +399,22 @@ module Aws::Signer
271
399
  #
272
400
  # {
273
401
  # profile_name: "ProfileName", # required
402
+ # profile_owner: "AccountId",
274
403
  # }
275
404
  #
276
405
  # @!attribute [rw] profile_name
277
406
  # The name of the target signing profile.
278
407
  # @return [String]
279
408
  #
409
+ # @!attribute [rw] profile_owner
410
+ # The AWS account ID of the profile owner.
411
+ # @return [String]
412
+ #
280
413
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningProfileRequest AWS API Documentation
281
414
  #
282
415
  class GetSigningProfileRequest < Struct.new(
283
- :profile_name)
416
+ :profile_name,
417
+ :profile_owner)
284
418
  SENSITIVE = []
285
419
  include Aws::Structure
286
420
  end
@@ -289,6 +423,18 @@ module Aws::Signer
289
423
  # The name of the target signing profile.
290
424
  # @return [String]
291
425
  #
426
+ # @!attribute [rw] profile_version
427
+ # The current version of the signing profile.
428
+ # @return [String]
429
+ #
430
+ # @!attribute [rw] profile_version_arn
431
+ # The signing profile ARN, including the profile version.
432
+ # @return [String]
433
+ #
434
+ # @!attribute [rw] revocation_record
435
+ # Revocation information for a signing profile.
436
+ # @return [Types::SigningProfileRevocationRecord]
437
+ #
292
438
  # @!attribute [rw] signing_material
293
439
  # The ARN of the certificate that the target profile uses for signing
294
440
  # operations.
@@ -298,6 +444,15 @@ module Aws::Signer
298
444
  # The ID of the platform that is used by the target signing profile.
299
445
  # @return [String]
300
446
  #
447
+ # @!attribute [rw] platform_display_name
448
+ # A human-readable name for the signing platform associated with the
449
+ # signing profile.
450
+ # @return [String]
451
+ #
452
+ # @!attribute [rw] signature_validity_period
453
+ # The validity period for a signing job.
454
+ # @return [Types::SignatureValidityPeriod]
455
+ #
301
456
  # @!attribute [rw] overrides
302
457
  # A list of overrides applied by the target signing profile for
303
458
  # signing operations.
@@ -312,6 +467,10 @@ module Aws::Signer
312
467
  # The status of the target signing profile.
313
468
  # @return [String]
314
469
  #
470
+ # @!attribute [rw] status_reason
471
+ # Reason for the status of the target signing profile.
472
+ # @return [String]
473
+ #
315
474
  # @!attribute [rw] arn
316
475
  # The Amazon Resource Name (ARN) for the signing profile.
317
476
  # @return [String]
@@ -324,11 +483,17 @@ module Aws::Signer
324
483
  #
325
484
  class GetSigningProfileResponse < Struct.new(
326
485
  :profile_name,
486
+ :profile_version,
487
+ :profile_version_arn,
488
+ :revocation_record,
327
489
  :signing_material,
328
490
  :platform_id,
491
+ :platform_display_name,
492
+ :signature_validity_period,
329
493
  :overrides,
330
494
  :signing_parameters,
331
495
  :status,
496
+ :status_reason,
332
497
  :arn,
333
498
  :tags)
334
499
  SENSITIVE = []
@@ -359,10 +524,68 @@ module Aws::Signer
359
524
  # @!attribute [rw] message
360
525
  # @return [String]
361
526
  #
527
+ # @!attribute [rw] code
528
+ # @return [String]
529
+ #
362
530
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/InternalServiceErrorException AWS API Documentation
363
531
  #
364
532
  class InternalServiceErrorException < Struct.new(
365
- :message)
533
+ :message,
534
+ :code)
535
+ SENSITIVE = []
536
+ include Aws::Structure
537
+ end
538
+
539
+ # @note When making an API call, you may pass ListProfilePermissionsRequest
540
+ # data as a hash:
541
+ #
542
+ # {
543
+ # profile_name: "ProfileName", # required
544
+ # next_token: "String",
545
+ # }
546
+ #
547
+ # @!attribute [rw] profile_name
548
+ # Name of the signing profile containing the cross-account
549
+ # permissions.
550
+ # @return [String]
551
+ #
552
+ # @!attribute [rw] next_token
553
+ # String for specifying the next set of paginated results.
554
+ # @return [String]
555
+ #
556
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListProfilePermissionsRequest AWS API Documentation
557
+ #
558
+ class ListProfilePermissionsRequest < Struct.new(
559
+ :profile_name,
560
+ :next_token)
561
+ SENSITIVE = []
562
+ include Aws::Structure
563
+ end
564
+
565
+ # @!attribute [rw] revision_id
566
+ # The identifier for the current revision of profile permissions.
567
+ # @return [String]
568
+ #
569
+ # @!attribute [rw] policy_size_bytes
570
+ # Total size of the policy associated with the Signing Profile in
571
+ # bytes.
572
+ # @return [Integer]
573
+ #
574
+ # @!attribute [rw] permissions
575
+ # List of permissions associated with the Signing Profile.
576
+ # @return [Array<Types::Permission>]
577
+ #
578
+ # @!attribute [rw] next_token
579
+ # String for specifying the next set of paginated results.
580
+ # @return [String]
581
+ #
582
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListProfilePermissionsResponse AWS API Documentation
583
+ #
584
+ class ListProfilePermissionsResponse < Struct.new(
585
+ :revision_id,
586
+ :policy_size_bytes,
587
+ :permissions,
588
+ :next_token)
366
589
  SENSITIVE = []
367
590
  include Aws::Structure
368
591
  end
@@ -376,6 +599,10 @@ module Aws::Signer
376
599
  # requested_by: "RequestedBy",
377
600
  # max_results: 1,
378
601
  # next_token: "NextToken",
602
+ # is_revoked: false,
603
+ # signature_expires_before: Time.now,
604
+ # signature_expires_after: Time.now,
605
+ # job_invoker: "AccountId",
379
606
  # }
380
607
  #
381
608
  # @!attribute [rw] status
@@ -406,6 +633,25 @@ module Aws::Signer
406
633
  # `nextToken` from the response that you just received.
407
634
  # @return [String]
408
635
  #
636
+ # @!attribute [rw] is_revoked
637
+ # Filters results to return only signing jobs with revoked signatures.
638
+ # @return [Boolean]
639
+ #
640
+ # @!attribute [rw] signature_expires_before
641
+ # Filters results to return only signing jobs with signatures expiring
642
+ # before a specified timestamp.
643
+ # @return [Time]
644
+ #
645
+ # @!attribute [rw] signature_expires_after
646
+ # Filters results to return only signing jobs with signatures expiring
647
+ # after a specified timestamp.
648
+ # @return [Time]
649
+ #
650
+ # @!attribute [rw] job_invoker
651
+ # Filters results to return only signing jobs initiated by a specified
652
+ # IAM entity.
653
+ # @return [String]
654
+ #
409
655
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobsRequest AWS API Documentation
410
656
  #
411
657
  class ListSigningJobsRequest < Struct.new(
@@ -413,7 +659,11 @@ module Aws::Signer
413
659
  :platform_id,
414
660
  :requested_by,
415
661
  :max_results,
416
- :next_token)
662
+ :next_token,
663
+ :is_revoked,
664
+ :signature_expires_before,
665
+ :signature_expires_after,
666
+ :job_invoker)
417
667
  SENSITIVE = []
418
668
  include Aws::Structure
419
669
  end
@@ -505,6 +755,8 @@ module Aws::Signer
505
755
  # include_canceled: false,
506
756
  # max_results: 1,
507
757
  # next_token: "NextToken",
758
+ # platform_id: "PlatformId",
759
+ # statuses: ["Active"], # accepts Active, Canceled, Revoked
508
760
  # }
509
761
  #
510
762
  # @!attribute [rw] include_canceled
@@ -523,12 +775,24 @@ module Aws::Signer
523
775
  # `nextToken` from the response that you just received.
524
776
  # @return [String]
525
777
  #
778
+ # @!attribute [rw] platform_id
779
+ # Filters results to return only signing jobs initiated for a
780
+ # specified signing platform.
781
+ # @return [String]
782
+ #
783
+ # @!attribute [rw] statuses
784
+ # Filters results to return only signing jobs with statuses in the
785
+ # specified list.
786
+ # @return [Array<String>]
787
+ #
526
788
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningProfilesRequest AWS API Documentation
527
789
  #
528
790
  class ListSigningProfilesRequest < Struct.new(
529
791
  :include_canceled,
530
792
  :max_results,
531
- :next_token)
793
+ :next_token,
794
+ :platform_id,
795
+ :statuses)
532
796
  SENSITIVE = []
533
797
  include Aws::Structure
534
798
  end
@@ -588,10 +852,43 @@ module Aws::Signer
588
852
  # @!attribute [rw] message
589
853
  # @return [String]
590
854
  #
855
+ # @!attribute [rw] code
856
+ # @return [String]
857
+ #
591
858
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/NotFoundException AWS API Documentation
592
859
  #
593
860
  class NotFoundException < Struct.new(
594
- :message)
861
+ :message,
862
+ :code)
863
+ SENSITIVE = []
864
+ include Aws::Structure
865
+ end
866
+
867
+ # A cross-account permission for a signing profile.
868
+ #
869
+ # @!attribute [rw] action
870
+ # An AWS Signer action permitted as part of cross-account permissions.
871
+ # @return [String]
872
+ #
873
+ # @!attribute [rw] principal
874
+ # The AWS principal that has been granted a cross-account permission.
875
+ # @return [String]
876
+ #
877
+ # @!attribute [rw] statement_id
878
+ # A unique identifier for a cross-account permission statement.
879
+ # @return [String]
880
+ #
881
+ # @!attribute [rw] profile_version
882
+ # The signing profile version that a permission applies to.
883
+ # @return [String]
884
+ #
885
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/Permission AWS API Documentation
886
+ #
887
+ class Permission < Struct.new(
888
+ :action,
889
+ :principal,
890
+ :statement_id,
891
+ :profile_version)
595
892
  SENSITIVE = []
596
893
  include Aws::Structure
597
894
  end
@@ -601,9 +898,13 @@ module Aws::Signer
601
898
  #
602
899
  # {
603
900
  # profile_name: "ProfileName", # required
604
- # signing_material: { # required
901
+ # signing_material: {
605
902
  # certificate_arn: "CertificateArn", # required
606
903
  # },
904
+ # signature_validity_period: {
905
+ # value: 1,
906
+ # type: "DAYS", # accepts DAYS, MONTHS, YEARS
907
+ # },
607
908
  # platform_id: "PlatformId", # required
608
909
  # overrides: {
609
910
  # signing_configuration: {
@@ -629,6 +930,12 @@ module Aws::Signer
629
930
  # code with the new signing profile.
630
931
  # @return [Types::SigningMaterial]
631
932
  #
933
+ # @!attribute [rw] signature_validity_period
934
+ # The default validity period override for any signature generated
935
+ # using this signing profile. If unspecified, the default is 135
936
+ # months.
937
+ # @return [Types::SignatureValidityPeriod]
938
+ #
632
939
  # @!attribute [rw] platform_id
633
940
  # The ID of the signing platform to be created.
634
941
  # @return [String]
@@ -654,6 +961,7 @@ module Aws::Signer
654
961
  class PutSigningProfileRequest < Struct.new(
655
962
  :profile_name,
656
963
  :signing_material,
964
+ :signature_validity_period,
657
965
  :platform_id,
658
966
  :overrides,
659
967
  :signing_parameters,
@@ -666,10 +974,65 @@ module Aws::Signer
666
974
  # The Amazon Resource Name (ARN) of the signing profile created.
667
975
  # @return [String]
668
976
  #
977
+ # @!attribute [rw] profile_version
978
+ # The version of the signing profile being created.
979
+ # @return [String]
980
+ #
981
+ # @!attribute [rw] profile_version_arn
982
+ # The signing profile ARN, including the profile version.
983
+ # @return [String]
984
+ #
669
985
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/PutSigningProfileResponse AWS API Documentation
670
986
  #
671
987
  class PutSigningProfileResponse < Struct.new(
672
- :arn)
988
+ :arn,
989
+ :profile_version,
990
+ :profile_version_arn)
991
+ SENSITIVE = []
992
+ include Aws::Structure
993
+ end
994
+
995
+ # @note When making an API call, you may pass RemoveProfilePermissionRequest
996
+ # data as a hash:
997
+ #
998
+ # {
999
+ # profile_name: "ProfileName", # required
1000
+ # revision_id: "String", # required
1001
+ # statement_id: "String", # required
1002
+ # }
1003
+ #
1004
+ # @!attribute [rw] profile_name
1005
+ # A human-readable name for the signing profile with permissions to be
1006
+ # removed.
1007
+ # @return [String]
1008
+ #
1009
+ # @!attribute [rw] revision_id
1010
+ # An identifier for the current revision of the signing profile
1011
+ # permissions.
1012
+ # @return [String]
1013
+ #
1014
+ # @!attribute [rw] statement_id
1015
+ # A unique identifier for the cross-account permissions statement.
1016
+ # @return [String]
1017
+ #
1018
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RemoveProfilePermissionRequest AWS API Documentation
1019
+ #
1020
+ class RemoveProfilePermissionRequest < Struct.new(
1021
+ :profile_name,
1022
+ :revision_id,
1023
+ :statement_id)
1024
+ SENSITIVE = []
1025
+ include Aws::Structure
1026
+ end
1027
+
1028
+ # @!attribute [rw] revision_id
1029
+ # An identifier for the current revision of the profile permissions.
1030
+ # @return [String]
1031
+ #
1032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RemoveProfilePermissionResponse AWS API Documentation
1033
+ #
1034
+ class RemoveProfilePermissionResponse < Struct.new(
1035
+ :revision_id)
673
1036
  SENSITIVE = []
674
1037
  include Aws::Structure
675
1038
  end
@@ -679,10 +1042,84 @@ module Aws::Signer
679
1042
  # @!attribute [rw] message
680
1043
  # @return [String]
681
1044
  #
1045
+ # @!attribute [rw] code
1046
+ # @return [String]
1047
+ #
682
1048
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ResourceNotFoundException AWS API Documentation
683
1049
  #
684
1050
  class ResourceNotFoundException < Struct.new(
685
- :message)
1051
+ :message,
1052
+ :code)
1053
+ SENSITIVE = []
1054
+ include Aws::Structure
1055
+ end
1056
+
1057
+ # @note When making an API call, you may pass RevokeSignatureRequest
1058
+ # data as a hash:
1059
+ #
1060
+ # {
1061
+ # job_id: "JobId", # required
1062
+ # job_owner: "AccountId",
1063
+ # reason: "RevocationReasonString", # required
1064
+ # }
1065
+ #
1066
+ # @!attribute [rw] job_id
1067
+ # ID of the signing job to be revoked.
1068
+ # @return [String]
1069
+ #
1070
+ # @!attribute [rw] job_owner
1071
+ # AWS account ID of the job owner.
1072
+ # @return [String]
1073
+ #
1074
+ # @!attribute [rw] reason
1075
+ # The reason for revoking the signing job.
1076
+ # @return [String]
1077
+ #
1078
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RevokeSignatureRequest AWS API Documentation
1079
+ #
1080
+ class RevokeSignatureRequest < Struct.new(
1081
+ :job_id,
1082
+ :job_owner,
1083
+ :reason)
1084
+ SENSITIVE = []
1085
+ include Aws::Structure
1086
+ end
1087
+
1088
+ # @note When making an API call, you may pass RevokeSigningProfileRequest
1089
+ # data as a hash:
1090
+ #
1091
+ # {
1092
+ # profile_name: "ProfileName", # required
1093
+ # profile_version: "ProfileVersion", # required
1094
+ # reason: "RevocationReasonString", # required
1095
+ # effective_time: Time.now, # required
1096
+ # }
1097
+ #
1098
+ # @!attribute [rw] profile_name
1099
+ # The name of the signing profile to be revoked.
1100
+ # @return [String]
1101
+ #
1102
+ # @!attribute [rw] profile_version
1103
+ # The version of the signing profile to be revoked.
1104
+ # @return [String]
1105
+ #
1106
+ # @!attribute [rw] reason
1107
+ # The reason for revoking a signing profile.
1108
+ # @return [String]
1109
+ #
1110
+ # @!attribute [rw] effective_time
1111
+ # A timestamp for when revocation of a Signing Profile should become
1112
+ # effective. Signatures generated using the signing profile after this
1113
+ # timestamp are not trusted.
1114
+ # @return [Time]
1115
+ #
1116
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RevokeSigningProfileRequest AWS API Documentation
1117
+ #
1118
+ class RevokeSigningProfileRequest < Struct.new(
1119
+ :profile_name,
1120
+ :profile_version,
1121
+ :reason,
1122
+ :effective_time)
686
1123
  SENSITIVE = []
687
1124
  include Aws::Structure
688
1125
  end
@@ -770,6 +1207,50 @@ module Aws::Signer
770
1207
  include Aws::Structure
771
1208
  end
772
1209
 
1210
+ # The client is making a request that exceeds service limits.
1211
+ #
1212
+ # @!attribute [rw] message
1213
+ # @return [String]
1214
+ #
1215
+ # @!attribute [rw] code
1216
+ # @return [String]
1217
+ #
1218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ServiceLimitExceededException AWS API Documentation
1219
+ #
1220
+ class ServiceLimitExceededException < Struct.new(
1221
+ :message,
1222
+ :code)
1223
+ SENSITIVE = []
1224
+ include Aws::Structure
1225
+ end
1226
+
1227
+ # The validity period for a signing job.
1228
+ #
1229
+ # @note When making an API call, you may pass SignatureValidityPeriod
1230
+ # data as a hash:
1231
+ #
1232
+ # {
1233
+ # value: 1,
1234
+ # type: "DAYS", # accepts DAYS, MONTHS, YEARS
1235
+ # }
1236
+ #
1237
+ # @!attribute [rw] value
1238
+ # The numerical value of the time unit for signature validity.
1239
+ # @return [Integer]
1240
+ #
1241
+ # @!attribute [rw] type
1242
+ # The time unit for signature validity.
1243
+ # @return [String]
1244
+ #
1245
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SignatureValidityPeriod AWS API Documentation
1246
+ #
1247
+ class SignatureValidityPeriod < Struct.new(
1248
+ :value,
1249
+ :type)
1250
+ SENSITIVE = []
1251
+ include Aws::Structure
1252
+ end
1253
+
773
1254
  # Points to an `S3SignedObject` object that contains information about
774
1255
  # your signed code image.
775
1256
  #
@@ -884,6 +1365,38 @@ module Aws::Signer
884
1365
  # The status of the signing job.
885
1366
  # @return [String]
886
1367
  #
1368
+ # @!attribute [rw] is_revoked
1369
+ # Indicates whether the signing job is revoked.
1370
+ # @return [Boolean]
1371
+ #
1372
+ # @!attribute [rw] profile_name
1373
+ # The name of the signing profile that created a signing job.
1374
+ # @return [String]
1375
+ #
1376
+ # @!attribute [rw] profile_version
1377
+ # The version of the signing profile that created a signing job.
1378
+ # @return [String]
1379
+ #
1380
+ # @!attribute [rw] platform_id
1381
+ # The unique identifier for a signing platform.
1382
+ # @return [String]
1383
+ #
1384
+ # @!attribute [rw] platform_display_name
1385
+ # The name of a signing platform.
1386
+ # @return [String]
1387
+ #
1388
+ # @!attribute [rw] signature_expires_at
1389
+ # The time when the signature of a signing job expires.
1390
+ # @return [Time]
1391
+ #
1392
+ # @!attribute [rw] job_owner
1393
+ # The AWS account ID of the job owner.
1394
+ # @return [String]
1395
+ #
1396
+ # @!attribute [rw] job_invoker
1397
+ # The AWS account ID of the job invoker.
1398
+ # @return [String]
1399
+ #
887
1400
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningJob AWS API Documentation
888
1401
  #
889
1402
  class SigningJob < Struct.new(
@@ -892,7 +1405,39 @@ module Aws::Signer
892
1405
  :signed_object,
893
1406
  :signing_material,
894
1407
  :created_at,
895
- :status)
1408
+ :status,
1409
+ :is_revoked,
1410
+ :profile_name,
1411
+ :profile_version,
1412
+ :platform_id,
1413
+ :platform_display_name,
1414
+ :signature_expires_at,
1415
+ :job_owner,
1416
+ :job_invoker)
1417
+ SENSITIVE = []
1418
+ include Aws::Structure
1419
+ end
1420
+
1421
+ # Revocation information for a signing job.
1422
+ #
1423
+ # @!attribute [rw] reason
1424
+ # A caller-supplied reason for revocation.
1425
+ # @return [String]
1426
+ #
1427
+ # @!attribute [rw] revoked_at
1428
+ # The time of revocation.
1429
+ # @return [Time]
1430
+ #
1431
+ # @!attribute [rw] revoked_by
1432
+ # The identity of the revoker.
1433
+ # @return [String]
1434
+ #
1435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningJobRevocationRecord AWS API Documentation
1436
+ #
1437
+ class SigningJobRevocationRecord < Struct.new(
1438
+ :reason,
1439
+ :revoked_at,
1440
+ :revoked_by)
896
1441
  SENSITIVE = []
897
1442
  include Aws::Structure
898
1443
  end
@@ -957,6 +1502,10 @@ module Aws::Signer
957
1502
  # signing platform.
958
1503
  # @return [Integer]
959
1504
  #
1505
+ # @!attribute [rw] revocation_supported
1506
+ # Indicates whether revocation is supported for the platform.
1507
+ # @return [Boolean]
1508
+ #
960
1509
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningPlatform AWS API Documentation
961
1510
  #
962
1511
  class SigningPlatform < Struct.new(
@@ -967,7 +1516,8 @@ module Aws::Signer
967
1516
  :category,
968
1517
  :signing_configuration,
969
1518
  :signing_image_format,
970
- :max_size_in_mb)
1519
+ :max_size_in_mb,
1520
+ :revocation_supported)
971
1521
  SENSITIVE = []
972
1522
  include Aws::Structure
973
1523
  end
@@ -1017,14 +1567,31 @@ module Aws::Signer
1017
1567
  # The name of the signing profile.
1018
1568
  # @return [String]
1019
1569
  #
1570
+ # @!attribute [rw] profile_version
1571
+ # The version of a signing profile.
1572
+ # @return [String]
1573
+ #
1574
+ # @!attribute [rw] profile_version_arn
1575
+ # The ARN of a signing profile, including the profile version.
1576
+ # @return [String]
1577
+ #
1020
1578
  # @!attribute [rw] signing_material
1021
1579
  # The ACM certificate that is available for use by a signing profile.
1022
1580
  # @return [Types::SigningMaterial]
1023
1581
  #
1582
+ # @!attribute [rw] signature_validity_period
1583
+ # The validity period for a signing job created using this signing
1584
+ # profile.
1585
+ # @return [Types::SignatureValidityPeriod]
1586
+ #
1024
1587
  # @!attribute [rw] platform_id
1025
1588
  # The ID of a platform that is available for use by a signing profile.
1026
1589
  # @return [String]
1027
1590
  #
1591
+ # @!attribute [rw] platform_display_name
1592
+ # The name of the signing platform.
1593
+ # @return [String]
1594
+ #
1028
1595
  # @!attribute [rw] signing_parameters
1029
1596
  # The parameters that are available for use by a code signing user.
1030
1597
  # @return [Hash<String,String>]
@@ -1045,8 +1612,12 @@ module Aws::Signer
1045
1612
  #
1046
1613
  class SigningProfile < Struct.new(
1047
1614
  :profile_name,
1615
+ :profile_version,
1616
+ :profile_version_arn,
1048
1617
  :signing_material,
1618
+ :signature_validity_period,
1049
1619
  :platform_id,
1620
+ :platform_display_name,
1050
1621
  :signing_parameters,
1051
1622
  :status,
1052
1623
  :arn,
@@ -1055,6 +1626,30 @@ module Aws::Signer
1055
1626
  include Aws::Structure
1056
1627
  end
1057
1628
 
1629
+ # Revocation information for a signing profile.
1630
+ #
1631
+ # @!attribute [rw] revocation_effective_from
1632
+ # The time when revocation becomes effective.
1633
+ # @return [Time]
1634
+ #
1635
+ # @!attribute [rw] revoked_at
1636
+ # The time when the signing profile was revoked.
1637
+ # @return [Time]
1638
+ #
1639
+ # @!attribute [rw] revoked_by
1640
+ # The identity of the revoker.
1641
+ # @return [String]
1642
+ #
1643
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningProfileRevocationRecord AWS API Documentation
1644
+ #
1645
+ class SigningProfileRevocationRecord < Struct.new(
1646
+ :revocation_effective_from,
1647
+ :revoked_at,
1648
+ :revoked_by)
1649
+ SENSITIVE = []
1650
+ include Aws::Structure
1651
+ end
1652
+
1058
1653
  # An `S3Source` object that contains information about the S3 bucket
1059
1654
  # where you saved your unsigned code.
1060
1655
  #
@@ -1098,8 +1693,9 @@ module Aws::Signer
1098
1693
  # prefix: "Prefix",
1099
1694
  # },
1100
1695
  # },
1101
- # profile_name: "ProfileName",
1696
+ # profile_name: "ProfileName", # required
1102
1697
  # client_request_token: "ClientRequestToken", # required
1698
+ # profile_owner: "AccountId",
1103
1699
  # }
1104
1700
  #
1105
1701
  # @!attribute [rw] source
@@ -1125,13 +1721,18 @@ module Aws::Signer
1125
1721
  # not need to pass this option.
1126
1722
  # @return [String]
1127
1723
  #
1724
+ # @!attribute [rw] profile_owner
1725
+ # The AWS account ID of the signing profile owner.
1726
+ # @return [String]
1727
+ #
1128
1728
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/StartSigningJobRequest AWS API Documentation
1129
1729
  #
1130
1730
  class StartSigningJobRequest < Struct.new(
1131
1731
  :source,
1132
1732
  :destination,
1133
1733
  :profile_name,
1134
- :client_request_token)
1734
+ :client_request_token,
1735
+ :profile_owner)
1135
1736
  SENSITIVE = []
1136
1737
  include Aws::Structure
1137
1738
  end
@@ -1140,10 +1741,15 @@ module Aws::Signer
1140
1741
  # The ID of your signing job.
1141
1742
  # @return [String]
1142
1743
  #
1744
+ # @!attribute [rw] job_owner
1745
+ # The AWS account ID of the signing job owner.
1746
+ # @return [String]
1747
+ #
1143
1748
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/StartSigningJobResponse AWS API Documentation
1144
1749
  #
1145
1750
  class StartSigningJobResponse < Struct.new(
1146
- :job_id)
1751
+ :job_id,
1752
+ :job_owner)
1147
1753
  SENSITIVE = []
1148
1754
  include Aws::Structure
1149
1755
  end
@@ -1179,15 +1785,40 @@ module Aws::Signer
1179
1785
  #
1180
1786
  class TagResourceResponse < Aws::EmptyStructure; end
1181
1787
 
1182
- # The signing job has been throttled.
1788
+ # The request was denied due to request throttling.
1789
+ #
1790
+ # Instead of this error, `TooManyRequestsException` should be used.
1183
1791
  #
1184
1792
  # @!attribute [rw] message
1185
1793
  # @return [String]
1186
1794
  #
1795
+ # @!attribute [rw] code
1796
+ # @return [String]
1797
+ #
1187
1798
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ThrottlingException AWS API Documentation
1188
1799
  #
1189
1800
  class ThrottlingException < Struct.new(
1190
- :message)
1801
+ :message,
1802
+ :code)
1803
+ SENSITIVE = []
1804
+ include Aws::Structure
1805
+ end
1806
+
1807
+ # The allowed number of job-signing requests has been exceeded.
1808
+ #
1809
+ # This error supersedes the error `ThrottlingException`.
1810
+ #
1811
+ # @!attribute [rw] message
1812
+ # @return [String]
1813
+ #
1814
+ # @!attribute [rw] code
1815
+ # @return [String]
1816
+ #
1817
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/TooManyRequestsException AWS API Documentation
1818
+ #
1819
+ class TooManyRequestsException < Struct.new(
1820
+ :message,
1821
+ :code)
1191
1822
  SENSITIVE = []
1192
1823
  include Aws::Structure
1193
1824
  end
@@ -1226,10 +1857,14 @@ module Aws::Signer
1226
1857
  # @!attribute [rw] message
1227
1858
  # @return [String]
1228
1859
  #
1860
+ # @!attribute [rw] code
1861
+ # @return [String]
1862
+ #
1229
1863
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ValidationException AWS API Documentation
1230
1864
  #
1231
1865
  class ValidationException < Struct.new(
1232
- :message)
1866
+ :message,
1867
+ :code)
1233
1868
  SENSITIVE = []
1234
1869
  include Aws::Structure
1235
1870
  end