Class: Aws::Signin::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Signin::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-signin/client.rb
Overview
An API client for Signin. To construct a client, you need to configure a :region and :credentials.
client = Aws::Signin::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_o_auth_2_token(params = {}) ⇒ Types::CreateOAuth2TokenResponse
Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token.
-
#create_o_auth_2_token_with_iam(params = {}) ⇒ Types::CreateOAuth2TokenWithIAMResponse
Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
-
#create_o_auth_2_token_with_token_exchange(params = {}) ⇒ Types::CreateOAuth2TokenWithTokenExchangeResponse
Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
-
#delete_console_authorization_configuration(params = {}) ⇒ Types::DeleteConsoleAuthorizationConfigurationOutput
Delete console authorization configuration with automatic scope detection.
-
#delete_resource_permission_statement(params = {}) ⇒ Struct
Remove a permission statement from the account's SignIn resource-based policy.
-
#get_console_authorization_configuration(params = {}) ⇒ Types::GetConsoleAuthorizationConfigurationOutput
Get console authorization configuration with automatic scope detection.
-
#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyOutput
Retrieve the account's consolidated SignIn resource-based policy.
-
#introspect_o_auth_2_token_with_iam(params = {}) ⇒ Types::IntrospectOAuth2TokenWithIAMResponse
Inspects the metadata and active state of an OAuth 2.0 access token or refresh token.
-
#list_resource_permission_statements(params = {}) ⇒ Types::ListResourcePermissionStatementsOutput
Retrieve all permission statements in the account's SignIn resource-based policy.
-
#put_console_authorization_configuration(params = {}) ⇒ Types::PutConsoleAuthorizationConfigurationOutput
Enable console authorization configuration with automatic scope detection.
-
#put_resource_permission_statement(params = {}) ⇒ Types::PutResourcePermissionStatementOutput
Create a permission statement in the account's SignIn resource-based policy.
-
#revoke_o_auth_2_token_with_iam(params = {}) ⇒ Struct
Revokes an OAuth 2.0 refresh token and its associated token chain.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
478 479 480 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 478 def initialize(*args) super end |
Instance Method Details
#create_o_auth_2_token(params = {}) ⇒ Types::CreateOAuth2TokenResponse
Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token.
522 523 524 525 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 522 def create_o_auth_2_token(params = {}, = {}) req = build_request(:create_o_auth_2_token, params) req.send_request() end |
#create_o_auth_2_token_with_iam(params = {}) ⇒ Types::CreateOAuth2TokenWithIAMResponse
Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
560 561 562 563 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 560 def create_o_auth_2_token_with_iam(params = {}, = {}) req = build_request(:create_o_auth_2_token_with_iam, params) req.send_request() end |
#create_o_auth_2_token_with_token_exchange(params = {}) ⇒ Types::CreateOAuth2TokenWithTokenExchangeResponse
Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
621 622 623 624 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 621 def create_o_auth_2_token_with_token_exchange(params = {}, = {}) req = build_request(:create_o_auth_2_token_with_token_exchange, params) req.send_request() end |
#delete_console_authorization_configuration(params = {}) ⇒ Types::DeleteConsoleAuthorizationConfigurationOutput
Delete console authorization configuration with automatic scope detection
654 655 656 657 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 654 def (params = {}, = {}) req = build_request(:delete_console_authorization_configuration, params) req.send_request() end |
#delete_resource_permission_statement(params = {}) ⇒ Struct
Remove a permission statement from the account's SignIn resource-based policy
684 685 686 687 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 684 def (params = {}, = {}) req = build_request(:delete_resource_permission_statement, params) req.send_request() end |
#get_console_authorization_configuration(params = {}) ⇒ Types::GetConsoleAuthorizationConfigurationOutput
Get console authorization configuration with automatic scope detection
716 717 718 719 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 716 def (params = {}, = {}) req = build_request(:get_console_authorization_configuration, params) req.send_request() end |
#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyOutput
Retrieve the account's consolidated SignIn resource-based policy
746 747 748 749 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 746 def get_resource_policy(params = {}, = {}) req = build_request(:get_resource_policy, params) req.send_request() end |
#introspect_o_auth_2_token_with_iam(params = {}) ⇒ Types::IntrospectOAuth2TokenWithIAMResponse
Inspects the metadata and active state of an OAuth 2.0 access token or refresh token.
Implements RFC 7662 OAuth 2.0 Token Introspection over a SigV4-authenticated endpoint. Returns the claims associated with a token issued by AWS Sign-In.
812 813 814 815 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 812 def introspect_o_auth_2_token_with_iam(params = {}, = {}) req = build_request(:introspect_o_auth_2_token_with_iam, params) req.send_request() end |
#list_resource_permission_statements(params = {}) ⇒ Types::ListResourcePermissionStatementsOutput
Retrieve all permission statements in the account's SignIn resource-based policy
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
854 855 856 857 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 854 def (params = {}, = {}) req = build_request(:list_resource_permission_statements, params) req.send_request() end |
#put_console_authorization_configuration(params = {}) ⇒ Types::PutConsoleAuthorizationConfigurationOutput
Enable console authorization configuration with automatic scope detection
887 888 889 890 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 887 def (params = {}, = {}) req = build_request(:put_console_authorization_configuration, params) req.send_request() end |
#put_resource_permission_statement(params = {}) ⇒ Types::PutResourcePermissionStatementOutput
Create a permission statement in the account's SignIn resource-based policy
948 949 950 951 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 948 def (params = {}, = {}) req = build_request(:put_resource_permission_statement, params) req.send_request() end |
#revoke_o_auth_2_token_with_iam(params = {}) ⇒ Struct
Revokes an OAuth 2.0 refresh token and its associated token chain.
971 972 973 974 |
# File 'gems/aws-sdk-core/lib/aws-sdk-signin/client.rb', line 971 def revoke_o_auth_2_token_with_iam(params = {}, = {}) req = build_request(:revoke_o_auth_2_token_with_iam, params) req.send_request() end |