aws-sdk-signer 1.16.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54f7036dac914f735fd2634b9a56d1f2ae190c26
4
- data.tar.gz: ec29447dbf4d255b96369c24ae46d423afe9a70b
3
+ metadata.gz: 953735d4dc87e531a6e8d7c5d9b9094146ccb650
4
+ data.tar.gz: acc9ed91d1cd916efd23b4db8159641e84f78a0e
5
5
  SHA512:
6
- metadata.gz: 0d419d3bca9155934155e289bd3c79e4121a08eee2e84ac07848053b768945951019e0d57756afeda13d324a78a4749c129fcd68caa9923536963ec964ffcb62
7
- data.tar.gz: 949c4fbfa531d1882772e179269c127bcfe2b4d3af1e8fa693b2f8a61e8c78d7ffd44ef0a768f2b18d9da0437f0ffb4379764ee8fc6c361a829b9874ac9331a5
6
+ metadata.gz: da645be34a7f44f48f48ed1a18337636c1dc5e19f61e659856270f3562f8a3a7fca3653eb99ea88c896c080ef819e48f9931983d08ad326e48c130a283bdca7b
7
+ data.tar.gz: 87209f5206f2084845df34270d5d34df61450b8137f18d63760c1537bbd1e636593f7a9b711511bf1d2a555d3cf1a8009c306608d95ae6c0d33b825155ec8401
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-signer/customizations'
43
43
  # @service
44
44
  module Aws::Signer
45
45
 
46
- GEM_VERSION = '1.16.0'
46
+ GEM_VERSION = '1.17.0'
47
47
 
48
48
  end
@@ -400,6 +400,8 @@ module Aws::Signer
400
400
  # * {Types::GetSigningProfileResponse#overrides #overrides} => Types::SigningPlatformOverrides
401
401
  # * {Types::GetSigningProfileResponse#signing_parameters #signing_parameters} => Hash<String,String>
402
402
  # * {Types::GetSigningProfileResponse#status #status} => String
403
+ # * {Types::GetSigningProfileResponse#arn #arn} => String
404
+ # * {Types::GetSigningProfileResponse#tags #tags} => Hash<String,String>
403
405
  #
404
406
  # @example Request syntax with placeholder values
405
407
  #
@@ -417,6 +419,9 @@ module Aws::Signer
417
419
  # resp.signing_parameters #=> Hash
418
420
  # resp.signing_parameters["SigningParameterKey"] #=> String
419
421
  # resp.status #=> String, one of "Active", "Canceled"
422
+ # resp.arn #=> String
423
+ # resp.tags #=> Hash
424
+ # resp.tags["TagKey"] #=> String
420
425
  #
421
426
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningProfile AWS API Documentation
422
427
  #
@@ -429,12 +434,12 @@ module Aws::Signer
429
434
 
430
435
  # Lists all your signing jobs. You can use the `maxResults` parameter to
431
436
  # limit the number of signing jobs that are returned in the response. If
432
- # additional jobs remain to be listed, AWS Signer returns a `nextToken`
433
- # value. Use this value in subsequent calls to `ListSigningJobs` to
434
- # fetch the remaining values. You can continue calling `ListSigningJobs`
435
- # with your `maxResults` parameter and with new values that AWS Signer
436
- # returns in the `nextToken` parameter until all of your signing jobs
437
- # have been returned.
437
+ # additional jobs remain to be listed, code signing returns a
438
+ # `nextToken` value. Use this value in subsequent calls to
439
+ # `ListSigningJobs` to fetch the remaining values. You can continue
440
+ # calling `ListSigningJobs` with your `maxResults` parameter and with
441
+ # new values that code signing returns in the `nextToken` parameter
442
+ # until all of your signing jobs have been returned.
438
443
  #
439
444
  # @option params [String] :status
440
445
  # A status value with which to filter your results.
@@ -497,13 +502,13 @@ module Aws::Signer
497
502
  req.send_request(options)
498
503
  end
499
504
 
500
- # Lists all signing platforms available in AWS Signer that match the
501
- # request parameters. If additional jobs remain to be listed, AWS Signer
502
- # returns a `nextToken` value. Use this value in subsequent calls to
503
- # `ListSigningJobs` to fetch the remaining values. You can continue
504
- # calling `ListSigningJobs` with your `maxResults` parameter and with
505
- # new values that AWS Signer returns in the `nextToken` parameter until
506
- # all of your signing jobs have been returned.
505
+ # Lists all signing platforms available in code signing that match the
506
+ # request parameters. If additional jobs remain to be listed, code
507
+ # signing returns a `nextToken` value. Use this value in subsequent
508
+ # calls to `ListSigningJobs` to fetch the remaining values. You can
509
+ # continue calling `ListSigningJobs` with your `maxResults` parameter
510
+ # and with new values that code signing returns in the `nextToken`
511
+ # parameter until all of your signing jobs have been returned.
507
512
  #
508
513
  # @option params [String] :category
509
514
  # The category type of a signing platform.
@@ -569,12 +574,12 @@ module Aws::Signer
569
574
 
570
575
  # Lists all available signing profiles in your AWS account. Returns only
571
576
  # profiles with an `ACTIVE` status unless the `includeCanceled` request
572
- # field is set to `true`. If additional jobs remain to be listed, AWS
573
- # Signer returns a `nextToken` value. Use this value in subsequent calls
574
- # to `ListSigningJobs` to fetch the remaining values. You can continue
575
- # calling `ListSigningJobs` with your `maxResults` parameter and with
576
- # new values that AWS Signer returns in the `nextToken` parameter until
577
- # all of your signing jobs have been returned.
577
+ # field is set to `true`. If additional jobs remain to be listed, code
578
+ # signing returns a `nextToken` value. Use this value in subsequent
579
+ # calls to `ListSigningJobs` to fetch the remaining values. You can
580
+ # continue calling `ListSigningJobs` with your `maxResults` parameter
581
+ # and with new values that code signing returns in the `nextToken`
582
+ # parameter until all of your signing jobs have been returned.
578
583
  #
579
584
  # @option params [Boolean] :include_canceled
580
585
  # Designates whether to include profiles with the status of `CANCELED`.
@@ -610,6 +615,9 @@ module Aws::Signer
610
615
  # resp.profiles[0].signing_parameters #=> Hash
611
616
  # resp.profiles[0].signing_parameters["SigningParameterKey"] #=> String
612
617
  # resp.profiles[0].status #=> String, one of "Active", "Canceled"
618
+ # resp.profiles[0].arn #=> String
619
+ # resp.profiles[0].tags #=> Hash
620
+ # resp.profiles[0].tags["TagKey"] #=> String
613
621
  # resp.next_token #=> String
614
622
  #
615
623
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningProfiles AWS API Documentation
@@ -621,9 +629,38 @@ module Aws::Signer
621
629
  req.send_request(options)
622
630
  end
623
631
 
624
- # Creates a signing profile. A signing profile is an AWS Signer template
625
- # that can be used to carry out a pre-defined signing job. For more
626
- # information, see
632
+ # Returns a list of the tags associated with a signing profile resource.
633
+ #
634
+ # @option params [required, String] :resource_arn
635
+ # The Amazon Resource Name (ARN) for the signing profile.
636
+ #
637
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
638
+ #
639
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
640
+ #
641
+ # @example Request syntax with placeholder values
642
+ #
643
+ # resp = client.list_tags_for_resource({
644
+ # resource_arn: "String", # required
645
+ # })
646
+ #
647
+ # @example Response structure
648
+ #
649
+ # resp.tags #=> Hash
650
+ # resp.tags["TagKey"] #=> String
651
+ #
652
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListTagsForResource AWS API Documentation
653
+ #
654
+ # @overload list_tags_for_resource(params = {})
655
+ # @param [Hash] params ({})
656
+ def list_tags_for_resource(params = {}, options = {})
657
+ req = build_request(:list_tags_for_resource, params)
658
+ req.send_request(options)
659
+ end
660
+
661
+ # Creates a signing profile. A signing profile is a code signing
662
+ # template that can be used to carry out a pre-defined signing job. For
663
+ # more information, see
627
664
  # [http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html][1]
628
665
  #
629
666
  #
@@ -649,6 +686,9 @@ module Aws::Signer
649
686
  # Map of key-value pairs for signing. These can include any information
650
687
  # that you want to use during signing.
651
688
  #
689
+ # @option params [Hash<String,String>] :tags
690
+ # Tags to be associated with the signing profile being created.
691
+ #
652
692
  # @return [Types::PutSigningProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
653
693
  #
654
694
  # * {Types::PutSigningProfileResponse#arn #arn} => String
@@ -670,6 +710,9 @@ module Aws::Signer
670
710
  # signing_parameters: {
671
711
  # "SigningParameterKey" => "SigningParameterValue",
672
712
  # },
713
+ # tags: {
714
+ # "TagKey" => "TagValue",
715
+ # },
673
716
  # })
674
717
  #
675
718
  # @example Response structure
@@ -694,14 +737,14 @@ module Aws::Signer
694
737
  #
695
738
  # * Your S3 source bucket must be version enabled.
696
739
  #
697
- # * You must create an S3 destination bucket. AWS Signer uses your S3
740
+ # * You must create an S3 destination bucket. Code signing uses your S3
698
741
  # destination bucket to write your signed code.
699
742
  #
700
743
  # * You specify the name of the source and destination buckets when
701
744
  # calling the `StartSigningJob` operation.
702
745
  #
703
746
  # * You must also specify a request token that identifies your request
704
- # to AWS Signer.
747
+ # to code signing.
705
748
  #
706
749
  # You can call the DescribeSigningJob and the ListSigningJobs actions
707
750
  # after you call `StartSigningJob`.
@@ -769,6 +812,65 @@ module Aws::Signer
769
812
  req.send_request(options)
770
813
  end
771
814
 
815
+ # Adds one or more tags to a signing profile. Tags are labels that you
816
+ # can use to identify and organize your AWS resources. Each tag consists
817
+ # of a key and an optional value. You specify the signing profile using
818
+ # its Amazon Resource Name (ARN). You specify the tag by using a
819
+ # key-value pair.
820
+ #
821
+ # @option params [required, String] :resource_arn
822
+ # Amazon Resource Name (ARN) for the signing profile.
823
+ #
824
+ # @option params [required, Hash<String,String>] :tags
825
+ # One or more tags to be associated with the signing profile.
826
+ #
827
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
828
+ #
829
+ # @example Request syntax with placeholder values
830
+ #
831
+ # resp = client.tag_resource({
832
+ # resource_arn: "String", # required
833
+ # tags: { # required
834
+ # "TagKey" => "TagValue",
835
+ # },
836
+ # })
837
+ #
838
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/TagResource AWS API Documentation
839
+ #
840
+ # @overload tag_resource(params = {})
841
+ # @param [Hash] params ({})
842
+ def tag_resource(params = {}, options = {})
843
+ req = build_request(:tag_resource, params)
844
+ req.send_request(options)
845
+ end
846
+
847
+ # Remove one or more tags from a signing profile. Specify a list of tag
848
+ # keys to remove the tags.
849
+ #
850
+ # @option params [required, String] :resource_arn
851
+ # Amazon Resource Name (ARN) for the signing profile .
852
+ #
853
+ # @option params [required, Array<String>] :tag_keys
854
+ # A list of tag keys to be removed from the signing profile .
855
+ #
856
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
857
+ #
858
+ # @example Request syntax with placeholder values
859
+ #
860
+ # resp = client.untag_resource({
861
+ # resource_arn: "String", # required
862
+ # tag_keys: ["TagKey"], # required
863
+ # })
864
+ #
865
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/UntagResource AWS API Documentation
866
+ #
867
+ # @overload untag_resource(params = {})
868
+ # @param [Hash] params ({})
869
+ def untag_resource(params = {}, options = {})
870
+ req = build_request(:untag_resource, params)
871
+ req.send_request(options)
872
+ end
873
+
772
874
  # @!endgroup
773
875
 
774
876
  # @param params ({})
@@ -782,7 +884,7 @@ module Aws::Signer
782
884
  params: params,
783
885
  config: config)
784
886
  context[:gem_name] = 'aws-sdk-signer'
785
- context[:gem_version] = '1.16.0'
887
+ context[:gem_version] = '1.17.0'
786
888
  Seahorse::Client::Request.new(handlers, context)
787
889
  end
788
890
 
@@ -12,6 +12,7 @@ module Aws::Signer
12
12
  include Seahorse::Model
13
13
 
14
14
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
15
+ BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
15
16
  BucketName = Shapes::StringShape.new(name: 'BucketName')
16
17
  CancelSigningProfileRequest = Shapes::StructureShape.new(name: 'CancelSigningProfileRequest')
17
18
  Category = Shapes::StringShape.new(name: 'Category')
@@ -45,9 +46,12 @@ module Aws::Signer
45
46
  ListSigningPlatformsResponse = Shapes::StructureShape.new(name: 'ListSigningPlatformsResponse')
46
47
  ListSigningProfilesRequest = Shapes::StructureShape.new(name: 'ListSigningProfilesRequest')
47
48
  ListSigningProfilesResponse = Shapes::StructureShape.new(name: 'ListSigningProfilesResponse')
49
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
50
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
48
51
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
49
52
  MaxSizeInMB = Shapes::IntegerShape.new(name: 'MaxSizeInMB')
50
53
  NextToken = Shapes::StringShape.new(name: 'NextToken')
54
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
51
55
  PlatformId = Shapes::StringShape.new(name: 'PlatformId')
52
56
  Prefix = Shapes::StringShape.new(name: 'Prefix')
53
57
  ProfileName = Shapes::StringShape.new(name: 'ProfileName')
@@ -80,7 +84,15 @@ module Aws::Signer
80
84
  StartSigningJobResponse = Shapes::StructureShape.new(name: 'StartSigningJobResponse')
81
85
  StatusReason = Shapes::StringShape.new(name: 'StatusReason')
82
86
  String = Shapes::StringShape.new(name: 'String')
87
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
88
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
89
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
90
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
91
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
92
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
83
93
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
94
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
95
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
84
96
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
85
97
  Version = Shapes::StringShape.new(name: 'Version')
86
98
  bool = Shapes::BooleanShape.new(name: 'bool')
@@ -90,6 +102,9 @@ module Aws::Signer
90
102
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
91
103
  AccessDeniedException.struct_class = Types::AccessDeniedException
92
104
 
105
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
106
+ BadRequestException.struct_class = Types::BadRequestException
107
+
93
108
  CancelSigningProfileRequest.add_member(:profile_name, Shapes::ShapeRef.new(shape: ProfileName, required: true, location: "uri", location_name: "profileName"))
94
109
  CancelSigningProfileRequest.struct_class = Types::CancelSigningProfileRequest
95
110
 
@@ -142,6 +157,8 @@ module Aws::Signer
142
157
  GetSigningProfileResponse.add_member(:overrides, Shapes::ShapeRef.new(shape: SigningPlatformOverrides, location_name: "overrides"))
143
158
  GetSigningProfileResponse.add_member(:signing_parameters, Shapes::ShapeRef.new(shape: SigningParameters, location_name: "signingParameters"))
144
159
  GetSigningProfileResponse.add_member(:status, Shapes::ShapeRef.new(shape: SigningProfileStatus, location_name: "status"))
160
+ GetSigningProfileResponse.add_member(:arn, Shapes::ShapeRef.new(shape: string, location_name: "arn"))
161
+ GetSigningProfileResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
145
162
  GetSigningProfileResponse.struct_class = Types::GetSigningProfileResponse
146
163
 
147
164
  HashAlgorithmOptions.add_member(:allowed_values, Shapes::ShapeRef.new(shape: HashAlgorithms, required: true, location_name: "allowedValues"))
@@ -186,11 +203,21 @@ module Aws::Signer
186
203
  ListSigningProfilesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
187
204
  ListSigningProfilesResponse.struct_class = Types::ListSigningProfilesResponse
188
205
 
206
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
207
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
208
+
209
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
210
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
211
+
212
+ NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
213
+ NotFoundException.struct_class = Types::NotFoundException
214
+
189
215
  PutSigningProfileRequest.add_member(:profile_name, Shapes::ShapeRef.new(shape: ProfileName, required: true, location: "uri", location_name: "profileName"))
190
216
  PutSigningProfileRequest.add_member(:signing_material, Shapes::ShapeRef.new(shape: SigningMaterial, required: true, location_name: "signingMaterial"))
191
217
  PutSigningProfileRequest.add_member(:platform_id, Shapes::ShapeRef.new(shape: PlatformId, required: true, location_name: "platformId"))
192
218
  PutSigningProfileRequest.add_member(:overrides, Shapes::ShapeRef.new(shape: SigningPlatformOverrides, location_name: "overrides"))
193
219
  PutSigningProfileRequest.add_member(:signing_parameters, Shapes::ShapeRef.new(shape: SigningParameters, location_name: "signingParameters"))
220
+ PutSigningProfileRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
194
221
  PutSigningProfileRequest.struct_class = Types::PutSigningProfileRequest
195
222
 
196
223
  PutSigningProfileResponse.add_member(:arn, Shapes::ShapeRef.new(shape: string, location_name: "arn"))
@@ -263,6 +290,8 @@ module Aws::Signer
263
290
  SigningProfile.add_member(:platform_id, Shapes::ShapeRef.new(shape: PlatformId, location_name: "platformId"))
264
291
  SigningProfile.add_member(:signing_parameters, Shapes::ShapeRef.new(shape: SigningParameters, location_name: "signingParameters"))
265
292
  SigningProfile.add_member(:status, Shapes::ShapeRef.new(shape: SigningProfileStatus, location_name: "status"))
293
+ SigningProfile.add_member(:arn, Shapes::ShapeRef.new(shape: string, location_name: "arn"))
294
+ SigningProfile.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
266
295
  SigningProfile.struct_class = Types::SigningProfile
267
296
 
268
297
  SigningProfiles.member = Shapes::ShapeRef.new(shape: SigningProfile)
@@ -279,9 +308,26 @@ module Aws::Signer
279
308
  StartSigningJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "jobId"))
280
309
  StartSigningJobResponse.struct_class = Types::StartSigningJobResponse
281
310
 
311
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
312
+
313
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
314
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
315
+
316
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
317
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
318
+ TagResourceRequest.struct_class = Types::TagResourceRequest
319
+
320
+ TagResourceResponse.struct_class = Types::TagResourceResponse
321
+
282
322
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
283
323
  ThrottlingException.struct_class = Types::ThrottlingException
284
324
 
325
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
326
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
327
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
328
+
329
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
330
+
285
331
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
286
332
  ValidationException.struct_class = Types::ValidationException
287
333
 
@@ -403,6 +449,17 @@ module Aws::Signer
403
449
  )
404
450
  end)
405
451
 
452
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
453
+ o.name = "ListTagsForResource"
454
+ o.http_method = "GET"
455
+ o.http_request_uri = "/tags/{resourceArn}"
456
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
457
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
458
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
459
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
460
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
461
+ end)
462
+
406
463
  api.add_operation(:put_signing_profile, Seahorse::Model::Operation.new.tap do |o|
407
464
  o.name = "PutSigningProfile"
408
465
  o.http_method = "PUT"
@@ -428,6 +485,28 @@ module Aws::Signer
428
485
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
429
486
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
430
487
  end)
488
+
489
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
490
+ o.name = "TagResource"
491
+ o.http_method = "POST"
492
+ o.http_request_uri = "/tags/{resourceArn}"
493
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
494
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
495
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
496
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
497
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
498
+ end)
499
+
500
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
501
+ o.name = "UntagResource"
502
+ o.http_method = "DELETE"
503
+ o.http_request_uri = "/tags/{resourceArn}"
504
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
505
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
506
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
507
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
508
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
509
+ end)
431
510
  end
432
511
 
433
512
  end
@@ -26,6 +26,22 @@ module Aws::Signer
26
26
 
27
27
  end
28
28
 
29
+ class BadRequestException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::Signer::Types::BadRequestException] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
29
45
  class InternalServiceErrorException < ServiceError
30
46
 
31
47
  # @param [Seahorse::Client::RequestContext] context
@@ -42,6 +58,22 @@ module Aws::Signer
42
58
 
43
59
  end
44
60
 
61
+ class NotFoundException < ServiceError
62
+
63
+ # @param [Seahorse::Client::RequestContext] context
64
+ # @param [String] message
65
+ # @param [Aws::Signer::Types::NotFoundException] data
66
+ def initialize(context, message, data = Aws::EmptyStructure.new)
67
+ super(context, message, data)
68
+ end
69
+
70
+ # @return [String]
71
+ def message
72
+ @message || @data[:message]
73
+ end
74
+
75
+ end
76
+
45
77
  class ResourceNotFoundException < ServiceError
46
78
 
47
79
  # @param [Seahorse::Client::RequestContext] context
@@ -20,6 +20,20 @@ module Aws::Signer
20
20
  include Aws::Structure
21
21
  end
22
22
 
23
+ # The request contains invalid parameters for the ARN or tags. This
24
+ # exception also occurs when you call a tagging API on a cancelled
25
+ # signing profile.
26
+ #
27
+ # @!attribute [rw] message
28
+ # @return [String]
29
+ #
30
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/BadRequestException AWS API Documentation
31
+ #
32
+ class BadRequestException < Struct.new(
33
+ :message)
34
+ include Aws::Structure
35
+ end
36
+
23
37
  # @note When making an API call, you may pass CancelSigningProfileRequest
24
38
  # data as a hash:
25
39
  #
@@ -109,8 +123,8 @@ module Aws::Signer
109
123
  # @return [String]
110
124
  #
111
125
  # @!attribute [rw] signed_object
112
- # Name of the S3 bucket where the signed code image is saved by AWS
113
- # Signer.
126
+ # Name of the S3 bucket where the signed code image is saved by code
127
+ # signing.
114
128
  # @return [Types::SignedObject]
115
129
  #
116
130
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/DescribeSigningJobResponse AWS API Documentation
@@ -156,16 +170,16 @@ module Aws::Signer
156
170
  include Aws::Structure
157
171
  end
158
172
 
159
- # The encryption algorithm options that are available to an AWS Signer
173
+ # The encryption algorithm options that are available to a code signing
160
174
  # job.
161
175
  #
162
176
  # @!attribute [rw] allowed_values
163
- # The set of accepted encryption algorithms that are allowed in an AWS
164
- # Signer job.
177
+ # The set of accepted encryption algorithms that are allowed in a code
178
+ # signing job.
165
179
  # @return [Array<String>]
166
180
  #
167
181
  # @!attribute [rw] default_value
168
- # The default encryption algorithm that is used by an AWS Signer job.
182
+ # The default encryption algorithm that is used by a code signing job.
169
183
  # @return [String]
170
184
  #
171
185
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/EncryptionAlgorithmOptions AWS API Documentation
@@ -286,6 +300,14 @@ module Aws::Signer
286
300
  # The status of the target signing profile.
287
301
  # @return [String]
288
302
  #
303
+ # @!attribute [rw] arn
304
+ # The Amazon Resource Name (ARN) for the signing profile.
305
+ # @return [String]
306
+ #
307
+ # @!attribute [rw] tags
308
+ # A list of tags associated with the signing profile.
309
+ # @return [Hash<String,String>]
310
+ #
289
311
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningProfileResponse AWS API Documentation
290
312
  #
291
313
  class GetSigningProfileResponse < Struct.new(
@@ -294,18 +316,20 @@ module Aws::Signer
294
316
  :platform_id,
295
317
  :overrides,
296
318
  :signing_parameters,
297
- :status)
319
+ :status,
320
+ :arn,
321
+ :tags)
298
322
  include Aws::Structure
299
323
  end
300
324
 
301
- # The hash algorithms that are available to an AWS Signer job.
325
+ # The hash algorithms that are available to a code signing job.
302
326
  #
303
327
  # @!attribute [rw] allowed_values
304
- # The set of accepted hash algorithms allowed in an AWS Signer job.
328
+ # The set of accepted hash algorithms allowed in a code signing job.
305
329
  # @return [Array<String>]
306
330
  #
307
331
  # @!attribute [rw] default_value
308
- # The default hash algorithm that is used in an AWS Signer job.
332
+ # The default hash algorithm that is used in a code signing job.
309
333
  # @return [String]
310
334
  #
311
335
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/HashAlgorithmOptions AWS API Documentation
@@ -507,6 +531,47 @@ module Aws::Signer
507
531
  include Aws::Structure
508
532
  end
509
533
 
534
+ # @note When making an API call, you may pass ListTagsForResourceRequest
535
+ # data as a hash:
536
+ #
537
+ # {
538
+ # resource_arn: "String", # required
539
+ # }
540
+ #
541
+ # @!attribute [rw] resource_arn
542
+ # The Amazon Resource Name (ARN) for the signing profile.
543
+ # @return [String]
544
+ #
545
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListTagsForResourceRequest AWS API Documentation
546
+ #
547
+ class ListTagsForResourceRequest < Struct.new(
548
+ :resource_arn)
549
+ include Aws::Structure
550
+ end
551
+
552
+ # @!attribute [rw] tags
553
+ # A list of tags associated with the signing profile.
554
+ # @return [Hash<String,String>]
555
+ #
556
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListTagsForResourceResponse AWS API Documentation
557
+ #
558
+ class ListTagsForResourceResponse < Struct.new(
559
+ :tags)
560
+ include Aws::Structure
561
+ end
562
+
563
+ # The signing profile was not found.
564
+ #
565
+ # @!attribute [rw] message
566
+ # @return [String]
567
+ #
568
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/NotFoundException AWS API Documentation
569
+ #
570
+ class NotFoundException < Struct.new(
571
+ :message)
572
+ include Aws::Structure
573
+ end
574
+
510
575
  # @note When making an API call, you may pass PutSigningProfileRequest
511
576
  # data as a hash:
512
577
  #
@@ -525,6 +590,9 @@ module Aws::Signer
525
590
  # signing_parameters: {
526
591
  # "SigningParameterKey" => "SigningParameterValue",
527
592
  # },
593
+ # tags: {
594
+ # "TagKey" => "TagValue",
595
+ # },
528
596
  # }
529
597
  #
530
598
  # @!attribute [rw] profile_name
@@ -551,6 +619,10 @@ module Aws::Signer
551
619
  # information that you want to use during signing.
552
620
  # @return [Hash<String,String>]
553
621
  #
622
+ # @!attribute [rw] tags
623
+ # Tags to be associated with the signing profile being created.
624
+ # @return [Hash<String,String>]
625
+ #
554
626
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/PutSigningProfileRequest AWS API Documentation
555
627
  #
556
628
  class PutSigningProfileRequest < Struct.new(
@@ -558,7 +630,8 @@ module Aws::Signer
558
630
  :signing_material,
559
631
  :platform_id,
560
632
  :overrides,
561
- :signing_parameters)
633
+ :signing_parameters,
634
+ :tags)
562
635
  include Aws::Structure
563
636
  end
564
637
 
@@ -585,7 +658,7 @@ module Aws::Signer
585
658
  include Aws::Structure
586
659
  end
587
660
 
588
- # The name and prefix of the S3 bucket where AWS Signer saves your
661
+ # The name and prefix of the S3 bucket where code signing saves your
589
662
  # signed objects.
590
663
  #
591
664
  # @note When making an API call, you may pass S3Destination
@@ -613,7 +686,7 @@ module Aws::Signer
613
686
  include Aws::Structure
614
687
  end
615
688
 
616
- # The S3 bucket name and key where AWS Signer saved your signed code
689
+ # The S3 bucket name and key where code signing saved your signed code
617
690
  # image.
618
691
  #
619
692
  # @!attribute [rw] bucket_name
@@ -679,15 +752,16 @@ module Aws::Signer
679
752
  include Aws::Structure
680
753
  end
681
754
 
682
- # The configuration of an AWS Signer operation.
755
+ # The configuration of a code signing operation.
683
756
  #
684
757
  # @!attribute [rw] encryption_algorithm_options
685
- # The encryption algorithm options that are available for an AWS
686
- # Signer job.
758
+ # The encryption algorithm options that are available for a code
759
+ # signing job.
687
760
  # @return [Types::EncryptionAlgorithmOptions]
688
761
  #
689
762
  # @!attribute [rw] hash_algorithm_options
690
- # The hash algorithm options that are available for an AWS Signer job.
763
+ # The hash algorithm options that are available for a a code signing
764
+ # job.
691
765
  # @return [Types::HashAlgorithmOptions]
692
766
  #
693
767
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningConfiguration AWS API Documentation
@@ -711,12 +785,12 @@ module Aws::Signer
711
785
  #
712
786
  # @!attribute [rw] encryption_algorithm
713
787
  # A specified override of the default encryption algorithm that is
714
- # used in an AWS Signer job.
788
+ # used in a code signing job.
715
789
  # @return [String]
716
790
  #
717
791
  # @!attribute [rw] hash_algorithm
718
- # A specified override of the default hash algorithm that is used in
719
- # an AWS Signer job.
792
+ # A specified override of the default hash algorithm that is used in a
793
+ # code signing job.
720
794
  # @return [String]
721
795
  #
722
796
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningConfigurationOverrides AWS API Documentation
@@ -727,14 +801,14 @@ module Aws::Signer
727
801
  include Aws::Structure
728
802
  end
729
803
 
730
- # The image format of an AWS Signer platform or profile.
804
+ # The image format of a code signing platform or profile.
731
805
  #
732
806
  # @!attribute [rw] supported_formats
733
- # The supported formats of an AWS Signer signing image.
807
+ # The supported formats of a code signing signing image.
734
808
  # @return [Array<String>]
735
809
  #
736
810
  # @!attribute [rw] default_format
737
- # The default format of an AWS Signer signing image.
811
+ # The default format of a code signing signing image.
738
812
  # @return [String]
739
813
  #
740
814
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningImageFormat AWS API Documentation
@@ -808,41 +882,41 @@ module Aws::Signer
808
882
  end
809
883
 
810
884
  # Contains information about the signing configurations and parameters
811
- # that is used to perform an AWS Signer job.
885
+ # that is used to perform a code signing job.
812
886
  #
813
887
  # @!attribute [rw] platform_id
814
- # The ID of an AWS Signer platform.
888
+ # The ID of a code signing; platform.
815
889
  # @return [String]
816
890
  #
817
891
  # @!attribute [rw] display_name
818
- # The display name of an AWS Signer platform.
892
+ # The display name of a code signing platform.
819
893
  # @return [String]
820
894
  #
821
895
  # @!attribute [rw] partner
822
- # Any partner entities linked to an AWS Signer platform.
896
+ # Any partner entities linked to a code signing platform.
823
897
  # @return [String]
824
898
  #
825
899
  # @!attribute [rw] target
826
- # The types of targets that can be signed by an AWS Signer platform.
900
+ # The types of targets that can be signed by a code signing platform.
827
901
  # @return [String]
828
902
  #
829
903
  # @!attribute [rw] category
830
- # The category of an AWS Signer platform.
904
+ # The category of a code signing platform.
831
905
  # @return [String]
832
906
  #
833
907
  # @!attribute [rw] signing_configuration
834
- # The configuration of an AWS Signer platform. This includes the
908
+ # The configuration of a code signing platform. This includes the
835
909
  # designated hash algorithm and encryption algorithm of a signing
836
910
  # platform.
837
911
  # @return [Types::SigningConfiguration]
838
912
  #
839
913
  # @!attribute [rw] signing_image_format
840
- # The signing image format that is used by an AWS Signer platform.
914
+ # The image format of a code signing platform or profile.
841
915
  # @return [Types::SigningImageFormat]
842
916
  #
843
917
  # @!attribute [rw] max_size_in_mb
844
- # The maximum size (in MB) of code that can be signed by a AWS Signer
845
- # platform.
918
+ # The maximum size (in MB) of code that can be signed by a code
919
+ # signing platform.
846
920
  # @return [Integer]
847
921
  #
848
922
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningPlatform AWS API Documentation
@@ -859,8 +933,8 @@ module Aws::Signer
859
933
  include Aws::Structure
860
934
  end
861
935
 
862
- # Any overrides that are applied to the signing configuration of an AWS
863
- # Signer platform.
936
+ # Any overrides that are applied to the signing configuration of a code
937
+ # signing platform.
864
938
  #
865
939
  # @note When making an API call, you may pass SigningPlatformOverrides
866
940
  # data as a hash:
@@ -884,11 +958,12 @@ module Aws::Signer
884
958
  include Aws::Structure
885
959
  end
886
960
 
887
- # Contains information about the ACM certificates and AWS Signer
888
- # configuration parameters that can be used by a given AWS Signer user.
961
+ # Contains information about the ACM certificates and code signing
962
+ # configuration parameters that can be used by a given code signing
963
+ # user.
889
964
  #
890
965
  # @!attribute [rw] profile_name
891
- # The name of the AWS Signer profile.
966
+ # The name of the signing profile.
892
967
  # @return [String]
893
968
  #
894
969
  # @!attribute [rw] signing_material
@@ -900,13 +975,21 @@ module Aws::Signer
900
975
  # @return [String]
901
976
  #
902
977
  # @!attribute [rw] signing_parameters
903
- # The parameters that are available for use by an AWS Signer user.
978
+ # The parameters that are available for use by a code signing user.
904
979
  # @return [Hash<String,String>]
905
980
  #
906
981
  # @!attribute [rw] status
907
- # The status of an AWS Signer profile.
982
+ # The status of a code signing profile.
908
983
  # @return [String]
909
984
  #
985
+ # @!attribute [rw] arn
986
+ # Amazon Resource Name (ARN) for the signing profile.
987
+ # @return [String]
988
+ #
989
+ # @!attribute [rw] tags
990
+ # A list of tags associated with the signing profile.
991
+ # @return [Hash<String,String>]
992
+ #
910
993
  # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/SigningProfile AWS API Documentation
911
994
  #
912
995
  class SigningProfile < Struct.new(
@@ -914,7 +997,9 @@ module Aws::Signer
914
997
  :signing_material,
915
998
  :platform_id,
916
999
  :signing_parameters,
917
- :status)
1000
+ :status,
1001
+ :arn,
1002
+ :tags)
918
1003
  include Aws::Structure
919
1004
  end
920
1005
 
@@ -1008,6 +1093,36 @@ module Aws::Signer
1008
1093
  include Aws::Structure
1009
1094
  end
1010
1095
 
1096
+ # @note When making an API call, you may pass TagResourceRequest
1097
+ # data as a hash:
1098
+ #
1099
+ # {
1100
+ # resource_arn: "String", # required
1101
+ # tags: { # required
1102
+ # "TagKey" => "TagValue",
1103
+ # },
1104
+ # }
1105
+ #
1106
+ # @!attribute [rw] resource_arn
1107
+ # Amazon Resource Name (ARN) for the signing profile.
1108
+ # @return [String]
1109
+ #
1110
+ # @!attribute [rw] tags
1111
+ # One or more tags to be associated with the signing profile.
1112
+ # @return [Hash<String,String>]
1113
+ #
1114
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/TagResourceRequest AWS API Documentation
1115
+ #
1116
+ class TagResourceRequest < Struct.new(
1117
+ :resource_arn,
1118
+ :tags)
1119
+ include Aws::Structure
1120
+ end
1121
+
1122
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/TagResourceResponse AWS API Documentation
1123
+ #
1124
+ class TagResourceResponse < Aws::EmptyStructure; end
1125
+
1011
1126
  # The signing job has been throttled.
1012
1127
  #
1013
1128
  # @!attribute [rw] message
@@ -1020,6 +1135,34 @@ module Aws::Signer
1020
1135
  include Aws::Structure
1021
1136
  end
1022
1137
 
1138
+ # @note When making an API call, you may pass UntagResourceRequest
1139
+ # data as a hash:
1140
+ #
1141
+ # {
1142
+ # resource_arn: "String", # required
1143
+ # tag_keys: ["TagKey"], # required
1144
+ # }
1145
+ #
1146
+ # @!attribute [rw] resource_arn
1147
+ # Amazon Resource Name (ARN) for the signing profile .
1148
+ # @return [String]
1149
+ #
1150
+ # @!attribute [rw] tag_keys
1151
+ # A list of tag keys to be removed from the signing profile .
1152
+ # @return [Array<String>]
1153
+ #
1154
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/UntagResourceRequest AWS API Documentation
1155
+ #
1156
+ class UntagResourceRequest < Struct.new(
1157
+ :resource_arn,
1158
+ :tag_keys)
1159
+ include Aws::Structure
1160
+ end
1161
+
1162
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/UntagResourceResponse AWS API Documentation
1163
+ #
1164
+ class UntagResourceResponse < Aws::EmptyStructure; end
1165
+
1023
1166
  # You signing certificate could not be validated.
1024
1167
  #
1025
1168
  # @!attribute [rw] message
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-signer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.17.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: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core