aws-sdk-connectcases 1.0.0 → 1.2.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-connectcases/client.rb +50 -9
- data/lib/aws-sdk-connectcases/client_api.rb +10 -0
- data/lib/aws-sdk-connectcases/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-connectcases/endpoint_provider.rb +110 -0
- data/lib/aws-sdk-connectcases/endpoints.rb +421 -0
- data/lib/aws-sdk-connectcases/plugins/endpoints.rb +126 -0
- data/lib/aws-sdk-connectcases/types.rb +37 -3
- data/lib/aws-sdk-connectcases.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5abb1319813710115c2dee34bf2f5a26fe66e6c93fa2d85f614f2ac9b2fef3a
|
4
|
+
data.tar.gz: 407df09c832c1befecfaaf3e3a1e9c1b61a970335b79ac94b40c6af5a38a0e66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97cd5203bc7a04d5ec5594105020e8fe5425182557f003beb50bd8bbc924d6fcec451de2f0d3a1d04626c09fc5cb64c9ee05bdfff70636351680fee8e3681a0c
|
7
|
+
data.tar.gz: bf00a2db526d4b7e963aab707d77f7c2990ee810b5b4b8edf890039b5965382c4f2171b7ef4c4a4c1c60d9fc4f5d9e6302915271955968ed3ea17fcad81a174a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.2.0 (2022-11-09)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds the ability to disable templates through the UpdateTemplate API. Disabling templates prevents customers from creating cases using the template. For more information see https://docs.aws.amazon.com/cases/latest/APIReference/Welcome.html
|
8
|
+
|
9
|
+
1.1.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.0.0 (2022-10-04)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:connectcases)
|
@@ -79,8 +79,9 @@ module Aws::ConnectCases
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::ConnectCases::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::ConnectCases
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::ConnectCases
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::ConnectCases::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ConnectCases::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -457,11 +474,17 @@ module Aws::ConnectCases
|
|
457
474
|
#
|
458
475
|
# @option params [String] :client_token
|
459
476
|
# A unique, case-sensitive identifier that you provide to ensure the
|
460
|
-
# idempotency of the request.
|
477
|
+
# idempotency of the request. If not provided, the Amazon Web Services
|
478
|
+
# SDK populates this field. For more information about idempotency, see
|
479
|
+
# [Making retries safe with idempotent APIs][1].
|
461
480
|
#
|
462
481
|
# **A suitable default value is auto-generated.** You should normally
|
463
482
|
# not need to pass this option.**
|
464
483
|
#
|
484
|
+
#
|
485
|
+
#
|
486
|
+
# [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
|
487
|
+
#
|
465
488
|
# @option params [required, String] :domain_id
|
466
489
|
# The unique identifier of the Cases domain.
|
467
490
|
#
|
@@ -737,11 +760,13 @@ module Aws::ConnectCases
|
|
737
760
|
end
|
738
761
|
|
739
762
|
# Creates a template in the Cases domain. This template is used to
|
740
|
-
# define the case object model (that is, define what data can be
|
763
|
+
# define the case object model (that is, to define what data can be
|
741
764
|
# captured on cases) in a Cases domain. A template must have a unique
|
742
765
|
# name within a domain, and it must reference existing field IDs and
|
743
766
|
# layout IDs. Additionally, multiple fields with same IDs are not
|
744
|
-
# allowed within the same Template.
|
767
|
+
# allowed within the same Template. A template can be either Active or
|
768
|
+
# Inactive, as indicated by its status. Inactive templates cannot be
|
769
|
+
# used to create cases.
|
745
770
|
#
|
746
771
|
# @option params [String] :description
|
747
772
|
# A brief description of the template.
|
@@ -759,6 +784,9 @@ module Aws::ConnectCases
|
|
759
784
|
# A list of fields that must contain a value for a case to be
|
760
785
|
# successfully created with this template.
|
761
786
|
#
|
787
|
+
# @option params [String] :status
|
788
|
+
# The status of the template.
|
789
|
+
#
|
762
790
|
# @return [Types::CreateTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
763
791
|
#
|
764
792
|
# * {Types::CreateTemplateResponse#template_arn #template_arn} => String
|
@@ -778,6 +806,7 @@ module Aws::ConnectCases
|
|
778
806
|
# field_id: "FieldId", # required
|
779
807
|
# },
|
780
808
|
# ],
|
809
|
+
# status: "Active", # accepts Active, Inactive
|
781
810
|
# })
|
782
811
|
#
|
783
812
|
# @example Response structure
|
@@ -985,6 +1014,7 @@ module Aws::ConnectCases
|
|
985
1014
|
# * {Types::GetTemplateResponse#layout_configuration #layout_configuration} => Types::LayoutConfiguration
|
986
1015
|
# * {Types::GetTemplateResponse#name #name} => String
|
987
1016
|
# * {Types::GetTemplateResponse#required_fields #required_fields} => Array<Types::RequiredField>
|
1017
|
+
# * {Types::GetTemplateResponse#status #status} => String
|
988
1018
|
# * {Types::GetTemplateResponse#tags #tags} => Hash<String,String>
|
989
1019
|
# * {Types::GetTemplateResponse#template_arn #template_arn} => String
|
990
1020
|
# * {Types::GetTemplateResponse#template_id #template_id} => String
|
@@ -1003,6 +1033,7 @@ module Aws::ConnectCases
|
|
1003
1033
|
# resp.name #=> String
|
1004
1034
|
# resp.required_fields #=> Array
|
1005
1035
|
# resp.required_fields[0].field_id #=> String
|
1036
|
+
# resp.status #=> String, one of "Active", "Inactive"
|
1006
1037
|
# resp.tags #=> Hash
|
1007
1038
|
# resp.tags["String"] #=> String
|
1008
1039
|
# resp.template_arn #=> String
|
@@ -1296,6 +1327,9 @@ module Aws::ConnectCases
|
|
1296
1327
|
# previous response in the next request to retrieve the next set of
|
1297
1328
|
# results.
|
1298
1329
|
#
|
1330
|
+
# @option params [Array<String>] :status
|
1331
|
+
# A list of status values to filter on.
|
1332
|
+
#
|
1299
1333
|
# @return [Types::ListTemplatesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1300
1334
|
#
|
1301
1335
|
# * {Types::ListTemplatesResponse#next_token #next_token} => String
|
@@ -1309,6 +1343,7 @@ module Aws::ConnectCases
|
|
1309
1343
|
# domain_id: "DomainId", # required
|
1310
1344
|
# max_results: 1,
|
1311
1345
|
# next_token: "NextToken",
|
1346
|
+
# status: ["Active"], # accepts Active, Inactive
|
1312
1347
|
# })
|
1313
1348
|
#
|
1314
1349
|
# @example Response structure
|
@@ -1316,6 +1351,7 @@ module Aws::ConnectCases
|
|
1316
1351
|
# resp.next_token #=> String
|
1317
1352
|
# resp.templates #=> Array
|
1318
1353
|
# resp.templates[0].name #=> String
|
1354
|
+
# resp.templates[0].status #=> String, one of "Active", "Inactive"
|
1319
1355
|
# resp.templates[0].template_arn #=> String
|
1320
1356
|
# resp.templates[0].template_id #=> String
|
1321
1357
|
#
|
@@ -1796,9 +1832,10 @@ module Aws::ConnectCases
|
|
1796
1832
|
|
1797
1833
|
# Updates the attributes of an existing template. The template
|
1798
1834
|
# attributes that can be modified include `name`, `description`,
|
1799
|
-
# `
|
1800
|
-
# not be null. If a null value is provided for a
|
1801
|
-
# attribute is ignored and its current value is
|
1835
|
+
# `layoutConfiguration`, `requiredFields`, and `status`. At least one of
|
1836
|
+
# these attributes must not be null. If a null value is provided for a
|
1837
|
+
# given attribute, that attribute is ignored and its current value is
|
1838
|
+
# preserved.
|
1802
1839
|
#
|
1803
1840
|
# @option params [String] :description
|
1804
1841
|
# A brief description of the template.
|
@@ -1816,6 +1853,9 @@ module Aws::ConnectCases
|
|
1816
1853
|
# A list of fields that must contain a value for a case to be
|
1817
1854
|
# successfully created with this template.
|
1818
1855
|
#
|
1856
|
+
# @option params [String] :status
|
1857
|
+
# The status of the template.
|
1858
|
+
#
|
1819
1859
|
# @option params [required, String] :template_id
|
1820
1860
|
# A unique identifier for the template.
|
1821
1861
|
#
|
@@ -1835,6 +1875,7 @@ module Aws::ConnectCases
|
|
1835
1875
|
# field_id: "FieldId", # required
|
1836
1876
|
# },
|
1837
1877
|
# ],
|
1878
|
+
# status: "Active", # accepts Active, Inactive
|
1838
1879
|
# template_id: "TemplateId", # required
|
1839
1880
|
# })
|
1840
1881
|
#
|
@@ -1860,7 +1901,7 @@ module Aws::ConnectCases
|
|
1860
1901
|
params: params,
|
1861
1902
|
config: config)
|
1862
1903
|
context[:gem_name] = 'aws-sdk-connectcases'
|
1863
|
-
context[:gem_version] = '1.
|
1904
|
+
context[:gem_version] = '1.2.0'
|
1864
1905
|
Seahorse::Client::Request.new(handlers, context)
|
1865
1906
|
end
|
1866
1907
|
|
@@ -177,6 +177,8 @@ module Aws::ConnectCases
|
|
177
177
|
TemplateDescription = Shapes::StringShape.new(name: 'TemplateDescription')
|
178
178
|
TemplateId = Shapes::StringShape.new(name: 'TemplateId')
|
179
179
|
TemplateName = Shapes::StringShape.new(name: 'TemplateName')
|
180
|
+
TemplateStatus = Shapes::StringShape.new(name: 'TemplateStatus')
|
181
|
+
TemplateStatusFilters = Shapes::ListShape.new(name: 'TemplateStatusFilters')
|
180
182
|
TemplateSummary = Shapes::StructureShape.new(name: 'TemplateSummary')
|
181
183
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
182
184
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
@@ -324,6 +326,7 @@ module Aws::ConnectCases
|
|
324
326
|
CreateTemplateRequest.add_member(:layout_configuration, Shapes::ShapeRef.new(shape: LayoutConfiguration, location_name: "layoutConfiguration"))
|
325
327
|
CreateTemplateRequest.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "name"))
|
326
328
|
CreateTemplateRequest.add_member(:required_fields, Shapes::ShapeRef.new(shape: RequiredFieldList, location_name: "requiredFields"))
|
329
|
+
CreateTemplateRequest.add_member(:status, Shapes::ShapeRef.new(shape: TemplateStatus, location_name: "status"))
|
327
330
|
CreateTemplateRequest.struct_class = Types::CreateTemplateRequest
|
328
331
|
|
329
332
|
CreateTemplateResponse.add_member(:template_arn, Shapes::ShapeRef.new(shape: TemplateArn, required: true, location_name: "templateArn"))
|
@@ -472,6 +475,7 @@ module Aws::ConnectCases
|
|
472
475
|
GetTemplateResponse.add_member(:layout_configuration, Shapes::ShapeRef.new(shape: LayoutConfiguration, location_name: "layoutConfiguration"))
|
473
476
|
GetTemplateResponse.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "name"))
|
474
477
|
GetTemplateResponse.add_member(:required_fields, Shapes::ShapeRef.new(shape: RequiredFieldList, location_name: "requiredFields"))
|
478
|
+
GetTemplateResponse.add_member(:status, Shapes::ShapeRef.new(shape: TemplateStatus, required: true, location_name: "status"))
|
475
479
|
GetTemplateResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
476
480
|
GetTemplateResponse.add_member(:template_arn, Shapes::ShapeRef.new(shape: TemplateArn, required: true, location_name: "templateArn"))
|
477
481
|
GetTemplateResponse.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "templateId"))
|
@@ -560,6 +564,7 @@ module Aws::ConnectCases
|
|
560
564
|
ListTemplatesRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
|
561
565
|
ListTemplatesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
562
566
|
ListTemplatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
567
|
+
ListTemplatesRequest.add_member(:status, Shapes::ShapeRef.new(shape: TemplateStatusFilters, location: "querystring", location_name: "status"))
|
563
568
|
ListTemplatesRequest.struct_class = Types::ListTemplatesRequest
|
564
569
|
|
565
570
|
ListTemplatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
@@ -684,7 +689,10 @@ module Aws::ConnectCases
|
|
684
689
|
Tags.key = Shapes::ShapeRef.new(shape: String)
|
685
690
|
Tags.value = Shapes::ShapeRef.new(shape: String)
|
686
691
|
|
692
|
+
TemplateStatusFilters.member = Shapes::ShapeRef.new(shape: TemplateStatus)
|
693
|
+
|
687
694
|
TemplateSummary.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "name"))
|
695
|
+
TemplateSummary.add_member(:status, Shapes::ShapeRef.new(shape: TemplateStatus, required: true, location_name: "status"))
|
688
696
|
TemplateSummary.add_member(:template_arn, Shapes::ShapeRef.new(shape: TemplateArn, required: true, location_name: "templateArn"))
|
689
697
|
TemplateSummary.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "templateId"))
|
690
698
|
TemplateSummary.struct_class = Types::TemplateSummary
|
@@ -726,6 +734,7 @@ module Aws::ConnectCases
|
|
726
734
|
UpdateTemplateRequest.add_member(:layout_configuration, Shapes::ShapeRef.new(shape: LayoutConfiguration, location_name: "layoutConfiguration"))
|
727
735
|
UpdateTemplateRequest.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, location_name: "name"))
|
728
736
|
UpdateTemplateRequest.add_member(:required_fields, Shapes::ShapeRef.new(shape: RequiredFieldList, location_name: "requiredFields"))
|
737
|
+
UpdateTemplateRequest.add_member(:status, Shapes::ShapeRef.new(shape: TemplateStatus, location_name: "status"))
|
729
738
|
UpdateTemplateRequest.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location: "uri", location_name: "templateId"))
|
730
739
|
UpdateTemplateRequest.struct_class = Types::UpdateTemplateRequest
|
731
740
|
|
@@ -1181,6 +1190,7 @@ module Aws::ConnectCases
|
|
1181
1190
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1182
1191
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1183
1192
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1193
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1184
1194
|
end)
|
1185
1195
|
|
1186
1196
|
api.add_operation(:update_template, Seahorse::Model::Operation.new.tap do |o|
|
@@ -0,0 +1,66 @@
|
|
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
|
+
module Aws::ConnectCases
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,110 @@
|
|
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
|
+
module Aws::ConnectCases
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
+
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
+
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
+
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
+
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
+
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
+
ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
|
39
|
+
aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
|
40
|
+
OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ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ub3Qgc3VwcG9ydCBE
|
103
|
+
dWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10s
|
104
|
+
ImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vY2FzZXMue1JlZ2lvbn0ue1Bh
|
105
|
+
cnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
|
106
|
+
YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
|
107
|
+
|
108
|
+
JSON
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,421 @@
|
|
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::ConnectCases
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class BatchGetField
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::ConnectCases::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class BatchPutFieldOptions
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::ConnectCases::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class CreateCase
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::ConnectCases::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class CreateDomain
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::ConnectCases::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class CreateField
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::ConnectCases::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class CreateLayout
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::ConnectCases::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class CreateRelatedItem
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::ConnectCases::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class CreateTemplate
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::ConnectCases::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class GetCase
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::ConnectCases::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class GetCaseEventConfiguration
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::ConnectCases::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class GetDomain
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::ConnectCases::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class GetLayout
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::ConnectCases::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class GetTemplate
|
183
|
+
def self.build(context)
|
184
|
+
unless context.config.regional_endpoint
|
185
|
+
endpoint = context.config.endpoint.to_s
|
186
|
+
end
|
187
|
+
Aws::ConnectCases::EndpointParameters.new(
|
188
|
+
region: context.config.region,
|
189
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class ListCasesForContact
|
197
|
+
def self.build(context)
|
198
|
+
unless context.config.regional_endpoint
|
199
|
+
endpoint = context.config.endpoint.to_s
|
200
|
+
end
|
201
|
+
Aws::ConnectCases::EndpointParameters.new(
|
202
|
+
region: context.config.region,
|
203
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
+
use_fips: context.config.use_fips_endpoint,
|
205
|
+
endpoint: endpoint,
|
206
|
+
)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class ListDomains
|
211
|
+
def self.build(context)
|
212
|
+
unless context.config.regional_endpoint
|
213
|
+
endpoint = context.config.endpoint.to_s
|
214
|
+
end
|
215
|
+
Aws::ConnectCases::EndpointParameters.new(
|
216
|
+
region: context.config.region,
|
217
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
+
use_fips: context.config.use_fips_endpoint,
|
219
|
+
endpoint: endpoint,
|
220
|
+
)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
class ListFieldOptions
|
225
|
+
def self.build(context)
|
226
|
+
unless context.config.regional_endpoint
|
227
|
+
endpoint = context.config.endpoint.to_s
|
228
|
+
end
|
229
|
+
Aws::ConnectCases::EndpointParameters.new(
|
230
|
+
region: context.config.region,
|
231
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
232
|
+
use_fips: context.config.use_fips_endpoint,
|
233
|
+
endpoint: endpoint,
|
234
|
+
)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
class ListFields
|
239
|
+
def self.build(context)
|
240
|
+
unless context.config.regional_endpoint
|
241
|
+
endpoint = context.config.endpoint.to_s
|
242
|
+
end
|
243
|
+
Aws::ConnectCases::EndpointParameters.new(
|
244
|
+
region: context.config.region,
|
245
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
246
|
+
use_fips: context.config.use_fips_endpoint,
|
247
|
+
endpoint: endpoint,
|
248
|
+
)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class ListLayouts
|
253
|
+
def self.build(context)
|
254
|
+
unless context.config.regional_endpoint
|
255
|
+
endpoint = context.config.endpoint.to_s
|
256
|
+
end
|
257
|
+
Aws::ConnectCases::EndpointParameters.new(
|
258
|
+
region: context.config.region,
|
259
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
260
|
+
use_fips: context.config.use_fips_endpoint,
|
261
|
+
endpoint: endpoint,
|
262
|
+
)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
class ListTagsForResource
|
267
|
+
def self.build(context)
|
268
|
+
unless context.config.regional_endpoint
|
269
|
+
endpoint = context.config.endpoint.to_s
|
270
|
+
end
|
271
|
+
Aws::ConnectCases::EndpointParameters.new(
|
272
|
+
region: context.config.region,
|
273
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
274
|
+
use_fips: context.config.use_fips_endpoint,
|
275
|
+
endpoint: endpoint,
|
276
|
+
)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class ListTemplates
|
281
|
+
def self.build(context)
|
282
|
+
unless context.config.regional_endpoint
|
283
|
+
endpoint = context.config.endpoint.to_s
|
284
|
+
end
|
285
|
+
Aws::ConnectCases::EndpointParameters.new(
|
286
|
+
region: context.config.region,
|
287
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
288
|
+
use_fips: context.config.use_fips_endpoint,
|
289
|
+
endpoint: endpoint,
|
290
|
+
)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
class PutCaseEventConfiguration
|
295
|
+
def self.build(context)
|
296
|
+
unless context.config.regional_endpoint
|
297
|
+
endpoint = context.config.endpoint.to_s
|
298
|
+
end
|
299
|
+
Aws::ConnectCases::EndpointParameters.new(
|
300
|
+
region: context.config.region,
|
301
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
302
|
+
use_fips: context.config.use_fips_endpoint,
|
303
|
+
endpoint: endpoint,
|
304
|
+
)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
class SearchCases
|
309
|
+
def self.build(context)
|
310
|
+
unless context.config.regional_endpoint
|
311
|
+
endpoint = context.config.endpoint.to_s
|
312
|
+
end
|
313
|
+
Aws::ConnectCases::EndpointParameters.new(
|
314
|
+
region: context.config.region,
|
315
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
316
|
+
use_fips: context.config.use_fips_endpoint,
|
317
|
+
endpoint: endpoint,
|
318
|
+
)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
class SearchRelatedItems
|
323
|
+
def self.build(context)
|
324
|
+
unless context.config.regional_endpoint
|
325
|
+
endpoint = context.config.endpoint.to_s
|
326
|
+
end
|
327
|
+
Aws::ConnectCases::EndpointParameters.new(
|
328
|
+
region: context.config.region,
|
329
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
330
|
+
use_fips: context.config.use_fips_endpoint,
|
331
|
+
endpoint: endpoint,
|
332
|
+
)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
class TagResource
|
337
|
+
def self.build(context)
|
338
|
+
unless context.config.regional_endpoint
|
339
|
+
endpoint = context.config.endpoint.to_s
|
340
|
+
end
|
341
|
+
Aws::ConnectCases::EndpointParameters.new(
|
342
|
+
region: context.config.region,
|
343
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
344
|
+
use_fips: context.config.use_fips_endpoint,
|
345
|
+
endpoint: endpoint,
|
346
|
+
)
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
class UntagResource
|
351
|
+
def self.build(context)
|
352
|
+
unless context.config.regional_endpoint
|
353
|
+
endpoint = context.config.endpoint.to_s
|
354
|
+
end
|
355
|
+
Aws::ConnectCases::EndpointParameters.new(
|
356
|
+
region: context.config.region,
|
357
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
358
|
+
use_fips: context.config.use_fips_endpoint,
|
359
|
+
endpoint: endpoint,
|
360
|
+
)
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
364
|
+
class UpdateCase
|
365
|
+
def self.build(context)
|
366
|
+
unless context.config.regional_endpoint
|
367
|
+
endpoint = context.config.endpoint.to_s
|
368
|
+
end
|
369
|
+
Aws::ConnectCases::EndpointParameters.new(
|
370
|
+
region: context.config.region,
|
371
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
372
|
+
use_fips: context.config.use_fips_endpoint,
|
373
|
+
endpoint: endpoint,
|
374
|
+
)
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
class UpdateField
|
379
|
+
def self.build(context)
|
380
|
+
unless context.config.regional_endpoint
|
381
|
+
endpoint = context.config.endpoint.to_s
|
382
|
+
end
|
383
|
+
Aws::ConnectCases::EndpointParameters.new(
|
384
|
+
region: context.config.region,
|
385
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
386
|
+
use_fips: context.config.use_fips_endpoint,
|
387
|
+
endpoint: endpoint,
|
388
|
+
)
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
class UpdateLayout
|
393
|
+
def self.build(context)
|
394
|
+
unless context.config.regional_endpoint
|
395
|
+
endpoint = context.config.endpoint.to_s
|
396
|
+
end
|
397
|
+
Aws::ConnectCases::EndpointParameters.new(
|
398
|
+
region: context.config.region,
|
399
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
400
|
+
use_fips: context.config.use_fips_endpoint,
|
401
|
+
endpoint: endpoint,
|
402
|
+
)
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
class UpdateTemplate
|
407
|
+
def self.build(context)
|
408
|
+
unless context.config.regional_endpoint
|
409
|
+
endpoint = context.config.endpoint.to_s
|
410
|
+
end
|
411
|
+
Aws::ConnectCases::EndpointParameters.new(
|
412
|
+
region: context.config.region,
|
413
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
414
|
+
use_fips: context.config.use_fips_endpoint,
|
415
|
+
endpoint: endpoint,
|
416
|
+
)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
end
|
421
|
+
end
|
@@ -0,0 +1,126 @@
|
|
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::ConnectCases
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::ConnectCases::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::ConnectCases::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::ConnectCases::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 :batch_get_field
|
60
|
+
Aws::ConnectCases::Endpoints::BatchGetField.build(context)
|
61
|
+
when :batch_put_field_options
|
62
|
+
Aws::ConnectCases::Endpoints::BatchPutFieldOptions.build(context)
|
63
|
+
when :create_case
|
64
|
+
Aws::ConnectCases::Endpoints::CreateCase.build(context)
|
65
|
+
when :create_domain
|
66
|
+
Aws::ConnectCases::Endpoints::CreateDomain.build(context)
|
67
|
+
when :create_field
|
68
|
+
Aws::ConnectCases::Endpoints::CreateField.build(context)
|
69
|
+
when :create_layout
|
70
|
+
Aws::ConnectCases::Endpoints::CreateLayout.build(context)
|
71
|
+
when :create_related_item
|
72
|
+
Aws::ConnectCases::Endpoints::CreateRelatedItem.build(context)
|
73
|
+
when :create_template
|
74
|
+
Aws::ConnectCases::Endpoints::CreateTemplate.build(context)
|
75
|
+
when :get_case
|
76
|
+
Aws::ConnectCases::Endpoints::GetCase.build(context)
|
77
|
+
when :get_case_event_configuration
|
78
|
+
Aws::ConnectCases::Endpoints::GetCaseEventConfiguration.build(context)
|
79
|
+
when :get_domain
|
80
|
+
Aws::ConnectCases::Endpoints::GetDomain.build(context)
|
81
|
+
when :get_layout
|
82
|
+
Aws::ConnectCases::Endpoints::GetLayout.build(context)
|
83
|
+
when :get_template
|
84
|
+
Aws::ConnectCases::Endpoints::GetTemplate.build(context)
|
85
|
+
when :list_cases_for_contact
|
86
|
+
Aws::ConnectCases::Endpoints::ListCasesForContact.build(context)
|
87
|
+
when :list_domains
|
88
|
+
Aws::ConnectCases::Endpoints::ListDomains.build(context)
|
89
|
+
when :list_field_options
|
90
|
+
Aws::ConnectCases::Endpoints::ListFieldOptions.build(context)
|
91
|
+
when :list_fields
|
92
|
+
Aws::ConnectCases::Endpoints::ListFields.build(context)
|
93
|
+
when :list_layouts
|
94
|
+
Aws::ConnectCases::Endpoints::ListLayouts.build(context)
|
95
|
+
when :list_tags_for_resource
|
96
|
+
Aws::ConnectCases::Endpoints::ListTagsForResource.build(context)
|
97
|
+
when :list_templates
|
98
|
+
Aws::ConnectCases::Endpoints::ListTemplates.build(context)
|
99
|
+
when :put_case_event_configuration
|
100
|
+
Aws::ConnectCases::Endpoints::PutCaseEventConfiguration.build(context)
|
101
|
+
when :search_cases
|
102
|
+
Aws::ConnectCases::Endpoints::SearchCases.build(context)
|
103
|
+
when :search_related_items
|
104
|
+
Aws::ConnectCases::Endpoints::SearchRelatedItems.build(context)
|
105
|
+
when :tag_resource
|
106
|
+
Aws::ConnectCases::Endpoints::TagResource.build(context)
|
107
|
+
when :untag_resource
|
108
|
+
Aws::ConnectCases::Endpoints::UntagResource.build(context)
|
109
|
+
when :update_case
|
110
|
+
Aws::ConnectCases::Endpoints::UpdateCase.build(context)
|
111
|
+
when :update_field
|
112
|
+
Aws::ConnectCases::Endpoints::UpdateField.build(context)
|
113
|
+
when :update_layout
|
114
|
+
Aws::ConnectCases::Endpoints::UpdateLayout.build(context)
|
115
|
+
when :update_template
|
116
|
+
Aws::ConnectCases::Endpoints::UpdateTemplate.build(context)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
def add_handlers(handlers, _config)
|
122
|
+
handlers.add(Handler, step: :build, priority: 75)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
@@ -395,10 +395,16 @@ module Aws::ConnectCases
|
|
395
395
|
#
|
396
396
|
# @!attribute [rw] client_token
|
397
397
|
# A unique, case-sensitive identifier that you provide to ensure the
|
398
|
-
# idempotency of the request.
|
398
|
+
# idempotency of the request. If not provided, the Amazon Web Services
|
399
|
+
# SDK populates this field. For more information about idempotency,
|
400
|
+
# see [Making retries safe with idempotent APIs][1].
|
399
401
|
#
|
400
402
|
# **A suitable default value is auto-generated.** You should normally
|
401
403
|
# not need to pass this option.
|
404
|
+
#
|
405
|
+
#
|
406
|
+
#
|
407
|
+
# [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
|
402
408
|
# @return [String]
|
403
409
|
#
|
404
410
|
# @!attribute [rw] domain_id
|
@@ -696,6 +702,7 @@ module Aws::ConnectCases
|
|
696
702
|
# field_id: "FieldId", # required
|
697
703
|
# },
|
698
704
|
# ],
|
705
|
+
# status: "Active", # accepts Active, Inactive
|
699
706
|
# }
|
700
707
|
#
|
701
708
|
# @!attribute [rw] description
|
@@ -719,6 +726,10 @@ module Aws::ConnectCases
|
|
719
726
|
# successfully created with this template.
|
720
727
|
# @return [Array<Types::RequiredField>]
|
721
728
|
#
|
729
|
+
# @!attribute [rw] status
|
730
|
+
# The status of the template.
|
731
|
+
# @return [String]
|
732
|
+
#
|
722
733
|
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/CreateTemplateRequest AWS API Documentation
|
723
734
|
#
|
724
735
|
class CreateTemplateRequest < Struct.new(
|
@@ -726,7 +737,8 @@ module Aws::ConnectCases
|
|
726
737
|
:domain_id,
|
727
738
|
:layout_configuration,
|
728
739
|
:name,
|
729
|
-
:required_fields
|
740
|
+
:required_fields,
|
741
|
+
:status)
|
730
742
|
SENSITIVE = []
|
731
743
|
include Aws::Structure
|
732
744
|
end
|
@@ -1466,6 +1478,10 @@ module Aws::ConnectCases
|
|
1466
1478
|
# successfully created with this template.
|
1467
1479
|
# @return [Array<Types::RequiredField>]
|
1468
1480
|
#
|
1481
|
+
# @!attribute [rw] status
|
1482
|
+
# The status of the template.
|
1483
|
+
# @return [String]
|
1484
|
+
#
|
1469
1485
|
# @!attribute [rw] tags
|
1470
1486
|
# A map of of key-value pairs that represent tags on a resource. Tags
|
1471
1487
|
# are used to organize, track, or control access for this resource.
|
@@ -1486,6 +1502,7 @@ module Aws::ConnectCases
|
|
1486
1502
|
:layout_configuration,
|
1487
1503
|
:name,
|
1488
1504
|
:required_fields,
|
1505
|
+
:status,
|
1489
1506
|
:tags,
|
1490
1507
|
:template_arn,
|
1491
1508
|
:template_id)
|
@@ -1921,6 +1938,7 @@ module Aws::ConnectCases
|
|
1921
1938
|
# domain_id: "DomainId", # required
|
1922
1939
|
# max_results: 1,
|
1923
1940
|
# next_token: "NextToken",
|
1941
|
+
# status: ["Active"], # accepts Active, Inactive
|
1924
1942
|
# }
|
1925
1943
|
#
|
1926
1944
|
# @!attribute [rw] domain_id
|
@@ -1937,12 +1955,17 @@ module Aws::ConnectCases
|
|
1937
1955
|
# results.
|
1938
1956
|
# @return [String]
|
1939
1957
|
#
|
1958
|
+
# @!attribute [rw] status
|
1959
|
+
# A list of status values to filter on.
|
1960
|
+
# @return [Array<String>]
|
1961
|
+
#
|
1940
1962
|
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTemplatesRequest AWS API Documentation
|
1941
1963
|
#
|
1942
1964
|
class ListTemplatesRequest < Struct.new(
|
1943
1965
|
:domain_id,
|
1944
1966
|
:max_results,
|
1945
|
-
:next_token
|
1967
|
+
:next_token,
|
1968
|
+
:status)
|
1946
1969
|
SENSITIVE = []
|
1947
1970
|
include Aws::Structure
|
1948
1971
|
end
|
@@ -2550,6 +2573,10 @@ module Aws::ConnectCases
|
|
2550
2573
|
# The template name.
|
2551
2574
|
# @return [String]
|
2552
2575
|
#
|
2576
|
+
# @!attribute [rw] status
|
2577
|
+
# The status of the template.
|
2578
|
+
# @return [String]
|
2579
|
+
#
|
2553
2580
|
# @!attribute [rw] template_arn
|
2554
2581
|
# The Amazon Resource Name (ARN) of the template.
|
2555
2582
|
# @return [String]
|
@@ -2562,6 +2589,7 @@ module Aws::ConnectCases
|
|
2562
2589
|
#
|
2563
2590
|
class TemplateSummary < Struct.new(
|
2564
2591
|
:name,
|
2592
|
+
:status,
|
2565
2593
|
:template_arn,
|
2566
2594
|
:template_id)
|
2567
2595
|
SENSITIVE = []
|
@@ -2782,6 +2810,7 @@ module Aws::ConnectCases
|
|
2782
2810
|
# field_id: "FieldId", # required
|
2783
2811
|
# },
|
2784
2812
|
# ],
|
2813
|
+
# status: "Active", # accepts Active, Inactive
|
2785
2814
|
# template_id: "TemplateId", # required
|
2786
2815
|
# }
|
2787
2816
|
#
|
@@ -2806,6 +2835,10 @@ module Aws::ConnectCases
|
|
2806
2835
|
# successfully created with this template.
|
2807
2836
|
# @return [Array<Types::RequiredField>]
|
2808
2837
|
#
|
2838
|
+
# @!attribute [rw] status
|
2839
|
+
# The status of the template.
|
2840
|
+
# @return [String]
|
2841
|
+
#
|
2809
2842
|
# @!attribute [rw] template_id
|
2810
2843
|
# A unique identifier for the template.
|
2811
2844
|
# @return [String]
|
@@ -2818,6 +2851,7 @@ module Aws::ConnectCases
|
|
2818
2851
|
:layout_configuration,
|
2819
2852
|
:name,
|
2820
2853
|
:required_fields,
|
2854
|
+
:status,
|
2821
2855
|
:template_id)
|
2822
2856
|
SENSITIVE = []
|
2823
2857
|
include Aws::Structure
|
data/lib/aws-sdk-connectcases.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-connectcases/types'
|
15
15
|
require_relative 'aws-sdk-connectcases/client_api'
|
16
|
+
require_relative 'aws-sdk-connectcases/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-connectcases/client'
|
17
18
|
require_relative 'aws-sdk-connectcases/errors'
|
18
19
|
require_relative 'aws-sdk-connectcases/resource'
|
20
|
+
require_relative 'aws-sdk-connectcases/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-connectcases/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-connectcases/endpoints'
|
19
23
|
require_relative 'aws-sdk-connectcases/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon Connect Cases. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-connectcases/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::ConnectCases
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.2.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-connectcases
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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-11-09 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-connectcases/client.rb
|
60
60
|
- lib/aws-sdk-connectcases/client_api.rb
|
61
61
|
- lib/aws-sdk-connectcases/customizations.rb
|
62
|
+
- lib/aws-sdk-connectcases/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-connectcases/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-connectcases/endpoints.rb
|
62
65
|
- lib/aws-sdk-connectcases/errors.rb
|
66
|
+
- lib/aws-sdk-connectcases/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-connectcases/resource.rb
|
64
68
|
- lib/aws-sdk-connectcases/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|