aws-sdk-connectcases 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82d39eb59969aeffd71467b23c91a607be674225fcd0725defa130239186e82d
4
- data.tar.gz: c322bc3db20f83bdf5a560940309e788661744b690d33f979d7fafac7c450ba8
3
+ metadata.gz: f5abb1319813710115c2dee34bf2f5a26fe66e6c93fa2d85f614f2ac9b2fef3a
4
+ data.tar.gz: 407df09c832c1befecfaaf3e3a1e9c1b61a970335b79ac94b40c6af5a38a0e66
5
5
  SHA512:
6
- metadata.gz: 8af3eadd04102901827062326030fceecef876f1406159a084eeeabfc553ba9b4ac1e0b3f664a1c8a2e7425984ecbde0ab2747dbbc7a4921760c387795e94901
7
- data.tar.gz: 9f7f96360d7370556bc73aace7b9d63b6353c2d9767d127399f40d57720ee724abb4b3e8bed70f8fcb6c60cb98b3b605665310b86923c89ff20db30c70e9b905
6
+ metadata.gz: 97cd5203bc7a04d5ec5594105020e8fe5425182557f003beb50bd8bbc924d6fcec451de2f0d3a1d04626c09fc5cb64c9ee05bdfff70636351680fee8e3681a0c
7
+ data.tar.gz: bf00a2db526d4b7e963aab707d77f7c2990ee810b5b4b8edf890039b5965382c4f2171b7ef4c4a4c1c60d9fc4f5d9e6302915271955968ed3ea17fcad81a174a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.1.0 (2022-10-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -474,11 +474,17 @@ module Aws::ConnectCases
474
474
  #
475
475
  # @option params [String] :client_token
476
476
  # A unique, case-sensitive identifier that you provide to ensure the
477
- # 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].
478
480
  #
479
481
  # **A suitable default value is auto-generated.** You should normally
480
482
  # not need to pass this option.**
481
483
  #
484
+ #
485
+ #
486
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
487
+ #
482
488
  # @option params [required, String] :domain_id
483
489
  # The unique identifier of the Cases domain.
484
490
  #
@@ -754,11 +760,13 @@ module Aws::ConnectCases
754
760
  end
755
761
 
756
762
  # Creates a template in the Cases domain. This template is used to
757
- # 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
758
764
  # captured on cases) in a Cases domain. A template must have a unique
759
765
  # name within a domain, and it must reference existing field IDs and
760
766
  # layout IDs. Additionally, multiple fields with same IDs are not
761
- # 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.
762
770
  #
763
771
  # @option params [String] :description
764
772
  # A brief description of the template.
@@ -776,6 +784,9 @@ module Aws::ConnectCases
776
784
  # A list of fields that must contain a value for a case to be
777
785
  # successfully created with this template.
778
786
  #
787
+ # @option params [String] :status
788
+ # The status of the template.
789
+ #
779
790
  # @return [Types::CreateTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
780
791
  #
781
792
  # * {Types::CreateTemplateResponse#template_arn #template_arn} => String
@@ -795,6 +806,7 @@ module Aws::ConnectCases
795
806
  # field_id: "FieldId", # required
796
807
  # },
797
808
  # ],
809
+ # status: "Active", # accepts Active, Inactive
798
810
  # })
799
811
  #
800
812
  # @example Response structure
@@ -1002,6 +1014,7 @@ module Aws::ConnectCases
1002
1014
  # * {Types::GetTemplateResponse#layout_configuration #layout_configuration} => Types::LayoutConfiguration
1003
1015
  # * {Types::GetTemplateResponse#name #name} => String
1004
1016
  # * {Types::GetTemplateResponse#required_fields #required_fields} => Array<Types::RequiredField>
1017
+ # * {Types::GetTemplateResponse#status #status} => String
1005
1018
  # * {Types::GetTemplateResponse#tags #tags} => Hash<String,String>
1006
1019
  # * {Types::GetTemplateResponse#template_arn #template_arn} => String
1007
1020
  # * {Types::GetTemplateResponse#template_id #template_id} => String
@@ -1020,6 +1033,7 @@ module Aws::ConnectCases
1020
1033
  # resp.name #=> String
1021
1034
  # resp.required_fields #=> Array
1022
1035
  # resp.required_fields[0].field_id #=> String
1036
+ # resp.status #=> String, one of "Active", "Inactive"
1023
1037
  # resp.tags #=> Hash
1024
1038
  # resp.tags["String"] #=> String
1025
1039
  # resp.template_arn #=> String
@@ -1313,6 +1327,9 @@ module Aws::ConnectCases
1313
1327
  # previous response in the next request to retrieve the next set of
1314
1328
  # results.
1315
1329
  #
1330
+ # @option params [Array<String>] :status
1331
+ # A list of status values to filter on.
1332
+ #
1316
1333
  # @return [Types::ListTemplatesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1317
1334
  #
1318
1335
  # * {Types::ListTemplatesResponse#next_token #next_token} => String
@@ -1326,6 +1343,7 @@ module Aws::ConnectCases
1326
1343
  # domain_id: "DomainId", # required
1327
1344
  # max_results: 1,
1328
1345
  # next_token: "NextToken",
1346
+ # status: ["Active"], # accepts Active, Inactive
1329
1347
  # })
1330
1348
  #
1331
1349
  # @example Response structure
@@ -1333,6 +1351,7 @@ module Aws::ConnectCases
1333
1351
  # resp.next_token #=> String
1334
1352
  # resp.templates #=> Array
1335
1353
  # resp.templates[0].name #=> String
1354
+ # resp.templates[0].status #=> String, one of "Active", "Inactive"
1336
1355
  # resp.templates[0].template_arn #=> String
1337
1356
  # resp.templates[0].template_id #=> String
1338
1357
  #
@@ -1813,9 +1832,10 @@ module Aws::ConnectCases
1813
1832
 
1814
1833
  # Updates the attributes of an existing template. The template
1815
1834
  # attributes that can be modified include `name`, `description`,
1816
- # `layouts`, and `requiredFields`. At least one of these attributes must
1817
- # not be null. If a null value is provided for a given attribute, that
1818
- # attribute is ignored and its current value is preserved.
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.
1819
1839
  #
1820
1840
  # @option params [String] :description
1821
1841
  # A brief description of the template.
@@ -1833,6 +1853,9 @@ module Aws::ConnectCases
1833
1853
  # A list of fields that must contain a value for a case to be
1834
1854
  # successfully created with this template.
1835
1855
  #
1856
+ # @option params [String] :status
1857
+ # The status of the template.
1858
+ #
1836
1859
  # @option params [required, String] :template_id
1837
1860
  # A unique identifier for the template.
1838
1861
  #
@@ -1852,6 +1875,7 @@ module Aws::ConnectCases
1852
1875
  # field_id: "FieldId", # required
1853
1876
  # },
1854
1877
  # ],
1878
+ # status: "Active", # accepts Active, Inactive
1855
1879
  # template_id: "TemplateId", # required
1856
1880
  # })
1857
1881
  #
@@ -1877,7 +1901,7 @@ module Aws::ConnectCases
1877
1901
  params: params,
1878
1902
  config: config)
1879
1903
  context[:gem_name] = 'aws-sdk-connectcases'
1880
- context[:gem_version] = '1.1.0'
1904
+ context[:gem_version] = '1.2.0'
1881
1905
  Seahorse::Client::Request.new(handlers, context)
1882
1906
  end
1883
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|
@@ -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
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-connectcases/customizations'
52
52
  # @!group service
53
53
  module Aws::ConnectCases
54
54
 
55
- GEM_VERSION = '1.1.0'
55
+ GEM_VERSION = '1.2.0'
56
56
 
57
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.1.0
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-10-25 00:00:00.000000000 Z
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