From d5a952885e14fd1b7a5fbf7e46412131934bce9b Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Mon, 29 Apr 2024 14:33:25 -0400 Subject: [PATCH] Release v1.51.31 (2024-04-29) (#5245) Release v1.51.31 (2024-04-29) === ### Service Client Updates * `service/amplify`: Updates service API and documentation * `service/connectcases`: Updates service API and documentation * `service/inspector2`: Updates service API and documentation * `service/timestream-query`: Updates service API and documentation * `service/transcribe`: Updates service API and documentation * `service/trustedadvisor`: Updates service API and documentation --- CHANGELOG.md | 11 + aws/endpoints/defaults.go | 2 +- aws/version.go | 2 +- models/apis/amplify/2017-07-25/api-2.json | 8 +- models/apis/amplify/2017-07-25/docs-2.json | 7 +- .../apis/connectcases/2022-10-03/api-2.json | 144 + .../apis/connectcases/2022-10-03/docs-2.json | 62 +- models/apis/inspector2/2020-06-08/api-2.json | 47 +- models/apis/inspector2/2020-06-08/docs-2.json | 42 +- .../timestream-query/2018-11-01/api-2.json | 72 +- .../timestream-query/2018-11-01/docs-2.json | 41 +- models/apis/transcribe/2017-10-26/api-2.json | 34 +- models/apis/transcribe/2017-10-26/docs-2.json | 32 + .../apis/trustedadvisor/2022-09-15/api-2.json | 84 + .../trustedadvisor/2022-09-15/docs-2.json | 58 +- models/endpoints/endpoints.json | 2 +- service/connectcases/api.go | 4185 ++++++++++------- .../connectcasesiface/interface.go | 12 + service/inspector2/api.go | 235 +- service/timestreamquery/api.go | 433 +- service/timestreamquery/errors.go | 2 +- .../timestreamqueryiface/interface.go | 8 + service/transcribeservice/api.go | 147 + service/trustedadvisor/api.go | 355 +- .../trustedadvisoriface/interface.go | 8 +- 25 files changed, 4252 insertions(+), 1781 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bc3830b70..7ed64f3789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Release v1.51.31 (2024-04-29) +=== + +### Service Client Updates +* `service/amplify`: Updates service API and documentation +* `service/connectcases`: Updates service API and documentation +* `service/inspector2`: Updates service API and documentation +* `service/timestream-query`: Updates service API and documentation +* `service/transcribe`: Updates service API and documentation +* `service/trustedadvisor`: Updates service API and documentation + Release v1.51.30 (2024-04-26) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 17371d7b78..1dd4cfde01 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -36847,7 +36847,7 @@ var awscnPartition = partition{ endpointKey{ Region: "cn-northwest-1", }: endpoint{ - Hostname: "subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn", + Hostname: "mediaconvert.cn-northwest-1.amazonaws.com.cn", CredentialScope: credentialScope{ Region: "cn-northwest-1", }, diff --git a/aws/version.go b/aws/version.go index f46fc4b23d..d80adb2aa1 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.51.30" +const SDKVersion = "1.51.31" diff --git a/models/apis/amplify/2017-07-25/api-2.json b/models/apis/amplify/2017-07-25/api-2.json index 54ffe76f35..9e18669191 100644 --- a/models/apis/amplify/2017-07-25/api-2.json +++ b/models/apis/amplify/2017-07-25/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"amplify", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceAbbreviation":"Amplify", "serviceFullName":"AWS Amplify", "serviceId":"Amplify", @@ -1706,7 +1707,7 @@ "locationName":"nextToken" }, "maxResults":{ - "shape":"MaxResults", + "shape":"MaxResultsForListApps", "location":"querystring", "locationName":"maxResults" } @@ -1948,6 +1949,11 @@ "pattern":"(?s).*" }, "MaxResults":{ + "type":"integer", + "max":50, + "min":0 + }, + "MaxResultsForListApps":{ "type":"integer", "max":100, "min":0 diff --git a/models/apis/amplify/2017-07-25/docs-2.json b/models/apis/amplify/2017-07-25/docs-2.json index 958f03b04b..f11f6191ad 100644 --- a/models/apis/amplify/2017-07-25/docs-2.json +++ b/models/apis/amplify/2017-07-25/docs-2.json @@ -1054,7 +1054,6 @@ "MaxResults": { "base": null, "refs": { - "ListAppsRequest$maxResults": "

The maximum number of records to list in a single response.

", "ListArtifactsRequest$maxResults": "

The maximum number of records to list in a single response.

", "ListBackendEnvironmentsRequest$maxResults": "

The maximum number of records to list in a single response.

", "ListBranchesRequest$maxResults": "

The maximum number of records to list in a single response.

", @@ -1063,6 +1062,12 @@ "ListWebhooksRequest$maxResults": "

The maximum number of records to list in a single response.

" } }, + "MaxResultsForListApps": { + "base": null, + "refs": { + "ListAppsRequest$maxResults": "

The maximum number of records to list in a single response.

" + } + }, "Name": { "base": null, "refs": { diff --git a/models/apis/connectcases/2022-10-03/api-2.json b/models/apis/connectcases/2022-10-03/api-2.json index 138ec83871..44bbd03913 100644 --- a/models/apis/connectcases/2022-10-03/api-2.json +++ b/models/apis/connectcases/2022-10-03/api-2.json @@ -184,6 +184,64 @@ ], "idempotent":true }, + "DeleteField":{ + "name":"DeleteField", + "http":{ + "method":"DELETE", + "requestUri":"/domains/{domainId}/fields/{fieldId}", + "responseCode":200 + }, + "input":{"shape":"DeleteFieldRequest"}, + "output":{"shape":"DeleteFieldResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"} + ], + "idempotent":true + }, + "DeleteLayout":{ + "name":"DeleteLayout", + "http":{ + "method":"DELETE", + "requestUri":"/domains/{domainId}/layouts/{layoutId}", + "responseCode":200 + }, + "input":{"shape":"DeleteLayoutRequest"}, + "output":{"shape":"DeleteLayoutResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "DeleteTemplate":{ + "name":"DeleteTemplate", + "http":{ + "method":"DELETE", + "requestUri":"/domains/{domainId}/templates/{templateId}", + "responseCode":200 + }, + "input":{"shape":"DeleteTemplateRequest"}, + "output":{"shape":"DeleteTemplateResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, "GetCase":{ "name":"GetCase", "http":{ @@ -1107,6 +1165,79 @@ "members":{ } }, + "DeleteFieldRequest":{ + "type":"structure", + "required":[ + "domainId", + "fieldId" + ], + "members":{ + "domainId":{ + "shape":"DomainId", + "location":"uri", + "locationName":"domainId" + }, + "fieldId":{ + "shape":"FieldId", + "location":"uri", + "locationName":"fieldId" + } + } + }, + "DeleteFieldResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteLayoutRequest":{ + "type":"structure", + "required":[ + "domainId", + "layoutId" + ], + "members":{ + "domainId":{ + "shape":"DomainId", + "location":"uri", + "locationName":"domainId" + }, + "layoutId":{ + "shape":"LayoutId", + "location":"uri", + "locationName":"layoutId" + } + } + }, + "DeleteLayoutResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteTemplateRequest":{ + "type":"structure", + "required":[ + "domainId", + "templateId" + ], + "members":{ + "domainId":{ + "shape":"DomainId", + "location":"uri", + "locationName":"domainId" + }, + "templateId":{ + "shape":"TemplateId", + "location":"uri", + "locationName":"templateId" + } + } + }, + "DeleteTemplateResponse":{ + "type":"structure", + "members":{ + } + }, + "Deleted":{"type":"boolean"}, "DomainArn":{ "type":"string", "max":500, @@ -1500,9 +1631,12 @@ "type" ], "members":{ + "createdTime":{"shape":"CreatedTime"}, + "deleted":{"shape":"Deleted"}, "description":{"shape":"FieldDescription"}, "fieldArn":{"shape":"FieldArn"}, "fieldId":{"shape":"FieldId"}, + "lastModifiedTime":{"shape":"LastModifiedTime"}, "name":{"shape":"FieldName"}, "namespace":{"shape":"FieldNamespace"}, "tags":{"shape":"Tags"}, @@ -1538,6 +1672,9 @@ ], "members":{ "content":{"shape":"LayoutContent"}, + "createdTime":{"shape":"CreatedTime"}, + "deleted":{"shape":"Deleted"}, + "lastModifiedTime":{"shape":"LastModifiedTime"}, "layoutArn":{"shape":"LayoutArn"}, "layoutId":{"shape":"LayoutId"}, "name":{"shape":"LayoutName"}, @@ -1572,7 +1709,10 @@ "templateId" ], "members":{ + "createdTime":{"shape":"CreatedTime"}, + "deleted":{"shape":"Deleted"}, "description":{"shape":"TemplateDescription"}, + "lastModifiedTime":{"shape":"LastModifiedTime"}, "layoutConfiguration":{"shape":"LayoutConfiguration"}, "name":{"shape":"TemplateName"}, "requiredFields":{"shape":"RequiredFieldList"}, @@ -1607,6 +1747,10 @@ "fault":true, "retryable":{"throttling":false} }, + "LastModifiedTime":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, "LayoutArn":{ "type":"string", "max":500, diff --git a/models/apis/connectcases/2022-10-03/docs-2.json b/models/apis/connectcases/2022-10-03/docs-2.json index 161d1502aa..694e368e39 100644 --- a/models/apis/connectcases/2022-10-03/docs-2.json +++ b/models/apis/connectcases/2022-10-03/docs-2.json @@ -11,6 +11,9 @@ "CreateRelatedItem": "

Creates a related item (comments, tasks, and contacts) and associates it with a case.

 </note> 
", "CreateTemplate": "

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.

", "DeleteDomain": "

Deletes a Cases domain.

 <note> <p>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 <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteIntegrationAssociation.html">DeleteIntegrationAssociation</a>.</p> </note> 
", + "DeleteField": "

Deletes a field from a cases template. You can delete up to 100 fields per domain.

After a field is deleted:

", + "DeleteLayout": "

Deletes a layout from a cases template. You can delete up to 100 layouts per domain.

 <p>After a layout is deleted:</p> <ul> <li> <p>You can still retrieve the layout by calling <code>GetLayout</code>.</p> </li> <li> <p>You cannot update a deleted layout by calling <code>UpdateLayout</code>; it throws a <code>ValidationException</code>.</p> </li> <li> <p>Deleted layouts are not included in the <code>ListLayouts</code> response.</p> </li> </ul> 
", + "DeleteTemplate": "

Deletes a cases template. You can delete up to 100 templates per domain.

 <p>After a cases template is deleted:</p> <ul> <li> <p>You can still retrieve the template by calling <code>GetTemplate</code>.</p> </li> <li> <p>You cannot update the template. </p> </li> <li> <p>You cannot create a case by using the deleted template.</p> </li> <li> <p>Deleted templates are not included in the <code>ListTemplates</code> response.</p> </li> </ul> 
", "GetCase": "

Returns information about a specific case if it exists.

", "GetCaseAuditEvents": "

Returns the audit history about a specific case if it exists.

", "GetCaseEventConfiguration": "

Returns the case event publishing configuration.

", @@ -85,7 +88,7 @@ } }, "AuditEventFieldValueUnion": { - "base": "

Object to store union of Field values.

This data type is a UNION, so only one of the following members can be specified when used or returned.

", + "base": "

Object to store union of Field values.

", "refs": { "AuditEventField$newValue": "

Union of potential field value types.

", "AuditEventField$oldValue": "

Union of potential field value types.

" @@ -390,7 +393,10 @@ "CreatedTime": { "base": null, "refs": { - "GetDomainResponse$createdTime": "

The timestamp when the Cases domain was created.

" + "GetDomainResponse$createdTime": "

The timestamp when the Cases domain was created.

", + "GetFieldResponse$createdTime": "

The timestamp for when the resource was created.

", + "GetLayoutResponse$createdTime": "

The timestamp for when the resource was created.

", + "GetTemplateResponse$createdTime": "

The timestamp for when the resource was created.

" } }, "DeleteDomainRequest": { @@ -403,6 +409,44 @@ "refs": { } }, + "DeleteFieldRequest": { + "base": null, + "refs": { + } + }, + "DeleteFieldResponse": { + "base": null, + "refs": { + } + }, + "DeleteLayoutRequest": { + "base": null, + "refs": { + } + }, + "DeleteLayoutResponse": { + "base": null, + "refs": { + } + }, + "DeleteTemplateRequest": { + "base": null, + "refs": { + } + }, + "DeleteTemplateResponse": { + "base": null, + "refs": { + } + }, + "Deleted": { + "base": null, + "refs": { + "GetFieldResponse$deleted": "

Indicates whether the resource has been deleted.

", + "GetLayoutResponse$deleted": "

Indicates whether the resource has been deleted.

", + "GetTemplateResponse$deleted": "

Indicates whether the resource has been deleted.

" + } + }, "DomainArn": { "base": null, "refs": { @@ -423,6 +467,9 @@ "CreateRelatedItemRequest$domainId": "

The unique identifier of the Cases domain.

", "CreateTemplateRequest$domainId": "

The unique identifier of the Cases domain.

", "DeleteDomainRequest$domainId": "

The unique identifier of the Cases domain.

", + "DeleteFieldRequest$domainId": "

The unique identifier of the Cases domain.

", + "DeleteLayoutRequest$domainId": "

The unique identifier of the Cases domain.

", + "DeleteTemplateRequest$domainId": "

The unique identifier of the Cases domain.

", "DomainSummary$domainId": "

The unique identifier of the domain.

", "GetCaseAuditEventsRequest$domainId": "

The unique identifier of the Cases domain.

", "GetCaseEventConfigurationRequest$domainId": "

The unique identifier of the Cases domain.

", @@ -550,6 +597,7 @@ "refs": { "BatchPutFieldOptionsRequest$fieldId": "

The unique identifier of a field.

", "CreateFieldResponse$fieldId": "

The unique identifier of a field.

", + "DeleteFieldRequest$fieldId": "

The unique identifier of a field.

", "FieldError$id": "

The field identifier that caused the error.

", "FieldIdentifier$id": "

Unique identifier of a field.

", "FieldItem$id": "

Unique identifier of a field.

", @@ -773,6 +821,14 @@ "refs": { } }, + "LastModifiedTime": { + "base": null, + "refs": { + "GetFieldResponse$lastModifiedTime": "

The timestamp for when the resource was created or last modified.

", + "GetLayoutResponse$lastModifiedTime": "

The timestamp for when the resource was created or last modified.

", + "GetTemplateResponse$lastModifiedTime": "

The timestamp for when the resource was created or last modified.

" + } + }, "LayoutArn": { "base": null, "refs": { @@ -801,6 +857,7 @@ "base": null, "refs": { "CreateLayoutResponse$layoutId": "

The unique identifier of the layout.

", + "DeleteLayoutRequest$layoutId": "

The unique identifier of the layout.

", "GetLayoutRequest$layoutId": "

The unique identifier of the layout.

", "GetLayoutResponse$layoutId": "

The unique identifier of the layout.

", "LayoutConfiguration$defaultLayout": "

Unique identifier of a layout.

", @@ -1234,6 +1291,7 @@ "CaseSummary$templateId": "

A unique identifier of a template.

", "CreateCaseRequest$templateId": "

A unique identifier of a template.

", "CreateTemplateResponse$templateId": "

A unique identifier of a template.

", + "DeleteTemplateRequest$templateId": "

A unique identifier of a template.

", "GetCaseResponse$templateId": "

A unique identifier of a template.

", "GetTemplateRequest$templateId": "

A unique identifier of a template.

", "GetTemplateResponse$templateId": "

A unique identifier of a template.

", diff --git a/models/apis/inspector2/2020-06-08/api-2.json b/models/apis/inspector2/2020-06-08/api-2.json index dd31548c61..02b7d4ff79 100644 --- a/models/apis/inspector2/2020-06-08/api-2.json +++ b/models/apis/inspector2/2020-06-08/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"inspector2", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceAbbreviation":"Inspector2", "serviceFullName":"Inspector2", "serviceId":"Inspector2", @@ -2180,6 +2181,7 @@ "lastScannedAt":{"shape":"CoverageDateFilterList"}, "resourceId":{"shape":"CoverageStringFilterList"}, "resourceType":{"shape":"CoverageStringFilterList"}, + "scanMode":{"shape":"CoverageStringFilterList"}, "scanStatusCode":{"shape":"CoverageStringFilterList"}, "scanStatusReason":{"shape":"CoverageStringFilterList"}, "scanType":{"shape":"CoverageStringFilterList"} @@ -2259,6 +2261,7 @@ "resourceId":{"shape":"ResourceId"}, "resourceMetadata":{"shape":"ResourceScanMetadata"}, "resourceType":{"shape":"CoverageResourceType"}, + "scanMode":{"shape":"ScanMode"}, "scanStatus":{"shape":"ScanStatus"}, "scanType":{"shape":"ScanType"} } @@ -2636,6 +2639,19 @@ "type":"double", "box":true }, + "Ec2Configuration":{ + "type":"structure", + "required":["scanMode"], + "members":{ + "scanMode":{"shape":"Ec2ScanMode"} + } + }, + "Ec2ConfigurationState":{ + "type":"structure", + "members":{ + "scanModeState":{"shape":"Ec2ScanModeState"} + } + }, "Ec2DeepInspectionStatus":{ "type":"string", "enum":[ @@ -2695,6 +2711,27 @@ "MACOS" ] }, + "Ec2ScanMode":{ + "type":"string", + "enum":[ + "EC2_SSM_AGENT_BASED", + "EC2_HYBRID" + ] + }, + "Ec2ScanModeState":{ + "type":"structure", + "members":{ + "scanMode":{"shape":"Ec2ScanMode"}, + "scanModeStatus":{"shape":"Ec2ScanModeStatus"} + } + }, + "Ec2ScanModeStatus":{ + "type":"string", + "enum":[ + "SUCCESS", + "PENDING" + ] + }, "EcrConfiguration":{ "type":"structure", "required":["rescanDuration"], @@ -3348,6 +3385,7 @@ "GetConfigurationResponse":{ "type":"structure", "members":{ + "ec2Configuration":{"shape":"Ec2ConfigurationState"}, "ecrConfiguration":{"shape":"EcrConfigurationState"} } }, @@ -4698,6 +4736,13 @@ "SPDX_2_3" ] }, + "ScanMode":{ + "type":"string", + "enum":[ + "EC2_SSM_AGENT_BASED", + "EC2_AGENTLESS" + ] + }, "ScanStatus":{ "type":"structure", "required":[ @@ -5365,8 +5410,8 @@ }, "UpdateConfigurationRequest":{ "type":"structure", - "required":["ecrConfiguration"], "members":{ + "ec2Configuration":{"shape":"Ec2Configuration"}, "ecrConfiguration":{"shape":"EcrConfiguration"} } }, diff --git a/models/apis/inspector2/2020-06-08/docs-2.json b/models/apis/inspector2/2020-06-08/docs-2.json index c0326181bd..71c4040901 100644 --- a/models/apis/inspector2/2020-06-08/docs-2.json +++ b/models/apis/inspector2/2020-06-08/docs-2.json @@ -1093,6 +1093,7 @@ "CoverageFilterCriteria$lambdaFunctionRuntime": "

Returns coverage statistics for Amazon Web Services Lambda functions filtered by runtime.

", "CoverageFilterCriteria$resourceId": "

An array of Amazon Web Services resource IDs to return coverage statistics for.

", "CoverageFilterCriteria$resourceType": "

An array of Amazon Web Services resource types to return coverage statistics for. The values can be AWS_EC2_INSTANCE, AWS_LAMBDA_FUNCTION, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY or AWS_ACCOUNT.

", + "CoverageFilterCriteria$scanMode": "

The filter to search for Amazon EC2 instance coverage by scan mode. Valid values are EC2_SSM_AGENT_BASED and EC2_HYBRID.

", "CoverageFilterCriteria$scanStatusCode": "

The scan status code to filter on. Valid values are: ValidationException, InternalServerException, ResourceNotFoundException, BadRequestException, and ThrottlingException.

", "CoverageFilterCriteria$scanStatusReason": "

The scan status reason to filter on.

", "CoverageFilterCriteria$scanType": "

An array of Amazon Inspector scan types to return coverage statistics for.

" @@ -1289,7 +1290,7 @@ "Filter$createdAt": "

The date and time this filter was created at.

", "Filter$updatedAt": "

The date and time the filter was last updated at.

", "Finding$firstObservedAt": "

The date and time that the finding was first observed.

", - "Finding$lastObservedAt": "

The date and time that the finding was last observed.

", + "Finding$lastObservedAt": "

The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding is updated.

", "Finding$updatedAt": "

The date and time the finding was last updated at.

", "LambdaFunctionAggregationResponse$lastModifiedAt": "

The date that the Amazon Web Services Lambda function included in the aggregation results was last changed.

", "Member$updatedAt": "

A timestamp showing when the status of this member was last updated.

", @@ -1432,6 +1433,18 @@ "NumberFilter$upperInclusive": "

The highest number to be included in the filter.

" } }, + "Ec2Configuration": { + "base": "

Enables agent-based scanning, which scans instances that are not managed by SSM.

", + "refs": { + "UpdateConfigurationRequest$ec2Configuration": "

Specifies how the Amazon EC2 automated scan will be updated for your environment.

" + } + }, + "Ec2ConfigurationState": { + "base": "

Details about the state of the EC2 scan configuration for your environment.

", + "refs": { + "GetConfigurationResponse$ec2Configuration": "

Specifies how the Amazon EC2 automated scan mode is currently configured for your environment.

" + } + }, "Ec2DeepInspectionStatus": { "base": null, "refs": { @@ -1470,6 +1483,25 @@ "Ec2Metadata$platform": "

The platform of the instance.

" } }, + "Ec2ScanMode": { + "base": null, + "refs": { + "Ec2Configuration$scanMode": "

The scan method that is applied to the instance.

", + "Ec2ScanModeState$scanMode": "

The scan method that is applied to the instance.

" + } + }, + "Ec2ScanModeState": { + "base": "

The state of your Amazon EC2 scan mode configuration.

", + "refs": { + "Ec2ConfigurationState$scanModeState": "

An object that contains details about the state of the Amazon EC2 scan mode.

" + } + }, + "Ec2ScanModeStatus": { + "base": null, + "refs": { + "Ec2ScanModeState$scanModeStatus": "

The status of the Amazon EC2 scan mode setting.

" + } + }, "EcrConfiguration": { "base": "

Details about the ECR automated re-scan duration setting for your environment.

", "refs": { @@ -3138,6 +3170,12 @@ "GetSbomExportResponse$format": "

The format of the software bill of materials (SBOM) report.

" } }, + "ScanMode": { + "base": null, + "refs": { + "CoveredResource$scanMode": "

The scan method that is applied to the instance.

" + } + }, "ScanStatus": { "base": "

The status of the scan.

", "refs": { @@ -3408,7 +3446,7 @@ "Ec2InstanceAggregationResponse$operatingSystem": "

The operating system of the Amazon EC2 instance.

", "EcrRepositoryMetadata$name": "

The name of the Amazon ECR repository.

", "FreeTrialInfoError$message": "

The error message returned.

", - "GetCisScanReportResponse$url": "

The URL where the CIS scan report PDF can be downloaded.

", + "GetCisScanReportResponse$url": "

The URL where a PDF of the CIS scan report can be downloaded.

", "InternalServerException$message": null, "LambdaFunctionAggregationResponse$functionName": "

The Amazon Web Services Lambda function names included in the aggregation results.

", "LambdaFunctionAggregationResponse$runtime": "

The runtimes included in the aggregation results.

", diff --git a/models/apis/timestream-query/2018-11-01/api-2.json b/models/apis/timestream-query/2018-11-01/api-2.json index d71920f693..8fe1ec3ede 100644 --- a/models/apis/timestream-query/2018-11-01/api-2.json +++ b/models/apis/timestream-query/2018-11-01/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"query.timestream", "jsonVersion":"1.0", "protocol":"json", + "protocols":["json"], "serviceAbbreviation":"Timestream Query", "serviceFullName":"Amazon Timestream Query", "serviceId":"Timestream Query", @@ -70,6 +71,22 @@ "endpointdiscovery":{"required":true}, "idempotent":true }, + "DescribeAccountSettings":{ + "name":"DescribeAccountSettings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAccountSettingsRequest"}, + "output":{"shape":"DescribeAccountSettingsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true} + }, "DescribeEndpoints":{ "name":"DescribeEndpoints", "http":{ @@ -225,6 +242,24 @@ ], "endpointdiscovery":{"required":true} }, + "UpdateAccountSettings":{ + "name":"UpdateAccountSettings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAccountSettingsRequest"}, + "output":{"shape":"UpdateAccountSettingsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true}, + "idempotent":true + }, "UpdateScheduledQuery":{ "name":"UpdateScheduledQuery", "http":{ @@ -355,6 +390,18 @@ "ScheduledQueryArn":{"shape":"AmazonResourceName"} } }, + "DescribeAccountSettingsRequest":{ + "type":"structure", + "members":{ + } + }, + "DescribeAccountSettingsResponse":{ + "type":"structure", + "members":{ + "MaxQueryTCU":{"shape":"MaxQueryCapacity"}, + "QueryPricingModel":{"shape":"QueryPricingModel"} + } + }, "DescribeEndpointsRequest":{ "type":"structure", "members":{ @@ -451,6 +498,7 @@ "ExecutionTimeInMillis":{"shape":"Long"}, "DataWrites":{"shape":"Long"}, "BytesMetered":{"shape":"Long"}, + "CumulativeBytesScanned":{"shape":"Long"}, "RecordsIngested":{"shape":"Long"}, "QueryResultRows":{"shape":"Long"} } @@ -502,6 +550,7 @@ } }, "Long":{"type":"long"}, + "MaxQueryCapacity":{"type":"integer"}, "MaxQueryResults":{ "type":"integer", "box":true, @@ -638,6 +687,13 @@ "min":1, "pattern":"[a-zA-Z0-9]+" }, + "QueryPricingModel":{ + "type":"string", + "enum":[ + "BYTES_SCANNED", + "COMPUTE_UNITS" + ] + }, "QueryRequest":{ "type":"structure", "required":["QueryString"], @@ -830,7 +886,7 @@ "type":"string", "max":64, "min":1, - "pattern":"[a-zA-Z0-9_.-]+" + "pattern":"[a-zA-Z0-9|!\\-_*'\\(\\)]([a-zA-Z0-9]|[!\\-_*'\\(\\)\\/.])+" }, "ScheduledQueryRunStatus":{ "type":"string", @@ -1035,6 +1091,20 @@ "members":{ } }, + "UpdateAccountSettingsRequest":{ + "type":"structure", + "members":{ + "MaxQueryTCU":{"shape":"MaxQueryCapacity"}, + "QueryPricingModel":{"shape":"QueryPricingModel"} + } + }, + "UpdateAccountSettingsResponse":{ + "type":"structure", + "members":{ + "MaxQueryTCU":{"shape":"MaxQueryCapacity"}, + "QueryPricingModel":{"shape":"QueryPricingModel"} + } + }, "UpdateScheduledQueryRequest":{ "type":"structure", "required":[ diff --git a/models/apis/timestream-query/2018-11-01/docs-2.json b/models/apis/timestream-query/2018-11-01/docs-2.json index 0afc651f34..e39cda3615 100644 --- a/models/apis/timestream-query/2018-11-01/docs-2.json +++ b/models/apis/timestream-query/2018-11-01/docs-2.json @@ -5,6 +5,7 @@ "CancelQuery": "

Cancels a query that has been issued. Cancellation is provided only if the query has not completed running before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent cancellation requests will return a CancellationMessage, indicating that the query has already been canceled. See code sample for details.

", "CreateScheduledQuery": "

Create a scheduled query that will be run on your behalf at the configured schedule. Timestream assumes the execution role provided as part of the ScheduledQueryExecutionRoleArn parameter to run the query. You can use the NotificationConfiguration parameter to configure notification for your scheduled query operations.

", "DeleteScheduledQuery": "

Deletes a given scheduled query. This is an irreversible operation.

", + "DescribeAccountSettings": "

Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload.

You're charged only for the duration of compute units used for your workloads.

", "DescribeEndpoints": "

DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.

Because the Timestream SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:

For detailed information on how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern.

", "DescribeScheduledQuery": "

Provides detailed information about a scheduled query.

", "ExecuteScheduledQuery": "

You can use this API to run a scheduled query manually.

", @@ -14,6 +15,7 @@ "Query": "

Query is a synchronous operation that enables you to run a query against your Amazon Timestream data. Query will time out after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. See the code sample for details.

Your query request will fail in the following cases:

", "TagResource": "

Associate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.

", "UntagResource": "

Removes the association of tags from a Timestream query resource.

", + "UpdateAccountSettings": "

Transitions your account to use TCUs for query pricing and modifies the maximum query compute units that you've configured. If you reduce the value of MaxQueryTCU to a desired configuration, the new value can take up to 24 hours to be effective.

After you've transitioned your account to use TCUs for query pricing, you can't transition to using bytes scanned for query pricing.

", "UpdateScheduledQuery": "

Update a scheduled query.

" }, "shapes": { @@ -113,6 +115,16 @@ "refs": { } }, + "DescribeAccountSettingsRequest": { + "base": null, + "refs": { + } + }, + "DescribeAccountSettingsResponse": { + "base": null, + "refs": { + } + }, "DescribeEndpointsRequest": { "base": null, "refs": { @@ -209,7 +221,7 @@ } }, "InternalServerException": { - "base": "

Timestream was unable to fully process this request because of an internal server error.

", + "base": "

The service was unable to fully process this request because of an internal server error.

", "refs": { } }, @@ -245,12 +257,21 @@ "ExecutionStats$ExecutionTimeInMillis": "

Total time, measured in milliseconds, that was needed for the scheduled query run to complete.

", "ExecutionStats$DataWrites": "

Data writes metered for records ingested in a single scheduled query run.

", "ExecutionStats$BytesMetered": "

Bytes metered for a single scheduled query run.

", + "ExecutionStats$CumulativeBytesScanned": "

Bytes scanned for a single scheduled query run.

", "ExecutionStats$RecordsIngested": "

The number of records ingested for a single scheduled query run.

", "ExecutionStats$QueryResultRows": "

Number of rows present in the output from running a query before ingestion to destination data source.

", "QueryStatus$CumulativeBytesScanned": "

The amount of data scanned by the query in bytes. This is a cumulative sum and represents the total amount of bytes scanned since the query was started.

", "QueryStatus$CumulativeBytesMetered": "

The amount of data scanned by the query in bytes that you will be charged for. This is a cumulative sum and represents the total amount of data that you will be charged for since the query was started. The charge is applied only once and is either applied when the query completes running or when the query is cancelled.

" } }, + "MaxQueryCapacity": { + "base": null, + "refs": { + "DescribeAccountSettingsResponse$MaxQueryTCU": "

The maximum number of Timestream compute units (TCUs) the service will use at any point in time to serve your queries.

", + "UpdateAccountSettingsRequest$MaxQueryTCU": "

The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on.

The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas.

", + "UpdateAccountSettingsResponse$MaxQueryTCU": "

The configured maximum number of compute units the service will use at any point in time to serve your queries.

" + } + }, "MaxQueryResults": { "base": null, "refs": { @@ -376,6 +397,14 @@ "QueryResponse$QueryId": "

A unique ID for the given query.

" } }, + "QueryPricingModel": { + "base": null, + "refs": { + "DescribeAccountSettingsResponse$QueryPricingModel": "

The pricing model for queries in your account.

", + "UpdateAccountSettingsRequest$QueryPricingModel": "

The pricing model for queries in an account.

", + "UpdateAccountSettingsResponse$QueryPricingModel": "

The pricing model for an account.

" + } + }, "QueryRequest": { "base": null, "refs": { @@ -736,6 +765,16 @@ "refs": { } }, + "UpdateAccountSettingsRequest": { + "base": null, + "refs": { + } + }, + "UpdateAccountSettingsResponse": { + "base": null, + "refs": { + } + }, "UpdateScheduledQueryRequest": { "base": null, "refs": { diff --git a/models/apis/transcribe/2017-10-26/api-2.json b/models/apis/transcribe/2017-10-26/api-2.json index 1aac5ec86e..1ca809051e 100644 --- a/models/apis/transcribe/2017-10-26/api-2.json +++ b/models/apis/transcribe/2017-10-26/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"transcribe", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceFullName":"Amazon Transcribe Service", "serviceId":"Transcribe", "signatureVersion":"v4", @@ -680,11 +681,16 @@ "ja-JP" ] }, + "CallAnalyticsFeature":{ + "type":"string", + "enum":["GENERATIVE_SUMMARIZATION"] + }, "CallAnalyticsJob":{ "type":"structure", "members":{ "CallAnalyticsJobName":{"shape":"CallAnalyticsJobName"}, "CallAnalyticsJobStatus":{"shape":"CallAnalyticsJobStatus"}, + "CallAnalyticsJobDetails":{"shape":"CallAnalyticsJobDetails"}, "LanguageCode":{"shape":"LanguageCode"}, "MediaSampleRateHertz":{"shape":"MediaSampleRateHertz"}, "MediaFormat":{"shape":"MediaFormat"}, @@ -700,6 +706,12 @@ "ChannelDefinitions":{"shape":"ChannelDefinitions"} } }, + "CallAnalyticsJobDetails":{ + "type":"structure", + "members":{ + "Skipped":{"shape":"CallAnalyticsSkippedFeatureList"} + } + }, "CallAnalyticsJobName":{ "type":"string", "max":200, @@ -741,9 +753,29 @@ "CompletionTime":{"shape":"DateTime"}, "LanguageCode":{"shape":"LanguageCode"}, "CallAnalyticsJobStatus":{"shape":"CallAnalyticsJobStatus"}, + "CallAnalyticsJobDetails":{"shape":"CallAnalyticsJobDetails"}, "FailureReason":{"shape":"FailureReason"} } }, + "CallAnalyticsSkippedFeature":{ + "type":"structure", + "members":{ + "Feature":{"shape":"CallAnalyticsFeature"}, + "ReasonCode":{"shape":"CallAnalyticsSkippedReasonCode"}, + "Message":{"shape":"String"} + } + }, + "CallAnalyticsSkippedFeatureList":{ + "type":"list", + "member":{"shape":"CallAnalyticsSkippedFeature"} + }, + "CallAnalyticsSkippedReasonCode":{ + "type":"string", + "enum":[ + "INSUFFICIENT_CONVERSATION_CONTENT", + "FAILED_SAFETY_GUIDELINES" + ] + }, "CategoryName":{ "type":"string", "max":200, @@ -1520,7 +1552,7 @@ }, "MaxSpeakers":{ "type":"integer", - "max":10, + "max":30, "min":2 }, "Media":{ diff --git a/models/apis/transcribe/2017-10-26/docs-2.json b/models/apis/transcribe/2017-10-26/docs-2.json index 95c13abeff..106783579f 100644 --- a/models/apis/transcribe/2017-10-26/docs-2.json +++ b/models/apis/transcribe/2017-10-26/docs-2.json @@ -103,6 +103,12 @@ "LanguageModel$LanguageCode": "

The language code used to create your custom language model. Each custom language model must contain terms in only one language, and the language you select for your custom language model must match the language of your training and tuning data.

For a list of supported languages and their associated language codes, refer to the Supported languages table. Note that US English (en-US) is the only language supported with Amazon Transcribe Medical.

" } }, + "CallAnalyticsFeature": { + "base": null, + "refs": { + "CallAnalyticsSkippedFeature$Feature": "

Indicates the type of analytics feature that was skipped during the analysis of a call analytics job.

" + } + }, "CallAnalyticsJob": { "base": "

Provides detailed information about a Call Analytics job.

To view the job's status, refer to CallAnalyticsJobStatus. If the status is COMPLETED, the job is finished. You can find your completed transcript at the URI specified in TranscriptFileUri. If the status is FAILED, FailureReason provides details on why your transcription job failed.

If you enabled personally identifiable information (PII) redaction, the redacted transcript appears at the location specified in RedactedTranscriptFileUri.

If you chose to redact the audio in your media file, you can find your redacted media file at the location specified in the RedactedMediaFileUri field of your response.

", "refs": { @@ -110,6 +116,13 @@ "StartCallAnalyticsJobResponse$CallAnalyticsJob": "

Provides detailed information about the current Call Analytics job, including job status and, if applicable, failure reason.

" } }, + "CallAnalyticsJobDetails": { + "base": "

Contains details about a call analytics job, including information about skipped analytics features.

", + "refs": { + "CallAnalyticsJob$CallAnalyticsJobDetails": "

Provides detailed information about a call analytics job, including information about skipped analytics features.

", + "CallAnalyticsJobSummary$CallAnalyticsJobDetails": "

Provides detailed information about a call analytics job, including information about skipped analytics features.

" + } + }, "CallAnalyticsJobName": { "base": null, "refs": { @@ -149,6 +162,24 @@ "CallAnalyticsJobSummaries$member": null } }, + "CallAnalyticsSkippedFeature": { + "base": "

Represents a skipped analytics feature during the analysis of a call analytics job.

The Feature field indicates the type of analytics feature that was skipped.

The Message field contains additional information or a message explaining why the analytics feature was skipped.

The ReasonCode field provides a code indicating the reason why the analytics feature was skipped.

", + "refs": { + "CallAnalyticsSkippedFeatureList$member": null + } + }, + "CallAnalyticsSkippedFeatureList": { + "base": null, + "refs": { + "CallAnalyticsJobDetails$Skipped": "

Contains information about any skipped analytics features during the analysis of a call analytics job.

This array lists all the analytics features that were skipped, along with their corresponding reason code and message.

" + } + }, + "CallAnalyticsSkippedReasonCode": { + "base": null, + "refs": { + "CallAnalyticsSkippedFeature$ReasonCode": "

Provides a code indicating the reason why a specific analytics feature was skipped during the analysis of a call analytics job.

" + } + }, "CategoryName": { "base": null, "refs": { @@ -1158,6 +1189,7 @@ "String": { "base": null, "refs": { + "CallAnalyticsSkippedFeature$Message": "

Contains additional information or a message explaining why a specific analytics feature was skipped during the analysis of a call analytics job.

", "ConflictException$Message": null, "InternalFailureException$Message": null, "LimitExceededException$Message": null, diff --git a/models/apis/trustedadvisor/2022-09-15/api-2.json b/models/apis/trustedadvisor/2022-09-15/api-2.json index ba2c02a9bd..4c9955fb95 100644 --- a/models/apis/trustedadvisor/2022-09-15/api-2.json +++ b/models/apis/trustedadvisor/2022-09-15/api-2.json @@ -12,6 +12,24 @@ "uid":"trustedadvisor-2022-09-15" }, "operations":{ + "BatchUpdateRecommendationResourceExclusion":{ + "name":"BatchUpdateRecommendationResourceExclusion", + "http":{ + "method":"PUT", + "requestUri":"/v1/batch-update-recommendation-resource-exclusion", + "responseCode":200 + }, + "input":{"shape":"BatchUpdateRecommendationResourceExclusionRequest"}, + "output":{"shape":"BatchUpdateRecommendationResourceExclusionResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, "GetOrganizationRecommendation":{ "name":"GetOrganizationRecommendation", "http":{ @@ -230,6 +248,24 @@ "type":"list", "member":{"shape":"AccountRecommendationLifecycleSummary"} }, + "BatchUpdateRecommendationResourceExclusionRequest":{ + "type":"structure", + "required":["recommendationResourceExclusions"], + "members":{ + "recommendationResourceExclusions":{"shape":"RecommendationResourceExclusionList"} + } + }, + "BatchUpdateRecommendationResourceExclusionResponse":{ + "type":"structure", + "required":["batchUpdateRecommendationResourceExclusionErrors"], + "members":{ + "batchUpdateRecommendationResourceExclusionErrors":{"shape":"UpdateRecommendationResourceExclusionErrorList"} + } + }, + "Boolean":{ + "type":"boolean", + "box":true + }, "CheckArn":{ "type":"string", "max":2048, @@ -285,6 +321,13 @@ "type":"double", "box":true }, + "ExclusionStatus":{ + "type":"string", + "enum":[ + "excluded", + "included" + ] + }, "GetOrganizationRecommendationRequest":{ "type":"structure", "required":["organizationRecommendationIdentifier"], @@ -448,6 +491,11 @@ "location":"querystring", "locationName":"affectedAccountId" }, + "exclusionStatus":{ + "shape":"ExclusionStatus", + "location":"querystring", + "locationName":"exclusionStatus" + }, "maxResults":{ "shape":"ListOrganizationRecommendationResourcesRequestMaxResultsInteger", "location":"querystring", @@ -582,6 +630,11 @@ "type":"structure", "required":["recommendationIdentifier"], "members":{ + "exclusionStatus":{ + "shape":"ExclusionStatus", + "location":"querystring", + "locationName":"exclusionStatus" + }, "maxResults":{ "shape":"ListRecommendationResourcesRequestMaxResultsInteger", "location":"querystring", @@ -781,6 +834,7 @@ "accountId":{"shape":"AccountId"}, "arn":{"shape":"RecommendationResourceArn"}, "awsResourceId":{"shape":"String"}, + "exclusionStatus":{"shape":"ExclusionStatus"}, "id":{"shape":"String"}, "lastUpdatedAt":{"shape":"SyntheticTimestamp_date_time"}, "metadata":{"shape":"StringMap"}, @@ -940,6 +994,23 @@ "min":20, "pattern":"^arn:[\\w-]+:trustedadvisor::\\d{12}:recommendation-resource\\/[\\w-]+\\/[\\w-]+$" }, + "RecommendationResourceExclusion":{ + "type":"structure", + "required":[ + "arn", + "isExcluded" + ], + "members":{ + "arn":{"shape":"RecommendationResourceArn"}, + "isExcluded":{"shape":"Boolean"} + } + }, + "RecommendationResourceExclusionList":{ + "type":"list", + "member":{"shape":"RecommendationResourceExclusion"}, + "max":100, + "min":1 + }, "RecommendationResourceSummary":{ "type":"structure", "required":[ @@ -955,6 +1026,7 @@ "members":{ "arn":{"shape":"RecommendationResourceArn"}, "awsResourceId":{"shape":"String"}, + "exclusionStatus":{"shape":"ExclusionStatus"}, "id":{"shape":"String"}, "lastUpdatedAt":{"shape":"SyntheticTimestamp_date_time"}, "metadata":{"shape":"StringMap"}, @@ -1152,6 +1224,18 @@ "other" ] }, + "UpdateRecommendationResourceExclusionError":{ + "type":"structure", + "members":{ + "arn":{"shape":"RecommendationResourceArn"}, + "errorCode":{"shape":"String"}, + "errorMessage":{"shape":"String"} + } + }, + "UpdateRecommendationResourceExclusionErrorList":{ + "type":"list", + "member":{"shape":"UpdateRecommendationResourceExclusionError"} + }, "ValidationException":{ "type":"structure", "required":["message"], diff --git a/models/apis/trustedadvisor/2022-09-15/docs-2.json b/models/apis/trustedadvisor/2022-09-15/docs-2.json index ff129e351e..40e586bb4a 100644 --- a/models/apis/trustedadvisor/2022-09-15/docs-2.json +++ b/models/apis/trustedadvisor/2022-09-15/docs-2.json @@ -2,6 +2,7 @@ "version": "2.0", "service": "

TrustedAdvisor Public API

", "operations": { + "BatchUpdateRecommendationResourceExclusion": "

Update one or more exclusion status for a list of recommendation resources

", "GetOrganizationRecommendation": "

Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations.

", "GetRecommendation": "

Get a specific Recommendation

", "ListChecks": "

List a filterable set of Checks

", @@ -10,7 +11,7 @@ "ListOrganizationRecommendations": "

List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.

", "ListRecommendationResources": "

List Resources of a Recommendation

", "ListRecommendations": "

List a filterable set of Recommendations

", - "UpdateOrganizationRecommendationLifecycle": "

Update the lifecyle of a Recommendation within an Organization. This API only supports prioritized recommendations.

", + "UpdateOrganizationRecommendationLifecycle": "

Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations.

", "UpdateRecommendationLifecycle": "

Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.

" }, "shapes": { @@ -57,6 +58,22 @@ "ListOrganizationRecommendationAccountsResponse$accountRecommendationLifecycleSummaries": "

The account recommendations lifecycles that are applicable to the Recommendation

" } }, + "BatchUpdateRecommendationResourceExclusionRequest": { + "base": null, + "refs": { + } + }, + "BatchUpdateRecommendationResourceExclusionResponse": { + "base": null, + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "RecommendationResourceExclusion$isExcluded": "

The exclusion status

" + } + }, "CheckArn": { "base": null, "refs": { @@ -94,6 +111,15 @@ "RecommendationCostOptimizingAggregates$estimatedPercentMonthlySavings": "

The estimated percently monthly savings

" } }, + "ExclusionStatus": { + "base": null, + "refs": { + "ListOrganizationRecommendationResourcesRequest$exclusionStatus": "

The exclusion status of the resource

", + "ListRecommendationResourcesRequest$exclusionStatus": "

The exclusion status of the resource

", + "OrganizationRecommendationResourceSummary$exclusionStatus": "

The exclusion status of the Recommendation Resource

", + "RecommendationResourceSummary$exclusionStatus": "

The exclusion status of the Recommendation Resource

" + } + }, "GetOrganizationRecommendationRequest": { "base": null, "refs": { @@ -428,7 +454,21 @@ "base": null, "refs": { "OrganizationRecommendationResourceSummary$arn": "

The ARN of the Recommendation Resource

", - "RecommendationResourceSummary$arn": "

The ARN of the Recommendation Resource

" + "RecommendationResourceExclusion$arn": "

The ARN of the Recommendation Resource

", + "RecommendationResourceSummary$arn": "

The ARN of the Recommendation Resource

", + "UpdateRecommendationResourceExclusionError$arn": "

The ARN of the Recommendation Resource

" + } + }, + "RecommendationResourceExclusion": { + "base": "

The request entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN and corresponding exclusion status

", + "refs": { + "RecommendationResourceExclusionList$member": null + } + }, + "RecommendationResourceExclusionList": { + "base": null, + "refs": { + "BatchUpdateRecommendationResourceExclusionRequest$recommendationResourceExclusions": "

A list of recommendation resource ARNs and exclusion status to update

" } }, "RecommendationResourceSummary": { @@ -564,6 +604,8 @@ "StringMap$key": null, "StringMap$value": null, "ThrottlingException$message": null, + "UpdateRecommendationResourceExclusionError$errorCode": "

The error code

", + "UpdateRecommendationResourceExclusionError$errorMessage": "

The error message

", "ValidationException$message": null } }, @@ -634,6 +676,18 @@ "UpdateRecommendationLifecycleRequest$updateReasonCode": "

Reason code for the lifecycle state change

" } }, + "UpdateRecommendationResourceExclusionError": { + "base": "

The error entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN, error code and error message

", + "refs": { + "UpdateRecommendationResourceExclusionErrorList$member": null + } + }, + "UpdateRecommendationResourceExclusionErrorList": { + "base": null, + "refs": { + "BatchUpdateRecommendationResourceExclusionResponse$batchUpdateRecommendationResourceExclusionErrors": "

A list of recommendation resource ARNs whose exclusion status failed to update, if any

" + } + }, "ValidationException": { "base": "

Exception that the request failed to satisfy service constraints

", "refs": { diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 85d596c563..1081e9296c 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -21565,7 +21565,7 @@ "credentialScope" : { "region" : "cn-northwest-1" }, - "hostname" : "subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn" + "hostname" : "mediaconvert.cn-northwest-1.amazonaws.com.cn" } } }, diff --git a/service/connectcases/api.go b/service/connectcases/api.go index c0e3a7a394..981a54f9d6 100644 --- a/service/connectcases/api.go +++ b/service/connectcases/api.go @@ -969,63 +969,95 @@ func (c *ConnectCases) DeleteDomainWithContext(ctx aws.Context, input *DeleteDom return out, req.Send() } -const opGetCase = "GetCase" +const opDeleteField = "DeleteField" -// GetCaseRequest generates a "aws/request.Request" representing the -// client's request for the GetCase operation. The "output" return +// DeleteFieldRequest generates a "aws/request.Request" representing the +// client's request for the DeleteField operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetCase for more information on using the GetCase +// See DeleteField for more information on using the DeleteField // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetCaseRequest method. -// req, resp := client.GetCaseRequest(params) +// // Example sending a request using the DeleteFieldRequest method. +// req, resp := client.DeleteFieldRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCase -func (c *ConnectCases) GetCaseRequest(input *GetCaseInput) (req *request.Request, output *GetCaseOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteField +func (c *ConnectCases) DeleteFieldRequest(input *DeleteFieldInput) (req *request.Request, output *DeleteFieldOutput) { op := &request.Operation{ - Name: opGetCase, - HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/cases/{caseId}", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "", - TruncationToken: "", - }, + Name: opDeleteField, + HTTPMethod: "DELETE", + HTTPPath: "/domains/{domainId}/fields/{fieldId}", } if input == nil { - input = &GetCaseInput{} + input = &DeleteFieldInput{} } - output = &GetCaseOutput{} + output = &DeleteFieldOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetCase API operation for Amazon Connect Cases. +// DeleteField API operation for Amazon Connect Cases. // -// Returns information about a specific case if it exists. +// Deletes a field from a cases template. You can delete up to 100 fields per +// domain. +// +// After a field is deleted: +// +// - You can still retrieve the field by calling BatchGetField. +// +// - You cannot update a deleted field by calling UpdateField; it throws +// a ValidationException. +// +// - Deleted fields are not included in the ListFields response. +// +// - Calling CreateCase with a deleted field throws a ValidationException +// denoting which field IDs in the request have been deleted. +// +// - Calling GetCase with a deleted field ID returns the deleted field's +// value if one exists. +// +// - Calling UpdateCase with a deleted field ID throws a ValidationException +// if the case does not already contain a value for the deleted field. Otherwise +// it succeeds, allowing you to update or remove (using emptyValue: {}) the +// field's value from the case. +// +// - GetTemplate does not return field IDs for deleted fields. +// +// - GetLayout does not return field IDs for deleted fields. +// +// - Calling SearchCases with the deleted field ID as a filter returns any +// cases that have a value for the deleted field that matches the filter +// criteria. +// +// - Calling SearchCases with a searchTerm value that matches a deleted field's +// value on a case returns the case in the response. +// +// - Calling BatchPutFieldOptions with a deleted field ID throw a ValidationException. +// +// - Calling GetCaseEventConfiguration does not return field IDs for deleted +// fields. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation GetCase for usage and error information. +// API operation DeleteField for usage and error information. // // Returned Error Types: // @@ -1047,136 +1079,97 @@ func (c *ConnectCases) GetCaseRequest(input *GetCaseInput) (req *request.Request // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCase -func (c *ConnectCases) GetCase(input *GetCaseInput) (*GetCaseOutput, error) { - req, out := c.GetCaseRequest(input) +// - ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. See the accompanying error message for details. +// +// - ServiceQuotaExceededException +// The service quota has been exceeded. For a list of service quotas, see Amazon +// Connect Service Quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) +// in the Amazon Connect Administrator Guide. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteField +func (c *ConnectCases) DeleteField(input *DeleteFieldInput) (*DeleteFieldOutput, error) { + req, out := c.DeleteFieldRequest(input) return out, req.Send() } -// GetCaseWithContext is the same as GetCase with the addition of +// DeleteFieldWithContext is the same as DeleteField with the addition of // the ability to pass a context and additional request options. // -// See GetCase for details on how to use this API operation. +// See DeleteField for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) GetCaseWithContext(ctx aws.Context, input *GetCaseInput, opts ...request.Option) (*GetCaseOutput, error) { - req, out := c.GetCaseRequest(input) +func (c *ConnectCases) DeleteFieldWithContext(ctx aws.Context, input *DeleteFieldInput, opts ...request.Option) (*DeleteFieldOutput, error) { + req, out := c.DeleteFieldRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetCasePages iterates over the pages of a GetCase operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See GetCase method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a GetCase operation. -// pageNum := 0 -// err := client.GetCasePages(params, -// func(page *connectcases.GetCaseOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *ConnectCases) GetCasePages(input *GetCaseInput, fn func(*GetCaseOutput, bool) bool) error { - return c.GetCasePagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetCasePagesWithContext same as GetCasePages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *ConnectCases) GetCasePagesWithContext(ctx aws.Context, input *GetCaseInput, fn func(*GetCaseOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetCaseInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetCaseRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*GetCaseOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opGetCaseAuditEvents = "GetCaseAuditEvents" +const opDeleteLayout = "DeleteLayout" -// GetCaseAuditEventsRequest generates a "aws/request.Request" representing the -// client's request for the GetCaseAuditEvents operation. The "output" return +// DeleteLayoutRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLayout operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetCaseAuditEvents for more information on using the GetCaseAuditEvents +// See DeleteLayout for more information on using the DeleteLayout // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetCaseAuditEventsRequest method. -// req, resp := client.GetCaseAuditEventsRequest(params) +// // Example sending a request using the DeleteLayoutRequest method. +// req, resp := client.DeleteLayoutRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseAuditEvents -func (c *ConnectCases) GetCaseAuditEventsRequest(input *GetCaseAuditEventsInput) (req *request.Request, output *GetCaseAuditEventsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteLayout +func (c *ConnectCases) DeleteLayoutRequest(input *DeleteLayoutInput) (req *request.Request, output *DeleteLayoutOutput) { op := &request.Operation{ - Name: opGetCaseAuditEvents, - HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/cases/{caseId}/audit-history", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, + Name: opDeleteLayout, + HTTPMethod: "DELETE", + HTTPPath: "/domains/{domainId}/layouts/{layoutId}", } if input == nil { - input = &GetCaseAuditEventsInput{} + input = &DeleteLayoutInput{} } - output = &GetCaseAuditEventsOutput{} + output = &DeleteLayoutOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetCaseAuditEvents API operation for Amazon Connect Cases. +// DeleteLayout API operation for Amazon Connect Cases. // -// Returns the audit history about a specific case if it exists. +// Deletes a layout from a cases template. You can delete up to 100 layouts +// per domain. +// +//

After a layout is deleted:

// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation GetCaseAuditEvents for usage and error information. +// API operation DeleteLayout for usage and error information. // // Returned Error Types: // @@ -1198,130 +1191,91 @@ func (c *ConnectCases) GetCaseAuditEventsRequest(input *GetCaseAuditEventsInput) // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseAuditEvents -func (c *ConnectCases) GetCaseAuditEvents(input *GetCaseAuditEventsInput) (*GetCaseAuditEventsOutput, error) { - req, out := c.GetCaseAuditEventsRequest(input) +// - ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. See the accompanying error message for details. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteLayout +func (c *ConnectCases) DeleteLayout(input *DeleteLayoutInput) (*DeleteLayoutOutput, error) { + req, out := c.DeleteLayoutRequest(input) return out, req.Send() } -// GetCaseAuditEventsWithContext is the same as GetCaseAuditEvents with the addition of +// DeleteLayoutWithContext is the same as DeleteLayout with the addition of // the ability to pass a context and additional request options. // -// See GetCaseAuditEvents for details on how to use this API operation. +// See DeleteLayout for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) GetCaseAuditEventsWithContext(ctx aws.Context, input *GetCaseAuditEventsInput, opts ...request.Option) (*GetCaseAuditEventsOutput, error) { - req, out := c.GetCaseAuditEventsRequest(input) +func (c *ConnectCases) DeleteLayoutWithContext(ctx aws.Context, input *DeleteLayoutInput, opts ...request.Option) (*DeleteLayoutOutput, error) { + req, out := c.DeleteLayoutRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetCaseAuditEventsPages iterates over the pages of a GetCaseAuditEvents operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See GetCaseAuditEvents method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a GetCaseAuditEvents operation. -// pageNum := 0 -// err := client.GetCaseAuditEventsPages(params, -// func(page *connectcases.GetCaseAuditEventsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *ConnectCases) GetCaseAuditEventsPages(input *GetCaseAuditEventsInput, fn func(*GetCaseAuditEventsOutput, bool) bool) error { - return c.GetCaseAuditEventsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetCaseAuditEventsPagesWithContext same as GetCaseAuditEventsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *ConnectCases) GetCaseAuditEventsPagesWithContext(ctx aws.Context, input *GetCaseAuditEventsInput, fn func(*GetCaseAuditEventsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetCaseAuditEventsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetCaseAuditEventsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*GetCaseAuditEventsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opGetCaseEventConfiguration = "GetCaseEventConfiguration" +const opDeleteTemplate = "DeleteTemplate" -// GetCaseEventConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the GetCaseEventConfiguration operation. The "output" return +// DeleteTemplateRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTemplate operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetCaseEventConfiguration for more information on using the GetCaseEventConfiguration +// See DeleteTemplate for more information on using the DeleteTemplate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetCaseEventConfigurationRequest method. -// req, resp := client.GetCaseEventConfigurationRequest(params) +// // Example sending a request using the DeleteTemplateRequest method. +// req, resp := client.DeleteTemplateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseEventConfiguration -func (c *ConnectCases) GetCaseEventConfigurationRequest(input *GetCaseEventConfigurationInput) (req *request.Request, output *GetCaseEventConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteTemplate +func (c *ConnectCases) DeleteTemplateRequest(input *DeleteTemplateInput) (req *request.Request, output *DeleteTemplateOutput) { op := &request.Operation{ - Name: opGetCaseEventConfiguration, - HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/case-event-configuration", + Name: opDeleteTemplate, + HTTPMethod: "DELETE", + HTTPPath: "/domains/{domainId}/templates/{templateId}", } if input == nil { - input = &GetCaseEventConfigurationInput{} + input = &DeleteTemplateInput{} } - output = &GetCaseEventConfigurationOutput{} + output = &DeleteTemplateOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetCaseEventConfiguration API operation for Amazon Connect Cases. +// DeleteTemplate API operation for Amazon Connect Cases. // -// Returns the case event publishing configuration. +// Deletes a cases template. You can delete up to 100 templates per domain. +// +//

After a cases template is deleted:

// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation GetCaseEventConfiguration for usage and error information. +// API operation DeleteTemplate for usage and error information. // // Returned Error Types: // @@ -1343,79 +1297,90 @@ func (c *ConnectCases) GetCaseEventConfigurationRequest(input *GetCaseEventConfi // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseEventConfiguration -func (c *ConnectCases) GetCaseEventConfiguration(input *GetCaseEventConfigurationInput) (*GetCaseEventConfigurationOutput, error) { - req, out := c.GetCaseEventConfigurationRequest(input) +// - ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. See the accompanying error message for details. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteTemplate +func (c *ConnectCases) DeleteTemplate(input *DeleteTemplateInput) (*DeleteTemplateOutput, error) { + req, out := c.DeleteTemplateRequest(input) return out, req.Send() } -// GetCaseEventConfigurationWithContext is the same as GetCaseEventConfiguration with the addition of +// DeleteTemplateWithContext is the same as DeleteTemplate with the addition of // the ability to pass a context and additional request options. // -// See GetCaseEventConfiguration for details on how to use this API operation. +// See DeleteTemplate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) GetCaseEventConfigurationWithContext(ctx aws.Context, input *GetCaseEventConfigurationInput, opts ...request.Option) (*GetCaseEventConfigurationOutput, error) { - req, out := c.GetCaseEventConfigurationRequest(input) +func (c *ConnectCases) DeleteTemplateWithContext(ctx aws.Context, input *DeleteTemplateInput, opts ...request.Option) (*DeleteTemplateOutput, error) { + req, out := c.DeleteTemplateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDomain = "GetDomain" +const opGetCase = "GetCase" -// GetDomainRequest generates a "aws/request.Request" representing the -// client's request for the GetDomain operation. The "output" return +// GetCaseRequest generates a "aws/request.Request" representing the +// client's request for the GetCase operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDomain for more information on using the GetDomain +// See GetCase for more information on using the GetCase // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetDomainRequest method. -// req, resp := client.GetDomainRequest(params) +// // Example sending a request using the GetCaseRequest method. +// req, resp := client.GetCaseRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetDomain -func (c *ConnectCases) GetDomainRequest(input *GetDomainInput) (req *request.Request, output *GetDomainOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCase +func (c *ConnectCases) GetCaseRequest(input *GetCaseInput) (req *request.Request, output *GetCaseOutput) { op := &request.Operation{ - Name: opGetDomain, + Name: opGetCase, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}", + HTTPPath: "/domains/{domainId}/cases/{caseId}", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "", + TruncationToken: "", + }, } if input == nil { - input = &GetDomainInput{} + input = &GetCaseInput{} } - output = &GetDomainOutput{} + output = &GetCaseOutput{} req = c.newRequest(op, input, output) return } -// GetDomain API operation for Amazon Connect Cases. +// GetCase API operation for Amazon Connect Cases. // -// Returns information about a specific domain if it exists. +// Returns information about a specific case if it exists. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation GetDomain for usage and error information. +// API operation GetCase for usage and error information. // // Returned Error Types: // @@ -1437,79 +1402,136 @@ func (c *ConnectCases) GetDomainRequest(input *GetDomainInput) (req *request.Req // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetDomain -func (c *ConnectCases) GetDomain(input *GetDomainInput) (*GetDomainOutput, error) { - req, out := c.GetDomainRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCase +func (c *ConnectCases) GetCase(input *GetCaseInput) (*GetCaseOutput, error) { + req, out := c.GetCaseRequest(input) return out, req.Send() } -// GetDomainWithContext is the same as GetDomain with the addition of +// GetCaseWithContext is the same as GetCase with the addition of // the ability to pass a context and additional request options. // -// See GetDomain for details on how to use this API operation. +// See GetCase for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) GetDomainWithContext(ctx aws.Context, input *GetDomainInput, opts ...request.Option) (*GetDomainOutput, error) { - req, out := c.GetDomainRequest(input) +func (c *ConnectCases) GetCaseWithContext(ctx aws.Context, input *GetCaseInput, opts ...request.Option) (*GetCaseOutput, error) { + req, out := c.GetCaseRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetLayout = "GetLayout" +// GetCasePages iterates over the pages of a GetCase operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetCase method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a GetCase operation. +// pageNum := 0 +// err := client.GetCasePages(params, +// func(page *connectcases.GetCaseOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ConnectCases) GetCasePages(input *GetCaseInput, fn func(*GetCaseOutput, bool) bool) error { + return c.GetCasePagesWithContext(aws.BackgroundContext(), input, fn) +} -// GetLayoutRequest generates a "aws/request.Request" representing the -// client's request for the GetLayout operation. The "output" return +// GetCasePagesWithContext same as GetCasePages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) GetCasePagesWithContext(ctx aws.Context, input *GetCaseInput, fn func(*GetCaseOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetCaseInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetCaseRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*GetCaseOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opGetCaseAuditEvents = "GetCaseAuditEvents" + +// GetCaseAuditEventsRequest generates a "aws/request.Request" representing the +// client's request for the GetCaseAuditEvents operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetLayout for more information on using the GetLayout +// See GetCaseAuditEvents for more information on using the GetCaseAuditEvents // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetLayoutRequest method. -// req, resp := client.GetLayoutRequest(params) +// // Example sending a request using the GetCaseAuditEventsRequest method. +// req, resp := client.GetCaseAuditEventsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetLayout -func (c *ConnectCases) GetLayoutRequest(input *GetLayoutInput) (req *request.Request, output *GetLayoutOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseAuditEvents +func (c *ConnectCases) GetCaseAuditEventsRequest(input *GetCaseAuditEventsInput) (req *request.Request, output *GetCaseAuditEventsOutput) { op := &request.Operation{ - Name: opGetLayout, + Name: opGetCaseAuditEvents, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/layouts/{layoutId}", + HTTPPath: "/domains/{domainId}/cases/{caseId}/audit-history", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &GetLayoutInput{} + input = &GetCaseAuditEventsInput{} } - output = &GetLayoutOutput{} + output = &GetCaseAuditEventsOutput{} req = c.newRequest(op, input, output) return } -// GetLayout API operation for Amazon Connect Cases. +// GetCaseAuditEvents API operation for Amazon Connect Cases. // -// Returns the details for the requested layout. +// Returns the audit history about a specific case if it exists. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation GetLayout for usage and error information. +// API operation GetCaseAuditEvents for usage and error information. // // Returned Error Types: // @@ -1531,79 +1553,130 @@ func (c *ConnectCases) GetLayoutRequest(input *GetLayoutInput) (req *request.Req // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetLayout -func (c *ConnectCases) GetLayout(input *GetLayoutInput) (*GetLayoutOutput, error) { - req, out := c.GetLayoutRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseAuditEvents +func (c *ConnectCases) GetCaseAuditEvents(input *GetCaseAuditEventsInput) (*GetCaseAuditEventsOutput, error) { + req, out := c.GetCaseAuditEventsRequest(input) return out, req.Send() } -// GetLayoutWithContext is the same as GetLayout with the addition of +// GetCaseAuditEventsWithContext is the same as GetCaseAuditEvents with the addition of // the ability to pass a context and additional request options. // -// See GetLayout for details on how to use this API operation. +// See GetCaseAuditEvents for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) GetLayoutWithContext(ctx aws.Context, input *GetLayoutInput, opts ...request.Option) (*GetLayoutOutput, error) { - req, out := c.GetLayoutRequest(input) +func (c *ConnectCases) GetCaseAuditEventsWithContext(ctx aws.Context, input *GetCaseAuditEventsInput, opts ...request.Option) (*GetCaseAuditEventsOutput, error) { + req, out := c.GetCaseAuditEventsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetTemplate = "GetTemplate" +// GetCaseAuditEventsPages iterates over the pages of a GetCaseAuditEvents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetCaseAuditEvents method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a GetCaseAuditEvents operation. +// pageNum := 0 +// err := client.GetCaseAuditEventsPages(params, +// func(page *connectcases.GetCaseAuditEventsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ConnectCases) GetCaseAuditEventsPages(input *GetCaseAuditEventsInput, fn func(*GetCaseAuditEventsOutput, bool) bool) error { + return c.GetCaseAuditEventsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// GetTemplateRequest generates a "aws/request.Request" representing the -// client's request for the GetTemplate operation. The "output" return +// GetCaseAuditEventsPagesWithContext same as GetCaseAuditEventsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) GetCaseAuditEventsPagesWithContext(ctx aws.Context, input *GetCaseAuditEventsInput, fn func(*GetCaseAuditEventsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetCaseAuditEventsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetCaseAuditEventsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*GetCaseAuditEventsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opGetCaseEventConfiguration = "GetCaseEventConfiguration" + +// GetCaseEventConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetCaseEventConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetTemplate for more information on using the GetTemplate +// See GetCaseEventConfiguration for more information on using the GetCaseEventConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetTemplateRequest method. -// req, resp := client.GetTemplateRequest(params) +// // Example sending a request using the GetCaseEventConfigurationRequest method. +// req, resp := client.GetCaseEventConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetTemplate -func (c *ConnectCases) GetTemplateRequest(input *GetTemplateInput) (req *request.Request, output *GetTemplateOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseEventConfiguration +func (c *ConnectCases) GetCaseEventConfigurationRequest(input *GetCaseEventConfigurationInput) (req *request.Request, output *GetCaseEventConfigurationOutput) { op := &request.Operation{ - Name: opGetTemplate, + Name: opGetCaseEventConfiguration, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/templates/{templateId}", + HTTPPath: "/domains/{domainId}/case-event-configuration", } if input == nil { - input = &GetTemplateInput{} + input = &GetCaseEventConfigurationInput{} } - output = &GetTemplateOutput{} + output = &GetCaseEventConfigurationOutput{} req = c.newRequest(op, input, output) return } -// GetTemplate API operation for Amazon Connect Cases. +// GetCaseEventConfiguration API operation for Amazon Connect Cases. // -// Returns the details for the requested template. +// Returns the case event publishing configuration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation GetTemplate for usage and error information. +// API operation GetCaseEventConfiguration for usage and error information. // // Returned Error Types: // @@ -1625,85 +1698,79 @@ func (c *ConnectCases) GetTemplateRequest(input *GetTemplateInput) (req *request // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetTemplate -func (c *ConnectCases) GetTemplate(input *GetTemplateInput) (*GetTemplateOutput, error) { - req, out := c.GetTemplateRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseEventConfiguration +func (c *ConnectCases) GetCaseEventConfiguration(input *GetCaseEventConfigurationInput) (*GetCaseEventConfigurationOutput, error) { + req, out := c.GetCaseEventConfigurationRequest(input) return out, req.Send() } -// GetTemplateWithContext is the same as GetTemplate with the addition of +// GetCaseEventConfigurationWithContext is the same as GetCaseEventConfiguration with the addition of // the ability to pass a context and additional request options. // -// See GetTemplate for details on how to use this API operation. +// See GetCaseEventConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) GetTemplateWithContext(ctx aws.Context, input *GetTemplateInput, opts ...request.Option) (*GetTemplateOutput, error) { - req, out := c.GetTemplateRequest(input) +func (c *ConnectCases) GetCaseEventConfigurationWithContext(ctx aws.Context, input *GetCaseEventConfigurationInput, opts ...request.Option) (*GetCaseEventConfigurationOutput, error) { + req, out := c.GetCaseEventConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListCasesForContact = "ListCasesForContact" +const opGetDomain = "GetDomain" -// ListCasesForContactRequest generates a "aws/request.Request" representing the -// client's request for the ListCasesForContact operation. The "output" return +// GetDomainRequest generates a "aws/request.Request" representing the +// client's request for the GetDomain operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListCasesForContact for more information on using the ListCasesForContact +// See GetDomain for more information on using the GetDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListCasesForContactRequest method. -// req, resp := client.ListCasesForContactRequest(params) +// // Example sending a request using the GetDomainRequest method. +// req, resp := client.GetDomainRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListCasesForContact -func (c *ConnectCases) ListCasesForContactRequest(input *ListCasesForContactInput) (req *request.Request, output *ListCasesForContactOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetDomain +func (c *ConnectCases) GetDomainRequest(input *GetDomainInput) (req *request.Request, output *GetDomainOutput) { op := &request.Operation{ - Name: opListCasesForContact, + Name: opGetDomain, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/list-cases-for-contact", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, + HTTPPath: "/domains/{domainId}", } if input == nil { - input = &ListCasesForContactInput{} + input = &GetDomainInput{} } - output = &ListCasesForContactOutput{} + output = &GetDomainOutput{} req = c.newRequest(op, input, output) return } -// ListCasesForContact API operation for Amazon Connect Cases. +// GetDomain API operation for Amazon Connect Cases. // -// Lists cases for a given contact. +// Returns information about a specific domain if it exists. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation ListCasesForContact for usage and error information. +// API operation GetDomain for usage and error information. // // Returned Error Types: // @@ -1725,137 +1792,79 @@ func (c *ConnectCases) ListCasesForContactRequest(input *ListCasesForContactInpu // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListCasesForContact -func (c *ConnectCases) ListCasesForContact(input *ListCasesForContactInput) (*ListCasesForContactOutput, error) { - req, out := c.ListCasesForContactRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetDomain +func (c *ConnectCases) GetDomain(input *GetDomainInput) (*GetDomainOutput, error) { + req, out := c.GetDomainRequest(input) return out, req.Send() } -// ListCasesForContactWithContext is the same as ListCasesForContact with the addition of +// GetDomainWithContext is the same as GetDomain with the addition of // the ability to pass a context and additional request options. // -// See ListCasesForContact for details on how to use this API operation. +// See GetDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListCasesForContactWithContext(ctx aws.Context, input *ListCasesForContactInput, opts ...request.Option) (*ListCasesForContactOutput, error) { - req, out := c.ListCasesForContactRequest(input) +func (c *ConnectCases) GetDomainWithContext(ctx aws.Context, input *GetDomainInput, opts ...request.Option) (*GetDomainOutput, error) { + req, out := c.GetDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListCasesForContactPages iterates over the pages of a ListCasesForContact operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListCasesForContact method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListCasesForContact operation. -// pageNum := 0 -// err := client.ListCasesForContactPages(params, -// func(page *connectcases.ListCasesForContactOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *ConnectCases) ListCasesForContactPages(input *ListCasesForContactInput, fn func(*ListCasesForContactOutput, bool) bool) error { - return c.ListCasesForContactPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListCasesForContactPagesWithContext same as ListCasesForContactPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *ConnectCases) ListCasesForContactPagesWithContext(ctx aws.Context, input *ListCasesForContactInput, fn func(*ListCasesForContactOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListCasesForContactInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListCasesForContactRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListCasesForContactOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListDomains = "ListDomains" +const opGetLayout = "GetLayout" -// ListDomainsRequest generates a "aws/request.Request" representing the -// client's request for the ListDomains operation. The "output" return +// GetLayoutRequest generates a "aws/request.Request" representing the +// client's request for the GetLayout operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDomains for more information on using the ListDomains +// See GetLayout for more information on using the GetLayout // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListDomainsRequest method. -// req, resp := client.ListDomainsRequest(params) +// // Example sending a request using the GetLayoutRequest method. +// req, resp := client.GetLayoutRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListDomains -func (c *ConnectCases) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetLayout +func (c *ConnectCases) GetLayoutRequest(input *GetLayoutInput) (req *request.Request, output *GetLayoutOutput) { op := &request.Operation{ - Name: opListDomains, + Name: opGetLayout, HTTPMethod: "POST", - HTTPPath: "/domains-list", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, + HTTPPath: "/domains/{domainId}/layouts/{layoutId}", } if input == nil { - input = &ListDomainsInput{} + input = &GetLayoutInput{} } - output = &ListDomainsOutput{} + output = &GetLayoutOutput{} req = c.newRequest(op, input, output) return } -// ListDomains API operation for Amazon Connect Cases. +// GetLayout API operation for Amazon Connect Cases. // -// Lists all cases domains in the Amazon Web Services account. Each list item -// is a condensed summary object of the domain. +// Returns the details for the requested layout. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation ListDomains for usage and error information. +// API operation GetLayout for usage and error information. // // Returned Error Types: // @@ -1863,6 +1872,11 @@ func (c *ConnectCases) ListDomainsRequest(input *ListDomainsInput) (req *request // We couldn't process your request because of an issue with the server. Try // again later. // +// - ResourceNotFoundException +// We couldn't find the requested resource. Check that your resources exists +// and were created in the same Amazon Web Services Region as your request, +// and try your request again. +// // - ValidationException // The request isn't valid. Check the syntax and try again. // @@ -1872,136 +1886,79 @@ func (c *ConnectCases) ListDomainsRequest(input *ListDomainsInput) (req *request // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListDomains -func (c *ConnectCases) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { - req, out := c.ListDomainsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetLayout +func (c *ConnectCases) GetLayout(input *GetLayoutInput) (*GetLayoutOutput, error) { + req, out := c.GetLayoutRequest(input) return out, req.Send() } -// ListDomainsWithContext is the same as ListDomains with the addition of +// GetLayoutWithContext is the same as GetLayout with the addition of // the ability to pass a context and additional request options. // -// See ListDomains for details on how to use this API operation. +// See GetLayout for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListDomainsWithContext(ctx aws.Context, input *ListDomainsInput, opts ...request.Option) (*ListDomainsOutput, error) { - req, out := c.ListDomainsRequest(input) +func (c *ConnectCases) GetLayoutWithContext(ctx aws.Context, input *GetLayoutInput, opts ...request.Option) (*GetLayoutOutput, error) { + req, out := c.GetLayoutRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListDomainsPages iterates over the pages of a ListDomains operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListDomains method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListDomains operation. -// pageNum := 0 -// err := client.ListDomainsPages(params, -// func(page *connectcases.ListDomainsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *ConnectCases) ListDomainsPages(input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool) error { - return c.ListDomainsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListDomainsPagesWithContext same as ListDomainsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *ConnectCases) ListDomainsPagesWithContext(ctx aws.Context, input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListDomainsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListDomainsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListDomainsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListFieldOptions = "ListFieldOptions" +const opGetTemplate = "GetTemplate" -// ListFieldOptionsRequest generates a "aws/request.Request" representing the -// client's request for the ListFieldOptions operation. The "output" return +// GetTemplateRequest generates a "aws/request.Request" representing the +// client's request for the GetTemplate operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListFieldOptions for more information on using the ListFieldOptions +// See GetTemplate for more information on using the GetTemplate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListFieldOptionsRequest method. -// req, resp := client.ListFieldOptionsRequest(params) +// // Example sending a request using the GetTemplateRequest method. +// req, resp := client.GetTemplateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFieldOptions -func (c *ConnectCases) ListFieldOptionsRequest(input *ListFieldOptionsInput) (req *request.Request, output *ListFieldOptionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetTemplate +func (c *ConnectCases) GetTemplateRequest(input *GetTemplateInput) (req *request.Request, output *GetTemplateOutput) { op := &request.Operation{ - Name: opListFieldOptions, + Name: opGetTemplate, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/fields/{fieldId}/options-list", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, + HTTPPath: "/domains/{domainId}/templates/{templateId}", } if input == nil { - input = &ListFieldOptionsInput{} + input = &GetTemplateInput{} } - output = &ListFieldOptionsOutput{} + output = &GetTemplateOutput{} req = c.newRequest(op, input, output) return } -// ListFieldOptions API operation for Amazon Connect Cases. +// GetTemplate API operation for Amazon Connect Cases. // -// Lists all of the field options for a field identifier in the domain. +// Returns the details for the requested template. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation ListFieldOptions for usage and error information. +// API operation GetTemplate for usage and error information. // // Returned Error Types: // @@ -2023,109 +1980,58 @@ func (c *ConnectCases) ListFieldOptionsRequest(input *ListFieldOptionsInput) (re // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFieldOptions -func (c *ConnectCases) ListFieldOptions(input *ListFieldOptionsInput) (*ListFieldOptionsOutput, error) { - req, out := c.ListFieldOptionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetTemplate +func (c *ConnectCases) GetTemplate(input *GetTemplateInput) (*GetTemplateOutput, error) { + req, out := c.GetTemplateRequest(input) return out, req.Send() } -// ListFieldOptionsWithContext is the same as ListFieldOptions with the addition of +// GetTemplateWithContext is the same as GetTemplate with the addition of // the ability to pass a context and additional request options. // -// See ListFieldOptions for details on how to use this API operation. +// See GetTemplate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListFieldOptionsWithContext(ctx aws.Context, input *ListFieldOptionsInput, opts ...request.Option) (*ListFieldOptionsOutput, error) { - req, out := c.ListFieldOptionsRequest(input) +func (c *ConnectCases) GetTemplateWithContext(ctx aws.Context, input *GetTemplateInput, opts ...request.Option) (*GetTemplateOutput, error) { + req, out := c.GetTemplateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListFieldOptionsPages iterates over the pages of a ListFieldOptions operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opListCasesForContact = "ListCasesForContact" + +// ListCasesForContactRequest generates a "aws/request.Request" representing the +// client's request for the ListCasesForContact operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListFieldOptions method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See ListCasesForContact for more information on using the ListCasesForContact +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListFieldOptions operation. -// pageNum := 0 -// err := client.ListFieldOptionsPages(params, -// func(page *connectcases.ListFieldOptionsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *ConnectCases) ListFieldOptionsPages(input *ListFieldOptionsInput, fn func(*ListFieldOptionsOutput, bool) bool) error { - return c.ListFieldOptionsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListFieldOptionsPagesWithContext same as ListFieldOptionsPages except -// it takes a Context and allows setting request options on the pages. +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *ConnectCases) ListFieldOptionsPagesWithContext(ctx aws.Context, input *ListFieldOptionsInput, fn func(*ListFieldOptionsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListFieldOptionsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListFieldOptionsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListFieldOptionsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListFields = "ListFields" - -// ListFieldsRequest generates a "aws/request.Request" representing the -// client's request for the ListFields operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListFields for more information on using the ListFields -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListFieldsRequest method. -// req, resp := client.ListFieldsRequest(params) +// // Example sending a request using the ListCasesForContactRequest method. +// req, resp := client.ListCasesForContactRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFields -func (c *ConnectCases) ListFieldsRequest(input *ListFieldsInput) (req *request.Request, output *ListFieldsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListCasesForContact +func (c *ConnectCases) ListCasesForContactRequest(input *ListCasesForContactInput) (req *request.Request, output *ListCasesForContactOutput) { op := &request.Operation{ - Name: opListFields, + Name: opListCasesForContact, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/fields-list", + HTTPPath: "/domains/{domainId}/list-cases-for-contact", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2135,24 +2041,24 @@ func (c *ConnectCases) ListFieldsRequest(input *ListFieldsInput) (req *request.R } if input == nil { - input = &ListFieldsInput{} + input = &ListCasesForContactInput{} } - output = &ListFieldsOutput{} + output = &ListCasesForContactOutput{} req = c.newRequest(op, input, output) return } -// ListFields API operation for Amazon Connect Cases. +// ListCasesForContact API operation for Amazon Connect Cases. // -// Lists all fields in a Cases domain. +// Lists cases for a given contact. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation ListFields for usage and error information. +// API operation ListCasesForContact for usage and error information. // // Returned Error Types: // @@ -2174,64 +2080,64 @@ func (c *ConnectCases) ListFieldsRequest(input *ListFieldsInput) (req *request.R // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFields -func (c *ConnectCases) ListFields(input *ListFieldsInput) (*ListFieldsOutput, error) { - req, out := c.ListFieldsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListCasesForContact +func (c *ConnectCases) ListCasesForContact(input *ListCasesForContactInput) (*ListCasesForContactOutput, error) { + req, out := c.ListCasesForContactRequest(input) return out, req.Send() } -// ListFieldsWithContext is the same as ListFields with the addition of +// ListCasesForContactWithContext is the same as ListCasesForContact with the addition of // the ability to pass a context and additional request options. // -// See ListFields for details on how to use this API operation. +// See ListCasesForContact for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListFieldsWithContext(ctx aws.Context, input *ListFieldsInput, opts ...request.Option) (*ListFieldsOutput, error) { - req, out := c.ListFieldsRequest(input) +func (c *ConnectCases) ListCasesForContactWithContext(ctx aws.Context, input *ListCasesForContactInput, opts ...request.Option) (*ListCasesForContactOutput, error) { + req, out := c.ListCasesForContactRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListFieldsPages iterates over the pages of a ListFields operation, +// ListCasesForContactPages iterates over the pages of a ListCasesForContact operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListFields method for more information on how to use this operation. +// See ListCasesForContact method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListFields operation. +// // Example iterating over at most 3 pages of a ListCasesForContact operation. // pageNum := 0 -// err := client.ListFieldsPages(params, -// func(page *connectcases.ListFieldsOutput, lastPage bool) bool { +// err := client.ListCasesForContactPages(params, +// func(page *connectcases.ListCasesForContactOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *ConnectCases) ListFieldsPages(input *ListFieldsInput, fn func(*ListFieldsOutput, bool) bool) error { - return c.ListFieldsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *ConnectCases) ListCasesForContactPages(input *ListCasesForContactInput, fn func(*ListCasesForContactOutput, bool) bool) error { + return c.ListCasesForContactPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListFieldsPagesWithContext same as ListFieldsPages except +// ListCasesForContactPagesWithContext same as ListCasesForContactPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListFieldsPagesWithContext(ctx aws.Context, input *ListFieldsInput, fn func(*ListFieldsOutput, bool) bool, opts ...request.Option) error { +func (c *ConnectCases) ListCasesForContactPagesWithContext(ctx aws.Context, input *ListCasesForContactInput, fn func(*ListCasesForContactOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListFieldsInput + var inCpy *ListCasesForContactInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListFieldsRequest(inCpy) + req, _ := c.ListCasesForContactRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2239,7 +2145,7 @@ func (c *ConnectCases) ListFieldsPagesWithContext(ctx aws.Context, input *ListFi } for p.Next() { - if !fn(p.Page().(*ListFieldsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListCasesForContactOutput), !p.HasNextPage()) { break } } @@ -2247,36 +2153,36 @@ func (c *ConnectCases) ListFieldsPagesWithContext(ctx aws.Context, input *ListFi return p.Err() } -const opListLayouts = "ListLayouts" +const opListDomains = "ListDomains" -// ListLayoutsRequest generates a "aws/request.Request" representing the -// client's request for the ListLayouts operation. The "output" return +// ListDomainsRequest generates a "aws/request.Request" representing the +// client's request for the ListDomains operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListLayouts for more information on using the ListLayouts +// See ListDomains for more information on using the ListDomains // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListLayoutsRequest method. -// req, resp := client.ListLayoutsRequest(params) +// // Example sending a request using the ListDomainsRequest method. +// req, resp := client.ListDomainsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListLayouts -func (c *ConnectCases) ListLayoutsRequest(input *ListLayoutsInput) (req *request.Request, output *ListLayoutsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListDomains +func (c *ConnectCases) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) { op := &request.Operation{ - Name: opListLayouts, + Name: opListDomains, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/layouts-list", + HTTPPath: "/domains-list", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2286,25 +2192,25 @@ func (c *ConnectCases) ListLayoutsRequest(input *ListLayoutsInput) (req *request } if input == nil { - input = &ListLayoutsInput{} + input = &ListDomainsInput{} } - output = &ListLayoutsOutput{} + output = &ListDomainsOutput{} req = c.newRequest(op, input, output) return } -// ListLayouts API operation for Amazon Connect Cases. +// ListDomains API operation for Amazon Connect Cases. // -// Lists all layouts in the given cases domain. Each list item is a condensed -// summary object of the layout. +// Lists all cases domains in the Amazon Web Services account. Each list item +// is a condensed summary object of the domain. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation ListLayouts for usage and error information. +// API operation ListDomains for usage and error information. // // Returned Error Types: // @@ -2312,11 +2218,6 @@ func (c *ConnectCases) ListLayoutsRequest(input *ListLayoutsInput) (req *request // We couldn't process your request because of an issue with the server. Try // again later. // -// - ResourceNotFoundException -// We couldn't find the requested resource. Check that your resources exists -// and were created in the same Amazon Web Services Region as your request, -// and try your request again. -// // - ValidationException // The request isn't valid. Check the syntax and try again. // @@ -2326,64 +2227,64 @@ func (c *ConnectCases) ListLayoutsRequest(input *ListLayoutsInput) (req *request // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListLayouts -func (c *ConnectCases) ListLayouts(input *ListLayoutsInput) (*ListLayoutsOutput, error) { - req, out := c.ListLayoutsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListDomains +func (c *ConnectCases) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { + req, out := c.ListDomainsRequest(input) return out, req.Send() } -// ListLayoutsWithContext is the same as ListLayouts with the addition of +// ListDomainsWithContext is the same as ListDomains with the addition of // the ability to pass a context and additional request options. // -// See ListLayouts for details on how to use this API operation. +// See ListDomains for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListLayoutsWithContext(ctx aws.Context, input *ListLayoutsInput, opts ...request.Option) (*ListLayoutsOutput, error) { - req, out := c.ListLayoutsRequest(input) +func (c *ConnectCases) ListDomainsWithContext(ctx aws.Context, input *ListDomainsInput, opts ...request.Option) (*ListDomainsOutput, error) { + req, out := c.ListDomainsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListLayoutsPages iterates over the pages of a ListLayouts operation, +// ListDomainsPages iterates over the pages of a ListDomains operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListLayouts method for more information on how to use this operation. +// See ListDomains method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListLayouts operation. +// // Example iterating over at most 3 pages of a ListDomains operation. // pageNum := 0 -// err := client.ListLayoutsPages(params, -// func(page *connectcases.ListLayoutsOutput, lastPage bool) bool { +// err := client.ListDomainsPages(params, +// func(page *connectcases.ListDomainsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *ConnectCases) ListLayoutsPages(input *ListLayoutsInput, fn func(*ListLayoutsOutput, bool) bool) error { - return c.ListLayoutsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *ConnectCases) ListDomainsPages(input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool) error { + return c.ListDomainsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListLayoutsPagesWithContext same as ListLayoutsPages except +// ListDomainsPagesWithContext same as ListDomainsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListLayoutsPagesWithContext(ctx aws.Context, input *ListLayoutsInput, fn func(*ListLayoutsOutput, bool) bool, opts ...request.Option) error { +func (c *ConnectCases) ListDomainsPagesWithContext(ctx aws.Context, input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListLayoutsInput + var inCpy *ListDomainsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListLayoutsRequest(inCpy) + req, _ := c.ListDomainsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2391,7 +2292,7 @@ func (c *ConnectCases) ListLayoutsPagesWithContext(ctx aws.Context, input *ListL } for p.Next() { - if !fn(p.Page().(*ListLayoutsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListDomainsOutput), !p.HasNextPage()) { break } } @@ -2399,57 +2300,63 @@ func (c *ConnectCases) ListLayoutsPagesWithContext(ctx aws.Context, input *ListL return p.Err() } -const opListTagsForResource = "ListTagsForResource" +const opListFieldOptions = "ListFieldOptions" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// ListFieldOptionsRequest generates a "aws/request.Request" representing the +// client's request for the ListFieldOptions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTagsForResource for more information on using the ListTagsForResource +// See ListFieldOptions for more information on using the ListFieldOptions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) +// // Example sending a request using the ListFieldOptionsRequest method. +// req, resp := client.ListFieldOptionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTagsForResource -func (c *ConnectCases) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFieldOptions +func (c *ConnectCases) ListFieldOptionsRequest(input *ListFieldOptionsInput) (req *request.Request, output *ListFieldOptionsOutput) { op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "GET", - HTTPPath: "/tags/{arn}", + Name: opListFieldOptions, + HTTPMethod: "POST", + HTTPPath: "/domains/{domainId}/fields/{fieldId}/options-list", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListTagsForResourceInput{} + input = &ListFieldOptionsInput{} } - output = &ListTagsForResourceOutput{} + output = &ListFieldOptionsOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for Amazon Connect Cases. +// ListFieldOptions API operation for Amazon Connect Cases. // -// Lists tags for a resource. +// Lists all of the field options for a field identifier in the domain. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation ListTagsForResource for usage and error information. +// API operation ListFieldOptions for usage and error information. // // Returned Error Types: // @@ -2471,58 +2378,109 @@ func (c *ConnectCases) ListTagsForResourceRequest(input *ListTagsForResourceInpu // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTagsForResource -func (c *ConnectCases) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFieldOptions +func (c *ConnectCases) ListFieldOptions(input *ListFieldOptionsInput) (*ListFieldOptionsOutput, error) { + req, out := c.ListFieldOptionsRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// ListFieldOptionsWithContext is the same as ListFieldOptions with the addition of // the ability to pass a context and additional request options. // -// See ListTagsForResource for details on how to use this API operation. +// See ListFieldOptions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *ConnectCases) ListFieldOptionsWithContext(ctx aws.Context, input *ListFieldOptionsInput, opts ...request.Option) (*ListFieldOptionsOutput, error) { + req, out := c.ListFieldOptionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListTemplates = "ListTemplates" - -// ListTemplatesRequest generates a "aws/request.Request" representing the -// client's request for the ListTemplates operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListTemplates for more information on using the ListTemplates -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// ListFieldOptionsPages iterates over the pages of a ListFieldOptions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// // Example sending a request using the ListTemplatesRequest method. -// req, resp := client.ListTemplatesRequest(params) +// See ListFieldOptions method for more information on how to use this operation. // -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } +// Note: This operation can generate multiple requests to a service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTemplates -func (c *ConnectCases) ListTemplatesRequest(input *ListTemplatesInput) (req *request.Request, output *ListTemplatesOutput) { - op := &request.Operation{ - Name: opListTemplates, +// // Example iterating over at most 3 pages of a ListFieldOptions operation. +// pageNum := 0 +// err := client.ListFieldOptionsPages(params, +// func(page *connectcases.ListFieldOptionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ConnectCases) ListFieldOptionsPages(input *ListFieldOptionsInput, fn func(*ListFieldOptionsOutput, bool) bool) error { + return c.ListFieldOptionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListFieldOptionsPagesWithContext same as ListFieldOptionsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) ListFieldOptionsPagesWithContext(ctx aws.Context, input *ListFieldOptionsInput, fn func(*ListFieldOptionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListFieldOptionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListFieldOptionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListFieldOptionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListFields = "ListFields" + +// ListFieldsRequest generates a "aws/request.Request" representing the +// client's request for the ListFields operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListFields for more information on using the ListFields +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListFieldsRequest method. +// req, resp := client.ListFieldsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFields +func (c *ConnectCases) ListFieldsRequest(input *ListFieldsInput) (req *request.Request, output *ListFieldsOutput) { + op := &request.Operation{ + Name: opListFields, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/templates-list", + HTTPPath: "/domains/{domainId}/fields-list", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2532,25 +2490,24 @@ func (c *ConnectCases) ListTemplatesRequest(input *ListTemplatesInput) (req *req } if input == nil { - input = &ListTemplatesInput{} + input = &ListFieldsInput{} } - output = &ListTemplatesOutput{} + output = &ListFieldsOutput{} req = c.newRequest(op, input, output) return } -// ListTemplates API operation for Amazon Connect Cases. +// ListFields API operation for Amazon Connect Cases. // -// Lists all of the templates in a Cases domain. Each list item is a condensed -// summary object of the template. +// Lists all fields in a Cases domain. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation ListTemplates for usage and error information. +// API operation ListFields for usage and error information. // // Returned Error Types: // @@ -2572,64 +2529,64 @@ func (c *ConnectCases) ListTemplatesRequest(input *ListTemplatesInput) (req *req // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTemplates -func (c *ConnectCases) ListTemplates(input *ListTemplatesInput) (*ListTemplatesOutput, error) { - req, out := c.ListTemplatesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFields +func (c *ConnectCases) ListFields(input *ListFieldsInput) (*ListFieldsOutput, error) { + req, out := c.ListFieldsRequest(input) return out, req.Send() } -// ListTemplatesWithContext is the same as ListTemplates with the addition of +// ListFieldsWithContext is the same as ListFields with the addition of // the ability to pass a context and additional request options. // -// See ListTemplates for details on how to use this API operation. +// See ListFields for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListTemplatesWithContext(ctx aws.Context, input *ListTemplatesInput, opts ...request.Option) (*ListTemplatesOutput, error) { - req, out := c.ListTemplatesRequest(input) +func (c *ConnectCases) ListFieldsWithContext(ctx aws.Context, input *ListFieldsInput, opts ...request.Option) (*ListFieldsOutput, error) { + req, out := c.ListFieldsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTemplatesPages iterates over the pages of a ListTemplates operation, +// ListFieldsPages iterates over the pages of a ListFields operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListTemplates method for more information on how to use this operation. +// See ListFields method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListTemplates operation. +// // Example iterating over at most 3 pages of a ListFields operation. // pageNum := 0 -// err := client.ListTemplatesPages(params, -// func(page *connectcases.ListTemplatesOutput, lastPage bool) bool { +// err := client.ListFieldsPages(params, +// func(page *connectcases.ListFieldsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *ConnectCases) ListTemplatesPages(input *ListTemplatesInput, fn func(*ListTemplatesOutput, bool) bool) error { - return c.ListTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *ConnectCases) ListFieldsPages(input *ListFieldsInput, fn func(*ListFieldsOutput, bool) bool) error { + return c.ListFieldsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListTemplatesPagesWithContext same as ListTemplatesPages except +// ListFieldsPagesWithContext same as ListFieldsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) ListTemplatesPagesWithContext(ctx aws.Context, input *ListTemplatesInput, fn func(*ListTemplatesOutput, bool) bool, opts ...request.Option) error { +func (c *ConnectCases) ListFieldsPagesWithContext(ctx aws.Context, input *ListFieldsInput, fn func(*ListFieldsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListTemplatesInput + var inCpy *ListFieldsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListTemplatesRequest(inCpy) + req, _ := c.ListFieldsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2637,7 +2594,7 @@ func (c *ConnectCases) ListTemplatesPagesWithContext(ctx aws.Context, input *Lis } for p.Next() { - if !fn(p.Page().(*ListTemplatesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListFieldsOutput), !p.HasNextPage()) { break } } @@ -2645,60 +2602,64 @@ func (c *ConnectCases) ListTemplatesPagesWithContext(ctx aws.Context, input *Lis return p.Err() } -const opPutCaseEventConfiguration = "PutCaseEventConfiguration" +const opListLayouts = "ListLayouts" -// PutCaseEventConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutCaseEventConfiguration operation. The "output" return +// ListLayoutsRequest generates a "aws/request.Request" representing the +// client's request for the ListLayouts operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutCaseEventConfiguration for more information on using the PutCaseEventConfiguration +// See ListLayouts for more information on using the ListLayouts // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the PutCaseEventConfigurationRequest method. -// req, resp := client.PutCaseEventConfigurationRequest(params) +// // Example sending a request using the ListLayoutsRequest method. +// req, resp := client.ListLayoutsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/PutCaseEventConfiguration -func (c *ConnectCases) PutCaseEventConfigurationRequest(input *PutCaseEventConfigurationInput) (req *request.Request, output *PutCaseEventConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListLayouts +func (c *ConnectCases) ListLayoutsRequest(input *ListLayoutsInput) (req *request.Request, output *ListLayoutsOutput) { op := &request.Operation{ - Name: opPutCaseEventConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/domains/{domainId}/case-event-configuration", + Name: opListLayouts, + HTTPMethod: "POST", + HTTPPath: "/domains/{domainId}/layouts-list", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &PutCaseEventConfigurationInput{} + input = &ListLayoutsInput{} } - output = &PutCaseEventConfigurationOutput{} + output = &ListLayoutsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// PutCaseEventConfiguration API operation for Amazon Connect Cases. +// ListLayouts API operation for Amazon Connect Cases. // -// Adds case event publishing configuration. For a complete list of fields you -// can add to the event message, see Create case fields (https://docs.aws.amazon.com/connect/latest/adminguide/case-fields.html) -// in the Amazon Connect Administrator Guide +// Lists all layouts in the given cases domain. Each list item is a condensed +// summary object of the layout. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation PutCaseEventConfiguration for usage and error information. +// API operation ListLayouts for usage and error information. // // Returned Error Types: // @@ -2720,90 +2681,130 @@ func (c *ConnectCases) PutCaseEventConfigurationRequest(input *PutCaseEventConfi // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/PutCaseEventConfiguration -func (c *ConnectCases) PutCaseEventConfiguration(input *PutCaseEventConfigurationInput) (*PutCaseEventConfigurationOutput, error) { - req, out := c.PutCaseEventConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListLayouts +func (c *ConnectCases) ListLayouts(input *ListLayoutsInput) (*ListLayoutsOutput, error) { + req, out := c.ListLayoutsRequest(input) return out, req.Send() } -// PutCaseEventConfigurationWithContext is the same as PutCaseEventConfiguration with the addition of +// ListLayoutsWithContext is the same as ListLayouts with the addition of // the ability to pass a context and additional request options. // -// See PutCaseEventConfiguration for details on how to use this API operation. +// See ListLayouts for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) PutCaseEventConfigurationWithContext(ctx aws.Context, input *PutCaseEventConfigurationInput, opts ...request.Option) (*PutCaseEventConfigurationOutput, error) { - req, out := c.PutCaseEventConfigurationRequest(input) +func (c *ConnectCases) ListLayoutsWithContext(ctx aws.Context, input *ListLayoutsInput, opts ...request.Option) (*ListLayoutsOutput, error) { + req, out := c.ListLayoutsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opSearchCases = "SearchCases" +// ListLayoutsPages iterates over the pages of a ListLayouts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLayouts method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListLayouts operation. +// pageNum := 0 +// err := client.ListLayoutsPages(params, +// func(page *connectcases.ListLayoutsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ConnectCases) ListLayoutsPages(input *ListLayoutsInput, fn func(*ListLayoutsOutput, bool) bool) error { + return c.ListLayoutsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// SearchCasesRequest generates a "aws/request.Request" representing the -// client's request for the SearchCases operation. The "output" return +// ListLayoutsPagesWithContext same as ListLayoutsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) ListLayoutsPagesWithContext(ctx aws.Context, input *ListLayoutsInput, fn func(*ListLayoutsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLayoutsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLayoutsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLayoutsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchCases for more information on using the SearchCases +// See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the SearchCasesRequest method. -// req, resp := client.SearchCasesRequest(params) +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/SearchCases -func (c *ConnectCases) SearchCasesRequest(input *SearchCasesInput) (req *request.Request, output *SearchCasesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTagsForResource +func (c *ConnectCases) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opSearchCases, - HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/cases-search", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, - } - + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{arn}", + } + if input == nil { - input = &SearchCasesInput{} + input = &ListTagsForResourceInput{} } - output = &SearchCasesOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } -// SearchCases API operation for Amazon Connect Cases. -// -// Searches for cases within their associated Cases domain. Search results are -// returned as a paginated list of abridged case documents. +// ListTagsForResource API operation for Amazon Connect Cases. // -// For customer_id you must provide the full customer profile ARN in this format: -// arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain -// name/profiles/profile ID. +// Lists tags for a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation SearchCases for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // @@ -2825,109 +2826,58 @@ func (c *ConnectCases) SearchCasesRequest(input *SearchCasesInput) (req *request // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/SearchCases -func (c *ConnectCases) SearchCases(input *SearchCasesInput) (*SearchCasesOutput, error) { - req, out := c.SearchCasesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTagsForResource +func (c *ConnectCases) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// SearchCasesWithContext is the same as SearchCases with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See SearchCases for details on how to use this API operation. +// See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) SearchCasesWithContext(ctx aws.Context, input *SearchCasesInput, opts ...request.Option) (*SearchCasesOutput, error) { - req, out := c.SearchCasesRequest(input) +func (c *ConnectCases) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchCasesPages iterates over the pages of a SearchCases operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See SearchCases method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a SearchCases operation. -// pageNum := 0 -// err := client.SearchCasesPages(params, -// func(page *connectcases.SearchCasesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *ConnectCases) SearchCasesPages(input *SearchCasesInput, fn func(*SearchCasesOutput, bool) bool) error { - return c.SearchCasesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// SearchCasesPagesWithContext same as SearchCasesPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *ConnectCases) SearchCasesPagesWithContext(ctx aws.Context, input *SearchCasesInput, fn func(*SearchCasesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *SearchCasesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.SearchCasesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*SearchCasesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opSearchRelatedItems = "SearchRelatedItems" +const opListTemplates = "ListTemplates" -// SearchRelatedItemsRequest generates a "aws/request.Request" representing the -// client's request for the SearchRelatedItems operation. The "output" return +// ListTemplatesRequest generates a "aws/request.Request" representing the +// client's request for the ListTemplates operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchRelatedItems for more information on using the SearchRelatedItems +// See ListTemplates for more information on using the ListTemplates // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the SearchRelatedItemsRequest method. -// req, resp := client.SearchRelatedItemsRequest(params) +// // Example sending a request using the ListTemplatesRequest method. +// req, resp := client.ListTemplatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/SearchRelatedItems -func (c *ConnectCases) SearchRelatedItemsRequest(input *SearchRelatedItemsInput) (req *request.Request, output *SearchRelatedItemsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTemplates +func (c *ConnectCases) ListTemplatesRequest(input *ListTemplatesInput) (req *request.Request, output *ListTemplatesOutput) { op := &request.Operation{ - Name: opSearchRelatedItems, + Name: opListTemplates, HTTPMethod: "POST", - HTTPPath: "/domains/{domainId}/cases/{caseId}/related-items-search", + HTTPPath: "/domains/{domainId}/templates-list", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2937,27 +2887,25 @@ func (c *ConnectCases) SearchRelatedItemsRequest(input *SearchRelatedItemsInput) } if input == nil { - input = &SearchRelatedItemsInput{} + input = &ListTemplatesInput{} } - output = &SearchRelatedItemsOutput{} + output = &ListTemplatesOutput{} req = c.newRequest(op, input, output) return } -// SearchRelatedItems API operation for Amazon Connect Cases. -// -// Searches for related items that are associated with a case. +// ListTemplates API operation for Amazon Connect Cases. // -// If no filters are provided, this returns all related items associated with -// a case. +// Lists all of the templates in a Cases domain. Each list item is a condensed +// summary object of the template. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation SearchRelatedItems for usage and error information. +// API operation ListTemplates for usage and error information. // // Returned Error Types: // @@ -2979,64 +2927,64 @@ func (c *ConnectCases) SearchRelatedItemsRequest(input *SearchRelatedItemsInput) // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/SearchRelatedItems -func (c *ConnectCases) SearchRelatedItems(input *SearchRelatedItemsInput) (*SearchRelatedItemsOutput, error) { - req, out := c.SearchRelatedItemsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListTemplates +func (c *ConnectCases) ListTemplates(input *ListTemplatesInput) (*ListTemplatesOutput, error) { + req, out := c.ListTemplatesRequest(input) return out, req.Send() } -// SearchRelatedItemsWithContext is the same as SearchRelatedItems with the addition of +// ListTemplatesWithContext is the same as ListTemplates with the addition of // the ability to pass a context and additional request options. // -// See SearchRelatedItems for details on how to use this API operation. +// See ListTemplates for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) SearchRelatedItemsWithContext(ctx aws.Context, input *SearchRelatedItemsInput, opts ...request.Option) (*SearchRelatedItemsOutput, error) { - req, out := c.SearchRelatedItemsRequest(input) +func (c *ConnectCases) ListTemplatesWithContext(ctx aws.Context, input *ListTemplatesInput, opts ...request.Option) (*ListTemplatesOutput, error) { + req, out := c.ListTemplatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchRelatedItemsPages iterates over the pages of a SearchRelatedItems operation, +// ListTemplatesPages iterates over the pages of a ListTemplates operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See SearchRelatedItems method for more information on how to use this operation. +// See ListTemplates method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a SearchRelatedItems operation. +// // Example iterating over at most 3 pages of a ListTemplates operation. // pageNum := 0 -// err := client.SearchRelatedItemsPages(params, -// func(page *connectcases.SearchRelatedItemsOutput, lastPage bool) bool { +// err := client.ListTemplatesPages(params, +// func(page *connectcases.ListTemplatesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *ConnectCases) SearchRelatedItemsPages(input *SearchRelatedItemsInput, fn func(*SearchRelatedItemsOutput, bool) bool) error { - return c.SearchRelatedItemsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *ConnectCases) ListTemplatesPages(input *ListTemplatesInput, fn func(*ListTemplatesOutput, bool) bool) error { + return c.ListTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) } -// SearchRelatedItemsPagesWithContext same as SearchRelatedItemsPages except +// ListTemplatesPagesWithContext same as ListTemplatesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) SearchRelatedItemsPagesWithContext(ctx aws.Context, input *SearchRelatedItemsInput, fn func(*SearchRelatedItemsOutput, bool) bool, opts ...request.Option) error { +func (c *ConnectCases) ListTemplatesPagesWithContext(ctx aws.Context, input *ListTemplatesInput, fn func(*ListTemplatesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *SearchRelatedItemsInput + var inCpy *ListTemplatesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.SearchRelatedItemsRequest(inCpy) + req, _ := c.ListTemplatesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3044,7 +2992,7 @@ func (c *ConnectCases) SearchRelatedItemsPagesWithContext(ctx aws.Context, input } for p.Next() { - if !fn(p.Page().(*SearchRelatedItemsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListTemplatesOutput), !p.HasNextPage()) { break } } @@ -3052,58 +3000,60 @@ func (c *ConnectCases) SearchRelatedItemsPagesWithContext(ctx aws.Context, input return p.Err() } -const opTagResource = "TagResource" +const opPutCaseEventConfiguration = "PutCaseEventConfiguration" -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// PutCaseEventConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutCaseEventConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See TagResource for more information on using the TagResource +// See PutCaseEventConfiguration for more information on using the PutCaseEventConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) +// // Example sending a request using the PutCaseEventConfigurationRequest method. +// req, resp := client.PutCaseEventConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/TagResource -func (c *ConnectCases) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/PutCaseEventConfiguration +func (c *ConnectCases) PutCaseEventConfigurationRequest(input *PutCaseEventConfigurationInput) (req *request.Request, output *PutCaseEventConfigurationOutput) { op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/tags/{arn}", + Name: opPutCaseEventConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/domains/{domainId}/case-event-configuration", } if input == nil { - input = &TagResourceInput{} + input = &PutCaseEventConfigurationInput{} } - output = &TagResourceOutput{} + output = &PutCaseEventConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for Amazon Connect Cases. +// PutCaseEventConfiguration API operation for Amazon Connect Cases. // -// Adds tags to a resource. +// Adds case event publishing configuration. For a complete list of fields you +// can add to the event message, see Create case fields (https://docs.aws.amazon.com/connect/latest/adminguide/case-fields.html) +// in the Amazon Connect Administrator Guide // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation TagResource for usage and error information. +// API operation PutCaseEventConfiguration for usage and error information. // // Returned Error Types: // @@ -3125,80 +3075,90 @@ func (c *ConnectCases) TagResourceRequest(input *TagResourceInput) (req *request // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/TagResource -func (c *ConnectCases) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/PutCaseEventConfiguration +func (c *ConnectCases) PutCaseEventConfiguration(input *PutCaseEventConfigurationInput) (*PutCaseEventConfigurationOutput, error) { + req, out := c.PutCaseEventConfigurationRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// PutCaseEventConfigurationWithContext is the same as PutCaseEventConfiguration with the addition of // the ability to pass a context and additional request options. // -// See TagResource for details on how to use this API operation. +// See PutCaseEventConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *ConnectCases) PutCaseEventConfigurationWithContext(ctx aws.Context, input *PutCaseEventConfigurationInput, opts ...request.Option) (*PutCaseEventConfigurationOutput, error) { + req, out := c.PutCaseEventConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +const opSearchCases = "SearchCases" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// SearchCasesRequest generates a "aws/request.Request" representing the +// client's request for the SearchCases operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UntagResource for more information on using the UntagResource +// See SearchCases for more information on using the SearchCases // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +// // Example sending a request using the SearchCasesRequest method. +// req, resp := client.SearchCasesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UntagResource -func (c *ConnectCases) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/SearchCases +func (c *ConnectCases) SearchCasesRequest(input *SearchCasesInput) (req *request.Request, output *SearchCasesOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", - HTTPPath: "/tags/{arn}", + Name: opSearchCases, + HTTPMethod: "POST", + HTTPPath: "/domains/{domainId}/cases-search", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagResourceInput{} + input = &SearchCasesInput{} } - output = &UntagResourceOutput{} + output = &SearchCasesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for Amazon Connect Cases. +// SearchCases API operation for Amazon Connect Cases. // -// Untags a resource. +// Searches for cases within their associated Cases domain. Search results are +// returned as a paginated list of abridged case documents. +// +// For customer_id you must provide the full customer profile ARN in this format: +// arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain +// name/profiles/profile ID. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation UntagResource for usage and error information. +// API operation SearchCases for usage and error information. // // Returned Error Types: // @@ -3220,87 +3180,139 @@ func (c *ConnectCases) UntagResourceRequest(input *UntagResourceInput) (req *req // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UntagResource -func (c *ConnectCases) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/SearchCases +func (c *ConnectCases) SearchCases(input *SearchCasesInput) (*SearchCasesOutput, error) { + req, out := c.SearchCasesRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// SearchCasesWithContext is the same as SearchCases with the addition of // the ability to pass a context and additional request options. // -// See UntagResource for details on how to use this API operation. +// See SearchCases for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *ConnectCases) SearchCasesWithContext(ctx aws.Context, input *SearchCasesInput, opts ...request.Option) (*SearchCasesOutput, error) { + req, out := c.SearchCasesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateCase = "UpdateCase" +// SearchCasesPages iterates over the pages of a SearchCases operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchCases method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a SearchCases operation. +// pageNum := 0 +// err := client.SearchCasesPages(params, +// func(page *connectcases.SearchCasesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ConnectCases) SearchCasesPages(input *SearchCasesInput, fn func(*SearchCasesOutput, bool) bool) error { + return c.SearchCasesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateCaseRequest generates a "aws/request.Request" representing the -// client's request for the UpdateCase operation. The "output" return +// SearchCasesPagesWithContext same as SearchCasesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) SearchCasesPagesWithContext(ctx aws.Context, input *SearchCasesInput, fn func(*SearchCasesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchCasesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchCasesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*SearchCasesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opSearchRelatedItems = "SearchRelatedItems" + +// SearchRelatedItemsRequest generates a "aws/request.Request" representing the +// client's request for the SearchRelatedItems operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateCase for more information on using the UpdateCase +// See SearchRelatedItems for more information on using the SearchRelatedItems // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateCaseRequest method. -// req, resp := client.UpdateCaseRequest(params) +// // Example sending a request using the SearchRelatedItemsRequest method. +// req, resp := client.SearchRelatedItemsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateCase -func (c *ConnectCases) UpdateCaseRequest(input *UpdateCaseInput) (req *request.Request, output *UpdateCaseOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/SearchRelatedItems +func (c *ConnectCases) SearchRelatedItemsRequest(input *SearchRelatedItemsInput) (req *request.Request, output *SearchRelatedItemsOutput) { op := &request.Operation{ - Name: opUpdateCase, - HTTPMethod: "PUT", - HTTPPath: "/domains/{domainId}/cases/{caseId}", + Name: opSearchRelatedItems, + HTTPMethod: "POST", + HTTPPath: "/domains/{domainId}/cases/{caseId}/related-items-search", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateCaseInput{} + input = &SearchRelatedItemsInput{} } - output = &UpdateCaseOutput{} + output = &SearchRelatedItemsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateCase API operation for Amazon Connect Cases. +// SearchRelatedItems API operation for Amazon Connect Cases. // -// If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser -// (https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html) -// permission on the User ARN resource that you provide +// Searches for related items that are associated with a case. // -//

Updates the values of fields on a case. Fields to be updated are received -// as an array of id/value pairs identical to the CreateCase -// input .

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

+// If no filters are provided, this returns all related items associated with +// a case. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation UpdateCase for usage and error information. +// API operation SearchRelatedItems for usage and error information. // // Returned Error Types: // @@ -3322,80 +3334,131 @@ func (c *ConnectCases) UpdateCaseRequest(input *UpdateCaseInput) (req *request.R // - AccessDeniedException // You do not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateCase -func (c *ConnectCases) UpdateCase(input *UpdateCaseInput) (*UpdateCaseOutput, error) { - req, out := c.UpdateCaseRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/SearchRelatedItems +func (c *ConnectCases) SearchRelatedItems(input *SearchRelatedItemsInput) (*SearchRelatedItemsOutput, error) { + req, out := c.SearchRelatedItemsRequest(input) return out, req.Send() } -// UpdateCaseWithContext is the same as UpdateCase with the addition of +// SearchRelatedItemsWithContext is the same as SearchRelatedItems with the addition of // the ability to pass a context and additional request options. // -// See UpdateCase for details on how to use this API operation. +// See SearchRelatedItems for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) UpdateCaseWithContext(ctx aws.Context, input *UpdateCaseInput, opts ...request.Option) (*UpdateCaseOutput, error) { - req, out := c.UpdateCaseRequest(input) +func (c *ConnectCases) SearchRelatedItemsWithContext(ctx aws.Context, input *SearchRelatedItemsInput, opts ...request.Option) (*SearchRelatedItemsOutput, error) { + req, out := c.SearchRelatedItemsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateField = "UpdateField" +// SearchRelatedItemsPages iterates over the pages of a SearchRelatedItems operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchRelatedItems method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a SearchRelatedItems operation. +// pageNum := 0 +// err := client.SearchRelatedItemsPages(params, +// func(page *connectcases.SearchRelatedItemsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ConnectCases) SearchRelatedItemsPages(input *SearchRelatedItemsInput, fn func(*SearchRelatedItemsOutput, bool) bool) error { + return c.SearchRelatedItemsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateFieldRequest generates a "aws/request.Request" representing the -// client's request for the UpdateField operation. The "output" return +// SearchRelatedItemsPagesWithContext same as SearchRelatedItemsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) SearchRelatedItemsPagesWithContext(ctx aws.Context, input *SearchRelatedItemsInput, fn func(*SearchRelatedItemsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchRelatedItemsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchRelatedItemsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*SearchRelatedItemsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateField for more information on using the UpdateField +// See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateFieldRequest method. -// req, resp := client.UpdateFieldRequest(params) +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateField -func (c *ConnectCases) UpdateFieldRequest(input *UpdateFieldInput) (req *request.Request, output *UpdateFieldOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/TagResource +func (c *ConnectCases) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ - Name: opUpdateField, - HTTPMethod: "PUT", - HTTPPath: "/domains/{domainId}/fields/{fieldId}", + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{arn}", } if input == nil { - input = &UpdateFieldInput{} + input = &TagResourceInput{} } - output = &UpdateFieldOutput{} + output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateField API operation for Amazon Connect Cases. +// TagResource API operation for Amazon Connect Cases. // -// Updates the properties of an existing field. +// Adds tags to a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation UpdateField for usage and error information. +// API operation TagResource for usage and error information. // // Returned Error Types: // @@ -3417,93 +3480,182 @@ func (c *ConnectCases) UpdateFieldRequest(input *UpdateFieldInput) (req *request // - AccessDeniedException // You do not have sufficient access to perform this action. // -// - ConflictException -// The requested operation would cause a conflict with the current state of -// a service resource associated with the request. Resolve the conflict before -// retrying this request. See the accompanying error message for details. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateField -func (c *ConnectCases) UpdateField(input *UpdateFieldInput) (*UpdateFieldOutput, error) { - req, out := c.UpdateFieldRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/TagResource +func (c *ConnectCases) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) return out, req.Send() } -// UpdateFieldWithContext is the same as UpdateField with the addition of +// TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateField for details on how to use this API operation. +// See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) UpdateFieldWithContext(ctx aws.Context, input *UpdateFieldInput, opts ...request.Option) (*UpdateFieldOutput, error) { - req, out := c.UpdateFieldRequest(input) +func (c *ConnectCases) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateLayout = "UpdateLayout" +const opUntagResource = "UntagResource" -// UpdateLayoutRequest generates a "aws/request.Request" representing the -// client's request for the UpdateLayout operation. The "output" return +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateLayout for more information on using the UpdateLayout +// See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateLayoutRequest method. -// req, resp := client.UpdateLayoutRequest(params) +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateLayout -func (c *ConnectCases) UpdateLayoutRequest(input *UpdateLayoutInput) (req *request.Request, output *UpdateLayoutOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UntagResource +func (c *ConnectCases) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ - Name: opUpdateLayout, - HTTPMethod: "PUT", - HTTPPath: "/domains/{domainId}/layouts/{layoutId}", + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{arn}", } if input == nil { - input = &UpdateLayoutInput{} + input = &UntagResourceInput{} } - output = &UpdateLayoutOutput{} + output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateLayout API operation for Amazon Connect Cases. +// UntagResource API operation for Amazon Connect Cases. // -// Updates the attributes of an existing layout. +// Untags a resource. // -// If the action is successful, the service sends back an HTTP 200 response -// with an empty HTTP body. +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. // -// A ValidationException is returned when you add non-existent fieldIds to a -// layout. +// See the AWS API reference guide for Amazon Connect Cases's +// API operation UntagResource for usage and error information. // -// Title and Status fields cannot be part of layouts because they are not configurable. +// Returned Error Types: +// +// - InternalServerException +// We couldn't process your request because of an issue with the server. Try +// again later. +// +// - ResourceNotFoundException +// We couldn't find the requested resource. Check that your resources exists +// and were created in the same Amazon Web Services Region as your request, +// and try your request again. +// +// - ValidationException +// The request isn't valid. Check the syntax and try again. +// +// - ThrottlingException +// The rate has been exceeded for this API. Please try again after a few minutes. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UntagResource +func (c *ConnectCases) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateCase = "UpdateCase" + +// UpdateCaseRequest generates a "aws/request.Request" representing the +// client's request for the UpdateCase operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateCase for more information on using the UpdateCase +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateCaseRequest method. +// req, resp := client.UpdateCaseRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateCase +func (c *ConnectCases) UpdateCaseRequest(input *UpdateCaseInput) (req *request.Request, output *UpdateCaseOutput) { + op := &request.Operation{ + Name: opUpdateCase, + HTTPMethod: "PUT", + HTTPPath: "/domains/{domainId}/cases/{caseId}", + } + + if input == nil { + input = &UpdateCaseInput{} + } + + output = &UpdateCaseOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateCase API operation for Amazon Connect Cases. +// +// If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser +// (https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html) +// permission on the User ARN resource that you provide +// +//

Updates the values of fields on a case. Fields to be updated are received +// as an array of id/value pairs identical to the CreateCase +// input .

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

// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation UpdateLayout for usage and error information. +// API operation UpdateCase for usage and error information. // // Returned Error Types: // @@ -3525,94 +3677,80 @@ func (c *ConnectCases) UpdateLayoutRequest(input *UpdateLayoutInput) (req *reque // - AccessDeniedException // You do not have sufficient access to perform this action. // -// - ConflictException -// The requested operation would cause a conflict with the current state of -// a service resource associated with the request. Resolve the conflict before -// retrying this request. See the accompanying error message for details. -// -// - ServiceQuotaExceededException -// The service quota has been exceeded. For a list of service quotas, see Amazon -// Connect Service Quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) -// in the Amazon Connect Administrator Guide. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateLayout -func (c *ConnectCases) UpdateLayout(input *UpdateLayoutInput) (*UpdateLayoutOutput, error) { - req, out := c.UpdateLayoutRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateCase +func (c *ConnectCases) UpdateCase(input *UpdateCaseInput) (*UpdateCaseOutput, error) { + req, out := c.UpdateCaseRequest(input) return out, req.Send() } -// UpdateLayoutWithContext is the same as UpdateLayout with the addition of +// UpdateCaseWithContext is the same as UpdateCase with the addition of // the ability to pass a context and additional request options. // -// See UpdateLayout for details on how to use this API operation. +// See UpdateCase for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) UpdateLayoutWithContext(ctx aws.Context, input *UpdateLayoutInput, opts ...request.Option) (*UpdateLayoutOutput, error) { - req, out := c.UpdateLayoutRequest(input) +func (c *ConnectCases) UpdateCaseWithContext(ctx aws.Context, input *UpdateCaseInput, opts ...request.Option) (*UpdateCaseOutput, error) { + req, out := c.UpdateCaseRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateTemplate = "UpdateTemplate" +const opUpdateField = "UpdateField" -// UpdateTemplateRequest generates a "aws/request.Request" representing the -// client's request for the UpdateTemplate operation. The "output" return +// UpdateFieldRequest generates a "aws/request.Request" representing the +// client's request for the UpdateField operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateTemplate for more information on using the UpdateTemplate +// See UpdateField for more information on using the UpdateField // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateTemplateRequest method. -// req, resp := client.UpdateTemplateRequest(params) +// // Example sending a request using the UpdateFieldRequest method. +// req, resp := client.UpdateFieldRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateTemplate -func (c *ConnectCases) UpdateTemplateRequest(input *UpdateTemplateInput) (req *request.Request, output *UpdateTemplateOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateField +func (c *ConnectCases) UpdateFieldRequest(input *UpdateFieldInput) (req *request.Request, output *UpdateFieldOutput) { op := &request.Operation{ - Name: opUpdateTemplate, + Name: opUpdateField, HTTPMethod: "PUT", - HTTPPath: "/domains/{domainId}/templates/{templateId}", + HTTPPath: "/domains/{domainId}/fields/{fieldId}", } if input == nil { - input = &UpdateTemplateInput{} + input = &UpdateFieldInput{} } - output = &UpdateTemplateOutput{} + output = &UpdateFieldOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateTemplate API operation for Amazon Connect Cases. +// UpdateField API operation for Amazon Connect Cases. // -// 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. +// Updates the properties of an existing field. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Cases's -// API operation UpdateTemplate for usage and error information. +// API operation UpdateField for usage and error information. // // Returned Error Types: // @@ -3639,85 +3777,302 @@ func (c *ConnectCases) UpdateTemplateRequest(input *UpdateTemplateInput) (req *r // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateTemplate -func (c *ConnectCases) UpdateTemplate(input *UpdateTemplateInput) (*UpdateTemplateOutput, error) { - req, out := c.UpdateTemplateRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateField +func (c *ConnectCases) UpdateField(input *UpdateFieldInput) (*UpdateFieldOutput, error) { + req, out := c.UpdateFieldRequest(input) return out, req.Send() } -// UpdateTemplateWithContext is the same as UpdateTemplate with the addition of +// UpdateFieldWithContext is the same as UpdateField with the addition of // the ability to pass a context and additional request options. // -// See UpdateTemplate for details on how to use this API operation. +// See UpdateField for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConnectCases) UpdateTemplateWithContext(ctx aws.Context, input *UpdateTemplateInput, opts ...request.Option) (*UpdateTemplateOutput, error) { - req, out := c.UpdateTemplateRequest(input) +func (c *ConnectCases) UpdateFieldWithContext(ctx aws.Context, input *UpdateFieldInput, opts ...request.Option) (*UpdateFieldOutput, error) { + req, out := c.UpdateFieldRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// You do not have sufficient access to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} +const opUpdateLayout = "UpdateLayout" -// String returns the string representation. +// UpdateLayoutRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLayout operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { - return s.String() -} - -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, +// See UpdateLayout for more information on using the UpdateLayout +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateLayoutRequest method. +// req, resp := client.UpdateLayoutRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateLayout +func (c *ConnectCases) UpdateLayoutRequest(input *UpdateLayoutInput) (req *request.Request, output *UpdateLayoutOutput) { + op := &request.Operation{ + Name: opUpdateLayout, + HTTPMethod: "PUT", + HTTPPath: "/domains/{domainId}/layouts/{layoutId}", } -} - -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" -} -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if input == nil { + input = &UpdateLayoutInput{} } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil -} - -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode + output = &UpdateLayoutOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateLayout API operation for Amazon Connect Cases. +// +// 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Cases's +// API operation UpdateLayout for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// We couldn't process your request because of an issue with the server. Try +// again later. +// +// - ResourceNotFoundException +// We couldn't find the requested resource. Check that your resources exists +// and were created in the same Amazon Web Services Region as your request, +// and try your request again. +// +// - ValidationException +// The request isn't valid. Check the syntax and try again. +// +// - ThrottlingException +// The rate has been exceeded for this API. Please try again after a few minutes. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. See the accompanying error message for details. +// +// - ServiceQuotaExceededException +// The service quota has been exceeded. For a list of service quotas, see Amazon +// Connect Service Quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) +// in the Amazon Connect Administrator Guide. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateLayout +func (c *ConnectCases) UpdateLayout(input *UpdateLayoutInput) (*UpdateLayoutOutput, error) { + req, out := c.UpdateLayoutRequest(input) + return out, req.Send() +} + +// UpdateLayoutWithContext is the same as UpdateLayout with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLayout for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) UpdateLayoutWithContext(ctx aws.Context, input *UpdateLayoutInput, opts ...request.Option) (*UpdateLayoutOutput, error) { + req, out := c.UpdateLayoutRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateTemplate = "UpdateTemplate" + +// UpdateTemplateRequest generates a "aws/request.Request" representing the +// client's request for the UpdateTemplate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateTemplate for more information on using the UpdateTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateTemplateRequest method. +// req, resp := client.UpdateTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateTemplate +func (c *ConnectCases) UpdateTemplateRequest(input *UpdateTemplateInput) (req *request.Request, output *UpdateTemplateOutput) { + op := &request.Operation{ + Name: opUpdateTemplate, + HTTPMethod: "PUT", + HTTPPath: "/domains/{domainId}/templates/{templateId}", + } + + if input == nil { + input = &UpdateTemplateInput{} + } + + output = &UpdateTemplateOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateTemplate API operation for Amazon Connect Cases. +// +// 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Cases's +// API operation UpdateTemplate for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// We couldn't process your request because of an issue with the server. Try +// again later. +// +// - ResourceNotFoundException +// We couldn't find the requested resource. Check that your resources exists +// and were created in the same Amazon Web Services Region as your request, +// and try your request again. +// +// - ValidationException +// The request isn't valid. Check the syntax and try again. +// +// - ThrottlingException +// The rate has been exceeded for this API. Please try again after a few minutes. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. See the accompanying error message for details. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateTemplate +func (c *ConnectCases) UpdateTemplate(input *UpdateTemplateInput) (*UpdateTemplateOutput, error) { + req, out := c.UpdateTemplateRequest(input) + return out, req.Send() +} + +// UpdateTemplateWithContext is the same as UpdateTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConnectCases) UpdateTemplateWithContext(ctx aws.Context, input *UpdateTemplateInput, opts ...request.Option) (*UpdateTemplateOutput, error) { + req, out := c.UpdateTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. @@ -3865,9 +4220,6 @@ func (s *AuditEventField) SetOldValue(v *AuditEventFieldValueUnion) *AuditEventF } // Object to store union of Field values. -// -// This data type is a UNION, so only one of the following members can be specified -// when used or returned. type AuditEventFieldValueUnion struct { _ struct{} `type:"structure"` @@ -4178,10 +4530,466 @@ type BatchPutFieldOptionsInput struct { // FieldId is a required field FieldId *string `location:"uri" locationName:"fieldId" min:"1" type:"string" required:"true"` - // A list of FieldOption objects. + // A list of FieldOption objects. + // + // Options is a required field + Options []*FieldOption `locationName:"options" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchPutFieldOptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchPutFieldOptionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchPutFieldOptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchPutFieldOptionsInput"} + if s.DomainId == nil { + invalidParams.Add(request.NewErrParamRequired("DomainId")) + } + if s.DomainId != nil && len(*s.DomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) + } + if s.FieldId == nil { + invalidParams.Add(request.NewErrParamRequired("FieldId")) + } + if s.FieldId != nil && len(*s.FieldId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FieldId", 1)) + } + if s.Options == nil { + invalidParams.Add(request.NewErrParamRequired("Options")) + } + if s.Options != nil { + for i, v := range s.Options { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Options", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainId sets the DomainId field's value. +func (s *BatchPutFieldOptionsInput) SetDomainId(v string) *BatchPutFieldOptionsInput { + s.DomainId = &v + return s +} + +// SetFieldId sets the FieldId field's value. +func (s *BatchPutFieldOptionsInput) SetFieldId(v string) *BatchPutFieldOptionsInput { + s.FieldId = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *BatchPutFieldOptionsInput) SetOptions(v []*FieldOption) *BatchPutFieldOptionsInput { + s.Options = v + return s +} + +type BatchPutFieldOptionsOutput struct { + _ struct{} `type:"structure"` + + // A list of field errors. + Errors []*FieldOptionError `locationName:"errors" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchPutFieldOptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchPutFieldOptionsOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchPutFieldOptionsOutput) SetErrors(v []*FieldOptionError) *BatchPutFieldOptionsOutput { + s.Errors = v + return s +} + +// Details of what case data is published through the case event stream. +type CaseEventIncludedData struct { + _ struct{} `type:"structure"` + + // List of field identifiers. + // + // Fields is a required field + Fields []*FieldIdentifier `locationName:"fields" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CaseEventIncludedData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CaseEventIncludedData) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CaseEventIncludedData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CaseEventIncludedData"} + if s.Fields == nil { + invalidParams.Add(request.NewErrParamRequired("Fields")) + } + if s.Fields != nil { + for i, v := range s.Fields { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFields sets the Fields field's value. +func (s *CaseEventIncludedData) SetFields(v []*FieldIdentifier) *CaseEventIncludedData { + s.Fields = v + return s +} + +// A filter for cases. Only one value can be provided. +type CaseFilter struct { + _ struct{} `type:"structure"` + + // Provides "and all" filtering. + AndAll []*CaseFilter `locationName:"andAll" type:"list"` + + // A list of fields to filter on. + Field *FieldFilter `locationName:"field" type:"structure"` + + // A filter for cases. Only one value can be provided. + Not *CaseFilter `locationName:"not" type:"structure"` + + // Provides "or all" filtering. + OrAll []*CaseFilter `locationName:"orAll" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CaseFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CaseFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CaseFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CaseFilter"} + if s.Field != nil { + if err := s.Field.Validate(); err != nil { + invalidParams.AddNested("Field", err.(request.ErrInvalidParams)) + } + } + if s.Not != nil { + if err := s.Not.Validate(); err != nil { + invalidParams.AddNested("Not", err.(request.ErrInvalidParams)) + } + } + if s.OrAll != nil { + for i, v := range s.OrAll { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OrAll", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAndAll sets the AndAll field's value. +func (s *CaseFilter) SetAndAll(v []*CaseFilter) *CaseFilter { + s.AndAll = v + return s +} + +// SetField sets the Field field's value. +func (s *CaseFilter) SetField(v *FieldFilter) *CaseFilter { + s.Field = v + return s +} + +// SetNot sets the Not field's value. +func (s *CaseFilter) SetNot(v *CaseFilter) *CaseFilter { + s.Not = v + return s +} + +// SetOrAll sets the OrAll field's value. +func (s *CaseFilter) SetOrAll(v []*CaseFilter) *CaseFilter { + s.OrAll = v + return s +} + +// Case summary information. +type CaseSummary struct { + _ struct{} `type:"structure"` + + // A unique identifier of the case. + // + // CaseId is a required field + CaseId *string `locationName:"caseId" min:"1" type:"string" required:"true"` + + // A unique identifier of a template. + // + // TemplateId is a required field + TemplateId *string `locationName:"templateId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CaseSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CaseSummary) GoString() string { + return s.String() +} + +// SetCaseId sets the CaseId field's value. +func (s *CaseSummary) SetCaseId(v string) *CaseSummary { + s.CaseId = &v + return s +} + +// SetTemplateId sets the TemplateId field's value. +func (s *CaseSummary) SetTemplateId(v string) *CaseSummary { + s.TemplateId = &v + return s +} + +// Represents the content of a Comment to be returned to agents. +type CommentContent struct { + _ struct{} `type:"structure"` + + // Text in the body of a Comment on a case. + // + // Body is a required field + Body *string `locationName:"body" min:"1" type:"string" required:"true"` + + // Type of the text in the box of a Comment on a case. + // + // ContentType is a required field + ContentType *string `locationName:"contentType" type:"string" required:"true" enum:"CommentBodyTextType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CommentContent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CommentContent) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CommentContent) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CommentContent"} + if s.Body == nil { + invalidParams.Add(request.NewErrParamRequired("Body")) + } + if s.Body != nil && len(*s.Body) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Body", 1)) + } + if s.ContentType == nil { + invalidParams.Add(request.NewErrParamRequired("ContentType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBody sets the Body field's value. +func (s *CommentContent) SetBody(v string) *CommentContent { + s.Body = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *CommentContent) SetContentType(v string) *CommentContent { + s.ContentType = &v + return s +} + +// A filter for related items of type Comment. +type CommentFilter struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CommentFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CommentFilter) GoString() string { + return s.String() +} + +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. See the accompanying error message for details. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +// An object that represents an Amazon Connect contact object. +type Contact struct { + _ struct{} `type:"structure"` + + // A unique identifier of a contact in Amazon Connect. // - // Options is a required field - Options []*FieldOption `locationName:"options" type:"list" required:"true"` + // ContactArn is a required field + ContactArn *string `locationName:"contactArn" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4189,7 +4997,7 @@ type BatchPutFieldOptionsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchPutFieldOptionsInput) String() string { +func (s Contact) String() string { return awsutil.Prettify(s) } @@ -4198,37 +5006,18 @@ func (s BatchPutFieldOptionsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchPutFieldOptionsInput) GoString() string { +func (s Contact) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchPutFieldOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchPutFieldOptionsInput"} - if s.DomainId == nil { - invalidParams.Add(request.NewErrParamRequired("DomainId")) - } - if s.DomainId != nil && len(*s.DomainId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) - } - if s.FieldId == nil { - invalidParams.Add(request.NewErrParamRequired("FieldId")) - } - if s.FieldId != nil && len(*s.FieldId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FieldId", 1)) - } - if s.Options == nil { - invalidParams.Add(request.NewErrParamRequired("Options")) +func (s *Contact) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Contact"} + if s.ContactArn == nil { + invalidParams.Add(request.NewErrParamRequired("ContactArn")) } - if s.Options != nil { - for i, v := range s.Options { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Options", i), err.(request.ErrInvalidParams)) - } - } + if s.ContactArn != nil && len(*s.ContactArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContactArn", 1)) } if invalidParams.Len() > 0 { @@ -4237,29 +5026,31 @@ func (s *BatchPutFieldOptionsInput) Validate() error { return nil } -// SetDomainId sets the DomainId field's value. -func (s *BatchPutFieldOptionsInput) SetDomainId(v string) *BatchPutFieldOptionsInput { - s.DomainId = &v +// SetContactArn sets the ContactArn field's value. +func (s *Contact) SetContactArn(v string) *Contact { + s.ContactArn = &v return s } -// SetFieldId sets the FieldId field's value. -func (s *BatchPutFieldOptionsInput) SetFieldId(v string) *BatchPutFieldOptionsInput { - s.FieldId = &v - return s -} +// An object that represents a content of an Amazon Connect contact object. +type ContactContent struct { + _ struct{} `type:"structure"` -// SetOptions sets the Options field's value. -func (s *BatchPutFieldOptionsInput) SetOptions(v []*FieldOption) *BatchPutFieldOptionsInput { - s.Options = v - return s -} + // A list of channels to filter on for related items of type Contact. + // + // Channel is a required field + Channel *string `locationName:"channel" min:"1" type:"string" required:"true"` -type BatchPutFieldOptionsOutput struct { - _ struct{} `type:"structure"` + // The difference between the InitiationTimestamp and the DisconnectTimestamp + // of the contact. + // + // ConnectedToSystemTime is a required field + ConnectedToSystemTime *time.Time `locationName:"connectedToSystemTime" type:"timestamp" timestampFormat:"iso8601" required:"true"` - // A list of field errors. - Errors []*FieldOptionError `locationName:"errors" type:"list"` + // A unique identifier of a contact in Amazon Connect. + // + // ContactArn is a required field + ContactArn *string `locationName:"contactArn" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4267,7 +5058,7 @@ type BatchPutFieldOptionsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchPutFieldOptionsOutput) String() string { +func (s ContactContent) String() string { return awsutil.Prettify(s) } @@ -4276,24 +5067,37 @@ func (s BatchPutFieldOptionsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchPutFieldOptionsOutput) GoString() string { +func (s ContactContent) GoString() string { return s.String() } -// SetErrors sets the Errors field's value. -func (s *BatchPutFieldOptionsOutput) SetErrors(v []*FieldOptionError) *BatchPutFieldOptionsOutput { - s.Errors = v +// SetChannel sets the Channel field's value. +func (s *ContactContent) SetChannel(v string) *ContactContent { + s.Channel = &v return s } -// Details of what case data is published through the case event stream. -type CaseEventIncludedData struct { +// SetConnectedToSystemTime sets the ConnectedToSystemTime field's value. +func (s *ContactContent) SetConnectedToSystemTime(v time.Time) *ContactContent { + s.ConnectedToSystemTime = &v + return s +} + +// SetContactArn sets the ContactArn field's value. +func (s *ContactContent) SetContactArn(v string) *ContactContent { + s.ContactArn = &v + return s +} + +// A filter for related items of type Contact. +type ContactFilter struct { _ struct{} `type:"structure"` - // List of field identifiers. - // - // Fields is a required field - Fields []*FieldIdentifier `locationName:"fields" type:"list" required:"true"` + // A list of channels to filter on for related items of type Contact. + Channel []*string `locationName:"channel" type:"list"` + + // A unique identifier of a contact in Amazon Connect. + ContactArn *string `locationName:"contactArn" min:"1" type:"string"` } // String returns the string representation. @@ -4301,7 +5105,7 @@ type CaseEventIncludedData struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CaseEventIncludedData) String() string { +func (s ContactFilter) String() string { return awsutil.Prettify(s) } @@ -4310,25 +5114,15 @@ func (s CaseEventIncludedData) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CaseEventIncludedData) GoString() string { +func (s ContactFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CaseEventIncludedData) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CaseEventIncludedData"} - if s.Fields == nil { - invalidParams.Add(request.NewErrParamRequired("Fields")) - } - if s.Fields != nil { - for i, v := range s.Fields { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams)) - } - } +func (s *ContactFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContactFilter"} + if s.ContactArn != nil && len(*s.ContactArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContactArn", 1)) } if invalidParams.Len() > 0 { @@ -4337,27 +5131,45 @@ func (s *CaseEventIncludedData) Validate() error { return nil } -// SetFields sets the Fields field's value. -func (s *CaseEventIncludedData) SetFields(v []*FieldIdentifier) *CaseEventIncludedData { - s.Fields = v +// SetChannel sets the Channel field's value. +func (s *ContactFilter) SetChannel(v []*string) *ContactFilter { + s.Channel = v return s } -// A filter for cases. Only one value can be provided. -type CaseFilter struct { +// SetContactArn sets the ContactArn field's value. +func (s *ContactFilter) SetContactArn(v string) *ContactFilter { + s.ContactArn = &v + return s +} + +type CreateCaseInput struct { _ struct{} `type:"structure"` - // Provides "and all" filtering. - AndAll []*CaseFilter `locationName:"andAll" type:"list"` + // 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 (https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/). + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` - // A list of fields to filter on. - Field *FieldFilter `locationName:"field" type:"structure"` + // The unique identifier of the Cases domain. + // + // DomainId is a required field + DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` - // A filter for cases. Only one value can be provided. - Not *CaseFilter `locationName:"not" type:"structure"` + // An array of objects with field ID (matching ListFields/DescribeField) and + // value union data. + // + // Fields is a required field + Fields []*FieldValue `locationName:"fields" type:"list" required:"true"` - // Provides "or all" filtering. - OrAll []*CaseFilter `locationName:"orAll" type:"list"` + // Represents the identity of the person who performed the action. + PerformedBy *UserUnion `locationName:"performedBy" type:"structure"` + + // A unique identifier of a template. + // + // TemplateId is a required field + TemplateId *string `locationName:"templateId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4365,7 +5177,7 @@ type CaseFilter struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CaseFilter) String() string { +func (s CreateCaseInput) String() string { return awsutil.Prettify(s) } @@ -4374,33 +5186,43 @@ func (s CaseFilter) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CaseFilter) GoString() string { +func (s CreateCaseInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CaseFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CaseFilter"} - if s.Field != nil { - if err := s.Field.Validate(); err != nil { - invalidParams.AddNested("Field", err.(request.ErrInvalidParams)) - } +func (s *CreateCaseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCaseInput"} + if s.DomainId == nil { + invalidParams.Add(request.NewErrParamRequired("DomainId")) } - if s.Not != nil { - if err := s.Not.Validate(); err != nil { - invalidParams.AddNested("Not", err.(request.ErrInvalidParams)) - } + if s.DomainId != nil && len(*s.DomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) } - if s.OrAll != nil { - for i, v := range s.OrAll { + if s.Fields == nil { + invalidParams.Add(request.NewErrParamRequired("Fields")) + } + if s.TemplateId == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateId")) + } + if s.TemplateId != nil && len(*s.TemplateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) + } + if s.Fields != nil { + for i, v := range s.Fields { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OrAll", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams)) } } } + if s.PerformedBy != nil { + if err := s.PerformedBy.Validate(); err != nil { + invalidParams.AddNested("PerformedBy", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4408,43 +5230,48 @@ func (s *CaseFilter) Validate() error { return nil } -// SetAndAll sets the AndAll field's value. -func (s *CaseFilter) SetAndAll(v []*CaseFilter) *CaseFilter { - s.AndAll = v +// SetClientToken sets the ClientToken field's value. +func (s *CreateCaseInput) SetClientToken(v string) *CreateCaseInput { + s.ClientToken = &v return s } -// SetField sets the Field field's value. -func (s *CaseFilter) SetField(v *FieldFilter) *CaseFilter { - s.Field = v +// SetDomainId sets the DomainId field's value. +func (s *CreateCaseInput) SetDomainId(v string) *CreateCaseInput { + s.DomainId = &v return s } -// SetNot sets the Not field's value. -func (s *CaseFilter) SetNot(v *CaseFilter) *CaseFilter { - s.Not = v +// SetFields sets the Fields field's value. +func (s *CreateCaseInput) SetFields(v []*FieldValue) *CreateCaseInput { + s.Fields = v return s } -// SetOrAll sets the OrAll field's value. -func (s *CaseFilter) SetOrAll(v []*CaseFilter) *CaseFilter { - s.OrAll = v +// SetPerformedBy sets the PerformedBy field's value. +func (s *CreateCaseInput) SetPerformedBy(v *UserUnion) *CreateCaseInput { + s.PerformedBy = v return s } -// Case summary information. -type CaseSummary struct { +// SetTemplateId sets the TemplateId field's value. +func (s *CreateCaseInput) SetTemplateId(v string) *CreateCaseInput { + s.TemplateId = &v + return s +} + +type CreateCaseOutput struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the case. + // + // CaseArn is a required field + CaseArn *string `locationName:"caseArn" min:"1" type:"string" required:"true"` + // A unique identifier of the case. // // CaseId is a required field CaseId *string `locationName:"caseId" min:"1" type:"string" required:"true"` - - // A unique identifier of a template. - // - // TemplateId is a required field - TemplateId *string `locationName:"templateId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4452,7 +5279,7 @@ type CaseSummary struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CaseSummary) String() string { +func (s CreateCaseOutput) String() string { return awsutil.Prettify(s) } @@ -4461,35 +5288,30 @@ func (s CaseSummary) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CaseSummary) GoString() string { +func (s CreateCaseOutput) GoString() string { return s.String() } -// SetCaseId sets the CaseId field's value. -func (s *CaseSummary) SetCaseId(v string) *CaseSummary { - s.CaseId = &v +// SetCaseArn sets the CaseArn field's value. +func (s *CreateCaseOutput) SetCaseArn(v string) *CreateCaseOutput { + s.CaseArn = &v return s } -// SetTemplateId sets the TemplateId field's value. -func (s *CaseSummary) SetTemplateId(v string) *CaseSummary { - s.TemplateId = &v +// SetCaseId sets the CaseId field's value. +func (s *CreateCaseOutput) SetCaseId(v string) *CreateCaseOutput { + s.CaseId = &v return s } -// Represents the content of a Comment to be returned to agents. -type CommentContent struct { +type CreateDomainInput struct { _ struct{} `type:"structure"` - // Text in the body of a Comment on a case. - // - // Body is a required field - Body *string `locationName:"body" min:"1" type:"string" required:"true"` - - // Type of the text in the box of a Comment on a case. + // The name for your Cases domain. It must be unique for your Amazon Web Services + // account. // - // ContentType is a required field - ContentType *string `locationName:"contentType" type:"string" required:"true" enum:"CommentBodyTextType"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4497,7 +5319,7 @@ type CommentContent struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CommentContent) String() string { +func (s CreateDomainInput) String() string { return awsutil.Prettify(s) } @@ -4506,21 +5328,18 @@ func (s CommentContent) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CommentContent) GoString() string { +func (s CreateDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CommentContent) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CommentContent"} - if s.Body == nil { - invalidParams.Add(request.NewErrParamRequired("Body")) - } - if s.Body != nil && len(*s.Body) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Body", 1)) +func (s *CreateDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.ContentType == nil { - invalidParams.Add(request.NewErrParamRequired("ContentType")) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { @@ -4529,49 +5348,29 @@ func (s *CommentContent) Validate() error { return nil } -// SetBody sets the Body field's value. -func (s *CommentContent) SetBody(v string) *CommentContent { - s.Body = &v - return s -} - -// SetContentType sets the ContentType field's value. -func (s *CommentContent) SetContentType(v string) *CommentContent { - s.ContentType = &v +// SetName sets the Name field's value. +func (s *CreateDomainInput) SetName(v string) *CreateDomainInput { + s.Name = &v return s } -// A filter for related items of type Comment. -type CommentFilter struct { +type CreateDomainOutput struct { _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CommentFilter) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CommentFilter) GoString() string { - return s.String() -} + // The Amazon Resource Name (ARN) for the Cases domain. + // + // DomainArn is a required field + DomainArn *string `locationName:"domainArn" min:"1" type:"string" required:"true"` -// The requested operation would cause a conflict with the current state of -// a service resource associated with the request. Resolve the conflict before -// retrying this request. See the accompanying error message for details. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The unique identifier of the Cases domain. + // + // DomainId is a required field + DomainId *string `locationName:"domainId" min:"1" type:"string" required:"true"` - Message_ *string `locationName:"message" type:"string"` + // The status of the domain. + // + // DomainStatus is a required field + DomainStatus *string `locationName:"domainStatus" type:"string" required:"true" enum:"DomainStatus"` } // String returns the string representation. @@ -4579,7 +5378,7 @@ type ConflictException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) String() string { +func (s CreateDomainOutput) String() string { return awsutil.Prettify(s) } @@ -4588,56 +5387,49 @@ func (s ConflictException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) GoString() string { +func (s CreateDomainOutput) GoString() string { return s.String() } -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" +// SetDomainArn sets the DomainArn field's value. +func (s *CreateDomainOutput) SetDomainArn(v string) *CreateDomainOutput { + s.DomainArn = &v + return s } -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetDomainId sets the DomainId field's value. +func (s *CreateDomainOutput) SetDomainId(v string) *CreateDomainOutput { + s.DomainId = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil +// SetDomainStatus sets the DomainStatus field's value. +func (s *CreateDomainOutput) SetDomainStatus(v string) *CreateDomainOutput { + s.DomainStatus = &v + return s } -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} +type CreateFieldInput struct { + _ struct{} `type:"structure"` -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} + // The description of the field. + Description *string `locationName:"description" type:"string"` -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID -} + // The unique identifier of the Cases domain. + // + // DomainId is a required field + DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` -// An object that represents an Amazon Connect contact object. -type Contact struct { - _ struct{} `type:"structure"` + // The name of the field. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // A unique identifier of a contact in Amazon Connect. + // Defines the data type, some system constraints, and default display of the + // field. // - // ContactArn is a required field - ContactArn *string `locationName:"contactArn" min:"1" type:"string" required:"true"` + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"FieldType"` } // String returns the string representation. @@ -4645,7 +5437,7 @@ type Contact struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Contact) String() string { +func (s CreateFieldInput) String() string { return awsutil.Prettify(s) } @@ -4654,18 +5446,27 @@ func (s Contact) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Contact) GoString() string { +func (s CreateFieldInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *Contact) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Contact"} - if s.ContactArn == nil { - invalidParams.Add(request.NewErrParamRequired("ContactArn")) +func (s *CreateFieldInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFieldInput"} + if s.DomainId == nil { + invalidParams.Add(request.NewErrParamRequired("DomainId")) } - if s.ContactArn != nil && len(*s.ContactArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ContactArn", 1)) + if s.DomainId != nil && len(*s.DomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { @@ -4674,78 +5475,42 @@ func (s *Contact) Validate() error { return nil } -// SetContactArn sets the ContactArn field's value. -func (s *Contact) SetContactArn(v string) *Contact { - s.ContactArn = &v +// SetDescription sets the Description field's value. +func (s *CreateFieldInput) SetDescription(v string) *CreateFieldInput { + s.Description = &v return s } -// An object that represents a content of an Amazon Connect contact object. -type ContactContent struct { - _ struct{} `type:"structure"` - - // A list of channels to filter on for related items of type Contact. - // - // Channel is a required field - Channel *string `locationName:"channel" min:"1" type:"string" required:"true"` - - // The difference between the InitiationTimestamp and the DisconnectTimestamp - // of the contact. - // - // ConnectedToSystemTime is a required field - ConnectedToSystemTime *time.Time `locationName:"connectedToSystemTime" type:"timestamp" timestampFormat:"iso8601" required:"true"` - - // A unique identifier of a contact in Amazon Connect. - // - // ContactArn is a required field - ContactArn *string `locationName:"contactArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ContactContent) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ContactContent) GoString() string { - return s.String() -} - -// SetChannel sets the Channel field's value. -func (s *ContactContent) SetChannel(v string) *ContactContent { - s.Channel = &v +// SetDomainId sets the DomainId field's value. +func (s *CreateFieldInput) SetDomainId(v string) *CreateFieldInput { + s.DomainId = &v return s } -// SetConnectedToSystemTime sets the ConnectedToSystemTime field's value. -func (s *ContactContent) SetConnectedToSystemTime(v time.Time) *ContactContent { - s.ConnectedToSystemTime = &v +// SetName sets the Name field's value. +func (s *CreateFieldInput) SetName(v string) *CreateFieldInput { + s.Name = &v return s } -// SetContactArn sets the ContactArn field's value. -func (s *ContactContent) SetContactArn(v string) *ContactContent { - s.ContactArn = &v +// SetType sets the Type field's value. +func (s *CreateFieldInput) SetType(v string) *CreateFieldInput { + s.Type = &v return s } -// A filter for related items of type Contact. -type ContactFilter struct { +type CreateFieldOutput struct { _ struct{} `type:"structure"` - // A list of channels to filter on for related items of type Contact. - Channel []*string `locationName:"channel" type:"list"` + // The Amazon Resource Name (ARN) of the field. + // + // FieldArn is a required field + FieldArn *string `locationName:"fieldArn" min:"1" type:"string" required:"true"` - // A unique identifier of a contact in Amazon Connect. - ContactArn *string `locationName:"contactArn" min:"1" type:"string"` + // The unique identifier of a field. + // + // FieldId is a required field + FieldId *string `locationName:"fieldId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4753,7 +5518,7 @@ type ContactFilter struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ContactFilter) String() string { +func (s CreateFieldOutput) String() string { return awsutil.Prettify(s) } @@ -4762,62 +5527,40 @@ func (s ContactFilter) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ContactFilter) GoString() string { +func (s CreateFieldOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ContactFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContactFilter"} - if s.ContactArn != nil && len(*s.ContactArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ContactArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetChannel sets the Channel field's value. -func (s *ContactFilter) SetChannel(v []*string) *ContactFilter { - s.Channel = v +// SetFieldArn sets the FieldArn field's value. +func (s *CreateFieldOutput) SetFieldArn(v string) *CreateFieldOutput { + s.FieldArn = &v return s } -// SetContactArn sets the ContactArn field's value. -func (s *ContactFilter) SetContactArn(v string) *ContactFilter { - s.ContactArn = &v +// SetFieldId sets the FieldId field's value. +func (s *CreateFieldOutput) SetFieldId(v string) *CreateFieldOutput { + s.FieldId = &v return s } -type CreateCaseInput struct { +type CreateLayoutInput struct { _ struct{} `type:"structure"` - // 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 (https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/). - ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + // Information about which fields will be present in the layout, and information + // about the order of the fields. + // + // Content is a required field + Content *LayoutContent `locationName:"content" type:"structure" required:"true"` // The unique identifier of the Cases domain. // // DomainId is a required field DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` - // An array of objects with field ID (matching ListFields/DescribeField) and - // value union data. - // - // Fields is a required field - Fields []*FieldValue `locationName:"fields" type:"list" required:"true"` - - // Represents the identity of the person who performed the action. - PerformedBy *UserUnion `locationName:"performedBy" type:"structure"` - - // A unique identifier of a template. + // The name of the layout. It must be unique for the Cases domain. // - // TemplateId is a required field - TemplateId *string `locationName:"templateId" min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4825,7 +5568,7 @@ type CreateCaseInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateCaseInput) String() string { +func (s CreateLayoutInput) String() string { return awsutil.Prettify(s) } @@ -4834,41 +5577,31 @@ func (s CreateCaseInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateCaseInput) GoString() string { +func (s CreateLayoutInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCaseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCaseInput"} +func (s *CreateLayoutInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLayoutInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.DomainId != nil && len(*s.DomainId) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) } - if s.Fields == nil { - invalidParams.Add(request.NewErrParamRequired("Fields")) - } - if s.TemplateId == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateId")) - } - if s.TemplateId != nil && len(*s.TemplateId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.Fields != nil { - for i, v := range s.Fields { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams)) - } - } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.PerformedBy != nil { - if err := s.PerformedBy.Validate(); err != nil { - invalidParams.AddNested("PerformedBy", err.(request.ErrInvalidParams)) + if s.Content != nil { + if err := s.Content.Validate(); err != nil { + invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) } } @@ -4878,48 +5611,36 @@ func (s *CreateCaseInput) Validate() error { return nil } -// SetClientToken sets the ClientToken field's value. -func (s *CreateCaseInput) SetClientToken(v string) *CreateCaseInput { - s.ClientToken = &v +// SetContent sets the Content field's value. +func (s *CreateLayoutInput) SetContent(v *LayoutContent) *CreateLayoutInput { + s.Content = v return s } // SetDomainId sets the DomainId field's value. -func (s *CreateCaseInput) SetDomainId(v string) *CreateCaseInput { +func (s *CreateLayoutInput) SetDomainId(v string) *CreateLayoutInput { s.DomainId = &v return s } -// SetFields sets the Fields field's value. -func (s *CreateCaseInput) SetFields(v []*FieldValue) *CreateCaseInput { - s.Fields = v - return s -} - -// SetPerformedBy sets the PerformedBy field's value. -func (s *CreateCaseInput) SetPerformedBy(v *UserUnion) *CreateCaseInput { - s.PerformedBy = v - return s -} - -// SetTemplateId sets the TemplateId field's value. -func (s *CreateCaseInput) SetTemplateId(v string) *CreateCaseInput { - s.TemplateId = &v +// SetName sets the Name field's value. +func (s *CreateLayoutInput) SetName(v string) *CreateLayoutInput { + s.Name = &v return s } -type CreateCaseOutput struct { +type CreateLayoutOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the case. + // The Amazon Resource Name (ARN) of the newly created layout. // - // CaseArn is a required field - CaseArn *string `locationName:"caseArn" min:"1" type:"string" required:"true"` + // LayoutArn is a required field + LayoutArn *string `locationName:"layoutArn" min:"1" type:"string" required:"true"` - // A unique identifier of the case. + // The unique identifier of the layout. // - // CaseId is a required field - CaseId *string `locationName:"caseId" min:"1" type:"string" required:"true"` + // LayoutId is a required field + LayoutId *string `locationName:"layoutId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4927,7 +5648,7 @@ type CreateCaseOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateCaseOutput) String() string { +func (s CreateLayoutOutput) String() string { return awsutil.Prettify(s) } @@ -4936,30 +5657,47 @@ func (s CreateCaseOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateCaseOutput) GoString() string { +func (s CreateLayoutOutput) GoString() string { return s.String() } -// SetCaseArn sets the CaseArn field's value. -func (s *CreateCaseOutput) SetCaseArn(v string) *CreateCaseOutput { - s.CaseArn = &v +// SetLayoutArn sets the LayoutArn field's value. +func (s *CreateLayoutOutput) SetLayoutArn(v string) *CreateLayoutOutput { + s.LayoutArn = &v return s } -// SetCaseId sets the CaseId field's value. -func (s *CreateCaseOutput) SetCaseId(v string) *CreateCaseOutput { - s.CaseId = &v +// SetLayoutId sets the LayoutId field's value. +func (s *CreateLayoutOutput) SetLayoutId(v string) *CreateLayoutOutput { + s.LayoutId = &v return s } -type CreateDomainInput struct { +type CreateRelatedItemInput struct { _ struct{} `type:"structure"` - // The name for your Cases domain. It must be unique for your Amazon Web Services - // account. + // A unique identifier of the case. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // CaseId is a required field + CaseId *string `location:"uri" locationName:"caseId" min:"1" type:"string" required:"true"` + + // The content of a related item to be created. + // + // Content is a required field + Content *RelatedItemInputContent `locationName:"content" type:"structure" required:"true"` + + // The unique identifier of the Cases domain. + // + // DomainId is a required field + DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` + + // Represents the creator of the related item. + PerformedBy *UserUnion `locationName:"performedBy" type:"structure"` + + // The type of a related item. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"RelatedItemType"` } // String returns the string representation. @@ -4967,7 +5705,7 @@ type CreateDomainInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateDomainInput) String() string { +func (s CreateRelatedItemInput) String() string { return awsutil.Prettify(s) } @@ -4976,49 +5714,90 @@ func (s CreateDomainInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateDomainInput) GoString() string { +func (s CreateRelatedItemInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *CreateRelatedItemInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRelatedItemInput"} + if s.CaseId == nil { + invalidParams.Add(request.NewErrParamRequired("CaseId")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.CaseId != nil && len(*s.CaseId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CaseId", 1)) + } + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.DomainId == nil { + invalidParams.Add(request.NewErrParamRequired("DomainId")) + } + if s.DomainId != nil && len(*s.DomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Content != nil { + if err := s.Content.Validate(); err != nil { + invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) + } + } + if s.PerformedBy != nil { + if err := s.PerformedBy.Validate(); err != nil { + invalidParams.AddNested("PerformedBy", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} + +// SetCaseId sets the CaseId field's value. +func (s *CreateRelatedItemInput) SetCaseId(v string) *CreateRelatedItemInput { + s.CaseId = &v + return s +} + +// SetContent sets the Content field's value. +func (s *CreateRelatedItemInput) SetContent(v *RelatedItemInputContent) *CreateRelatedItemInput { + s.Content = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDomainId sets the DomainId field's value. +func (s *CreateRelatedItemInput) SetDomainId(v string) *CreateRelatedItemInput { + s.DomainId = &v + return s } -// SetName sets the Name field's value. -func (s *CreateDomainInput) SetName(v string) *CreateDomainInput { - s.Name = &v +// SetPerformedBy sets the PerformedBy field's value. +func (s *CreateRelatedItemInput) SetPerformedBy(v *UserUnion) *CreateRelatedItemInput { + s.PerformedBy = v return s } -type CreateDomainOutput struct { - _ struct{} `type:"structure"` +// SetType sets the Type field's value. +func (s *CreateRelatedItemInput) SetType(v string) *CreateRelatedItemInput { + s.Type = &v + return s +} - // The Amazon Resource Name (ARN) for the Cases domain. - // - // DomainArn is a required field - DomainArn *string `locationName:"domainArn" min:"1" type:"string" required:"true"` +type CreateRelatedItemOutput struct { + _ struct{} `type:"structure"` - // The unique identifier of the Cases domain. + // The Amazon Resource Name (ARN) of the related item. // - // DomainId is a required field - DomainId *string `locationName:"domainId" min:"1" type:"string" required:"true"` + // RelatedItemArn is a required field + RelatedItemArn *string `locationName:"relatedItemArn" min:"1" type:"string" required:"true"` - // The status of the domain. + // The unique identifier of the related item. // - // DomainStatus is a required field - DomainStatus *string `locationName:"domainStatus" type:"string" required:"true" enum:"DomainStatus"` + // RelatedItemId is a required field + RelatedItemId *string `locationName:"relatedItemId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5026,7 +5805,7 @@ type CreateDomainOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateDomainOutput) String() string { +func (s CreateRelatedItemOutput) String() string { return awsutil.Prettify(s) } @@ -5035,32 +5814,26 @@ func (s CreateDomainOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateDomainOutput) GoString() string { +func (s CreateRelatedItemOutput) GoString() string { return s.String() } -// SetDomainArn sets the DomainArn field's value. -func (s *CreateDomainOutput) SetDomainArn(v string) *CreateDomainOutput { - s.DomainArn = &v - return s -} - -// SetDomainId sets the DomainId field's value. -func (s *CreateDomainOutput) SetDomainId(v string) *CreateDomainOutput { - s.DomainId = &v +// SetRelatedItemArn sets the RelatedItemArn field's value. +func (s *CreateRelatedItemOutput) SetRelatedItemArn(v string) *CreateRelatedItemOutput { + s.RelatedItemArn = &v return s } -// SetDomainStatus sets the DomainStatus field's value. -func (s *CreateDomainOutput) SetDomainStatus(v string) *CreateDomainOutput { - s.DomainStatus = &v +// SetRelatedItemId sets the RelatedItemId field's value. +func (s *CreateRelatedItemOutput) SetRelatedItemId(v string) *CreateRelatedItemOutput { + s.RelatedItemId = &v return s } -type CreateFieldInput struct { +type CreateTemplateInput struct { _ struct{} `type:"structure"` - // The description of the field. + // A brief description of the template. Description *string `locationName:"description" type:"string"` // The unique identifier of the Cases domain. @@ -5068,16 +5841,20 @@ type CreateFieldInput struct { // DomainId is a required field DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` - // The name of the field. + // Configuration of layouts associated to the template. + LayoutConfiguration *LayoutConfiguration `locationName:"layoutConfiguration" type:"structure"` + + // A name for the template. It must be unique per domain. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // Defines the data type, some system constraints, and default display of the - // field. - // - // Type is a required field - Type *string `locationName:"type" type:"string" required:"true" enum:"FieldType"` + // A list of fields that must contain a value for a case to be successfully + // created with this template. + RequiredFields []*RequiredField `locationName:"requiredFields" type:"list"` + + // The status of the template. + Status *string `locationName:"status" type:"string" enum:"TemplateStatus"` } // String returns the string representation. @@ -5085,7 +5862,7 @@ type CreateFieldInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateFieldInput) String() string { +func (s CreateTemplateInput) String() string { return awsutil.Prettify(s) } @@ -5094,13 +5871,13 @@ func (s CreateFieldInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateFieldInput) GoString() string { +func (s CreateTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateFieldInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateFieldInput"} +func (s *CreateTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTemplateInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } @@ -5113,8 +5890,20 @@ func (s *CreateFieldInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) + if s.LayoutConfiguration != nil { + if err := s.LayoutConfiguration.Validate(); err != nil { + invalidParams.AddNested("LayoutConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.RequiredFields != nil { + for i, v := range s.RequiredFields { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RequiredFields", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -5124,41 +5913,53 @@ func (s *CreateFieldInput) Validate() error { } // SetDescription sets the Description field's value. -func (s *CreateFieldInput) SetDescription(v string) *CreateFieldInput { +func (s *CreateTemplateInput) SetDescription(v string) *CreateTemplateInput { s.Description = &v return s } // SetDomainId sets the DomainId field's value. -func (s *CreateFieldInput) SetDomainId(v string) *CreateFieldInput { +func (s *CreateTemplateInput) SetDomainId(v string) *CreateTemplateInput { s.DomainId = &v return s } +// SetLayoutConfiguration sets the LayoutConfiguration field's value. +func (s *CreateTemplateInput) SetLayoutConfiguration(v *LayoutConfiguration) *CreateTemplateInput { + s.LayoutConfiguration = v + return s +} + // SetName sets the Name field's value. -func (s *CreateFieldInput) SetName(v string) *CreateFieldInput { +func (s *CreateTemplateInput) SetName(v string) *CreateTemplateInput { s.Name = &v return s } -// SetType sets the Type field's value. -func (s *CreateFieldInput) SetType(v string) *CreateFieldInput { - s.Type = &v +// SetRequiredFields sets the RequiredFields field's value. +func (s *CreateTemplateInput) SetRequiredFields(v []*RequiredField) *CreateTemplateInput { + s.RequiredFields = v return s } -type CreateFieldOutput struct { +// SetStatus sets the Status field's value. +func (s *CreateTemplateInput) SetStatus(v string) *CreateTemplateInput { + s.Status = &v + return s +} + +type CreateTemplateOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the field. + // The Amazon Resource Name (ARN) of the newly created template. // - // FieldArn is a required field - FieldArn *string `locationName:"fieldArn" min:"1" type:"string" required:"true"` + // TemplateArn is a required field + TemplateArn *string `locationName:"templateArn" min:"1" type:"string" required:"true"` - // The unique identifier of a field. + // A unique identifier of a template. // - // FieldId is a required field - FieldId *string `locationName:"fieldId" min:"1" type:"string" required:"true"` + // TemplateId is a required field + TemplateId *string `locationName:"templateId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5166,7 +5967,7 @@ type CreateFieldOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateFieldOutput) String() string { +func (s CreateTemplateOutput) String() string { return awsutil.Prettify(s) } @@ -5175,40 +5976,29 @@ func (s CreateFieldOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateFieldOutput) GoString() string { +func (s CreateTemplateOutput) GoString() string { return s.String() } -// SetFieldArn sets the FieldArn field's value. -func (s *CreateFieldOutput) SetFieldArn(v string) *CreateFieldOutput { - s.FieldArn = &v +// SetTemplateArn sets the TemplateArn field's value. +func (s *CreateTemplateOutput) SetTemplateArn(v string) *CreateTemplateOutput { + s.TemplateArn = &v return s } -// SetFieldId sets the FieldId field's value. -func (s *CreateFieldOutput) SetFieldId(v string) *CreateFieldOutput { - s.FieldId = &v +// SetTemplateId sets the TemplateId field's value. +func (s *CreateTemplateOutput) SetTemplateId(v string) *CreateTemplateOutput { + s.TemplateId = &v return s } -type CreateLayoutInput struct { - _ struct{} `type:"structure"` - - // Information about which fields will be present in the layout, and information - // about the order of the fields. - // - // Content is a required field - Content *LayoutContent `locationName:"content" type:"structure" required:"true"` +type DeleteDomainInput struct { + _ struct{} `type:"structure" nopayload:"true"` // The unique identifier of the Cases domain. // // DomainId is a required field DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` - - // The name of the layout. It must be unique for the Cases domain. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5216,7 +6006,7 @@ type CreateLayoutInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateLayoutInput) String() string { +func (s DeleteDomainInput) String() string { return awsutil.Prettify(s) } @@ -5225,33 +6015,19 @@ func (s CreateLayoutInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateLayoutInput) GoString() string { +func (s DeleteDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLayoutInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLayoutInput"} - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) - } +func (s *DeleteDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.DomainId != nil && len(*s.DomainId) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Content != nil { - if err := s.Content.Validate(); err != nil { - invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -5259,36 +6035,14 @@ func (s *CreateLayoutInput) Validate() error { return nil } -// SetContent sets the Content field's value. -func (s *CreateLayoutInput) SetContent(v *LayoutContent) *CreateLayoutInput { - s.Content = v - return s -} - // SetDomainId sets the DomainId field's value. -func (s *CreateLayoutInput) SetDomainId(v string) *CreateLayoutInput { +func (s *DeleteDomainInput) SetDomainId(v string) *DeleteDomainInput { s.DomainId = &v return s } -// SetName sets the Name field's value. -func (s *CreateLayoutInput) SetName(v string) *CreateLayoutInput { - s.Name = &v - return s -} - -type CreateLayoutOutput struct { +type DeleteDomainOutput struct { _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the newly created layout. - // - // LayoutArn is a required field - LayoutArn *string `locationName:"layoutArn" min:"1" type:"string" required:"true"` - - // The unique identifier of the layout. - // - // LayoutId is a required field - LayoutId *string `locationName:"layoutId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5296,7 +6050,7 @@ type CreateLayoutOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateLayoutOutput) String() string { +func (s DeleteDomainOutput) String() string { return awsutil.Prettify(s) } @@ -5305,47 +6059,22 @@ func (s CreateLayoutOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateLayoutOutput) GoString() string { +func (s DeleteDomainOutput) GoString() string { return s.String() } -// SetLayoutArn sets the LayoutArn field's value. -func (s *CreateLayoutOutput) SetLayoutArn(v string) *CreateLayoutOutput { - s.LayoutArn = &v - return s -} - -// SetLayoutId sets the LayoutId field's value. -func (s *CreateLayoutOutput) SetLayoutId(v string) *CreateLayoutOutput { - s.LayoutId = &v - return s -} - -type CreateRelatedItemInput struct { - _ struct{} `type:"structure"` - - // A unique identifier of the case. - // - // CaseId is a required field - CaseId *string `location:"uri" locationName:"caseId" min:"1" type:"string" required:"true"` - - // The content of a related item to be created. - // - // Content is a required field - Content *RelatedItemInputContent `locationName:"content" type:"structure" required:"true"` +type DeleteFieldInput struct { + _ struct{} `type:"structure" nopayload:"true"` // The unique identifier of the Cases domain. // - // DomainId is a required field - DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` - - // Represents the creator of the related item. - PerformedBy *UserUnion `locationName:"performedBy" type:"structure"` + // DomainId is a required field + DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` - // The type of a related item. + // The unique identifier of a field. // - // Type is a required field - Type *string `locationName:"type" type:"string" required:"true" enum:"RelatedItemType"` + // FieldId is a required field + FieldId *string `location:"uri" locationName:"fieldId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5353,7 +6082,7 @@ type CreateRelatedItemInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateRelatedItemInput) String() string { +func (s DeleteFieldInput) String() string { return awsutil.Prettify(s) } @@ -5362,40 +6091,24 @@ func (s CreateRelatedItemInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateRelatedItemInput) GoString() string { +func (s DeleteFieldInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRelatedItemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRelatedItemInput"} - if s.CaseId == nil { - invalidParams.Add(request.NewErrParamRequired("CaseId")) - } - if s.CaseId != nil && len(*s.CaseId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CaseId", 1)) - } - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) - } +func (s *DeleteFieldInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFieldInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.DomainId != nil && len(*s.DomainId) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.Content != nil { - if err := s.Content.Validate(); err != nil { - invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) - } + if s.FieldId == nil { + invalidParams.Add(request.NewErrParamRequired("FieldId")) } - if s.PerformedBy != nil { - if err := s.PerformedBy.Validate(); err != nil { - invalidParams.AddNested("PerformedBy", err.(request.ErrInvalidParams)) - } + if s.FieldId != nil && len(*s.FieldId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FieldId", 1)) } if invalidParams.Len() > 0 { @@ -5404,48 +6117,20 @@ func (s *CreateRelatedItemInput) Validate() error { return nil } -// SetCaseId sets the CaseId field's value. -func (s *CreateRelatedItemInput) SetCaseId(v string) *CreateRelatedItemInput { - s.CaseId = &v - return s -} - -// SetContent sets the Content field's value. -func (s *CreateRelatedItemInput) SetContent(v *RelatedItemInputContent) *CreateRelatedItemInput { - s.Content = v - return s -} - // SetDomainId sets the DomainId field's value. -func (s *CreateRelatedItemInput) SetDomainId(v string) *CreateRelatedItemInput { +func (s *DeleteFieldInput) SetDomainId(v string) *DeleteFieldInput { s.DomainId = &v return s } -// SetPerformedBy sets the PerformedBy field's value. -func (s *CreateRelatedItemInput) SetPerformedBy(v *UserUnion) *CreateRelatedItemInput { - s.PerformedBy = v - return s -} - -// SetType sets the Type field's value. -func (s *CreateRelatedItemInput) SetType(v string) *CreateRelatedItemInput { - s.Type = &v +// SetFieldId sets the FieldId field's value. +func (s *DeleteFieldInput) SetFieldId(v string) *DeleteFieldInput { + s.FieldId = &v return s } -type CreateRelatedItemOutput struct { +type DeleteFieldOutput struct { _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the related item. - // - // RelatedItemArn is a required field - RelatedItemArn *string `locationName:"relatedItemArn" min:"1" type:"string" required:"true"` - - // The unique identifier of the related item. - // - // RelatedItemId is a required field - RelatedItemId *string `locationName:"relatedItemId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5453,7 +6138,7 @@ type CreateRelatedItemOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateRelatedItemOutput) String() string { +func (s DeleteFieldOutput) String() string { return awsutil.Prettify(s) } @@ -5462,47 +6147,22 @@ func (s CreateRelatedItemOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateRelatedItemOutput) GoString() string { +func (s DeleteFieldOutput) GoString() string { return s.String() } -// SetRelatedItemArn sets the RelatedItemArn field's value. -func (s *CreateRelatedItemOutput) SetRelatedItemArn(v string) *CreateRelatedItemOutput { - s.RelatedItemArn = &v - return s -} - -// SetRelatedItemId sets the RelatedItemId field's value. -func (s *CreateRelatedItemOutput) SetRelatedItemId(v string) *CreateRelatedItemOutput { - s.RelatedItemId = &v - return s -} - -type CreateTemplateInput struct { - _ struct{} `type:"structure"` - - // A brief description of the template. - Description *string `locationName:"description" type:"string"` +type DeleteLayoutInput struct { + _ struct{} `type:"structure" nopayload:"true"` // The unique identifier of the Cases domain. // // DomainId is a required field DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` - // Configuration of layouts associated to the template. - LayoutConfiguration *LayoutConfiguration `locationName:"layoutConfiguration" type:"structure"` - - // A name for the template. It must be unique per domain. + // The unique identifier of the layout. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // A list of fields that must contain a value for a case to be successfully - // created with this template. - RequiredFields []*RequiredField `locationName:"requiredFields" type:"list"` - - // The status of the template. - Status *string `locationName:"status" type:"string" enum:"TemplateStatus"` + // LayoutId is a required field + LayoutId *string `location:"uri" locationName:"layoutId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5510,7 +6170,7 @@ type CreateTemplateInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateTemplateInput) String() string { +func (s DeleteLayoutInput) String() string { return awsutil.Prettify(s) } @@ -5519,39 +6179,24 @@ func (s CreateTemplateInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateTemplateInput) GoString() string { +func (s DeleteLayoutInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTemplateInput"} +func (s *DeleteLayoutInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLayoutInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.DomainId != nil && len(*s.DomainId) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.LayoutConfiguration != nil { - if err := s.LayoutConfiguration.Validate(); err != nil { - invalidParams.AddNested("LayoutConfiguration", err.(request.ErrInvalidParams)) - } + if s.LayoutId == nil { + invalidParams.Add(request.NewErrParamRequired("LayoutId")) } - if s.RequiredFields != nil { - for i, v := range s.RequiredFields { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RequiredFields", i), err.(request.ErrInvalidParams)) - } - } + if s.LayoutId != nil && len(*s.LayoutId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayoutId", 1)) } if invalidParams.Len() > 0 { @@ -5560,54 +6205,20 @@ func (s *CreateTemplateInput) Validate() error { return nil } -// SetDescription sets the Description field's value. -func (s *CreateTemplateInput) SetDescription(v string) *CreateTemplateInput { - s.Description = &v - return s -} - // SetDomainId sets the DomainId field's value. -func (s *CreateTemplateInput) SetDomainId(v string) *CreateTemplateInput { +func (s *DeleteLayoutInput) SetDomainId(v string) *DeleteLayoutInput { s.DomainId = &v return s } -// SetLayoutConfiguration sets the LayoutConfiguration field's value. -func (s *CreateTemplateInput) SetLayoutConfiguration(v *LayoutConfiguration) *CreateTemplateInput { - s.LayoutConfiguration = v - return s -} - -// SetName sets the Name field's value. -func (s *CreateTemplateInput) SetName(v string) *CreateTemplateInput { - s.Name = &v - return s -} - -// SetRequiredFields sets the RequiredFields field's value. -func (s *CreateTemplateInput) SetRequiredFields(v []*RequiredField) *CreateTemplateInput { - s.RequiredFields = v - return s -} - -// SetStatus sets the Status field's value. -func (s *CreateTemplateInput) SetStatus(v string) *CreateTemplateInput { - s.Status = &v +// SetLayoutId sets the LayoutId field's value. +func (s *DeleteLayoutInput) SetLayoutId(v string) *DeleteLayoutInput { + s.LayoutId = &v return s } -type CreateTemplateOutput struct { +type DeleteLayoutOutput struct { _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the newly created template. - // - // TemplateArn is a required field - TemplateArn *string `locationName:"templateArn" min:"1" type:"string" required:"true"` - - // A unique identifier of a template. - // - // TemplateId is a required field - TemplateId *string `locationName:"templateId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5615,7 +6226,7 @@ type CreateTemplateOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateTemplateOutput) String() string { +func (s DeleteLayoutOutput) String() string { return awsutil.Prettify(s) } @@ -5624,29 +6235,22 @@ func (s CreateTemplateOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateTemplateOutput) GoString() string { +func (s DeleteLayoutOutput) GoString() string { return s.String() } -// SetTemplateArn sets the TemplateArn field's value. -func (s *CreateTemplateOutput) SetTemplateArn(v string) *CreateTemplateOutput { - s.TemplateArn = &v - return s -} - -// SetTemplateId sets the TemplateId field's value. -func (s *CreateTemplateOutput) SetTemplateId(v string) *CreateTemplateOutput { - s.TemplateId = &v - return s -} - -type DeleteDomainInput struct { +type DeleteTemplateInput struct { _ struct{} `type:"structure" nopayload:"true"` // The unique identifier of the Cases domain. // // DomainId is a required field DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` + + // A unique identifier of a template. + // + // TemplateId is a required field + TemplateId *string `location:"uri" locationName:"templateId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5654,7 +6258,7 @@ type DeleteDomainInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteDomainInput) String() string { +func (s DeleteTemplateInput) String() string { return awsutil.Prettify(s) } @@ -5663,19 +6267,25 @@ func (s DeleteDomainInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteDomainInput) GoString() string { +func (s DeleteTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"} +func (s *DeleteTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTemplateInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.DomainId != nil && len(*s.DomainId) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainId", 1)) } + if s.TemplateId == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateId")) + } + if s.TemplateId != nil && len(*s.TemplateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5684,12 +6294,18 @@ func (s *DeleteDomainInput) Validate() error { } // SetDomainId sets the DomainId field's value. -func (s *DeleteDomainInput) SetDomainId(v string) *DeleteDomainInput { +func (s *DeleteTemplateInput) SetDomainId(v string) *DeleteTemplateInput { s.DomainId = &v return s } -type DeleteDomainOutput struct { +// SetTemplateId sets the TemplateId field's value. +func (s *DeleteTemplateInput) SetTemplateId(v string) *DeleteTemplateInput { + s.TemplateId = &v + return s +} + +type DeleteTemplateOutput struct { _ struct{} `type:"structure"` } @@ -5698,7 +6314,7 @@ type DeleteDomainOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteDomainOutput) String() string { +func (s DeleteTemplateOutput) String() string { return awsutil.Prettify(s) } @@ -5707,7 +6323,7 @@ func (s DeleteDomainOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteDomainOutput) GoString() string { +func (s DeleteTemplateOutput) GoString() string { return s.String() } @@ -7130,6 +7746,12 @@ func (s *GetDomainOutput) SetTags(v map[string]*string) *GetDomainOutput { type GetFieldResponse struct { _ struct{} `type:"structure"` + // The timestamp for when the resource was created. + CreatedTime *time.Time `locationName:"createdTime" type:"timestamp" timestampFormat:"iso8601"` + + // Indicates whether the resource has been deleted. + Deleted *bool `locationName:"deleted" type:"boolean"` + // Description of the field. Description *string `locationName:"description" type:"string"` @@ -7143,6 +7765,9 @@ type GetFieldResponse struct { // FieldId is a required field FieldId *string `locationName:"fieldId" min:"1" type:"string" required:"true"` + // The timestamp for when the resource was created or last modified. + LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"iso8601"` + // Name of the field. // // Name is a required field @@ -7181,6 +7806,18 @@ func (s GetFieldResponse) GoString() string { return s.String() } +// SetCreatedTime sets the CreatedTime field's value. +func (s *GetFieldResponse) SetCreatedTime(v time.Time) *GetFieldResponse { + s.CreatedTime = &v + return s +} + +// SetDeleted sets the Deleted field's value. +func (s *GetFieldResponse) SetDeleted(v bool) *GetFieldResponse { + s.Deleted = &v + return s +} + // SetDescription sets the Description field's value. func (s *GetFieldResponse) SetDescription(v string) *GetFieldResponse { s.Description = &v @@ -7199,6 +7836,12 @@ func (s *GetFieldResponse) SetFieldId(v string) *GetFieldResponse { return s } +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *GetFieldResponse) SetLastModifiedTime(v time.Time) *GetFieldResponse { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *GetFieldResponse) SetName(v string) *GetFieldResponse { s.Name = &v @@ -7298,6 +7941,15 @@ type GetLayoutOutput struct { // Content is a required field Content *LayoutContent `locationName:"content" type:"structure" required:"true"` + // The timestamp for when the resource was created. + CreatedTime *time.Time `locationName:"createdTime" type:"timestamp" timestampFormat:"iso8601"` + + // Indicates whether the resource has been deleted. + Deleted *bool `locationName:"deleted" type:"boolean"` + + // The timestamp for when the resource was created or last modified. + LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"iso8601"` + // The Amazon Resource Name (ARN) of the newly created layout. // // LayoutArn is a required field @@ -7342,6 +7994,24 @@ func (s *GetLayoutOutput) SetContent(v *LayoutContent) *GetLayoutOutput { return s } +// SetCreatedTime sets the CreatedTime field's value. +func (s *GetLayoutOutput) SetCreatedTime(v time.Time) *GetLayoutOutput { + s.CreatedTime = &v + return s +} + +// SetDeleted sets the Deleted field's value. +func (s *GetLayoutOutput) SetDeleted(v bool) *GetLayoutOutput { + s.Deleted = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *GetLayoutOutput) SetLastModifiedTime(v time.Time) *GetLayoutOutput { + s.LastModifiedTime = &v + return s +} + // SetLayoutArn sets the LayoutArn field's value. func (s *GetLayoutOutput) SetLayoutArn(v string) *GetLayoutOutput { s.LayoutArn = &v @@ -7435,9 +8105,18 @@ func (s *GetTemplateInput) SetTemplateId(v string) *GetTemplateInput { type GetTemplateOutput struct { _ struct{} `type:"structure"` + // The timestamp for when the resource was created. + CreatedTime *time.Time `locationName:"createdTime" type:"timestamp" timestampFormat:"iso8601"` + + // Indicates whether the resource has been deleted. + Deleted *bool `locationName:"deleted" type:"boolean"` + // A brief description of the template. Description *string `locationName:"description" type:"string"` + // The timestamp for when the resource was created or last modified. + LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"iso8601"` + // Configuration of layouts associated to the template. LayoutConfiguration *LayoutConfiguration `locationName:"layoutConfiguration" type:"structure"` @@ -7488,12 +8167,30 @@ func (s GetTemplateOutput) GoString() string { return s.String() } +// SetCreatedTime sets the CreatedTime field's value. +func (s *GetTemplateOutput) SetCreatedTime(v time.Time) *GetTemplateOutput { + s.CreatedTime = &v + return s +} + +// SetDeleted sets the Deleted field's value. +func (s *GetTemplateOutput) SetDeleted(v bool) *GetTemplateOutput { + s.Deleted = &v + return s +} + // SetDescription sets the Description field's value. func (s *GetTemplateOutput) SetDescription(v string) *GetTemplateOutput { s.Description = &v return s } +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *GetTemplateOutput) SetLastModifiedTime(v time.Time) *GetTemplateOutput { + s.LastModifiedTime = &v + return s +} + // SetLayoutConfiguration sets the LayoutConfiguration field's value. func (s *GetTemplateOutput) SetLayoutConfiguration(v *LayoutConfiguration) *GetTemplateOutput { s.LayoutConfiguration = v diff --git a/service/connectcases/connectcasesiface/interface.go b/service/connectcases/connectcasesiface/interface.go index 6c5852c4ad..0cbb991d2e 100644 --- a/service/connectcases/connectcasesiface/interface.go +++ b/service/connectcases/connectcasesiface/interface.go @@ -96,6 +96,18 @@ type ConnectCasesAPI interface { DeleteDomainWithContext(aws.Context, *connectcases.DeleteDomainInput, ...request.Option) (*connectcases.DeleteDomainOutput, error) DeleteDomainRequest(*connectcases.DeleteDomainInput) (*request.Request, *connectcases.DeleteDomainOutput) + DeleteField(*connectcases.DeleteFieldInput) (*connectcases.DeleteFieldOutput, error) + DeleteFieldWithContext(aws.Context, *connectcases.DeleteFieldInput, ...request.Option) (*connectcases.DeleteFieldOutput, error) + DeleteFieldRequest(*connectcases.DeleteFieldInput) (*request.Request, *connectcases.DeleteFieldOutput) + + DeleteLayout(*connectcases.DeleteLayoutInput) (*connectcases.DeleteLayoutOutput, error) + DeleteLayoutWithContext(aws.Context, *connectcases.DeleteLayoutInput, ...request.Option) (*connectcases.DeleteLayoutOutput, error) + DeleteLayoutRequest(*connectcases.DeleteLayoutInput) (*request.Request, *connectcases.DeleteLayoutOutput) + + DeleteTemplate(*connectcases.DeleteTemplateInput) (*connectcases.DeleteTemplateOutput, error) + DeleteTemplateWithContext(aws.Context, *connectcases.DeleteTemplateInput, ...request.Option) (*connectcases.DeleteTemplateOutput, error) + DeleteTemplateRequest(*connectcases.DeleteTemplateInput) (*request.Request, *connectcases.DeleteTemplateOutput) + GetCase(*connectcases.GetCaseInput) (*connectcases.GetCaseOutput, error) GetCaseWithContext(aws.Context, *connectcases.GetCaseInput, ...request.Option) (*connectcases.GetCaseOutput, error) GetCaseRequest(*connectcases.GetCaseInput) (*request.Request, *connectcases.GetCaseOutput) diff --git a/service/inspector2/api.go b/service/inspector2/api.go index 57d4c2f34f..94df1c69a3 100644 --- a/service/inspector2/api.go +++ b/service/inspector2/api.go @@ -10951,6 +10951,10 @@ type CoverageFilterCriteria struct { // AWS_ECR_REPOSITORY or AWS_ACCOUNT. ResourceType []*CoverageStringFilter `locationName:"resourceType" min:"1" type:"list"` + // The filter to search for Amazon EC2 instance coverage by scan mode. Valid + // values are EC2_SSM_AGENT_BASED and EC2_HYBRID. + ScanMode []*CoverageStringFilter `locationName:"scanMode" min:"1" type:"list"` + // The scan status code to filter on. Valid values are: ValidationException, // InternalServerException, ResourceNotFoundException, BadRequestException, // and ThrottlingException. @@ -11017,6 +11021,9 @@ func (s *CoverageFilterCriteria) Validate() error { if s.ResourceType != nil && len(s.ResourceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) } + if s.ScanMode != nil && len(s.ScanMode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScanMode", 1)) + } if s.ScanStatusCode != nil && len(s.ScanStatusCode) < 1 { invalidParams.Add(request.NewErrParamMinLen("ScanStatusCode", 1)) } @@ -11116,6 +11123,16 @@ func (s *CoverageFilterCriteria) Validate() error { } } } + if s.ScanMode != nil { + for i, v := range s.ScanMode { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ScanMode", i), err.(request.ErrInvalidParams)) + } + } + } if s.ScanStatusCode != nil { for i, v := range s.ScanStatusCode { if v == nil { @@ -11219,6 +11236,12 @@ func (s *CoverageFilterCriteria) SetResourceType(v []*CoverageStringFilter) *Cov return s } +// SetScanMode sets the ScanMode field's value. +func (s *CoverageFilterCriteria) SetScanMode(v []*CoverageStringFilter) *CoverageFilterCriteria { + s.ScanMode = v + return s +} + // SetScanStatusCode sets the ScanStatusCode field's value. func (s *CoverageFilterCriteria) SetScanStatusCode(v []*CoverageStringFilter) *CoverageFilterCriteria { s.ScanStatusCode = v @@ -11402,6 +11425,9 @@ type CoveredResource struct { // ResourceType is a required field ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"CoverageResourceType"` + // The scan method that is applied to the instance. + ScanMode *string `locationName:"scanMode" type:"string" enum:"ScanMode"` + // The status of the scan covering the resource. ScanStatus *ScanStatus `locationName:"scanStatus" type:"structure"` @@ -11459,6 +11485,12 @@ func (s *CoveredResource) SetResourceType(v string) *CoveredResource { return s } +// SetScanMode sets the ScanMode field's value. +func (s *CoveredResource) SetScanMode(v string) *CoveredResource { + s.ScanMode = &v + return s +} + // SetScanStatus sets the ScanStatus field's value. func (s *CoveredResource) SetScanStatus(v *ScanStatus) *CoveredResource { s.ScanStatus = v @@ -13053,6 +13085,86 @@ func (s *DisassociateMemberOutput) SetAccountId(v string) *DisassociateMemberOut return s } +// Enables agent-based scanning, which scans instances that are not managed +// by SSM. +type Ec2Configuration struct { + _ struct{} `type:"structure"` + + // The scan method that is applied to the instance. + // + // ScanMode is a required field + ScanMode *string `locationName:"scanMode" type:"string" required:"true" enum:"Ec2ScanMode"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Ec2Configuration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Ec2Configuration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Ec2Configuration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Ec2Configuration"} + if s.ScanMode == nil { + invalidParams.Add(request.NewErrParamRequired("ScanMode")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScanMode sets the ScanMode field's value. +func (s *Ec2Configuration) SetScanMode(v string) *Ec2Configuration { + s.ScanMode = &v + return s +} + +// Details about the state of the EC2 scan configuration for your environment. +type Ec2ConfigurationState struct { + _ struct{} `type:"structure"` + + // An object that contains details about the state of the Amazon EC2 scan mode. + ScanModeState *Ec2ScanModeState `locationName:"scanModeState" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Ec2ConfigurationState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Ec2ConfigurationState) GoString() string { + return s.String() +} + +// SetScanModeState sets the ScanModeState field's value. +func (s *Ec2ConfigurationState) SetScanModeState(v *Ec2ScanModeState) *Ec2ConfigurationState { + s.ScanModeState = v + return s +} + // The details that define an aggregation based on Amazon EC2 instances. type Ec2InstanceAggregation struct { _ struct{} `type:"structure"` @@ -13333,6 +13445,47 @@ func (s *Ec2Metadata) SetTags(v map[string]*string) *Ec2Metadata { return s } +// The state of your Amazon EC2 scan mode configuration. +type Ec2ScanModeState struct { + _ struct{} `type:"structure"` + + // The scan method that is applied to the instance. + ScanMode *string `locationName:"scanMode" type:"string" enum:"Ec2ScanMode"` + + // The status of the Amazon EC2 scan mode setting. + ScanModeStatus *string `locationName:"scanModeStatus" type:"string" enum:"Ec2ScanModeStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Ec2ScanModeState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Ec2ScanModeState) GoString() string { + return s.String() +} + +// SetScanMode sets the ScanMode field's value. +func (s *Ec2ScanModeState) SetScanMode(v string) *Ec2ScanModeState { + s.ScanMode = &v + return s +} + +// SetScanModeStatus sets the ScanModeStatus field's value. +func (s *Ec2ScanModeState) SetScanModeStatus(v string) *Ec2ScanModeState { + s.ScanModeStatus = &v + return s +} + // Details about the ECR automated re-scan duration setting for your environment. type EcrConfiguration struct { _ struct{} `type:"structure"` @@ -15163,7 +15316,8 @@ type Finding struct { // An object that contains details of the Amazon Inspector score. InspectorScoreDetails *InspectorScoreDetails `locationName:"inspectorScoreDetails" type:"structure"` - // The date and time that the finding was last observed. + // The date and time the finding was last observed. This timestamp for this + // field remains unchanged until a finding is updated. // // LastObservedAt is a required field LastObservedAt *time.Time `locationName:"lastObservedAt" type:"timestamp" required:"true"` @@ -15862,7 +16016,7 @@ type GetCisScanReportOutput struct { // The status. Status *string `locationName:"status" type:"string" enum:"CisReportStatus"` - // The URL where the CIS scan report PDF can be downloaded. + // The URL where a PDF of the CIS scan report can be downloaded. Url *string `locationName:"url" type:"string"` } @@ -16097,6 +16251,10 @@ func (s GetConfigurationInput) GoString() string { type GetConfigurationOutput struct { _ struct{} `type:"structure"` + // Specifies how the Amazon EC2 automated scan mode is currently configured + // for your environment. + Ec2Configuration *Ec2ConfigurationState `locationName:"ec2Configuration" type:"structure"` + // Specifies how the ECR automated re-scan duration is currently configured // for your environment. EcrConfiguration *EcrConfigurationState `locationName:"ecrConfiguration" type:"structure"` @@ -16120,6 +16278,12 @@ func (s GetConfigurationOutput) GoString() string { return s.String() } +// SetEc2Configuration sets the Ec2Configuration field's value. +func (s *GetConfigurationOutput) SetEc2Configuration(v *Ec2ConfigurationState) *GetConfigurationOutput { + s.Ec2Configuration = v + return s +} + // SetEcrConfiguration sets the EcrConfiguration field's value. func (s *GetConfigurationOutput) SetEcrConfiguration(v *EcrConfigurationState) *GetConfigurationOutput { s.EcrConfiguration = v @@ -23765,10 +23929,11 @@ func (s *UpdateCisTargets) SetTargetResourceTags(v map[string][]*string) *Update type UpdateConfigurationInput struct { _ struct{} `type:"structure"` + // Specifies how the Amazon EC2 automated scan will be updated for your environment. + Ec2Configuration *Ec2Configuration `locationName:"ec2Configuration" type:"structure"` + // Specifies how the ECR automated re-scan will be updated for your environment. - // - // EcrConfiguration is a required field - EcrConfiguration *EcrConfiguration `locationName:"ecrConfiguration" type:"structure" required:"true"` + EcrConfiguration *EcrConfiguration `locationName:"ecrConfiguration" type:"structure"` } // String returns the string representation. @@ -23792,8 +23957,10 @@ func (s UpdateConfigurationInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateConfigurationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationInput"} - if s.EcrConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("EcrConfiguration")) + if s.Ec2Configuration != nil { + if err := s.Ec2Configuration.Validate(); err != nil { + invalidParams.AddNested("Ec2Configuration", err.(request.ErrInvalidParams)) + } } if s.EcrConfiguration != nil { if err := s.EcrConfiguration.Validate(); err != nil { @@ -23807,6 +23974,12 @@ func (s *UpdateConfigurationInput) Validate() error { return nil } +// SetEc2Configuration sets the Ec2Configuration field's value. +func (s *UpdateConfigurationInput) SetEc2Configuration(v *Ec2Configuration) *UpdateConfigurationInput { + s.Ec2Configuration = v + return s +} + // SetEcrConfiguration sets the EcrConfiguration field's value. func (s *UpdateConfigurationInput) SetEcrConfiguration(v *EcrConfiguration) *UpdateConfigurationInput { s.EcrConfiguration = v @@ -25678,6 +25851,38 @@ func Ec2Platform_Values() []string { } } +const ( + // Ec2ScanModeEc2SsmAgentBased is a Ec2ScanMode enum value + Ec2ScanModeEc2SsmAgentBased = "EC2_SSM_AGENT_BASED" + + // Ec2ScanModeEc2Hybrid is a Ec2ScanMode enum value + Ec2ScanModeEc2Hybrid = "EC2_HYBRID" +) + +// Ec2ScanMode_Values returns all elements of the Ec2ScanMode enum +func Ec2ScanMode_Values() []string { + return []string{ + Ec2ScanModeEc2SsmAgentBased, + Ec2ScanModeEc2Hybrid, + } +} + +const ( + // Ec2ScanModeStatusSuccess is a Ec2ScanModeStatus enum value + Ec2ScanModeStatusSuccess = "SUCCESS" + + // Ec2ScanModeStatusPending is a Ec2ScanModeStatus enum value + Ec2ScanModeStatusPending = "PENDING" +) + +// Ec2ScanModeStatus_Values returns all elements of the Ec2ScanModeStatus enum +func Ec2ScanModeStatus_Values() []string { + return []string{ + Ec2ScanModeStatusSuccess, + Ec2ScanModeStatusPending, + } +} + const ( // EcrPullDateRescanDurationDays14 is a EcrPullDateRescanDuration enum value EcrPullDateRescanDurationDays14 = "DAYS_14" @@ -26638,6 +26843,22 @@ func SbomReportFormat_Values() []string { } } +const ( + // ScanModeEc2SsmAgentBased is a ScanMode enum value + ScanModeEc2SsmAgentBased = "EC2_SSM_AGENT_BASED" + + // ScanModeEc2Agentless is a ScanMode enum value + ScanModeEc2Agentless = "EC2_AGENTLESS" +) + +// ScanMode_Values returns all elements of the ScanMode enum +func ScanMode_Values() []string { + return []string{ + ScanModeEc2SsmAgentBased, + ScanModeEc2Agentless, + } +} + const ( // ScanStatusCodeActive is a ScanStatusCode enum value ScanStatusCodeActive = "ACTIVE" diff --git a/service/timestreamquery/api.go b/service/timestreamquery/api.go index 5fce0c0b8c..7422019963 100644 --- a/service/timestreamquery/api.go +++ b/service/timestreamquery/api.go @@ -102,7 +102,7 @@ func (c *TimestreamQuery) CancelQueryRequest(input *CancelQueryInput) (req *requ // You are not authorized to perform this action. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ThrottlingException @@ -223,7 +223,7 @@ func (c *TimestreamQuery) CreateScheduledQueryRequest(input *CreateScheduledQuer // Unable to poll results for a cancelled query. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ServiceQuotaExceededException @@ -342,7 +342,7 @@ func (c *TimestreamQuery) DeleteScheduledQueryRequest(input *DeleteScheduledQuer // You are not authorized to perform this action. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ResourceNotFoundException @@ -379,6 +379,121 @@ func (c *TimestreamQuery) DeleteScheduledQueryWithContext(ctx aws.Context, input return out, req.Send() } +const opDescribeAccountSettings = "DescribeAccountSettings" + +// DescribeAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAccountSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeAccountSettings for more information on using the DescribeAccountSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DescribeAccountSettingsRequest method. +// req, resp := client.DescribeAccountSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeAccountSettings +func (c *TimestreamQuery) DescribeAccountSettingsRequest(input *DescribeAccountSettingsInput) (req *request.Request, output *DescribeAccountSettingsOutput) { + op := &request.Operation{ + Name: opDescribeAccountSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAccountSettingsInput{} + } + + output = &DescribeAccountSettingsOutput{} + req = c.newRequest(op, input, output) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// DescribeAccountSettings API operation for Amazon Timestream Query. +// +// Describes the settings for your account that include the query pricing model +// and the configured maximum TCUs the service can use for your query workload. +// +// You're charged only for the duration of compute units used for your workloads. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Timestream Query's +// API operation DescribeAccountSettings for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You are not authorized to perform this action. +// +// - InternalServerException +// The service was unable to fully process this request because of an internal +// server error. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeAccountSettings +func (c *TimestreamQuery) DescribeAccountSettings(input *DescribeAccountSettingsInput) (*DescribeAccountSettingsOutput, error) { + req, out := c.DescribeAccountSettingsRequest(input) + return out, req.Send() +} + +// DescribeAccountSettingsWithContext is the same as DescribeAccountSettings with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAccountSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *TimestreamQuery) DescribeAccountSettingsWithContext(ctx aws.Context, input *DescribeAccountSettingsInput, opts ...request.Option) (*DescribeAccountSettingsOutput, error) { + req, out := c.DescribeAccountSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeEndpoints = "DescribeEndpoints" // DescribeEndpointsRequest generates a "aws/request.Request" representing the @@ -450,7 +565,7 @@ func (c *TimestreamQuery) DescribeEndpointsRequest(input *DescribeEndpointsInput // Returned Error Types: // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ValidationException @@ -634,7 +749,7 @@ func (c *TimestreamQuery) DescribeScheduledQueryRequest(input *DescribeScheduled // You are not authorized to perform this action. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ResourceNotFoundException @@ -753,7 +868,7 @@ func (c *TimestreamQuery) ExecuteScheduledQueryRequest(input *ExecuteScheduledQu // You are not authorized to perform this action. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ResourceNotFoundException @@ -878,7 +993,7 @@ func (c *TimestreamQuery) ListScheduledQueriesRequest(input *ListScheduledQuerie // You are not authorized to perform this action. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ThrottlingException @@ -1214,7 +1329,7 @@ func (c *TimestreamQuery) PrepareQueryRequest(input *PrepareQueryInput) (req *re // You are not authorized to perform this action. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ThrottlingException @@ -1359,7 +1474,7 @@ func (c *TimestreamQuery) QueryRequest(input *QueryInput) (req *request.Request, // Unable to poll results for a cancelled query. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - QueryExecutionException @@ -1676,6 +1791,126 @@ func (c *TimestreamQuery) UntagResourceWithContext(ctx aws.Context, input *Untag return out, req.Send() } +const opUpdateAccountSettings = "UpdateAccountSettings" + +// UpdateAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccountSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAccountSettings for more information on using the UpdateAccountSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateAccountSettingsRequest method. +// req, resp := client.UpdateAccountSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UpdateAccountSettings +func (c *TimestreamQuery) UpdateAccountSettingsRequest(input *UpdateAccountSettingsInput) (req *request.Request, output *UpdateAccountSettingsOutput) { + op := &request.Operation{ + Name: opUpdateAccountSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAccountSettingsInput{} + } + + output = &UpdateAccountSettingsOutput{} + req = c.newRequest(op, input, output) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// UpdateAccountSettings API operation for Amazon Timestream Query. +// +// Transitions your account to use TCUs for query pricing and modifies the maximum +// query compute units that you've configured. If you reduce the value of MaxQueryTCU +// to a desired configuration, the new value can take up to 24 hours to be effective. +// +// After you've transitioned your account to use TCUs for query pricing, you +// can't transition to using bytes scanned for query pricing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Timestream Query's +// API operation UpdateAccountSettings for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You are not authorized to perform this action. +// +// - InternalServerException +// The service was unable to fully process this request because of an internal +// server error. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - ValidationException +// Invalid or malformed request. +// +// - InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UpdateAccountSettings +func (c *TimestreamQuery) UpdateAccountSettings(input *UpdateAccountSettingsInput) (*UpdateAccountSettingsOutput, error) { + req, out := c.UpdateAccountSettingsRequest(input) + return out, req.Send() +} + +// UpdateAccountSettingsWithContext is the same as UpdateAccountSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccountSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *TimestreamQuery) UpdateAccountSettingsWithContext(ctx aws.Context, input *UpdateAccountSettingsInput, opts ...request.Option) (*UpdateAccountSettingsOutput, error) { + req, out := c.UpdateAccountSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateScheduledQuery = "UpdateScheduledQuery" // UpdateScheduledQueryRequest generates a "aws/request.Request" representing the @@ -1758,7 +1993,7 @@ func (c *TimestreamQuery) UpdateScheduledQueryRequest(input *UpdateScheduledQuer // You are not authorized to perform this action. // // - InternalServerException -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. // // - ResourceNotFoundException @@ -2459,6 +2694,69 @@ func (s DeleteScheduledQueryOutput) GoString() string { return s.String() } +type DescribeAccountSettingsInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAccountSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAccountSettingsInput) GoString() string { + return s.String() +} + +type DescribeAccountSettingsOutput struct { + _ struct{} `type:"structure"` + + // The maximum number of Timestream compute units (https://docs.aws.amazon.com/timestream/latest/developerguide/tcu.html) + // (TCUs) the service will use at any point in time to serve your queries. + MaxQueryTCU *int64 `type:"integer"` + + // The pricing model for queries in your account. + QueryPricingModel *string `type:"string" enum:"QueryPricingModel"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAccountSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAccountSettingsOutput) GoString() string { + return s.String() +} + +// SetMaxQueryTCU sets the MaxQueryTCU field's value. +func (s *DescribeAccountSettingsOutput) SetMaxQueryTCU(v int64) *DescribeAccountSettingsOutput { + s.MaxQueryTCU = &v + return s +} + +// SetQueryPricingModel sets the QueryPricingModel field's value. +func (s *DescribeAccountSettingsOutput) SetQueryPricingModel(v string) *DescribeAccountSettingsOutput { + s.QueryPricingModel = &v + return s +} + type DescribeEndpointsInput struct { _ struct{} `type:"structure"` } @@ -2897,6 +3195,9 @@ type ExecutionStats struct { // Bytes metered for a single scheduled query run. BytesMetered *int64 `type:"long"` + // Bytes scanned for a single scheduled query run. + CumulativeBytesScanned *int64 `type:"long"` + // Data writes metered for records ingested in a single scheduled query run. DataWrites *int64 `type:"long"` @@ -2936,6 +3237,12 @@ func (s *ExecutionStats) SetBytesMetered(v int64) *ExecutionStats { return s } +// SetCumulativeBytesScanned sets the CumulativeBytesScanned field's value. +func (s *ExecutionStats) SetCumulativeBytesScanned(v int64) *ExecutionStats { + s.CumulativeBytesScanned = &v + return s +} + // SetDataWrites sets the DataWrites field's value. func (s *ExecutionStats) SetDataWrites(v int64) *ExecutionStats { s.DataWrites = &v @@ -2960,7 +3267,7 @@ func (s *ExecutionStats) SetRecordsIngested(v int64) *ExecutionStats { return s } -// Timestream was unable to fully process this request because of an internal +// The service was unable to fully process this request because of an internal // server error. type InternalServerException struct { _ struct{} `type:"structure"` @@ -5638,6 +5945,94 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +type UpdateAccountSettingsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of compute units the service will use at any point in + // time to serve your queries. To run queries, you must set a minimum capacity + // of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, + // 4, 8, 16, 32, and so on. + // + // The maximum value supported for MaxQueryTCU is 1000. To request an increase + // to this soft limit, contact Amazon Web Services Support. For information + // about the default quota for maxQueryTCU, see Default quotas (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.default). + MaxQueryTCU *int64 `type:"integer"` + + // The pricing model for queries in an account. + QueryPricingModel *string `type:"string" enum:"QueryPricingModel"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAccountSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAccountSettingsInput) GoString() string { + return s.String() +} + +// SetMaxQueryTCU sets the MaxQueryTCU field's value. +func (s *UpdateAccountSettingsInput) SetMaxQueryTCU(v int64) *UpdateAccountSettingsInput { + s.MaxQueryTCU = &v + return s +} + +// SetQueryPricingModel sets the QueryPricingModel field's value. +func (s *UpdateAccountSettingsInput) SetQueryPricingModel(v string) *UpdateAccountSettingsInput { + s.QueryPricingModel = &v + return s +} + +type UpdateAccountSettingsOutput struct { + _ struct{} `type:"structure"` + + // The configured maximum number of compute units the service will use at any + // point in time to serve your queries. + MaxQueryTCU *int64 `type:"integer"` + + // The pricing model for an account. + QueryPricingModel *string `type:"string" enum:"QueryPricingModel"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAccountSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAccountSettingsOutput) GoString() string { + return s.String() +} + +// SetMaxQueryTCU sets the MaxQueryTCU field's value. +func (s *UpdateAccountSettingsOutput) SetMaxQueryTCU(v int64) *UpdateAccountSettingsOutput { + s.MaxQueryTCU = &v + return s +} + +// SetQueryPricingModel sets the QueryPricingModel field's value. +func (s *UpdateAccountSettingsOutput) SetQueryPricingModel(v string) *UpdateAccountSettingsOutput { + s.QueryPricingModel = &v + return s +} + type UpdateScheduledQueryInput struct { _ struct{} `type:"structure"` @@ -5827,6 +6222,22 @@ func MeasureValueType_Values() []string { } } +const ( + // QueryPricingModelBytesScanned is a QueryPricingModel enum value + QueryPricingModelBytesScanned = "BYTES_SCANNED" + + // QueryPricingModelComputeUnits is a QueryPricingModel enum value + QueryPricingModelComputeUnits = "COMPUTE_UNITS" +) + +// QueryPricingModel_Values returns all elements of the QueryPricingModel enum +func QueryPricingModel_Values() []string { + return []string{ + QueryPricingModelBytesScanned, + QueryPricingModelComputeUnits, + } +} + const ( // S3EncryptionOptionSseS3 is a S3EncryptionOption enum value S3EncryptionOptionSseS3 = "SSE_S3" diff --git a/service/timestreamquery/errors.go b/service/timestreamquery/errors.go index 6e977907c7..28065a8483 100644 --- a/service/timestreamquery/errors.go +++ b/service/timestreamquery/errors.go @@ -23,7 +23,7 @@ const ( // ErrCodeInternalServerException for service response error code // "InternalServerException". // - // Timestream was unable to fully process this request because of an internal + // The service was unable to fully process this request because of an internal // server error. ErrCodeInternalServerException = "InternalServerException" diff --git a/service/timestreamquery/timestreamqueryiface/interface.go b/service/timestreamquery/timestreamqueryiface/interface.go index 1aa5cc087b..d886779ae4 100644 --- a/service/timestreamquery/timestreamqueryiface/interface.go +++ b/service/timestreamquery/timestreamqueryiface/interface.go @@ -72,6 +72,10 @@ type TimestreamQueryAPI interface { DeleteScheduledQueryWithContext(aws.Context, *timestreamquery.DeleteScheduledQueryInput, ...request.Option) (*timestreamquery.DeleteScheduledQueryOutput, error) DeleteScheduledQueryRequest(*timestreamquery.DeleteScheduledQueryInput) (*request.Request, *timestreamquery.DeleteScheduledQueryOutput) + DescribeAccountSettings(*timestreamquery.DescribeAccountSettingsInput) (*timestreamquery.DescribeAccountSettingsOutput, error) + DescribeAccountSettingsWithContext(aws.Context, *timestreamquery.DescribeAccountSettingsInput, ...request.Option) (*timestreamquery.DescribeAccountSettingsOutput, error) + DescribeAccountSettingsRequest(*timestreamquery.DescribeAccountSettingsInput) (*request.Request, *timestreamquery.DescribeAccountSettingsOutput) + DescribeEndpoints(*timestreamquery.DescribeEndpointsInput) (*timestreamquery.DescribeEndpointsOutput, error) DescribeEndpointsWithContext(aws.Context, *timestreamquery.DescribeEndpointsInput, ...request.Option) (*timestreamquery.DescribeEndpointsOutput, error) DescribeEndpointsRequest(*timestreamquery.DescribeEndpointsInput) (*request.Request, *timestreamquery.DescribeEndpointsOutput) @@ -117,6 +121,10 @@ type TimestreamQueryAPI interface { UntagResourceWithContext(aws.Context, *timestreamquery.UntagResourceInput, ...request.Option) (*timestreamquery.UntagResourceOutput, error) UntagResourceRequest(*timestreamquery.UntagResourceInput) (*request.Request, *timestreamquery.UntagResourceOutput) + UpdateAccountSettings(*timestreamquery.UpdateAccountSettingsInput) (*timestreamquery.UpdateAccountSettingsOutput, error) + UpdateAccountSettingsWithContext(aws.Context, *timestreamquery.UpdateAccountSettingsInput, ...request.Option) (*timestreamquery.UpdateAccountSettingsOutput, error) + UpdateAccountSettingsRequest(*timestreamquery.UpdateAccountSettingsInput) (*request.Request, *timestreamquery.UpdateAccountSettingsOutput) + UpdateScheduledQuery(*timestreamquery.UpdateScheduledQueryInput) (*timestreamquery.UpdateScheduledQueryOutput, error) UpdateScheduledQueryWithContext(aws.Context, *timestreamquery.UpdateScheduledQueryInput, ...request.Option) (*timestreamquery.UpdateScheduledQueryOutput, error) UpdateScheduledQueryRequest(*timestreamquery.UpdateScheduledQueryInput) (*request.Request, *timestreamquery.UpdateScheduledQueryOutput) diff --git a/service/transcribeservice/api.go b/service/transcribeservice/api.go index 34d563278b..deb148bc62 100644 --- a/service/transcribeservice/api.go +++ b/service/transcribeservice/api.go @@ -5049,6 +5049,10 @@ func (s *BadRequestException) RequestID() string { type CallAnalyticsJob struct { _ struct{} `type:"structure"` + // Provides detailed information about a call analytics job, including information + // about skipped analytics features. + CallAnalyticsJobDetails *CallAnalyticsJobDetails `type:"structure"` + // The name of the Call Analytics job. Job names are case sensitive and must // be unique within an Amazon Web Services account. CallAnalyticsJobName *string `min:"1" type:"string"` @@ -5176,6 +5180,12 @@ func (s CallAnalyticsJob) GoString() string { return s.String() } +// SetCallAnalyticsJobDetails sets the CallAnalyticsJobDetails field's value. +func (s *CallAnalyticsJob) SetCallAnalyticsJobDetails(v *CallAnalyticsJobDetails) *CallAnalyticsJob { + s.CallAnalyticsJobDetails = v + return s +} + // SetCallAnalyticsJobName sets the CallAnalyticsJobName field's value. func (s *CallAnalyticsJob) SetCallAnalyticsJobName(v string) *CallAnalyticsJob { s.CallAnalyticsJobName = &v @@ -5266,6 +5276,43 @@ func (s *CallAnalyticsJob) SetTranscript(v *Transcript) *CallAnalyticsJob { return s } +// Contains details about a call analytics job, including information about +// skipped analytics features. +type CallAnalyticsJobDetails struct { + _ struct{} `type:"structure"` + + // Contains information about any skipped analytics features during the analysis + // of a call analytics job. + // + // This array lists all the analytics features that were skipped, along with + // their corresponding reason code and message. + Skipped []*CallAnalyticsSkippedFeature `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CallAnalyticsJobDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CallAnalyticsJobDetails) GoString() string { + return s.String() +} + +// SetSkipped sets the Skipped field's value. +func (s *CallAnalyticsJobDetails) SetSkipped(v []*CallAnalyticsSkippedFeature) *CallAnalyticsJobDetails { + s.Skipped = v + return s +} + // Provides additional optional settings for your request, including content // redaction, automatic language identification; allows you to apply custom // language models, custom vocabulary filters, and custom vocabularies. @@ -5470,6 +5517,10 @@ func (s *CallAnalyticsJobSettings) SetVocabularyName(v string) *CallAnalyticsJob type CallAnalyticsJobSummary struct { _ struct{} `type:"structure"` + // Provides detailed information about a call analytics job, including information + // about skipped analytics features. + CallAnalyticsJobDetails *CallAnalyticsJobDetails `type:"structure"` + // The name of the Call Analytics job. Job names are case sensitive and must // be unique within an Amazon Web Services account. CallAnalyticsJobName *string `min:"1" type:"string"` @@ -5529,6 +5580,12 @@ func (s CallAnalyticsJobSummary) GoString() string { return s.String() } +// SetCallAnalyticsJobDetails sets the CallAnalyticsJobDetails field's value. +func (s *CallAnalyticsJobSummary) SetCallAnalyticsJobDetails(v *CallAnalyticsJobDetails) *CallAnalyticsJobSummary { + s.CallAnalyticsJobDetails = v + return s +} + // SetCallAnalyticsJobName sets the CallAnalyticsJobName field's value. func (s *CallAnalyticsJobSummary) SetCallAnalyticsJobName(v string) *CallAnalyticsJobSummary { s.CallAnalyticsJobName = &v @@ -5571,6 +5628,68 @@ func (s *CallAnalyticsJobSummary) SetStartTime(v time.Time) *CallAnalyticsJobSum return s } +// Represents a skipped analytics feature during the analysis of a call analytics +// job. +// +// The Feature field indicates the type of analytics feature that was skipped. +// +// The Message field contains additional information or a message explaining +// why the analytics feature was skipped. +// +// The ReasonCode field provides a code indicating the reason why the analytics +// feature was skipped. +type CallAnalyticsSkippedFeature struct { + _ struct{} `type:"structure"` + + // Indicates the type of analytics feature that was skipped during the analysis + // of a call analytics job. + Feature *string `type:"string" enum:"CallAnalyticsFeature"` + + // Contains additional information or a message explaining why a specific analytics + // feature was skipped during the analysis of a call analytics job. + Message *string `type:"string"` + + // Provides a code indicating the reason why a specific analytics feature was + // skipped during the analysis of a call analytics job. + ReasonCode *string `type:"string" enum:"CallAnalyticsSkippedReasonCode"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CallAnalyticsSkippedFeature) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CallAnalyticsSkippedFeature) GoString() string { + return s.String() +} + +// SetFeature sets the Feature field's value. +func (s *CallAnalyticsSkippedFeature) SetFeature(v string) *CallAnalyticsSkippedFeature { + s.Feature = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *CallAnalyticsSkippedFeature) SetMessage(v string) *CallAnalyticsSkippedFeature { + s.Message = &v + return s +} + +// SetReasonCode sets the ReasonCode field's value. +func (s *CallAnalyticsSkippedFeature) SetReasonCode(v string) *CallAnalyticsSkippedFeature { + s.ReasonCode = &v + return s +} + // Provides you with the properties of the Call Analytics category you specified // in your request. This includes the list of rules that define the specified // category. @@ -15640,6 +15759,18 @@ func CLMLanguageCode_Values() []string { } } +const ( + // CallAnalyticsFeatureGenerativeSummarization is a CallAnalyticsFeature enum value + CallAnalyticsFeatureGenerativeSummarization = "GENERATIVE_SUMMARIZATION" +) + +// CallAnalyticsFeature_Values returns all elements of the CallAnalyticsFeature enum +func CallAnalyticsFeature_Values() []string { + return []string{ + CallAnalyticsFeatureGenerativeSummarization, + } +} + const ( // CallAnalyticsJobStatusQueued is a CallAnalyticsJobStatus enum value CallAnalyticsJobStatusQueued = "QUEUED" @@ -15664,6 +15795,22 @@ func CallAnalyticsJobStatus_Values() []string { } } +const ( + // CallAnalyticsSkippedReasonCodeInsufficientConversationContent is a CallAnalyticsSkippedReasonCode enum value + CallAnalyticsSkippedReasonCodeInsufficientConversationContent = "INSUFFICIENT_CONVERSATION_CONTENT" + + // CallAnalyticsSkippedReasonCodeFailedSafetyGuidelines is a CallAnalyticsSkippedReasonCode enum value + CallAnalyticsSkippedReasonCodeFailedSafetyGuidelines = "FAILED_SAFETY_GUIDELINES" +) + +// CallAnalyticsSkippedReasonCode_Values returns all elements of the CallAnalyticsSkippedReasonCode enum +func CallAnalyticsSkippedReasonCode_Values() []string { + return []string{ + CallAnalyticsSkippedReasonCodeInsufficientConversationContent, + CallAnalyticsSkippedReasonCodeFailedSafetyGuidelines, + } +} + const ( // InputTypeRealTime is a InputType enum value InputTypeRealTime = "REAL_TIME" diff --git a/service/trustedadvisor/api.go b/service/trustedadvisor/api.go index 273cfc328a..b080afd979 100644 --- a/service/trustedadvisor/api.go +++ b/service/trustedadvisor/api.go @@ -13,6 +13,98 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) +const opBatchUpdateRecommendationResourceExclusion = "BatchUpdateRecommendationResourceExclusion" + +// BatchUpdateRecommendationResourceExclusionRequest generates a "aws/request.Request" representing the +// client's request for the BatchUpdateRecommendationResourceExclusion operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchUpdateRecommendationResourceExclusion for more information on using the BatchUpdateRecommendationResourceExclusion +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the BatchUpdateRecommendationResourceExclusionRequest method. +// req, resp := client.BatchUpdateRecommendationResourceExclusionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/BatchUpdateRecommendationResourceExclusion +func (c *TrustedAdvisor) BatchUpdateRecommendationResourceExclusionRequest(input *BatchUpdateRecommendationResourceExclusionInput) (req *request.Request, output *BatchUpdateRecommendationResourceExclusionOutput) { + op := &request.Operation{ + Name: opBatchUpdateRecommendationResourceExclusion, + HTTPMethod: "PUT", + HTTPPath: "/v1/batch-update-recommendation-resource-exclusion", + } + + if input == nil { + input = &BatchUpdateRecommendationResourceExclusionInput{} + } + + output = &BatchUpdateRecommendationResourceExclusionOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchUpdateRecommendationResourceExclusion API operation for TrustedAdvisor Public API. +// +// # Update one or more exclusion status for a list of recommendation resources +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for TrustedAdvisor Public API's +// API operation BatchUpdateRecommendationResourceExclusion for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// Exception that access has been denied due to insufficient access +// +// - ConflictException +// Exception that the request was denied due to conflictions in state +// +// - InternalServerException +// Exception to notify that an unexpected internal error occurred during processing +// of the request +// +// - ValidationException +// Exception that the request failed to satisfy service constraints +// +// - ThrottlingException +// Exception to notify that requests are being throttled +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/BatchUpdateRecommendationResourceExclusion +func (c *TrustedAdvisor) BatchUpdateRecommendationResourceExclusion(input *BatchUpdateRecommendationResourceExclusionInput) (*BatchUpdateRecommendationResourceExclusionOutput, error) { + req, out := c.BatchUpdateRecommendationResourceExclusionRequest(input) + return out, req.Send() +} + +// BatchUpdateRecommendationResourceExclusionWithContext is the same as BatchUpdateRecommendationResourceExclusion with the addition of +// the ability to pass a context and additional request options. +// +// See BatchUpdateRecommendationResourceExclusion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *TrustedAdvisor) BatchUpdateRecommendationResourceExclusionWithContext(ctx aws.Context, input *BatchUpdateRecommendationResourceExclusionInput, opts ...request.Option) (*BatchUpdateRecommendationResourceExclusionOutput, error) { + req, out := c.BatchUpdateRecommendationResourceExclusionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetOrganizationRecommendation = "GetOrganizationRecommendation" // GetOrganizationRecommendationRequest generates a "aws/request.Request" representing the @@ -1130,7 +1222,7 @@ func (c *TrustedAdvisor) UpdateOrganizationRecommendationLifecycleRequest(input // UpdateOrganizationRecommendationLifecycle API operation for TrustedAdvisor Public API. // -// Update the lifecyle of a Recommendation within an Organization. This API +// Update the lifecycle of a Recommendation within an Organization. This API // only supports prioritized recommendations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1449,6 +1541,99 @@ func (s *AccountRecommendationLifecycleSummary) SetUpdatedOnBehalfOfJobTitle(v s return s } +type BatchUpdateRecommendationResourceExclusionInput struct { + _ struct{} `type:"structure"` + + // A list of recommendation resource ARNs and exclusion status to update + // + // RecommendationResourceExclusions is a required field + RecommendationResourceExclusions []*RecommendationResourceExclusion `locationName:"recommendationResourceExclusions" min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdateRecommendationResourceExclusionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdateRecommendationResourceExclusionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdateRecommendationResourceExclusionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdateRecommendationResourceExclusionInput"} + if s.RecommendationResourceExclusions == nil { + invalidParams.Add(request.NewErrParamRequired("RecommendationResourceExclusions")) + } + if s.RecommendationResourceExclusions != nil && len(s.RecommendationResourceExclusions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RecommendationResourceExclusions", 1)) + } + if s.RecommendationResourceExclusions != nil { + for i, v := range s.RecommendationResourceExclusions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RecommendationResourceExclusions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRecommendationResourceExclusions sets the RecommendationResourceExclusions field's value. +func (s *BatchUpdateRecommendationResourceExclusionInput) SetRecommendationResourceExclusions(v []*RecommendationResourceExclusion) *BatchUpdateRecommendationResourceExclusionInput { + s.RecommendationResourceExclusions = v + return s +} + +type BatchUpdateRecommendationResourceExclusionOutput struct { + _ struct{} `type:"structure"` + + // A list of recommendation resource ARNs whose exclusion status failed to update, + // if any + // + // BatchUpdateRecommendationResourceExclusionErrors is a required field + BatchUpdateRecommendationResourceExclusionErrors []*UpdateRecommendationResourceExclusionError `locationName:"batchUpdateRecommendationResourceExclusionErrors" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdateRecommendationResourceExclusionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdateRecommendationResourceExclusionOutput) GoString() string { + return s.String() +} + +// SetBatchUpdateRecommendationResourceExclusionErrors sets the BatchUpdateRecommendationResourceExclusionErrors field's value. +func (s *BatchUpdateRecommendationResourceExclusionOutput) SetBatchUpdateRecommendationResourceExclusionErrors(v []*UpdateRecommendationResourceExclusionError) *BatchUpdateRecommendationResourceExclusionOutput { + s.BatchUpdateRecommendationResourceExclusionErrors = v + return s +} + // A summary of an AWS Trusted Advisor Check type CheckSummary struct { _ struct{} `type:"structure"` @@ -2123,6 +2308,9 @@ type ListOrganizationRecommendationResourcesInput struct { // An account affected by this organization recommendation AffectedAccountId *string `location:"querystring" locationName:"affectedAccountId" min:"12" type:"string"` + // The exclusion status of the resource + ExclusionStatus *string `location:"querystring" locationName:"exclusionStatus" type:"string" enum:"ExclusionStatus"` + // The maximum number of results to return per page. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` @@ -2191,6 +2379,12 @@ func (s *ListOrganizationRecommendationResourcesInput) SetAffectedAccountId(v st return s } +// SetExclusionStatus sets the ExclusionStatus field's value. +func (s *ListOrganizationRecommendationResourcesInput) SetExclusionStatus(v string) *ListOrganizationRecommendationResourcesInput { + s.ExclusionStatus = &v + return s +} + // SetMaxResults sets the MaxResults field's value. func (s *ListOrganizationRecommendationResourcesInput) SetMaxResults(v int64) *ListOrganizationRecommendationResourcesInput { s.MaxResults = &v @@ -2445,6 +2639,9 @@ func (s *ListOrganizationRecommendationsOutput) SetOrganizationRecommendationSum type ListRecommendationResourcesInput struct { _ struct{} `type:"structure" nopayload:"true"` + // The exclusion status of the resource + ExclusionStatus *string `location:"querystring" locationName:"exclusionStatus" type:"string" enum:"ExclusionStatus"` + // The maximum number of results to return per page. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` @@ -2504,6 +2701,12 @@ func (s *ListRecommendationResourcesInput) Validate() error { return nil } +// SetExclusionStatus sets the ExclusionStatus field's value. +func (s *ListRecommendationResourcesInput) SetExclusionStatus(v string) *ListRecommendationResourcesInput { + s.ExclusionStatus = &v + return s +} + // SetMaxResults sets the MaxResults field's value. func (s *ListRecommendationResourcesInput) SetMaxResults(v int64) *ListRecommendationResourcesInput { s.MaxResults = &v @@ -3013,6 +3216,9 @@ type OrganizationRecommendationResourceSummary struct { // AwsResourceId is a required field AwsResourceId *string `locationName:"awsResourceId" type:"string" required:"true"` + // The exclusion status of the Recommendation Resource + ExclusionStatus *string `locationName:"exclusionStatus" type:"string" enum:"ExclusionStatus"` + // The ID of the Recommendation Resource // // Id is a required field @@ -3080,6 +3286,12 @@ func (s *OrganizationRecommendationResourceSummary) SetAwsResourceId(v string) * return s } +// SetExclusionStatus sets the ExclusionStatus field's value. +func (s *OrganizationRecommendationResourceSummary) SetExclusionStatus(v string) *OrganizationRecommendationResourceSummary { + s.ExclusionStatus = &v + return s +} + // SetId sets the Id field's value. func (s *OrganizationRecommendationResourceSummary) SetId(v string) *OrganizationRecommendationResourceSummary { s.Id = &v @@ -3600,6 +3812,71 @@ func (s *RecommendationPillarSpecificAggregates) SetCostOptimizing(v *Recommenda return s } +// The request entry for Recommendation Resource exclusion. Each entry is a +// combination of Recommendation Resource ARN and corresponding exclusion status +type RecommendationResourceExclusion struct { + _ struct{} `type:"structure"` + + // The ARN of the Recommendation Resource + // + // Arn is a required field + Arn *string `locationName:"arn" min:"20" type:"string" required:"true"` + + // The exclusion status + // + // IsExcluded is a required field + IsExcluded *bool `locationName:"isExcluded" type:"boolean" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecommendationResourceExclusion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecommendationResourceExclusion) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RecommendationResourceExclusion) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RecommendationResourceExclusion"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 20)) + } + if s.IsExcluded == nil { + invalidParams.Add(request.NewErrParamRequired("IsExcluded")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *RecommendationResourceExclusion) SetArn(v string) *RecommendationResourceExclusion { + s.Arn = &v + return s +} + +// SetIsExcluded sets the IsExcluded field's value. +func (s *RecommendationResourceExclusion) SetIsExcluded(v bool) *RecommendationResourceExclusion { + s.IsExcluded = &v + return s +} + // Summary of a Recommendation Resource type RecommendationResourceSummary struct { _ struct{} `type:"structure"` @@ -3614,6 +3891,9 @@ type RecommendationResourceSummary struct { // AwsResourceId is a required field AwsResourceId *string `locationName:"awsResourceId" type:"string" required:"true"` + // The exclusion status of the Recommendation Resource + ExclusionStatus *string `locationName:"exclusionStatus" type:"string" enum:"ExclusionStatus"` + // The ID of the Recommendation Resource // // Id is a required field @@ -3675,6 +3955,12 @@ func (s *RecommendationResourceSummary) SetAwsResourceId(v string) *Recommendati return s } +// SetExclusionStatus sets the ExclusionStatus field's value. +func (s *RecommendationResourceSummary) SetExclusionStatus(v string) *RecommendationResourceSummary { + s.ExclusionStatus = &v + return s +} + // SetId sets the Id field's value. func (s *RecommendationResourceSummary) SetId(v string) *RecommendationResourceSummary { s.Id = &v @@ -4284,6 +4570,57 @@ func (s UpdateRecommendationLifecycleOutput) GoString() string { return s.String() } +// The error entry for Recommendation Resource exclusion. Each entry is a combination +// of Recommendation Resource ARN, error code and error message +type UpdateRecommendationResourceExclusionError struct { + _ struct{} `type:"structure"` + + // The ARN of the Recommendation Resource + Arn *string `locationName:"arn" min:"20" type:"string"` + + // The error code + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The error message + ErrorMessage *string `locationName:"errorMessage" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateRecommendationResourceExclusionError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateRecommendationResourceExclusionError) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *UpdateRecommendationResourceExclusionError) SetArn(v string) *UpdateRecommendationResourceExclusionError { + s.Arn = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *UpdateRecommendationResourceExclusionError) SetErrorCode(v string) *UpdateRecommendationResourceExclusionError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *UpdateRecommendationResourceExclusionError) SetErrorMessage(v string) *UpdateRecommendationResourceExclusionError { + s.ErrorMessage = &v + return s +} + // Exception that the request failed to satisfy service constraints type ValidationException struct { _ struct{} `type:"structure"` @@ -4348,6 +4685,22 @@ func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } +const ( + // ExclusionStatusExcluded is a ExclusionStatus enum value + ExclusionStatusExcluded = "excluded" + + // ExclusionStatusIncluded is a ExclusionStatus enum value + ExclusionStatusIncluded = "included" +) + +// ExclusionStatus_Values returns all elements of the ExclusionStatus enum +func ExclusionStatus_Values() []string { + return []string{ + ExclusionStatusExcluded, + ExclusionStatusIncluded, + } +} + const ( // RecommendationLanguageEn is a RecommendationLanguage enum value RecommendationLanguageEn = "en" diff --git a/service/trustedadvisor/trustedadvisoriface/interface.go b/service/trustedadvisor/trustedadvisoriface/interface.go index d381aee93e..305f1108e0 100644 --- a/service/trustedadvisor/trustedadvisoriface/interface.go +++ b/service/trustedadvisor/trustedadvisoriface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // TrustedAdvisor Public API. // func myFunc(svc trustedadvisoriface.TrustedAdvisorAPI) bool { -// // Make svc.GetOrganizationRecommendation request +// // Make svc.BatchUpdateRecommendationResourceExclusion request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockTrustedAdvisorClient struct { // trustedadvisoriface.TrustedAdvisorAPI // } -// func (m *mockTrustedAdvisorClient) GetOrganizationRecommendation(input *trustedadvisor.GetOrganizationRecommendationInput) (*trustedadvisor.GetOrganizationRecommendationOutput, error) { +// func (m *mockTrustedAdvisorClient) BatchUpdateRecommendationResourceExclusion(input *trustedadvisor.BatchUpdateRecommendationResourceExclusionInput) (*trustedadvisor.BatchUpdateRecommendationResourceExclusionOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type TrustedAdvisorAPI interface { + BatchUpdateRecommendationResourceExclusion(*trustedadvisor.BatchUpdateRecommendationResourceExclusionInput) (*trustedadvisor.BatchUpdateRecommendationResourceExclusionOutput, error) + BatchUpdateRecommendationResourceExclusionWithContext(aws.Context, *trustedadvisor.BatchUpdateRecommendationResourceExclusionInput, ...request.Option) (*trustedadvisor.BatchUpdateRecommendationResourceExclusionOutput, error) + BatchUpdateRecommendationResourceExclusionRequest(*trustedadvisor.BatchUpdateRecommendationResourceExclusionInput) (*request.Request, *trustedadvisor.BatchUpdateRecommendationResourceExclusionOutput) + GetOrganizationRecommendation(*trustedadvisor.GetOrganizationRecommendationInput) (*trustedadvisor.GetOrganizationRecommendationOutput, error) GetOrganizationRecommendationWithContext(aws.Context, *trustedadvisor.GetOrganizationRecommendationInput, ...request.Option) (*trustedadvisor.GetOrganizationRecommendationOutput, error) GetOrganizationRecommendationRequest(*trustedadvisor.GetOrganizationRecommendationInput) (*request.Request, *trustedadvisor.GetOrganizationRecommendationOutput)