diff --git a/.changes/next-release/feature-AmazonConnectCases-cdcfaf8.json b/.changes/next-release/feature-AmazonConnectCases-cdcfaf8.json new file mode 100644 index 000000000000..dba19f918fd6 --- /dev/null +++ b/.changes/next-release/feature-AmazonConnectCases-cdcfaf8.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "Amazon Connect Cases", + "contributor": "", + "description": "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" +} diff --git a/services/connectcases/src/main/resources/codegen-resources/endpoint-tests.json b/services/connectcases/src/main/resources/codegen-resources/endpoint-tests.json index f727289a41a1..9e508f597f55 100644 --- a/services/connectcases/src/main/resources/codegen-resources/endpoint-tests.json +++ b/services/connectcases/src/main/resources/codegen-resources/endpoint-tests.json @@ -9,8 +9,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-gov-east-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "us-gov-east-1" } }, { @@ -22,8 +22,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-gov-east-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "us-gov-east-1" } }, { @@ -35,8 +35,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-gov-east-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "us-gov-east-1" } }, { @@ -48,8 +48,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-gov-east-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "us-gov-east-1" } }, { @@ -61,8 +61,8 @@ }, "params": { "UseDualStack": true, - "Region": "cn-north-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "cn-north-1" } }, { @@ -74,8 +74,8 @@ }, "params": { "UseDualStack": false, - "Region": "cn-north-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "cn-north-1" } }, { @@ -87,8 +87,8 @@ }, "params": { "UseDualStack": true, - "Region": "cn-north-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "cn-north-1" } }, { @@ -100,8 +100,8 @@ }, "params": { "UseDualStack": false, - "Region": "cn-north-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "cn-north-1" } }, { @@ -111,8 +111,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-iso-east-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "us-iso-east-1" } }, { @@ -124,8 +124,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-iso-east-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "us-iso-east-1" } }, { @@ -135,8 +135,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-iso-east-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "us-iso-east-1" } }, { @@ -148,8 +148,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-iso-east-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "us-iso-east-1" } }, { @@ -161,8 +161,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-east-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "us-east-1" } }, { @@ -174,8 +174,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-east-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "us-east-1" } }, { @@ -187,8 +187,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-east-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "us-east-1" } }, { @@ -200,8 +200,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-east-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "us-east-1" } }, { @@ -211,8 +211,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-isob-east-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "us-isob-east-1" } }, { @@ -224,8 +224,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-isob-east-1", - "UseFIPS": true + "UseFIPS": true, + "Region": "us-isob-east-1" } }, { @@ -235,8 +235,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-isob-east-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "us-isob-east-1" } }, { @@ -248,8 +248,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-isob-east-1", - "UseFIPS": false + "UseFIPS": false, + "Region": "us-isob-east-1" } }, { @@ -261,8 +261,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -273,8 +273,8 @@ }, "params": { "UseDualStack": false, - "Region": "us-east-1", "UseFIPS": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -285,8 +285,8 @@ }, "params": { "UseDualStack": true, - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } } diff --git a/services/connectcases/src/main/resources/codegen-resources/service-2.json b/services/connectcases/src/main/resources/codegen-resources/service-2.json index 5e076e581cdc..7d90a7c2381f 100644 --- a/services/connectcases/src/main/resources/codegen-resources/service-2.json +++ b/services/connectcases/src/main/resources/codegen-resources/service-2.json @@ -170,7 +170,7 @@ {"shape":"ConflictException"}, {"shape":"ServiceQuotaExceededException"} ], - "documentation":"

Creates a template in the Cases domain. This template is used to define the case object model (that is, define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template.

", + "documentation":"

Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases.

", "idempotent":true }, "GetCase":{ @@ -532,7 +532,8 @@ {"shape":"ValidationException"}, {"shape":"ThrottlingException"}, {"shape":"AccessDeniedException"}, - {"shape":"ConflictException"} + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"} ], "documentation":"

Updates the attributes of an existing layout.

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

A ValidationException is returned when you add non-existent fieldIds to a layout.

Title and Status fields cannot be part of layouts because they are not configurable.

", "idempotent":true @@ -554,7 +555,7 @@ {"shape":"AccessDeniedException"}, {"shape":"ConflictException"} ], - "documentation":"

Updates the attributes of an existing template. The template attributes that can be modified include name, description, layouts, and requiredFields. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved.

", + "documentation":"

Updates the attributes of an existing template. The template attributes that can be modified include name, description, layoutConfiguration, requiredFields, and status. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved.

", "idempotent":true } }, @@ -891,7 +892,7 @@ "members":{ "clientToken":{ "shape":"CreateCaseRequestClientTokenString", - "documentation":"

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "documentation":"

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

", "idempotencyToken":true }, "domainId":{ @@ -1132,6 +1133,10 @@ "requiredFields":{ "shape":"RequiredFieldList", "documentation":"

A list of fields that must contain a value for a case to be successfully created with this template.

" + }, + "status":{ + "shape":"TemplateStatus", + "documentation":"

The status of the template.

" } } }, @@ -1321,7 +1326,7 @@ "FieldGroupFieldsList":{ "type":"list", "member":{"shape":"FieldItem"}, - "max":30, + "max":100, "min":0 }, "FieldGroupNameString":{ @@ -1771,6 +1776,7 @@ "type":"structure", "required":[ "name", + "status", "templateArn", "templateId" ], @@ -1791,6 +1797,10 @@ "shape":"RequiredFieldList", "documentation":"

A list of fields that must contain a value for a case to be successfully created with this template.

" }, + "status":{ + "shape":"TemplateStatus", + "documentation":"

The status of the template.

" + }, "tags":{ "shape":"Tags", "documentation":"

A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.

" @@ -2165,6 +2175,12 @@ "documentation":"

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

", "location":"querystring", "locationName":"nextToken" + }, + "status":{ + "shape":"TemplateStatusFilters", + "documentation":"

A list of status values to filter on.

", + "location":"querystring", + "locationName":"status" } } }, @@ -2662,10 +2678,26 @@ "min":1, "pattern":"^.*[\\S]$" }, + "TemplateStatus":{ + "type":"string", + "documentation":"

Status of a template

", + "enum":[ + "Active", + "Inactive" + ] + }, + "TemplateStatusFilters":{ + "type":"list", + "member":{"shape":"TemplateStatus"}, + "documentation":"

List of filters used on the ListTemplates result set

", + "max":2, + "min":1 + }, "TemplateSummary":{ "type":"structure", "required":[ "name", + "status", "templateArn", "templateId" ], @@ -2674,6 +2706,10 @@ "shape":"TemplateName", "documentation":"

The template name.

" }, + "status":{ + "shape":"TemplateStatus", + "documentation":"

The status of the template.

" + }, "templateArn":{ "shape":"TemplateArn", "documentation":"

The Amazon Resource Name (ARN) of the template.

" @@ -2854,6 +2890,10 @@ "shape":"RequiredFieldList", "documentation":"

A list of fields that must contain a value for a case to be successfully created with this template.

" }, + "status":{ + "shape":"TemplateStatus", + "documentation":"

The status of the template.

" + }, "templateId":{ "shape":"TemplateId", "documentation":"

A unique identifier for the template.

",