aws-sdk-ssoadmin 1.19.0 → 1.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ssoadmin/client.rb +230 -220
- data/lib/aws-sdk-ssoadmin/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-ssoadmin/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-ssoadmin/endpoints.rb +533 -0
- data/lib/aws-sdk-ssoadmin/plugins/endpoints.rb +142 -0
- data/lib/aws-sdk-ssoadmin/types.rb +200 -208
- data/lib/aws-sdk-ssoadmin.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,142 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::SSOAdmin
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::SSOAdmin::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::SSOAdmin::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::SSOAdmin::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :attach_customer_managed_policy_reference_to_permission_set
|
60
|
+
Aws::SSOAdmin::Endpoints::AttachCustomerManagedPolicyReferenceToPermissionSet.build(context)
|
61
|
+
when :attach_managed_policy_to_permission_set
|
62
|
+
Aws::SSOAdmin::Endpoints::AttachManagedPolicyToPermissionSet.build(context)
|
63
|
+
when :create_account_assignment
|
64
|
+
Aws::SSOAdmin::Endpoints::CreateAccountAssignment.build(context)
|
65
|
+
when :create_instance_access_control_attribute_configuration
|
66
|
+
Aws::SSOAdmin::Endpoints::CreateInstanceAccessControlAttributeConfiguration.build(context)
|
67
|
+
when :create_permission_set
|
68
|
+
Aws::SSOAdmin::Endpoints::CreatePermissionSet.build(context)
|
69
|
+
when :delete_account_assignment
|
70
|
+
Aws::SSOAdmin::Endpoints::DeleteAccountAssignment.build(context)
|
71
|
+
when :delete_inline_policy_from_permission_set
|
72
|
+
Aws::SSOAdmin::Endpoints::DeleteInlinePolicyFromPermissionSet.build(context)
|
73
|
+
when :delete_instance_access_control_attribute_configuration
|
74
|
+
Aws::SSOAdmin::Endpoints::DeleteInstanceAccessControlAttributeConfiguration.build(context)
|
75
|
+
when :delete_permission_set
|
76
|
+
Aws::SSOAdmin::Endpoints::DeletePermissionSet.build(context)
|
77
|
+
when :delete_permissions_boundary_from_permission_set
|
78
|
+
Aws::SSOAdmin::Endpoints::DeletePermissionsBoundaryFromPermissionSet.build(context)
|
79
|
+
when :describe_account_assignment_creation_status
|
80
|
+
Aws::SSOAdmin::Endpoints::DescribeAccountAssignmentCreationStatus.build(context)
|
81
|
+
when :describe_account_assignment_deletion_status
|
82
|
+
Aws::SSOAdmin::Endpoints::DescribeAccountAssignmentDeletionStatus.build(context)
|
83
|
+
when :describe_instance_access_control_attribute_configuration
|
84
|
+
Aws::SSOAdmin::Endpoints::DescribeInstanceAccessControlAttributeConfiguration.build(context)
|
85
|
+
when :describe_permission_set
|
86
|
+
Aws::SSOAdmin::Endpoints::DescribePermissionSet.build(context)
|
87
|
+
when :describe_permission_set_provisioning_status
|
88
|
+
Aws::SSOAdmin::Endpoints::DescribePermissionSetProvisioningStatus.build(context)
|
89
|
+
when :detach_customer_managed_policy_reference_from_permission_set
|
90
|
+
Aws::SSOAdmin::Endpoints::DetachCustomerManagedPolicyReferenceFromPermissionSet.build(context)
|
91
|
+
when :detach_managed_policy_from_permission_set
|
92
|
+
Aws::SSOAdmin::Endpoints::DetachManagedPolicyFromPermissionSet.build(context)
|
93
|
+
when :get_inline_policy_for_permission_set
|
94
|
+
Aws::SSOAdmin::Endpoints::GetInlinePolicyForPermissionSet.build(context)
|
95
|
+
when :get_permissions_boundary_for_permission_set
|
96
|
+
Aws::SSOAdmin::Endpoints::GetPermissionsBoundaryForPermissionSet.build(context)
|
97
|
+
when :list_account_assignment_creation_status
|
98
|
+
Aws::SSOAdmin::Endpoints::ListAccountAssignmentCreationStatus.build(context)
|
99
|
+
when :list_account_assignment_deletion_status
|
100
|
+
Aws::SSOAdmin::Endpoints::ListAccountAssignmentDeletionStatus.build(context)
|
101
|
+
when :list_account_assignments
|
102
|
+
Aws::SSOAdmin::Endpoints::ListAccountAssignments.build(context)
|
103
|
+
when :list_accounts_for_provisioned_permission_set
|
104
|
+
Aws::SSOAdmin::Endpoints::ListAccountsForProvisionedPermissionSet.build(context)
|
105
|
+
when :list_customer_managed_policy_references_in_permission_set
|
106
|
+
Aws::SSOAdmin::Endpoints::ListCustomerManagedPolicyReferencesInPermissionSet.build(context)
|
107
|
+
when :list_instances
|
108
|
+
Aws::SSOAdmin::Endpoints::ListInstances.build(context)
|
109
|
+
when :list_managed_policies_in_permission_set
|
110
|
+
Aws::SSOAdmin::Endpoints::ListManagedPoliciesInPermissionSet.build(context)
|
111
|
+
when :list_permission_set_provisioning_status
|
112
|
+
Aws::SSOAdmin::Endpoints::ListPermissionSetProvisioningStatus.build(context)
|
113
|
+
when :list_permission_sets
|
114
|
+
Aws::SSOAdmin::Endpoints::ListPermissionSets.build(context)
|
115
|
+
when :list_permission_sets_provisioned_to_account
|
116
|
+
Aws::SSOAdmin::Endpoints::ListPermissionSetsProvisionedToAccount.build(context)
|
117
|
+
when :list_tags_for_resource
|
118
|
+
Aws::SSOAdmin::Endpoints::ListTagsForResource.build(context)
|
119
|
+
when :provision_permission_set
|
120
|
+
Aws::SSOAdmin::Endpoints::ProvisionPermissionSet.build(context)
|
121
|
+
when :put_inline_policy_to_permission_set
|
122
|
+
Aws::SSOAdmin::Endpoints::PutInlinePolicyToPermissionSet.build(context)
|
123
|
+
when :put_permissions_boundary_to_permission_set
|
124
|
+
Aws::SSOAdmin::Endpoints::PutPermissionsBoundaryToPermissionSet.build(context)
|
125
|
+
when :tag_resource
|
126
|
+
Aws::SSOAdmin::Endpoints::TagResource.build(context)
|
127
|
+
when :untag_resource
|
128
|
+
Aws::SSOAdmin::Endpoints::UntagResource.build(context)
|
129
|
+
when :update_instance_access_control_attribute_configuration
|
130
|
+
Aws::SSOAdmin::Endpoints::UpdateInstanceAccessControlAttributeConfiguration.build(context)
|
131
|
+
when :update_permission_set
|
132
|
+
Aws::SSOAdmin::Endpoints::UpdatePermissionSet.build(context)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
def add_handlers(handlers, _config)
|
138
|
+
handlers.add(Handler, step: :build, priority: 75)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|