aws-sdk-connectcases 1.3.0 → 1.4.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-connectcases/client.rb +35 -2
- data/lib/aws-sdk-connectcases/client_api.rb +21 -0
- data/lib/aws-sdk-connectcases/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-connectcases/endpoints.rb +14 -0
- data/lib/aws-sdk-connectcases/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-connectcases/types.rb +16 -0
- data/lib/aws-sdk-connectcases.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14654f0041956c4a85dbe90875a91712c3c4a28dbaab7b421c631d771bfea692
|
4
|
+
data.tar.gz: 3f719bd15c6aa85f4b3316a45bf0427a999f3c569b23e2100f5dca33fb3340f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed27a200557023e0c4250568c116353b8a35714a9e6bc2c9ccb68d6f7a0fbb4064553f5ff1e9b71c4914522f2c9941a9b6f6db8d43b338fdd1d20ddc6b7a02c3
|
7
|
+
data.tar.gz: ca83b711bf0e8b5337ede0b626f2ad6d0b5bde3cb72cefd02e5daeacd93ad958cefc2ab576de3951fe28e0cd4876c5e1f6840ffa4407aff58474160079c4c72a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.4.0 (2023-02-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds the ability to delete domains through the DeleteDomain API. For more information see https://docs.aws.amazon.com/cases/latest/APIReference/Welcome.html
|
8
|
+
|
4
9
|
1.3.0 (2023-01-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
@@ -468,7 +468,9 @@ module Aws::ConnectCases
|
|
468
468
|
# fields are taken as an array id/value pairs with a declared data
|
469
469
|
# types.
|
470
470
|
#
|
471
|
-
# <note markdown="1">
|
471
|
+
# <note markdown="1"> The following fields are required when creating a case:
|
472
|
+
#
|
473
|
+
# <ul> <li> <p> <code>customer_id</code> - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID</code> </p> </li> <li> <p> <code>title</code> </p> </li> </ul> </note>
|
472
474
|
#
|
473
475
|
# </note>
|
474
476
|
#
|
@@ -538,10 +540,13 @@ module Aws::ConnectCases
|
|
538
540
|
#
|
539
541
|
# This will not associate your connect instance to Cases domain.
|
540
542
|
# Instead, use the Amazon Connect [CreateIntegrationAssociation][1] API.
|
543
|
+
# You need specific IAM permissions to successfully associate the Cases
|
544
|
+
# domain. For more information, see [Onboard to Cases][2].
|
541
545
|
#
|
542
546
|
#
|
543
547
|
#
|
544
548
|
# [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html
|
549
|
+
# [2]: https://docs.aws.amazon.com/connect/latest/adminguide/required-permissions-iam-cases.html#onboard-cases-iam
|
545
550
|
#
|
546
551
|
# @option params [required, String] :name
|
547
552
|
# The name for your Cases domain. It must be unique for your Amazon Web
|
@@ -823,6 +828,28 @@ module Aws::ConnectCases
|
|
823
828
|
req.send_request(options)
|
824
829
|
end
|
825
830
|
|
831
|
+
# Deletes a domain.
|
832
|
+
#
|
833
|
+
# @option params [required, String] :domain_id
|
834
|
+
# The unique identifier of the Cases domain.
|
835
|
+
#
|
836
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
837
|
+
#
|
838
|
+
# @example Request syntax with placeholder values
|
839
|
+
#
|
840
|
+
# resp = client.delete_domain({
|
841
|
+
# domain_id: "DomainId", # required
|
842
|
+
# })
|
843
|
+
#
|
844
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteDomain AWS API Documentation
|
845
|
+
#
|
846
|
+
# @overload delete_domain(params = {})
|
847
|
+
# @param [Hash] params ({})
|
848
|
+
def delete_domain(params = {}, options = {})
|
849
|
+
req = build_request(:delete_domain, params)
|
850
|
+
req.send_request(options)
|
851
|
+
end
|
852
|
+
|
826
853
|
# Returns information about a specific case if it exists.
|
827
854
|
#
|
828
855
|
# @option params [required, String] :case_id
|
@@ -1408,6 +1435,12 @@ module Aws::ConnectCases
|
|
1408
1435
|
# Searches for cases within their associated Cases domain. Search
|
1409
1436
|
# results are returned as a paginated list of abridged case documents.
|
1410
1437
|
#
|
1438
|
+
# <note markdown="1"> For `customer_id` you must provide the full customer profile ARN in
|
1439
|
+
# this format: ` arn:aws:profile:your AWS Region:your AWS account
|
1440
|
+
# ID:domains/profiles domain name/profiles/profile ID`.
|
1441
|
+
#
|
1442
|
+
# </note>
|
1443
|
+
#
|
1411
1444
|
# @option params [required, String] :domain_id
|
1412
1445
|
# The unique identifier of the Cases domain.
|
1413
1446
|
#
|
@@ -1901,7 +1934,7 @@ module Aws::ConnectCases
|
|
1901
1934
|
params: params,
|
1902
1935
|
config: config)
|
1903
1936
|
context[:gem_name] = 'aws-sdk-connectcases'
|
1904
|
-
context[:gem_version] = '1.
|
1937
|
+
context[:gem_version] = '1.4.0'
|
1905
1938
|
Seahorse::Client::Request.new(handlers, context)
|
1906
1939
|
end
|
1907
1940
|
|
@@ -61,6 +61,8 @@ module Aws::ConnectCases
|
|
61
61
|
CreateTemplateRequest = Shapes::StructureShape.new(name: 'CreateTemplateRequest')
|
62
62
|
CreateTemplateResponse = Shapes::StructureShape.new(name: 'CreateTemplateResponse')
|
63
63
|
CreatedTime = Shapes::TimestampShape.new(name: 'CreatedTime', timestampFormat: "iso8601")
|
64
|
+
DeleteDomainRequest = Shapes::StructureShape.new(name: 'DeleteDomainRequest')
|
65
|
+
DeleteDomainResponse = Shapes::StructureShape.new(name: 'DeleteDomainResponse')
|
64
66
|
DomainArn = Shapes::StringShape.new(name: 'DomainArn')
|
65
67
|
DomainId = Shapes::StringShape.new(name: 'DomainId')
|
66
68
|
DomainName = Shapes::StringShape.new(name: 'DomainName')
|
@@ -333,6 +335,11 @@ module Aws::ConnectCases
|
|
333
335
|
CreateTemplateResponse.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "templateId"))
|
334
336
|
CreateTemplateResponse.struct_class = Types::CreateTemplateResponse
|
335
337
|
|
338
|
+
DeleteDomainRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
|
339
|
+
DeleteDomainRequest.struct_class = Types::DeleteDomainRequest
|
340
|
+
|
341
|
+
DeleteDomainResponse.struct_class = Types::DeleteDomainResponse
|
342
|
+
|
336
343
|
DomainSummary.add_member(:domain_arn, Shapes::ShapeRef.new(shape: DomainArn, required: true, location_name: "domainArn"))
|
337
344
|
DomainSummary.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location_name: "domainId"))
|
338
345
|
DomainSummary.add_member(:name, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "name"))
|
@@ -878,6 +885,20 @@ module Aws::ConnectCases
|
|
878
885
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
879
886
|
end)
|
880
887
|
|
888
|
+
api.add_operation(:delete_domain, Seahorse::Model::Operation.new.tap do |o|
|
889
|
+
o.name = "DeleteDomain"
|
890
|
+
o.http_method = "DELETE"
|
891
|
+
o.http_request_uri = "/domains/{domainId}"
|
892
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteDomainRequest)
|
893
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteDomainResponse)
|
894
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
895
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
896
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
897
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
898
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
899
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
900
|
+
end)
|
901
|
+
|
881
902
|
api.add_operation(:get_case, Seahorse::Model::Operation.new.tap do |o|
|
882
903
|
o.name = "GetCase"
|
883
904
|
o.http_method = "POST"
|
@@ -14,36 +14,39 @@ module Aws::ConnectCases
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cases-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cases-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cases-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cases-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cases.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cases.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cases.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -123,6 +123,20 @@ module Aws::ConnectCases
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
+
class DeleteDomain
|
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
|
+
|
126
140
|
class GetCase
|
127
141
|
def self.build(context)
|
128
142
|
unless context.config.regional_endpoint
|
@@ -72,6 +72,8 @@ module Aws::ConnectCases
|
|
72
72
|
Aws::ConnectCases::Endpoints::CreateRelatedItem.build(context)
|
73
73
|
when :create_template
|
74
74
|
Aws::ConnectCases::Endpoints::CreateTemplate.build(context)
|
75
|
+
when :delete_domain
|
76
|
+
Aws::ConnectCases::Endpoints::DeleteDomain.build(context)
|
75
77
|
when :get_case
|
76
78
|
Aws::ConnectCases::Endpoints::GetCase.build(context)
|
77
79
|
when :get_case_event_configuration
|
@@ -553,6 +553,22 @@ module Aws::ConnectCases
|
|
553
553
|
include Aws::Structure
|
554
554
|
end
|
555
555
|
|
556
|
+
# @!attribute [rw] domain_id
|
557
|
+
# The unique identifier of the Cases domain.
|
558
|
+
# @return [String]
|
559
|
+
#
|
560
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteDomainRequest AWS API Documentation
|
561
|
+
#
|
562
|
+
class DeleteDomainRequest < Struct.new(
|
563
|
+
:domain_id)
|
564
|
+
SENSITIVE = []
|
565
|
+
include Aws::Structure
|
566
|
+
end
|
567
|
+
|
568
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteDomainResponse AWS API Documentation
|
569
|
+
#
|
570
|
+
class DeleteDomainResponse < Aws::EmptyStructure; end
|
571
|
+
|
556
572
|
# Object for the summarized details of the domain.
|
557
573
|
#
|
558
574
|
# @!attribute [rw] domain_arn
|
data/lib/aws-sdk-connectcases.rb
CHANGED
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.4.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: 2023-
|
11
|
+
date: 2023-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|