diff --git a/clients/client-connectcases/src/commands/CreateCaseCommand.ts b/clients/client-connectcases/src/commands/CreateCaseCommand.ts index 9ffd7ce64001..f86283638731 100644 --- a/clients/client-connectcases/src/commands/CreateCaseCommand.ts +++ b/clients/client-connectcases/src/commands/CreateCaseCommand.ts @@ -73,6 +73,7 @@ export interface CreateCaseCommandOutput extends CreateCaseResponse, __MetadataB * stringValue: "STRING_VALUE", * doubleValue: Number("double"), * booleanValue: true || false, + * emptyValue: {}, * }, * }, * ], diff --git a/clients/client-connectcases/src/commands/CreateDomainCommand.ts b/clients/client-connectcases/src/commands/CreateDomainCommand.ts index cbf8a1363b96..c823922c0d90 100644 --- a/clients/client-connectcases/src/commands/CreateDomainCommand.ts +++ b/clients/client-connectcases/src/commands/CreateDomainCommand.ts @@ -45,6 +45,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad * CreateIntegrationAssociation API. You need specific IAM * permissions to successfully associate the Cases domain. For more information, see * Onboard to Cases.
+ * * * @example * Use a bare-bones client and the command you need to make an API call. diff --git a/clients/client-connectcases/src/commands/DeleteDomainCommand.ts b/clients/client-connectcases/src/commands/DeleteDomainCommand.ts index 0be85b35eec7..2fb76ed20d7c 100644 --- a/clients/client-connectcases/src/commands/DeleteDomainCommand.ts +++ b/clients/client-connectcases/src/commands/DeleteDomainCommand.ts @@ -36,7 +36,13 @@ export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __Metad /** * @public - *Deletes a domain.
+ *Deletes a Cases domain.
+ * + * + *After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this + * Amazon Connect instance. See DeleteIntegrationAssociation.
+ *An empty value. You cannot set EmptyFieldValue
on a field that is required on a case template.
This structure will never have any data members. It signifies an empty value on a case field.
+ */ +export interface EmptyFieldValue {} + /** * @public *Object to store union of Field values.
@@ -52,6 +59,7 @@ export class ConflictException extends __BaseException { export type FieldValueUnion = | FieldValueUnion.BooleanValueMember | FieldValueUnion.DoubleValueMember + | FieldValueUnion.EmptyValueMember | FieldValueUnion.StringValueMember | FieldValueUnion.$UnknownMember; @@ -66,6 +74,7 @@ export namespace FieldValueUnion { stringValue: string; doubleValue?: never; booleanValue?: never; + emptyValue?: never; $unknown?: never; } @@ -77,6 +86,7 @@ export namespace FieldValueUnion { stringValue?: never; doubleValue: number; booleanValue?: never; + emptyValue?: never; $unknown?: never; } @@ -87,6 +97,18 @@ export namespace FieldValueUnion { stringValue?: never; doubleValue?: never; booleanValue: boolean; + emptyValue?: never; + $unknown?: never; + } + + /** + *An empty value.
+ */ + export interface EmptyValueMember { + stringValue?: never; + doubleValue?: never; + booleanValue?: never; + emptyValue: EmptyFieldValue; $unknown?: never; } @@ -94,6 +116,7 @@ export namespace FieldValueUnion { stringValue?: never; doubleValue?: never; booleanValue?: never; + emptyValue?: never; $unknown: [string, any]; } @@ -101,6 +124,7 @@ export namespace FieldValueUnion { stringValue: (value: string) => T; doubleValue: (value: number) => T; booleanValue: (value: boolean) => T; + emptyValue: (value: EmptyFieldValue) => T; _: (name: string, value: any) => T; } @@ -108,6 +132,7 @@ export namespace FieldValueUnion { if (value.stringValue !== undefined) return visitor.stringValue(value.stringValue); if (value.doubleValue !== undefined) return visitor.doubleValue(value.doubleValue); if (value.booleanValue !== undefined) return visitor.booleanValue(value.booleanValue); + if (value.emptyValue !== undefined) return visitor.emptyValue(value.emptyValue); return visitor._(value.$unknown[0], value.$unknown[1]); }; } @@ -2257,6 +2282,7 @@ export type CaseFilter = | CaseFilter.AndAllMember | CaseFilter.FieldMember | CaseFilter.NotMember + | CaseFilter.OrAllMember | CaseFilter.$UnknownMember; /** @@ -2270,6 +2296,7 @@ export namespace CaseFilter { field: FieldFilter; not?: never; andAll?: never; + orAll?: never; $unknown?: never; } @@ -2280,6 +2307,7 @@ export namespace CaseFilter { field?: never; not: CaseFilter; andAll?: never; + orAll?: never; $unknown?: never; } @@ -2290,6 +2318,18 @@ export namespace CaseFilter { field?: never; not?: never; andAll: CaseFilter[]; + orAll?: never; + $unknown?: never; + } + + /** + *Provides "or all" filtering.
+ */ + export interface OrAllMember { + field?: never; + not?: never; + andAll?: never; + orAll: CaseFilter[]; $unknown?: never; } @@ -2297,6 +2337,7 @@ export namespace CaseFilter { field?: never; not?: never; andAll?: never; + orAll?: never; $unknown: [string, any]; } @@ -2304,6 +2345,7 @@ export namespace CaseFilter { field: (value: FieldFilter) => T; not: (value: CaseFilter) => T; andAll: (value: CaseFilter[]) => T; + orAll: (value: CaseFilter[]) => T; _: (name: string, value: any) => T; } @@ -2311,6 +2353,7 @@ export namespace CaseFilter { if (value.field !== undefined) return visitor.field(value.field); if (value.not !== undefined) return visitor.not(value.not); if (value.andAll !== undefined) return visitor.andAll(value.andAll); + if (value.orAll !== undefined) return visitor.orAll(value.orAll); return visitor._(value.$unknown[0], value.$unknown[1]); }; } diff --git a/clients/client-connectcases/src/protocols/Aws_restJson1.ts b/clients/client-connectcases/src/protocols/Aws_restJson1.ts index d8a66c95235a..484f9befcc39 100644 --- a/clients/client-connectcases/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectcases/src/protocols/Aws_restJson1.ts @@ -83,6 +83,7 @@ import { Contact, ContactContent, ContactFilter, + EmptyFieldValue, EventBridgeConfiguration, EventIncludedData, FieldFilter, @@ -2997,6 +2998,7 @@ const se_CaseFilter = (input: CaseFilter, context: __SerdeContext): any => { andAll: (value) => ({ andAll: se_CaseFilterList(value, context) }), field: (value) => ({ field: se_FieldFilter(value, context) }), not: (value) => ({ not: se_CaseFilter(value, context) }), + orAll: (value) => ({ orAll: se_CaseFilterList(value, context) }), _: (name, value) => ({ name: value } as any), }); }; @@ -3022,6 +3024,8 @@ const se_CaseFilterList = (input: CaseFilter[], context: __SerdeContext): any => // se_ContactFilter omitted. +// se_EmptyFieldValue omitted. + // se_EventBridgeConfiguration omitted. // se_EventIncludedData omitted. @@ -3083,6 +3087,7 @@ const se_FieldValueUnion = (input: FieldValueUnion, context: __SerdeContext): an return FieldValueUnion.visit(input, { booleanValue: (value) => ({ booleanValue: value }), doubleValue: (value) => ({ doubleValue: __serializeFloat(value) }), + emptyValue: (value) => ({ emptyValue: _json(value) }), stringValue: (value) => ({ stringValue: value }), _: (name, value) => ({ name: value } as any), }); @@ -3167,6 +3172,8 @@ const de_ContactContent = (output: any, context: __SerdeContext): ContactContent // de_DomainSummaryList omitted. +// de_EmptyFieldValue omitted. + // de_EventBridgeConfiguration omitted. // de_EventIncludedData omitted. @@ -3227,6 +3234,11 @@ const de_FieldValueUnion = (output: any, context: __SerdeContext): FieldValueUni if (__limitedParseDouble(output.doubleValue) !== undefined) { return { doubleValue: __limitedParseDouble(output.doubleValue) as any }; } + if (output.emptyValue != null) { + return { + emptyValue: _json(output.emptyValue), + }; + } if (__expectString(output.stringValue) !== undefined) { return { stringValue: __expectString(output.stringValue) as any }; } diff --git a/codegen/sdk-codegen/aws-models/connectcases.json b/codegen/sdk-codegen/aws-models/connectcases.json index 2747e74cee4c..3c56648aecfa 100644 --- a/codegen/sdk-codegen/aws-models/connectcases.json +++ b/codegen/sdk-codegen/aws-models/connectcases.json @@ -1028,6 +1028,15 @@ "max": 10 } } + }, + "orAll": { + "target": "com.amazonaws.connectcases#CaseFilterList", + "traits": { + "smithy.api#documentation": "Provides \"or all\" filtering.
", + "smithy.api#length": { + "max": 10 + } + } } }, "traits": { @@ -1364,7 +1373,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a domain, which is a container for all case data, such as cases, fields, templates\n and layouts. Each Amazon Connect instance can be associated with only one Cases\n domain.
\nThis will not associate your connect instance to Cases domain. Instead, use the\n Amazon Connect\n CreateIntegrationAssociation API. You need specific IAM\n permissions to successfully associate the Cases domain. For more information, see\n Onboard to Cases.
\nCreates a domain, which is a container for all case data, such as cases, fields, templates\n and layouts. Each Amazon Connect instance can be associated with only one Cases\n domain.
\nThis will not associate your connect instance to Cases domain. Instead, use the\n Amazon Connect\n CreateIntegrationAssociation API. You need specific IAM\n permissions to successfully associate the Cases domain. For more information, see\n Onboard to Cases.
\n \nDeletes a domain.
", + "smithy.api#documentation": "Deletes a Cases domain.
\n \n \nAfter deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this\n Amazon Connect instance. See DeleteIntegrationAssociation.
\nAn empty value. You cannot set EmptyFieldValue
on a field that is required on a case template.
This structure will never have any data members. It signifies an empty value on a case field.
" + } + }, "com.amazonaws.connectcases#EventBridgeConfiguration": { "type": "structure", "members": { @@ -2448,6 +2464,12 @@ "traits": { "smithy.api#documentation": "Can be either null, or have a Boolean value type. Only one value can be provided.
" } + }, + "emptyValue": { + "target": "com.amazonaws.connectcases#EmptyFieldValue", + "traits": { + "smithy.api#documentation": "An empty value.
" + } } }, "traits": {