aws-sdk-signer 1.26.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-signer.rb +2 -2
- data/lib/aws-sdk-signer/client.rb +301 -7
- data/lib/aws-sdk-signer/client_api.rb +233 -15
- data/lib/aws-sdk-signer/errors.rb +98 -0
- data/lib/aws-sdk-signer/types.rb +655 -20
- 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: 48a34700cf70044c0daf2f8d39913083a89f3c7a7307abfc5fbb56ff95613590
|
4
|
+
data.tar.gz: 4bc53d38c177a6bd4e49d5b6f6acf672cfc2b8395bcf8f788b27730b3a1d2233
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00601f228eae5b3fe97e9d1020ea37093d56aa3cab40e36f32579bdf46273fdbe095f8715428085df67d683e7764d34c6e646d8680515c38d5a768f718e1cbc7
|
7
|
+
data.tar.gz: 267950facfaf07daa3108fe1a7dad14aae4160dc45be8a8beb3c224e4eec46052c9738b2ef83a598edf440b5d217ce4ed37febf4a0238c8e7f154662c5b1345f
|
data/lib/aws-sdk-signer.rb
CHANGED
@@ -29,7 +29,7 @@ require_relative 'aws-sdk-signer/customizations'
|
|
29
29
|
# structure.
|
30
30
|
#
|
31
31
|
# signer = Aws::Signer::Client.new
|
32
|
-
# resp = signer.
|
32
|
+
# resp = signer.add_profile_permission(params)
|
33
33
|
#
|
34
34
|
# See {Client} for more information.
|
35
35
|
#
|
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-signer/customizations'
|
|
49
49
|
# @!group service
|
50
50
|
module Aws::Signer
|
51
51
|
|
52
|
-
GEM_VERSION = '1.
|
52
|
+
GEM_VERSION = '1.27.0'
|
53
53
|
|
54
54
|
end
|
@@ -327,6 +327,55 @@ module Aws::Signer
|
|
327
327
|
|
328
328
|
# @!group API Operations
|
329
329
|
|
330
|
+
# Adds cross-account permissions to a signing profile.
|
331
|
+
#
|
332
|
+
# @option params [required, String] :profile_name
|
333
|
+
# The human-readable name of the signing profile.
|
334
|
+
#
|
335
|
+
# @option params [String] :profile_version
|
336
|
+
# The version of the signing profile.
|
337
|
+
#
|
338
|
+
# @option params [required, String] :action
|
339
|
+
# The AWS Signer action permitted as part of cross-account permissions.
|
340
|
+
#
|
341
|
+
# @option params [required, String] :principal
|
342
|
+
# The AWS principal receiving cross-account permissions. This may be an
|
343
|
+
# IAM role or another AWS account ID.
|
344
|
+
#
|
345
|
+
# @option params [String] :revision_id
|
346
|
+
# A unique identifier for the current profile revision.
|
347
|
+
#
|
348
|
+
# @option params [required, String] :statement_id
|
349
|
+
# A unique identifier for the cross-account permission statement.
|
350
|
+
#
|
351
|
+
# @return [Types::AddProfilePermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
352
|
+
#
|
353
|
+
# * {Types::AddProfilePermissionResponse#revision_id #revision_id} => String
|
354
|
+
#
|
355
|
+
# @example Request syntax with placeholder values
|
356
|
+
#
|
357
|
+
# resp = client.add_profile_permission({
|
358
|
+
# profile_name: "ProfileName", # required
|
359
|
+
# profile_version: "ProfileVersion",
|
360
|
+
# action: "String", # required
|
361
|
+
# principal: "String", # required
|
362
|
+
# revision_id: "String",
|
363
|
+
# statement_id: "String", # required
|
364
|
+
# })
|
365
|
+
#
|
366
|
+
# @example Response structure
|
367
|
+
#
|
368
|
+
# resp.revision_id #=> String
|
369
|
+
#
|
370
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/AddProfilePermission AWS API Documentation
|
371
|
+
#
|
372
|
+
# @overload add_profile_permission(params = {})
|
373
|
+
# @param [Hash] params ({})
|
374
|
+
def add_profile_permission(params = {}, options = {})
|
375
|
+
req = build_request(:add_profile_permission, params)
|
376
|
+
req.send_request(options)
|
377
|
+
end
|
378
|
+
|
330
379
|
# Changes the state of an `ACTIVE` signing profile to `CANCELED`. A
|
331
380
|
# canceled profile is still viewable with the `ListSigningProfiles`
|
332
381
|
# operation, but it cannot perform new signing jobs, and is deleted two
|
@@ -365,15 +414,21 @@ module Aws::Signer
|
|
365
414
|
# * {Types::DescribeSigningJobResponse#source #source} => Types::Source
|
366
415
|
# * {Types::DescribeSigningJobResponse#signing_material #signing_material} => Types::SigningMaterial
|
367
416
|
# * {Types::DescribeSigningJobResponse#platform_id #platform_id} => String
|
417
|
+
# * {Types::DescribeSigningJobResponse#platform_display_name #platform_display_name} => String
|
368
418
|
# * {Types::DescribeSigningJobResponse#profile_name #profile_name} => String
|
419
|
+
# * {Types::DescribeSigningJobResponse#profile_version #profile_version} => String
|
369
420
|
# * {Types::DescribeSigningJobResponse#overrides #overrides} => Types::SigningPlatformOverrides
|
370
421
|
# * {Types::DescribeSigningJobResponse#signing_parameters #signing_parameters} => Hash<String,String>
|
371
422
|
# * {Types::DescribeSigningJobResponse#created_at #created_at} => Time
|
372
423
|
# * {Types::DescribeSigningJobResponse#completed_at #completed_at} => Time
|
424
|
+
# * {Types::DescribeSigningJobResponse#signature_expires_at #signature_expires_at} => Time
|
373
425
|
# * {Types::DescribeSigningJobResponse#requested_by #requested_by} => String
|
374
426
|
# * {Types::DescribeSigningJobResponse#status #status} => String
|
375
427
|
# * {Types::DescribeSigningJobResponse#status_reason #status_reason} => String
|
428
|
+
# * {Types::DescribeSigningJobResponse#revocation_record #revocation_record} => Types::SigningJobRevocationRecord
|
376
429
|
# * {Types::DescribeSigningJobResponse#signed_object #signed_object} => Types::SignedObject
|
430
|
+
# * {Types::DescribeSigningJobResponse#job_owner #job_owner} => String
|
431
|
+
# * {Types::DescribeSigningJobResponse#job_invoker #job_invoker} => String
|
377
432
|
#
|
378
433
|
# @example Request syntax with placeholder values
|
379
434
|
#
|
@@ -389,7 +444,9 @@ module Aws::Signer
|
|
389
444
|
# resp.source.s3.version #=> String
|
390
445
|
# resp.signing_material.certificate_arn #=> String
|
391
446
|
# resp.platform_id #=> String
|
447
|
+
# resp.platform_display_name #=> String
|
392
448
|
# resp.profile_name #=> String
|
449
|
+
# resp.profile_version #=> String
|
393
450
|
# resp.overrides.signing_configuration.encryption_algorithm #=> String, one of "RSA", "ECDSA"
|
394
451
|
# resp.overrides.signing_configuration.hash_algorithm #=> String, one of "SHA1", "SHA256"
|
395
452
|
# resp.overrides.signing_image_format #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
@@ -397,11 +454,17 @@ module Aws::Signer
|
|
397
454
|
# resp.signing_parameters["SigningParameterKey"] #=> String
|
398
455
|
# resp.created_at #=> Time
|
399
456
|
# resp.completed_at #=> Time
|
457
|
+
# resp.signature_expires_at #=> Time
|
400
458
|
# resp.requested_by #=> String
|
401
459
|
# resp.status #=> String, one of "InProgress", "Failed", "Succeeded"
|
402
460
|
# resp.status_reason #=> String
|
461
|
+
# resp.revocation_record.reason #=> String
|
462
|
+
# resp.revocation_record.revoked_at #=> Time
|
463
|
+
# resp.revocation_record.revoked_by #=> String
|
403
464
|
# resp.signed_object.s3.bucket_name #=> String
|
404
465
|
# resp.signed_object.s3.key #=> String
|
466
|
+
# resp.job_owner #=> String
|
467
|
+
# resp.job_invoker #=> String
|
405
468
|
#
|
406
469
|
#
|
407
470
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -432,6 +495,7 @@ module Aws::Signer
|
|
432
495
|
# * {Types::GetSigningPlatformResponse#signing_configuration #signing_configuration} => Types::SigningConfiguration
|
433
496
|
# * {Types::GetSigningPlatformResponse#signing_image_format #signing_image_format} => Types::SigningImageFormat
|
434
497
|
# * {Types::GetSigningPlatformResponse#max_size_in_mb #max_size_in_mb} => Integer
|
498
|
+
# * {Types::GetSigningPlatformResponse#revocation_supported #revocation_supported} => Boolean
|
435
499
|
#
|
436
500
|
# @example Request syntax with placeholder values
|
437
501
|
#
|
@@ -456,6 +520,7 @@ module Aws::Signer
|
|
456
520
|
# resp.signing_image_format.supported_formats[0] #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
457
521
|
# resp.signing_image_format.default_format #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
458
522
|
# resp.max_size_in_mb #=> Integer
|
523
|
+
# resp.revocation_supported #=> Boolean
|
459
524
|
#
|
460
525
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningPlatform AWS API Documentation
|
461
526
|
#
|
@@ -471,14 +536,23 @@ module Aws::Signer
|
|
471
536
|
# @option params [required, String] :profile_name
|
472
537
|
# The name of the target signing profile.
|
473
538
|
#
|
539
|
+
# @option params [String] :profile_owner
|
540
|
+
# The AWS account ID of the profile owner.
|
541
|
+
#
|
474
542
|
# @return [Types::GetSigningProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
475
543
|
#
|
476
544
|
# * {Types::GetSigningProfileResponse#profile_name #profile_name} => String
|
545
|
+
# * {Types::GetSigningProfileResponse#profile_version #profile_version} => String
|
546
|
+
# * {Types::GetSigningProfileResponse#profile_version_arn #profile_version_arn} => String
|
547
|
+
# * {Types::GetSigningProfileResponse#revocation_record #revocation_record} => Types::SigningProfileRevocationRecord
|
477
548
|
# * {Types::GetSigningProfileResponse#signing_material #signing_material} => Types::SigningMaterial
|
478
549
|
# * {Types::GetSigningProfileResponse#platform_id #platform_id} => String
|
550
|
+
# * {Types::GetSigningProfileResponse#platform_display_name #platform_display_name} => String
|
551
|
+
# * {Types::GetSigningProfileResponse#signature_validity_period #signature_validity_period} => Types::SignatureValidityPeriod
|
479
552
|
# * {Types::GetSigningProfileResponse#overrides #overrides} => Types::SigningPlatformOverrides
|
480
553
|
# * {Types::GetSigningProfileResponse#signing_parameters #signing_parameters} => Hash<String,String>
|
481
554
|
# * {Types::GetSigningProfileResponse#status #status} => String
|
555
|
+
# * {Types::GetSigningProfileResponse#status_reason #status_reason} => String
|
482
556
|
# * {Types::GetSigningProfileResponse#arn #arn} => String
|
483
557
|
# * {Types::GetSigningProfileResponse#tags #tags} => Hash<String,String>
|
484
558
|
#
|
@@ -486,19 +560,29 @@ module Aws::Signer
|
|
486
560
|
#
|
487
561
|
# resp = client.get_signing_profile({
|
488
562
|
# profile_name: "ProfileName", # required
|
563
|
+
# profile_owner: "AccountId",
|
489
564
|
# })
|
490
565
|
#
|
491
566
|
# @example Response structure
|
492
567
|
#
|
493
568
|
# resp.profile_name #=> String
|
569
|
+
# resp.profile_version #=> String
|
570
|
+
# resp.profile_version_arn #=> String
|
571
|
+
# resp.revocation_record.revocation_effective_from #=> Time
|
572
|
+
# resp.revocation_record.revoked_at #=> Time
|
573
|
+
# resp.revocation_record.revoked_by #=> String
|
494
574
|
# resp.signing_material.certificate_arn #=> String
|
495
575
|
# resp.platform_id #=> String
|
576
|
+
# resp.platform_display_name #=> String
|
577
|
+
# resp.signature_validity_period.value #=> Integer
|
578
|
+
# resp.signature_validity_period.type #=> String, one of "DAYS", "MONTHS", "YEARS"
|
496
579
|
# resp.overrides.signing_configuration.encryption_algorithm #=> String, one of "RSA", "ECDSA"
|
497
580
|
# resp.overrides.signing_configuration.hash_algorithm #=> String, one of "SHA1", "SHA256"
|
498
581
|
# resp.overrides.signing_image_format #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
499
582
|
# resp.signing_parameters #=> Hash
|
500
583
|
# resp.signing_parameters["SigningParameterKey"] #=> String
|
501
|
-
# resp.status #=> String, one of "Active", "Canceled"
|
584
|
+
# resp.status #=> String, one of "Active", "Canceled", "Revoked"
|
585
|
+
# resp.status_reason #=> String
|
502
586
|
# resp.arn #=> String
|
503
587
|
# resp.tags #=> Hash
|
504
588
|
# resp.tags["TagKey"] #=> String
|
@@ -512,6 +596,48 @@ module Aws::Signer
|
|
512
596
|
req.send_request(options)
|
513
597
|
end
|
514
598
|
|
599
|
+
# Lists the cross-account permissions associated with a signing profile.
|
600
|
+
#
|
601
|
+
# @option params [required, String] :profile_name
|
602
|
+
# Name of the signing profile containing the cross-account permissions.
|
603
|
+
#
|
604
|
+
# @option params [String] :next_token
|
605
|
+
# String for specifying the next set of paginated results.
|
606
|
+
#
|
607
|
+
# @return [Types::ListProfilePermissionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
608
|
+
#
|
609
|
+
# * {Types::ListProfilePermissionsResponse#revision_id #revision_id} => String
|
610
|
+
# * {Types::ListProfilePermissionsResponse#policy_size_bytes #policy_size_bytes} => Integer
|
611
|
+
# * {Types::ListProfilePermissionsResponse#permissions #permissions} => Array<Types::Permission>
|
612
|
+
# * {Types::ListProfilePermissionsResponse#next_token #next_token} => String
|
613
|
+
#
|
614
|
+
# @example Request syntax with placeholder values
|
615
|
+
#
|
616
|
+
# resp = client.list_profile_permissions({
|
617
|
+
# profile_name: "ProfileName", # required
|
618
|
+
# next_token: "String",
|
619
|
+
# })
|
620
|
+
#
|
621
|
+
# @example Response structure
|
622
|
+
#
|
623
|
+
# resp.revision_id #=> String
|
624
|
+
# resp.policy_size_bytes #=> Integer
|
625
|
+
# resp.permissions #=> Array
|
626
|
+
# resp.permissions[0].action #=> String
|
627
|
+
# resp.permissions[0].principal #=> String
|
628
|
+
# resp.permissions[0].statement_id #=> String
|
629
|
+
# resp.permissions[0].profile_version #=> String
|
630
|
+
# resp.next_token #=> String
|
631
|
+
#
|
632
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListProfilePermissions AWS API Documentation
|
633
|
+
#
|
634
|
+
# @overload list_profile_permissions(params = {})
|
635
|
+
# @param [Hash] params ({})
|
636
|
+
def list_profile_permissions(params = {}, options = {})
|
637
|
+
req = build_request(:list_profile_permissions, params)
|
638
|
+
req.send_request(options)
|
639
|
+
end
|
640
|
+
|
515
641
|
# Lists all your signing jobs. You can use the `maxResults` parameter to
|
516
642
|
# limit the number of signing jobs that are returned in the response. If
|
517
643
|
# additional jobs remain to be listed, code signing returns a
|
@@ -544,6 +670,21 @@ module Aws::Signer
|
|
544
670
|
# parameter in a subsequent request. Set it to the value of `nextToken`
|
545
671
|
# from the response that you just received.
|
546
672
|
#
|
673
|
+
# @option params [Boolean] :is_revoked
|
674
|
+
# Filters results to return only signing jobs with revoked signatures.
|
675
|
+
#
|
676
|
+
# @option params [Time,DateTime,Date,Integer,String] :signature_expires_before
|
677
|
+
# Filters results to return only signing jobs with signatures expiring
|
678
|
+
# before a specified timestamp.
|
679
|
+
#
|
680
|
+
# @option params [Time,DateTime,Date,Integer,String] :signature_expires_after
|
681
|
+
# Filters results to return only signing jobs with signatures expiring
|
682
|
+
# after a specified timestamp.
|
683
|
+
#
|
684
|
+
# @option params [String] :job_invoker
|
685
|
+
# Filters results to return only signing jobs initiated by a specified
|
686
|
+
# IAM entity.
|
687
|
+
#
|
547
688
|
# @return [Types::ListSigningJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
548
689
|
#
|
549
690
|
# * {Types::ListSigningJobsResponse#jobs #jobs} => Array<Types::SigningJob>
|
@@ -559,6 +700,10 @@ module Aws::Signer
|
|
559
700
|
# requested_by: "RequestedBy",
|
560
701
|
# max_results: 1,
|
561
702
|
# next_token: "NextToken",
|
703
|
+
# is_revoked: false,
|
704
|
+
# signature_expires_before: Time.now,
|
705
|
+
# signature_expires_after: Time.now,
|
706
|
+
# job_invoker: "AccountId",
|
562
707
|
# })
|
563
708
|
#
|
564
709
|
# @example Response structure
|
@@ -573,6 +718,14 @@ module Aws::Signer
|
|
573
718
|
# resp.jobs[0].signing_material.certificate_arn #=> String
|
574
719
|
# resp.jobs[0].created_at #=> Time
|
575
720
|
# resp.jobs[0].status #=> String, one of "InProgress", "Failed", "Succeeded"
|
721
|
+
# resp.jobs[0].is_revoked #=> Boolean
|
722
|
+
# resp.jobs[0].profile_name #=> String
|
723
|
+
# resp.jobs[0].profile_version #=> String
|
724
|
+
# resp.jobs[0].platform_id #=> String
|
725
|
+
# resp.jobs[0].platform_display_name #=> String
|
726
|
+
# resp.jobs[0].signature_expires_at #=> Time
|
727
|
+
# resp.jobs[0].job_owner #=> String
|
728
|
+
# resp.jobs[0].job_invoker #=> String
|
576
729
|
# resp.next_token #=> String
|
577
730
|
#
|
578
731
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobs AWS API Documentation
|
@@ -645,6 +798,7 @@ module Aws::Signer
|
|
645
798
|
# resp.platforms[0].signing_image_format.supported_formats[0] #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
646
799
|
# resp.platforms[0].signing_image_format.default_format #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
647
800
|
# resp.platforms[0].max_size_in_mb #=> Integer
|
801
|
+
# resp.platforms[0].revocation_supported #=> Boolean
|
648
802
|
# resp.next_token #=> String
|
649
803
|
#
|
650
804
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningPlatforms AWS API Documentation
|
@@ -677,6 +831,14 @@ module Aws::Signer
|
|
677
831
|
# parameter in a subsequent request. Set it to the value of `nextToken`
|
678
832
|
# from the response that you just received.
|
679
833
|
#
|
834
|
+
# @option params [String] :platform_id
|
835
|
+
# Filters results to return only signing jobs initiated for a specified
|
836
|
+
# signing platform.
|
837
|
+
#
|
838
|
+
# @option params [Array<String>] :statuses
|
839
|
+
# Filters results to return only signing jobs with statuses in the
|
840
|
+
# specified list.
|
841
|
+
#
|
680
842
|
# @return [Types::ListSigningProfilesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
681
843
|
#
|
682
844
|
# * {Types::ListSigningProfilesResponse#profiles #profiles} => Array<Types::SigningProfile>
|
@@ -690,17 +852,24 @@ module Aws::Signer
|
|
690
852
|
# include_canceled: false,
|
691
853
|
# max_results: 1,
|
692
854
|
# next_token: "NextToken",
|
855
|
+
# platform_id: "PlatformId",
|
856
|
+
# statuses: ["Active"], # accepts Active, Canceled, Revoked
|
693
857
|
# })
|
694
858
|
#
|
695
859
|
# @example Response structure
|
696
860
|
#
|
697
861
|
# resp.profiles #=> Array
|
698
862
|
# resp.profiles[0].profile_name #=> String
|
863
|
+
# resp.profiles[0].profile_version #=> String
|
864
|
+
# resp.profiles[0].profile_version_arn #=> String
|
699
865
|
# resp.profiles[0].signing_material.certificate_arn #=> String
|
866
|
+
# resp.profiles[0].signature_validity_period.value #=> Integer
|
867
|
+
# resp.profiles[0].signature_validity_period.type #=> String, one of "DAYS", "MONTHS", "YEARS"
|
700
868
|
# resp.profiles[0].platform_id #=> String
|
869
|
+
# resp.profiles[0].platform_display_name #=> String
|
701
870
|
# resp.profiles[0].signing_parameters #=> Hash
|
702
871
|
# resp.profiles[0].signing_parameters["SigningParameterKey"] #=> String
|
703
|
-
# resp.profiles[0].status #=> String, one of "Active", "Canceled"
|
872
|
+
# resp.profiles[0].status #=> String, one of "Active", "Canceled", "Revoked"
|
704
873
|
# resp.profiles[0].arn #=> String
|
705
874
|
# resp.profiles[0].tags #=> Hash
|
706
875
|
# resp.profiles[0].tags["TagKey"] #=> String
|
@@ -756,10 +925,14 @@ module Aws::Signer
|
|
756
925
|
# @option params [required, String] :profile_name
|
757
926
|
# The name of the signing profile to be created.
|
758
927
|
#
|
759
|
-
# @option params [
|
928
|
+
# @option params [Types::SigningMaterial] :signing_material
|
760
929
|
# The AWS Certificate Manager certificate that will be used to sign code
|
761
930
|
# with the new signing profile.
|
762
931
|
#
|
932
|
+
# @option params [Types::SignatureValidityPeriod] :signature_validity_period
|
933
|
+
# The default validity period override for any signature generated using
|
934
|
+
# this signing profile. If unspecified, the default is 135 months.
|
935
|
+
#
|
763
936
|
# @option params [required, String] :platform_id
|
764
937
|
# The ID of the signing platform to be created.
|
765
938
|
#
|
@@ -778,14 +951,20 @@ module Aws::Signer
|
|
778
951
|
# @return [Types::PutSigningProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
779
952
|
#
|
780
953
|
# * {Types::PutSigningProfileResponse#arn #arn} => String
|
954
|
+
# * {Types::PutSigningProfileResponse#profile_version #profile_version} => String
|
955
|
+
# * {Types::PutSigningProfileResponse#profile_version_arn #profile_version_arn} => String
|
781
956
|
#
|
782
957
|
# @example Request syntax with placeholder values
|
783
958
|
#
|
784
959
|
# resp = client.put_signing_profile({
|
785
960
|
# profile_name: "ProfileName", # required
|
786
|
-
# signing_material: {
|
961
|
+
# signing_material: {
|
787
962
|
# certificate_arn: "CertificateArn", # required
|
788
963
|
# },
|
964
|
+
# signature_validity_period: {
|
965
|
+
# value: 1,
|
966
|
+
# type: "DAYS", # accepts DAYS, MONTHS, YEARS
|
967
|
+
# },
|
789
968
|
# platform_id: "PlatformId", # required
|
790
969
|
# overrides: {
|
791
970
|
# signing_configuration: {
|
@@ -805,6 +984,8 @@ module Aws::Signer
|
|
805
984
|
# @example Response structure
|
806
985
|
#
|
807
986
|
# resp.arn #=> String
|
987
|
+
# resp.profile_version #=> String
|
988
|
+
# resp.profile_version_arn #=> String
|
808
989
|
#
|
809
990
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/PutSigningProfile AWS API Documentation
|
810
991
|
#
|
@@ -815,6 +996,113 @@ module Aws::Signer
|
|
815
996
|
req.send_request(options)
|
816
997
|
end
|
817
998
|
|
999
|
+
# Removes cross-account permissions from a signing profile.
|
1000
|
+
#
|
1001
|
+
# @option params [required, String] :profile_name
|
1002
|
+
# A human-readable name for the signing profile with permissions to be
|
1003
|
+
# removed.
|
1004
|
+
#
|
1005
|
+
# @option params [required, String] :revision_id
|
1006
|
+
# An identifier for the current revision of the signing profile
|
1007
|
+
# permissions.
|
1008
|
+
#
|
1009
|
+
# @option params [required, String] :statement_id
|
1010
|
+
# A unique identifier for the cross-account permissions statement.
|
1011
|
+
#
|
1012
|
+
# @return [Types::RemoveProfilePermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1013
|
+
#
|
1014
|
+
# * {Types::RemoveProfilePermissionResponse#revision_id #revision_id} => String
|
1015
|
+
#
|
1016
|
+
# @example Request syntax with placeholder values
|
1017
|
+
#
|
1018
|
+
# resp = client.remove_profile_permission({
|
1019
|
+
# profile_name: "ProfileName", # required
|
1020
|
+
# revision_id: "String", # required
|
1021
|
+
# statement_id: "String", # required
|
1022
|
+
# })
|
1023
|
+
#
|
1024
|
+
# @example Response structure
|
1025
|
+
#
|
1026
|
+
# resp.revision_id #=> String
|
1027
|
+
#
|
1028
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RemoveProfilePermission AWS API Documentation
|
1029
|
+
#
|
1030
|
+
# @overload remove_profile_permission(params = {})
|
1031
|
+
# @param [Hash] params ({})
|
1032
|
+
def remove_profile_permission(params = {}, options = {})
|
1033
|
+
req = build_request(:remove_profile_permission, params)
|
1034
|
+
req.send_request(options)
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
# Changes the state of a signing job to REVOKED. This indicates that the
|
1038
|
+
# signature is no longer valid.
|
1039
|
+
#
|
1040
|
+
# @option params [required, String] :job_id
|
1041
|
+
# ID of the signing job to be revoked.
|
1042
|
+
#
|
1043
|
+
# @option params [String] :job_owner
|
1044
|
+
# AWS account ID of the job owner.
|
1045
|
+
#
|
1046
|
+
# @option params [required, String] :reason
|
1047
|
+
# The reason for revoking the signing job.
|
1048
|
+
#
|
1049
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1050
|
+
#
|
1051
|
+
# @example Request syntax with placeholder values
|
1052
|
+
#
|
1053
|
+
# resp = client.revoke_signature({
|
1054
|
+
# job_id: "JobId", # required
|
1055
|
+
# job_owner: "AccountId",
|
1056
|
+
# reason: "RevocationReasonString", # required
|
1057
|
+
# })
|
1058
|
+
#
|
1059
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RevokeSignature AWS API Documentation
|
1060
|
+
#
|
1061
|
+
# @overload revoke_signature(params = {})
|
1062
|
+
# @param [Hash] params ({})
|
1063
|
+
def revoke_signature(params = {}, options = {})
|
1064
|
+
req = build_request(:revoke_signature, params)
|
1065
|
+
req.send_request(options)
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
# Changes the state of a signing profile to REVOKED. This indicates that
|
1069
|
+
# signatures generated using the signing profile after an effective
|
1070
|
+
# start date are no longer valid.
|
1071
|
+
#
|
1072
|
+
# @option params [required, String] :profile_name
|
1073
|
+
# The name of the signing profile to be revoked.
|
1074
|
+
#
|
1075
|
+
# @option params [required, String] :profile_version
|
1076
|
+
# The version of the signing profile to be revoked.
|
1077
|
+
#
|
1078
|
+
# @option params [required, String] :reason
|
1079
|
+
# The reason for revoking a signing profile.
|
1080
|
+
#
|
1081
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :effective_time
|
1082
|
+
# A timestamp for when revocation of a Signing Profile should become
|
1083
|
+
# effective. Signatures generated using the signing profile after this
|
1084
|
+
# timestamp are not trusted.
|
1085
|
+
#
|
1086
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1087
|
+
#
|
1088
|
+
# @example Request syntax with placeholder values
|
1089
|
+
#
|
1090
|
+
# resp = client.revoke_signing_profile({
|
1091
|
+
# profile_name: "ProfileName", # required
|
1092
|
+
# profile_version: "ProfileVersion", # required
|
1093
|
+
# reason: "RevocationReasonString", # required
|
1094
|
+
# effective_time: Time.now, # required
|
1095
|
+
# })
|
1096
|
+
#
|
1097
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RevokeSigningProfile AWS API Documentation
|
1098
|
+
#
|
1099
|
+
# @overload revoke_signing_profile(params = {})
|
1100
|
+
# @param [Hash] params ({})
|
1101
|
+
def revoke_signing_profile(params = {}, options = {})
|
1102
|
+
req = build_request(:revoke_signing_profile, params)
|
1103
|
+
req.send_request(options)
|
1104
|
+
end
|
1105
|
+
|
818
1106
|
# Initiates a signing job to be performed on the code provided. Signing
|
819
1107
|
# jobs are viewable by the `ListSigningJobs` operation for two years
|
820
1108
|
# after they are performed. Note the following requirements:
|
@@ -852,7 +1140,7 @@ module Aws::Signer
|
|
852
1140
|
# The S3 bucket in which to save your signed object. The destination
|
853
1141
|
# contains the name of your bucket and an optional prefix.
|
854
1142
|
#
|
855
|
-
# @option params [String] :profile_name
|
1143
|
+
# @option params [required, String] :profile_name
|
856
1144
|
# The name of the signing profile.
|
857
1145
|
#
|
858
1146
|
# @option params [required, String] :client_request_token
|
@@ -862,9 +1150,13 @@ module Aws::Signer
|
|
862
1150
|
# **A suitable default value is auto-generated.** You should normally
|
863
1151
|
# not need to pass this option.**
|
864
1152
|
#
|
1153
|
+
# @option params [String] :profile_owner
|
1154
|
+
# The AWS account ID of the signing profile owner.
|
1155
|
+
#
|
865
1156
|
# @return [Types::StartSigningJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
866
1157
|
#
|
867
1158
|
# * {Types::StartSigningJobResponse#job_id #job_id} => String
|
1159
|
+
# * {Types::StartSigningJobResponse#job_owner #job_owner} => String
|
868
1160
|
#
|
869
1161
|
# @example Request syntax with placeholder values
|
870
1162
|
#
|
@@ -882,13 +1174,15 @@ module Aws::Signer
|
|
882
1174
|
# prefix: "Prefix",
|
883
1175
|
# },
|
884
1176
|
# },
|
885
|
-
# profile_name: "ProfileName",
|
1177
|
+
# profile_name: "ProfileName", # required
|
886
1178
|
# client_request_token: "ClientRequestToken", # required
|
1179
|
+
# profile_owner: "AccountId",
|
887
1180
|
# })
|
888
1181
|
#
|
889
1182
|
# @example Response structure
|
890
1183
|
#
|
891
1184
|
# resp.job_id #=> String
|
1185
|
+
# resp.job_owner #=> String
|
892
1186
|
#
|
893
1187
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/StartSigningJob AWS API Documentation
|
894
1188
|
#
|
@@ -971,7 +1265,7 @@ module Aws::Signer
|
|
971
1265
|
params: params,
|
972
1266
|
config: config)
|
973
1267
|
context[:gem_name] = 'aws-sdk-signer'
|
974
|
-
context[:gem_version] = '1.
|
1268
|
+
context[:gem_version] = '1.27.0'
|
975
1269
|
Seahorse::Client::Request.new(handlers, context)
|
976
1270
|
end
|
977
1271
|
|