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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-signer.rb +4 -3
- data/lib/aws-sdk-signer/client.rb +323 -14
- 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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b65872e41281f64e493281ee0bfa58d8bb0d7ce98fc550bb04c3cf4e303f0dc
|
4
|
+
data.tar.gz: f1822ec476fa655ddd3c8bfed3974508569f28af2fe87a04c0e2d110a369a0de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 203f0ab9ef05222ee323b4150483e211ccb49c2572c65186f4b62b2d624a7e818e62feea87ddcdfce4c00b4a47a26d5d91156a6a1da88a8cbca147808fb6ad66
|
7
|
+
data.tar.gz: 80ce8dfc7962700bdfb893b1e72142a1c15ad784cd409bd8859ee25f36644750d3ae21a53c0d38714e30fc49e5c57360b66660bc3a3043a0b777f2e91f286719
|
data/lib/aws-sdk-signer.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -28,7 +29,7 @@ require_relative 'aws-sdk-signer/customizations'
|
|
28
29
|
# structure.
|
29
30
|
#
|
30
31
|
# signer = Aws::Signer::Client.new
|
31
|
-
# resp = signer.
|
32
|
+
# resp = signer.add_profile_permission(params)
|
32
33
|
#
|
33
34
|
# See {Client} for more information.
|
34
35
|
#
|
@@ -45,9 +46,9 @@ require_relative 'aws-sdk-signer/customizations'
|
|
45
46
|
#
|
46
47
|
# See {Errors} for more information.
|
47
48
|
#
|
48
|
-
#
|
49
|
+
# @!group service
|
49
50
|
module Aws::Signer
|
50
51
|
|
51
|
-
GEM_VERSION = '1.
|
52
|
+
GEM_VERSION = '1.28.0'
|
52
53
|
|
53
54
|
end
|
@@ -85,13 +85,28 @@ module Aws::Signer
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::Signer
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -312,6 +327,55 @@ module Aws::Signer
|
|
312
327
|
|
313
328
|
# @!group API Operations
|
314
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
|
+
|
315
379
|
# Changes the state of an `ACTIVE` signing profile to `CANCELED`. A
|
316
380
|
# canceled profile is still viewable with the `ListSigningProfiles`
|
317
381
|
# operation, but it cannot perform new signing jobs, and is deleted two
|
@@ -350,15 +414,21 @@ module Aws::Signer
|
|
350
414
|
# * {Types::DescribeSigningJobResponse#source #source} => Types::Source
|
351
415
|
# * {Types::DescribeSigningJobResponse#signing_material #signing_material} => Types::SigningMaterial
|
352
416
|
# * {Types::DescribeSigningJobResponse#platform_id #platform_id} => String
|
417
|
+
# * {Types::DescribeSigningJobResponse#platform_display_name #platform_display_name} => String
|
353
418
|
# * {Types::DescribeSigningJobResponse#profile_name #profile_name} => String
|
419
|
+
# * {Types::DescribeSigningJobResponse#profile_version #profile_version} => String
|
354
420
|
# * {Types::DescribeSigningJobResponse#overrides #overrides} => Types::SigningPlatformOverrides
|
355
421
|
# * {Types::DescribeSigningJobResponse#signing_parameters #signing_parameters} => Hash<String,String>
|
356
422
|
# * {Types::DescribeSigningJobResponse#created_at #created_at} => Time
|
357
423
|
# * {Types::DescribeSigningJobResponse#completed_at #completed_at} => Time
|
424
|
+
# * {Types::DescribeSigningJobResponse#signature_expires_at #signature_expires_at} => Time
|
358
425
|
# * {Types::DescribeSigningJobResponse#requested_by #requested_by} => String
|
359
426
|
# * {Types::DescribeSigningJobResponse#status #status} => String
|
360
427
|
# * {Types::DescribeSigningJobResponse#status_reason #status_reason} => String
|
428
|
+
# * {Types::DescribeSigningJobResponse#revocation_record #revocation_record} => Types::SigningJobRevocationRecord
|
361
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
|
362
432
|
#
|
363
433
|
# @example Request syntax with placeholder values
|
364
434
|
#
|
@@ -374,7 +444,9 @@ module Aws::Signer
|
|
374
444
|
# resp.source.s3.version #=> String
|
375
445
|
# resp.signing_material.certificate_arn #=> String
|
376
446
|
# resp.platform_id #=> String
|
447
|
+
# resp.platform_display_name #=> String
|
377
448
|
# resp.profile_name #=> String
|
449
|
+
# resp.profile_version #=> String
|
378
450
|
# resp.overrides.signing_configuration.encryption_algorithm #=> String, one of "RSA", "ECDSA"
|
379
451
|
# resp.overrides.signing_configuration.hash_algorithm #=> String, one of "SHA1", "SHA256"
|
380
452
|
# resp.overrides.signing_image_format #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
@@ -382,11 +454,17 @@ module Aws::Signer
|
|
382
454
|
# resp.signing_parameters["SigningParameterKey"] #=> String
|
383
455
|
# resp.created_at #=> Time
|
384
456
|
# resp.completed_at #=> Time
|
457
|
+
# resp.signature_expires_at #=> Time
|
385
458
|
# resp.requested_by #=> String
|
386
459
|
# resp.status #=> String, one of "InProgress", "Failed", "Succeeded"
|
387
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
|
388
464
|
# resp.signed_object.s3.bucket_name #=> String
|
389
465
|
# resp.signed_object.s3.key #=> String
|
466
|
+
# resp.job_owner #=> String
|
467
|
+
# resp.job_invoker #=> String
|
390
468
|
#
|
391
469
|
#
|
392
470
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -417,6 +495,7 @@ module Aws::Signer
|
|
417
495
|
# * {Types::GetSigningPlatformResponse#signing_configuration #signing_configuration} => Types::SigningConfiguration
|
418
496
|
# * {Types::GetSigningPlatformResponse#signing_image_format #signing_image_format} => Types::SigningImageFormat
|
419
497
|
# * {Types::GetSigningPlatformResponse#max_size_in_mb #max_size_in_mb} => Integer
|
498
|
+
# * {Types::GetSigningPlatformResponse#revocation_supported #revocation_supported} => Boolean
|
420
499
|
#
|
421
500
|
# @example Request syntax with placeholder values
|
422
501
|
#
|
@@ -441,6 +520,7 @@ module Aws::Signer
|
|
441
520
|
# resp.signing_image_format.supported_formats[0] #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
442
521
|
# resp.signing_image_format.default_format #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
443
522
|
# resp.max_size_in_mb #=> Integer
|
523
|
+
# resp.revocation_supported #=> Boolean
|
444
524
|
#
|
445
525
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningPlatform AWS API Documentation
|
446
526
|
#
|
@@ -456,14 +536,23 @@ module Aws::Signer
|
|
456
536
|
# @option params [required, String] :profile_name
|
457
537
|
# The name of the target signing profile.
|
458
538
|
#
|
539
|
+
# @option params [String] :profile_owner
|
540
|
+
# The AWS account ID of the profile owner.
|
541
|
+
#
|
459
542
|
# @return [Types::GetSigningProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
460
543
|
#
|
461
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
|
462
548
|
# * {Types::GetSigningProfileResponse#signing_material #signing_material} => Types::SigningMaterial
|
463
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
|
464
552
|
# * {Types::GetSigningProfileResponse#overrides #overrides} => Types::SigningPlatformOverrides
|
465
553
|
# * {Types::GetSigningProfileResponse#signing_parameters #signing_parameters} => Hash<String,String>
|
466
554
|
# * {Types::GetSigningProfileResponse#status #status} => String
|
555
|
+
# * {Types::GetSigningProfileResponse#status_reason #status_reason} => String
|
467
556
|
# * {Types::GetSigningProfileResponse#arn #arn} => String
|
468
557
|
# * {Types::GetSigningProfileResponse#tags #tags} => Hash<String,String>
|
469
558
|
#
|
@@ -471,19 +560,29 @@ module Aws::Signer
|
|
471
560
|
#
|
472
561
|
# resp = client.get_signing_profile({
|
473
562
|
# profile_name: "ProfileName", # required
|
563
|
+
# profile_owner: "AccountId",
|
474
564
|
# })
|
475
565
|
#
|
476
566
|
# @example Response structure
|
477
567
|
#
|
478
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
|
479
574
|
# resp.signing_material.certificate_arn #=> String
|
480
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"
|
481
579
|
# resp.overrides.signing_configuration.encryption_algorithm #=> String, one of "RSA", "ECDSA"
|
482
580
|
# resp.overrides.signing_configuration.hash_algorithm #=> String, one of "SHA1", "SHA256"
|
483
581
|
# resp.overrides.signing_image_format #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
484
582
|
# resp.signing_parameters #=> Hash
|
485
583
|
# resp.signing_parameters["SigningParameterKey"] #=> String
|
486
|
-
# resp.status #=> String, one of "Active", "Canceled"
|
584
|
+
# resp.status #=> String, one of "Active", "Canceled", "Revoked"
|
585
|
+
# resp.status_reason #=> String
|
487
586
|
# resp.arn #=> String
|
488
587
|
# resp.tags #=> Hash
|
489
588
|
# resp.tags["TagKey"] #=> String
|
@@ -497,6 +596,48 @@ module Aws::Signer
|
|
497
596
|
req.send_request(options)
|
498
597
|
end
|
499
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
|
+
|
500
641
|
# Lists all your signing jobs. You can use the `maxResults` parameter to
|
501
642
|
# limit the number of signing jobs that are returned in the response. If
|
502
643
|
# additional jobs remain to be listed, code signing returns a
|
@@ -529,6 +670,21 @@ module Aws::Signer
|
|
529
670
|
# parameter in a subsequent request. Set it to the value of `nextToken`
|
530
671
|
# from the response that you just received.
|
531
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
|
+
#
|
532
688
|
# @return [Types::ListSigningJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
533
689
|
#
|
534
690
|
# * {Types::ListSigningJobsResponse#jobs #jobs} => Array<Types::SigningJob>
|
@@ -544,6 +700,10 @@ module Aws::Signer
|
|
544
700
|
# requested_by: "RequestedBy",
|
545
701
|
# max_results: 1,
|
546
702
|
# next_token: "NextToken",
|
703
|
+
# is_revoked: false,
|
704
|
+
# signature_expires_before: Time.now,
|
705
|
+
# signature_expires_after: Time.now,
|
706
|
+
# job_invoker: "AccountId",
|
547
707
|
# })
|
548
708
|
#
|
549
709
|
# @example Response structure
|
@@ -558,6 +718,14 @@ module Aws::Signer
|
|
558
718
|
# resp.jobs[0].signing_material.certificate_arn #=> String
|
559
719
|
# resp.jobs[0].created_at #=> Time
|
560
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
|
561
729
|
# resp.next_token #=> String
|
562
730
|
#
|
563
731
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobs AWS API Documentation
|
@@ -630,6 +798,7 @@ module Aws::Signer
|
|
630
798
|
# resp.platforms[0].signing_image_format.supported_formats[0] #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
631
799
|
# resp.platforms[0].signing_image_format.default_format #=> String, one of "JSON", "JSONEmbedded", "JSONDetached"
|
632
800
|
# resp.platforms[0].max_size_in_mb #=> Integer
|
801
|
+
# resp.platforms[0].revocation_supported #=> Boolean
|
633
802
|
# resp.next_token #=> String
|
634
803
|
#
|
635
804
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningPlatforms AWS API Documentation
|
@@ -662,6 +831,14 @@ module Aws::Signer
|
|
662
831
|
# parameter in a subsequent request. Set it to the value of `nextToken`
|
663
832
|
# from the response that you just received.
|
664
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
|
+
#
|
665
842
|
# @return [Types::ListSigningProfilesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
666
843
|
#
|
667
844
|
# * {Types::ListSigningProfilesResponse#profiles #profiles} => Array<Types::SigningProfile>
|
@@ -675,17 +852,24 @@ module Aws::Signer
|
|
675
852
|
# include_canceled: false,
|
676
853
|
# max_results: 1,
|
677
854
|
# next_token: "NextToken",
|
855
|
+
# platform_id: "PlatformId",
|
856
|
+
# statuses: ["Active"], # accepts Active, Canceled, Revoked
|
678
857
|
# })
|
679
858
|
#
|
680
859
|
# @example Response structure
|
681
860
|
#
|
682
861
|
# resp.profiles #=> Array
|
683
862
|
# resp.profiles[0].profile_name #=> String
|
863
|
+
# resp.profiles[0].profile_version #=> String
|
864
|
+
# resp.profiles[0].profile_version_arn #=> String
|
684
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"
|
685
868
|
# resp.profiles[0].platform_id #=> String
|
869
|
+
# resp.profiles[0].platform_display_name #=> String
|
686
870
|
# resp.profiles[0].signing_parameters #=> Hash
|
687
871
|
# resp.profiles[0].signing_parameters["SigningParameterKey"] #=> String
|
688
|
-
# resp.profiles[0].status #=> String, one of "Active", "Canceled"
|
872
|
+
# resp.profiles[0].status #=> String, one of "Active", "Canceled", "Revoked"
|
689
873
|
# resp.profiles[0].arn #=> String
|
690
874
|
# resp.profiles[0].tags #=> Hash
|
691
875
|
# resp.profiles[0].tags["TagKey"] #=> String
|
@@ -741,10 +925,14 @@ module Aws::Signer
|
|
741
925
|
# @option params [required, String] :profile_name
|
742
926
|
# The name of the signing profile to be created.
|
743
927
|
#
|
744
|
-
# @option params [
|
928
|
+
# @option params [Types::SigningMaterial] :signing_material
|
745
929
|
# The AWS Certificate Manager certificate that will be used to sign code
|
746
930
|
# with the new signing profile.
|
747
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
|
+
#
|
748
936
|
# @option params [required, String] :platform_id
|
749
937
|
# The ID of the signing platform to be created.
|
750
938
|
#
|
@@ -763,14 +951,20 @@ module Aws::Signer
|
|
763
951
|
# @return [Types::PutSigningProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
764
952
|
#
|
765
953
|
# * {Types::PutSigningProfileResponse#arn #arn} => String
|
954
|
+
# * {Types::PutSigningProfileResponse#profile_version #profile_version} => String
|
955
|
+
# * {Types::PutSigningProfileResponse#profile_version_arn #profile_version_arn} => String
|
766
956
|
#
|
767
957
|
# @example Request syntax with placeholder values
|
768
958
|
#
|
769
959
|
# resp = client.put_signing_profile({
|
770
960
|
# profile_name: "ProfileName", # required
|
771
|
-
# signing_material: {
|
961
|
+
# signing_material: {
|
772
962
|
# certificate_arn: "CertificateArn", # required
|
773
963
|
# },
|
964
|
+
# signature_validity_period: {
|
965
|
+
# value: 1,
|
966
|
+
# type: "DAYS", # accepts DAYS, MONTHS, YEARS
|
967
|
+
# },
|
774
968
|
# platform_id: "PlatformId", # required
|
775
969
|
# overrides: {
|
776
970
|
# signing_configuration: {
|
@@ -790,6 +984,8 @@ module Aws::Signer
|
|
790
984
|
# @example Response structure
|
791
985
|
#
|
792
986
|
# resp.arn #=> String
|
987
|
+
# resp.profile_version #=> String
|
988
|
+
# resp.profile_version_arn #=> String
|
793
989
|
#
|
794
990
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/PutSigningProfile AWS API Documentation
|
795
991
|
#
|
@@ -800,6 +996,113 @@ module Aws::Signer
|
|
800
996
|
req.send_request(options)
|
801
997
|
end
|
802
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
|
+
|
803
1106
|
# Initiates a signing job to be performed on the code provided. Signing
|
804
1107
|
# jobs are viewable by the `ListSigningJobs` operation for two years
|
805
1108
|
# after they are performed. Note the following requirements:
|
@@ -837,7 +1140,7 @@ module Aws::Signer
|
|
837
1140
|
# The S3 bucket in which to save your signed object. The destination
|
838
1141
|
# contains the name of your bucket and an optional prefix.
|
839
1142
|
#
|
840
|
-
# @option params [String] :profile_name
|
1143
|
+
# @option params [required, String] :profile_name
|
841
1144
|
# The name of the signing profile.
|
842
1145
|
#
|
843
1146
|
# @option params [required, String] :client_request_token
|
@@ -847,9 +1150,13 @@ module Aws::Signer
|
|
847
1150
|
# **A suitable default value is auto-generated.** You should normally
|
848
1151
|
# not need to pass this option.**
|
849
1152
|
#
|
1153
|
+
# @option params [String] :profile_owner
|
1154
|
+
# The AWS account ID of the signing profile owner.
|
1155
|
+
#
|
850
1156
|
# @return [Types::StartSigningJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
851
1157
|
#
|
852
1158
|
# * {Types::StartSigningJobResponse#job_id #job_id} => String
|
1159
|
+
# * {Types::StartSigningJobResponse#job_owner #job_owner} => String
|
853
1160
|
#
|
854
1161
|
# @example Request syntax with placeholder values
|
855
1162
|
#
|
@@ -867,13 +1174,15 @@ module Aws::Signer
|
|
867
1174
|
# prefix: "Prefix",
|
868
1175
|
# },
|
869
1176
|
# },
|
870
|
-
# profile_name: "ProfileName",
|
1177
|
+
# profile_name: "ProfileName", # required
|
871
1178
|
# client_request_token: "ClientRequestToken", # required
|
1179
|
+
# profile_owner: "AccountId",
|
872
1180
|
# })
|
873
1181
|
#
|
874
1182
|
# @example Response structure
|
875
1183
|
#
|
876
1184
|
# resp.job_id #=> String
|
1185
|
+
# resp.job_owner #=> String
|
877
1186
|
#
|
878
1187
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/StartSigningJob AWS API Documentation
|
879
1188
|
#
|
@@ -956,7 +1265,7 @@ module Aws::Signer
|
|
956
1265
|
params: params,
|
957
1266
|
config: config)
|
958
1267
|
context[:gem_name] = 'aws-sdk-signer'
|
959
|
-
context[:gem_version] = '1.
|
1268
|
+
context[:gem_version] = '1.28.0'
|
960
1269
|
Seahorse::Client::Request.new(handlers, context)
|
961
1270
|
end
|
962
1271
|
|