aws-sdk-servicecatalog 1.72.0 → 1.73.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-servicecatalog/client.rb +20 -3
- data/lib/aws-sdk-servicecatalog/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-servicecatalog/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-servicecatalog/endpoints.rb +1233 -0
- data/lib/aws-sdk-servicecatalog/plugins/endpoints.rb +242 -0
- data/lib/aws-sdk-servicecatalog.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,242 @@
|
|
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::ServiceCatalog
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::ServiceCatalog::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::ServiceCatalog::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::ServiceCatalog::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 :accept_portfolio_share
|
60
|
+
Aws::ServiceCatalog::Endpoints::AcceptPortfolioShare.build(context)
|
61
|
+
when :associate_budget_with_resource
|
62
|
+
Aws::ServiceCatalog::Endpoints::AssociateBudgetWithResource.build(context)
|
63
|
+
when :associate_principal_with_portfolio
|
64
|
+
Aws::ServiceCatalog::Endpoints::AssociatePrincipalWithPortfolio.build(context)
|
65
|
+
when :associate_product_with_portfolio
|
66
|
+
Aws::ServiceCatalog::Endpoints::AssociateProductWithPortfolio.build(context)
|
67
|
+
when :associate_service_action_with_provisioning_artifact
|
68
|
+
Aws::ServiceCatalog::Endpoints::AssociateServiceActionWithProvisioningArtifact.build(context)
|
69
|
+
when :associate_tag_option_with_resource
|
70
|
+
Aws::ServiceCatalog::Endpoints::AssociateTagOptionWithResource.build(context)
|
71
|
+
when :batch_associate_service_action_with_provisioning_artifact
|
72
|
+
Aws::ServiceCatalog::Endpoints::BatchAssociateServiceActionWithProvisioningArtifact.build(context)
|
73
|
+
when :batch_disassociate_service_action_from_provisioning_artifact
|
74
|
+
Aws::ServiceCatalog::Endpoints::BatchDisassociateServiceActionFromProvisioningArtifact.build(context)
|
75
|
+
when :copy_product
|
76
|
+
Aws::ServiceCatalog::Endpoints::CopyProduct.build(context)
|
77
|
+
when :create_constraint
|
78
|
+
Aws::ServiceCatalog::Endpoints::CreateConstraint.build(context)
|
79
|
+
when :create_portfolio
|
80
|
+
Aws::ServiceCatalog::Endpoints::CreatePortfolio.build(context)
|
81
|
+
when :create_portfolio_share
|
82
|
+
Aws::ServiceCatalog::Endpoints::CreatePortfolioShare.build(context)
|
83
|
+
when :create_product
|
84
|
+
Aws::ServiceCatalog::Endpoints::CreateProduct.build(context)
|
85
|
+
when :create_provisioned_product_plan
|
86
|
+
Aws::ServiceCatalog::Endpoints::CreateProvisionedProductPlan.build(context)
|
87
|
+
when :create_provisioning_artifact
|
88
|
+
Aws::ServiceCatalog::Endpoints::CreateProvisioningArtifact.build(context)
|
89
|
+
when :create_service_action
|
90
|
+
Aws::ServiceCatalog::Endpoints::CreateServiceAction.build(context)
|
91
|
+
when :create_tag_option
|
92
|
+
Aws::ServiceCatalog::Endpoints::CreateTagOption.build(context)
|
93
|
+
when :delete_constraint
|
94
|
+
Aws::ServiceCatalog::Endpoints::DeleteConstraint.build(context)
|
95
|
+
when :delete_portfolio
|
96
|
+
Aws::ServiceCatalog::Endpoints::DeletePortfolio.build(context)
|
97
|
+
when :delete_portfolio_share
|
98
|
+
Aws::ServiceCatalog::Endpoints::DeletePortfolioShare.build(context)
|
99
|
+
when :delete_product
|
100
|
+
Aws::ServiceCatalog::Endpoints::DeleteProduct.build(context)
|
101
|
+
when :delete_provisioned_product_plan
|
102
|
+
Aws::ServiceCatalog::Endpoints::DeleteProvisionedProductPlan.build(context)
|
103
|
+
when :delete_provisioning_artifact
|
104
|
+
Aws::ServiceCatalog::Endpoints::DeleteProvisioningArtifact.build(context)
|
105
|
+
when :delete_service_action
|
106
|
+
Aws::ServiceCatalog::Endpoints::DeleteServiceAction.build(context)
|
107
|
+
when :delete_tag_option
|
108
|
+
Aws::ServiceCatalog::Endpoints::DeleteTagOption.build(context)
|
109
|
+
when :describe_constraint
|
110
|
+
Aws::ServiceCatalog::Endpoints::DescribeConstraint.build(context)
|
111
|
+
when :describe_copy_product_status
|
112
|
+
Aws::ServiceCatalog::Endpoints::DescribeCopyProductStatus.build(context)
|
113
|
+
when :describe_portfolio
|
114
|
+
Aws::ServiceCatalog::Endpoints::DescribePortfolio.build(context)
|
115
|
+
when :describe_portfolio_share_status
|
116
|
+
Aws::ServiceCatalog::Endpoints::DescribePortfolioShareStatus.build(context)
|
117
|
+
when :describe_portfolio_shares
|
118
|
+
Aws::ServiceCatalog::Endpoints::DescribePortfolioShares.build(context)
|
119
|
+
when :describe_product
|
120
|
+
Aws::ServiceCatalog::Endpoints::DescribeProduct.build(context)
|
121
|
+
when :describe_product_as_admin
|
122
|
+
Aws::ServiceCatalog::Endpoints::DescribeProductAsAdmin.build(context)
|
123
|
+
when :describe_product_view
|
124
|
+
Aws::ServiceCatalog::Endpoints::DescribeProductView.build(context)
|
125
|
+
when :describe_provisioned_product
|
126
|
+
Aws::ServiceCatalog::Endpoints::DescribeProvisionedProduct.build(context)
|
127
|
+
when :describe_provisioned_product_plan
|
128
|
+
Aws::ServiceCatalog::Endpoints::DescribeProvisionedProductPlan.build(context)
|
129
|
+
when :describe_provisioning_artifact
|
130
|
+
Aws::ServiceCatalog::Endpoints::DescribeProvisioningArtifact.build(context)
|
131
|
+
when :describe_provisioning_parameters
|
132
|
+
Aws::ServiceCatalog::Endpoints::DescribeProvisioningParameters.build(context)
|
133
|
+
when :describe_record
|
134
|
+
Aws::ServiceCatalog::Endpoints::DescribeRecord.build(context)
|
135
|
+
when :describe_service_action
|
136
|
+
Aws::ServiceCatalog::Endpoints::DescribeServiceAction.build(context)
|
137
|
+
when :describe_service_action_execution_parameters
|
138
|
+
Aws::ServiceCatalog::Endpoints::DescribeServiceActionExecutionParameters.build(context)
|
139
|
+
when :describe_tag_option
|
140
|
+
Aws::ServiceCatalog::Endpoints::DescribeTagOption.build(context)
|
141
|
+
when :disable_aws_organizations_access
|
142
|
+
Aws::ServiceCatalog::Endpoints::DisableAWSOrganizationsAccess.build(context)
|
143
|
+
when :disassociate_budget_from_resource
|
144
|
+
Aws::ServiceCatalog::Endpoints::DisassociateBudgetFromResource.build(context)
|
145
|
+
when :disassociate_principal_from_portfolio
|
146
|
+
Aws::ServiceCatalog::Endpoints::DisassociatePrincipalFromPortfolio.build(context)
|
147
|
+
when :disassociate_product_from_portfolio
|
148
|
+
Aws::ServiceCatalog::Endpoints::DisassociateProductFromPortfolio.build(context)
|
149
|
+
when :disassociate_service_action_from_provisioning_artifact
|
150
|
+
Aws::ServiceCatalog::Endpoints::DisassociateServiceActionFromProvisioningArtifact.build(context)
|
151
|
+
when :disassociate_tag_option_from_resource
|
152
|
+
Aws::ServiceCatalog::Endpoints::DisassociateTagOptionFromResource.build(context)
|
153
|
+
when :enable_aws_organizations_access
|
154
|
+
Aws::ServiceCatalog::Endpoints::EnableAWSOrganizationsAccess.build(context)
|
155
|
+
when :execute_provisioned_product_plan
|
156
|
+
Aws::ServiceCatalog::Endpoints::ExecuteProvisionedProductPlan.build(context)
|
157
|
+
when :execute_provisioned_product_service_action
|
158
|
+
Aws::ServiceCatalog::Endpoints::ExecuteProvisionedProductServiceAction.build(context)
|
159
|
+
when :get_aws_organizations_access_status
|
160
|
+
Aws::ServiceCatalog::Endpoints::GetAWSOrganizationsAccessStatus.build(context)
|
161
|
+
when :get_provisioned_product_outputs
|
162
|
+
Aws::ServiceCatalog::Endpoints::GetProvisionedProductOutputs.build(context)
|
163
|
+
when :import_as_provisioned_product
|
164
|
+
Aws::ServiceCatalog::Endpoints::ImportAsProvisionedProduct.build(context)
|
165
|
+
when :list_accepted_portfolio_shares
|
166
|
+
Aws::ServiceCatalog::Endpoints::ListAcceptedPortfolioShares.build(context)
|
167
|
+
when :list_budgets_for_resource
|
168
|
+
Aws::ServiceCatalog::Endpoints::ListBudgetsForResource.build(context)
|
169
|
+
when :list_constraints_for_portfolio
|
170
|
+
Aws::ServiceCatalog::Endpoints::ListConstraintsForPortfolio.build(context)
|
171
|
+
when :list_launch_paths
|
172
|
+
Aws::ServiceCatalog::Endpoints::ListLaunchPaths.build(context)
|
173
|
+
when :list_organization_portfolio_access
|
174
|
+
Aws::ServiceCatalog::Endpoints::ListOrganizationPortfolioAccess.build(context)
|
175
|
+
when :list_portfolio_access
|
176
|
+
Aws::ServiceCatalog::Endpoints::ListPortfolioAccess.build(context)
|
177
|
+
when :list_portfolios
|
178
|
+
Aws::ServiceCatalog::Endpoints::ListPortfolios.build(context)
|
179
|
+
when :list_portfolios_for_product
|
180
|
+
Aws::ServiceCatalog::Endpoints::ListPortfoliosForProduct.build(context)
|
181
|
+
when :list_principals_for_portfolio
|
182
|
+
Aws::ServiceCatalog::Endpoints::ListPrincipalsForPortfolio.build(context)
|
183
|
+
when :list_provisioned_product_plans
|
184
|
+
Aws::ServiceCatalog::Endpoints::ListProvisionedProductPlans.build(context)
|
185
|
+
when :list_provisioning_artifacts
|
186
|
+
Aws::ServiceCatalog::Endpoints::ListProvisioningArtifacts.build(context)
|
187
|
+
when :list_provisioning_artifacts_for_service_action
|
188
|
+
Aws::ServiceCatalog::Endpoints::ListProvisioningArtifactsForServiceAction.build(context)
|
189
|
+
when :list_record_history
|
190
|
+
Aws::ServiceCatalog::Endpoints::ListRecordHistory.build(context)
|
191
|
+
when :list_resources_for_tag_option
|
192
|
+
Aws::ServiceCatalog::Endpoints::ListResourcesForTagOption.build(context)
|
193
|
+
when :list_service_actions
|
194
|
+
Aws::ServiceCatalog::Endpoints::ListServiceActions.build(context)
|
195
|
+
when :list_service_actions_for_provisioning_artifact
|
196
|
+
Aws::ServiceCatalog::Endpoints::ListServiceActionsForProvisioningArtifact.build(context)
|
197
|
+
when :list_stack_instances_for_provisioned_product
|
198
|
+
Aws::ServiceCatalog::Endpoints::ListStackInstancesForProvisionedProduct.build(context)
|
199
|
+
when :list_tag_options
|
200
|
+
Aws::ServiceCatalog::Endpoints::ListTagOptions.build(context)
|
201
|
+
when :provision_product
|
202
|
+
Aws::ServiceCatalog::Endpoints::ProvisionProduct.build(context)
|
203
|
+
when :reject_portfolio_share
|
204
|
+
Aws::ServiceCatalog::Endpoints::RejectPortfolioShare.build(context)
|
205
|
+
when :scan_provisioned_products
|
206
|
+
Aws::ServiceCatalog::Endpoints::ScanProvisionedProducts.build(context)
|
207
|
+
when :search_products
|
208
|
+
Aws::ServiceCatalog::Endpoints::SearchProducts.build(context)
|
209
|
+
when :search_products_as_admin
|
210
|
+
Aws::ServiceCatalog::Endpoints::SearchProductsAsAdmin.build(context)
|
211
|
+
when :search_provisioned_products
|
212
|
+
Aws::ServiceCatalog::Endpoints::SearchProvisionedProducts.build(context)
|
213
|
+
when :terminate_provisioned_product
|
214
|
+
Aws::ServiceCatalog::Endpoints::TerminateProvisionedProduct.build(context)
|
215
|
+
when :update_constraint
|
216
|
+
Aws::ServiceCatalog::Endpoints::UpdateConstraint.build(context)
|
217
|
+
when :update_portfolio
|
218
|
+
Aws::ServiceCatalog::Endpoints::UpdatePortfolio.build(context)
|
219
|
+
when :update_portfolio_share
|
220
|
+
Aws::ServiceCatalog::Endpoints::UpdatePortfolioShare.build(context)
|
221
|
+
when :update_product
|
222
|
+
Aws::ServiceCatalog::Endpoints::UpdateProduct.build(context)
|
223
|
+
when :update_provisioned_product
|
224
|
+
Aws::ServiceCatalog::Endpoints::UpdateProvisionedProduct.build(context)
|
225
|
+
when :update_provisioned_product_properties
|
226
|
+
Aws::ServiceCatalog::Endpoints::UpdateProvisionedProductProperties.build(context)
|
227
|
+
when :update_provisioning_artifact
|
228
|
+
Aws::ServiceCatalog::Endpoints::UpdateProvisioningArtifact.build(context)
|
229
|
+
when :update_service_action
|
230
|
+
Aws::ServiceCatalog::Endpoints::UpdateServiceAction.build(context)
|
231
|
+
when :update_tag_option
|
232
|
+
Aws::ServiceCatalog::Endpoints::UpdateTagOption.build(context)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
def add_handlers(handlers, _config)
|
238
|
+
handlers.add(Handler, step: :build, priority: 75)
|
239
|
+
end
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-servicecatalog/types'
|
15
15
|
require_relative 'aws-sdk-servicecatalog/client_api'
|
16
|
+
require_relative 'aws-sdk-servicecatalog/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-servicecatalog/client'
|
17
18
|
require_relative 'aws-sdk-servicecatalog/errors'
|
18
19
|
require_relative 'aws-sdk-servicecatalog/resource'
|
20
|
+
require_relative 'aws-sdk-servicecatalog/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-servicecatalog/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-servicecatalog/endpoints'
|
19
23
|
require_relative 'aws-sdk-servicecatalog/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS Service Catalog. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-servicecatalog/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::ServiceCatalog
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.73.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-servicecatalog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.73.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-servicecatalog/client.rb
|
60
60
|
- lib/aws-sdk-servicecatalog/client_api.rb
|
61
61
|
- lib/aws-sdk-servicecatalog/customizations.rb
|
62
|
+
- lib/aws-sdk-servicecatalog/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-servicecatalog/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-servicecatalog/endpoints.rb
|
62
65
|
- lib/aws-sdk-servicecatalog/errors.rb
|
66
|
+
- lib/aws-sdk-servicecatalog/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-servicecatalog/resource.rb
|
64
68
|
- lib/aws-sdk-servicecatalog/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|