aws-sdk-core 3.251.0 → 3.257.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/CHANGELOG.md +41 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/json/builder.rb +17 -2
- data/lib/aws-sdk-core/plugins/user_agent.rb +1 -1
- data/lib/aws-sdk-core/query/ec2_param_builder.rb +2 -2
- data/lib/aws-sdk-core/query/param_builder.rb +2 -2
- data/lib/aws-sdk-core/rest/request/endpoint.rb +2 -2
- data/lib/aws-sdk-core/rest/request/headers.rb +2 -2
- data/lib/aws-sdk-core/rest/request/querystring_builder.rb +2 -2
- data/lib/aws-sdk-core/util.rb +24 -0
- data/lib/aws-sdk-core/xml/builder.rb +2 -2
- data/lib/aws-sdk-signin/client.rb +407 -1
- data/lib/aws-sdk-signin/client_api.rb +325 -0
- data/lib/aws-sdk-signin/endpoint_parameters.rb +16 -0
- data/lib/aws-sdk-signin/endpoint_provider.rb +48 -0
- data/lib/aws-sdk-signin/endpoints.rb +114 -1
- data/lib/aws-sdk-signin/errors.rb +63 -0
- data/lib/aws-sdk-signin/types.rb +613 -3
- data/lib/aws-sdk-signin.rb +1 -1
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +78 -1
- data/lib/aws-sdk-sts/client_api.rb +26 -5
- data/lib/aws-sdk-sts/types.rb +138 -12
- data/lib/aws-sdk-sts.rb +1 -1
- metadata +21 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 645b4cf51bdbd1caea40a95ef787ee6e25c221a79a14387382bb7b3573e50b51
|
|
4
|
+
data.tar.gz: 3bf3895885beab2d6e0997098a670190aa41e717c686ac77841878627bca7f8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be11f00d1aed112e0721dc127af5d0bbfdae42158b75be7bd74a44df75bfedb2ce61b96f5ea0a9a394d3f886364dcd62782d3538ebcdf04f2f9473b173ccdef5
|
|
7
|
+
data.tar.gz: bc1d1b585f4602f83fe7e6b1523c7168d36d4c6ed64a61294ae243c2bbcd52c4b1777d2d093db3aa80a608b73bce7900ef559575a51754e7535049348956e07a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
3.257.0 (2026-09-14)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Updated Aws::STS::Client with the latest API changes.
|
|
8
|
+
|
|
9
|
+
* Feature - Increases the maximum session token size to 4,096 bytes and removes the packed policy size limit. Adds SessionTokenSize and SessionTokenUtilization fields and a new MinimumSessionTokenSize parameter. PackedPolicySize is deprecated.
|
|
10
|
+
|
|
11
|
+
3.256.0 (2026-09-11)
|
|
12
|
+
------------------
|
|
13
|
+
|
|
14
|
+
* Feature - Preserve millisecond precision when serializing `Time` values on the request path, instead of truncating to whole seconds.
|
|
15
|
+
|
|
16
|
+
3.255.0 (2026-09-09)
|
|
17
|
+
------------------
|
|
18
|
+
|
|
19
|
+
* Feature - Add `rexml` as a dependency.
|
|
20
|
+
|
|
21
|
+
3.254.1 (2026-08-06)
|
|
22
|
+
------------------
|
|
23
|
+
|
|
24
|
+
* Issue - Fix a double space appearing in the frameworks section of the User-Agent header.
|
|
25
|
+
|
|
26
|
+
3.254.0 (2026-07-09)
|
|
27
|
+
------------------
|
|
28
|
+
|
|
29
|
+
* Feature - Serialize `BigDecimal` values as JSON numbers in document types for REST-JSON and JSON protocols.
|
|
30
|
+
|
|
31
|
+
3.253.0 (2026-07-08)
|
|
32
|
+
------------------
|
|
33
|
+
|
|
34
|
+
* Feature - Updated Aws::Signin::Client with the latest API changes.
|
|
35
|
+
|
|
36
|
+
* Feature - Adds support for OAuth 2.0 token operations in AWS Sign-In, CreateOAuth2TokenWithIAM (client credentials flow), IntrospectOAuth2TokenWithIAM (token inspection), and RevokeOAuth2TokenWithIAM (token revocation).
|
|
37
|
+
|
|
38
|
+
3.252.0 (2026-06-10)
|
|
39
|
+
------------------
|
|
40
|
+
|
|
41
|
+
* Feature - Updated Aws::Signin::Client with the latest API changes.
|
|
42
|
+
|
|
43
|
+
* Feature - AWS Sign-In now allows customers to control access to the AWS Management Console using resource-based policies. With this release customers can restrict console access based on network perimeters such as VPC IDs, VPC endpoints, and IP addresses.
|
|
44
|
+
|
|
4
45
|
3.251.0 (2026-06-02)
|
|
5
46
|
------------------
|
|
6
47
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.257.0
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'base64'
|
|
4
|
+
require 'bigdecimal'
|
|
4
5
|
|
|
5
6
|
module Aws
|
|
6
7
|
module Json
|
|
@@ -56,21 +57,35 @@ module Aws
|
|
|
56
57
|
when TimestampShape then timestamp(ref, value)
|
|
57
58
|
when BlobShape then encode(value)
|
|
58
59
|
when FloatShape then Util.serialize_number(value)
|
|
60
|
+
when DocumentShape then document(value)
|
|
59
61
|
else value
|
|
60
62
|
end
|
|
61
63
|
end
|
|
62
64
|
|
|
65
|
+
def document(value)
|
|
66
|
+
case value
|
|
67
|
+
when Hash
|
|
68
|
+
value.transform_values { |v| document(v) }
|
|
69
|
+
when Array
|
|
70
|
+
value.map { |v| document(v) }
|
|
71
|
+
when BigDecimal, Float
|
|
72
|
+
Util.serialize_number(value.to_f)
|
|
73
|
+
else
|
|
74
|
+
value
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
63
78
|
def encode(blob)
|
|
64
79
|
Base64.strict_encode64(String === blob ? blob : blob.read)
|
|
65
80
|
end
|
|
66
81
|
|
|
67
82
|
def timestamp(ref, value)
|
|
68
83
|
case ref['timestampFormat'] || ref.shape['timestampFormat']
|
|
69
|
-
when 'iso8601' then value
|
|
84
|
+
when 'iso8601' then Util.serialize_date_time(value)
|
|
70
85
|
when 'rfc822' then value.utc.httpdate
|
|
71
86
|
else
|
|
72
87
|
# rest-json and jsonrpc default to unixTimestamp
|
|
73
|
-
value
|
|
88
|
+
Util.serialize_epoch_seconds(value)
|
|
74
89
|
end
|
|
75
90
|
end
|
|
76
91
|
|
|
@@ -211,7 +211,7 @@ variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
|
|
|
211
211
|
|
|
212
212
|
frameworks[match[:name]] = match[:version]
|
|
213
213
|
end
|
|
214
|
-
frameworks.map { |n, v| "lib/#{n}##{v}" }.join(' ')
|
|
214
|
+
frameworks.map { |n, v| "lib/#{n}##{v}" }.join(' ') unless frameworks.empty?
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
def metric_metadata
|
|
@@ -70,11 +70,11 @@ module Aws
|
|
|
70
70
|
|
|
71
71
|
def timestamp(ref, value)
|
|
72
72
|
case ref['timestampFormat'] || ref.shape['timestampFormat']
|
|
73
|
-
when 'unixTimestamp' then value
|
|
73
|
+
when 'unixTimestamp' then Util.serialize_epoch_seconds(value)
|
|
74
74
|
when 'rfc822' then value.utc.httpdate
|
|
75
75
|
else
|
|
76
76
|
# ec2 defaults to iso8601
|
|
77
|
-
value
|
|
77
|
+
Util.serialize_date_time(value)
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
80
|
|
|
@@ -87,11 +87,11 @@ module Aws
|
|
|
87
87
|
|
|
88
88
|
def timestamp(ref, value)
|
|
89
89
|
case ref['timestampFormat'] || ref.shape['timestampFormat']
|
|
90
|
-
when 'unixTimestamp' then value
|
|
90
|
+
when 'unixTimestamp' then Util.serialize_epoch_seconds(value)
|
|
91
91
|
when 'rfc822' then value.utc.httpdate
|
|
92
92
|
else
|
|
93
93
|
# query defaults to iso8601
|
|
94
|
-
value
|
|
94
|
+
Util.serialize_date_time(value)
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
97
|
|
|
@@ -66,11 +66,11 @@ module Aws
|
|
|
66
66
|
|
|
67
67
|
def timestamp(ref, value)
|
|
68
68
|
case ref['timestampFormat']
|
|
69
|
-
when 'unixTimestamp' then value
|
|
69
|
+
when 'unixTimestamp' then Util.serialize_epoch_seconds(value)
|
|
70
70
|
when 'rfc822' then value.utc.httpdate
|
|
71
71
|
else
|
|
72
72
|
# serializing as RFC 3399 date-time is the default
|
|
73
|
-
value
|
|
73
|
+
Util.serialize_date_time(value)
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
@@ -42,8 +42,8 @@ module Aws
|
|
|
42
42
|
|
|
43
43
|
def timestamp(ref, value)
|
|
44
44
|
case ref['timestampFormat'] || ref.shape['timestampFormat']
|
|
45
|
-
when 'unixTimestamp' then value
|
|
46
|
-
when 'iso8601' then value
|
|
45
|
+
when 'unixTimestamp' then Util.serialize_epoch_seconds(value)
|
|
46
|
+
when 'iso8601' then Util.serialize_date_time(value)
|
|
47
47
|
else
|
|
48
48
|
# header default to rfc822
|
|
49
49
|
value.utc.httpdate
|
|
@@ -63,11 +63,11 @@ module Aws
|
|
|
63
63
|
|
|
64
64
|
def timestamp(ref, value)
|
|
65
65
|
case ref['timestampFormat'] || ref.shape['timestampFormat']
|
|
66
|
-
when 'unixTimestamp' then value
|
|
66
|
+
when 'unixTimestamp' then Util.serialize_epoch_seconds(value)
|
|
67
67
|
when 'rfc822' then value.utc.httpdate
|
|
68
68
|
else
|
|
69
69
|
# querystring defaults to iso8601
|
|
70
|
-
value
|
|
70
|
+
Util.serialize_date_time(value)
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
data/lib/aws-sdk-core/util.rb
CHANGED
|
@@ -91,6 +91,30 @@ module Aws
|
|
|
91
91
|
end
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
+
# Serializes a {Time} to the Smithy `epoch-seconds` format: seconds
|
|
95
|
+
# since the Unix epoch with optional millisecond precision. Whole-second
|
|
96
|
+
# values are returned as an Integer so the wire format is unchanged for
|
|
97
|
+
# the common case; sub-millisecond precision is truncated to milliseconds.
|
|
98
|
+
# @see https://smithy.io/2.0/spec/protocol-traits.html#timestamp-formats
|
|
99
|
+
# @param [Time] value
|
|
100
|
+
# @return [Integer, Float]
|
|
101
|
+
def serialize_epoch_seconds(value)
|
|
102
|
+
return value.to_i if value.nsec.zero?
|
|
103
|
+
|
|
104
|
+
value.to_i + value.nsec / 1_000_000 / 1000.0
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Serializes a {Time} to the Smithy `date-time` format: an RFC 3339
|
|
108
|
+
# (ISO 8601) string with optional millisecond precision and no UTC
|
|
109
|
+
# offset. Fractional seconds are included only when present, and
|
|
110
|
+
# sub-millisecond precision is truncated to milliseconds.
|
|
111
|
+
# @see https://smithy.io/2.0/spec/protocol-traits.html#timestamp-formats
|
|
112
|
+
# @param [Time] value
|
|
113
|
+
# @return [String]
|
|
114
|
+
def serialize_date_time(value)
|
|
115
|
+
value.nsec.zero? ? value.utc.iso8601 : value.utc.iso8601(3)
|
|
116
|
+
end
|
|
117
|
+
|
|
94
118
|
# @param [String] value
|
|
95
119
|
# @return [Time]
|
|
96
120
|
def deserialize_time(value)
|
|
@@ -106,11 +106,11 @@ module Aws
|
|
|
106
106
|
|
|
107
107
|
def timestamp(ref, value)
|
|
108
108
|
case ref['timestampFormat'] || ref.shape['timestampFormat']
|
|
109
|
-
when 'unixTimestamp' then value
|
|
109
|
+
when 'unixTimestamp' then Util.serialize_epoch_seconds(value)
|
|
110
110
|
when 'rfc822' then value.utc.httpdate
|
|
111
111
|
else
|
|
112
112
|
# xml defaults to iso8601
|
|
113
|
-
value
|
|
113
|
+
Util.serialize_date_time(value)
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
@@ -559,6 +559,412 @@ module Aws::Signin
|
|
|
559
559
|
req.send_request(options)
|
|
560
560
|
end
|
|
561
561
|
|
|
562
|
+
# Grants permission to exchange client credentials for an OAuth 2.0
|
|
563
|
+
# access token scoped to a resource that can be used to access AWS
|
|
564
|
+
# services from applications
|
|
565
|
+
#
|
|
566
|
+
# @option params [required, String] :grant_type
|
|
567
|
+
# OAuth 2.0 grant type. Must be "client\_credentials".
|
|
568
|
+
#
|
|
569
|
+
# @option params [required, String] :resource
|
|
570
|
+
# The OAuth resource for which the access token is requested. Example:
|
|
571
|
+
# "aws-mcp.amazonaws.com".
|
|
572
|
+
#
|
|
573
|
+
# @return [Types::CreateOAuth2TokenWithIAMResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
574
|
+
#
|
|
575
|
+
# * {Types::CreateOAuth2TokenWithIAMResponse#access_token #access_token} => String
|
|
576
|
+
# * {Types::CreateOAuth2TokenWithIAMResponse#token_type #token_type} => String
|
|
577
|
+
# * {Types::CreateOAuth2TokenWithIAMResponse#expires_in #expires_in} => Integer
|
|
578
|
+
#
|
|
579
|
+
# @example Request syntax with placeholder values
|
|
580
|
+
#
|
|
581
|
+
# resp = client.create_o_auth_2_token_with_iam({
|
|
582
|
+
# grant_type: "ClientCredentialsGrantType", # required
|
|
583
|
+
# resource: "CreateOAuth2TokenWithIAMRequestResourceString", # required
|
|
584
|
+
# })
|
|
585
|
+
#
|
|
586
|
+
# @example Response structure
|
|
587
|
+
#
|
|
588
|
+
# resp.access_token #=> String
|
|
589
|
+
# resp.token_type #=> String
|
|
590
|
+
# resp.expires_in #=> Integer
|
|
591
|
+
#
|
|
592
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenWithIAM AWS API Documentation
|
|
593
|
+
#
|
|
594
|
+
# @overload create_o_auth_2_token_with_iam(params = {})
|
|
595
|
+
# @param [Hash] params ({})
|
|
596
|
+
def create_o_auth_2_token_with_iam(params = {}, options = {})
|
|
597
|
+
req = build_request(:create_o_auth_2_token_with_iam, params)
|
|
598
|
+
req.send_request(options)
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# Delete console authorization configuration with automatic scope
|
|
602
|
+
# detection
|
|
603
|
+
#
|
|
604
|
+
# @option params [String] :target_id
|
|
605
|
+
# Target account identifier
|
|
606
|
+
#
|
|
607
|
+
# @return [Types::DeleteConsoleAuthorizationConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
608
|
+
#
|
|
609
|
+
# * {Types::DeleteConsoleAuthorizationConfigurationOutput#target_id #target_id} => String
|
|
610
|
+
# * {Types::DeleteConsoleAuthorizationConfigurationOutput#scope #scope} => String
|
|
611
|
+
# * {Types::DeleteConsoleAuthorizationConfigurationOutput#console_authorization_enabled #console_authorization_enabled} => Boolean
|
|
612
|
+
#
|
|
613
|
+
# @example Request syntax with placeholder values
|
|
614
|
+
#
|
|
615
|
+
# resp = client.delete_console_authorization_configuration({
|
|
616
|
+
# target_id: "TargetId",
|
|
617
|
+
# })
|
|
618
|
+
#
|
|
619
|
+
# @example Response structure
|
|
620
|
+
#
|
|
621
|
+
# resp.target_id #=> String
|
|
622
|
+
# resp.scope #=> String
|
|
623
|
+
# resp.console_authorization_enabled #=> Boolean
|
|
624
|
+
#
|
|
625
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/DeleteConsoleAuthorizationConfiguration AWS API Documentation
|
|
626
|
+
#
|
|
627
|
+
# @overload delete_console_authorization_configuration(params = {})
|
|
628
|
+
# @param [Hash] params ({})
|
|
629
|
+
def delete_console_authorization_configuration(params = {}, options = {})
|
|
630
|
+
req = build_request(:delete_console_authorization_configuration, params)
|
|
631
|
+
req.send_request(options)
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
# Remove a permission statement from the account's SignIn
|
|
635
|
+
# resource-based policy
|
|
636
|
+
#
|
|
637
|
+
# @option params [required, String] :statement_id
|
|
638
|
+
# Unique identifier of the permission statement to delete
|
|
639
|
+
#
|
|
640
|
+
# @option params [String] :client_token
|
|
641
|
+
# Idempotency token for the request
|
|
642
|
+
#
|
|
643
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
644
|
+
# not need to pass this option.**
|
|
645
|
+
#
|
|
646
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
647
|
+
#
|
|
648
|
+
# @example Request syntax with placeholder values
|
|
649
|
+
#
|
|
650
|
+
# resp = client.delete_resource_permission_statement({
|
|
651
|
+
# statement_id: "StatementId", # required
|
|
652
|
+
# client_token: "ClientToken",
|
|
653
|
+
# })
|
|
654
|
+
#
|
|
655
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/DeleteResourcePermissionStatement AWS API Documentation
|
|
656
|
+
#
|
|
657
|
+
# @overload delete_resource_permission_statement(params = {})
|
|
658
|
+
# @param [Hash] params ({})
|
|
659
|
+
def delete_resource_permission_statement(params = {}, options = {})
|
|
660
|
+
req = build_request(:delete_resource_permission_statement, params)
|
|
661
|
+
req.send_request(options)
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
# Get console authorization configuration with automatic scope detection
|
|
665
|
+
#
|
|
666
|
+
# @option params [String] :target_id
|
|
667
|
+
# Target account identifier
|
|
668
|
+
#
|
|
669
|
+
# @return [Types::GetConsoleAuthorizationConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
670
|
+
#
|
|
671
|
+
# * {Types::GetConsoleAuthorizationConfigurationOutput#target_id #target_id} => String
|
|
672
|
+
# * {Types::GetConsoleAuthorizationConfigurationOutput#scope #scope} => String
|
|
673
|
+
# * {Types::GetConsoleAuthorizationConfigurationOutput#console_authorization_enabled #console_authorization_enabled} => Boolean
|
|
674
|
+
#
|
|
675
|
+
# @example Request syntax with placeholder values
|
|
676
|
+
#
|
|
677
|
+
# resp = client.get_console_authorization_configuration({
|
|
678
|
+
# target_id: "TargetId",
|
|
679
|
+
# })
|
|
680
|
+
#
|
|
681
|
+
# @example Response structure
|
|
682
|
+
#
|
|
683
|
+
# resp.target_id #=> String
|
|
684
|
+
# resp.scope #=> String
|
|
685
|
+
# resp.console_authorization_enabled #=> Boolean
|
|
686
|
+
#
|
|
687
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetConsoleAuthorizationConfiguration AWS API Documentation
|
|
688
|
+
#
|
|
689
|
+
# @overload get_console_authorization_configuration(params = {})
|
|
690
|
+
# @param [Hash] params ({})
|
|
691
|
+
def get_console_authorization_configuration(params = {}, options = {})
|
|
692
|
+
req = build_request(:get_console_authorization_configuration, params)
|
|
693
|
+
req.send_request(options)
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
# Retrieve the account's consolidated SignIn resource-based policy
|
|
697
|
+
#
|
|
698
|
+
# @return [Types::GetResourcePolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
699
|
+
#
|
|
700
|
+
# * {Types::GetResourcePolicyOutput#signin_resource_based_policy #signin_resource_based_policy} => Types::SigninResourceBasedPolicy
|
|
701
|
+
#
|
|
702
|
+
# @example Response structure
|
|
703
|
+
#
|
|
704
|
+
# resp.signin_resource_based_policy.version #=> String
|
|
705
|
+
# resp.signin_resource_based_policy.statement #=> Array
|
|
706
|
+
# resp.signin_resource_based_policy.statement[0].effect #=> String
|
|
707
|
+
# resp.signin_resource_based_policy.statement[0].principal #=> Hash
|
|
708
|
+
# resp.signin_resource_based_policy.statement[0].principal["String"] #=> String
|
|
709
|
+
# resp.signin_resource_based_policy.statement[0].action #=> Array
|
|
710
|
+
# resp.signin_resource_based_policy.statement[0].action[0] #=> String
|
|
711
|
+
# resp.signin_resource_based_policy.statement[0].resource #=> String
|
|
712
|
+
# resp.signin_resource_based_policy.statement[0].condition #=> Hash
|
|
713
|
+
# resp.signin_resource_based_policy.statement[0].condition["ConditionType"] #=> Hash
|
|
714
|
+
# resp.signin_resource_based_policy.statement[0].condition["ConditionType"]["String"] #=> Array
|
|
715
|
+
# resp.signin_resource_based_policy.statement[0].condition["ConditionType"]["String"][0] #=> String
|
|
716
|
+
#
|
|
717
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetResourcePolicy AWS API Documentation
|
|
718
|
+
#
|
|
719
|
+
# @overload get_resource_policy(params = {})
|
|
720
|
+
# @param [Hash] params ({})
|
|
721
|
+
def get_resource_policy(params = {}, options = {})
|
|
722
|
+
req = build_request(:get_resource_policy, params)
|
|
723
|
+
req.send_request(options)
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
# Grants permission to inspect the metadata and state of an OAuth 2.0
|
|
727
|
+
# access token or refresh token
|
|
728
|
+
#
|
|
729
|
+
# Implements RFC 7662 OAuth 2.0 Token Introspection over a
|
|
730
|
+
# SigV4-authenticated endpoint. Inspects the metadata of an
|
|
731
|
+
# access\_token or refresh\_token issued by AWS Sign-In and returns the
|
|
732
|
+
# claims associated with it.
|
|
733
|
+
#
|
|
734
|
+
# Inactive token semantics (RFC 7662 §2.2): when the supplied token is
|
|
735
|
+
# unknown, expired, revoked, malformed, or owned by a different account,
|
|
736
|
+
# the response body is exactly \{ "active": false } with all other
|
|
737
|
+
# claims omitted.
|
|
738
|
+
#
|
|
739
|
+
# @option params [required, String] :token
|
|
740
|
+
# The string value of the token to introspect. May be either an
|
|
741
|
+
# access\_token or a refresh\_token issued by AWS Sign-In.
|
|
742
|
+
#
|
|
743
|
+
# @option params [String] :token_type_hint
|
|
744
|
+
# Optional hint about the type of the token submitted for introspection.
|
|
745
|
+
# The server uses this hint to optimize lookup, but still falls back to
|
|
746
|
+
# the other token type on miss. Allowed values: access\_token,
|
|
747
|
+
# refresh\_token.
|
|
748
|
+
#
|
|
749
|
+
# @return [Types::IntrospectOAuth2TokenWithIAMResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
750
|
+
#
|
|
751
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#active #active} => Boolean
|
|
752
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#client_id #client_id} => String
|
|
753
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#user_id #user_id} => String
|
|
754
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#token_type #token_type} => String
|
|
755
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#exp #exp} => Integer
|
|
756
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#iat #iat} => Integer
|
|
757
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#nbf #nbf} => Integer
|
|
758
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#sub #sub} => String
|
|
759
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#aud #aud} => String
|
|
760
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#iss #iss} => String
|
|
761
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#jti #jti} => String
|
|
762
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#account_id #account_id} => String
|
|
763
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#signin_session #signin_session} => String
|
|
764
|
+
# * {Types::IntrospectOAuth2TokenWithIAMResponse#resource #resource} => String
|
|
765
|
+
#
|
|
766
|
+
# @example Request syntax with placeholder values
|
|
767
|
+
#
|
|
768
|
+
# resp = client.introspect_o_auth_2_token_with_iam({
|
|
769
|
+
# token: "IntrospectionToken", # required
|
|
770
|
+
# token_type_hint: "TokenTypeHint",
|
|
771
|
+
# })
|
|
772
|
+
#
|
|
773
|
+
# @example Response structure
|
|
774
|
+
#
|
|
775
|
+
# resp.active #=> Boolean
|
|
776
|
+
# resp.client_id #=> String
|
|
777
|
+
# resp.user_id #=> String
|
|
778
|
+
# resp.token_type #=> String
|
|
779
|
+
# resp.exp #=> Integer
|
|
780
|
+
# resp.iat #=> Integer
|
|
781
|
+
# resp.nbf #=> Integer
|
|
782
|
+
# resp.sub #=> String
|
|
783
|
+
# resp.aud #=> String
|
|
784
|
+
# resp.iss #=> String
|
|
785
|
+
# resp.jti #=> String
|
|
786
|
+
# resp.account_id #=> String
|
|
787
|
+
# resp.signin_session #=> String
|
|
788
|
+
# resp.resource #=> String
|
|
789
|
+
#
|
|
790
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/IntrospectOAuth2TokenWithIAM AWS API Documentation
|
|
791
|
+
#
|
|
792
|
+
# @overload introspect_o_auth_2_token_with_iam(params = {})
|
|
793
|
+
# @param [Hash] params ({})
|
|
794
|
+
def introspect_o_auth_2_token_with_iam(params = {}, options = {})
|
|
795
|
+
req = build_request(:introspect_o_auth_2_token_with_iam, params)
|
|
796
|
+
req.send_request(options)
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
# Retrieve all permission statements in the account's SignIn
|
|
800
|
+
# resource-based policy
|
|
801
|
+
#
|
|
802
|
+
# @option params [Integer] :max_results
|
|
803
|
+
# Maximum number of results to return
|
|
804
|
+
#
|
|
805
|
+
# @option params [String] :next_token
|
|
806
|
+
# Token for pagination
|
|
807
|
+
#
|
|
808
|
+
# @return [Types::ListResourcePermissionStatementsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
809
|
+
#
|
|
810
|
+
# * {Types::ListResourcePermissionStatementsOutput#permission_statements #permission_statements} => Array<Types::PermissionStatementSummary>
|
|
811
|
+
# * {Types::ListResourcePermissionStatementsOutput#next_token #next_token} => String
|
|
812
|
+
#
|
|
813
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
814
|
+
#
|
|
815
|
+
# @example Request syntax with placeholder values
|
|
816
|
+
#
|
|
817
|
+
# resp = client.list_resource_permission_statements({
|
|
818
|
+
# max_results: 1,
|
|
819
|
+
# next_token: "NextToken",
|
|
820
|
+
# })
|
|
821
|
+
#
|
|
822
|
+
# @example Response structure
|
|
823
|
+
#
|
|
824
|
+
# resp.permission_statements #=> Array
|
|
825
|
+
# resp.permission_statements[0].sid #=> String
|
|
826
|
+
# resp.permission_statements[0].condition #=> Hash
|
|
827
|
+
# resp.permission_statements[0].condition["ConditionType"] #=> Hash
|
|
828
|
+
# resp.permission_statements[0].condition["ConditionType"]["String"] #=> Array
|
|
829
|
+
# resp.permission_statements[0].condition["ConditionType"]["String"][0] #=> String
|
|
830
|
+
# resp.next_token #=> String
|
|
831
|
+
#
|
|
832
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListResourcePermissionStatements AWS API Documentation
|
|
833
|
+
#
|
|
834
|
+
# @overload list_resource_permission_statements(params = {})
|
|
835
|
+
# @param [Hash] params ({})
|
|
836
|
+
def list_resource_permission_statements(params = {}, options = {})
|
|
837
|
+
req = build_request(:list_resource_permission_statements, params)
|
|
838
|
+
req.send_request(options)
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
# Enable console authorization configuration with automatic scope
|
|
842
|
+
# detection
|
|
843
|
+
#
|
|
844
|
+
# @option params [String] :target_id
|
|
845
|
+
# Target account identifier
|
|
846
|
+
#
|
|
847
|
+
# @return [Types::PutConsoleAuthorizationConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
848
|
+
#
|
|
849
|
+
# * {Types::PutConsoleAuthorizationConfigurationOutput#target_id #target_id} => String
|
|
850
|
+
# * {Types::PutConsoleAuthorizationConfigurationOutput#scope #scope} => String
|
|
851
|
+
# * {Types::PutConsoleAuthorizationConfigurationOutput#console_authorization_enabled #console_authorization_enabled} => Boolean
|
|
852
|
+
#
|
|
853
|
+
# @example Request syntax with placeholder values
|
|
854
|
+
#
|
|
855
|
+
# resp = client.put_console_authorization_configuration({
|
|
856
|
+
# target_id: "TargetId",
|
|
857
|
+
# })
|
|
858
|
+
#
|
|
859
|
+
# @example Response structure
|
|
860
|
+
#
|
|
861
|
+
# resp.target_id #=> String
|
|
862
|
+
# resp.scope #=> String
|
|
863
|
+
# resp.console_authorization_enabled #=> Boolean
|
|
864
|
+
#
|
|
865
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PutConsoleAuthorizationConfiguration AWS API Documentation
|
|
866
|
+
#
|
|
867
|
+
# @overload put_console_authorization_configuration(params = {})
|
|
868
|
+
# @param [Hash] params ({})
|
|
869
|
+
def put_console_authorization_configuration(params = {}, options = {})
|
|
870
|
+
req = build_request(:put_console_authorization_configuration, params)
|
|
871
|
+
req.send_request(options)
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
# Create a permission statement in the account's SignIn resource-based
|
|
875
|
+
# policy
|
|
876
|
+
#
|
|
877
|
+
# @option params [String] :source_vpc
|
|
878
|
+
# VPC identifier to restrict console access
|
|
879
|
+
#
|
|
880
|
+
# @option params [String] :signin_source_vpce
|
|
881
|
+
# SignIn VPC endpoint identifier
|
|
882
|
+
#
|
|
883
|
+
# @option params [String] :console_source_vpce
|
|
884
|
+
# Console VPC endpoint identifier
|
|
885
|
+
#
|
|
886
|
+
# @option params [String] :vpc_source_ip
|
|
887
|
+
# Source IP address within VPC
|
|
888
|
+
#
|
|
889
|
+
# @option params [String] :source_ip
|
|
890
|
+
# Source IP address
|
|
891
|
+
#
|
|
892
|
+
# @option params [String] :requested_region
|
|
893
|
+
# AWS region where the VPC and VPC endpoint reside Required when
|
|
894
|
+
# sourceVpc or signinSourceVpce/consoleSourceVpce is provided
|
|
895
|
+
#
|
|
896
|
+
# @option params [String] :excluded_principal
|
|
897
|
+
# Principal to exclude from the permission statement
|
|
898
|
+
#
|
|
899
|
+
# @option params [String] :client_token
|
|
900
|
+
# Idempotency token for the request
|
|
901
|
+
#
|
|
902
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
903
|
+
# not need to pass this option.**
|
|
904
|
+
#
|
|
905
|
+
# @return [Types::PutResourcePermissionStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
906
|
+
#
|
|
907
|
+
# * {Types::PutResourcePermissionStatementOutput#statement_id #statement_id} => String
|
|
908
|
+
#
|
|
909
|
+
# @example Request syntax with placeholder values
|
|
910
|
+
#
|
|
911
|
+
# resp = client.put_resource_permission_statement({
|
|
912
|
+
# source_vpc: "SourceVpc",
|
|
913
|
+
# signin_source_vpce: "SourceVpce",
|
|
914
|
+
# console_source_vpce: "SourceVpce",
|
|
915
|
+
# vpc_source_ip: "VpcSourceIp",
|
|
916
|
+
# source_ip: "SourceIp",
|
|
917
|
+
# requested_region: "RequestedRegion",
|
|
918
|
+
# excluded_principal: "ExcludedPrincipal",
|
|
919
|
+
# client_token: "ClientToken",
|
|
920
|
+
# })
|
|
921
|
+
#
|
|
922
|
+
# @example Response structure
|
|
923
|
+
#
|
|
924
|
+
# resp.statement_id #=> String
|
|
925
|
+
#
|
|
926
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PutResourcePermissionStatement AWS API Documentation
|
|
927
|
+
#
|
|
928
|
+
# @overload put_resource_permission_statement(params = {})
|
|
929
|
+
# @param [Hash] params ({})
|
|
930
|
+
def put_resource_permission_statement(params = {}, options = {})
|
|
931
|
+
req = build_request(:put_resource_permission_statement, params)
|
|
932
|
+
req.send_request(options)
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
# Grants permission to revoke an OAuth 2.0 refresh token and its
|
|
936
|
+
# associated refresh tokens
|
|
937
|
+
#
|
|
938
|
+
# Revokes a refresh\_token issued by AWS Sign-In, invalidating the
|
|
939
|
+
# entire token chain so that the refresh\_token can no longer be used to
|
|
940
|
+
# mint new access\_tokens.
|
|
941
|
+
#
|
|
942
|
+
# Idempotency: revoking an already-revoked, expired, or otherwise
|
|
943
|
+
# invalid token still returns 200 OK with an empty body. Only the
|
|
944
|
+
# refresh\_token type is accepted.
|
|
945
|
+
#
|
|
946
|
+
# @option params [required, String] :token
|
|
947
|
+
# The refresh\_token to revoke. Must be a refresh\_token issued by AWS
|
|
948
|
+
# Sign-In (prefix "ASOR"); access\_tokens are not accepted for
|
|
949
|
+
# revocation.
|
|
950
|
+
#
|
|
951
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
952
|
+
#
|
|
953
|
+
# @example Request syntax with placeholder values
|
|
954
|
+
#
|
|
955
|
+
# resp = client.revoke_o_auth_2_token_with_iam({
|
|
956
|
+
# token: "RevocationToken", # required
|
|
957
|
+
# })
|
|
958
|
+
#
|
|
959
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/RevokeOAuth2TokenWithIAM AWS API Documentation
|
|
960
|
+
#
|
|
961
|
+
# @overload revoke_o_auth_2_token_with_iam(params = {})
|
|
962
|
+
# @param [Hash] params ({})
|
|
963
|
+
def revoke_o_auth_2_token_with_iam(params = {}, options = {})
|
|
964
|
+
req = build_request(:revoke_o_auth_2_token_with_iam, params)
|
|
965
|
+
req.send_request(options)
|
|
966
|
+
end
|
|
967
|
+
|
|
562
968
|
# @!endgroup
|
|
563
969
|
|
|
564
970
|
# @param params ({})
|
|
@@ -577,7 +983,7 @@ module Aws::Signin
|
|
|
577
983
|
tracer: tracer
|
|
578
984
|
)
|
|
579
985
|
context[:gem_name] = 'aws-sdk-core'
|
|
580
|
-
context[:gem_version] = '3.
|
|
986
|
+
context[:gem_version] = '3.257.0'
|
|
581
987
|
Seahorse::Client::Request.new(handlers, context)
|
|
582
988
|
end
|
|
583
989
|
|