diff --git a/CHANGELOG.md b/CHANGELOG.md index 6793aa6cb80..023857a7642 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +Release v1.45.2 (2023-09-01) +=== + +### Service Client Updates +* `service/chime-sdk-media-pipelines`: Updates service API and documentation +* `service/connect`: Updates service API, documentation, and paginators +* `service/identitystore`: Updates service API and documentation +* `service/neptunedata`: Updates service documentation + Release v1.45.1 (2023-08-31) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index e92ab54e52b..9d24d117a74 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -5711,6 +5711,9 @@ var awsPartition = partition{ }, Deprecated: boxedTrue, }, + endpointKey{ + Region: "il-central-1", + }: endpoint{}, endpointKey{ Region: "me-central-1", }: endpoint{}, @@ -18635,6 +18638,9 @@ var awsPartition = partition{ endpointKey{ Region: "eu-central-1", }: endpoint{}, + endpointKey{ + Region: "il-central-1", + }: endpoint{}, endpointKey{ Region: "us-east-1", }: endpoint{}, @@ -27789,6 +27795,9 @@ var awsPartition = partition{ endpointKey{ Region: "eu-west-3", }: endpoint{}, + endpointKey{ + Region: "il-central-1", + }: endpoint{}, endpointKey{ Region: "me-south-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index 6291b0bb69a..beca3eac299 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.45.1" +const SDKVersion = "1.45.2" diff --git a/models/apis/chime-sdk-media-pipelines/2021-07-15/api-2.json b/models/apis/chime-sdk-media-pipelines/2021-07-15/api-2.json index 58ddf57a1f9..db1e9b63210 100644 --- a/models/apis/chime-sdk-media-pipelines/2021-07-15/api-2.json +++ b/models/apis/chime-sdk-media-pipelines/2021-07-15/api-2.json @@ -159,6 +159,7 @@ {"shape":"ThrottledClientException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedClientException"}, + {"shape":"ConflictException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} ] @@ -220,6 +221,44 @@ {"shape":"ServiceFailureException"} ] }, + "GetSpeakerSearchTask":{ + "name":"GetSpeakerSearchTask", + "http":{ + "method":"GET", + "requestUri":"/media-insights-pipelines/{identifier}/speaker-search-tasks/{speakerSearchTaskId}", + "responseCode":200 + }, + "input":{"shape":"GetSpeakerSearchTaskRequest"}, + "output":{"shape":"GetSpeakerSearchTaskResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "GetVoiceToneAnalysisTask":{ + "name":"GetVoiceToneAnalysisTask", + "http":{ + "method":"GET", + "requestUri":"/media-insights-pipelines/{identifier}/voice-tone-analysis-tasks/{voiceToneAnalysisTaskId}", + "responseCode":200 + }, + "input":{"shape":"GetVoiceToneAnalysisTaskRequest"}, + "output":{"shape":"GetVoiceToneAnalysisTaskResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "ListMediaCapturePipelines":{ "name":"ListMediaCapturePipelines", "http":{ @@ -296,6 +335,84 @@ {"shape":"ServiceFailureException"} ] }, + "StartSpeakerSearchTask":{ + "name":"StartSpeakerSearchTask", + "http":{ + "method":"POST", + "requestUri":"/media-insights-pipelines/{identifier}/speaker-search-tasks?operation=start", + "responseCode":201 + }, + "input":{"shape":"StartSpeakerSearchTaskRequest"}, + "output":{"shape":"StartSpeakerSearchTaskResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "StartVoiceToneAnalysisTask":{ + "name":"StartVoiceToneAnalysisTask", + "http":{ + "method":"POST", + "requestUri":"/media-insights-pipelines/{identifier}/voice-tone-analysis-tasks?operation=start", + "responseCode":201 + }, + "input":{"shape":"StartVoiceToneAnalysisTaskRequest"}, + "output":{"shape":"StartVoiceToneAnalysisTaskResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "StopSpeakerSearchTask":{ + "name":"StopSpeakerSearchTask", + "http":{ + "method":"POST", + "requestUri":"/media-insights-pipelines/{identifier}/speaker-search-tasks/{speakerSearchTaskId}?operation=stop", + "responseCode":204 + }, + "input":{"shape":"StopSpeakerSearchTaskRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "StopVoiceToneAnalysisTask":{ + "name":"StopVoiceToneAnalysisTask", + "http":{ + "method":"POST", + "requestUri":"/media-insights-pipelines/{identifier}/voice-tone-analysis-tasks/{voiceToneAnalysisTaskId}?operation=stop", + "responseCode":204 + }, + "input":{"shape":"StopVoiceToneAnalysisTaskRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "TagResource":{ "name":"TagResource", "http":{ @@ -1027,6 +1144,56 @@ "MediaPipeline":{"shape":"MediaPipeline"} } }, + "GetSpeakerSearchTaskRequest":{ + "type":"structure", + "required":[ + "Identifier", + "SpeakerSearchTaskId" + ], + "members":{ + "Identifier":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"identifier" + }, + "SpeakerSearchTaskId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"speakerSearchTaskId" + } + } + }, + "GetSpeakerSearchTaskResponse":{ + "type":"structure", + "members":{ + "SpeakerSearchTask":{"shape":"SpeakerSearchTask"} + } + }, + "GetVoiceToneAnalysisTaskRequest":{ + "type":"structure", + "required":[ + "Identifier", + "VoiceToneAnalysisTaskId" + ], + "members":{ + "Identifier":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"identifier" + }, + "VoiceToneAnalysisTaskId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"voiceToneAnalysisTaskId" + } + } + }, + "GetVoiceToneAnalysisTaskResponse":{ + "type":"structure", + "members":{ + "VoiceToneAnalysisTask":{"shape":"VoiceToneAnalysisTask"} + } + }, "GridViewConfiguration":{ "type":"structure", "required":["ContentShareLayout"], @@ -1144,6 +1311,18 @@ "MediaSampleRate":{"shape":"MediaSampleRateHertz"} } }, + "KinesisVideoStreamSourceTaskConfiguration":{ + "type":"structure", + "required":[ + "StreamArn", + "ChannelId" + ], + "members":{ + "StreamArn":{"shape":"KinesisVideoStreamArn"}, + "ChannelId":{"shape":"ChannelId"}, + "FragmentNumber":{"shape":"FragmentNumberString"} + } + }, "LambdaFunctionSinkConfiguration":{ "type":"structure", "members":{ @@ -1523,6 +1702,17 @@ "MediaPipelineArn":{"shape":"AmazonResourceName"} } }, + "MediaPipelineTaskStatus":{ + "type":"string", + "enum":[ + "NotStarted", + "Initializing", + "InProgress", + "Failed", + "Stopping", + "Stopped" + ] + }, "MediaSampleRateHertz":{ "type":"integer", "max":48000, @@ -1782,12 +1972,111 @@ "SelectedVideoStreams":{"shape":"SelectedVideoStreams"} } }, + "SpeakerSearchTask":{ + "type":"structure", + "members":{ + "SpeakerSearchTaskId":{"shape":"GuidString"}, + "SpeakerSearchTaskStatus":{"shape":"MediaPipelineTaskStatus"}, + "CreatedTimestamp":{"shape":"Iso8601Timestamp"}, + "UpdatedTimestamp":{"shape":"Iso8601Timestamp"} + } + }, "SqsQueueSinkConfiguration":{ "type":"structure", "members":{ "InsightsTarget":{"shape":"Arn"} } }, + "StartSpeakerSearchTaskRequest":{ + "type":"structure", + "required":[ + "Identifier", + "VoiceProfileDomainArn" + ], + "members":{ + "Identifier":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"identifier" + }, + "VoiceProfileDomainArn":{"shape":"Arn"}, + "KinesisVideoStreamSourceTaskConfiguration":{"shape":"KinesisVideoStreamSourceTaskConfiguration"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "StartSpeakerSearchTaskResponse":{ + "type":"structure", + "members":{ + "SpeakerSearchTask":{"shape":"SpeakerSearchTask"} + } + }, + "StartVoiceToneAnalysisTaskRequest":{ + "type":"structure", + "required":[ + "Identifier", + "LanguageCode" + ], + "members":{ + "Identifier":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"identifier" + }, + "LanguageCode":{"shape":"VoiceAnalyticsLanguageCode"}, + "KinesisVideoStreamSourceTaskConfiguration":{"shape":"KinesisVideoStreamSourceTaskConfiguration"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "StartVoiceToneAnalysisTaskResponse":{ + "type":"structure", + "members":{ + "VoiceToneAnalysisTask":{"shape":"VoiceToneAnalysisTask"} + } + }, + "StopSpeakerSearchTaskRequest":{ + "type":"structure", + "required":[ + "Identifier", + "SpeakerSearchTaskId" + ], + "members":{ + "Identifier":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"identifier" + }, + "SpeakerSearchTaskId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"speakerSearchTaskId" + } + } + }, + "StopVoiceToneAnalysisTaskRequest":{ + "type":"structure", + "required":[ + "Identifier", + "VoiceToneAnalysisTaskId" + ], + "members":{ + "Identifier":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"identifier" + }, + "VoiceToneAnalysisTaskId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"voiceToneAnalysisTaskId" + } + } + }, "StreamChannelDefinition":{ "type":"structure", "required":["NumberOfChannels"], @@ -2061,6 +2350,10 @@ "Disabled" ] }, + "VoiceAnalyticsLanguageCode":{ + "type":"string", + "enum":["en-US"] + }, "VoiceAnalyticsProcessorConfiguration":{ "type":"structure", "members":{ @@ -2073,6 +2366,15 @@ "members":{ "Disabled":{"shape":"Boolean"} } + }, + "VoiceToneAnalysisTask":{ + "type":"structure", + "members":{ + "VoiceToneAnalysisTaskId":{"shape":"GuidString"}, + "VoiceToneAnalysisTaskStatus":{"shape":"MediaPipelineTaskStatus"}, + "CreatedTimestamp":{"shape":"Iso8601Timestamp"}, + "UpdatedTimestamp":{"shape":"Iso8601Timestamp"} + } } } } diff --git a/models/apis/chime-sdk-media-pipelines/2021-07-15/docs-2.json b/models/apis/chime-sdk-media-pipelines/2021-07-15/docs-2.json index 6363b0f2938..49a67277bc2 100644 --- a/models/apis/chime-sdk-media-pipelines/2021-07-15/docs-2.json +++ b/models/apis/chime-sdk-media-pipelines/2021-07-15/docs-2.json @@ -13,10 +13,16 @@ "GetMediaCapturePipeline": "

Gets an existing media pipeline.

", "GetMediaInsightsPipelineConfiguration": "

Gets the configuration settings for a media insights pipeline.

", "GetMediaPipeline": "

Gets an existing media pipeline.

", + "GetSpeakerSearchTask": "

Retrieves the details of the specified speaker search task.

", + "GetVoiceToneAnalysisTask": "

Retrieves the details of a voice tone analysis task.

", "ListMediaCapturePipelines": "

Returns a list of media pipelines.

", "ListMediaInsightsPipelineConfigurations": "

Lists the available media insights pipeline configurations.

", "ListMediaPipelines": "

Returns a list of media pipelines.

", "ListTagsForResource": "

Lists the tags available for a media pipeline.

", + "StartSpeakerSearchTask": "

Starts a speaker search task.

Before starting any speaker search tasks, you must provide all notices and obtain all consents from the speaker as required under applicable privacy and biometrics laws, and as required under the AWS service terms for the Amazon Chime SDK.

", + "StartVoiceToneAnalysisTask": "

Starts a voice tone analysis task. For more information about voice tone analysis, see Using Amazon Chime SDK voice analytics in the Amazon Chime SDK Developer Guide.

Before starting any voice tone analysis tasks, you must provide all notices and obtain all consents from the speaker as required under applicable privacy and biometrics laws, and as required under the AWS service terms for the Amazon Chime SDK.

", + "StopSpeakerSearchTask": "

Stops a speaker search task.

", + "StopVoiceToneAnalysisTask": "

Stops a voice tone analysis task.

", "TagResource": "

The ARN of the media pipeline that you want to tag. Consists of the pipeline's endpoint region, resource ID, and pipeline ID.

", "UntagResource": "

Removes any tags from a media pipeline.

", "UpdateMediaInsightsPipelineConfiguration": "

Updates the media insights pipeline's configuration settings.

", @@ -83,6 +89,7 @@ "S3RecordingSinkRuntimeConfiguration$Destination": "

The URI of the S3 bucket used as the sink.

", "SnsTopicSinkConfiguration$InsightsTarget": "

The ARN of the SNS sink.

", "SqsQueueSinkConfiguration$InsightsTarget": "

The ARN of the SQS sink.

", + "StartSpeakerSearchTaskRequest$VoiceProfileDomainArn": "

The ARN of the voice profile domain that will store the voice profile.

", "UpdateMediaInsightsPipelineConfigurationRequest$ResourceAccessRoleArn": "

The ARN of the role used by the service to access Amazon Web Services resources.

" } }, @@ -230,7 +237,8 @@ "ChannelId": { "base": null, "refs": { - "ChannelDefinition$ChannelId": "

The channel ID.

" + "ChannelDefinition$ChannelId": "

The channel ID.

", + "KinesisVideoStreamSourceTaskConfiguration$ChannelId": "

The channel ID.

" } }, "ChimeSdkMeetingConcatenationConfiguration": { @@ -259,7 +267,9 @@ "CreateMediaConcatenationPipelineRequest$ClientRequestToken": "

The unique identifier for the client request. The token makes the API request idempotent. Use a unique token for each media concatenation pipeline request.

", "CreateMediaInsightsPipelineConfigurationRequest$ClientRequestToken": "

The unique identifier for the media insights pipeline configuration request.

", "CreateMediaInsightsPipelineRequest$ClientRequestToken": "

The unique identifier for the media insights pipeline request.

", - "CreateMediaLiveConnectorPipelineRequest$ClientRequestToken": "

The token assigned to the client making the request.

" + "CreateMediaLiveConnectorPipelineRequest$ClientRequestToken": "

The token assigned to the client making the request.

", + "StartSpeakerSearchTaskRequest$ClientRequestToken": "

The unique identifier for the client request. Use a different token for different speaker search tasks.

", + "StartVoiceToneAnalysisTaskRequest$ClientRequestToken": "

The unique identifier for the client request. Use a different token for different voice tone analysis tasks.

" } }, "CompositedVideoArtifactsConfiguration": { @@ -468,6 +478,7 @@ "FragmentNumberString": { "base": null, "refs": { + "KinesisVideoStreamSourceTaskConfiguration$FragmentNumber": "

The unique identifier of the fragment to begin processing.

", "StreamConfiguration$FragmentNumber": "

The unique identifier of the fragment to begin processing.

" } }, @@ -480,7 +491,7 @@ "FragmentSelectorType": { "base": null, "refs": { - "FragmentSelector$FragmentSelectorType": "

The origin of the timestamps to use, Server or Producer. For more information, see StartSelectorType in the Amazon Kinesis Video Streams Developer Guide.

" + "FragmentSelector$FragmentSelectorType": "

The origin of the timestamps to use, Server or Producer. For more information, see StartSelectorType in the Amazon Kinesis Video Streams Developer Guide.

" } }, "GetMediaCapturePipelineRequest": { @@ -513,6 +524,26 @@ "refs": { } }, + "GetSpeakerSearchTaskRequest": { + "base": null, + "refs": { + } + }, + "GetSpeakerSearchTaskResponse": { + "base": null, + "refs": { + } + }, + "GetVoiceToneAnalysisTaskRequest": { + "base": null, + "refs": { + } + }, + "GetVoiceToneAnalysisTaskResponse": { + "base": null, + "refs": { + } + }, "GridViewConfiguration": { "base": "

Specifies the type of grid layout.

", "refs": { @@ -527,6 +558,8 @@ "DeleteMediaPipelineRequest$MediaPipelineId": "

The ID of the media pipeline to delete.

", "GetMediaCapturePipelineRequest$MediaPipelineId": "

The ID of the pipeline that you want to get.

", "GetMediaPipelineRequest$MediaPipelineId": "

The ID of the pipeline that you want to get.

", + "GetSpeakerSearchTaskRequest$SpeakerSearchTaskId": "

The ID of the speaker search task.

", + "GetVoiceToneAnalysisTaskRequest$VoiceToneAnalysisTaskId": "

The ID of the voice tone anlysis task.

", "MediaCapturePipeline$MediaPipelineId": "

The ID of a media pipeline.

", "MediaCapturePipelineSummary$MediaPipelineId": "

The ID of the media pipeline in the summary.

", "MediaConcatenationPipeline$MediaPipelineId": "

The ID of the media pipeline being concatenated.

", @@ -534,7 +567,11 @@ "MediaInsightsPipelineConfiguration$MediaInsightsPipelineConfigurationId": "

The ID of the configuration.

", "MediaInsightsPipelineConfigurationSummary$MediaInsightsPipelineConfigurationId": "

The ID of the media insights pipeline configuration.

", "MediaLiveConnectorPipeline$MediaPipelineId": "

The connector pipeline's ID.

", - "MediaPipelineSummary$MediaPipelineId": "

The ID of the media pipeline in the summary.

" + "MediaPipelineSummary$MediaPipelineId": "

The ID of the media pipeline in the summary.

", + "SpeakerSearchTask$SpeakerSearchTaskId": "

The speaker search task ID.

", + "StopSpeakerSearchTaskRequest$SpeakerSearchTaskId": "

The speaker search task ID.

", + "StopVoiceToneAnalysisTaskRequest$VoiceToneAnalysisTaskId": "

The ID of the voice tone analysis task.

", + "VoiceToneAnalysisTask$VoiceToneAnalysisTaskId": "

The ID of the voice tone analysis task.

" } }, "HighlightColor": { @@ -566,7 +603,11 @@ "MediaInsightsPipelineConfiguration$CreatedTimestamp": "

The time at which the configuration was created.

", "MediaInsightsPipelineConfiguration$UpdatedTimestamp": "

The time at which the configuration was last updated.

", "MediaLiveConnectorPipeline$CreatedTimestamp": "

The time at which the connector pipeline was created.

", - "MediaLiveConnectorPipeline$UpdatedTimestamp": "

The time at which the connector pipeline was last updated.

" + "MediaLiveConnectorPipeline$UpdatedTimestamp": "

The time at which the connector pipeline was last updated.

", + "SpeakerSearchTask$CreatedTimestamp": "

The time at which a speaker search task was created.

", + "SpeakerSearchTask$UpdatedTimestamp": "

The time at which a speaker search task was updated.

", + "VoiceToneAnalysisTask$CreatedTimestamp": "

The time at which a voice tone analysis task was created.

", + "VoiceToneAnalysisTask$UpdatedTimestamp": "

The time at which a voice tone analysis task was updated.

" } }, "IssueDetectionConfiguration": { @@ -602,6 +643,7 @@ "KinesisVideoStreamArn": { "base": null, "refs": { + "KinesisVideoStreamSourceTaskConfiguration$StreamArn": "

The ARN of the stream.

", "RecordingStreamConfiguration$StreamArn": "

The ARN of the recording stream.

", "StreamConfiguration$StreamArn": "

The ARN of the stream.

" } @@ -620,6 +662,13 @@ "MediaInsightsPipeline$KinesisVideoStreamSourceRuntimeConfiguration": "

The configuration settings for a Kinesis runtime video stream in a media insights pipeline.

" } }, + "KinesisVideoStreamSourceTaskConfiguration": { + "base": "

The task configuration settings for the Kinesis video stream source.

", + "refs": { + "StartSpeakerSearchTaskRequest$KinesisVideoStreamSourceTaskConfiguration": "

The task configuration for the Kinesis video stream source of the media insights pipeline.

", + "StartVoiceToneAnalysisTaskRequest$KinesisVideoStreamSourceTaskConfiguration": "

The task configuration for the Kinesis video stream source of the media insights pipeline.

" + } + }, "LambdaFunctionSinkConfiguration": { "base": "

A structure that contains the configuration settings for an AWS Lambda function's data sink.

", "refs": { @@ -902,6 +951,13 @@ "MediaPipelineList$member": null } }, + "MediaPipelineTaskStatus": { + "base": null, + "refs": { + "SpeakerSearchTask$SpeakerSearchTaskStatus": "

The status of the speaker search task.

", + "VoiceToneAnalysisTask$VoiceToneAnalysisTaskStatus": "

The status of a voice tone analysis task.

" + } + }, "MediaSampleRateHertz": { "base": null, "refs": { @@ -926,7 +982,13 @@ "refs": { "DeleteMediaInsightsPipelineConfigurationRequest$Identifier": "

The unique identifier of the resource to be deleted. Valid values include the name and ARN of the media insights pipeline configuration.

", "GetMediaInsightsPipelineConfigurationRequest$Identifier": "

The unique identifier of the requested resource. Valid values include the name and ARN of the media insights pipeline configuration.

", + "GetSpeakerSearchTaskRequest$Identifier": "

The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

", + "GetVoiceToneAnalysisTaskRequest$Identifier": "

The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

", "MediaInsightsRuntimeMetadata$key": null, + "StartSpeakerSearchTaskRequest$Identifier": "

The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

", + "StartVoiceToneAnalysisTaskRequest$Identifier": "

The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

", + "StopSpeakerSearchTaskRequest$Identifier": "

The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

", + "StopVoiceToneAnalysisTaskRequest$Identifier": "

The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

", "UpdateMediaInsightsPipelineConfigurationRequest$Identifier": "

The unique identifier for the resource to be updated. Valid values include the name and ARN of the media insights pipeline configuration.

", "UpdateMediaInsightsPipelineStatusRequest$Identifier": "

The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

" } @@ -1124,12 +1186,49 @@ "ChimeSdkMeetingLiveConnectorConfiguration$SourceConfiguration": "

The source configuration settings of the media pipeline's configuration object.

" } }, + "SpeakerSearchTask": { + "base": "

A representation of an asynchronous request to perform speaker search analysis on a media insights pipeline.

", + "refs": { + "GetSpeakerSearchTaskResponse$SpeakerSearchTask": "

The details of the speaker search task.

", + "StartSpeakerSearchTaskResponse$SpeakerSearchTask": "

The details of the speaker search task.

" + } + }, "SqsQueueSinkConfiguration": { "base": "

The configuration settings for the SQS sink.

", "refs": { "MediaInsightsPipelineConfigurationElement$SqsQueueSinkConfiguration": "

The configuration settings for an SQS queue sink in a media insights pipeline configuration element.

" } }, + "StartSpeakerSearchTaskRequest": { + "base": null, + "refs": { + } + }, + "StartSpeakerSearchTaskResponse": { + "base": null, + "refs": { + } + }, + "StartVoiceToneAnalysisTaskRequest": { + "base": null, + "refs": { + } + }, + "StartVoiceToneAnalysisTaskResponse": { + "base": null, + "refs": { + } + }, + "StopSpeakerSearchTaskRequest": { + "base": null, + "refs": { + } + }, + "StopVoiceToneAnalysisTaskRequest": { + "base": null, + "refs": { + } + }, "StreamChannelDefinition": { "base": "

Defines a streaming channel.

", "refs": { @@ -1379,6 +1478,12 @@ "VoiceAnalyticsProcessorConfiguration$VoiceToneAnalysisStatus": "

The status of the voice tone analysis task.

" } }, + "VoiceAnalyticsLanguageCode": { + "base": null, + "refs": { + "StartVoiceToneAnalysisTaskRequest$LanguageCode": "

The language code.

" + } + }, "VoiceAnalyticsProcessorConfiguration": { "base": "

The configuration settings for a voice analytics processor.

", "refs": { @@ -1388,7 +1493,14 @@ "VoiceEnhancementSinkConfiguration": { "base": "

A static structure that contains the configuration data for a VoiceEnhancementSinkConfiguration element.

", "refs": { - "MediaInsightsPipelineConfigurationElement$VoiceEnhancementSinkConfiguration": "

The configuration settings for the VoiceEnhancementSinkConfiguration element.

" + "MediaInsightsPipelineConfigurationElement$VoiceEnhancementSinkConfiguration": "

The configuration settings for voice enhancement sink in a media insights pipeline configuration element.

" + } + }, + "VoiceToneAnalysisTask": { + "base": "

A representation of an asynchronous request to perform voice tone analysis on a media insights pipeline.

", + "refs": { + "GetVoiceToneAnalysisTaskResponse$VoiceToneAnalysisTask": "

The details of the voice tone analysis task.

", + "StartVoiceToneAnalysisTaskResponse$VoiceToneAnalysisTask": "

The details of the voice tone analysis task.

" } } } diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index 32cf8e7a317..4a67710cf20 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -566,6 +566,47 @@ {"shape":"InternalServiceException"} ] }, + "CreateView":{ + "name":"CreateView", + "http":{ + "method":"PUT", + "requestUri":"/views/{InstanceId}" + }, + "input":{"shape":"CreateViewRequest"}, + "output":{"shape":"CreateViewResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"DuplicateResourceException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceInUseException"} + ], + "idempotent":true + }, + "CreateViewVersion":{ + "name":"CreateViewVersion", + "http":{ + "method":"PUT", + "requestUri":"/views/{InstanceId}/{ViewId}/versions" + }, + "input":{"shape":"CreateViewVersionRequest"}, + "output":{"shape":"CreateViewVersionResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceInUseException"} + ], + "idempotent":true + }, "CreateVocabulary":{ "name":"CreateVocabulary", "http":{ @@ -879,6 +920,42 @@ {"shape":"InternalServiceException"} ] }, + "DeleteView":{ + "name":"DeleteView", + "http":{ + "method":"DELETE", + "requestUri":"/views/{InstanceId}/{ViewId}" + }, + "input":{"shape":"DeleteViewRequest"}, + "output":{"shape":"DeleteViewResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceInUseException"} + ] + }, + "DeleteViewVersion":{ + "name":"DeleteViewVersion", + "http":{ + "method":"DELETE", + "requestUri":"/views/{InstanceId}/{ViewId}/versions/{ViewVersion}" + }, + "input":{"shape":"DeleteViewVersionRequest"}, + "output":{"shape":"DeleteViewVersionResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceInUseException"} + ] + }, "DeleteVocabulary":{ "name":"DeleteVocabulary", "http":{ @@ -1230,6 +1307,23 @@ {"shape":"InternalServiceException"} ] }, + "DescribeView":{ + "name":"DescribeView", + "http":{ + "method":"GET", + "requestUri":"/views/{InstanceId}/{ViewId}" + }, + "input":{"shape":"DescribeViewRequest"}, + "output":{"shape":"DescribeViewResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, "DescribeVocabulary":{ "name":"DescribeVocabulary", "http":{ @@ -2124,6 +2218,40 @@ {"shape":"InternalServiceException"} ] }, + "ListViewVersions":{ + "name":"ListViewVersions", + "http":{ + "method":"GET", + "requestUri":"/views/{InstanceId}/{ViewId}/versions" + }, + "input":{"shape":"ListViewVersionsRequest"}, + "output":{"shape":"ListViewVersionsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListViews":{ + "name":"ListViews", + "http":{ + "method":"GET", + "requestUri":"/views/{InstanceId}" + }, + "input":{"shape":"ListViewsRequest"}, + "output":{"shape":"ListViewsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, "MonitorContact":{ "name":"MonitorContact", "http":{ @@ -3226,6 +3354,43 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServiceException"} ] + }, + "UpdateViewContent":{ + "name":"UpdateViewContent", + "http":{ + "method":"POST", + "requestUri":"/views/{InstanceId}/{ViewId}" + }, + "input":{"shape":"UpdateViewContentRequest"}, + "output":{"shape":"UpdateViewContentResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceInUseException"} + ] + }, + "UpdateViewMetadata":{ + "name":"UpdateViewMetadata", + "http":{ + "method":"POST", + "requestUri":"/views/{InstanceId}/{ViewId}/metadata" + }, + "input":{"shape":"UpdateViewMetadataRequest"}, + "output":{"shape":"UpdateViewMetadataResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"DuplicateResourceException"}, + {"shape":"ResourceInUseException"} + ] } }, "shapes":{ @@ -4651,6 +4816,61 @@ "UserArn":{"shape":"ARN"} } }, + "CreateViewRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Status", + "Content", + "Name" + ], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ClientToken":{"shape":"ViewsClientToken"}, + "Status":{"shape":"ViewStatus"}, + "Content":{"shape":"ViewInputContent"}, + "Description":{"shape":"ViewDescription"}, + "Name":{"shape":"ViewName"}, + "Tags":{"shape":"TagMap"} + } + }, + "CreateViewResponse":{ + "type":"structure", + "members":{ + "View":{"shape":"View"} + } + }, + "CreateViewVersionRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ViewId" + ], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ViewId":{ + "shape":"ViewId", + "location":"uri", + "locationName":"ViewId" + }, + "VersionDescription":{"shape":"ViewDescription"}, + "ViewContentSha256":{"shape":"ViewContentSha256"} + } + }, + "CreateViewVersionResponse":{ + "type":"structure", + "members":{ + "View":{"shape":"View"} + } + }, "CreateVocabularyRequest":{ "type":"structure", "required":[ @@ -5193,6 +5413,60 @@ } } }, + "DeleteViewRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ViewId" + ], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ViewId":{ + "shape":"ViewId", + "location":"uri", + "locationName":"ViewId" + } + } + }, + "DeleteViewResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteViewVersionRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ViewId", + "ViewVersion" + ], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ViewId":{ + "shape":"ViewId", + "location":"uri", + "locationName":"ViewId" + }, + "ViewVersion":{ + "shape":"ViewVersion", + "location":"uri", + "locationName":"ViewVersion" + } + } + }, + "DeleteViewVersionResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteVocabularyRequest":{ "type":"structure", "required":[ @@ -5736,6 +6010,31 @@ "User":{"shape":"User"} } }, + "DescribeViewRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ViewId" + ], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ViewId":{ + "shape":"ViewId", + "location":"uri", + "locationName":"ViewId" + } + } + }, + "DescribeViewResponse":{ + "type":"structure", + "members":{ + "View":{"shape":"View"} + } + }, "DescribeVocabularyRequest":{ "type":"structure", "required":[ @@ -8673,6 +8972,77 @@ "NextToken":{"shape":"NextToken"} } }, + "ListViewVersionsRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ViewId" + ], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ViewId":{ + "shape":"ViewId", + "location":"uri", + "locationName":"ViewId" + }, + "NextToken":{ + "shape":"ViewsNextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListViewVersionsResponse":{ + "type":"structure", + "members":{ + "ViewVersionSummaryList":{"shape":"ViewVersionSummaryList"}, + "NextToken":{"shape":"ViewsNextToken"} + } + }, + "ListViewsRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "Type":{ + "shape":"ViewType", + "location":"querystring", + "locationName":"type" + }, + "NextToken":{ + "shape":"ViewsNextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListViewsResponse":{ + "type":"structure", + "members":{ + "ViewsSummaryList":{"shape":"ViewsSummaryList"}, + "NextToken":{"shape":"ViewsNextToken"} + } + }, "Long":{"type":"long"}, "MaxResult10":{ "type":"integer", @@ -8709,6 +9079,11 @@ "max":7, "min":1 }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, "MaximumResultReturnedException":{ "type":"structure", "members":{ @@ -11226,6 +11601,14 @@ ] }, "Timestamp":{"type":"timestamp"}, + "TooManyRequestsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, "TrafficDistributionGroup":{ "type":"structure", "members":{ @@ -12335,6 +12718,61 @@ } } }, + "UpdateViewContentRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ViewId", + "Status", + "Content" + ], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ViewId":{ + "shape":"ViewId", + "location":"uri", + "locationName":"ViewId" + }, + "Status":{"shape":"ViewStatus"}, + "Content":{"shape":"ViewInputContent"} + } + }, + "UpdateViewContentResponse":{ + "type":"structure", + "members":{ + "View":{"shape":"View"} + } + }, + "UpdateViewMetadataRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ViewId" + ], + "members":{ + "InstanceId":{ + "shape":"ViewsInstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ViewId":{ + "shape":"ViewId", + "location":"uri", + "locationName":"ViewId" + }, + "Name":{"shape":"ViewName"}, + "Description":{"shape":"ViewDescription"} + } + }, + "UpdateViewMetadataResponse":{ + "type":"structure", + "members":{ + } + }, "Url":{"type":"string"}, "UrlReference":{ "type":"structure", @@ -12535,6 +12973,143 @@ "box":true, "min":1 }, + "View":{ + "type":"structure", + "members":{ + "Id":{"shape":"ViewId"}, + "Arn":{"shape":"ARN"}, + "Name":{"shape":"ViewName"}, + "Status":{"shape":"ViewStatus"}, + "Type":{"shape":"ViewType"}, + "Description":{"shape":"ViewDescription"}, + "Version":{"shape":"ViewVersion"}, + "VersionDescription":{"shape":"ViewDescription"}, + "Content":{"shape":"ViewContent"}, + "Tags":{"shape":"TagMap"}, + "CreatedTime":{"shape":"Timestamp"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "ViewContentSha256":{"shape":"ViewContentSha256"} + } + }, + "ViewAction":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^([\\p{L}\\p{N}_.:\\/=+\\-@()']+[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@()']*)$", + "sensitive":true + }, + "ViewActions":{ + "type":"list", + "member":{"shape":"ViewAction"} + }, + "ViewContent":{ + "type":"structure", + "members":{ + "InputSchema":{"shape":"ViewInputSchema"}, + "Template":{"shape":"ViewTemplate"}, + "Actions":{"shape":"ViewActions"} + } + }, + "ViewContentSha256":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9]$" + }, + "ViewDescription":{ + "type":"string", + "max":4096, + "min":1, + "pattern":"^([\\p{L}\\p{N}_.:\\/=+\\-@,()']+[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@,()']*)$" + }, + "ViewId":{ + "type":"string", + "max":500, + "min":1, + "pattern":"^[a-zA-Z0-9\\_\\-:\\/$]+$" + }, + "ViewInputContent":{ + "type":"structure", + "members":{ + "Template":{"shape":"ViewTemplate"}, + "Actions":{"shape":"ViewActions"} + } + }, + "ViewInputSchema":{ + "type":"string", + "sensitive":true + }, + "ViewName":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^([\\p{L}\\p{N}_.:\\/=+\\-@()']+[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@()']*)$", + "sensitive":true + }, + "ViewStatus":{ + "type":"string", + "enum":[ + "PUBLISHED", + "SAVED" + ] + }, + "ViewSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"ViewId"}, + "Arn":{"shape":"ARN"}, + "Name":{"shape":"ViewName"}, + "Type":{"shape":"ViewType"}, + "Status":{"shape":"ViewStatus"}, + "Description":{"shape":"ViewDescription"} + } + }, + "ViewTemplate":{"type":"string"}, + "ViewType":{ + "type":"string", + "enum":[ + "CUSTOMER_MANAGED", + "AWS_MANAGED" + ] + }, + "ViewVersion":{"type":"integer"}, + "ViewVersionSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"ViewId"}, + "Arn":{"shape":"ARN"}, + "Description":{"shape":"ViewDescription"}, + "Name":{"shape":"ViewName"}, + "Type":{"shape":"ViewType"}, + "Version":{"shape":"ViewVersion"}, + "VersionDescription":{"shape":"ViewDescription"} + } + }, + "ViewVersionSummaryList":{ + "type":"list", + "member":{"shape":"ViewVersionSummary"} + }, + "ViewsClientToken":{ + "type":"string", + "max":500, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*)$" + }, + "ViewsInstanceId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9\\_\\-:\\/]+$" + }, + "ViewsNextToken":{ + "type":"string", + "max":4096, + "min":1, + "pattern":"^[a-zA-Z0-9=\\/+_.-]+$" + }, + "ViewsSummaryList":{ + "type":"list", + "member":{"shape":"ViewSummary"} + }, "Vocabulary":{ "type":"structure", "required":[ diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json index 922ce25fa8c..1623699acf1 100644 --- a/models/apis/connect/2017-08-08/docs-2.json +++ b/models/apis/connect/2017-08-08/docs-2.json @@ -24,16 +24,18 @@ "CreateIntegrationAssociation": "

Creates an Amazon Web Services resource association with an Amazon Connect instance.

", "CreateParticipant": "

Adds a new participant into an on-going chat contact. For more information, see Customize chat flow experiences by integrating custom participants.

", "CreatePrompt": "

Creates a prompt. For more information about prompts, such as supported file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide.

", - "CreateQueue": "

This API is in preview release for Amazon Connect and is subject to change.

Creates a new queue for the specified Amazon Connect instance.

If the number being used in the input is claimed to a traffic distribution group, and you are calling this API using an instance in the Amazon Web Services Region where the traffic distribution group was created, you can use either a full phone number ARN or UUID value for the OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number is claimed to a traffic distribution group and you are calling this API using an instance in the alternate Amazon Web Services Region associated with the traffic distribution group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive a ResourceNotFoundException.

Only use the phone number ARN format that doesn't contain instance in the path, for example, arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This is the same ARN format that is returned when you call the ListPhoneNumbersV2 API.

", + "CreateQueue": "

This API is in preview release for Amazon Connect and is subject to change.

Creates a new queue for the specified Amazon Connect instance.

", "CreateQuickConnect": "

Creates a quick connect for the specified Amazon Connect instance.

", "CreateRoutingProfile": "

Creates a new routing profile.

", "CreateRule": "

Creates a rule for the specified Amazon Connect instance.

Use the Rules Function language to code conditions for the rule.

", "CreateSecurityProfile": "

This API is in preview release for Amazon Connect and is subject to change.

Creates a security profile.

", "CreateTaskTemplate": "

Creates a new task template in the specified Amazon Connect instance.

", - "CreateTrafficDistributionGroup": "

Creates a traffic distribution group given an Amazon Connect instance that has been replicated.

For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect Administrator Guide.

", + "CreateTrafficDistributionGroup": "

Creates a traffic distribution group given an Amazon Connect instance that has been replicated.

You can change the SignInConfig distribution only for a default TrafficDistributionGroup (see the IsDefault parameter in the TrafficDistributionGroup data type). If you call UpdateTrafficDistribution with a modified SignInConfig and a non-default TrafficDistributionGroup, an InvalidRequestException is returned.

For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect Administrator Guide.

", "CreateUseCase": "

Creates a use case for an integration association.

", "CreateUser": "

Creates a user account for the specified Amazon Connect instance.

For information about how to create user accounts using the Amazon Connect console, see Add Users in the Amazon Connect Administrator Guide.

", "CreateUserHierarchyGroup": "

Creates a new user hierarchy group.

", + "CreateView": "

Creates a new view with the possible status of SAVED or PUBLISHED.

The views will have a unique name for each connect instance.

It performs basic content validation if the status is SAVED or full content validation if the status is set to PUBLISHED. An error is returned if validation fails. It associates either the $SAVED qualifier or both of the $SAVED and $LATEST qualifiers with the provided view content based on the status. The view is idempotent if ClientToken is provided.

", + "CreateViewVersion": "

Publishes a new version of the view identifier.

Versions are immutable and monotonically increasing.

It returns the highest version if there is no change in content compared to that version. An error is displayed if the supplied ViewContentSha256 is different from the ViewContentSha256 of the $LATEST alias.

", "CreateVocabulary": "

Creates a custom vocabulary associated with your Amazon Connect instance. You can set a custom vocabulary to be your default vocabulary for a given language. Contact Lens for Amazon Connect uses the default vocabulary in post-call and real-time contact analysis sessions for that language.

", "DeactivateEvaluationForm": "

Deactivates an evaluation form in the specified Amazon Connect instance. After a form is deactivated, it is no longer available for users to start new evaluations based on the form.

", "DeleteContactEvaluation": "

Deletes a contact evaluation in the specified Amazon Connect instance.

", @@ -54,6 +56,8 @@ "DeleteUseCase": "

Deletes a use case from an integration association.

", "DeleteUser": "

Deletes a user account from the specified Amazon Connect instance.

For information about what happens to a user's data when their account is deleted, see Delete Users from Your Amazon Connect Instance in the Amazon Connect Administrator Guide.

", "DeleteUserHierarchyGroup": "

Deletes an existing user hierarchy group. It must not be associated with any agents or have any active child groups.

", + "DeleteView": "

Deletes the view entirely. It deletes the view and all associated qualifiers (versions and aliases).

", + "DeleteViewVersion": "

Deletes the particular version specified in ViewVersion identifier.

", "DeleteVocabulary": "

Deletes the vocabulary that has the given identifier.

", "DescribeAgentStatus": "

This API is in preview release for Amazon Connect and is subject to change.

Describes an agent status.

", "DescribeContact": "

This API is in preview release for Amazon Connect and is subject to change.

Describes the specified contact.

Contact information remains available in Amazon Connect for 24 months, and then it is deleted.

Only data from November 12, 2021, and later is returned by this API.

", @@ -76,6 +80,7 @@ "DescribeUser": "

Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final part of the ARN). The console does not display the user IDs. Instead, list the users and note the IDs provided in the output.

", "DescribeUserHierarchyGroup": "

Describes the specified hierarchy group.

", "DescribeUserHierarchyStructure": "

Describes the hierarchy structure of the specified Amazon Connect instance.

", + "DescribeView": "

Retrieves the view for the specified Amazon Connect instance and view identifier.

The view identifier can be supplied as a ViewId or ARN.

$SAVED needs to be supplied if a view is unpublished.

The view identifier can contain an optional qualifier, for example, <view-id>:$SAVED, which is either an actual version number or an Amazon Connect managed qualifier $SAVED | $LATEST. If it is not supplied, then $LATEST is assumed for customer managed views and an error is returned if there is no published content available. Version 1 is assumed for Amazon Web Services managed views.

", "DescribeVocabulary": "

Describes the specified vocabulary.

", "DisassociateApprovedOrigin": "

This API is in preview release for Amazon Connect and is subject to change.

Revokes access to integrated applications from Amazon Connect.

", "DisassociateBot": "

This API is in preview release for Amazon Connect and is subject to change.

Revokes authorization from the specified instance to access the specified Amazon Lex or Amazon Lex V2 bot.

", @@ -114,7 +119,7 @@ "ListIntegrationAssociations": "

Provides summary information about the Amazon Web Services resource associations for the specified Amazon Connect instance.

", "ListLambdaFunctions": "

This API is in preview release for Amazon Connect and is subject to change.

Returns a paginated list of all Lambda functions that display in the dropdown options in the relevant flow blocks.

", "ListLexBots": "

This API is in preview release for Amazon Connect and is subject to change.

Returns a paginated list of all the Amazon Lex V1 bots currently associated with the instance. To return both Amazon Lex V1 and V2 bots, use the ListBots API.

", - "ListPhoneNumbers": "

Provides information about the phone numbers for the specified Amazon Connect instance.

For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.

The phone number Arn value that is returned from each of the items in the PhoneNumberSummaryList cannot be used to tag phone number resources. It will fail with a ResourceNotFoundException. Instead, use the ListPhoneNumbersV2 API. It returns the new phone number ARN that can be used to tag phone number resources.

", + "ListPhoneNumbers": "

Provides information about the phone numbers for the specified Amazon Connect instance.

For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.

", "ListPhoneNumbersV2": "

Lists phone numbers claimed to your Amazon Connect instance or traffic distribution group. If the provided TargetArn is a traffic distribution group, you can call this API in both Amazon Web Services Regions associated with traffic distribution group.

For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.

", "ListPrompts": "

Provides information about the prompts for the specified Amazon Connect instance.

", "ListQueueQuickConnects": "

This API is in preview release for Amazon Connect and is subject to change.

Lists the quick connects associated with a queue.

", @@ -133,6 +138,8 @@ "ListUseCases": "

Lists the use cases for the integration association.

", "ListUserHierarchyGroups": "

Provides summary information about the hierarchy groups for the specified Amazon Connect instance.

For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator Guide.

", "ListUsers": "

Provides summary information about the users for the specified Amazon Connect instance.

", + "ListViewVersions": "

Returns all the available versions for the specified Amazon Connect instance and view identifier.

Results will be sorted from highest to lowest.

", + "ListViews": "

Returns views in the given instance.

Results are sorted primarily by type, and secondarily by name.

", "MonitorContact": "

Initiates silent monitoring of a contact. The Contact Control Panel (CCP) of the user specified by userId will be set to silent monitoring mode on the contact.

", "PutUserStatus": "

Changes the current status of a user or agent in Amazon Connect. If the agent is currently handling a contact, this sets the agent's next status.

For more information, see Agent status and Set your next status in the Amazon Connect Administrator Guide.

", "ReleasePhoneNumber": "

Releases a phone number previously claimed to an Amazon Connect instance or traffic distribution group. You can call this API only in the Amazon Web Services Region where the number was claimed.

To release phone numbers from a traffic distribution group, use the ReleasePhoneNumber API, not the Amazon Connect console.

After releasing a phone number, the phone number enters into a cooldown period of 30 days. It cannot be searched for or claimed again until the period has ended. If you accidentally release a phone number, contact Amazon Web Services Support.

If you plan to claim and release numbers frequently during a 30 day period, contact us for a service quota exception. Otherwise, it is possible you will be blocked from claiming and releasing any more numbers until 30 days past the oldest number released has expired.

By default you can claim and release up to 200% of your maximum number of active phone numbers during any 30 day period. If you claim and release phone numbers using the UI or API during a rolling 30 day cycle that exceeds 200% of your phone number service level quota, you will be blocked from claiming any more numbers until 30 days past the oldest number released has expired.

For example, if you already have 99 claimed numbers and a service level quota of 99 phone numbers, and in any 30 day period you release 99, claim 99, and then release 99, you will have exceeded the 200% limit. At that point you are blocked from claiming any more numbers until you open an Amazon Web Services support ticket.

", @@ -154,7 +161,7 @@ "StartContactStreaming": "

Initiates real-time message streaming for a new chat contact.

For more information about message streaming, see Enable real-time chat message streaming in the Amazon Connect Administrator Guide.

", "StartOutboundVoiceContact": "

Places an outbound call to a contact, and then initiates the flow. It performs the actions in the flow that's specified (in ContactFlowId).

Agents do not initiate the outbound API, which means that they do not dial the contact. If the flow places an outbound call to a contact, and then puts the contact in queue, the call is then routed to the agent, like any other inbound case.

There is a 60-second dialing timeout for this operation. If the call is not connected after 60 seconds, it fails.

UK numbers with a 447 prefix are not allowed by default. Before you can dial these UK mobile numbers, you must submit a service quota increase request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

Campaign calls are not allowed by default. Before you can make a call with TrafficType = CAMPAIGN, you must submit a service quota increase request to the quota Amazon Connect campaigns.

", "StartTaskContact": "

Initiates a flow to start a new task.

", - "StopContact": "

Ends the specified contact. This call does not work for the following initiation methods:

", + "StopContact": "

Ends the specified contact. This call does not work for voice contacts that use the following initiation methods:

Chat and task contacts, however, can be terminated in any state, regardless of initiation method.

", "StopContactRecording": "

Stops recording a call when a contact is being recorded. StopContactRecording is a one-time action. If you use StopContactRecording to stop recording an ongoing call, you can't use StartContactRecording to restart it. For scenarios where the recording has started and you want to suspend it for sensitive information (for example, to collect a credit card number), and then restart it, use SuspendContactRecording and ResumeContactRecording.

Only voice recordings are supported at this time.

", "StopContactStreaming": "

Ends message streaming on a specified contact. To restart message streaming on that contact, call the StartContactStreaming API.

", "SubmitContactEvaluation": "

Submits a contact evaluation in the specified Amazon Connect instance. Answers included in the request are merged with existing answers for the given evaluation. If no answers or notes are passed, the evaluation is submitted with the existing answers and notes. You can delete an answer or note by passing an empty object ({}) to the question identifier.

If a contact evaluation is already in submitted state, this operation will trigger a resubmission.

", @@ -182,7 +189,7 @@ "UpdateQueueHoursOfOperation": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the hours of operation for the specified queue.

", "UpdateQueueMaxContacts": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the maximum number of contacts allowed in a queue before it is considered full.

", "UpdateQueueName": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the name and description of a queue. At least Name or Description must be provided.

", - "UpdateQueueOutboundCallerConfig": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the outbound caller ID name, number, and outbound whisper flow for a specified queue.

If the number being used in the input is claimed to a traffic distribution group, and you are calling this API using an instance in the Amazon Web Services Region where the traffic distribution group was created, you can use either a full phone number ARN or UUID value for the OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number is claimed to a traffic distribution group and you are calling this API using an instance in the alternate Amazon Web Services Region associated with the traffic distribution group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive a ResourceNotFoundException.

Only use the phone number ARN format that doesn't contain instance in the path, for example, arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This is the same ARN format that is returned when you call the ListPhoneNumbersV2 API.

", + "UpdateQueueOutboundCallerConfig": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the outbound caller ID name, number, and outbound whisper flow for a specified queue.

", "UpdateQueueStatus": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the status of the queue.

", "UpdateQuickConnectConfig": "

Updates the configuration settings for the specified quick connect.

", "UpdateQuickConnectName": "

Updates the name and description of a quick connect. The request accepts the following data in JSON format. At least Name or Description must be provided.

", @@ -194,14 +201,16 @@ "UpdateRule": "

Updates a rule for the specified Amazon Connect instance.

Use the Rules Function language to code conditions for the rule.

", "UpdateSecurityProfile": "

This API is in preview release for Amazon Connect and is subject to change.

Updates a security profile.

", "UpdateTaskTemplate": "

Updates details about a specific task template in the specified Amazon Connect instance. This operation does not support partial updates. Instead it does a full update of template content.

", - "UpdateTrafficDistribution": "

Updates the traffic distribution for a given traffic distribution group.

You can change the SignInConfig only for a default TrafficDistributionGroup. If you call UpdateTrafficDistribution with a modified SignInConfig and a non-default TrafficDistributionGroup, an InvalidRequestException is returned.

For more information about updating a traffic distribution group, see Update telephony traffic distribution across Amazon Web Services Regions in the Amazon Connect Administrator Guide.

", + "UpdateTrafficDistribution": "

Updates the traffic distribution for a given traffic distribution group.

You can change the SignInConfig distribution only for a default TrafficDistributionGroup (see the IsDefault parameter in the TrafficDistributionGroup data type). If you call UpdateTrafficDistribution with a modified SignInConfig and a non-default TrafficDistributionGroup, an InvalidRequestException is returned.

For more information about updating a traffic distribution group, see Update telephony traffic distribution across Amazon Web Services Regions in the Amazon Connect Administrator Guide.

", "UpdateUserHierarchy": "

Assigns the specified hierarchy group to the specified user.

", "UpdateUserHierarchyGroupName": "

Updates the name of the user hierarchy group.

", "UpdateUserHierarchyStructure": "

Updates the user hierarchy structure: add, remove, and rename user hierarchy levels.

", "UpdateUserIdentityInfo": "

Updates the identity information for the specified user.

We strongly recommend limiting who has the ability to invoke UpdateUserIdentityInfo. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide.

", "UpdateUserPhoneConfig": "

Updates the phone configuration settings for the specified user.

", "UpdateUserRoutingProfile": "

Assigns the specified routing profile to the specified user.

", - "UpdateUserSecurityProfiles": "

Assigns the specified security profiles to the specified user.

" + "UpdateUserSecurityProfiles": "

Assigns the specified security profiles to the specified user.

", + "UpdateViewContent": "

Updates the view content of the given view identifier in the specified Amazon Connect instance.

It performs content validation if Status is set to SAVED and performs full content validation if Status is PUBLISHED. Note that the $SAVED alias' content will always be updated, but the $LATEST alias' content will only be updated if Status is PUBLISHED.

", + "UpdateViewMetadata": "

Updates the view metadata. Note that either Name or Description must be provided.

" }, "shapes": { "ARN": { @@ -312,6 +321,9 @@ "UserReference$Arn": "

The Amazon Resource Name (ARN) for the user.

", "UserSearchSummary$Arn": "

The Amazon Resource Name (ARN) of the user.

", "UserSummary$Arn": "

The Amazon Resource Name (ARN) of the user account.

", + "View$Arn": "

The Amazon Resource Name (ARN) of the view.

", + "ViewSummary$Arn": "

The Amazon Resource Name (ARN) of the view.

", + "ViewVersionSummary$Arn": "

The Amazon Resource Name (ARN) of the view version.

", "Vocabulary$Arn": "

The Amazon Resource Name (ARN) of the custom vocabulary.

", "VocabularySummary$Arn": "

The Amazon Resource Name (ARN) of the custom vocabulary.

", "WisdomInfo$SessionArn": "

The Amazon Resource Name (ARN) of the Wisdom session.

" @@ -730,7 +742,7 @@ "EvaluationScore$NotApplicable": "

The flag to mark the item as not applicable for scoring.

", "EvaluationScore$AutomaticFail": "

The flag that marks the item as automatic fail. If the item or a child item gets an automatic fail answer, this flag will be true.

", "SignInDistribution$Enabled": "

Whether sign in distribution is enabled.

", - "TrafficDistributionGroup$IsDefault": "

Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup API. The default traffic distribution group is deleted as part of the process for deleting a replica.

You can change the SignInConfig only for a default TrafficDistributionGroup. If you call UpdateTrafficDistribution with a modified SignInConfig and a non-default TrafficDistributionGroup, an InvalidRequestException is returned.

", + "TrafficDistributionGroup$IsDefault": "

Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup API. The default traffic distribution group is deleted as part of the process for deleting a replica.

You can change the SignInConfig distribution only for a default TrafficDistributionGroup (see the IsDefault parameter in the TrafficDistributionGroup data type). If you call UpdateTrafficDistribution with a modified SignInConfig and a non-default TrafficDistributionGroup, an InvalidRequestException is returned.

", "TrafficDistributionGroupSummary$IsDefault": "

Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup API. The default traffic distribution group is deleted as part of the process for deleting a replica.

", "UpdateAgentStatusRequest$ResetOrderNumber": "

A number indicating the reset order of the agent status.

" } @@ -1130,7 +1142,7 @@ } }, "ContactNotFoundException": { - "base": "

The contact with the specified ID is not active or does not exist. Applies to Voice calls only, not to Chat, Task, or Voice Callback.

", + "base": "

The contact with the specified ID is not active or does not exist. Applies to Voice calls only, not to Chat or Task contacts.

", "refs": { } }, @@ -1369,6 +1381,26 @@ "refs": { } }, + "CreateViewRequest": { + "base": null, + "refs": { + } + }, + "CreateViewResponse": { + "base": null, + "refs": { + } + }, + "CreateViewVersionRequest": { + "base": null, + "refs": { + } + }, + "CreateViewVersionResponse": { + "base": null, + "refs": { + } + }, "CreateVocabularyRequest": { "base": null, "refs": { @@ -1592,6 +1624,26 @@ "refs": { } }, + "DeleteViewRequest": { + "base": null, + "refs": { + } + }, + "DeleteViewResponse": { + "base": null, + "refs": { + } + }, + "DeleteViewVersionRequest": { + "base": null, + "refs": { + } + }, + "DeleteViewVersionResponse": { + "base": null, + "refs": { + } + }, "DeleteVocabularyRequest": { "base": null, "refs": { @@ -1812,6 +1864,16 @@ "refs": { } }, + "DescribeViewRequest": { + "base": null, + "refs": { + } + }, + "DescribeViewResponse": { + "base": null, + "refs": { + } + }, "DescribeVocabularyRequest": { "base": null, "refs": { @@ -3668,6 +3730,26 @@ "refs": { } }, + "ListViewVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListViewVersionsResponse": { + "base": null, + "refs": { + } + }, + "ListViewsRequest": { + "base": null, + "refs": { + } + }, + "ListViewsResponse": { + "base": null, + "refs": { + } + }, "Long": { "base": null, "refs": { @@ -3757,6 +3839,13 @@ "ListInstanceAttributesRequest$MaxResults": "

The maximum number of results to return per page.

" } }, + "MaxResults": { + "base": null, + "refs": { + "ListViewVersionsRequest$MaxResults": "

The maximum number of results to return per page. The default MaxResult size is 100.

", + "ListViewsRequest$MaxResults": "

The maximum number of results to return per page. The default MaxResult size is 100.

" + } + }, "MaximumResultReturnedException": { "base": "

Maximum number (1000) of tags have been returned with current request. Consider changing request parameters to get more tags.

", "refs": { @@ -3799,6 +3888,7 @@ "ResourceNotReadyException$Message": null, "ServiceQuotaExceededException$Message": null, "ThrottlingException$Message": null, + "TooManyRequestsException$Message": null, "UserNotFoundException$Message": null } }, @@ -5696,6 +5786,7 @@ "CreateUseCaseRequest$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", "CreateUserHierarchyGroupRequest$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", "CreateUserRequest$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "CreateViewRequest$Tags": "

The tags associated with the view resource (not specific to view version).These tags can be used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", "CreateVocabularyRequest$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", "Evaluation$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", "EvaluationForm$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", @@ -5714,6 +5805,7 @@ "TrafficDistributionGroup$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", "User$Tags": "

The tags.

", "UserSearchSummary$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "View$Tags": "

The tags associated with the view resource (not specific to view version).

", "Vocabulary$Tags": "

The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" } }, @@ -6019,7 +6111,14 @@ "RuleSummary$CreatedTime": "

The timestamp for when the rule was created.

", "RuleSummary$LastUpdatedTime": "

The timestamp for when the rule was last updated.

", "StartTaskContactRequest$ScheduledTime": "

The timestamp, in Unix Epoch seconds format, at which to start running the inbound flow. The scheduled time cannot be in the past. It must be within up to 6 days in future.

", - "UpdateContactScheduleRequest$ScheduledTime": "

The timestamp, in Unix Epoch seconds format, at which to start running the inbound flow. The scheduled time cannot be in the past. It must be within up to 6 days in future.

" + "UpdateContactScheduleRequest$ScheduledTime": "

The timestamp, in Unix Epoch seconds format, at which to start running the inbound flow. The scheduled time cannot be in the past. It must be within up to 6 days in future.

", + "View$CreatedTime": "

The timestamp of when the view was created.

", + "View$LastModifiedTime": "

Latest timestamp of the UpdateViewContent or CreateViewVersion operations.

" + } + }, + "TooManyRequestsException": { + "base": "

Displayed when rate-related API limits are exceeded.

", + "refs": { } }, "TrafficDistributionGroup": { @@ -6423,6 +6522,26 @@ "refs": { } }, + "UpdateViewContentRequest": { + "base": null, + "refs": { + } + }, + "UpdateViewContentResponse": { + "base": null, + "refs": { + } + }, + "UpdateViewMetadataRequest": { + "base": null, + "refs": { + } + }, + "UpdateViewMetadataResponse": { + "base": null, + "refs": { + } + }, "Url": { "base": null, "refs": { @@ -6641,6 +6760,178 @@ "UpdateEvaluationFormResponse$EvaluationFormVersion": "

The version of the updated evaluation form resource.

" } }, + "View": { + "base": "

A view resource object. Contains metadata and content necessary to render the view.

", + "refs": { + "CreateViewResponse$View": "

A view resource object. Contains metadata and content necessary to render the view.

", + "CreateViewVersionResponse$View": "

All view data is contained within the View object.

", + "DescribeViewResponse$View": "

All view data is contained within the View object.

", + "UpdateViewContentResponse$View": "

A view resource object. Contains metadata and content necessary to render the view.

" + } + }, + "ViewAction": { + "base": null, + "refs": { + "ViewActions$member": null + } + }, + "ViewActions": { + "base": null, + "refs": { + "ViewContent$Actions": "

A list of possible actions from the view.

", + "ViewInputContent$Actions": "

A list of possible actions from the view.

" + } + }, + "ViewContent": { + "base": "

View content containing all content necessary to render a view except for runtime input data.

", + "refs": { + "View$Content": "

View content containing all content necessary to render a view except for runtime input data.

" + } + }, + "ViewContentSha256": { + "base": null, + "refs": { + "CreateViewVersionRequest$ViewContentSha256": "

Indicates the checksum value of the latest published view content.

", + "View$ViewContentSha256": "

Indicates the checksum value of the latest published view content.

" + } + }, + "ViewDescription": { + "base": null, + "refs": { + "CreateViewRequest$Description": "

The description of the view.

", + "CreateViewVersionRequest$VersionDescription": "

The description for the version being published.

", + "UpdateViewMetadataRequest$Description": "

The description of the view.

", + "View$Description": "

The description of the view.

", + "View$VersionDescription": "

The description of the version.

", + "ViewSummary$Description": "

The description of the view.

", + "ViewVersionSummary$Description": "

The description of the view version.

", + "ViewVersionSummary$VersionDescription": "

The description of the view version.

" + } + }, + "ViewId": { + "base": null, + "refs": { + "CreateViewVersionRequest$ViewId": "

The identifier of the view. Both ViewArn and ViewId can be used.

", + "DeleteViewRequest$ViewId": "

The identifier of the view. Both ViewArn and ViewId can be used.

", + "DeleteViewVersionRequest$ViewId": "

The identifier of the view. Both ViewArn and ViewId can be used.

", + "DescribeViewRequest$ViewId": "

The ViewId of the view. This must be an ARN for Amazon Web Services managed views.

", + "ListViewVersionsRequest$ViewId": "

The identifier of the view. Both ViewArn and ViewId can be used.

", + "UpdateViewContentRequest$ViewId": "

The identifier of the view. Both ViewArn and ViewId can be used.

", + "UpdateViewMetadataRequest$ViewId": "

The identifier of the view. Both ViewArn and ViewId can be used.

", + "View$Id": "

The identifier of the view.

", + "ViewSummary$Id": "

The identifier of the view.

", + "ViewVersionSummary$Id": "

The identifier of the view version.

" + } + }, + "ViewInputContent": { + "base": "

View content containing all content necessary to render a view except for runtime input data and the runtime input schema, which is auto-generated by this operation.

", + "refs": { + "CreateViewRequest$Content": "

View content containing all content necessary to render a view except for runtime input data.

The total uncompressed content has a maximum file size of 400kB.

", + "UpdateViewContentRequest$Content": "

View content containing all content necessary to render a view except for runtime input data and the runtime input schema, which is auto-generated by this operation.

The total uncompressed content has a maximum file size of 400kB.

" + } + }, + "ViewInputSchema": { + "base": null, + "refs": { + "ViewContent$InputSchema": "

The data schema matching data that the view template must be provided to render.

" + } + }, + "ViewName": { + "base": null, + "refs": { + "CreateViewRequest$Name": "

The name of the view.

", + "UpdateViewMetadataRequest$Name": "

The name of the view.

", + "View$Name": "

The name of the view.

", + "ViewSummary$Name": "

The name of the view.

", + "ViewVersionSummary$Name": "

The name of the view version.

" + } + }, + "ViewStatus": { + "base": null, + "refs": { + "CreateViewRequest$Status": "

Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content.

", + "UpdateViewContentRequest$Status": "

Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content.

", + "View$Status": "

Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content.

", + "ViewSummary$Status": "

Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content.

" + } + }, + "ViewSummary": { + "base": "

A summary of a view's metadata.

", + "refs": { + "ViewsSummaryList$member": null + } + }, + "ViewTemplate": { + "base": null, + "refs": { + "ViewContent$Template": "

The view template representing the structure of the view.

", + "ViewInputContent$Template": "

The view template representing the structure of the view.

" + } + }, + "ViewType": { + "base": null, + "refs": { + "ListViewsRequest$Type": "

The type of the view.

", + "View$Type": "

The type of the view - CUSTOMER_MANAGED.

", + "ViewSummary$Type": "

The type of the view.

", + "ViewVersionSummary$Type": "

The type of the view version.

" + } + }, + "ViewVersion": { + "base": null, + "refs": { + "DeleteViewVersionRequest$ViewVersion": "

The version number of the view.

", + "View$Version": "

Current version of the view.

", + "ViewVersionSummary$Version": "

The sequentially incremented version of the view version.

" + } + }, + "ViewVersionSummary": { + "base": "

A summary of a view version's metadata.

", + "refs": { + "ViewVersionSummaryList$member": null + } + }, + "ViewVersionSummaryList": { + "base": null, + "refs": { + "ListViewVersionsResponse$ViewVersionSummaryList": "

A list of view version summaries.

" + } + }, + "ViewsClientToken": { + "base": null, + "refs": { + "CreateViewRequest$ClientToken": "

A unique Id for each create view request to avoid duplicate view creation. For example, the view is idempotent ClientToken is provided.

" + } + }, + "ViewsInstanceId": { + "base": null, + "refs": { + "CreateViewRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "CreateViewVersionRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "DeleteViewRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "DeleteViewVersionRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "DescribeViewRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "ListViewVersionsRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "ListViewsRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "UpdateViewContentRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "UpdateViewMetadataRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

" + } + }, + "ViewsNextToken": { + "base": null, + "refs": { + "ListViewVersionsRequest$NextToken": "

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

", + "ListViewVersionsResponse$NextToken": "

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

", + "ListViewsRequest$NextToken": "

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

", + "ListViewsResponse$NextToken": "

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

" + } + }, + "ViewsSummaryList": { + "base": null, + "refs": { + "ListViewsResponse$ViewsSummaryList": "

A list of view summaries.

" + } + }, "Vocabulary": { "base": "

Contains information about a custom vocabulary.

", "refs": { diff --git a/models/apis/connect/2017-08-08/paginators-1.json b/models/apis/connect/2017-08-08/paginators-1.json index a4012e4c41c..2b1d93b7baf 100644 --- a/models/apis/connect/2017-08-08/paginators-1.json +++ b/models/apis/connect/2017-08-08/paginators-1.json @@ -228,6 +228,18 @@ "output_token": "NextToken", "result_key": "UserSummaryList" }, + "ListViewVersions": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ViewVersionSummaryList" + }, + "ListViews": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ViewsSummaryList" + }, "SearchAvailablePhoneNumbers": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/apis/identitystore/2020-06-15/api-2.json b/models/apis/identitystore/2020-06-15/api-2.json index abbf02fb659..0ed063b406d 100644 --- a/models/apis/identitystore/2020-06-15/api-2.json +++ b/models/apis/identitystore/2020-06-15/api-2.json @@ -1577,7 +1577,7 @@ "NextToken": { "max": 65535, "min": 1, - "pattern": "[-a-zA-Z0-9+=/:]*", + "pattern": "[-a-zA-Z0-9+=/:_]*", "type": "string" }, "PhoneNumber": { diff --git a/models/apis/identitystore/2020-06-15/docs-2.json b/models/apis/identitystore/2020-06-15/docs-2.json index b5a0ed02dc9..8309af4faa4 100644 --- a/models/apis/identitystore/2020-06-15/docs-2.json +++ b/models/apis/identitystore/2020-06-15/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

The Identity Store service used by AWS IAM Identity Center (successor to AWS Single Sign-On) provides a single place to retrieve all of your identities (users and groups). For more information, see the IAM Identity Center User Guide.

 <note> <p>Although AWS Single Sign-On was renamed, the <code>sso</code> and <code>identitystore</code> API namespaces will continue to retain their original name for backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">IAM Identity Center rename</a>.</p> </note> <p>This reference guide describes the identity store operations that you can call programatically and includes detailed information about data types and errors.</p> 
", + "service": "

The Identity Store service used by IAM Identity Center provides a single place to retrieve all of your identities (users and groups). For more information, see the IAM Identity Center User Guide.

This reference guide describes the identity store operations that you can call programmatically and includes detailed information about data types and errors.

IAM Identity Center uses the sso and identitystore API namespaces.

", "operations": { "CreateGroup": "

Creates a group within the specified identity store.

", "CreateGroupMembership": "

Creates a relationship between a member and a group. The following identifiers must be specified: GroupId, IdentityStoreId, and MemberId.

", @@ -8,17 +8,17 @@ "DeleteGroup": "

Delete a group within an identity store given GroupId.

", "DeleteGroupMembership": "

Delete a membership within a group given MembershipId.

", "DeleteUser": "

Deletes a user within an identity store given UserId.

", - "DescribeGroup": "

Retrieves the group metadata and attributes from GroupId in an identity store.

", - "DescribeGroupMembership": "

Retrieves membership metadata and attributes from MembershipId in an identity store.

", - "DescribeUser": "

Retrieves the user metadata and attributes from the UserId in an identity store.

", - "GetGroupId": "

Retrieves GroupId in an identity store.

", - "GetGroupMembershipId": "

Retrieves the MembershipId in an identity store.

", - "GetUserId": "

Retrieves the UserId in an identity store.

", - "IsMemberInGroups": "

Checks the user's membership in all requested groups and returns if the member exists in all queried groups.

", - "ListGroupMemberships": "

For the specified group in the specified identity store, returns the list of all GroupMembership objects and returns results in paginated form.

", - "ListGroupMembershipsForMember": "

For the specified member in the specified identity store, returns the list of all GroupMembership objects and returns results in paginated form.

", - "ListGroups": "

Lists all groups in the identity store. Returns a paginated list of complete Group objects. Filtering for a Group by the DisplayName attribute is deprecated. Instead, use the GetGroupId API action.

", - "ListUsers": "

Lists all users in the identity store. Returns a paginated list of complete User objects. Filtering for a User by the UserName attribute is deprecated. Instead, use the GetUserId API action.

", + "DescribeGroup": "

Retrieves the group metadata and attributes from GroupId in an identity store.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "DescribeGroupMembership": "

Retrieves membership metadata and attributes from MembershipId in an identity store.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "DescribeUser": "

Retrieves the user metadata and attributes from the UserId in an identity store.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "GetGroupId": "

Retrieves GroupId in an identity store.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "GetGroupMembershipId": "

Retrieves the MembershipId in an identity store.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "GetUserId": "

Retrieves the UserId in an identity store.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "IsMemberInGroups": "

Checks the user's membership in all requested groups and returns if the member exists in all queried groups.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "ListGroupMemberships": "

For the specified group in the specified identity store, returns the list of all GroupMembership objects and returns results in paginated form.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "ListGroupMembershipsForMember": "

For the specified member in the specified identity store, returns the list of all GroupMembership objects and returns results in paginated form.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "ListGroups": "

Lists all groups in the identity store. Returns a paginated list of complete Group objects. Filtering for a Group by the DisplayName attribute is deprecated. Instead, use the GetGroupId API action.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", + "ListUsers": "

Lists all users in the identity store. Returns a paginated list of complete User objects. Filtering for a User by the UserName attribute is deprecated. Instead, use the GetUserId API action.

If you have administrator access to a member account, you can use this API from the member account. Read about member accounts in the Organizations User Guide.

", "UpdateGroup": "

For the specified group in the specified identity store, updates the group metadata and attributes.

", "UpdateUser": "

For the specified user in the specified identity store, updates the user metadata and attributes.

" }, @@ -71,10 +71,10 @@ } }, "AttributeValue": { - "base": "

The value of the attribute. This is a Document type. This type is not supported by Java V1, Go V1, and older versions of the AWS CLI.

", + "base": "

The value of the attribute. This is a Document type. This type is not supported by Java V1, Go V1, and older versions of the CLI.

", "refs": { - "AttributeOperation$AttributeValue": "

The value of the attribute. This is a Document type. This type is not supported by Java V1, Go V1, and older versions of the AWS CLI.

", - "UniqueAttribute$AttributeValue": "

The value of the attribute. This is a Document type. This type is not supported by Java V1, Go V1, and older versions of the AWS CLI.

" + "AttributeOperation$AttributeValue": "

The value of the attribute. This is a Document type. This type is not supported by Java V1, Go V1, and older versions of the CLI.

", + "UniqueAttribute$AttributeValue": "

The value of the attribute. This is a Document type. This type is not supported by Java V1, Go V1, and older versions of the CLI.

" } }, "ConflictException": { @@ -284,7 +284,7 @@ "GroupDisplayName": { "base": null, "refs": { - "CreateGroupRequest$DisplayName": "

A string containing the name of the group. This value is commonly displayed when the group is referenced. \"Administrator\" and \"AWSAdministrators\" are reserved names and can't be used for users or groups.

", + "CreateGroupRequest$DisplayName": "

A string containing the name of the group. This value is commonly displayed when the group is referenced. Administrator and AWSAdministrators are reserved names and can't be used for users or groups.

", "DescribeGroupResponse$DisplayName": "

The group’s display name value. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. This value is specified at the time that the group is created and stored as an attribute of the group object in the identity store.

", "Group$DisplayName": "

The display name value for the group. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store.

" } @@ -641,7 +641,7 @@ "UserName": { "base": null, "refs": { - "CreateUserRequest$UserName": "

A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store. \"Administrator\" and \"AWSAdministrators\" are reserved names and can't be used for users or groups.

", + "CreateUserRequest$UserName": "

A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store. Administrator and AWSAdministrators are reserved names and can't be used for users or groups.

", "DescribeUserResponse$UserName": "

A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

", "User$UserName": "

A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

" } diff --git a/models/apis/identitystore/2020-06-15/endpoint-rule-set-1.json b/models/apis/identitystore/2020-06-15/endpoint-rule-set-1.json index 4c57a148229..f5ff60ae89c 100644 --- a/models/apis/identitystore/2020-06-15/endpoint-rule-set-1.json +++ b/models/apis/identitystore/2020-06-15/endpoint-rule-set-1.json @@ -58,52 +58,56 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, { - "conditions": [], + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "type": "tree", "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], "type": "tree", @@ -111,13 +115,22 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], "type": "tree", @@ -127,92 +140,83 @@ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://identitystore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "type": "tree", + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://identitystore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] } ], @@ -221,155 +225,115 @@ { "conditions": [ { - "fn": "booleanEquals", + "fn": "stringEquals", "argv": [ - true, + "aws-us-gov", { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "supportsFIPS" + "name" ] } ] } ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - "aws-us-gov", - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] - } - ] - } - ], - "endpoint": { - "url": "https://identitystore.{Region}.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [], - "endpoint": { - "url": "https://identitystore-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] + "endpoint": { + "url": "https://identitystore.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" }, { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://identitystore-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://identitystore.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], + ], "type": "tree", "rules": [ { "conditions": [], "endpoint": { - "url": "https://identitystore.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://identitystore.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://identitystore.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" } ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/identitystore/2020-06-15/endpoint-tests-1.json b/models/apis/identitystore/2020-06-15/endpoint-tests-1.json index 128082116cc..a703a4cc89b 100644 --- a/models/apis/identitystore/2020-06-15/endpoint-tests-1.json +++ b/models/apis/identitystore/2020-06-15/endpoint-tests-1.json @@ -9,8 +9,8 @@ }, "params": { "Region": "ap-northeast-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -22,8 +22,8 @@ }, "params": { "Region": "ap-northeast-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -35,8 +35,8 @@ }, "params": { "Region": "ap-south-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -48,8 +48,8 @@ }, "params": { "Region": "ap-southeast-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -61,8 +61,8 @@ }, "params": { "Region": "ap-southeast-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -74,8 +74,8 @@ }, "params": { "Region": "ca-central-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -87,8 +87,8 @@ }, "params": { "Region": "eu-central-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -100,8 +100,8 @@ }, "params": { "Region": "eu-north-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -113,8 +113,8 @@ }, "params": { "Region": "eu-west-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -126,8 +126,8 @@ }, "params": { "Region": "eu-west-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -139,8 +139,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -152,8 +152,8 @@ }, "params": { "Region": "us-east-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -165,8 +165,8 @@ }, "params": { "Region": "us-west-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -178,8 +178,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -191,8 +191,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -204,8 +204,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -217,8 +217,8 @@ }, "params": { "Region": "cn-north-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -230,8 +230,8 @@ }, "params": { "Region": "cn-north-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -243,8 +243,8 @@ }, "params": { "Region": "cn-north-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -256,8 +256,8 @@ }, "params": { "Region": "cn-north-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -269,8 +269,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -282,8 +282,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -295,8 +295,8 @@ }, "params": { "Region": "us-gov-west-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -308,8 +308,8 @@ }, "params": { "Region": "us-gov-west-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -321,8 +321,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -334,8 +334,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -345,8 +345,8 @@ }, "params": { "Region": "us-iso-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -358,8 +358,8 @@ }, "params": { "Region": "us-iso-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -369,8 +369,8 @@ }, "params": { "Region": "us-iso-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -382,8 +382,8 @@ }, "params": { "Region": "us-iso-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -393,8 +393,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -406,8 +406,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -417,8 +417,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -430,8 +430,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -443,8 +443,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -456,8 +456,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -468,8 +468,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -480,8 +480,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Endpoint": "https://example.com" } }, diff --git a/models/apis/neptunedata/2023-08-01/docs-2.json b/models/apis/neptunedata/2023-08-01/docs-2.json index e6bae497e9e..b3e63fb3398 100644 --- a/models/apis/neptunedata/2023-08-01/docs-2.json +++ b/models/apis/neptunedata/2023-08-01/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

Neptune Data API

The Amazon Neptune data API provides SDK support for more than 40 of Neptune's data operations, including data loading, query execution, data inquiry, and machine learning. It supports all three Neptune query languages (Gremlin, openCypher and SPARQL), and is available in all SDK languages. It automatically signs API requests and greatly simplifies integrating Neptune into your applications.

", + "service": "

Neptune Data API

The Amazon Neptune data API provides SDK support for more than 40 of Neptune's data operations, including data loading, query execution, data inquiry, and machine learning. It supports the Gremlin and openCypher query languages, and is available in all SDK languages. It automatically signs API requests and greatly simplifies integrating Neptune into your applications.

", "operations": { "CancelGremlinQuery": "

Cancels a Gremlin query. See Gremlin query cancellation for more information.

", "CancelLoaderJob": "

Cancels a specified load job. This is an HTTP DELETE request.

See Neptune Loader Get-Status API for more information.

", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 6f0dffc32b6..c1ad9e7f8f6 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -3049,6 +3049,7 @@ "deprecated" : true, "hostname" : "codecommit-fips.ca-central-1.amazonaws.com" }, + "il-central-1" : { }, "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, @@ -10730,6 +10731,7 @@ "endpoints" : { "ap-southeast-1" : { }, "eu-central-1" : { }, + "il-central-1" : { }, "us-east-1" : { "variants" : [ { "hostname" : "meetings-chime-fips.us-east-1.amazonaws.com", @@ -15935,6 +15937,7 @@ "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, + "il-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { }, diff --git a/service/chimesdkmediapipelines/api.go b/service/chimesdkmediapipelines/api.go index f426fdc7950..13290ca9327 100644 --- a/service/chimesdkmediapipelines/api.go +++ b/service/chimesdkmediapipelines/api.go @@ -775,6 +775,10 @@ func (c *ChimeSDKMediaPipelines) DeleteMediaPipelineRequest(input *DeleteMediaPi // - UnauthorizedClientException // The client is not currently authorized to make the request. // +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // - ServiceUnavailableException // The service is currently unavailable. // @@ -1094,6 +1098,200 @@ func (c *ChimeSDKMediaPipelines) GetMediaPipelineWithContext(ctx aws.Context, in return out, req.Send() } +const opGetSpeakerSearchTask = "GetSpeakerSearchTask" + +// GetSpeakerSearchTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetSpeakerSearchTask 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 GetSpeakerSearchTask for more information on using the GetSpeakerSearchTask +// 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 GetSpeakerSearchTaskRequest method. +// req, resp := client.GetSpeakerSearchTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetSpeakerSearchTask +func (c *ChimeSDKMediaPipelines) GetSpeakerSearchTaskRequest(input *GetSpeakerSearchTaskInput) (req *request.Request, output *GetSpeakerSearchTaskOutput) { + op := &request.Operation{ + Name: opGetSpeakerSearchTask, + HTTPMethod: "GET", + HTTPPath: "/media-insights-pipelines/{identifier}/speaker-search-tasks/{speakerSearchTaskId}", + } + + if input == nil { + input = &GetSpeakerSearchTaskInput{} + } + + output = &GetSpeakerSearchTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSpeakerSearchTask API operation for Amazon Chime SDK Media Pipelines. +// +// Retrieves the details of the specified speaker search task. +// +// 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 Chime SDK Media Pipelines's +// API operation GetSpeakerSearchTask for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetSpeakerSearchTask +func (c *ChimeSDKMediaPipelines) GetSpeakerSearchTask(input *GetSpeakerSearchTaskInput) (*GetSpeakerSearchTaskOutput, error) { + req, out := c.GetSpeakerSearchTaskRequest(input) + return out, req.Send() +} + +// GetSpeakerSearchTaskWithContext is the same as GetSpeakerSearchTask with the addition of +// the ability to pass a context and additional request options. +// +// See GetSpeakerSearchTask 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 *ChimeSDKMediaPipelines) GetSpeakerSearchTaskWithContext(ctx aws.Context, input *GetSpeakerSearchTaskInput, opts ...request.Option) (*GetSpeakerSearchTaskOutput, error) { + req, out := c.GetSpeakerSearchTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceToneAnalysisTask = "GetVoiceToneAnalysisTask" + +// GetVoiceToneAnalysisTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceToneAnalysisTask 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 GetVoiceToneAnalysisTask for more information on using the GetVoiceToneAnalysisTask +// 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 GetVoiceToneAnalysisTaskRequest method. +// req, resp := client.GetVoiceToneAnalysisTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetVoiceToneAnalysisTask +func (c *ChimeSDKMediaPipelines) GetVoiceToneAnalysisTaskRequest(input *GetVoiceToneAnalysisTaskInput) (req *request.Request, output *GetVoiceToneAnalysisTaskOutput) { + op := &request.Operation{ + Name: opGetVoiceToneAnalysisTask, + HTTPMethod: "GET", + HTTPPath: "/media-insights-pipelines/{identifier}/voice-tone-analysis-tasks/{voiceToneAnalysisTaskId}", + } + + if input == nil { + input = &GetVoiceToneAnalysisTaskInput{} + } + + output = &GetVoiceToneAnalysisTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceToneAnalysisTask API operation for Amazon Chime SDK Media Pipelines. +// +// Retrieves the details of a voice tone analysis task. +// +// 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 Chime SDK Media Pipelines's +// API operation GetVoiceToneAnalysisTask for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetVoiceToneAnalysisTask +func (c *ChimeSDKMediaPipelines) GetVoiceToneAnalysisTask(input *GetVoiceToneAnalysisTaskInput) (*GetVoiceToneAnalysisTaskOutput, error) { + req, out := c.GetVoiceToneAnalysisTaskRequest(input) + return out, req.Send() +} + +// GetVoiceToneAnalysisTaskWithContext is the same as GetVoiceToneAnalysisTask with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceToneAnalysisTask 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 *ChimeSDKMediaPipelines) GetVoiceToneAnalysisTaskWithContext(ctx aws.Context, input *GetVoiceToneAnalysisTaskInput, opts ...request.Option) (*GetVoiceToneAnalysisTaskOutput, error) { + req, out := c.GetVoiceToneAnalysisTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListMediaCapturePipelines = "ListMediaCapturePipelines" // ListMediaCapturePipelinesRequest generates a "aws/request.Request" representing the @@ -1653,254 +1851,272 @@ func (c *ChimeSDKMediaPipelines) ListTagsForResourceWithContext(ctx aws.Context, return out, req.Send() } -const opTagResource = "TagResource" +const opStartSpeakerSearchTask = "StartSpeakerSearchTask" -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// StartSpeakerSearchTaskRequest generates a "aws/request.Request" representing the +// client's request for the StartSpeakerSearchTask 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 StartSpeakerSearchTask for more information on using the StartSpeakerSearchTask // 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 StartSpeakerSearchTaskRequest method. +// req, resp := client.StartSpeakerSearchTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/TagResource -func (c *ChimeSDKMediaPipelines) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StartSpeakerSearchTask +func (c *ChimeSDKMediaPipelines) StartSpeakerSearchTaskRequest(input *StartSpeakerSearchTaskInput) (req *request.Request, output *StartSpeakerSearchTaskOutput) { op := &request.Operation{ - Name: opTagResource, + Name: opStartSpeakerSearchTask, HTTPMethod: "POST", - HTTPPath: "/tags?operation=tag-resource", + HTTPPath: "/media-insights-pipelines/{identifier}/speaker-search-tasks?operation=start", } if input == nil { - input = &TagResourceInput{} + input = &StartSpeakerSearchTaskInput{} } - output = &TagResourceOutput{} + output = &StartSpeakerSearchTaskOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for Amazon Chime SDK Media Pipelines. +// StartSpeakerSearchTask API operation for Amazon Chime SDK Media Pipelines. // -// The ARN of the media pipeline that you want to tag. Consists of the pipeline's -// endpoint region, resource ID, and pipeline ID. +// Starts a speaker search task. +// +// Before starting any speaker search tasks, you must provide all notices and +// obtain all consents from the speaker as required under applicable privacy +// and biometrics laws, and as required under the AWS service terms (https://aws.amazon.com/service-terms/) +// for the Amazon Chime SDK. // // 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 Chime SDK Media Pipelines's -// API operation TagResource for usage and error information. +// API operation StartSpeakerSearchTask for usage and error information. // // Returned Error Types: // -// - NotFoundException -// One or more of the resources in the request does not exist in the system. -// // - BadRequestException // The input parameters don't match the service's restrictions. // // - ForbiddenException // The client is permanently forbidden from making the request. // +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // - UnauthorizedClientException // The client is not currently authorized to make the request. // // - ThrottledClientException // The client exceeded its request rate limit. // +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// // - ServiceUnavailableException // The service is currently unavailable. // // - ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/TagResource -func (c *ChimeSDKMediaPipelines) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StartSpeakerSearchTask +func (c *ChimeSDKMediaPipelines) StartSpeakerSearchTask(input *StartSpeakerSearchTaskInput) (*StartSpeakerSearchTaskOutput, error) { + req, out := c.StartSpeakerSearchTaskRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// StartSpeakerSearchTaskWithContext is the same as StartSpeakerSearchTask 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 StartSpeakerSearchTask 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 *ChimeSDKMediaPipelines) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *ChimeSDKMediaPipelines) StartSpeakerSearchTaskWithContext(ctx aws.Context, input *StartSpeakerSearchTaskInput, opts ...request.Option) (*StartSpeakerSearchTaskOutput, error) { + req, out := c.StartSpeakerSearchTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +const opStartVoiceToneAnalysisTask = "StartVoiceToneAnalysisTask" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// StartVoiceToneAnalysisTaskRequest generates a "aws/request.Request" representing the +// client's request for the StartVoiceToneAnalysisTask 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 StartVoiceToneAnalysisTask for more information on using the StartVoiceToneAnalysisTask // 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 StartVoiceToneAnalysisTaskRequest method. +// req, resp := client.StartVoiceToneAnalysisTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UntagResource -func (c *ChimeSDKMediaPipelines) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StartVoiceToneAnalysisTask +func (c *ChimeSDKMediaPipelines) StartVoiceToneAnalysisTaskRequest(input *StartVoiceToneAnalysisTaskInput) (req *request.Request, output *StartVoiceToneAnalysisTaskOutput) { op := &request.Operation{ - Name: opUntagResource, + Name: opStartVoiceToneAnalysisTask, HTTPMethod: "POST", - HTTPPath: "/tags?operation=untag-resource", + HTTPPath: "/media-insights-pipelines/{identifier}/voice-tone-analysis-tasks?operation=start", } if input == nil { - input = &UntagResourceInput{} + input = &StartVoiceToneAnalysisTaskInput{} } - output = &UntagResourceOutput{} + output = &StartVoiceToneAnalysisTaskOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for Amazon Chime SDK Media Pipelines. +// StartVoiceToneAnalysisTask API operation for Amazon Chime SDK Media Pipelines. // -// Removes any tags from a media pipeline. +// Starts a voice tone analysis task. For more information about voice tone +// analysis, see Using Amazon Chime SDK voice analytics (https://docs.aws.amazon.com/chime-sdk/latest/dg/voice-analytics.html) +// in the Amazon Chime SDK Developer Guide. +// +// Before starting any voice tone analysis tasks, you must provide all notices +// and obtain all consents from the speaker as required under applicable privacy +// and biometrics laws, and as required under the AWS service terms (https://aws.amazon.com/service-terms/) +// for the Amazon Chime SDK. // // 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 Chime SDK Media Pipelines's -// API operation UntagResource for usage and error information. +// API operation StartVoiceToneAnalysisTask for usage and error information. // // Returned Error Types: // -// - NotFoundException -// One or more of the resources in the request does not exist in the system. -// // - BadRequestException // The input parameters don't match the service's restrictions. // // - ForbiddenException // The client is permanently forbidden from making the request. // +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // - UnauthorizedClientException // The client is not currently authorized to make the request. // // - ThrottledClientException // The client exceeded its request rate limit. // +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// // - ServiceUnavailableException // The service is currently unavailable. // // - ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UntagResource -func (c *ChimeSDKMediaPipelines) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StartVoiceToneAnalysisTask +func (c *ChimeSDKMediaPipelines) StartVoiceToneAnalysisTask(input *StartVoiceToneAnalysisTaskInput) (*StartVoiceToneAnalysisTaskOutput, error) { + req, out := c.StartVoiceToneAnalysisTaskRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// StartVoiceToneAnalysisTaskWithContext is the same as StartVoiceToneAnalysisTask 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 StartVoiceToneAnalysisTask 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 *ChimeSDKMediaPipelines) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *ChimeSDKMediaPipelines) StartVoiceToneAnalysisTaskWithContext(ctx aws.Context, input *StartVoiceToneAnalysisTaskInput, opts ...request.Option) (*StartVoiceToneAnalysisTaskOutput, error) { + req, out := c.StartVoiceToneAnalysisTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateMediaInsightsPipelineConfiguration = "UpdateMediaInsightsPipelineConfiguration" +const opStopSpeakerSearchTask = "StopSpeakerSearchTask" -// UpdateMediaInsightsPipelineConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateMediaInsightsPipelineConfiguration operation. The "output" return +// StopSpeakerSearchTaskRequest generates a "aws/request.Request" representing the +// client's request for the StopSpeakerSearchTask 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 UpdateMediaInsightsPipelineConfiguration for more information on using the UpdateMediaInsightsPipelineConfiguration +// See StopSpeakerSearchTask for more information on using the StopSpeakerSearchTask // 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 UpdateMediaInsightsPipelineConfigurationRequest method. -// req, resp := client.UpdateMediaInsightsPipelineConfigurationRequest(params) +// // Example sending a request using the StopSpeakerSearchTaskRequest method. +// req, resp := client.StopSpeakerSearchTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineConfiguration -func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfigurationRequest(input *UpdateMediaInsightsPipelineConfigurationInput) (req *request.Request, output *UpdateMediaInsightsPipelineConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StopSpeakerSearchTask +func (c *ChimeSDKMediaPipelines) StopSpeakerSearchTaskRequest(input *StopSpeakerSearchTaskInput) (req *request.Request, output *StopSpeakerSearchTaskOutput) { op := &request.Operation{ - Name: opUpdateMediaInsightsPipelineConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/media-insights-pipeline-configurations/{identifier}", + Name: opStopSpeakerSearchTask, + HTTPMethod: "POST", + HTTPPath: "/media-insights-pipelines/{identifier}/speaker-search-tasks/{speakerSearchTaskId}?operation=stop", } if input == nil { - input = &UpdateMediaInsightsPipelineConfigurationInput{} + input = &StopSpeakerSearchTaskInput{} } - output = &UpdateMediaInsightsPipelineConfigurationOutput{} + output = &StopSpeakerSearchTaskOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateMediaInsightsPipelineConfiguration API operation for Amazon Chime SDK Media Pipelines. +// StopSpeakerSearchTask API operation for Amazon Chime SDK Media Pipelines. // -// Updates the media insights pipeline's configuration settings. +// Stops a speaker search task. // // 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 Chime SDK Media Pipelines's -// API operation UpdateMediaInsightsPipelineConfiguration for usage and error information. +// API operation StopSpeakerSearchTask for usage and error information. // // Returned Error Types: // @@ -1910,6 +2126,10 @@ func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfigurationRequest // - ForbiddenException // The client is permanently forbidden from making the request. // +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // - UnauthorizedClientException // The client is not currently authorized to make the request. // @@ -1919,90 +2139,86 @@ func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfigurationRequest // - NotFoundException // One or more of the resources in the request does not exist in the system. // -// - ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. -// // - ServiceUnavailableException // The service is currently unavailable. // // - ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineConfiguration -func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfiguration(input *UpdateMediaInsightsPipelineConfigurationInput) (*UpdateMediaInsightsPipelineConfigurationOutput, error) { - req, out := c.UpdateMediaInsightsPipelineConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StopSpeakerSearchTask +func (c *ChimeSDKMediaPipelines) StopSpeakerSearchTask(input *StopSpeakerSearchTaskInput) (*StopSpeakerSearchTaskOutput, error) { + req, out := c.StopSpeakerSearchTaskRequest(input) return out, req.Send() } -// UpdateMediaInsightsPipelineConfigurationWithContext is the same as UpdateMediaInsightsPipelineConfiguration with the addition of +// StopSpeakerSearchTaskWithContext is the same as StopSpeakerSearchTask with the addition of // the ability to pass a context and additional request options. // -// See UpdateMediaInsightsPipelineConfiguration for details on how to use this API operation. +// See StopSpeakerSearchTask 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 *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfigurationWithContext(ctx aws.Context, input *UpdateMediaInsightsPipelineConfigurationInput, opts ...request.Option) (*UpdateMediaInsightsPipelineConfigurationOutput, error) { - req, out := c.UpdateMediaInsightsPipelineConfigurationRequest(input) +func (c *ChimeSDKMediaPipelines) StopSpeakerSearchTaskWithContext(ctx aws.Context, input *StopSpeakerSearchTaskInput, opts ...request.Option) (*StopSpeakerSearchTaskOutput, error) { + req, out := c.StopSpeakerSearchTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateMediaInsightsPipelineStatus = "UpdateMediaInsightsPipelineStatus" +const opStopVoiceToneAnalysisTask = "StopVoiceToneAnalysisTask" -// UpdateMediaInsightsPipelineStatusRequest generates a "aws/request.Request" representing the -// client's request for the UpdateMediaInsightsPipelineStatus operation. The "output" return +// StopVoiceToneAnalysisTaskRequest generates a "aws/request.Request" representing the +// client's request for the StopVoiceToneAnalysisTask 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 UpdateMediaInsightsPipelineStatus for more information on using the UpdateMediaInsightsPipelineStatus +// See StopVoiceToneAnalysisTask for more information on using the StopVoiceToneAnalysisTask // 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 UpdateMediaInsightsPipelineStatusRequest method. -// req, resp := client.UpdateMediaInsightsPipelineStatusRequest(params) +// // Example sending a request using the StopVoiceToneAnalysisTaskRequest method. +// req, resp := client.StopVoiceToneAnalysisTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineStatus -func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatusRequest(input *UpdateMediaInsightsPipelineStatusInput) (req *request.Request, output *UpdateMediaInsightsPipelineStatusOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StopVoiceToneAnalysisTask +func (c *ChimeSDKMediaPipelines) StopVoiceToneAnalysisTaskRequest(input *StopVoiceToneAnalysisTaskInput) (req *request.Request, output *StopVoiceToneAnalysisTaskOutput) { op := &request.Operation{ - Name: opUpdateMediaInsightsPipelineStatus, - HTTPMethod: "PUT", - HTTPPath: "/media-insights-pipeline-status/{identifier}", + Name: opStopVoiceToneAnalysisTask, + HTTPMethod: "POST", + HTTPPath: "/media-insights-pipelines/{identifier}/voice-tone-analysis-tasks/{voiceToneAnalysisTaskId}?operation=stop", } if input == nil { - input = &UpdateMediaInsightsPipelineStatusInput{} + input = &StopVoiceToneAnalysisTaskInput{} } - output = &UpdateMediaInsightsPipelineStatusOutput{} + output = &StopVoiceToneAnalysisTaskOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateMediaInsightsPipelineStatus API operation for Amazon Chime SDK Media Pipelines. +// StopVoiceToneAnalysisTask API operation for Amazon Chime SDK Media Pipelines. // -// Updates the status of a media insights pipeline. +// Stops a voice tone analysis task. // // 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 Chime SDK Media Pipelines's -// API operation UpdateMediaInsightsPipelineStatus for usage and error information. +// API operation StopVoiceToneAnalysisTask for usage and error information. // // Returned Error Types: // @@ -2031,185 +2247,1183 @@ func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatusRequest(input // - ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineStatus -func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatus(input *UpdateMediaInsightsPipelineStatusInput) (*UpdateMediaInsightsPipelineStatusOutput, error) { - req, out := c.UpdateMediaInsightsPipelineStatusRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StopVoiceToneAnalysisTask +func (c *ChimeSDKMediaPipelines) StopVoiceToneAnalysisTask(input *StopVoiceToneAnalysisTaskInput) (*StopVoiceToneAnalysisTaskOutput, error) { + req, out := c.StopVoiceToneAnalysisTaskRequest(input) return out, req.Send() } -// UpdateMediaInsightsPipelineStatusWithContext is the same as UpdateMediaInsightsPipelineStatus with the addition of +// StopVoiceToneAnalysisTaskWithContext is the same as StopVoiceToneAnalysisTask with the addition of // the ability to pass a context and additional request options. // -// See UpdateMediaInsightsPipelineStatus for details on how to use this API operation. +// See StopVoiceToneAnalysisTask 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 *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatusWithContext(ctx aws.Context, input *UpdateMediaInsightsPipelineStatusInput, opts ...request.Option) (*UpdateMediaInsightsPipelineStatusOutput, error) { - req, out := c.UpdateMediaInsightsPipelineStatusRequest(input) +func (c *ChimeSDKMediaPipelines) StopVoiceToneAnalysisTaskWithContext(ctx aws.Context, input *StopVoiceToneAnalysisTaskInput, opts ...request.Option) (*StopVoiceToneAnalysisTaskOutput, error) { + req, out := c.StopVoiceToneAnalysisTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// Defines the configuration for an ActiveSpeakerOnly video tile. -type ActiveSpeakerOnlyConfiguration struct { - _ struct{} `type:"structure"` - - // The position of the ActiveSpeakerOnly video tile. - ActiveSpeakerPosition *string `type:"string" enum:"ActiveSpeakerPosition"` -} +const opTagResource = "TagResource" -// String returns the string representation. +// 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. // -// 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 ActiveSpeakerOnlyConfiguration) String() string { - return awsutil.Prettify(s) +// 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 +// 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) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/TagResource +func (c *ChimeSDKMediaPipelines) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags?operation=tag-resource", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return } -// GoString returns the string representation. +// TagResource API operation for Amazon Chime SDK Media Pipelines. // -// 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 ActiveSpeakerOnlyConfiguration) GoString() string { - return s.String() +// The ARN of the media pipeline that you want to tag. Consists of the pipeline's +// endpoint region, resource ID, and pipeline 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 Chime SDK Media Pipelines's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/TagResource +func (c *ChimeSDKMediaPipelines) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() } -// SetActiveSpeakerPosition sets the ActiveSpeakerPosition field's value. -func (s *ActiveSpeakerOnlyConfiguration) SetActiveSpeakerPosition(v string) *ActiveSpeakerOnlyConfiguration { - s.ActiveSpeakerPosition = &v - return s +// TagResourceWithContext is the same as TagResource 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. +// +// 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 *ChimeSDKMediaPipelines) 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() } -// A structure that contains the configuration settings for an Amazon Transcribe -// call analytics processor. -type AmazonTranscribeCallAnalyticsProcessorConfiguration struct { - _ struct{} `type:"structure"` - - // By default, all CategoryEvents are sent to the insights target. If this parameter - // is specified, only included categories are sent to the insights target. - CallAnalyticsStreamCategories []*string `min:"1" type:"list"` +const opUntagResource = "UntagResource" - // Labels all personally identifiable information (PII) identified in your transcript. - // - // Content identification is performed at the segment level; PII specified in - // PiiEntityTypes is flagged upon complete transcription of an audio segment. - // - // You can’t set ContentIdentificationType and ContentRedactionType in the - // same request. If you do, your request returns a BadRequestException. - // - // For more information, see Redacting or identifying personally identifiable - // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) - // in the Amazon Transcribe Developer Guide. - ContentIdentificationType *string `type:"string" enum:"ContentType"` +// 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 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 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/chime-sdk-media-pipelines-2021-07-15/UntagResource +func (c *ChimeSDKMediaPipelines) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/tags?operation=untag-resource", + } - // Redacts all personally identifiable information (PII) identified in your - // transcript. - // - // Content redaction is performed at the segment level; PII specified in PiiEntityTypes - // is redacted upon complete transcription of an audio segment. - // - // You can’t set ContentRedactionType and ContentIdentificationType in the - // same request. If you do, your request returns a BadRequestException. - // - // For more information, see Redacting or identifying personally identifiable - // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) - // in the Amazon Transcribe Developer Guide. - ContentRedactionType *string `type:"string" enum:"ContentType"` + if input == nil { + input = &UntagResourceInput{} + } - // Enables partial result stabilization for your transcription. Partial result - // stabilization can reduce latency in your output, but may impact accuracy. - // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) - // in the Amazon Transcribe Developer Guide. - EnablePartialResultsStabilization *bool `type:"boolean"` + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} - // If true, UtteranceEvents with IsPartial: true are filtered out of the insights - // target. - FilterPartialResults *bool `type:"boolean"` +// UntagResource API operation for Amazon Chime SDK Media Pipelines. +// +// Removes any tags from a media pipeline. +// +// 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 Chime SDK Media Pipelines's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UntagResource +func (c *ChimeSDKMediaPipelines) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} - // The language code in the configuration. +// 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 *ChimeSDKMediaPipelines) 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 opUpdateMediaInsightsPipelineConfiguration = "UpdateMediaInsightsPipelineConfiguration" + +// UpdateMediaInsightsPipelineConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateMediaInsightsPipelineConfiguration 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 UpdateMediaInsightsPipelineConfiguration for more information on using the UpdateMediaInsightsPipelineConfiguration +// 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 UpdateMediaInsightsPipelineConfigurationRequest method. +// req, resp := client.UpdateMediaInsightsPipelineConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfigurationRequest(input *UpdateMediaInsightsPipelineConfigurationInput) (req *request.Request, output *UpdateMediaInsightsPipelineConfigurationOutput) { + op := &request.Operation{ + Name: opUpdateMediaInsightsPipelineConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/media-insights-pipeline-configurations/{identifier}", + } + + if input == nil { + input = &UpdateMediaInsightsPipelineConfigurationInput{} + } + + output = &UpdateMediaInsightsPipelineConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateMediaInsightsPipelineConfiguration API operation for Amazon Chime SDK Media Pipelines. +// +// Updates the media insights pipeline's configuration settings. +// +// 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 Chime SDK Media Pipelines's +// API operation UpdateMediaInsightsPipelineConfiguration for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfiguration(input *UpdateMediaInsightsPipelineConfigurationInput) (*UpdateMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.UpdateMediaInsightsPipelineConfigurationRequest(input) + return out, req.Send() +} + +// UpdateMediaInsightsPipelineConfigurationWithContext is the same as UpdateMediaInsightsPipelineConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateMediaInsightsPipelineConfiguration 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 *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfigurationWithContext(ctx aws.Context, input *UpdateMediaInsightsPipelineConfigurationInput, opts ...request.Option) (*UpdateMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.UpdateMediaInsightsPipelineConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateMediaInsightsPipelineStatus = "UpdateMediaInsightsPipelineStatus" + +// UpdateMediaInsightsPipelineStatusRequest generates a "aws/request.Request" representing the +// client's request for the UpdateMediaInsightsPipelineStatus 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 UpdateMediaInsightsPipelineStatus for more information on using the UpdateMediaInsightsPipelineStatus +// 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 UpdateMediaInsightsPipelineStatusRequest method. +// req, resp := client.UpdateMediaInsightsPipelineStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineStatus +func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatusRequest(input *UpdateMediaInsightsPipelineStatusInput) (req *request.Request, output *UpdateMediaInsightsPipelineStatusOutput) { + op := &request.Operation{ + Name: opUpdateMediaInsightsPipelineStatus, + HTTPMethod: "PUT", + HTTPPath: "/media-insights-pipeline-status/{identifier}", + } + + if input == nil { + input = &UpdateMediaInsightsPipelineStatusInput{} + } + + output = &UpdateMediaInsightsPipelineStatusOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateMediaInsightsPipelineStatus API operation for Amazon Chime SDK Media Pipelines. +// +// Updates the status of a media insights pipeline. +// +// 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 Chime SDK Media Pipelines's +// API operation UpdateMediaInsightsPipelineStatus for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineStatus +func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatus(input *UpdateMediaInsightsPipelineStatusInput) (*UpdateMediaInsightsPipelineStatusOutput, error) { + req, out := c.UpdateMediaInsightsPipelineStatusRequest(input) + return out, req.Send() +} + +// UpdateMediaInsightsPipelineStatusWithContext is the same as UpdateMediaInsightsPipelineStatus with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateMediaInsightsPipelineStatus 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 *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatusWithContext(ctx aws.Context, input *UpdateMediaInsightsPipelineStatusInput, opts ...request.Option) (*UpdateMediaInsightsPipelineStatusOutput, error) { + req, out := c.UpdateMediaInsightsPipelineStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Defines the configuration for an ActiveSpeakerOnly video tile. +type ActiveSpeakerOnlyConfiguration struct { + _ struct{} `type:"structure"` + + // The position of the ActiveSpeakerOnly video tile. + ActiveSpeakerPosition *string `type:"string" enum:"ActiveSpeakerPosition"` +} + +// 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 ActiveSpeakerOnlyConfiguration) 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 ActiveSpeakerOnlyConfiguration) GoString() string { + return s.String() +} + +// SetActiveSpeakerPosition sets the ActiveSpeakerPosition field's value. +func (s *ActiveSpeakerOnlyConfiguration) SetActiveSpeakerPosition(v string) *ActiveSpeakerOnlyConfiguration { + s.ActiveSpeakerPosition = &v + return s +} + +// A structure that contains the configuration settings for an Amazon Transcribe +// call analytics processor. +type AmazonTranscribeCallAnalyticsProcessorConfiguration struct { + _ struct{} `type:"structure"` + + // By default, all CategoryEvents are sent to the insights target. If this parameter + // is specified, only included categories are sent to the insights target. + CallAnalyticsStreamCategories []*string `min:"1" type:"list"` + + // Labels all personally identifiable information (PII) identified in your transcript. + // + // Content identification is performed at the segment level; PII specified in + // PiiEntityTypes is flagged upon complete transcription of an audio segment. + // + // You can’t set ContentIdentificationType and ContentRedactionType in the + // same request. If you do, your request returns a BadRequestException. + // + // For more information, see Redacting or identifying personally identifiable + // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) + // in the Amazon Transcribe Developer Guide. + ContentIdentificationType *string `type:"string" enum:"ContentType"` + + // Redacts all personally identifiable information (PII) identified in your + // transcript. + // + // Content redaction is performed at the segment level; PII specified in PiiEntityTypes + // is redacted upon complete transcription of an audio segment. + // + // You can’t set ContentRedactionType and ContentIdentificationType in the + // same request. If you do, your request returns a BadRequestException. + // + // For more information, see Redacting or identifying personally identifiable + // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) + // in the Amazon Transcribe Developer Guide. + ContentRedactionType *string `type:"string" enum:"ContentType"` + + // Enables partial result stabilization for your transcription. Partial result + // stabilization can reduce latency in your output, but may impact accuracy. + // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) + // in the Amazon Transcribe Developer Guide. + EnablePartialResultsStabilization *bool `type:"boolean"` + + // If true, UtteranceEvents with IsPartial: true are filtered out of the insights + // target. + FilterPartialResults *bool `type:"boolean"` + + // The language code in the configuration. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"CallAnalyticsLanguageCode"` + + // Specifies the name of the custom language model to use when processing a + // transcription. Note that language model names are case sensitive. + // + // The language of the specified language model must match the language code + // specified in the transcription request. If the languages don't match, the + // custom language model isn't applied. Language mismatches don't generate errors + // or warnings. + // + // For more information, see Custom language models (https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html) + // in the Amazon Transcribe Developer Guide. + LanguageModelName *string `min:"1" type:"string"` + + // Specifies the level of stability to use when you enable partial results stabilization + // (EnablePartialResultsStabilization). + // + // Low stability provides the highest accuracy. High stability transcribes faster, + // but with slightly lower accuracy. + // + // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) + // in the Amazon Transcribe Developer Guide. + PartialResultsStability *string `type:"string" enum:"PartialResultsStability"` + + // Specifies the types of personally identifiable information (PII) to redact + // from a transcript. You can include as many types as you'd like, or you can + // select ALL. + // + // To include PiiEntityTypes in your Call Analytics request, you must also include + // ContentIdentificationType or ContentRedactionType, but you can't include + // both. + // + // Values must be comma-separated and can include: ADDRESS, BANK_ACCOUNT_NUMBER, + // BANK_ROUTING, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, CREDIT_DEBIT_NUMBER, + // EMAIL, NAME, PHONE, PIN, SSN, or ALL. + // + // Length Constraints: Minimum length of 1. Maximum length of 300. + PiiEntityTypes *string `min:"1" type:"string"` + + // The settings for a post-call analysis task in an analytics configuration. + PostCallAnalyticsSettings *PostCallAnalyticsSettings `type:"structure"` + + // Specifies how to apply a vocabulary filter to a transcript. + // + // To replace words with ***, choose mask. + // + // To delete words, choose remove. + // + // To flag words without changing them, choose tag. + VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"` + + // Specifies the name of the custom vocabulary filter to use when processing + // a transcription. Note that vocabulary filter names are case sensitive. + // + // If the language of the specified custom vocabulary filter doesn't match the + // language identified in your media, the vocabulary filter is not applied to + // your transcription. + // + // For more information, see Using vocabulary filtering with unwanted words + // (https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html) + // in the Amazon Transcribe Developer Guide. + // + // Length Constraints: Minimum length of 1. Maximum length of 200. + VocabularyFilterName *string `min:"1" type:"string"` + + // Specifies the name of the custom vocabulary to use when processing a transcription. + // Note that vocabulary names are case sensitive. + // + // If the language of the specified custom vocabulary doesn't match the language + // identified in your media, the custom vocabulary is not applied to your transcription. + // + // For more information, see Custom vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html) + // in the Amazon Transcribe Developer Guide. + // + // Length Constraints: Minimum length of 1. Maximum length of 200. + VocabularyName *string `min:"1" 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 AmazonTranscribeCallAnalyticsProcessorConfiguration) 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 AmazonTranscribeCallAnalyticsProcessorConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AmazonTranscribeCallAnalyticsProcessorConfiguration"} + if s.CallAnalyticsStreamCategories != nil && len(s.CallAnalyticsStreamCategories) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CallAnalyticsStreamCategories", 1)) + } + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1)) + } + if s.PiiEntityTypes != nil && len(*s.PiiEntityTypes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PiiEntityTypes", 1)) + } + if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) + } + if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) + } + if s.PostCallAnalyticsSettings != nil { + if err := s.PostCallAnalyticsSettings.Validate(); err != nil { + invalidParams.AddNested("PostCallAnalyticsSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallAnalyticsStreamCategories sets the CallAnalyticsStreamCategories field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetCallAnalyticsStreamCategories(v []*string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.CallAnalyticsStreamCategories = v + return s +} + +// SetContentIdentificationType sets the ContentIdentificationType field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetContentIdentificationType(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.ContentIdentificationType = &v + return s +} + +// SetContentRedactionType sets the ContentRedactionType field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetContentRedactionType(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.ContentRedactionType = &v + return s +} + +// SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetEnablePartialResultsStabilization(v bool) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.EnablePartialResultsStabilization = &v + return s +} + +// SetFilterPartialResults sets the FilterPartialResults field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetFilterPartialResults(v bool) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.FilterPartialResults = &v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetLanguageCode(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.LanguageCode = &v + return s +} + +// SetLanguageModelName sets the LanguageModelName field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetLanguageModelName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.LanguageModelName = &v + return s +} + +// SetPartialResultsStability sets the PartialResultsStability field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPartialResultsStability(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.PartialResultsStability = &v + return s +} + +// SetPiiEntityTypes sets the PiiEntityTypes field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPiiEntityTypes(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.PiiEntityTypes = &v + return s +} + +// SetPostCallAnalyticsSettings sets the PostCallAnalyticsSettings field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPostCallAnalyticsSettings(v *PostCallAnalyticsSettings) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.PostCallAnalyticsSettings = v + return s +} + +// SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyFilterMethod(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.VocabularyFilterMethod = &v + return s +} + +// SetVocabularyFilterName sets the VocabularyFilterName field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyFilterName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.VocabularyFilterName = &v + return s +} + +// SetVocabularyName sets the VocabularyName field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.VocabularyName = &v + return s +} + +// A structure that contains the configuration settings for an Amazon Transcribe +// processor. +type AmazonTranscribeProcessorConfiguration struct { + _ struct{} `type:"structure"` + + // Labels all personally identifiable information (PII) identified in your transcript. + // + // Content identification is performed at the segment level; PII specified in + // PiiEntityTypes is flagged upon complete transcription of an audio segment. + // + // You can’t set ContentIdentificationType and ContentRedactionType in the + // same request. If you set both, your request returns a BadRequestException. + // + // For more information, see Redacting or identifying personally identifiable + // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) + // in the Amazon Transcribe Developer Guide. + ContentIdentificationType *string `type:"string" enum:"ContentType"` + + // Redacts all personally identifiable information (PII) identified in your + // transcript. // - // LanguageCode is a required field - LanguageCode *string `type:"string" required:"true" enum:"CallAnalyticsLanguageCode"` + // Content redaction is performed at the segment level; PII specified in PiiEntityTypes + // is redacted upon complete transcription of an audio segment. + // + // You can’t set ContentRedactionType and ContentIdentificationType in the + // same request. If you set both, your request returns a BadRequestException. + // + // For more information, see Redacting or identifying personally identifiable + // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) + // in the Amazon Transcribe Developer Guide. + ContentRedactionType *string `type:"string" enum:"ContentType"` + + // Enables partial result stabilization for your transcription. Partial result + // stabilization can reduce latency in your output, but may impact accuracy. + // + // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) + // in the Amazon Transcribe Developer Guide. + EnablePartialResultsStabilization *bool `type:"boolean"` + + // If true, TranscriptEvents with IsPartial: true are filtered out of the insights + // target. + FilterPartialResults *bool `type:"boolean"` + + // Turns language identification on or off. + IdentifyLanguage *bool `type:"boolean"` + + // The language code that represents the language spoken in your audio. + // + // If you're unsure of the language spoken in your audio, consider using IdentifyLanguage + // to enable automatic language identification. + // + // For a list of languages that real-time Call Analytics supports, see the Supported + // languages table (https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) + // in the Amazon Transcribe Developer Guide. + LanguageCode *string `type:"string" enum:"CallAnalyticsLanguageCode"` + + // The name of the custom language model that you want to use when processing + // your transcription. Note that language model names are case sensitive. + // + // The language of the specified language model must match the language code + // you specify in your transcription request. If the languages don't match, + // the custom language model isn't applied. There are no errors or warnings + // associated with a language mismatch. + // + // For more information, see Custom language models (https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html) + // in the Amazon Transcribe Developer Guide. + LanguageModelName *string `min:"1" type:"string"` + + // The language options for the transcription, such as automatic language detection. + LanguageOptions *string `min:"1" type:"string"` + + // The level of stability to use when you enable partial results stabilization + // (EnablePartialResultsStabilization). + // + // Low stability provides the highest accuracy. High stability transcribes faster, + // but with slightly lower accuracy. + // + // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) + // in the Amazon Transcribe Developer Guide. + PartialResultsStability *string `type:"string" enum:"PartialResultsStability"` + + // The types of personally identifiable information (PII) to redact from a transcript. + // You can include as many types as you'd like, or you can select ALL. + // + // To include PiiEntityTypes in your Call Analytics request, you must also include + // ContentIdentificationType or ContentRedactionType, but you can't include + // both. + // + // Values must be comma-separated and can include: ADDRESS, BANK_ACCOUNT_NUMBER, + // BANK_ROUTING, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, CREDIT_DEBIT_NUMBER, + // EMAIL, NAME, PHONE, PIN, SSN, or ALL. + // + // If you leave this parameter empty, the default behavior is equivalent to + // ALL. + PiiEntityTypes *string `min:"1" type:"string"` + + // The preferred language for the transcription. + PreferredLanguage *string `type:"string" enum:"CallAnalyticsLanguageCode"` + + // Enables speaker partitioning (diarization) in your transcription output. + // Speaker partitioning labels the speech from individual speakers in your media + // file. + // + // For more information, see Partitioning speakers (diarization) (https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html) + // in the Amazon Transcribe Developer Guide. + ShowSpeakerLabel *bool `type:"boolean"` + + // The vocabulary filtering method used in your Call Analytics transcription. + VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"` + + // The name of the custom vocabulary filter that you specified in your Call + // Analytics request. + // + // Length Constraints: Minimum length of 1. Maximum length of 200. + VocabularyFilterName *string `min:"1" type:"string"` + + // The names of the custom vocabulary filter or filters using during transcription. + VocabularyFilterNames *string `min:"1" type:"string"` + + // The name of the custom vocabulary that you specified in your Call Analytics + // request. + // + // Length Constraints: Minimum length of 1. Maximum length of 200. + VocabularyName *string `min:"1" type:"string"` + + // The names of the custom vocabulary or vocabularies used during transcription. + VocabularyNames *string `min:"1" 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 AmazonTranscribeProcessorConfiguration) 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 AmazonTranscribeProcessorConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AmazonTranscribeProcessorConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AmazonTranscribeProcessorConfiguration"} + if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1)) + } + if s.LanguageOptions != nil && len(*s.LanguageOptions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LanguageOptions", 1)) + } + if s.PiiEntityTypes != nil && len(*s.PiiEntityTypes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PiiEntityTypes", 1)) + } + if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) + } + if s.VocabularyFilterNames != nil && len(*s.VocabularyFilterNames) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterNames", 1)) + } + if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) + } + if s.VocabularyNames != nil && len(*s.VocabularyNames) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyNames", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContentIdentificationType sets the ContentIdentificationType field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetContentIdentificationType(v string) *AmazonTranscribeProcessorConfiguration { + s.ContentIdentificationType = &v + return s +} + +// SetContentRedactionType sets the ContentRedactionType field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetContentRedactionType(v string) *AmazonTranscribeProcessorConfiguration { + s.ContentRedactionType = &v + return s +} + +// SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetEnablePartialResultsStabilization(v bool) *AmazonTranscribeProcessorConfiguration { + s.EnablePartialResultsStabilization = &v + return s +} + +// SetFilterPartialResults sets the FilterPartialResults field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetFilterPartialResults(v bool) *AmazonTranscribeProcessorConfiguration { + s.FilterPartialResults = &v + return s +} + +// SetIdentifyLanguage sets the IdentifyLanguage field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetIdentifyLanguage(v bool) *AmazonTranscribeProcessorConfiguration { + s.IdentifyLanguage = &v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetLanguageCode(v string) *AmazonTranscribeProcessorConfiguration { + s.LanguageCode = &v + return s +} + +// SetLanguageModelName sets the LanguageModelName field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetLanguageModelName(v string) *AmazonTranscribeProcessorConfiguration { + s.LanguageModelName = &v + return s +} + +// SetLanguageOptions sets the LanguageOptions field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetLanguageOptions(v string) *AmazonTranscribeProcessorConfiguration { + s.LanguageOptions = &v + return s +} + +// SetPartialResultsStability sets the PartialResultsStability field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetPartialResultsStability(v string) *AmazonTranscribeProcessorConfiguration { + s.PartialResultsStability = &v + return s +} + +// SetPiiEntityTypes sets the PiiEntityTypes field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetPiiEntityTypes(v string) *AmazonTranscribeProcessorConfiguration { + s.PiiEntityTypes = &v + return s +} + +// SetPreferredLanguage sets the PreferredLanguage field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetPreferredLanguage(v string) *AmazonTranscribeProcessorConfiguration { + s.PreferredLanguage = &v + return s +} + +// SetShowSpeakerLabel sets the ShowSpeakerLabel field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetShowSpeakerLabel(v bool) *AmazonTranscribeProcessorConfiguration { + s.ShowSpeakerLabel = &v + return s +} + +// SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyFilterMethod(v string) *AmazonTranscribeProcessorConfiguration { + s.VocabularyFilterMethod = &v + return s +} + +// SetVocabularyFilterName sets the VocabularyFilterName field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyFilterName(v string) *AmazonTranscribeProcessorConfiguration { + s.VocabularyFilterName = &v + return s +} + +// SetVocabularyFilterNames sets the VocabularyFilterNames field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyFilterNames(v string) *AmazonTranscribeProcessorConfiguration { + s.VocabularyFilterNames = &v + return s +} + +// SetVocabularyName sets the VocabularyName field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyName(v string) *AmazonTranscribeProcessorConfiguration { + s.VocabularyName = &v + return s +} - // Specifies the name of the custom language model to use when processing a - // transcription. Note that language model names are case sensitive. +// SetVocabularyNames sets the VocabularyNames field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyNames(v string) *AmazonTranscribeProcessorConfiguration { + s.VocabularyNames = &v + return s +} + +// The configuration for the artifacts concatenation. +type ArtifactsConcatenationConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration for the audio artifacts concatenation. // - // The language of the specified language model must match the language code - // specified in the transcription request. If the languages don't match, the - // custom language model isn't applied. Language mismatches don't generate errors - // or warnings. + // Audio is a required field + Audio *AudioConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the composited video artifacts concatenation. // - // For more information, see Custom language models (https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html) - // in the Amazon Transcribe Developer Guide. - LanguageModelName *string `min:"1" type:"string"` + // CompositedVideo is a required field + CompositedVideo *CompositedVideoConcatenationConfiguration `type:"structure" required:"true"` - // Specifies the level of stability to use when you enable partial results stabilization - // (EnablePartialResultsStabilization). + // The configuration for the content artifacts concatenation. // - // Low stability provides the highest accuracy. High stability transcribes faster, - // but with slightly lower accuracy. + // Content is a required field + Content *ContentConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the data channel artifacts concatenation. // - // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) - // in the Amazon Transcribe Developer Guide. - PartialResultsStability *string `type:"string" enum:"PartialResultsStability"` + // DataChannel is a required field + DataChannel *DataChannelConcatenationConfiguration `type:"structure" required:"true"` - // Specifies the types of personally identifiable information (PII) to redact - // from a transcript. You can include as many types as you'd like, or you can - // select ALL. + // The configuration for the meeting events artifacts concatenation. // - // To include PiiEntityTypes in your Call Analytics request, you must also include - // ContentIdentificationType or ContentRedactionType, but you can't include - // both. + // MeetingEvents is a required field + MeetingEvents *MeetingEventsConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the transcription messages artifacts concatenation. // - // Values must be comma-separated and can include: ADDRESS, BANK_ACCOUNT_NUMBER, - // BANK_ROUTING, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, CREDIT_DEBIT_NUMBER, - // EMAIL, NAME, PHONE, PIN, SSN, or ALL. + // TranscriptionMessages is a required field + TranscriptionMessages *TranscriptionMessagesConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the video artifacts concatenation. // - // Length Constraints: Minimum length of 1. Maximum length of 300. - PiiEntityTypes *string `min:"1" type:"string"` + // Video is a required field + Video *VideoConcatenationConfiguration `type:"structure" required:"true"` +} - // The settings for a post-call analysis task in an analytics configuration. - PostCallAnalyticsSettings *PostCallAnalyticsSettings `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 ArtifactsConcatenationConfiguration) String() string { + return awsutil.Prettify(s) +} - // Specifies how to apply a vocabulary filter to a transcript. - // - // To replace words with ***, choose mask. - // - // To delete words, choose remove. - // - // To flag words without changing them, choose tag. - VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"` +// 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 ArtifactsConcatenationConfiguration) GoString() string { + return s.String() +} - // Specifies the name of the custom vocabulary filter to use when processing - // a transcription. Note that vocabulary filter names are case sensitive. - // - // If the language of the specified custom vocabulary filter doesn't match the - // language identified in your media, the vocabulary filter is not applied to - // your transcription. - // - // For more information, see Using vocabulary filtering with unwanted words - // (https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html) - // in the Amazon Transcribe Developer Guide. - // - // Length Constraints: Minimum length of 1. Maximum length of 200. - VocabularyFilterName *string `min:"1" type:"string"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *ArtifactsConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ArtifactsConcatenationConfiguration"} + if s.Audio == nil { + invalidParams.Add(request.NewErrParamRequired("Audio")) + } + if s.CompositedVideo == nil { + invalidParams.Add(request.NewErrParamRequired("CompositedVideo")) + } + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.DataChannel == nil { + invalidParams.Add(request.NewErrParamRequired("DataChannel")) + } + if s.MeetingEvents == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingEvents")) + } + if s.TranscriptionMessages == nil { + invalidParams.Add(request.NewErrParamRequired("TranscriptionMessages")) + } + if s.Video == nil { + invalidParams.Add(request.NewErrParamRequired("Video")) + } + if s.Audio != nil { + if err := s.Audio.Validate(); err != nil { + invalidParams.AddNested("Audio", err.(request.ErrInvalidParams)) + } + } + if s.CompositedVideo != nil { + if err := s.CompositedVideo.Validate(); err != nil { + invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) + } + } + if s.Content != nil { + if err := s.Content.Validate(); err != nil { + invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) + } + } + if s.DataChannel != nil { + if err := s.DataChannel.Validate(); err != nil { + invalidParams.AddNested("DataChannel", err.(request.ErrInvalidParams)) + } + } + if s.MeetingEvents != nil { + if err := s.MeetingEvents.Validate(); err != nil { + invalidParams.AddNested("MeetingEvents", err.(request.ErrInvalidParams)) + } + } + if s.TranscriptionMessages != nil { + if err := s.TranscriptionMessages.Validate(); err != nil { + invalidParams.AddNested("TranscriptionMessages", err.(request.ErrInvalidParams)) + } + } + if s.Video != nil { + if err := s.Video.Validate(); err != nil { + invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) + } + } - // Specifies the name of the custom vocabulary to use when processing a transcription. - // Note that vocabulary names are case sensitive. + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAudio sets the Audio field's value. +func (s *ArtifactsConcatenationConfiguration) SetAudio(v *AudioConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.Audio = v + return s +} + +// SetCompositedVideo sets the CompositedVideo field's value. +func (s *ArtifactsConcatenationConfiguration) SetCompositedVideo(v *CompositedVideoConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.CompositedVideo = v + return s +} + +// SetContent sets the Content field's value. +func (s *ArtifactsConcatenationConfiguration) SetContent(v *ContentConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.Content = v + return s +} + +// SetDataChannel sets the DataChannel field's value. +func (s *ArtifactsConcatenationConfiguration) SetDataChannel(v *DataChannelConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.DataChannel = v + return s +} + +// SetMeetingEvents sets the MeetingEvents field's value. +func (s *ArtifactsConcatenationConfiguration) SetMeetingEvents(v *MeetingEventsConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.MeetingEvents = v + return s +} + +// SetTranscriptionMessages sets the TranscriptionMessages field's value. +func (s *ArtifactsConcatenationConfiguration) SetTranscriptionMessages(v *TranscriptionMessagesConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.TranscriptionMessages = v + return s +} + +// SetVideo sets the Video field's value. +func (s *ArtifactsConcatenationConfiguration) SetVideo(v *VideoConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.Video = v + return s +} + +// The configuration for the artifacts. +type ArtifactsConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration for the audio artifacts. // - // If the language of the specified custom vocabulary doesn't match the language - // identified in your media, the custom vocabulary is not applied to your transcription. + // Audio is a required field + Audio *AudioArtifactsConfiguration `type:"structure" required:"true"` + + // Enables video compositing. + CompositedVideo *CompositedVideoArtifactsConfiguration `type:"structure"` + + // The configuration for the content artifacts. // - // For more information, see Custom vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html) - // in the Amazon Transcribe Developer Guide. + // Content is a required field + Content *ContentArtifactsConfiguration `type:"structure" required:"true"` + + // The configuration for the video artifacts. // - // Length Constraints: Minimum length of 1. Maximum length of 200. - VocabularyName *string `min:"1" type:"string"` + // Video is a required field + Video *VideoArtifactsConfiguration `type:"structure" required:"true"` } // String returns the string representation. @@ -2217,7 +3431,7 @@ type AmazonTranscribeCallAnalyticsProcessorConfiguration 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 AmazonTranscribeCallAnalyticsProcessorConfiguration) String() string { +func (s ArtifactsConfiguration) String() string { return awsutil.Prettify(s) } @@ -2226,34 +3440,40 @@ func (s AmazonTranscribeCallAnalyticsProcessorConfiguration) 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 AmazonTranscribeCallAnalyticsProcessorConfiguration) GoString() string { +func (s ArtifactsConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AmazonTranscribeCallAnalyticsProcessorConfiguration"} - if s.CallAnalyticsStreamCategories != nil && len(s.CallAnalyticsStreamCategories) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CallAnalyticsStreamCategories", 1)) +func (s *ArtifactsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ArtifactsConfiguration"} + if s.Audio == nil { + invalidParams.Add(request.NewErrParamRequired("Audio")) } - if s.LanguageCode == nil { - invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) } - if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1)) + if s.Video == nil { + invalidParams.Add(request.NewErrParamRequired("Video")) } - if s.PiiEntityTypes != nil && len(*s.PiiEntityTypes) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PiiEntityTypes", 1)) + if s.Audio != nil { + if err := s.Audio.Validate(); err != nil { + invalidParams.AddNested("Audio", err.(request.ErrInvalidParams)) + } } - if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) + if s.CompositedVideo != nil { + if err := s.CompositedVideo.Validate(); err != nil { + invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) + } } - if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) + if s.Content != nil { + if err := s.Content.Validate(); err != nil { + invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) + } } - if s.PostCallAnalyticsSettings != nil { - if err := s.PostCallAnalyticsSettings.Validate(); err != nil { - invalidParams.AddNested("PostCallAnalyticsSettings", err.(request.ErrInvalidParams)) + if s.Video != nil { + if err := s.Video.Validate(); err != nil { + invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) } } @@ -2263,211 +3483,85 @@ func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) Validate() error { return nil } -// SetCallAnalyticsStreamCategories sets the CallAnalyticsStreamCategories field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetCallAnalyticsStreamCategories(v []*string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.CallAnalyticsStreamCategories = v - return s -} - -// SetContentIdentificationType sets the ContentIdentificationType field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetContentIdentificationType(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.ContentIdentificationType = &v - return s -} - -// SetContentRedactionType sets the ContentRedactionType field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetContentRedactionType(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.ContentRedactionType = &v +// SetAudio sets the Audio field's value. +func (s *ArtifactsConfiguration) SetAudio(v *AudioArtifactsConfiguration) *ArtifactsConfiguration { + s.Audio = v return s } -// SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetEnablePartialResultsStabilization(v bool) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.EnablePartialResultsStabilization = &v +// SetCompositedVideo sets the CompositedVideo field's value. +func (s *ArtifactsConfiguration) SetCompositedVideo(v *CompositedVideoArtifactsConfiguration) *ArtifactsConfiguration { + s.CompositedVideo = v return s } -// SetFilterPartialResults sets the FilterPartialResults field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetFilterPartialResults(v bool) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.FilterPartialResults = &v +// SetContent sets the Content field's value. +func (s *ArtifactsConfiguration) SetContent(v *ContentArtifactsConfiguration) *ArtifactsConfiguration { + s.Content = v return s } -// SetLanguageCode sets the LanguageCode field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetLanguageCode(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.LanguageCode = &v +// SetVideo sets the Video field's value. +func (s *ArtifactsConfiguration) SetVideo(v *VideoArtifactsConfiguration) *ArtifactsConfiguration { + s.Video = v return s } -// SetLanguageModelName sets the LanguageModelName field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetLanguageModelName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.LanguageModelName = &v - return s -} +// The audio artifact configuration object. +type AudioArtifactsConfiguration struct { + _ struct{} `type:"structure"` -// SetPartialResultsStability sets the PartialResultsStability field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPartialResultsStability(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.PartialResultsStability = &v - return s + // The MUX type of the audio artifact configuration object. + // + // MuxType is a required field + MuxType *string `type:"string" required:"true" enum:"AudioMuxType"` } -// SetPiiEntityTypes sets the PiiEntityTypes field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPiiEntityTypes(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.PiiEntityTypes = &v - return s +// 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 AudioArtifactsConfiguration) String() string { + return awsutil.Prettify(s) } -// SetPostCallAnalyticsSettings sets the PostCallAnalyticsSettings field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPostCallAnalyticsSettings(v *PostCallAnalyticsSettings) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.PostCallAnalyticsSettings = v - return 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 AudioArtifactsConfiguration) GoString() string { + return s.String() } -// SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyFilterMethod(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.VocabularyFilterMethod = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *AudioArtifactsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AudioArtifactsConfiguration"} + if s.MuxType == nil { + invalidParams.Add(request.NewErrParamRequired("MuxType")) + } -// SetVocabularyFilterName sets the VocabularyFilterName field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyFilterName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.VocabularyFilterName = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetVocabularyName sets the VocabularyName field's value. -func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { - s.VocabularyName = &v +// SetMuxType sets the MuxType field's value. +func (s *AudioArtifactsConfiguration) SetMuxType(v string) *AudioArtifactsConfiguration { + s.MuxType = &v return s } -// A structure that contains the configuration settings for an Amazon Transcribe -// processor. -type AmazonTranscribeProcessorConfiguration struct { +// The audio artifact concatenation configuration object. +type AudioConcatenationConfiguration struct { _ struct{} `type:"structure"` - // Labels all personally identifiable information (PII) identified in your transcript. - // - // Content identification is performed at the segment level; PII specified in - // PiiEntityTypes is flagged upon complete transcription of an audio segment. - // - // You can’t set ContentIdentificationType and ContentRedactionType in the - // same request. If you set both, your request returns a BadRequestException. - // - // For more information, see Redacting or identifying personally identifiable - // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) - // in the Amazon Transcribe Developer Guide. - ContentIdentificationType *string `type:"string" enum:"ContentType"` - - // Redacts all personally identifiable information (PII) identified in your - // transcript. - // - // Content redaction is performed at the segment level; PII specified in PiiEntityTypes - // is redacted upon complete transcription of an audio segment. - // - // You can’t set ContentRedactionType and ContentIdentificationType in the - // same request. If you set both, your request returns a BadRequestException. - // - // For more information, see Redacting or identifying personally identifiable - // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) - // in the Amazon Transcribe Developer Guide. - ContentRedactionType *string `type:"string" enum:"ContentType"` - - // Enables partial result stabilization for your transcription. Partial result - // stabilization can reduce latency in your output, but may impact accuracy. - // - // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) - // in the Amazon Transcribe Developer Guide. - EnablePartialResultsStabilization *bool `type:"boolean"` - - // If true, TranscriptEvents with IsPartial: true are filtered out of the insights - // target. - FilterPartialResults *bool `type:"boolean"` - - // Turns language identification on or off. - IdentifyLanguage *bool `type:"boolean"` - - // The language code that represents the language spoken in your audio. - // - // If you're unsure of the language spoken in your audio, consider using IdentifyLanguage - // to enable automatic language identification. - // - // For a list of languages that real-time Call Analytics supports, see the Supported - // languages table (https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) - // in the Amazon Transcribe Developer Guide. - LanguageCode *string `type:"string" enum:"CallAnalyticsLanguageCode"` - - // The name of the custom language model that you want to use when processing - // your transcription. Note that language model names are case sensitive. - // - // The language of the specified language model must match the language code - // you specify in your transcription request. If the languages don't match, - // the custom language model isn't applied. There are no errors or warnings - // associated with a language mismatch. - // - // For more information, see Custom language models (https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html) - // in the Amazon Transcribe Developer Guide. - LanguageModelName *string `min:"1" type:"string"` - - // The language options for the transcription, such as automatic language detection. - LanguageOptions *string `min:"1" type:"string"` - - // The level of stability to use when you enable partial results stabilization - // (EnablePartialResultsStabilization). - // - // Low stability provides the highest accuracy. High stability transcribes faster, - // but with slightly lower accuracy. - // - // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) - // in the Amazon Transcribe Developer Guide. - PartialResultsStability *string `type:"string" enum:"PartialResultsStability"` - - // The types of personally identifiable information (PII) to redact from a transcript. - // You can include as many types as you'd like, or you can select ALL. - // - // To include PiiEntityTypes in your Call Analytics request, you must also include - // ContentIdentificationType or ContentRedactionType, but you can't include - // both. - // - // Values must be comma-separated and can include: ADDRESS, BANK_ACCOUNT_NUMBER, - // BANK_ROUTING, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, CREDIT_DEBIT_NUMBER, - // EMAIL, NAME, PHONE, PIN, SSN, or ALL. - // - // If you leave this parameter empty, the default behavior is equivalent to - // ALL. - PiiEntityTypes *string `min:"1" type:"string"` - - // The preferred language for the transcription. - PreferredLanguage *string `type:"string" enum:"CallAnalyticsLanguageCode"` - - // Enables speaker partitioning (diarization) in your transcription output. - // Speaker partitioning labels the speech from individual speakers in your media - // file. - // - // For more information, see Partitioning speakers (diarization) (https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html) - // in the Amazon Transcribe Developer Guide. - ShowSpeakerLabel *bool `type:"boolean"` - - // The vocabulary filtering method used in your Call Analytics transcription. - VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"` - - // The name of the custom vocabulary filter that you specified in your Call - // Analytics request. - // - // Length Constraints: Minimum length of 1. Maximum length of 200. - VocabularyFilterName *string `min:"1" type:"string"` - - // The names of the custom vocabulary filter or filters using during transcription. - VocabularyFilterNames *string `min:"1" type:"string"` - - // The name of the custom vocabulary that you specified in your Call Analytics - // request. + // Enables or disables the configuration object. // - // Length Constraints: Minimum length of 1. Maximum length of 200. - VocabularyName *string `min:"1" type:"string"` - - // The names of the custom vocabulary or vocabularies used during transcription. - VocabularyNames *string `min:"1" type:"string"` + // State is a required field + State *string `type:"string" required:"true" enum:"AudioArtifactsConcatenationState"` } // String returns the string representation. @@ -2475,7 +3569,7 @@ type AmazonTranscribeProcessorConfiguration 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 AmazonTranscribeProcessorConfiguration) String() string { +func (s AudioConcatenationConfiguration) String() string { return awsutil.Prettify(s) } @@ -2484,33 +3578,15 @@ func (s AmazonTranscribeProcessorConfiguration) 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 AmazonTranscribeProcessorConfiguration) GoString() string { +func (s AudioConcatenationConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AmazonTranscribeProcessorConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AmazonTranscribeProcessorConfiguration"} - if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1)) - } - if s.LanguageOptions != nil && len(*s.LanguageOptions) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LanguageOptions", 1)) - } - if s.PiiEntityTypes != nil && len(*s.PiiEntityTypes) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PiiEntityTypes", 1)) - } - if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) - } - if s.VocabularyFilterNames != nil && len(*s.VocabularyFilterNames) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterNames", 1)) - } - if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) - } - if s.VocabularyNames != nil && len(*s.VocabularyNames) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VocabularyNames", 1)) +func (s *AudioConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AudioConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) } if invalidParams.Len() > 0 { @@ -2519,146 +3595,200 @@ func (s *AmazonTranscribeProcessorConfiguration) Validate() error { return nil } -// SetContentIdentificationType sets the ContentIdentificationType field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetContentIdentificationType(v string) *AmazonTranscribeProcessorConfiguration { - s.ContentIdentificationType = &v +// SetState sets the State field's value. +func (s *AudioConcatenationConfiguration) SetState(v string) *AudioConcatenationConfiguration { + s.State = &v return s } -// SetContentRedactionType sets the ContentRedactionType field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetContentRedactionType(v string) *AmazonTranscribeProcessorConfiguration { - s.ContentRedactionType = &v - return s +// The input parameters don't match the service's restrictions. +type BadRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` } -// SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetEnablePartialResultsStabilization(v bool) *AmazonTranscribeProcessorConfiguration { - s.EnablePartialResultsStabilization = &v - return s +// 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 BadRequestException) String() string { + return awsutil.Prettify(s) } -// SetFilterPartialResults sets the FilterPartialResults field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetFilterPartialResults(v bool) *AmazonTranscribeProcessorConfiguration { - s.FilterPartialResults = &v - return 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 BadRequestException) GoString() string { + return s.String() } -// SetIdentifyLanguage sets the IdentifyLanguage field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetIdentifyLanguage(v bool) *AmazonTranscribeProcessorConfiguration { - s.IdentifyLanguage = &v - return s +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + RespMetadata: v, + } } -// SetLanguageCode sets the LanguageCode field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetLanguageCode(v string) *AmazonTranscribeProcessorConfiguration { - s.LanguageCode = &v - return s +// Code returns the exception type name. +func (s *BadRequestException) Code() string { + return "BadRequestException" } -// SetLanguageModelName sets the LanguageModelName field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetLanguageModelName(v string) *AmazonTranscribeProcessorConfiguration { - s.LanguageModelName = &v - return s +// Message returns the exception's message. +func (s *BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetLanguageOptions sets the LanguageOptions field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetLanguageOptions(v string) *AmazonTranscribeProcessorConfiguration { - s.LanguageOptions = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BadRequestException) OrigErr() error { + return nil } -// SetPartialResultsStability sets the PartialResultsStability field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetPartialResultsStability(v string) *AmazonTranscribeProcessorConfiguration { - s.PartialResultsStability = &v - return s +func (s *BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetPiiEntityTypes sets the PiiEntityTypes field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetPiiEntityTypes(v string) *AmazonTranscribeProcessorConfiguration { - s.PiiEntityTypes = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *BadRequestException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetPreferredLanguage sets the PreferredLanguage field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetPreferredLanguage(v string) *AmazonTranscribeProcessorConfiguration { - s.PreferredLanguage = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *BadRequestException) RequestID() string { + return s.RespMetadata.RequestID } -// SetShowSpeakerLabel sets the ShowSpeakerLabel field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetShowSpeakerLabel(v bool) *AmazonTranscribeProcessorConfiguration { - s.ShowSpeakerLabel = &v - return s +// Defines an audio channel in a Kinesis video stream. +type ChannelDefinition struct { + _ struct{} `type:"structure"` + + // The channel ID. + // + // ChannelId is a required field + ChannelId *int64 `type:"integer" required:"true"` + + // Specifies whether the audio in a channel belongs to the AGENT or CUSTOMER. + ParticipantRole *string `type:"string" enum:"ParticipantRole"` } -// SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyFilterMethod(v string) *AmazonTranscribeProcessorConfiguration { - s.VocabularyFilterMethod = &v - return s +// 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 ChannelDefinition) String() string { + return awsutil.Prettify(s) } -// SetVocabularyFilterName sets the VocabularyFilterName field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyFilterName(v string) *AmazonTranscribeProcessorConfiguration { - s.VocabularyFilterName = &v - return 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 ChannelDefinition) GoString() string { + return s.String() } -// SetVocabularyFilterNames sets the VocabularyFilterNames field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyFilterNames(v string) *AmazonTranscribeProcessorConfiguration { - s.VocabularyFilterNames = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChannelDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChannelDefinition"} + if s.ChannelId == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetVocabularyName sets the VocabularyName field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyName(v string) *AmazonTranscribeProcessorConfiguration { - s.VocabularyName = &v +// SetChannelId sets the ChannelId field's value. +func (s *ChannelDefinition) SetChannelId(v int64) *ChannelDefinition { + s.ChannelId = &v return s } -// SetVocabularyNames sets the VocabularyNames field's value. -func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyNames(v string) *AmazonTranscribeProcessorConfiguration { - s.VocabularyNames = &v +// SetParticipantRole sets the ParticipantRole field's value. +func (s *ChannelDefinition) SetParticipantRole(v string) *ChannelDefinition { + s.ParticipantRole = &v return s } -// The configuration for the artifacts concatenation. -type ArtifactsConcatenationConfiguration struct { +// The configuration object of the Amazon Chime SDK meeting concatenation for +// a specified media pipeline. +type ChimeSdkMeetingConcatenationConfiguration struct { _ struct{} `type:"structure"` - // The configuration for the audio artifacts concatenation. + // The configuration for the artifacts in an Amazon Chime SDK meeting concatenation. // - // Audio is a required field - Audio *AudioConcatenationConfiguration `type:"structure" required:"true"` + // ArtifactsConfiguration is a required field + ArtifactsConfiguration *ArtifactsConcatenationConfiguration `type:"structure" required:"true"` +} - // The configuration for the composited video artifacts concatenation. - // - // CompositedVideo is a required field - CompositedVideo *CompositedVideoConcatenationConfiguration `type:"structure" 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 ChimeSdkMeetingConcatenationConfiguration) String() string { + return awsutil.Prettify(s) +} - // The configuration for the content artifacts concatenation. - // - // Content is a required field - Content *ContentConcatenationConfiguration `type:"structure" required:"true"` +// 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 ChimeSdkMeetingConcatenationConfiguration) GoString() string { + return s.String() +} - // The configuration for the data channel artifacts concatenation. - // - // DataChannel is a required field - DataChannel *DataChannelConcatenationConfiguration `type:"structure" required:"true"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChimeSdkMeetingConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingConcatenationConfiguration"} + if s.ArtifactsConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ArtifactsConfiguration")) + } + if s.ArtifactsConfiguration != nil { + if err := s.ArtifactsConfiguration.Validate(); err != nil { + invalidParams.AddNested("ArtifactsConfiguration", err.(request.ErrInvalidParams)) + } + } - // The configuration for the meeting events artifacts concatenation. - // - // MeetingEvents is a required field - MeetingEvents *MeetingEventsConcatenationConfiguration `type:"structure" required:"true"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArtifactsConfiguration sets the ArtifactsConfiguration field's value. +func (s *ChimeSdkMeetingConcatenationConfiguration) SetArtifactsConfiguration(v *ArtifactsConcatenationConfiguration) *ChimeSdkMeetingConcatenationConfiguration { + s.ArtifactsConfiguration = v + return s +} + +// The configuration object of the Amazon Chime SDK meeting for a specified +// media pipeline. SourceType must be ChimeSdkMeeting. +type ChimeSdkMeetingConfiguration struct { + _ struct{} `type:"structure"` - // The configuration for the transcription messages artifacts concatenation. - // - // TranscriptionMessages is a required field - TranscriptionMessages *TranscriptionMessagesConcatenationConfiguration `type:"structure" required:"true"` + // The configuration for the artifacts in an Amazon Chime SDK meeting. + ArtifactsConfiguration *ArtifactsConfiguration `type:"structure"` - // The configuration for the video artifacts concatenation. - // - // Video is a required field - Video *VideoConcatenationConfiguration `type:"structure" required:"true"` + // The source configuration for a specified media pipeline. + SourceConfiguration *SourceConfiguration `type:"structure"` } // String returns the string representation. @@ -2666,7 +3796,7 @@ type ArtifactsConcatenationConfiguration 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 ArtifactsConcatenationConfiguration) String() string { +func (s ChimeSdkMeetingConfiguration) String() string { return awsutil.Prettify(s) } @@ -2675,67 +3805,21 @@ func (s ArtifactsConcatenationConfiguration) 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 ArtifactsConcatenationConfiguration) GoString() string { +func (s ChimeSdkMeetingConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ArtifactsConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ArtifactsConcatenationConfiguration"} - if s.Audio == nil { - invalidParams.Add(request.NewErrParamRequired("Audio")) - } - if s.CompositedVideo == nil { - invalidParams.Add(request.NewErrParamRequired("CompositedVideo")) - } - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) - } - if s.DataChannel == nil { - invalidParams.Add(request.NewErrParamRequired("DataChannel")) - } - if s.MeetingEvents == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingEvents")) - } - if s.TranscriptionMessages == nil { - invalidParams.Add(request.NewErrParamRequired("TranscriptionMessages")) - } - if s.Video == nil { - invalidParams.Add(request.NewErrParamRequired("Video")) - } - if s.Audio != nil { - if err := s.Audio.Validate(); err != nil { - invalidParams.AddNested("Audio", err.(request.ErrInvalidParams)) - } - } - if s.CompositedVideo != nil { - if err := s.CompositedVideo.Validate(); err != nil { - invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) - } - } - if s.Content != nil { - if err := s.Content.Validate(); err != nil { - invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) - } - } - if s.DataChannel != nil { - if err := s.DataChannel.Validate(); err != nil { - invalidParams.AddNested("DataChannel", err.(request.ErrInvalidParams)) - } - } - if s.MeetingEvents != nil { - if err := s.MeetingEvents.Validate(); err != nil { - invalidParams.AddNested("MeetingEvents", err.(request.ErrInvalidParams)) - } - } - if s.TranscriptionMessages != nil { - if err := s.TranscriptionMessages.Validate(); err != nil { - invalidParams.AddNested("TranscriptionMessages", err.(request.ErrInvalidParams)) +func (s *ChimeSdkMeetingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingConfiguration"} + if s.ArtifactsConfiguration != nil { + if err := s.ArtifactsConfiguration.Validate(); err != nil { + invalidParams.AddNested("ArtifactsConfiguration", err.(request.ErrInvalidParams)) } } - if s.Video != nil { - if err := s.Video.Validate(); err != nil { - invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) + if s.SourceConfiguration != nil { + if err := s.SourceConfiguration.Validate(); err != nil { + invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) } } @@ -2745,69 +3829,41 @@ func (s *ArtifactsConcatenationConfiguration) Validate() error { return nil } -// SetAudio sets the Audio field's value. -func (s *ArtifactsConcatenationConfiguration) SetAudio(v *AudioConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.Audio = v - return s -} - -// SetCompositedVideo sets the CompositedVideo field's value. -func (s *ArtifactsConcatenationConfiguration) SetCompositedVideo(v *CompositedVideoConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.CompositedVideo = v - return s -} - -// SetContent sets the Content field's value. -func (s *ArtifactsConcatenationConfiguration) SetContent(v *ContentConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.Content = v - return s -} - -// SetDataChannel sets the DataChannel field's value. -func (s *ArtifactsConcatenationConfiguration) SetDataChannel(v *DataChannelConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.DataChannel = v - return s -} - -// SetMeetingEvents sets the MeetingEvents field's value. -func (s *ArtifactsConcatenationConfiguration) SetMeetingEvents(v *MeetingEventsConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.MeetingEvents = v - return s -} - -// SetTranscriptionMessages sets the TranscriptionMessages field's value. -func (s *ArtifactsConcatenationConfiguration) SetTranscriptionMessages(v *TranscriptionMessagesConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.TranscriptionMessages = v +// SetArtifactsConfiguration sets the ArtifactsConfiguration field's value. +func (s *ChimeSdkMeetingConfiguration) SetArtifactsConfiguration(v *ArtifactsConfiguration) *ChimeSdkMeetingConfiguration { + s.ArtifactsConfiguration = v return s } -// SetVideo sets the Video field's value. -func (s *ArtifactsConcatenationConfiguration) SetVideo(v *VideoConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.Video = v +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *ChimeSdkMeetingConfiguration) SetSourceConfiguration(v *SourceConfiguration) *ChimeSdkMeetingConfiguration { + s.SourceConfiguration = v return s } -// The configuration for the artifacts. -type ArtifactsConfiguration struct { +// The media pipeline's configuration object. +type ChimeSdkMeetingLiveConnectorConfiguration struct { _ struct{} `type:"structure"` - // The configuration for the audio artifacts. + // The configuration object's Chime SDK meeting ARN. // - // Audio is a required field - Audio *AudioArtifactsConfiguration `type:"structure" required:"true"` + // Arn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ChimeSdkMeetingLiveConnectorConfiguration's + // String and GoString methods. + // + // Arn is a required field + Arn *string `min:"1" type:"string" required:"true" sensitive:"true"` - // Enables video compositing. + // The media pipeline's composited video. CompositedVideo *CompositedVideoArtifactsConfiguration `type:"structure"` - // The configuration for the content artifacts. + // The configuration object's multiplex type. // - // Content is a required field - Content *ContentArtifactsConfiguration `type:"structure" required:"true"` + // MuxType is a required field + MuxType *string `type:"string" required:"true" enum:"LiveConnectorMuxType"` - // The configuration for the video artifacts. - // - // Video is a required field - Video *VideoArtifactsConfiguration `type:"structure" required:"true"` + // The source configuration settings of the media pipeline's configuration object. + SourceConfiguration *SourceConfiguration `type:"structure"` } // String returns the string representation. @@ -2815,7 +3871,7 @@ type ArtifactsConfiguration 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 ArtifactsConfiguration) String() string { +func (s ChimeSdkMeetingLiveConnectorConfiguration) String() string { return awsutil.Prettify(s) } @@ -2824,40 +3880,30 @@ func (s ArtifactsConfiguration) 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 ArtifactsConfiguration) GoString() string { +func (s ChimeSdkMeetingLiveConnectorConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ArtifactsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ArtifactsConfiguration"} - if s.Audio == nil { - invalidParams.Add(request.NewErrParamRequired("Audio")) - } - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) +func (s *ChimeSdkMeetingLiveConnectorConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingLiveConnectorConfiguration"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) } - if s.Video == nil { - invalidParams.Add(request.NewErrParamRequired("Video")) + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) } - if s.Audio != nil { - if err := s.Audio.Validate(); err != nil { - invalidParams.AddNested("Audio", err.(request.ErrInvalidParams)) - } + if s.MuxType == nil { + invalidParams.Add(request.NewErrParamRequired("MuxType")) } if s.CompositedVideo != nil { if err := s.CompositedVideo.Validate(); err != nil { invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) } } - if s.Content != nil { - if err := s.Content.Validate(); err != nil { - invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) - } - } - if s.Video != nil { - if err := s.Video.Validate(); err != nil { - invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) + if s.SourceConfiguration != nil { + if err := s.SourceConfiguration.Validate(); err != nil { + invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) } } @@ -2867,38 +3913,45 @@ func (s *ArtifactsConfiguration) Validate() error { return nil } -// SetAudio sets the Audio field's value. -func (s *ArtifactsConfiguration) SetAudio(v *AudioArtifactsConfiguration) *ArtifactsConfiguration { - s.Audio = v +// SetArn sets the Arn field's value. +func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetArn(v string) *ChimeSdkMeetingLiveConnectorConfiguration { + s.Arn = &v return s } // SetCompositedVideo sets the CompositedVideo field's value. -func (s *ArtifactsConfiguration) SetCompositedVideo(v *CompositedVideoArtifactsConfiguration) *ArtifactsConfiguration { +func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetCompositedVideo(v *CompositedVideoArtifactsConfiguration) *ChimeSdkMeetingLiveConnectorConfiguration { s.CompositedVideo = v return s } -// SetContent sets the Content field's value. -func (s *ArtifactsConfiguration) SetContent(v *ContentArtifactsConfiguration) *ArtifactsConfiguration { - s.Content = v +// SetMuxType sets the MuxType field's value. +func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetMuxType(v string) *ChimeSdkMeetingLiveConnectorConfiguration { + s.MuxType = &v return s } -// SetVideo sets the Video field's value. -func (s *ArtifactsConfiguration) SetVideo(v *VideoArtifactsConfiguration) *ArtifactsConfiguration { - s.Video = v +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetSourceConfiguration(v *SourceConfiguration) *ChimeSdkMeetingLiveConnectorConfiguration { + s.SourceConfiguration = v return s } -// The audio artifact configuration object. -type AudioArtifactsConfiguration struct { +// Specifies the configuration for compositing video artifacts. +type CompositedVideoArtifactsConfiguration struct { _ struct{} `type:"structure"` - // The MUX type of the audio artifact configuration object. + // The GridView configuration setting. // - // MuxType is a required field - MuxType *string `type:"string" required:"true" enum:"AudioMuxType"` + // GridViewConfiguration is a required field + GridViewConfiguration *GridViewConfiguration `type:"structure" required:"true"` + + // The layout setting, such as GridView in the configuration object. + Layout *string `type:"string" enum:"LayoutOption"` + + // The video resolution setting in the configuration object. Default: HD at + // 1280 x 720. FHD resolution: 1920 x 1080. + Resolution *string `type:"string" enum:"ResolutionOption"` } // String returns the string representation. @@ -2906,7 +3959,7 @@ type AudioArtifactsConfiguration 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 AudioArtifactsConfiguration) String() string { +func (s CompositedVideoArtifactsConfiguration) String() string { return awsutil.Prettify(s) } @@ -2915,15 +3968,20 @@ func (s AudioArtifactsConfiguration) 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 AudioArtifactsConfiguration) GoString() string { +func (s CompositedVideoArtifactsConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AudioArtifactsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AudioArtifactsConfiguration"} - if s.MuxType == nil { - invalidParams.Add(request.NewErrParamRequired("MuxType")) +func (s *CompositedVideoArtifactsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CompositedVideoArtifactsConfiguration"} + if s.GridViewConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("GridViewConfiguration")) + } + if s.GridViewConfiguration != nil { + if err := s.GridViewConfiguration.Validate(); err != nil { + invalidParams.AddNested("GridViewConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -2932,20 +3990,33 @@ func (s *AudioArtifactsConfiguration) Validate() error { return nil } -// SetMuxType sets the MuxType field's value. -func (s *AudioArtifactsConfiguration) SetMuxType(v string) *AudioArtifactsConfiguration { - s.MuxType = &v +// SetGridViewConfiguration sets the GridViewConfiguration field's value. +func (s *CompositedVideoArtifactsConfiguration) SetGridViewConfiguration(v *GridViewConfiguration) *CompositedVideoArtifactsConfiguration { + s.GridViewConfiguration = v + return s +} + +// SetLayout sets the Layout field's value. +func (s *CompositedVideoArtifactsConfiguration) SetLayout(v string) *CompositedVideoArtifactsConfiguration { + s.Layout = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *CompositedVideoArtifactsConfiguration) SetResolution(v string) *CompositedVideoArtifactsConfiguration { + s.Resolution = &v return s } -// The audio artifact concatenation configuration object. -type AudioConcatenationConfiguration struct { +// The composited video configuration object for a specified media pipeline. +// SourceType must be ChimeSdkMeeting. +type CompositedVideoConcatenationConfiguration struct { _ struct{} `type:"structure"` // Enables or disables the configuration object. // // State is a required field - State *string `type:"string" required:"true" enum:"AudioArtifactsConcatenationState"` + State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` } // String returns the string representation. @@ -2953,7 +4024,7 @@ type AudioConcatenationConfiguration 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 AudioConcatenationConfiguration) String() string { +func (s CompositedVideoConcatenationConfiguration) String() string { return awsutil.Prettify(s) } @@ -2962,13 +4033,13 @@ func (s AudioConcatenationConfiguration) 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 AudioConcatenationConfiguration) GoString() string { +func (s CompositedVideoConcatenationConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AudioConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AudioConcatenationConfiguration"} +func (s *CompositedVideoConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CompositedVideoConcatenationConfiguration"} if s.State == nil { invalidParams.Add(request.NewErrParamRequired("State")) } @@ -2980,91 +4051,24 @@ func (s *AudioConcatenationConfiguration) Validate() error { } // SetState sets the State field's value. -func (s *AudioConcatenationConfiguration) SetState(v string) *AudioConcatenationConfiguration { +func (s *CompositedVideoConcatenationConfiguration) SetState(v string) *CompositedVideoConcatenationConfiguration { s.State = &v return s } -// The input parameters don't match the service's restrictions. -type BadRequestException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - - Message_ *string `locationName:"Message" type:"string"` - - // The request ID associated with the call responsible for the exception. - RequestId *string `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 BadRequestException) 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 BadRequestException) GoString() string { - return s.String() -} - -func newErrorBadRequestException(v protocol.ResponseMetadata) error { - return &BadRequestException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *BadRequestException) Code() string { - return "BadRequestException" -} - -// Message returns the exception's message. -func (s *BadRequestException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *BadRequestException) OrigErr() error { - return nil -} - -func (s *BadRequestException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *BadRequestException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *BadRequestException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Defines an audio channel in a Kinesis video stream. -type ChannelDefinition struct { +// The data sink of the configuration object. +type ConcatenationSink struct { _ struct{} `type:"structure"` - // The channel ID. + // The configuration settings for an Amazon S3 bucket sink. // - // ChannelId is a required field - ChannelId *int64 `type:"integer" required:"true"` + // S3BucketSinkConfiguration is a required field + S3BucketSinkConfiguration *S3BucketSinkConfiguration `type:"structure" required:"true"` - // Specifies whether the audio in a channel belongs to the AGENT or CUSTOMER. - ParticipantRole *string `type:"string" enum:"ParticipantRole"` + // The type of data sink in the configuration object. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ConcatenationSinkType"` } // String returns the string representation. @@ -3072,7 +4076,7 @@ type ChannelDefinition 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 ChannelDefinition) String() string { +func (s ConcatenationSink) String() string { return awsutil.Prettify(s) } @@ -3081,15 +4085,23 @@ func (s ChannelDefinition) 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 ChannelDefinition) GoString() string { +func (s ConcatenationSink) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChannelDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChannelDefinition"} - if s.ChannelId == nil { - invalidParams.Add(request.NewErrParamRequired("ChannelId")) +func (s *ConcatenationSink) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConcatenationSink"} + if s.S3BucketSinkConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("S3BucketSinkConfiguration")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.S3BucketSinkConfiguration != nil { + if err := s.S3BucketSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("S3BucketSinkConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -3098,27 +4110,32 @@ func (s *ChannelDefinition) Validate() error { return nil } -// SetChannelId sets the ChannelId field's value. -func (s *ChannelDefinition) SetChannelId(v int64) *ChannelDefinition { - s.ChannelId = &v +// SetS3BucketSinkConfiguration sets the S3BucketSinkConfiguration field's value. +func (s *ConcatenationSink) SetS3BucketSinkConfiguration(v *S3BucketSinkConfiguration) *ConcatenationSink { + s.S3BucketSinkConfiguration = v return s } -// SetParticipantRole sets the ParticipantRole field's value. -func (s *ChannelDefinition) SetParticipantRole(v string) *ChannelDefinition { - s.ParticipantRole = &v +// SetType sets the Type field's value. +func (s *ConcatenationSink) SetType(v string) *ConcatenationSink { + s.Type = &v return s } -// The configuration object of the Amazon Chime SDK meeting concatenation for -// a specified media pipeline. -type ChimeSdkMeetingConcatenationConfiguration struct { +// The source type and media pipeline configuration settings in a configuration +// object. +type ConcatenationSource struct { _ struct{} `type:"structure"` - // The configuration for the artifacts in an Amazon Chime SDK meeting concatenation. + // The concatenation settings for the media pipeline in a configuration object. // - // ArtifactsConfiguration is a required field - ArtifactsConfiguration *ArtifactsConcatenationConfiguration `type:"structure" required:"true"` + // MediaCapturePipelineSourceConfiguration is a required field + MediaCapturePipelineSourceConfiguration *MediaCapturePipelineSourceConfiguration `type:"structure" required:"true"` + + // The type of concatenation source in a configuration object. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ConcatenationSourceType"` } // String returns the string representation. @@ -3126,7 +4143,7 @@ type ChimeSdkMeetingConcatenationConfiguration 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 ChimeSdkMeetingConcatenationConfiguration) String() string { +func (s ConcatenationSource) String() string { return awsutil.Prettify(s) } @@ -3135,19 +4152,22 @@ func (s ChimeSdkMeetingConcatenationConfiguration) 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 ChimeSdkMeetingConcatenationConfiguration) GoString() string { +func (s ConcatenationSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChimeSdkMeetingConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingConcatenationConfiguration"} - if s.ArtifactsConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("ArtifactsConfiguration")) +func (s *ConcatenationSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConcatenationSource"} + if s.MediaCapturePipelineSourceConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("MediaCapturePipelineSourceConfiguration")) } - if s.ArtifactsConfiguration != nil { - if err := s.ArtifactsConfiguration.Validate(); err != nil { - invalidParams.AddNested("ArtifactsConfiguration", err.(request.ErrInvalidParams)) + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.MediaCapturePipelineSourceConfiguration != nil { + if err := s.MediaCapturePipelineSourceConfiguration.Validate(); err != nil { + invalidParams.AddNested("MediaCapturePipelineSourceConfiguration", err.(request.ErrInvalidParams)) } } @@ -3157,22 +4177,30 @@ func (s *ChimeSdkMeetingConcatenationConfiguration) Validate() error { return nil } -// SetArtifactsConfiguration sets the ArtifactsConfiguration field's value. -func (s *ChimeSdkMeetingConcatenationConfiguration) SetArtifactsConfiguration(v *ArtifactsConcatenationConfiguration) *ChimeSdkMeetingConcatenationConfiguration { - s.ArtifactsConfiguration = v +// SetMediaCapturePipelineSourceConfiguration sets the MediaCapturePipelineSourceConfiguration field's value. +func (s *ConcatenationSource) SetMediaCapturePipelineSourceConfiguration(v *MediaCapturePipelineSourceConfiguration) *ConcatenationSource { + s.MediaCapturePipelineSourceConfiguration = v return s } -// The configuration object of the Amazon Chime SDK meeting for a specified -// media pipeline. SourceType must be ChimeSdkMeeting. -type ChimeSdkMeetingConfiguration struct { - _ struct{} `type:"structure"` +// SetType sets the Type field's value. +func (s *ConcatenationSource) SetType(v string) *ConcatenationSource { + s.Type = &v + return s +} - // The configuration for the artifacts in an Amazon Chime SDK meeting. - ArtifactsConfiguration *ArtifactsConfiguration `type:"structure"` +// The request could not be processed because of conflict in the current state +// of the resource. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The source configuration for a specified media pipeline. - SourceConfiguration *SourceConfiguration `type:"structure"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` } // String returns the string representation. @@ -3180,7 +4208,7 @@ type ChimeSdkMeetingConfiguration 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 ChimeSdkMeetingConfiguration) String() string { +func (s ConflictException) String() string { return awsutil.Prettify(s) } @@ -3189,65 +4217,59 @@ func (s ChimeSdkMeetingConfiguration) 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 ChimeSdkMeetingConfiguration) GoString() string { +func (s ConflictException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChimeSdkMeetingConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingConfiguration"} - if s.ArtifactsConfiguration != nil { - if err := s.ArtifactsConfiguration.Validate(); err != nil { - invalidParams.AddNested("ArtifactsConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.SourceConfiguration != nil { - if err := s.SourceConfiguration.Validate(); err != nil { - invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) - } +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// 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 } -// SetArtifactsConfiguration sets the ArtifactsConfiguration field's value. -func (s *ChimeSdkMeetingConfiguration) SetArtifactsConfiguration(v *ArtifactsConfiguration) *ChimeSdkMeetingConfiguration { - s.ArtifactsConfiguration = v - return s +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetSourceConfiguration sets the SourceConfiguration field's value. -func (s *ChimeSdkMeetingConfiguration) SetSourceConfiguration(v *SourceConfiguration) *ChimeSdkMeetingConfiguration { - s.SourceConfiguration = v - return s +// 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 } -// The media pipeline's configuration object. -type ChimeSdkMeetingLiveConnectorConfiguration struct { +// The content artifact object. +type ContentArtifactsConfiguration struct { _ struct{} `type:"structure"` - // The configuration object's Chime SDK meeting ARN. - // - // Arn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ChimeSdkMeetingLiveConnectorConfiguration's - // String and GoString methods. - // - // Arn is a required field - Arn *string `min:"1" type:"string" required:"true" sensitive:"true"` - - // The media pipeline's composited video. - CompositedVideo *CompositedVideoArtifactsConfiguration `type:"structure"` + // The MUX type of the artifact configuration. + MuxType *string `type:"string" enum:"ContentMuxType"` - // The configuration object's multiplex type. + // Indicates whether the content artifact is enabled or disabled. // - // MuxType is a required field - MuxType *string `type:"string" required:"true" enum:"LiveConnectorMuxType"` - - // The source configuration settings of the media pipeline's configuration object. - SourceConfiguration *SourceConfiguration `type:"structure"` + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsState"` } // String returns the string representation. @@ -3255,7 +4277,7 @@ type ChimeSdkMeetingLiveConnectorConfiguration 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 ChimeSdkMeetingLiveConnectorConfiguration) String() string { +func (s ContentArtifactsConfiguration) String() string { return awsutil.Prettify(s) } @@ -3264,31 +4286,15 @@ func (s ChimeSdkMeetingLiveConnectorConfiguration) 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 ChimeSdkMeetingLiveConnectorConfiguration) GoString() string { +func (s ContentArtifactsConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingLiveConnectorConfiguration"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) - } - if s.MuxType == nil { - invalidParams.Add(request.NewErrParamRequired("MuxType")) - } - if s.CompositedVideo != nil { - if err := s.CompositedVideo.Validate(); err != nil { - invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) - } - } - if s.SourceConfiguration != nil { - if err := s.SourceConfiguration.Validate(); err != nil { - invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) - } +func (s *ContentArtifactsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContentArtifactsConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) } if invalidParams.Len() > 0 { @@ -3297,45 +4303,26 @@ func (s *ChimeSdkMeetingLiveConnectorConfiguration) Validate() error { return nil } -// SetArn sets the Arn field's value. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetArn(v string) *ChimeSdkMeetingLiveConnectorConfiguration { - s.Arn = &v - return s -} - -// SetCompositedVideo sets the CompositedVideo field's value. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetCompositedVideo(v *CompositedVideoArtifactsConfiguration) *ChimeSdkMeetingLiveConnectorConfiguration { - s.CompositedVideo = v - return s -} - // SetMuxType sets the MuxType field's value. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetMuxType(v string) *ChimeSdkMeetingLiveConnectorConfiguration { +func (s *ContentArtifactsConfiguration) SetMuxType(v string) *ContentArtifactsConfiguration { s.MuxType = &v return s } -// SetSourceConfiguration sets the SourceConfiguration field's value. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetSourceConfiguration(v *SourceConfiguration) *ChimeSdkMeetingLiveConnectorConfiguration { - s.SourceConfiguration = v +// SetState sets the State field's value. +func (s *ContentArtifactsConfiguration) SetState(v string) *ContentArtifactsConfiguration { + s.State = &v return s } -// Specifies the configuration for compositing video artifacts. -type CompositedVideoArtifactsConfiguration struct { +// The composited content configuration object for a specified media pipeline. +type ContentConcatenationConfiguration struct { _ struct{} `type:"structure"` - // The GridView configuration setting. + // Enables or disables the configuration object. // - // GridViewConfiguration is a required field - GridViewConfiguration *GridViewConfiguration `type:"structure" required:"true"` - - // The layout setting, such as GridView in the configuration object. - Layout *string `type:"string" enum:"LayoutOption"` - - // The video resolution setting in the configuration object. Default: HD at - // 1280 x 720. FHD resolution: 1920 x 1080. - Resolution *string `type:"string" enum:"ResolutionOption"` + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` } // String returns the string representation. @@ -3343,7 +4330,7 @@ type CompositedVideoArtifactsConfiguration 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 CompositedVideoArtifactsConfiguration) String() string { +func (s ContentConcatenationConfiguration) String() string { return awsutil.Prettify(s) } @@ -3352,20 +4339,15 @@ func (s CompositedVideoArtifactsConfiguration) 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 CompositedVideoArtifactsConfiguration) GoString() string { +func (s ContentConcatenationConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CompositedVideoArtifactsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompositedVideoArtifactsConfiguration"} - if s.GridViewConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("GridViewConfiguration")) - } - if s.GridViewConfiguration != nil { - if err := s.GridViewConfiguration.Validate(); err != nil { - invalidParams.AddNested("GridViewConfiguration", err.(request.ErrInvalidParams)) - } +func (s *ContentConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContentConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) } if invalidParams.Len() > 0 { @@ -3374,33 +4356,58 @@ func (s *CompositedVideoArtifactsConfiguration) Validate() error { return nil } -// SetGridViewConfiguration sets the GridViewConfiguration field's value. -func (s *CompositedVideoArtifactsConfiguration) SetGridViewConfiguration(v *GridViewConfiguration) *CompositedVideoArtifactsConfiguration { - s.GridViewConfiguration = v +// SetState sets the State field's value. +func (s *ContentConcatenationConfiguration) SetState(v string) *ContentConcatenationConfiguration { + s.State = &v return s } -// SetLayout sets the Layout field's value. -func (s *CompositedVideoArtifactsConfiguration) SetLayout(v string) *CompositedVideoArtifactsConfiguration { - s.Layout = &v - return s -} +type CreateMediaCapturePipelineInput struct { + _ struct{} `type:"structure"` -// SetResolution sets the Resolution field's value. -func (s *CompositedVideoArtifactsConfiguration) SetResolution(v string) *CompositedVideoArtifactsConfiguration { - s.Resolution = &v - return s -} + // The configuration for a specified media pipeline. SourceType must be ChimeSdkMeeting. + ChimeSdkMeetingConfiguration *ChimeSdkMeetingConfiguration `type:"structure"` -// The composited video configuration object for a specified media pipeline. -// SourceType must be ChimeSdkMeeting. -type CompositedVideoConcatenationConfiguration struct { - _ struct{} `type:"structure"` + // The unique identifier for the client request. The token makes the API request + // idempotent. Use a unique token for each media pipeline request. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - // Enables or disables the configuration object. + // The ARN of the sink type. // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` + // SinkArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's + // String and GoString methods. + // + // SinkArn is a required field + SinkArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // Destination type to which the media artifacts are saved. You must use an + // S3 bucket. + // + // SinkType is a required field + SinkType *string `type:"string" required:"true" enum:"MediaPipelineSinkType"` + + // ARN of the source from which the media artifacts are captured. + // + // SourceArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's + // String and GoString methods. + // + // SourceArn is a required field + SourceArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // Source type from which the media artifacts are captured. A Chime SDK Meeting + // is the only supported source. + // + // SourceType is a required field + SourceType *string `type:"string" required:"true" enum:"MediaPipelineSourceType"` + + // The tag key-value pairs. + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation. @@ -3408,7 +4415,7 @@ type CompositedVideoConcatenationConfiguration 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 CompositedVideoConcatenationConfiguration) String() string { +func (s CreateMediaCapturePipelineInput) String() string { return awsutil.Prettify(s) } @@ -3417,15 +4424,51 @@ func (s CompositedVideoConcatenationConfiguration) 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 CompositedVideoConcatenationConfiguration) GoString() string { +func (s CreateMediaCapturePipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CompositedVideoConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompositedVideoConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +func (s *CreateMediaCapturePipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaCapturePipelineInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.SinkArn == nil { + invalidParams.Add(request.NewErrParamRequired("SinkArn")) + } + if s.SinkArn != nil && len(*s.SinkArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SinkArn", 1)) + } + if s.SinkType == nil { + invalidParams.Add(request.NewErrParamRequired("SinkType")) + } + if s.SourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceArn")) + } + if s.SourceArn != nil && len(*s.SourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceArn", 1)) + } + if s.SourceType == nil { + invalidParams.Add(request.NewErrParamRequired("SourceType")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.ChimeSdkMeetingConfiguration != nil { + if err := s.ChimeSdkMeetingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ChimeSdkMeetingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -3434,25 +4477,54 @@ func (s *CompositedVideoConcatenationConfiguration) Validate() error { return nil } -// SetState sets the State field's value. -func (s *CompositedVideoConcatenationConfiguration) SetState(v string) *CompositedVideoConcatenationConfiguration { - s.State = &v +// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. +func (s *CreateMediaCapturePipelineInput) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConfiguration) *CreateMediaCapturePipelineInput { + s.ChimeSdkMeetingConfiguration = v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaCapturePipelineInput) SetClientRequestToken(v string) *CreateMediaCapturePipelineInput { + s.ClientRequestToken = &v + return s +} + +// SetSinkArn sets the SinkArn field's value. +func (s *CreateMediaCapturePipelineInput) SetSinkArn(v string) *CreateMediaCapturePipelineInput { + s.SinkArn = &v + return s +} + +// SetSinkType sets the SinkType field's value. +func (s *CreateMediaCapturePipelineInput) SetSinkType(v string) *CreateMediaCapturePipelineInput { + s.SinkType = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *CreateMediaCapturePipelineInput) SetSourceArn(v string) *CreateMediaCapturePipelineInput { + s.SourceArn = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *CreateMediaCapturePipelineInput) SetSourceType(v string) *CreateMediaCapturePipelineInput { + s.SourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMediaCapturePipelineInput) SetTags(v []*Tag) *CreateMediaCapturePipelineInput { + s.Tags = v return s } -// The data sink of the configuration object. -type ConcatenationSink struct { +type CreateMediaCapturePipelineOutput struct { _ struct{} `type:"structure"` - // The configuration settings for an Amazon S3 bucket sink. - // - // S3BucketSinkConfiguration is a required field - S3BucketSinkConfiguration *S3BucketSinkConfiguration `type:"structure" required:"true"` - - // The type of data sink in the configuration object. - // - // Type is a required field - Type *string `type:"string" required:"true" enum:"ConcatenationSinkType"` + // A media pipeline object, the ID, source type, source ARN, sink type, and + // sink ARN of a media pipeline object. + MediaCapturePipeline *MediaCapturePipeline `type:"structure"` } // String returns the string representation. @@ -3460,7 +4532,7 @@ type ConcatenationSink 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 ConcatenationSink) String() string { +func (s CreateMediaCapturePipelineOutput) String() string { return awsutil.Prettify(s) } @@ -3469,57 +4541,39 @@ func (s ConcatenationSink) 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 ConcatenationSink) GoString() string { +func (s CreateMediaCapturePipelineOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConcatenationSink) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConcatenationSink"} - if s.S3BucketSinkConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("S3BucketSinkConfiguration")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.S3BucketSinkConfiguration != nil { - if err := s.S3BucketSinkConfiguration.Validate(); err != nil { - invalidParams.AddNested("S3BucketSinkConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetS3BucketSinkConfiguration sets the S3BucketSinkConfiguration field's value. -func (s *ConcatenationSink) SetS3BucketSinkConfiguration(v *S3BucketSinkConfiguration) *ConcatenationSink { - s.S3BucketSinkConfiguration = v - return s -} - -// SetType sets the Type field's value. -func (s *ConcatenationSink) SetType(v string) *ConcatenationSink { - s.Type = &v +// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. +func (s *CreateMediaCapturePipelineOutput) SetMediaCapturePipeline(v *MediaCapturePipeline) *CreateMediaCapturePipelineOutput { + s.MediaCapturePipeline = v return s } -// The source type and media pipeline configuration settings in a configuration -// object. -type ConcatenationSource struct { +type CreateMediaConcatenationPipelineInput struct { _ struct{} `type:"structure"` - // The concatenation settings for the media pipeline in a configuration object. + // The unique identifier for the client request. The token makes the API request + // idempotent. Use a unique token for each media concatenation pipeline request. // - // MediaCapturePipelineSourceConfiguration is a required field - MediaCapturePipelineSourceConfiguration *MediaCapturePipelineSourceConfiguration `type:"structure" required:"true"` + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaConcatenationPipelineInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - // The type of concatenation source in a configuration object. + // An object that specifies the data sinks for the media concatenation pipeline. // - // Type is a required field - Type *string `type:"string" required:"true" enum:"ConcatenationSourceType"` + // Sinks is a required field + Sinks []*ConcatenationSink `min:"1" type:"list" required:"true"` + + // An object that specifies the sources for the media concatenation pipeline. + // + // Sources is a required field + Sources []*ConcatenationSource `min:"1" type:"list" required:"true"` + + // The tags associated with the media concatenation pipeline. + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation. @@ -3527,7 +4581,7 @@ type ConcatenationSource 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 ConcatenationSource) String() string { +func (s CreateMediaConcatenationPipelineInput) String() string { return awsutil.Prettify(s) } @@ -3536,22 +4590,59 @@ func (s ConcatenationSource) 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 ConcatenationSource) GoString() string { +func (s CreateMediaConcatenationPipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ConcatenationSource) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConcatenationSource"} - if s.MediaCapturePipelineSourceConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("MediaCapturePipelineSourceConfiguration")) +func (s *CreateMediaConcatenationPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaConcatenationPipelineInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) + if s.Sinks == nil { + invalidParams.Add(request.NewErrParamRequired("Sinks")) } - if s.MediaCapturePipelineSourceConfiguration != nil { - if err := s.MediaCapturePipelineSourceConfiguration.Validate(); err != nil { - invalidParams.AddNested("MediaCapturePipelineSourceConfiguration", err.(request.ErrInvalidParams)) + if s.Sinks != nil && len(s.Sinks) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Sinks", 1)) + } + if s.Sources == nil { + invalidParams.Add(request.NewErrParamRequired("Sources")) + } + if s.Sources != nil && len(s.Sources) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Sources", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Sinks != nil { + for i, v := range s.Sinks { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sinks", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Sources != nil { + for i, v := range s.Sources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } } } @@ -3561,30 +4652,36 @@ func (s *ConcatenationSource) Validate() error { return nil } -// SetMediaCapturePipelineSourceConfiguration sets the MediaCapturePipelineSourceConfiguration field's value. -func (s *ConcatenationSource) SetMediaCapturePipelineSourceConfiguration(v *MediaCapturePipelineSourceConfiguration) *ConcatenationSource { - s.MediaCapturePipelineSourceConfiguration = v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaConcatenationPipelineInput) SetClientRequestToken(v string) *CreateMediaConcatenationPipelineInput { + s.ClientRequestToken = &v return s } -// SetType sets the Type field's value. -func (s *ConcatenationSource) SetType(v string) *ConcatenationSource { - s.Type = &v +// SetSinks sets the Sinks field's value. +func (s *CreateMediaConcatenationPipelineInput) SetSinks(v []*ConcatenationSink) *CreateMediaConcatenationPipelineInput { + s.Sinks = v return s } -// The request could not be processed because of conflict in the current state -// of the resource. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetSources sets the Sources field's value. +func (s *CreateMediaConcatenationPipelineInput) SetSources(v []*ConcatenationSource) *CreateMediaConcatenationPipelineInput { + s.Sources = v + return s +} - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +// SetTags sets the Tags field's value. +func (s *CreateMediaConcatenationPipelineInput) SetTags(v []*Tag) *CreateMediaConcatenationPipelineInput { + s.Tags = v + return s +} - Message_ *string `locationName:"Message" type:"string"` +type CreateMediaConcatenationPipelineOutput struct { + _ struct{} `type:"structure"` - // The request ID associated with the call responsible for the exception. - RequestId *string `type:"string"` + // A media concatenation pipeline object, the ID, source type, MediaPipelineARN, + // and sink of a media concatenation pipeline object. + MediaConcatenationPipeline *MediaConcatenationPipeline `type:"structure"` } // String returns the string representation. @@ -3592,7 +4689,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 CreateMediaConcatenationPipelineOutput) String() string { return awsutil.Prettify(s) } @@ -3601,59 +4698,53 @@ 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 CreateMediaConcatenationPipelineOutput) 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 +// SetMediaConcatenationPipeline sets the MediaConcatenationPipeline field's value. +func (s *CreateMediaConcatenationPipelineOutput) SetMediaConcatenationPipeline(v *MediaConcatenationPipeline) *CreateMediaConcatenationPipelineOutput { + s.MediaConcatenationPipeline = v + return s } -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} +type CreateMediaInsightsPipelineConfigurationInput 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 unique identifier for the media insights pipeline configuration request. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineConfigurationInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID -} + // The elements in the request, such as a processor for Amazon Transcribe or + // a sink for a Kinesis Data Stream. + // + // Elements is a required field + Elements []*MediaInsightsPipelineConfigurationElement `type:"list" required:"true"` -// The content artifact object. -type ContentArtifactsConfiguration struct { - _ struct{} `type:"structure"` + // The name of the media insights pipeline configuration. + // + // MediaInsightsPipelineConfigurationName is a required field + MediaInsightsPipelineConfigurationName *string `min:"2" type:"string" required:"true"` - // The MUX type of the artifact configuration. - MuxType *string `type:"string" enum:"ContentMuxType"` + // The configuration settings for the real-time alerts in a media insights pipeline + // configuration. + RealTimeAlertConfiguration *RealTimeAlertConfiguration `type:"structure"` - // Indicates whether the content artifact is enabled or disabled. + // The ARN of the role used by the service to access Amazon Web Services resources, + // including Transcribe and Transcribe Call Analytics, on the caller’s behalf. + // + // ResourceAccessRoleArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineConfigurationInput's + // String and GoString methods. // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsState"` + // ResourceAccessRoleArn is a required field + ResourceAccessRoleArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The tags assigned to the media insights pipeline configuration. + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation. @@ -3661,7 +4752,7 @@ type ContentArtifactsConfiguration 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 ContentArtifactsConfiguration) String() string { +func (s CreateMediaInsightsPipelineConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -3670,15 +4761,58 @@ func (s ContentArtifactsConfiguration) 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 ContentArtifactsConfiguration) GoString() string { +func (s CreateMediaInsightsPipelineConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ContentArtifactsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContentArtifactsConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +func (s *CreateMediaInsightsPipelineConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaInsightsPipelineConfigurationInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Elements == nil { + invalidParams.Add(request.NewErrParamRequired("Elements")) + } + if s.MediaInsightsPipelineConfigurationName == nil { + invalidParams.Add(request.NewErrParamRequired("MediaInsightsPipelineConfigurationName")) + } + if s.MediaInsightsPipelineConfigurationName != nil && len(*s.MediaInsightsPipelineConfigurationName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("MediaInsightsPipelineConfigurationName", 2)) + } + if s.ResourceAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceAccessRoleArn")) + } + if s.ResourceAccessRoleArn != nil && len(*s.ResourceAccessRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceAccessRoleArn", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Elements != nil { + for i, v := range s.Elements { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Elements", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RealTimeAlertConfiguration != nil { + if err := s.RealTimeAlertConfiguration.Validate(); err != nil { + invalidParams.AddNested("RealTimeAlertConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -3687,26 +4821,47 @@ func (s *ContentArtifactsConfiguration) Validate() error { return nil } -// SetMuxType sets the MuxType field's value. -func (s *ContentArtifactsConfiguration) SetMuxType(v string) *ContentArtifactsConfiguration { - s.MuxType = &v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetClientRequestToken(v string) *CreateMediaInsightsPipelineConfigurationInput { + s.ClientRequestToken = &v return s } -// SetState sets the State field's value. -func (s *ContentArtifactsConfiguration) SetState(v string) *ContentArtifactsConfiguration { - s.State = &v +// SetElements sets the Elements field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetElements(v []*MediaInsightsPipelineConfigurationElement) *CreateMediaInsightsPipelineConfigurationInput { + s.Elements = v return s } -// The composited content configuration object for a specified media pipeline. -type ContentConcatenationConfiguration struct { +// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetMediaInsightsPipelineConfigurationName(v string) *CreateMediaInsightsPipelineConfigurationInput { + s.MediaInsightsPipelineConfigurationName = &v + return s +} + +// SetRealTimeAlertConfiguration sets the RealTimeAlertConfiguration field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetRealTimeAlertConfiguration(v *RealTimeAlertConfiguration) *CreateMediaInsightsPipelineConfigurationInput { + s.RealTimeAlertConfiguration = v + return s +} + +// SetResourceAccessRoleArn sets the ResourceAccessRoleArn field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetResourceAccessRoleArn(v string) *CreateMediaInsightsPipelineConfigurationInput { + s.ResourceAccessRoleArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetTags(v []*Tag) *CreateMediaInsightsPipelineConfigurationInput { + s.Tags = v + return s +} + +type CreateMediaInsightsPipelineConfigurationOutput struct { _ struct{} `type:"structure"` - // Enables or disables the configuration object. - // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` + // The configuration settings for the media insights pipeline. + MediaInsightsPipelineConfiguration *MediaInsightsPipelineConfiguration `type:"structure"` } // String returns the string representation. @@ -3714,7 +4869,7 @@ type ContentConcatenationConfiguration 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 ContentConcatenationConfiguration) String() string { +func (s CreateMediaInsightsPipelineConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -3723,74 +4878,55 @@ func (s ContentConcatenationConfiguration) 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 ContentConcatenationConfiguration) GoString() string { +func (s CreateMediaInsightsPipelineConfigurationOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ContentConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContentConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetState sets the State field's value. -func (s *ContentConcatenationConfiguration) SetState(v string) *ContentConcatenationConfiguration { - s.State = &v +// SetMediaInsightsPipelineConfiguration sets the MediaInsightsPipelineConfiguration field's value. +func (s *CreateMediaInsightsPipelineConfigurationOutput) SetMediaInsightsPipelineConfiguration(v *MediaInsightsPipelineConfiguration) *CreateMediaInsightsPipelineConfigurationOutput { + s.MediaInsightsPipelineConfiguration = v return s } -type CreateMediaCapturePipelineInput struct { +type CreateMediaInsightsPipelineInput struct { _ struct{} `type:"structure"` - // The configuration for a specified media pipeline. SourceType must be ChimeSdkMeeting. - ChimeSdkMeetingConfiguration *ChimeSdkMeetingConfiguration `type:"structure"` - - // The unique identifier for the client request. The token makes the API request - // idempotent. Use a unique token for each media pipeline request. + // The unique identifier for the media insights pipeline request. // // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's // String and GoString methods. ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - // The ARN of the sink type. - // - // SinkArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's - // String and GoString methods. - // - // SinkArn is a required field - SinkArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + // The runtime configuration for the Kinesis video recording stream source. + KinesisVideoStreamRecordingSourceRuntimeConfiguration *KinesisVideoStreamRecordingSourceRuntimeConfiguration `type:"structure"` - // Destination type to which the media artifacts are saved. You must use an - // S3 bucket. - // - // SinkType is a required field - SinkType *string `type:"string" required:"true" enum:"MediaPipelineSinkType"` + // The runtime configuration for the Kinesis video stream source of the media + // insights pipeline. + KinesisVideoStreamSourceRuntimeConfiguration *KinesisVideoStreamSourceRuntimeConfiguration `type:"structure"` - // ARN of the source from which the media artifacts are captured. + // The ARN of the pipeline's configuration. // - // SourceArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's + // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's // String and GoString methods. // - // SourceArn is a required field - SourceArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + // MediaInsightsPipelineConfigurationArn is a required field + MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" required:"true" sensitive:"true"` - // Source type from which the media artifacts are captured. A Chime SDK Meeting - // is the only supported source. + // The runtime metadata for the media insights pipeline. Consists of a key-value + // map of strings. // - // SourceType is a required field - SourceType *string `type:"string" required:"true" enum:"MediaPipelineSourceType"` + // MediaInsightsRuntimeMetadata is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's + // String and GoString methods. + MediaInsightsRuntimeMetadata map[string]*string `type:"map" sensitive:"true"` - // The tag key-value pairs. + // The runtime configuration for the S3 recording sink. If specified, the settings + // in this structure override any settings in S3RecordingSinkConfiguration. + S3RecordingSinkRuntimeConfiguration *S3RecordingSinkRuntimeConfiguration `type:"structure"` + + // The tags assigned to the media insights pipeline. Tags []*Tag `min:"1" type:"list"` } @@ -3799,7 +4935,7 @@ type CreateMediaCapturePipelineInput 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 CreateMediaCapturePipelineInput) String() string { +func (s CreateMediaInsightsPipelineInput) String() string { return awsutil.Prettify(s) } @@ -3808,40 +4944,38 @@ func (s CreateMediaCapturePipelineInput) 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 CreateMediaCapturePipelineInput) GoString() string { +func (s CreateMediaInsightsPipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMediaCapturePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMediaCapturePipelineInput"} +func (s *CreateMediaInsightsPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaInsightsPipelineInput"} if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) } - if s.SinkArn == nil { - invalidParams.Add(request.NewErrParamRequired("SinkArn")) - } - if s.SinkArn != nil && len(*s.SinkArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SinkArn", 1)) - } - if s.SinkType == nil { - invalidParams.Add(request.NewErrParamRequired("SinkType")) - } - if s.SourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("SourceArn")) - } - if s.SourceArn != nil && len(*s.SourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceArn", 1)) + if s.MediaInsightsPipelineConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("MediaInsightsPipelineConfigurationArn")) } - if s.SourceType == nil { - invalidParams.Add(request.NewErrParamRequired("SourceType")) + if s.MediaInsightsPipelineConfigurationArn != nil && len(*s.MediaInsightsPipelineConfigurationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MediaInsightsPipelineConfigurationArn", 1)) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } - if s.ChimeSdkMeetingConfiguration != nil { - if err := s.ChimeSdkMeetingConfiguration.Validate(); err != nil { - invalidParams.AddNested("ChimeSdkMeetingConfiguration", err.(request.ErrInvalidParams)) + if s.KinesisVideoStreamRecordingSourceRuntimeConfiguration != nil { + if err := s.KinesisVideoStreamRecordingSourceRuntimeConfiguration.Validate(); err != nil { + invalidParams.AddNested("KinesisVideoStreamRecordingSourceRuntimeConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.KinesisVideoStreamSourceRuntimeConfiguration != nil { + if err := s.KinesisVideoStreamSourceRuntimeConfiguration.Validate(); err != nil { + invalidParams.AddNested("KinesisVideoStreamSourceRuntimeConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3RecordingSinkRuntimeConfiguration != nil { + if err := s.S3RecordingSinkRuntimeConfiguration.Validate(); err != nil { + invalidParams.AddNested("S3RecordingSinkRuntimeConfiguration", err.(request.ErrInvalidParams)) } } if s.Tags != nil { @@ -3861,54 +4995,55 @@ func (s *CreateMediaCapturePipelineInput) Validate() error { return nil } -// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. -func (s *CreateMediaCapturePipelineInput) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConfiguration) *CreateMediaCapturePipelineInput { - s.ChimeSdkMeetingConfiguration = v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaInsightsPipelineInput) SetClientRequestToken(v string) *CreateMediaInsightsPipelineInput { + s.ClientRequestToken = &v return s } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMediaCapturePipelineInput) SetClientRequestToken(v string) *CreateMediaCapturePipelineInput { - s.ClientRequestToken = &v +// SetKinesisVideoStreamRecordingSourceRuntimeConfiguration sets the KinesisVideoStreamRecordingSourceRuntimeConfiguration field's value. +func (s *CreateMediaInsightsPipelineInput) SetKinesisVideoStreamRecordingSourceRuntimeConfiguration(v *KinesisVideoStreamRecordingSourceRuntimeConfiguration) *CreateMediaInsightsPipelineInput { + s.KinesisVideoStreamRecordingSourceRuntimeConfiguration = v return s } -// SetSinkArn sets the SinkArn field's value. -func (s *CreateMediaCapturePipelineInput) SetSinkArn(v string) *CreateMediaCapturePipelineInput { - s.SinkArn = &v +// SetKinesisVideoStreamSourceRuntimeConfiguration sets the KinesisVideoStreamSourceRuntimeConfiguration field's value. +func (s *CreateMediaInsightsPipelineInput) SetKinesisVideoStreamSourceRuntimeConfiguration(v *KinesisVideoStreamSourceRuntimeConfiguration) *CreateMediaInsightsPipelineInput { + s.KinesisVideoStreamSourceRuntimeConfiguration = v return s } -// SetSinkType sets the SinkType field's value. -func (s *CreateMediaCapturePipelineInput) SetSinkType(v string) *CreateMediaCapturePipelineInput { - s.SinkType = &v +// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. +func (s *CreateMediaInsightsPipelineInput) SetMediaInsightsPipelineConfigurationArn(v string) *CreateMediaInsightsPipelineInput { + s.MediaInsightsPipelineConfigurationArn = &v return s } -// SetSourceArn sets the SourceArn field's value. -func (s *CreateMediaCapturePipelineInput) SetSourceArn(v string) *CreateMediaCapturePipelineInput { - s.SourceArn = &v +// SetMediaInsightsRuntimeMetadata sets the MediaInsightsRuntimeMetadata field's value. +func (s *CreateMediaInsightsPipelineInput) SetMediaInsightsRuntimeMetadata(v map[string]*string) *CreateMediaInsightsPipelineInput { + s.MediaInsightsRuntimeMetadata = v return s } -// SetSourceType sets the SourceType field's value. -func (s *CreateMediaCapturePipelineInput) SetSourceType(v string) *CreateMediaCapturePipelineInput { - s.SourceType = &v +// SetS3RecordingSinkRuntimeConfiguration sets the S3RecordingSinkRuntimeConfiguration field's value. +func (s *CreateMediaInsightsPipelineInput) SetS3RecordingSinkRuntimeConfiguration(v *S3RecordingSinkRuntimeConfiguration) *CreateMediaInsightsPipelineInput { + s.S3RecordingSinkRuntimeConfiguration = v return s } // SetTags sets the Tags field's value. -func (s *CreateMediaCapturePipelineInput) SetTags(v []*Tag) *CreateMediaCapturePipelineInput { +func (s *CreateMediaInsightsPipelineInput) SetTags(v []*Tag) *CreateMediaInsightsPipelineInput { s.Tags = v return s } -type CreateMediaCapturePipelineOutput struct { +type CreateMediaInsightsPipelineOutput struct { _ struct{} `type:"structure"` - // A media pipeline object, the ID, source type, source ARN, sink type, and - // sink ARN of a media pipeline object. - MediaCapturePipeline *MediaCapturePipeline `type:"structure"` + // The media insights pipeline object. + // + // MediaInsightsPipeline is a required field + MediaInsightsPipeline *MediaInsightsPipeline `type:"structure" required:"true"` } // String returns the string representation. @@ -3916,7 +5051,7 @@ type CreateMediaCapturePipelineOutput 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 CreateMediaCapturePipelineOutput) String() string { +func (s CreateMediaInsightsPipelineOutput) String() string { return awsutil.Prettify(s) } @@ -3925,38 +5060,37 @@ func (s CreateMediaCapturePipelineOutput) 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 CreateMediaCapturePipelineOutput) GoString() string { +func (s CreateMediaInsightsPipelineOutput) GoString() string { return s.String() } -// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. -func (s *CreateMediaCapturePipelineOutput) SetMediaCapturePipeline(v *MediaCapturePipeline) *CreateMediaCapturePipelineOutput { - s.MediaCapturePipeline = v +// SetMediaInsightsPipeline sets the MediaInsightsPipeline field's value. +func (s *CreateMediaInsightsPipelineOutput) SetMediaInsightsPipeline(v *MediaInsightsPipeline) *CreateMediaInsightsPipelineOutput { + s.MediaInsightsPipeline = v return s } -type CreateMediaConcatenationPipelineInput struct { +type CreateMediaLiveConnectorPipelineInput struct { _ struct{} `type:"structure"` - // The unique identifier for the client request. The token makes the API request - // idempotent. Use a unique token for each media concatenation pipeline request. + // The token assigned to the client making the request. // // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaConcatenationPipelineInput's + // replaced with "sensitive" in string returned by CreateMediaLiveConnectorPipelineInput's // String and GoString methods. ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - // An object that specifies the data sinks for the media concatenation pipeline. + // The media live connector pipeline's data sinks. // // Sinks is a required field - Sinks []*ConcatenationSink `min:"1" type:"list" required:"true"` + Sinks []*LiveConnectorSinkConfiguration `min:"1" type:"list" required:"true"` - // An object that specifies the sources for the media concatenation pipeline. + // The media live connector pipeline's data sources. // // Sources is a required field - Sources []*ConcatenationSource `min:"1" type:"list" required:"true"` + Sources []*LiveConnectorSourceConfiguration `min:"1" type:"list" required:"true"` - // The tags associated with the media concatenation pipeline. + // The tags associated with the media live connector pipeline. Tags []*Tag `min:"1" type:"list"` } @@ -3965,7 +5099,7 @@ type CreateMediaConcatenationPipelineInput 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 CreateMediaConcatenationPipelineInput) String() string { +func (s CreateMediaLiveConnectorPipelineInput) String() string { return awsutil.Prettify(s) } @@ -3974,13 +5108,13 @@ func (s CreateMediaConcatenationPipelineInput) 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 CreateMediaConcatenationPipelineInput) GoString() string { +func (s CreateMediaLiveConnectorPipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMediaConcatenationPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMediaConcatenationPipelineInput"} +func (s *CreateMediaLiveConnectorPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaLiveConnectorPipelineInput"} if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) } @@ -4037,35 +5171,230 @@ func (s *CreateMediaConcatenationPipelineInput) Validate() error { } // SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMediaConcatenationPipelineInput) SetClientRequestToken(v string) *CreateMediaConcatenationPipelineInput { +func (s *CreateMediaLiveConnectorPipelineInput) SetClientRequestToken(v string) *CreateMediaLiveConnectorPipelineInput { s.ClientRequestToken = &v return s } // SetSinks sets the Sinks field's value. -func (s *CreateMediaConcatenationPipelineInput) SetSinks(v []*ConcatenationSink) *CreateMediaConcatenationPipelineInput { +func (s *CreateMediaLiveConnectorPipelineInput) SetSinks(v []*LiveConnectorSinkConfiguration) *CreateMediaLiveConnectorPipelineInput { s.Sinks = v return s } // SetSources sets the Sources field's value. -func (s *CreateMediaConcatenationPipelineInput) SetSources(v []*ConcatenationSource) *CreateMediaConcatenationPipelineInput { +func (s *CreateMediaLiveConnectorPipelineInput) SetSources(v []*LiveConnectorSourceConfiguration) *CreateMediaLiveConnectorPipelineInput { s.Sources = v return s } -// SetTags sets the Tags field's value. -func (s *CreateMediaConcatenationPipelineInput) SetTags(v []*Tag) *CreateMediaConcatenationPipelineInput { - s.Tags = v +// SetTags sets the Tags field's value. +func (s *CreateMediaLiveConnectorPipelineInput) SetTags(v []*Tag) *CreateMediaLiveConnectorPipelineInput { + s.Tags = v + return s +} + +type CreateMediaLiveConnectorPipelineOutput struct { + _ struct{} `type:"structure"` + + // The new media live connector pipeline. + MediaLiveConnectorPipeline *MediaLiveConnectorPipeline `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 CreateMediaLiveConnectorPipelineOutput) 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 CreateMediaLiveConnectorPipelineOutput) GoString() string { + return s.String() +} + +// SetMediaLiveConnectorPipeline sets the MediaLiveConnectorPipeline field's value. +func (s *CreateMediaLiveConnectorPipelineOutput) SetMediaLiveConnectorPipeline(v *MediaLiveConnectorPipeline) *CreateMediaLiveConnectorPipelineOutput { + s.MediaLiveConnectorPipeline = v + return s +} + +// The content configuration object's data channel. +type DataChannelConcatenationConfiguration struct { + _ struct{} `type:"structure"` + + // Enables or disables the configuration object. + // + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` +} + +// 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 DataChannelConcatenationConfiguration) 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 DataChannelConcatenationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DataChannelConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DataChannelConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetState sets the State field's value. +func (s *DataChannelConcatenationConfiguration) SetState(v string) *DataChannelConcatenationConfiguration { + s.State = &v + return s +} + +type DeleteMediaCapturePipelineInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the media pipeline being deleted. + // + // MediaPipelineId is a required field + MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" 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 DeleteMediaCapturePipelineInput) 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 DeleteMediaCapturePipelineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMediaCapturePipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMediaCapturePipelineInput"} + if s.MediaPipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) + } + if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *DeleteMediaCapturePipelineInput) SetMediaPipelineId(v string) *DeleteMediaCapturePipelineInput { + s.MediaPipelineId = &v + return s +} + +type DeleteMediaCapturePipelineOutput 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 DeleteMediaCapturePipelineOutput) 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 DeleteMediaCapturePipelineOutput) GoString() string { + return s.String() +} + +type DeleteMediaInsightsPipelineConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the resource to be deleted. Valid values include + // the name and ARN of the media insights pipeline configuration. + // + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" 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 DeleteMediaInsightsPipelineConfigurationInput) 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 DeleteMediaInsightsPipelineConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMediaInsightsPipelineConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMediaInsightsPipelineConfigurationInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentifier sets the Identifier field's value. +func (s *DeleteMediaInsightsPipelineConfigurationInput) SetIdentifier(v string) *DeleteMediaInsightsPipelineConfigurationInput { + s.Identifier = &v return s } -type CreateMediaConcatenationPipelineOutput struct { +type DeleteMediaInsightsPipelineConfigurationOutput struct { _ struct{} `type:"structure"` - - // A media concatenation pipeline object, the ID, source type, MediaPipelineARN, - // and sink of a media concatenation pipeline object. - MediaConcatenationPipeline *MediaConcatenationPipeline `type:"structure"` } // String returns the string representation. @@ -4073,7 +5402,7 @@ type CreateMediaConcatenationPipelineOutput 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 CreateMediaConcatenationPipelineOutput) String() string { +func (s DeleteMediaInsightsPipelineConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -4082,53 +5411,17 @@ func (s CreateMediaConcatenationPipelineOutput) 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 CreateMediaConcatenationPipelineOutput) GoString() string { +func (s DeleteMediaInsightsPipelineConfigurationOutput) GoString() string { return s.String() } -// SetMediaConcatenationPipeline sets the MediaConcatenationPipeline field's value. -func (s *CreateMediaConcatenationPipelineOutput) SetMediaConcatenationPipeline(v *MediaConcatenationPipeline) *CreateMediaConcatenationPipelineOutput { - s.MediaConcatenationPipeline = v - return s -} - -type CreateMediaInsightsPipelineConfigurationInput struct { - _ struct{} `type:"structure"` - - // The unique identifier for the media insights pipeline configuration request. - // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineConfigurationInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - - // The elements in the request, such as a processor for Amazon Transcribe or - // a sink for a Kinesis Data Stream. - // - // Elements is a required field - Elements []*MediaInsightsPipelineConfigurationElement `type:"list" required:"true"` - - // The name of the media insights pipeline configuration. - // - // MediaInsightsPipelineConfigurationName is a required field - MediaInsightsPipelineConfigurationName *string `min:"2" type:"string" required:"true"` - - // The configuration settings for the real-time alerts in a media insights pipeline - // configuration. - RealTimeAlertConfiguration *RealTimeAlertConfiguration `type:"structure"` +type DeleteMediaPipelineInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The ARN of the role used by the service to access Amazon Web Services resources, - // including Transcribe and Transcribe Call Analytics, on the caller’s behalf. - // - // ResourceAccessRoleArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineConfigurationInput's - // String and GoString methods. + // The ID of the media pipeline to delete. // - // ResourceAccessRoleArn is a required field - ResourceAccessRoleArn *string `min:"1" type:"string" required:"true" sensitive:"true"` - - // The tags assigned to the media insights pipeline configuration. - Tags []*Tag `min:"1" type:"list"` + // MediaPipelineId is a required field + MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -4136,7 +5429,7 @@ type CreateMediaInsightsPipelineConfigurationInput 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 CreateMediaInsightsPipelineConfigurationInput) String() string { +func (s DeleteMediaPipelineInput) String() string { return awsutil.Prettify(s) } @@ -4145,58 +5438,18 @@ func (s CreateMediaInsightsPipelineConfigurationInput) 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 CreateMediaInsightsPipelineConfigurationInput) GoString() string { +func (s DeleteMediaPipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMediaInsightsPipelineConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMediaInsightsPipelineConfigurationInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) - } - if s.Elements == nil { - invalidParams.Add(request.NewErrParamRequired("Elements")) - } - if s.MediaInsightsPipelineConfigurationName == nil { - invalidParams.Add(request.NewErrParamRequired("MediaInsightsPipelineConfigurationName")) - } - if s.MediaInsightsPipelineConfigurationName != nil && len(*s.MediaInsightsPipelineConfigurationName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("MediaInsightsPipelineConfigurationName", 2)) - } - if s.ResourceAccessRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceAccessRoleArn")) - } - if s.ResourceAccessRoleArn != nil && len(*s.ResourceAccessRoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceAccessRoleArn", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Elements != nil { - for i, v := range s.Elements { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Elements", i), err.(request.ErrInvalidParams)) - } - } - } - if s.RealTimeAlertConfiguration != nil { - if err := s.RealTimeAlertConfiguration.Validate(); err != nil { - invalidParams.AddNested("RealTimeAlertConfiguration", err.(request.ErrInvalidParams)) - } +func (s *DeleteMediaPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMediaPipelineInput"} + if s.MediaPipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) } if invalidParams.Len() > 0 { @@ -4205,47 +5458,45 @@ func (s *CreateMediaInsightsPipelineConfigurationInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMediaInsightsPipelineConfigurationInput) SetClientRequestToken(v string) *CreateMediaInsightsPipelineConfigurationInput { - s.ClientRequestToken = &v +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *DeleteMediaPipelineInput) SetMediaPipelineId(v string) *DeleteMediaPipelineInput { + s.MediaPipelineId = &v return s } -// SetElements sets the Elements field's value. -func (s *CreateMediaInsightsPipelineConfigurationInput) SetElements(v []*MediaInsightsPipelineConfigurationElement) *CreateMediaInsightsPipelineConfigurationInput { - s.Elements = v - return s +type DeleteMediaPipelineOutput struct { + _ struct{} `type:"structure"` } -// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. -func (s *CreateMediaInsightsPipelineConfigurationInput) SetMediaInsightsPipelineConfigurationName(v string) *CreateMediaInsightsPipelineConfigurationInput { - s.MediaInsightsPipelineConfigurationName = &v - return s +// 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 DeleteMediaPipelineOutput) String() string { + return awsutil.Prettify(s) } -// SetRealTimeAlertConfiguration sets the RealTimeAlertConfiguration field's value. -func (s *CreateMediaInsightsPipelineConfigurationInput) SetRealTimeAlertConfiguration(v *RealTimeAlertConfiguration) *CreateMediaInsightsPipelineConfigurationInput { - s.RealTimeAlertConfiguration = v - return 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 DeleteMediaPipelineOutput) GoString() string { + return s.String() } -// SetResourceAccessRoleArn sets the ResourceAccessRoleArn field's value. -func (s *CreateMediaInsightsPipelineConfigurationInput) SetResourceAccessRoleArn(v string) *CreateMediaInsightsPipelineConfigurationInput { - s.ResourceAccessRoleArn = &v - return s -} +// The client is permanently forbidden from making the request. +type ForbiddenException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` -// SetTags sets the Tags field's value. -func (s *CreateMediaInsightsPipelineConfigurationInput) SetTags(v []*Tag) *CreateMediaInsightsPipelineConfigurationInput { - s.Tags = v - return s -} + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` -type CreateMediaInsightsPipelineConfigurationOutput struct { - _ struct{} `type:"structure"` + Message_ *string `locationName:"Message" type:"string"` - // The configuration settings for the media insights pipeline. - MediaInsightsPipelineConfiguration *MediaInsightsPipelineConfiguration `type:"structure"` + // The request id associated with the call responsible for the exception. + RequestId *string `type:"string"` } // String returns the string representation. @@ -4253,7 +5504,7 @@ type CreateMediaInsightsPipelineConfigurationOutput 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 CreateMediaInsightsPipelineConfigurationOutput) String() string { +func (s ForbiddenException) String() string { return awsutil.Prettify(s) } @@ -4262,56 +5513,78 @@ func (s CreateMediaInsightsPipelineConfigurationOutput) 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 CreateMediaInsightsPipelineConfigurationOutput) GoString() string { +func (s ForbiddenException) GoString() string { return s.String() } -// SetMediaInsightsPipelineConfiguration sets the MediaInsightsPipelineConfiguration field's value. -func (s *CreateMediaInsightsPipelineConfigurationOutput) SetMediaInsightsPipelineConfiguration(v *MediaInsightsPipelineConfiguration) *CreateMediaInsightsPipelineConfigurationOutput { - s.MediaInsightsPipelineConfiguration = v - return s +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + RespMetadata: v, + } } -type CreateMediaInsightsPipelineInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s *ForbiddenException) Code() string { + return "ForbiddenException" +} - // The unique identifier for the media insights pipeline request. - // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` +// Message returns the exception's message. +func (s *ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The runtime configuration for the Kinesis video recording stream source. - KinesisVideoStreamRecordingSourceRuntimeConfiguration *KinesisVideoStreamRecordingSourceRuntimeConfiguration `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ForbiddenException) OrigErr() error { + return nil +} - // The runtime configuration for the Kinesis video stream source of the media - // insights pipeline. - KinesisVideoStreamSourceRuntimeConfiguration *KinesisVideoStreamSourceRuntimeConfiguration `type:"structure"` +func (s *ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} - // The ARN of the pipeline's configuration. - // - // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's - // String and GoString methods. - // - // MediaInsightsPipelineConfigurationArn is a required field - MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" required:"true" sensitive:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s *ForbiddenException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ForbiddenException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Describes the timestamp range and timestamp origin of a range of fragments. +// +// Only fragments with a start timestamp greater than or equal to the given +// start time and less than or equal to the end time are returned. For example, +// say a stream contains fragments with the following start timestamps: +// +// - 00:00:00 +// +// - 00:00:02 +// +// - 00:00:04 +// +// - 00:00:06 +// +// A fragment selector range with a start time of 00:00:01 and end time of 00:00:04 +// would return the fragments with start times of 00:00:02 and 00:00:04. +type FragmentSelector struct { + _ struct{} `type:"structure"` - // The runtime metadata for the media insights pipeline. Consists of a key-value - // map of strings. + // The origin of the timestamps to use, Server or Producer. For more information, + // see StartSelectorType (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_dataplane_StartSelector.html) + // in the Amazon Kinesis Video Streams Developer Guide. // - // MediaInsightsRuntimeMetadata is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's - // String and GoString methods. - MediaInsightsRuntimeMetadata map[string]*string `type:"map" sensitive:"true"` - - // The runtime configuration for the S3 recording sink. If specified, the settings - // in this structure override any settings in S3RecordingSinkConfiguration. - S3RecordingSinkRuntimeConfiguration *S3RecordingSinkRuntimeConfiguration `type:"structure"` + // FragmentSelectorType is a required field + FragmentSelectorType *string `type:"string" required:"true" enum:"FragmentSelectorType"` - // The tags assigned to the media insights pipeline. - Tags []*Tag `min:"1" type:"list"` + // The range of timestamps to return. + // + // TimestampRange is a required field + TimestampRange *TimestampRange `type:"structure" required:"true"` } // String returns the string representation. @@ -4319,7 +5592,7 @@ type CreateMediaInsightsPipelineInput 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 CreateMediaInsightsPipelineInput) String() string { +func (s FragmentSelector) String() string { return awsutil.Prettify(s) } @@ -4328,48 +5601,22 @@ func (s CreateMediaInsightsPipelineInput) 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 CreateMediaInsightsPipelineInput) GoString() string { +func (s FragmentSelector) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMediaInsightsPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMediaInsightsPipelineInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) - } - if s.MediaInsightsPipelineConfigurationArn == nil { - invalidParams.Add(request.NewErrParamRequired("MediaInsightsPipelineConfigurationArn")) - } - if s.MediaInsightsPipelineConfigurationArn != nil && len(*s.MediaInsightsPipelineConfigurationArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MediaInsightsPipelineConfigurationArn", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.KinesisVideoStreamRecordingSourceRuntimeConfiguration != nil { - if err := s.KinesisVideoStreamRecordingSourceRuntimeConfiguration.Validate(); err != nil { - invalidParams.AddNested("KinesisVideoStreamRecordingSourceRuntimeConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.KinesisVideoStreamSourceRuntimeConfiguration != nil { - if err := s.KinesisVideoStreamSourceRuntimeConfiguration.Validate(); err != nil { - invalidParams.AddNested("KinesisVideoStreamSourceRuntimeConfiguration", err.(request.ErrInvalidParams)) - } +func (s *FragmentSelector) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FragmentSelector"} + if s.FragmentSelectorType == nil { + invalidParams.Add(request.NewErrParamRequired("FragmentSelectorType")) } - if s.S3RecordingSinkRuntimeConfiguration != nil { - if err := s.S3RecordingSinkRuntimeConfiguration.Validate(); err != nil { - invalidParams.AddNested("S3RecordingSinkRuntimeConfiguration", err.(request.ErrInvalidParams)) - } + if s.TimestampRange == nil { + invalidParams.Add(request.NewErrParamRequired("TimestampRange")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } + if s.TimestampRange != nil { + if err := s.TimestampRange.Validate(); err != nil { + invalidParams.AddNested("TimestampRange", err.(request.ErrInvalidParams)) } } @@ -4379,55 +5626,72 @@ func (s *CreateMediaInsightsPipelineInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMediaInsightsPipelineInput) SetClientRequestToken(v string) *CreateMediaInsightsPipelineInput { - s.ClientRequestToken = &v +// SetFragmentSelectorType sets the FragmentSelectorType field's value. +func (s *FragmentSelector) SetFragmentSelectorType(v string) *FragmentSelector { + s.FragmentSelectorType = &v return s } -// SetKinesisVideoStreamRecordingSourceRuntimeConfiguration sets the KinesisVideoStreamRecordingSourceRuntimeConfiguration field's value. -func (s *CreateMediaInsightsPipelineInput) SetKinesisVideoStreamRecordingSourceRuntimeConfiguration(v *KinesisVideoStreamRecordingSourceRuntimeConfiguration) *CreateMediaInsightsPipelineInput { - s.KinesisVideoStreamRecordingSourceRuntimeConfiguration = v +// SetTimestampRange sets the TimestampRange field's value. +func (s *FragmentSelector) SetTimestampRange(v *TimestampRange) *FragmentSelector { + s.TimestampRange = v return s } -// SetKinesisVideoStreamSourceRuntimeConfiguration sets the KinesisVideoStreamSourceRuntimeConfiguration field's value. -func (s *CreateMediaInsightsPipelineInput) SetKinesisVideoStreamSourceRuntimeConfiguration(v *KinesisVideoStreamSourceRuntimeConfiguration) *CreateMediaInsightsPipelineInput { - s.KinesisVideoStreamSourceRuntimeConfiguration = v - return s +type GetMediaCapturePipelineInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the pipeline that you want to get. + // + // MediaPipelineId is a required field + MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` } -// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. -func (s *CreateMediaInsightsPipelineInput) SetMediaInsightsPipelineConfigurationArn(v string) *CreateMediaInsightsPipelineInput { - s.MediaInsightsPipelineConfigurationArn = &v - return s +// 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 GetMediaCapturePipelineInput) String() string { + return awsutil.Prettify(s) } -// SetMediaInsightsRuntimeMetadata sets the MediaInsightsRuntimeMetadata field's value. -func (s *CreateMediaInsightsPipelineInput) SetMediaInsightsRuntimeMetadata(v map[string]*string) *CreateMediaInsightsPipelineInput { - s.MediaInsightsRuntimeMetadata = v - return 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 GetMediaCapturePipelineInput) GoString() string { + return s.String() } -// SetS3RecordingSinkRuntimeConfiguration sets the S3RecordingSinkRuntimeConfiguration field's value. -func (s *CreateMediaInsightsPipelineInput) SetS3RecordingSinkRuntimeConfiguration(v *S3RecordingSinkRuntimeConfiguration) *CreateMediaInsightsPipelineInput { - s.S3RecordingSinkRuntimeConfiguration = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMediaCapturePipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMediaCapturePipelineInput"} + if s.MediaPipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) + } + if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetTags sets the Tags field's value. -func (s *CreateMediaInsightsPipelineInput) SetTags(v []*Tag) *CreateMediaInsightsPipelineInput { - s.Tags = v +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *GetMediaCapturePipelineInput) SetMediaPipelineId(v string) *GetMediaCapturePipelineInput { + s.MediaPipelineId = &v return s } -type CreateMediaInsightsPipelineOutput struct { +type GetMediaCapturePipelineOutput struct { _ struct{} `type:"structure"` - // The media insights pipeline object. - // - // MediaInsightsPipeline is a required field - MediaInsightsPipeline *MediaInsightsPipeline `type:"structure" required:"true"` + // The media pipeline object. + MediaCapturePipeline *MediaCapturePipeline `type:"structure"` } // String returns the string representation. @@ -4435,7 +5699,7 @@ type CreateMediaInsightsPipelineOutput 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 CreateMediaInsightsPipelineOutput) String() string { +func (s GetMediaCapturePipelineOutput) String() string { return awsutil.Prettify(s) } @@ -4444,38 +5708,24 @@ func (s CreateMediaInsightsPipelineOutput) 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 CreateMediaInsightsPipelineOutput) GoString() string { +func (s GetMediaCapturePipelineOutput) GoString() string { return s.String() } -// SetMediaInsightsPipeline sets the MediaInsightsPipeline field's value. -func (s *CreateMediaInsightsPipelineOutput) SetMediaInsightsPipeline(v *MediaInsightsPipeline) *CreateMediaInsightsPipelineOutput { - s.MediaInsightsPipeline = v +// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. +func (s *GetMediaCapturePipelineOutput) SetMediaCapturePipeline(v *MediaCapturePipeline) *GetMediaCapturePipelineOutput { + s.MediaCapturePipeline = v return s } -type CreateMediaLiveConnectorPipelineInput struct { - _ struct{} `type:"structure"` - - // The token assigned to the client making the request. - // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaLiveConnectorPipelineInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - - // The media live connector pipeline's data sinks. - // - // Sinks is a required field - Sinks []*LiveConnectorSinkConfiguration `min:"1" type:"list" required:"true"` +type GetMediaInsightsPipelineConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The media live connector pipeline's data sources. + // The unique identifier of the requested resource. Valid values include the + // name and ARN of the media insights pipeline configuration. // - // Sources is a required field - Sources []*LiveConnectorSourceConfiguration `min:"1" type:"list" required:"true"` - - // The tags associated with the media live connector pipeline. - Tags []*Tag `min:"1" type:"list"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` } // String returns the string representation. @@ -4483,7 +5733,7 @@ type CreateMediaLiveConnectorPipelineInput 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 CreateMediaLiveConnectorPipelineInput) String() string { +func (s GetMediaInsightsPipelineConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -4492,97 +5742,37 @@ func (s CreateMediaLiveConnectorPipelineInput) 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 CreateMediaLiveConnectorPipelineInput) GoString() string { +func (s GetMediaInsightsPipelineConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMediaLiveConnectorPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMediaLiveConnectorPipelineInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) - } - if s.Sinks == nil { - invalidParams.Add(request.NewErrParamRequired("Sinks")) - } - if s.Sinks != nil && len(s.Sinks) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Sinks", 1)) - } - if s.Sources == nil { - invalidParams.Add(request.NewErrParamRequired("Sources")) - } - if s.Sources != nil && len(s.Sources) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Sources", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Sinks != nil { - for i, v := range s.Sinks { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sinks", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Sources != nil { - for i, v := range s.Sources { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMediaLiveConnectorPipelineInput) SetClientRequestToken(v string) *CreateMediaLiveConnectorPipelineInput { - s.ClientRequestToken = &v - return s -} - -// SetSinks sets the Sinks field's value. -func (s *CreateMediaLiveConnectorPipelineInput) SetSinks(v []*LiveConnectorSinkConfiguration) *CreateMediaLiveConnectorPipelineInput { - s.Sinks = v - return s -} +func (s *GetMediaInsightsPipelineConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMediaInsightsPipelineConfigurationInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } -// SetSources sets the Sources field's value. -func (s *CreateMediaLiveConnectorPipelineInput) SetSources(v []*LiveConnectorSourceConfiguration) *CreateMediaLiveConnectorPipelineInput { - s.Sources = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetTags sets the Tags field's value. -func (s *CreateMediaLiveConnectorPipelineInput) SetTags(v []*Tag) *CreateMediaLiveConnectorPipelineInput { - s.Tags = v +// SetIdentifier sets the Identifier field's value. +func (s *GetMediaInsightsPipelineConfigurationInput) SetIdentifier(v string) *GetMediaInsightsPipelineConfigurationInput { + s.Identifier = &v return s } -type CreateMediaLiveConnectorPipelineOutput struct { +type GetMediaInsightsPipelineConfigurationOutput struct { _ struct{} `type:"structure"` - // The new media live connector pipeline. - MediaLiveConnectorPipeline *MediaLiveConnectorPipeline `type:"structure"` + // The requested media insights pipeline configuration. + MediaInsightsPipelineConfiguration *MediaInsightsPipelineConfiguration `type:"structure"` } // String returns the string representation. @@ -4590,7 +5780,7 @@ type CreateMediaLiveConnectorPipelineOutput 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 CreateMediaLiveConnectorPipelineOutput) String() string { +func (s GetMediaInsightsPipelineConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -4599,24 +5789,23 @@ func (s CreateMediaLiveConnectorPipelineOutput) 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 CreateMediaLiveConnectorPipelineOutput) GoString() string { +func (s GetMediaInsightsPipelineConfigurationOutput) GoString() string { return s.String() } -// SetMediaLiveConnectorPipeline sets the MediaLiveConnectorPipeline field's value. -func (s *CreateMediaLiveConnectorPipelineOutput) SetMediaLiveConnectorPipeline(v *MediaLiveConnectorPipeline) *CreateMediaLiveConnectorPipelineOutput { - s.MediaLiveConnectorPipeline = v +// SetMediaInsightsPipelineConfiguration sets the MediaInsightsPipelineConfiguration field's value. +func (s *GetMediaInsightsPipelineConfigurationOutput) SetMediaInsightsPipelineConfiguration(v *MediaInsightsPipelineConfiguration) *GetMediaInsightsPipelineConfigurationOutput { + s.MediaInsightsPipelineConfiguration = v return s } -// The content configuration object's data channel. -type DataChannelConcatenationConfiguration struct { - _ struct{} `type:"structure"` +type GetMediaPipelineInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // Enables or disables the configuration object. + // The ID of the pipeline that you want to get. // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` + // MediaPipelineId is a required field + MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -4624,7 +5813,7 @@ type DataChannelConcatenationConfiguration 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 DataChannelConcatenationConfiguration) String() string { +func (s GetMediaPipelineInput) String() string { return awsutil.Prettify(s) } @@ -4633,15 +5822,18 @@ func (s DataChannelConcatenationConfiguration) 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 DataChannelConcatenationConfiguration) GoString() string { +func (s GetMediaPipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DataChannelConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DataChannelConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +func (s *GetMediaPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMediaPipelineInput"} + if s.MediaPipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) + } + if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) } if invalidParams.Len() > 0 { @@ -4650,19 +5842,56 @@ func (s *DataChannelConcatenationConfiguration) Validate() error { return nil } -// SetState sets the State field's value. -func (s *DataChannelConcatenationConfiguration) SetState(v string) *DataChannelConcatenationConfiguration { - s.State = &v +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *GetMediaPipelineInput) SetMediaPipelineId(v string) *GetMediaPipelineInput { + s.MediaPipelineId = &v return s } -type DeleteMediaCapturePipelineInput struct { +type GetMediaPipelineOutput struct { + _ struct{} `type:"structure"` + + // The media pipeline object. + MediaPipeline *MediaPipeline `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 GetMediaPipelineOutput) 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 GetMediaPipelineOutput) GoString() string { + return s.String() +} + +// SetMediaPipeline sets the MediaPipeline field's value. +func (s *GetMediaPipelineOutput) SetMediaPipeline(v *MediaPipeline) *GetMediaPipelineOutput { + s.MediaPipeline = v + return s +} + +type GetSpeakerSearchTaskInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the media pipeline being deleted. + // The unique identifier of the resource to be updated. Valid values include + // the ID and ARN of the media insights pipeline. // - // MediaPipelineId is a required field - MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` + + // The ID of the speaker search task. + // + // SpeakerSearchTaskId is a required field + SpeakerSearchTaskId *string `location:"uri" locationName:"speakerSearchTaskId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -4670,7 +5899,7 @@ type DeleteMediaCapturePipelineInput 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 DeleteMediaCapturePipelineInput) String() string { +func (s GetSpeakerSearchTaskInput) String() string { return awsutil.Prettify(s) } @@ -4679,18 +5908,24 @@ func (s DeleteMediaCapturePipelineInput) 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 DeleteMediaCapturePipelineInput) GoString() string { +func (s GetSpeakerSearchTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMediaCapturePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMediaCapturePipelineInput"} - if s.MediaPipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) +func (s *GetSpeakerSearchTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSpeakerSearchTaskInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) } - if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.SpeakerSearchTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("SpeakerSearchTaskId")) + } + if s.SpeakerSearchTaskId != nil && len(*s.SpeakerSearchTaskId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("SpeakerSearchTaskId", 36)) } if invalidParams.Len() > 0 { @@ -4699,14 +5934,23 @@ func (s *DeleteMediaCapturePipelineInput) Validate() error { return nil } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *DeleteMediaCapturePipelineInput) SetMediaPipelineId(v string) *DeleteMediaCapturePipelineInput { - s.MediaPipelineId = &v +// SetIdentifier sets the Identifier field's value. +func (s *GetSpeakerSearchTaskInput) SetIdentifier(v string) *GetSpeakerSearchTaskInput { + s.Identifier = &v return s } -type DeleteMediaCapturePipelineOutput struct { +// SetSpeakerSearchTaskId sets the SpeakerSearchTaskId field's value. +func (s *GetSpeakerSearchTaskInput) SetSpeakerSearchTaskId(v string) *GetSpeakerSearchTaskInput { + s.SpeakerSearchTaskId = &v + return s +} + +type GetSpeakerSearchTaskOutput struct { _ struct{} `type:"structure"` + + // The details of the speaker search task. + SpeakerSearchTask *SpeakerSearchTask `type:"structure"` } // String returns the string representation. @@ -4714,7 +5958,7 @@ type DeleteMediaCapturePipelineOutput 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 DeleteMediaCapturePipelineOutput) String() string { +func (s GetSpeakerSearchTaskOutput) String() string { return awsutil.Prettify(s) } @@ -4723,18 +5967,29 @@ func (s DeleteMediaCapturePipelineOutput) 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 DeleteMediaCapturePipelineOutput) GoString() string { +func (s GetSpeakerSearchTaskOutput) GoString() string { return s.String() } -type DeleteMediaInsightsPipelineConfigurationInput struct { +// SetSpeakerSearchTask sets the SpeakerSearchTask field's value. +func (s *GetSpeakerSearchTaskOutput) SetSpeakerSearchTask(v *SpeakerSearchTask) *GetSpeakerSearchTaskOutput { + s.SpeakerSearchTask = v + return s +} + +type GetVoiceToneAnalysisTaskInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The unique identifier of the resource to be deleted. Valid values include - // the name and ARN of the media insights pipeline configuration. + // The unique identifier of the resource to be updated. Valid values include + // the ID and ARN of the media insights pipeline. // // Identifier is a required field Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` + + // The ID of the voice tone anlysis task. + // + // VoiceToneAnalysisTaskId is a required field + VoiceToneAnalysisTaskId *string `location:"uri" locationName:"voiceToneAnalysisTaskId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -4742,7 +5997,7 @@ type DeleteMediaInsightsPipelineConfigurationInput 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 DeleteMediaInsightsPipelineConfigurationInput) String() string { +func (s GetVoiceToneAnalysisTaskInput) String() string { return awsutil.Prettify(s) } @@ -4751,19 +6006,25 @@ func (s DeleteMediaInsightsPipelineConfigurationInput) 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 DeleteMediaInsightsPipelineConfigurationInput) GoString() string { +func (s GetVoiceToneAnalysisTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMediaInsightsPipelineConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMediaInsightsPipelineConfigurationInput"} +func (s *GetVoiceToneAnalysisTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceToneAnalysisTaskInput"} if s.Identifier == nil { invalidParams.Add(request.NewErrParamRequired("Identifier")) } if s.Identifier != nil && len(*s.Identifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) } + if s.VoiceToneAnalysisTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceToneAnalysisTaskId")) + } + if s.VoiceToneAnalysisTaskId != nil && len(*s.VoiceToneAnalysisTaskId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("VoiceToneAnalysisTaskId", 36)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4772,13 +6033,22 @@ func (s *DeleteMediaInsightsPipelineConfigurationInput) Validate() error { } // SetIdentifier sets the Identifier field's value. -func (s *DeleteMediaInsightsPipelineConfigurationInput) SetIdentifier(v string) *DeleteMediaInsightsPipelineConfigurationInput { +func (s *GetVoiceToneAnalysisTaskInput) SetIdentifier(v string) *GetVoiceToneAnalysisTaskInput { s.Identifier = &v return s } -type DeleteMediaInsightsPipelineConfigurationOutput struct { +// SetVoiceToneAnalysisTaskId sets the VoiceToneAnalysisTaskId field's value. +func (s *GetVoiceToneAnalysisTaskInput) SetVoiceToneAnalysisTaskId(v string) *GetVoiceToneAnalysisTaskInput { + s.VoiceToneAnalysisTaskId = &v + return s +} + +type GetVoiceToneAnalysisTaskOutput struct { _ struct{} `type:"structure"` + + // The details of the voice tone analysis task. + VoiceToneAnalysisTask *VoiceToneAnalysisTask `type:"structure"` } // String returns the string representation. @@ -4786,7 +6056,7 @@ type DeleteMediaInsightsPipelineConfigurationOutput 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 DeleteMediaInsightsPipelineConfigurationOutput) String() string { +func (s GetVoiceToneAnalysisTaskOutput) String() string { return awsutil.Prettify(s) } @@ -4795,17 +6065,42 @@ func (s DeleteMediaInsightsPipelineConfigurationOutput) 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 DeleteMediaInsightsPipelineConfigurationOutput) GoString() string { +func (s GetVoiceToneAnalysisTaskOutput) GoString() string { return s.String() } -type DeleteMediaPipelineInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetVoiceToneAnalysisTask sets the VoiceToneAnalysisTask field's value. +func (s *GetVoiceToneAnalysisTaskOutput) SetVoiceToneAnalysisTask(v *VoiceToneAnalysisTask) *GetVoiceToneAnalysisTaskOutput { + s.VoiceToneAnalysisTask = v + return s +} - // The ID of the media pipeline to delete. +// Specifies the type of grid layout. +type GridViewConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration settings for an ActiveSpeakerOnly video tile. + ActiveSpeakerOnlyConfiguration *ActiveSpeakerOnlyConfiguration `type:"structure"` + + // The orientation setting, horizontal or vertical. + CanvasOrientation *string `type:"string" enum:"CanvasOrientation"` + + // Defines the layout of the video tiles when content sharing is enabled. // - // MediaPipelineId is a required field - MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` + // ContentShareLayout is a required field + ContentShareLayout *string `type:"string" required:"true" enum:"ContentShareLayoutOption"` + + // The configuration settings for a horizontal layout. + HorizontalLayoutConfiguration *HorizontalLayoutConfiguration `type:"structure"` + + // Defines the configuration options for a presenter only video tile. + PresenterOnlyConfiguration *PresenterOnlyConfiguration `type:"structure"` + + // The configuration settings for a vertical layout. + VerticalLayoutConfiguration *VerticalLayoutConfiguration `type:"structure"` + + // The attribute settings for the video tiles. + VideoAttribute *VideoAttribute `type:"structure"` } // String returns the string representation. @@ -4813,7 +6108,7 @@ type DeleteMediaPipelineInput 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 DeleteMediaPipelineInput) String() string { +func (s GridViewConfiguration) String() string { return awsutil.Prettify(s) } @@ -4822,18 +6117,30 @@ func (s DeleteMediaPipelineInput) 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 DeleteMediaPipelineInput) GoString() string { +func (s GridViewConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMediaPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMediaPipelineInput"} - if s.MediaPipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) +func (s *GridViewConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GridViewConfiguration"} + if s.ContentShareLayout == nil { + invalidParams.Add(request.NewErrParamRequired("ContentShareLayout")) } - if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + if s.HorizontalLayoutConfiguration != nil { + if err := s.HorizontalLayoutConfiguration.Validate(); err != nil { + invalidParams.AddNested("HorizontalLayoutConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.VerticalLayoutConfiguration != nil { + if err := s.VerticalLayoutConfiguration.Validate(); err != nil { + invalidParams.AddNested("VerticalLayoutConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.VideoAttribute != nil { + if err := s.VideoAttribute.Validate(); err != nil { + invalidParams.AddNested("VideoAttribute", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -4842,45 +6149,63 @@ func (s *DeleteMediaPipelineInput) Validate() error { return nil } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *DeleteMediaPipelineInput) SetMediaPipelineId(v string) *DeleteMediaPipelineInput { - s.MediaPipelineId = &v +// SetActiveSpeakerOnlyConfiguration sets the ActiveSpeakerOnlyConfiguration field's value. +func (s *GridViewConfiguration) SetActiveSpeakerOnlyConfiguration(v *ActiveSpeakerOnlyConfiguration) *GridViewConfiguration { + s.ActiveSpeakerOnlyConfiguration = v return s } -type DeleteMediaPipelineOutput struct { - _ struct{} `type:"structure"` +// SetCanvasOrientation sets the CanvasOrientation field's value. +func (s *GridViewConfiguration) SetCanvasOrientation(v string) *GridViewConfiguration { + s.CanvasOrientation = &v + return s } -// 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 DeleteMediaPipelineOutput) String() string { - return awsutil.Prettify(s) +// SetContentShareLayout sets the ContentShareLayout field's value. +func (s *GridViewConfiguration) SetContentShareLayout(v string) *GridViewConfiguration { + s.ContentShareLayout = &v + return s +} + +// SetHorizontalLayoutConfiguration sets the HorizontalLayoutConfiguration field's value. +func (s *GridViewConfiguration) SetHorizontalLayoutConfiguration(v *HorizontalLayoutConfiguration) *GridViewConfiguration { + s.HorizontalLayoutConfiguration = v + return s +} + +// SetPresenterOnlyConfiguration sets the PresenterOnlyConfiguration field's value. +func (s *GridViewConfiguration) SetPresenterOnlyConfiguration(v *PresenterOnlyConfiguration) *GridViewConfiguration { + s.PresenterOnlyConfiguration = v + return s +} + +// SetVerticalLayoutConfiguration sets the VerticalLayoutConfiguration field's value. +func (s *GridViewConfiguration) SetVerticalLayoutConfiguration(v *VerticalLayoutConfiguration) *GridViewConfiguration { + s.VerticalLayoutConfiguration = v + return 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 DeleteMediaPipelineOutput) GoString() string { - return s.String() +// SetVideoAttribute sets the VideoAttribute field's value. +func (s *GridViewConfiguration) SetVideoAttribute(v *VideoAttribute) *GridViewConfiguration { + s.VideoAttribute = v + return s } -// The client is permanently forbidden from making the request. -type ForbiddenException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// Defines the configuration settings for the horizontal layout. +type HorizontalLayoutConfiguration struct { + _ struct{} `type:"structure"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // Sets the aspect ratio of the video tiles, such as 16:9. + TileAspectRatio *string `type:"string"` - Message_ *string `locationName:"Message" type:"string"` + // The maximum number of video tiles to display. + TileCount *int64 `min:"1" type:"integer"` - // The request id associated with the call responsible for the exception. - RequestId *string `type:"string"` + // Sets the automatic ordering of the video tiles. + TileOrder *string `type:"string" enum:"TileOrder"` + + // Sets the position of horizontal tiles. + TilePosition *string `type:"string" enum:"HorizontalTilePosition"` } // String returns the string representation. @@ -4888,7 +6213,7 @@ type ForbiddenException 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 ForbiddenException) String() string { +func (s HorizontalLayoutConfiguration) String() string { return awsutil.Prettify(s) } @@ -4897,78 +6222,56 @@ func (s ForbiddenException) 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 ForbiddenException) GoString() string { +func (s HorizontalLayoutConfiguration) GoString() string { return s.String() } -func newErrorForbiddenException(v protocol.ResponseMetadata) error { - return &ForbiddenException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *HorizontalLayoutConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HorizontalLayoutConfiguration"} + if s.TileCount != nil && *s.TileCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("TileCount", 1)) } -} - -// Code returns the exception type name. -func (s *ForbiddenException) Code() string { - return "ForbiddenException" -} -// Message returns the exception's message. -func (s *ForbiddenException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ForbiddenException) OrigErr() error { - return nil +// SetTileAspectRatio sets the TileAspectRatio field's value. +func (s *HorizontalLayoutConfiguration) SetTileAspectRatio(v string) *HorizontalLayoutConfiguration { + s.TileAspectRatio = &v + return s } -func (s *ForbiddenException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetTileCount sets the TileCount field's value. +func (s *HorizontalLayoutConfiguration) SetTileCount(v int64) *HorizontalLayoutConfiguration { + s.TileCount = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ForbiddenException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetTileOrder sets the TileOrder field's value. +func (s *HorizontalLayoutConfiguration) SetTileOrder(v string) *HorizontalLayoutConfiguration { + s.TileOrder = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ForbiddenException) RequestID() string { - return s.RespMetadata.RequestID +// SetTilePosition sets the TilePosition field's value. +func (s *HorizontalLayoutConfiguration) SetTilePosition(v string) *HorizontalLayoutConfiguration { + s.TilePosition = &v + return s } -// Describes the timestamp range and timestamp origin of a range of fragments. -// -// Only fragments with a start timestamp greater than or equal to the given -// start time and less than or equal to the end time are returned. For example, -// say a stream contains fragments with the following start timestamps: -// -// - 00:00:00 -// -// - 00:00:02 -// -// - 00:00:04 -// -// - 00:00:06 -// -// A fragment selector range with a start time of 00:00:01 and end time of 00:00:04 -// would return the fragments with start times of 00:00:02 and 00:00:04. -type FragmentSelector struct { +// A structure that contains the configuration settings for an issue detection +// task. +type IssueDetectionConfiguration struct { _ struct{} `type:"structure"` - // The origin of the timestamps to use, Server or Producer. For more information, - // see StartSelectorType (kinesisvideostreams/latest/dg/API_dataplane_StartSelector.html#KinesisVideo-Type-dataplane_StartSelector-StartSelectorType) - // in the Amazon Kinesis Video Streams Developer Guide. - // - // FragmentSelectorType is a required field - FragmentSelectorType *string `type:"string" required:"true" enum:"FragmentSelectorType"` - - // The range of timestamps to return. + // The name of the issue detection rule. // - // TimestampRange is a required field - TimestampRange *TimestampRange `type:"structure" required:"true"` + // RuleName is a required field + RuleName *string `min:"2" type:"string" required:"true"` } // String returns the string representation. @@ -4976,7 +6279,7 @@ type FragmentSelector 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 FragmentSelector) String() string { +func (s IssueDetectionConfiguration) String() string { return awsutil.Prettify(s) } @@ -4985,23 +6288,18 @@ func (s FragmentSelector) 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 FragmentSelector) GoString() string { +func (s IssueDetectionConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *FragmentSelector) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FragmentSelector"} - if s.FragmentSelectorType == nil { - invalidParams.Add(request.NewErrParamRequired("FragmentSelectorType")) - } - if s.TimestampRange == nil { - invalidParams.Add(request.NewErrParamRequired("TimestampRange")) +func (s *IssueDetectionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IssueDetectionConfiguration"} + if s.RuleName == nil { + invalidParams.Add(request.NewErrParamRequired("RuleName")) } - if s.TimestampRange != nil { - if err := s.TimestampRange.Validate(); err != nil { - invalidParams.AddNested("TimestampRange", err.(request.ErrInvalidParams)) - } + if s.RuleName != nil && len(*s.RuleName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) } if invalidParams.Len() > 0 { @@ -5010,25 +6308,30 @@ func (s *FragmentSelector) Validate() error { return nil } -// SetFragmentSelectorType sets the FragmentSelectorType field's value. -func (s *FragmentSelector) SetFragmentSelectorType(v string) *FragmentSelector { - s.FragmentSelectorType = &v +// SetRuleName sets the RuleName field's value. +func (s *IssueDetectionConfiguration) SetRuleName(v string) *IssueDetectionConfiguration { + s.RuleName = &v return s } -// SetTimestampRange sets the TimestampRange field's value. -func (s *FragmentSelector) SetTimestampRange(v *TimestampRange) *FragmentSelector { - s.TimestampRange = v - return s -} +// A structure that contains the settings for a keyword match task. +type KeywordMatchConfiguration struct { + _ struct{} `type:"structure"` -type GetMediaCapturePipelineInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // The keywords or phrases that you want to match. + // + // Keywords is a required field + Keywords []*string `min:"1" type:"list" required:"true"` - // The ID of the pipeline that you want to get. + // Matches keywords or phrases on their presence or absence. If set to TRUE, + // the rule matches when all the specified keywords or phrases are absent. Default: + // FALSE. + Negate *bool `type:"boolean"` + + // The name of the keyword match rule. // - // MediaPipelineId is a required field - MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` + // RuleName is a required field + RuleName *string `min:"2" type:"string" required:"true"` } // String returns the string representation. @@ -5036,7 +6339,7 @@ type GetMediaCapturePipelineInput 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 GetMediaCapturePipelineInput) String() string { +func (s KeywordMatchConfiguration) String() string { return awsutil.Prettify(s) } @@ -5045,18 +6348,24 @@ func (s GetMediaCapturePipelineInput) 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 GetMediaCapturePipelineInput) GoString() string { +func (s KeywordMatchConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetMediaCapturePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMediaCapturePipelineInput"} - if s.MediaPipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) +func (s *KeywordMatchConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KeywordMatchConfiguration"} + if s.Keywords == nil { + invalidParams.Add(request.NewErrParamRequired("Keywords")) } - if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + if s.Keywords != nil && len(s.Keywords) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Keywords", 1)) + } + if s.RuleName == nil { + invalidParams.Add(request.NewErrParamRequired("RuleName")) + } + if s.RuleName != nil && len(*s.RuleName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) } if invalidParams.Len() > 0 { @@ -5065,17 +6374,35 @@ func (s *GetMediaCapturePipelineInput) Validate() error { return nil } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *GetMediaCapturePipelineInput) SetMediaPipelineId(v string) *GetMediaCapturePipelineInput { - s.MediaPipelineId = &v +// SetKeywords sets the Keywords field's value. +func (s *KeywordMatchConfiguration) SetKeywords(v []*string) *KeywordMatchConfiguration { + s.Keywords = v return s } -type GetMediaCapturePipelineOutput struct { +// SetNegate sets the Negate field's value. +func (s *KeywordMatchConfiguration) SetNegate(v bool) *KeywordMatchConfiguration { + s.Negate = &v + return s +} + +// SetRuleName sets the RuleName field's value. +func (s *KeywordMatchConfiguration) SetRuleName(v string) *KeywordMatchConfiguration { + s.RuleName = &v + return s +} + +// A structure that contains the configuration settings for a Kinesis Data Stream +// sink. +type KinesisDataStreamSinkConfiguration struct { _ struct{} `type:"structure"` - // The media pipeline object. - MediaCapturePipeline *MediaCapturePipeline `type:"structure"` + // The ARN of the sink. + // + // InsightsTarget is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by KinesisDataStreamSinkConfiguration's + // String and GoString methods. + InsightsTarget *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -5083,7 +6410,7 @@ type GetMediaCapturePipelineOutput 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 GetMediaCapturePipelineOutput) String() string { +func (s KinesisDataStreamSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -5092,24 +6419,44 @@ func (s GetMediaCapturePipelineOutput) 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 GetMediaCapturePipelineOutput) GoString() string { +func (s KinesisDataStreamSinkConfiguration) GoString() string { return s.String() } -// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. -func (s *GetMediaCapturePipelineOutput) SetMediaCapturePipeline(v *MediaCapturePipeline) *GetMediaCapturePipelineOutput { - s.MediaCapturePipeline = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisDataStreamSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisDataStreamSinkConfiguration"} + if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInsightsTarget sets the InsightsTarget field's value. +func (s *KinesisDataStreamSinkConfiguration) SetInsightsTarget(v string) *KinesisDataStreamSinkConfiguration { + s.InsightsTarget = &v return s } -type GetMediaInsightsPipelineConfigurationInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// A structure that contains the runtime settings for recording a Kinesis video +// stream. +type KinesisVideoStreamRecordingSourceRuntimeConfiguration struct { + _ struct{} `type:"structure"` + + // Describes the timestamp range and timestamp origin of a range of fragments + // in the Kinesis video stream. + // + // FragmentSelector is a required field + FragmentSelector *FragmentSelector `type:"structure" required:"true"` - // The unique identifier of the requested resource. Valid values include the - // name and ARN of the media insights pipeline configuration. + // The stream or streams to be recorded. // - // Identifier is a required field - Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` + // Streams is a required field + Streams []*RecordingStreamConfiguration `min:"2" type:"list" required:"true"` } // String returns the string representation. @@ -5117,7 +6464,7 @@ type GetMediaInsightsPipelineConfigurationInput 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 GetMediaInsightsPipelineConfigurationInput) String() string { +func (s KinesisVideoStreamRecordingSourceRuntimeConfiguration) String() string { return awsutil.Prettify(s) } @@ -5126,18 +6473,36 @@ func (s GetMediaInsightsPipelineConfigurationInput) 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 GetMediaInsightsPipelineConfigurationInput) GoString() string { +func (s KinesisVideoStreamRecordingSourceRuntimeConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetMediaInsightsPipelineConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMediaInsightsPipelineConfigurationInput"} - if s.Identifier == nil { - invalidParams.Add(request.NewErrParamRequired("Identifier")) +func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisVideoStreamRecordingSourceRuntimeConfiguration"} + if s.FragmentSelector == nil { + invalidParams.Add(request.NewErrParamRequired("FragmentSelector")) } - if s.Identifier != nil && len(*s.Identifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + if s.Streams == nil { + invalidParams.Add(request.NewErrParamRequired("Streams")) + } + if s.Streams != nil && len(s.Streams) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Streams", 2)) + } + if s.FragmentSelector != nil { + if err := s.FragmentSelector.Validate(); err != nil { + invalidParams.AddNested("FragmentSelector", err.(request.ErrInvalidParams)) + } + } + if s.Streams != nil { + for i, v := range s.Streams { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Streams", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -5146,17 +6511,45 @@ func (s *GetMediaInsightsPipelineConfigurationInput) Validate() error { return nil } -// SetIdentifier sets the Identifier field's value. -func (s *GetMediaInsightsPipelineConfigurationInput) SetIdentifier(v string) *GetMediaInsightsPipelineConfigurationInput { - s.Identifier = &v +// SetFragmentSelector sets the FragmentSelector field's value. +func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) SetFragmentSelector(v *FragmentSelector) *KinesisVideoStreamRecordingSourceRuntimeConfiguration { + s.FragmentSelector = v return s } -type GetMediaInsightsPipelineConfigurationOutput struct { +// SetStreams sets the Streams field's value. +func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) SetStreams(v []*RecordingStreamConfiguration) *KinesisVideoStreamRecordingSourceRuntimeConfiguration { + s.Streams = v + return s +} + +// The runtime configuration settings for the Kinesis video stream source. +type KinesisVideoStreamSourceRuntimeConfiguration struct { _ struct{} `type:"structure"` - // The requested media insights pipeline configuration. - MediaInsightsPipelineConfiguration *MediaInsightsPipelineConfiguration `type:"structure"` + // Specifies the encoding of your input audio. Supported format: PCM (only signed + // 16-bit little-endian audio formats, which does not include WAV) + // + // For more information, see Media formats (https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio) + // in the Amazon Transcribe Developer Guide. + // + // MediaEncoding is a required field + MediaEncoding *string `type:"string" required:"true" enum:"MediaEncoding"` + + // The sample rate of the input audio (in hertz). Low-quality audio, such as + // telephone audio, is typically around 8,000 Hz. High-quality audio typically + // ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify + // must match that of your audio. + // + // Valid Range: Minimum value of 8000. Maximum value of 48000. + // + // MediaSampleRate is a required field + MediaSampleRate *int64 `min:"8000" type:"integer" required:"true"` + + // The streams in the source runtime configuration of a Kinesis video stream. + // + // Streams is a required field + Streams []*StreamConfiguration `min:"1" type:"list" required:"true"` } // String returns the string representation. @@ -5164,7 +6557,7 @@ type GetMediaInsightsPipelineConfigurationOutput 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 GetMediaInsightsPipelineConfigurationOutput) String() string { +func (s KinesisVideoStreamSourceRuntimeConfiguration) String() string { return awsutil.Prettify(s) } @@ -5173,23 +6566,79 @@ func (s GetMediaInsightsPipelineConfigurationOutput) 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 GetMediaInsightsPipelineConfigurationOutput) GoString() string { +func (s KinesisVideoStreamSourceRuntimeConfiguration) GoString() string { return s.String() } -// SetMediaInsightsPipelineConfiguration sets the MediaInsightsPipelineConfiguration field's value. -func (s *GetMediaInsightsPipelineConfigurationOutput) SetMediaInsightsPipelineConfiguration(v *MediaInsightsPipelineConfiguration) *GetMediaInsightsPipelineConfigurationOutput { - s.MediaInsightsPipelineConfiguration = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisVideoStreamSourceRuntimeConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisVideoStreamSourceRuntimeConfiguration"} + if s.MediaEncoding == nil { + invalidParams.Add(request.NewErrParamRequired("MediaEncoding")) + } + if s.MediaSampleRate == nil { + invalidParams.Add(request.NewErrParamRequired("MediaSampleRate")) + } + if s.MediaSampleRate != nil && *s.MediaSampleRate < 8000 { + invalidParams.Add(request.NewErrParamMinValue("MediaSampleRate", 8000)) + } + if s.Streams == nil { + invalidParams.Add(request.NewErrParamRequired("Streams")) + } + if s.Streams != nil && len(s.Streams) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Streams", 1)) + } + if s.Streams != nil { + for i, v := range s.Streams { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Streams", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMediaEncoding sets the MediaEncoding field's value. +func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetMediaEncoding(v string) *KinesisVideoStreamSourceRuntimeConfiguration { + s.MediaEncoding = &v return s } -type GetMediaPipelineInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetMediaSampleRate sets the MediaSampleRate field's value. +func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetMediaSampleRate(v int64) *KinesisVideoStreamSourceRuntimeConfiguration { + s.MediaSampleRate = &v + return s +} - // The ID of the pipeline that you want to get. +// SetStreams sets the Streams field's value. +func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetStreams(v []*StreamConfiguration) *KinesisVideoStreamSourceRuntimeConfiguration { + s.Streams = v + return s +} + +// The task configuration settings for the Kinesis video stream source. +type KinesisVideoStreamSourceTaskConfiguration struct { + _ struct{} `type:"structure"` + + // The channel ID. // - // MediaPipelineId is a required field - MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` + // ChannelId is a required field + ChannelId *int64 `type:"integer" required:"true"` + + // The unique identifier of the fragment to begin processing. + FragmentNumber *string `min:"1" type:"string"` + + // The ARN of the stream. + // + // StreamArn is a required field + StreamArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5197,7 +6646,7 @@ type GetMediaPipelineInput 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 GetMediaPipelineInput) String() string { +func (s KinesisVideoStreamSourceTaskConfiguration) String() string { return awsutil.Prettify(s) } @@ -5206,18 +6655,24 @@ func (s GetMediaPipelineInput) 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 GetMediaPipelineInput) GoString() string { +func (s KinesisVideoStreamSourceTaskConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetMediaPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMediaPipelineInput"} - if s.MediaPipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) +func (s *KinesisVideoStreamSourceTaskConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisVideoStreamSourceTaskConfiguration"} + if s.ChannelId == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelId")) } - if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + if s.FragmentNumber != nil && len(*s.FragmentNumber) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FragmentNumber", 1)) + } + if s.StreamArn == nil { + invalidParams.Add(request.NewErrParamRequired("StreamArn")) + } + if s.StreamArn != nil && len(*s.StreamArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamArn", 1)) } if invalidParams.Len() > 0 { @@ -5226,17 +6681,35 @@ func (s *GetMediaPipelineInput) Validate() error { return nil } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *GetMediaPipelineInput) SetMediaPipelineId(v string) *GetMediaPipelineInput { - s.MediaPipelineId = &v +// SetChannelId sets the ChannelId field's value. +func (s *KinesisVideoStreamSourceTaskConfiguration) SetChannelId(v int64) *KinesisVideoStreamSourceTaskConfiguration { + s.ChannelId = &v return s } -type GetMediaPipelineOutput struct { +// SetFragmentNumber sets the FragmentNumber field's value. +func (s *KinesisVideoStreamSourceTaskConfiguration) SetFragmentNumber(v string) *KinesisVideoStreamSourceTaskConfiguration { + s.FragmentNumber = &v + return s +} + +// SetStreamArn sets the StreamArn field's value. +func (s *KinesisVideoStreamSourceTaskConfiguration) SetStreamArn(v string) *KinesisVideoStreamSourceTaskConfiguration { + s.StreamArn = &v + return s +} + +// A structure that contains the configuration settings for an AWS Lambda function's +// data sink. +type LambdaFunctionSinkConfiguration struct { _ struct{} `type:"structure"` - // The media pipeline object. - MediaPipeline *MediaPipeline `type:"structure"` + // The ARN of the sink. + // + // InsightsTarget is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by LambdaFunctionSinkConfiguration's + // String and GoString methods. + InsightsTarget *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -5244,7 +6717,7 @@ type GetMediaPipelineOutput 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 GetMediaPipelineOutput) String() string { +func (s LambdaFunctionSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -5253,42 +6726,38 @@ func (s GetMediaPipelineOutput) 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 GetMediaPipelineOutput) GoString() string { +func (s LambdaFunctionSinkConfiguration) GoString() string { return s.String() } -// SetMediaPipeline sets the MediaPipeline field's value. -func (s *GetMediaPipelineOutput) SetMediaPipeline(v *MediaPipeline) *GetMediaPipelineOutput { - s.MediaPipeline = v - return s -} - -// Specifies the type of grid layout. -type GridViewConfiguration struct { - _ struct{} `type:"structure"` - - // The configuration settings for an ActiveSpeakerOnly video tile. - ActiveSpeakerOnlyConfiguration *ActiveSpeakerOnlyConfiguration `type:"structure"` - - // The orientation setting, horizontal or vertical. - CanvasOrientation *string `type:"string" enum:"CanvasOrientation"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *LambdaFunctionSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionSinkConfiguration"} + if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) + } - // Defines the layout of the video tiles when content sharing is enabled. - // - // ContentShareLayout is a required field - ContentShareLayout *string `type:"string" required:"true" enum:"ContentShareLayoutOption"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The configuration settings for a horizontal layout. - HorizontalLayoutConfiguration *HorizontalLayoutConfiguration `type:"structure"` +// SetInsightsTarget sets the InsightsTarget field's value. +func (s *LambdaFunctionSinkConfiguration) SetInsightsTarget(v string) *LambdaFunctionSinkConfiguration { + s.InsightsTarget = &v + return s +} - // Defines the configuration options for a presenter only video tile. - PresenterOnlyConfiguration *PresenterOnlyConfiguration `type:"structure"` +type ListMediaCapturePipelinesInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The configuration settings for a vertical layout. - VerticalLayoutConfiguration *VerticalLayoutConfiguration `type:"structure"` + // The maximum number of results to return in a single call. Valid Range: 1 + // - 99. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // The attribute settings for the video tiles. - VideoAttribute *VideoAttribute `type:"structure"` + // The token used to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -5296,7 +6765,7 @@ type GridViewConfiguration 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 GridViewConfiguration) String() string { +func (s ListMediaCapturePipelinesInput) String() string { return awsutil.Prettify(s) } @@ -5305,30 +6774,15 @@ func (s GridViewConfiguration) 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 GridViewConfiguration) GoString() string { +func (s ListMediaCapturePipelinesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GridViewConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GridViewConfiguration"} - if s.ContentShareLayout == nil { - invalidParams.Add(request.NewErrParamRequired("ContentShareLayout")) - } - if s.HorizontalLayoutConfiguration != nil { - if err := s.HorizontalLayoutConfiguration.Validate(); err != nil { - invalidParams.AddNested("HorizontalLayoutConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.VerticalLayoutConfiguration != nil { - if err := s.VerticalLayoutConfiguration.Validate(); err != nil { - invalidParams.AddNested("VerticalLayoutConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.VideoAttribute != nil { - if err := s.VideoAttribute.Validate(); err != nil { - invalidParams.AddNested("VideoAttribute", err.(request.ErrInvalidParams)) - } +func (s *ListMediaCapturePipelinesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMediaCapturePipelinesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -5337,63 +6791,26 @@ func (s *GridViewConfiguration) Validate() error { return nil } -// SetActiveSpeakerOnlyConfiguration sets the ActiveSpeakerOnlyConfiguration field's value. -func (s *GridViewConfiguration) SetActiveSpeakerOnlyConfiguration(v *ActiveSpeakerOnlyConfiguration) *GridViewConfiguration { - s.ActiveSpeakerOnlyConfiguration = v - return s -} - -// SetCanvasOrientation sets the CanvasOrientation field's value. -func (s *GridViewConfiguration) SetCanvasOrientation(v string) *GridViewConfiguration { - s.CanvasOrientation = &v - return s -} - -// SetContentShareLayout sets the ContentShareLayout field's value. -func (s *GridViewConfiguration) SetContentShareLayout(v string) *GridViewConfiguration { - s.ContentShareLayout = &v - return s -} - -// SetHorizontalLayoutConfiguration sets the HorizontalLayoutConfiguration field's value. -func (s *GridViewConfiguration) SetHorizontalLayoutConfiguration(v *HorizontalLayoutConfiguration) *GridViewConfiguration { - s.HorizontalLayoutConfiguration = v - return s -} - -// SetPresenterOnlyConfiguration sets the PresenterOnlyConfiguration field's value. -func (s *GridViewConfiguration) SetPresenterOnlyConfiguration(v *PresenterOnlyConfiguration) *GridViewConfiguration { - s.PresenterOnlyConfiguration = v - return s -} - -// SetVerticalLayoutConfiguration sets the VerticalLayoutConfiguration field's value. -func (s *GridViewConfiguration) SetVerticalLayoutConfiguration(v *VerticalLayoutConfiguration) *GridViewConfiguration { - s.VerticalLayoutConfiguration = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListMediaCapturePipelinesInput) SetMaxResults(v int64) *ListMediaCapturePipelinesInput { + s.MaxResults = &v return s } -// SetVideoAttribute sets the VideoAttribute field's value. -func (s *GridViewConfiguration) SetVideoAttribute(v *VideoAttribute) *GridViewConfiguration { - s.VideoAttribute = v +// SetNextToken sets the NextToken field's value. +func (s *ListMediaCapturePipelinesInput) SetNextToken(v string) *ListMediaCapturePipelinesInput { + s.NextToken = &v return s } -// Defines the configuration settings for the horizontal layout. -type HorizontalLayoutConfiguration struct { +type ListMediaCapturePipelinesOutput struct { _ struct{} `type:"structure"` - // Sets the aspect ratio of the video tiles, such as 16:9. - TileAspectRatio *string `type:"string"` - - // The maximum number of video tiles to display. - TileCount *int64 `min:"1" type:"integer"` - - // Sets the automatic ordering of the video tiles. - TileOrder *string `type:"string" enum:"TileOrder"` + // The media pipeline objects in the list. + MediaCapturePipelines []*MediaCapturePipelineSummary `type:"list"` - // Sets the position of horizontal tiles. - TilePosition *string `type:"string" enum:"HorizontalTilePosition"` + // The token used to retrieve the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5401,7 +6818,7 @@ type HorizontalLayoutConfiguration 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 HorizontalLayoutConfiguration) String() string { +func (s ListMediaCapturePipelinesOutput) String() string { return awsutil.Prettify(s) } @@ -5410,56 +6827,30 @@ func (s HorizontalLayoutConfiguration) 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 HorizontalLayoutConfiguration) GoString() string { +func (s ListMediaCapturePipelinesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *HorizontalLayoutConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HorizontalLayoutConfiguration"} - if s.TileCount != nil && *s.TileCount < 1 { - invalidParams.Add(request.NewErrParamMinValue("TileCount", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetTileAspectRatio sets the TileAspectRatio field's value. -func (s *HorizontalLayoutConfiguration) SetTileAspectRatio(v string) *HorizontalLayoutConfiguration { - s.TileAspectRatio = &v - return s -} - -// SetTileCount sets the TileCount field's value. -func (s *HorizontalLayoutConfiguration) SetTileCount(v int64) *HorizontalLayoutConfiguration { - s.TileCount = &v +// SetMediaCapturePipelines sets the MediaCapturePipelines field's value. +func (s *ListMediaCapturePipelinesOutput) SetMediaCapturePipelines(v []*MediaCapturePipelineSummary) *ListMediaCapturePipelinesOutput { + s.MediaCapturePipelines = v return s } -// SetTileOrder sets the TileOrder field's value. -func (s *HorizontalLayoutConfiguration) SetTileOrder(v string) *HorizontalLayoutConfiguration { - s.TileOrder = &v +// SetNextToken sets the NextToken field's value. +func (s *ListMediaCapturePipelinesOutput) SetNextToken(v string) *ListMediaCapturePipelinesOutput { + s.NextToken = &v return s } -// SetTilePosition sets the TilePosition field's value. -func (s *HorizontalLayoutConfiguration) SetTilePosition(v string) *HorizontalLayoutConfiguration { - s.TilePosition = &v - return s -} +type ListMediaInsightsPipelineConfigurationsInput struct { + _ struct{} `type:"structure" nopayload:"true"` -// A structure that contains the configuration settings for an issue detection -// task. -type IssueDetectionConfiguration struct { - _ struct{} `type:"structure"` + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // The name of the issue detection rule. - // - // RuleName is a required field - RuleName *string `min:"2" type:"string" required:"true"` + // The token used to return the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -5467,7 +6858,7 @@ type IssueDetectionConfiguration 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 IssueDetectionConfiguration) String() string { +func (s ListMediaInsightsPipelineConfigurationsInput) String() string { return awsutil.Prettify(s) } @@ -5476,18 +6867,15 @@ func (s IssueDetectionConfiguration) 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 IssueDetectionConfiguration) GoString() string { +func (s ListMediaInsightsPipelineConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *IssueDetectionConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IssueDetectionConfiguration"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleName != nil && len(*s.RuleName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) +func (s *ListMediaInsightsPipelineConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMediaInsightsPipelineConfigurationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -5496,30 +6884,26 @@ func (s *IssueDetectionConfiguration) Validate() error { return nil } -// SetRuleName sets the RuleName field's value. -func (s *IssueDetectionConfiguration) SetRuleName(v string) *IssueDetectionConfiguration { - s.RuleName = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListMediaInsightsPipelineConfigurationsInput) SetMaxResults(v int64) *ListMediaInsightsPipelineConfigurationsInput { + s.MaxResults = &v return s } -// A structure that contains the settings for a keyword match task. -type KeywordMatchConfiguration struct { - _ struct{} `type:"structure"` +// SetNextToken sets the NextToken field's value. +func (s *ListMediaInsightsPipelineConfigurationsInput) SetNextToken(v string) *ListMediaInsightsPipelineConfigurationsInput { + s.NextToken = &v + return s +} - // The keywords or phrases that you want to match. - // - // Keywords is a required field - Keywords []*string `min:"1" type:"list" required:"true"` +type ListMediaInsightsPipelineConfigurationsOutput struct { + _ struct{} `type:"structure"` - // Matches keywords or phrases on their presence or absence. If set to TRUE, - // the rule matches when all the specified keywords or phrases are absent. Default: - // FALSE. - Negate *bool `type:"boolean"` + // The requested list of media insights pipeline configurations. + MediaInsightsPipelineConfigurations []*MediaInsightsPipelineConfigurationSummary `type:"list"` - // The name of the keyword match rule. - // - // RuleName is a required field - RuleName *string `min:"2" type:"string" required:"true"` + // The token used to return the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5527,7 +6911,7 @@ type KeywordMatchConfiguration 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 KeywordMatchConfiguration) String() string { +func (s ListMediaInsightsPipelineConfigurationsOutput) String() string { return awsutil.Prettify(s) } @@ -5536,61 +6920,31 @@ func (s KeywordMatchConfiguration) 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 KeywordMatchConfiguration) GoString() string { +func (s ListMediaInsightsPipelineConfigurationsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *KeywordMatchConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KeywordMatchConfiguration"} - if s.Keywords == nil { - invalidParams.Add(request.NewErrParamRequired("Keywords")) - } - if s.Keywords != nil && len(s.Keywords) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Keywords", 1)) - } - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleName != nil && len(*s.RuleName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKeywords sets the Keywords field's value. -func (s *KeywordMatchConfiguration) SetKeywords(v []*string) *KeywordMatchConfiguration { - s.Keywords = v +// SetMediaInsightsPipelineConfigurations sets the MediaInsightsPipelineConfigurations field's value. +func (s *ListMediaInsightsPipelineConfigurationsOutput) SetMediaInsightsPipelineConfigurations(v []*MediaInsightsPipelineConfigurationSummary) *ListMediaInsightsPipelineConfigurationsOutput { + s.MediaInsightsPipelineConfigurations = v return s } -// SetNegate sets the Negate field's value. -func (s *KeywordMatchConfiguration) SetNegate(v bool) *KeywordMatchConfiguration { - s.Negate = &v +// SetNextToken sets the NextToken field's value. +func (s *ListMediaInsightsPipelineConfigurationsOutput) SetNextToken(v string) *ListMediaInsightsPipelineConfigurationsOutput { + s.NextToken = &v return s } -// SetRuleName sets the RuleName field's value. -func (s *KeywordMatchConfiguration) SetRuleName(v string) *KeywordMatchConfiguration { - s.RuleName = &v - return s -} +type ListMediaPipelinesInput struct { + _ struct{} `type:"structure" nopayload:"true"` -// A structure that contains the configuration settings for a Kinesis Data Stream -// sink. -type KinesisDataStreamSinkConfiguration struct { - _ struct{} `type:"structure"` + // The maximum number of results to return in a single call. Valid Range: 1 + // - 99. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // The ARN of the sink. - // - // InsightsTarget is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by KinesisDataStreamSinkConfiguration's - // String and GoString methods. - InsightsTarget *string `min:"1" type:"string" sensitive:"true"` + // The token used to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -5598,7 +6952,7 @@ type KinesisDataStreamSinkConfiguration 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 KinesisDataStreamSinkConfiguration) String() string { +func (s ListMediaPipelinesInput) String() string { return awsutil.Prettify(s) } @@ -5607,15 +6961,15 @@ func (s KinesisDataStreamSinkConfiguration) 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 KinesisDataStreamSinkConfiguration) GoString() string { +func (s ListMediaPipelinesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *KinesisDataStreamSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KinesisDataStreamSinkConfiguration"} - if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) +func (s *ListMediaPipelinesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMediaPipelinesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -5624,27 +6978,26 @@ func (s *KinesisDataStreamSinkConfiguration) Validate() error { return nil } -// SetInsightsTarget sets the InsightsTarget field's value. -func (s *KinesisDataStreamSinkConfiguration) SetInsightsTarget(v string) *KinesisDataStreamSinkConfiguration { - s.InsightsTarget = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListMediaPipelinesInput) SetMaxResults(v int64) *ListMediaPipelinesInput { + s.MaxResults = &v return s } -// A structure that contains the runtime settings for recording a Kinesis video -// stream. -type KinesisVideoStreamRecordingSourceRuntimeConfiguration struct { +// SetNextToken sets the NextToken field's value. +func (s *ListMediaPipelinesInput) SetNextToken(v string) *ListMediaPipelinesInput { + s.NextToken = &v + return s +} + +type ListMediaPipelinesOutput struct { _ struct{} `type:"structure"` - // Describes the timestamp range and timestamp origin of a range of fragments - // in the Kinesis video stream. - // - // FragmentSelector is a required field - FragmentSelector *FragmentSelector `type:"structure" required:"true"` + // The media pipeline objects in the list. + MediaPipelines []*MediaPipelineSummary `type:"list"` - // The stream or streams to be recorded. - // - // Streams is a required field - Streams []*RecordingStreamConfiguration `min:"2" type:"list" required:"true"` + // The token used to retrieve the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5652,7 +7005,7 @@ type KinesisVideoStreamRecordingSourceRuntimeConfiguration 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 KinesisVideoStreamRecordingSourceRuntimeConfiguration) String() string { +func (s ListMediaPipelinesOutput) String() string { return awsutil.Prettify(s) } @@ -5661,83 +7014,30 @@ func (s KinesisVideoStreamRecordingSourceRuntimeConfiguration) 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 KinesisVideoStreamRecordingSourceRuntimeConfiguration) GoString() string { +func (s ListMediaPipelinesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KinesisVideoStreamRecordingSourceRuntimeConfiguration"} - if s.FragmentSelector == nil { - invalidParams.Add(request.NewErrParamRequired("FragmentSelector")) - } - if s.Streams == nil { - invalidParams.Add(request.NewErrParamRequired("Streams")) - } - if s.Streams != nil && len(s.Streams) < 2 { - invalidParams.Add(request.NewErrParamMinLen("Streams", 2)) - } - if s.FragmentSelector != nil { - if err := s.FragmentSelector.Validate(); err != nil { - invalidParams.AddNested("FragmentSelector", err.(request.ErrInvalidParams)) - } - } - if s.Streams != nil { - for i, v := range s.Streams { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Streams", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetFragmentSelector sets the FragmentSelector field's value. -func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) SetFragmentSelector(v *FragmentSelector) *KinesisVideoStreamRecordingSourceRuntimeConfiguration { - s.FragmentSelector = v +// SetMediaPipelines sets the MediaPipelines field's value. +func (s *ListMediaPipelinesOutput) SetMediaPipelines(v []*MediaPipelineSummary) *ListMediaPipelinesOutput { + s.MediaPipelines = v return s } -// SetStreams sets the Streams field's value. -func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) SetStreams(v []*RecordingStreamConfiguration) *KinesisVideoStreamRecordingSourceRuntimeConfiguration { - s.Streams = v +// SetNextToken sets the NextToken field's value. +func (s *ListMediaPipelinesOutput) SetNextToken(v string) *ListMediaPipelinesOutput { + s.NextToken = &v return s } -// The runtime configuration settings for the Kinesis video stream source. -type KinesisVideoStreamSourceRuntimeConfiguration struct { - _ struct{} `type:"structure"` - - // Specifies the encoding of your input audio. Supported format: PCM (only signed - // 16-bit little-endian audio formats, which does not include WAV) - // - // For more information, see Media formats (https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio) - // in the Amazon Transcribe Developer Guide. - // - // MediaEncoding is a required field - MediaEncoding *string `type:"string" required:"true" enum:"MediaEncoding"` - - // The sample rate of the input audio (in hertz). Low-quality audio, such as - // telephone audio, is typically around 8,000 Hz. High-quality audio typically - // ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify - // must match that of your audio. - // - // Valid Range: Minimum value of 8000. Maximum value of 48000. - // - // MediaSampleRate is a required field - MediaSampleRate *int64 `min:"8000" type:"integer" required:"true"` +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The streams in the source runtime configuration of a Kinesis video stream. + // The ARN of the media pipeline associated with any tags. The ARN consists + // of the pipeline's region, resource ID, and pipeline ID. // - // Streams is a required field - Streams []*StreamConfiguration `min:"1" type:"list" required:"true"` + // ResourceARN is a required field + ResourceARN *string `location:"querystring" locationName:"arn" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5745,7 +7045,7 @@ type KinesisVideoStreamSourceRuntimeConfiguration 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 KinesisVideoStreamSourceRuntimeConfiguration) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } @@ -5754,37 +7054,18 @@ func (s KinesisVideoStreamSourceRuntimeConfiguration) 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 KinesisVideoStreamSourceRuntimeConfiguration) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *KinesisVideoStreamSourceRuntimeConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KinesisVideoStreamSourceRuntimeConfiguration"} - if s.MediaEncoding == nil { - invalidParams.Add(request.NewErrParamRequired("MediaEncoding")) - } - if s.MediaSampleRate == nil { - invalidParams.Add(request.NewErrParamRequired("MediaSampleRate")) - } - if s.MediaSampleRate != nil && *s.MediaSampleRate < 8000 { - invalidParams.Add(request.NewErrParamMinValue("MediaSampleRate", 8000)) - } - if s.Streams == nil { - invalidParams.Add(request.NewErrParamRequired("Streams")) - } - if s.Streams != nil && len(s.Streams) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Streams", 1)) +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) } - if s.Streams != nil { - for i, v := range s.Streams { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Streams", i), err.(request.ErrInvalidParams)) - } - } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) } if invalidParams.Len() > 0 { @@ -5793,35 +7074,17 @@ func (s *KinesisVideoStreamSourceRuntimeConfiguration) Validate() error { return nil } -// SetMediaEncoding sets the MediaEncoding field's value. -func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetMediaEncoding(v string) *KinesisVideoStreamSourceRuntimeConfiguration { - s.MediaEncoding = &v - return s -} - -// SetMediaSampleRate sets the MediaSampleRate field's value. -func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetMediaSampleRate(v int64) *KinesisVideoStreamSourceRuntimeConfiguration { - s.MediaSampleRate = &v - return s -} - -// SetStreams sets the Streams field's value. -func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetStreams(v []*StreamConfiguration) *KinesisVideoStreamSourceRuntimeConfiguration { - s.Streams = v +// SetResourceARN sets the ResourceARN field's value. +func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { + s.ResourceARN = &v return s } -// A structure that contains the configuration settings for an AWS Lambda function's -// data sink. -type LambdaFunctionSinkConfiguration struct { +type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` - // The ARN of the sink. - // - // InsightsTarget is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by LambdaFunctionSinkConfiguration's - // String and GoString methods. - InsightsTarget *string `min:"1" type:"string" sensitive:"true"` + // The tags associated with the specified media pipeline. + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation. @@ -5829,7 +7092,7 @@ type LambdaFunctionSinkConfiguration 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 LambdaFunctionSinkConfiguration) String() string { +func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } @@ -5838,38 +7101,34 @@ func (s LambdaFunctionSinkConfiguration) 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 LambdaFunctionSinkConfiguration) GoString() string { +func (s ListTagsForResourceOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LambdaFunctionSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionSinkConfiguration"} - if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetInsightsTarget sets the InsightsTarget field's value. -func (s *LambdaFunctionSinkConfiguration) SetInsightsTarget(v string) *LambdaFunctionSinkConfiguration { - s.InsightsTarget = &v +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v return s } -type ListMediaCapturePipelinesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// The media pipeline's RTMP configuration object. +type LiveConnectorRTMPConfiguration struct { + _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. Valid Range: 1 - // - 99. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The audio channels set for the RTMP configuration + AudioChannels *string `type:"string" enum:"AudioChannelsOption"` - // The token used to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The audio sample rate set for the RTMP configuration. Default: 48000. + AudioSampleRate *string `type:"string"` + + // The URL of the RTMP configuration. + // + // Url is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by LiveConnectorRTMPConfiguration's + // String and GoString methods. + // + // Url is a required field + Url *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -5877,7 +7136,7 @@ type ListMediaCapturePipelinesInput 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 ListMediaCapturePipelinesInput) String() string { +func (s LiveConnectorRTMPConfiguration) String() string { return awsutil.Prettify(s) } @@ -5886,15 +7145,18 @@ func (s ListMediaCapturePipelinesInput) 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 ListMediaCapturePipelinesInput) GoString() string { +func (s LiveConnectorRTMPConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListMediaCapturePipelinesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMediaCapturePipelinesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *LiveConnectorRTMPConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LiveConnectorRTMPConfiguration"} + if s.Url == nil { + invalidParams.Add(request.NewErrParamRequired("Url")) + } + if s.Url != nil && len(*s.Url) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Url", 1)) } if invalidParams.Len() > 0 { @@ -5903,26 +7165,37 @@ func (s *ListMediaCapturePipelinesInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListMediaCapturePipelinesInput) SetMaxResults(v int64) *ListMediaCapturePipelinesInput { - s.MaxResults = &v +// SetAudioChannels sets the AudioChannels field's value. +func (s *LiveConnectorRTMPConfiguration) SetAudioChannels(v string) *LiveConnectorRTMPConfiguration { + s.AudioChannels = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaCapturePipelinesInput) SetNextToken(v string) *ListMediaCapturePipelinesInput { - s.NextToken = &v +// SetAudioSampleRate sets the AudioSampleRate field's value. +func (s *LiveConnectorRTMPConfiguration) SetAudioSampleRate(v string) *LiveConnectorRTMPConfiguration { + s.AudioSampleRate = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *LiveConnectorRTMPConfiguration) SetUrl(v string) *LiveConnectorRTMPConfiguration { + s.Url = &v return s } -type ListMediaCapturePipelinesOutput struct { +// The media pipeline's sink configuration settings. +type LiveConnectorSinkConfiguration struct { _ struct{} `type:"structure"` - // The media pipeline objects in the list. - MediaCapturePipelines []*MediaCapturePipelineSummary `type:"list"` + // The sink configuration's RTMP configuration settings. + // + // RTMPConfiguration is a required field + RTMPConfiguration *LiveConnectorRTMPConfiguration `type:"structure" required:"true"` - // The token used to retrieve the next page of results. - NextToken *string `type:"string"` + // The sink configuration's sink type. + // + // SinkType is a required field + SinkType *string `type:"string" required:"true" enum:"LiveConnectorSinkType"` } // String returns the string representation. @@ -5930,7 +7203,7 @@ type ListMediaCapturePipelinesOutput 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 ListMediaCapturePipelinesOutput) String() string { +func (s LiveConnectorSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -5939,30 +7212,56 @@ func (s ListMediaCapturePipelinesOutput) 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 ListMediaCapturePipelinesOutput) GoString() string { +func (s LiveConnectorSinkConfiguration) GoString() string { return s.String() } -// SetMediaCapturePipelines sets the MediaCapturePipelines field's value. -func (s *ListMediaCapturePipelinesOutput) SetMediaCapturePipelines(v []*MediaCapturePipelineSummary) *ListMediaCapturePipelinesOutput { - s.MediaCapturePipelines = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *LiveConnectorSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LiveConnectorSinkConfiguration"} + if s.RTMPConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("RTMPConfiguration")) + } + if s.SinkType == nil { + invalidParams.Add(request.NewErrParamRequired("SinkType")) + } + if s.RTMPConfiguration != nil { + if err := s.RTMPConfiguration.Validate(); err != nil { + invalidParams.AddNested("RTMPConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRTMPConfiguration sets the RTMPConfiguration field's value. +func (s *LiveConnectorSinkConfiguration) SetRTMPConfiguration(v *LiveConnectorRTMPConfiguration) *LiveConnectorSinkConfiguration { + s.RTMPConfiguration = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaCapturePipelinesOutput) SetNextToken(v string) *ListMediaCapturePipelinesOutput { - s.NextToken = &v +// SetSinkType sets the SinkType field's value. +func (s *LiveConnectorSinkConfiguration) SetSinkType(v string) *LiveConnectorSinkConfiguration { + s.SinkType = &v return s } -type ListMediaInsightsPipelineConfigurationsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// The data source configuration object of a streaming media pipeline. +type LiveConnectorSourceConfiguration struct { + _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The configuration settings of the connector pipeline. + // + // ChimeSdkMeetingLiveConnectorConfiguration is a required field + ChimeSdkMeetingLiveConnectorConfiguration *ChimeSdkMeetingLiveConnectorConfiguration `type:"structure" required:"true"` - // The token used to return the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The source configuration's media source type. + // + // SourceType is a required field + SourceType *string `type:"string" required:"true" enum:"LiveConnectorSourceType"` } // String returns the string representation. @@ -5970,7 +7269,7 @@ type ListMediaInsightsPipelineConfigurationsInput 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 ListMediaInsightsPipelineConfigurationsInput) String() string { +func (s LiveConnectorSourceConfiguration) String() string { return awsutil.Prettify(s) } @@ -5979,15 +7278,23 @@ func (s ListMediaInsightsPipelineConfigurationsInput) 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 ListMediaInsightsPipelineConfigurationsInput) GoString() string { +func (s LiveConnectorSourceConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListMediaInsightsPipelineConfigurationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMediaInsightsPipelineConfigurationsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *LiveConnectorSourceConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LiveConnectorSourceConfiguration"} + if s.ChimeSdkMeetingLiveConnectorConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ChimeSdkMeetingLiveConnectorConfiguration")) + } + if s.SourceType == nil { + invalidParams.Add(request.NewErrParamRequired("SourceType")) + } + if s.ChimeSdkMeetingLiveConnectorConfiguration != nil { + if err := s.ChimeSdkMeetingLiveConnectorConfiguration.Validate(); err != nil { + invalidParams.AddNested("ChimeSdkMeetingLiveConnectorConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -5996,26 +7303,61 @@ func (s *ListMediaInsightsPipelineConfigurationsInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListMediaInsightsPipelineConfigurationsInput) SetMaxResults(v int64) *ListMediaInsightsPipelineConfigurationsInput { - s.MaxResults = &v +// SetChimeSdkMeetingLiveConnectorConfiguration sets the ChimeSdkMeetingLiveConnectorConfiguration field's value. +func (s *LiveConnectorSourceConfiguration) SetChimeSdkMeetingLiveConnectorConfiguration(v *ChimeSdkMeetingLiveConnectorConfiguration) *LiveConnectorSourceConfiguration { + s.ChimeSdkMeetingLiveConnectorConfiguration = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaInsightsPipelineConfigurationsInput) SetNextToken(v string) *ListMediaInsightsPipelineConfigurationsInput { - s.NextToken = &v +// SetSourceType sets the SourceType field's value. +func (s *LiveConnectorSourceConfiguration) SetSourceType(v string) *LiveConnectorSourceConfiguration { + s.SourceType = &v return s } -type ListMediaInsightsPipelineConfigurationsOutput struct { +// A media pipeline object consisting of an ID, source type, source ARN, a sink +// type, a sink ARN, and a configuration object. +type MediaCapturePipeline struct { _ struct{} `type:"structure"` - // The requested list of media insights pipeline configurations. - MediaInsightsPipelineConfigurations []*MediaInsightsPipelineConfigurationSummary `type:"list"` + // The configuration for a specified media pipeline. SourceType must be ChimeSdkMeeting. + ChimeSdkMeetingConfiguration *ChimeSdkMeetingConfiguration `type:"structure"` - // The token used to return the next page of results. - NextToken *string `type:"string"` + // The time at which the pipeline was created, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The ARN of the media capture pipeline + MediaPipelineArn *string `min:"1" type:"string"` + + // The ID of a media pipeline. + MediaPipelineId *string `min:"36" type:"string"` + + // ARN of the destination to which the media artifacts are saved. + // + // SinkArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaCapturePipeline's + // String and GoString methods. + SinkArn *string `min:"1" type:"string" sensitive:"true"` + + // Destination type to which the media artifacts are saved. You must use an + // S3 Bucket. + SinkType *string `type:"string" enum:"MediaPipelineSinkType"` + + // ARN of the source from which the media artifacts are saved. + // + // SourceArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaCapturePipeline's + // String and GoString methods. + SourceArn *string `min:"1" type:"string" sensitive:"true"` + + // Source type from which media artifacts are saved. You must use ChimeMeeting. + SourceType *string `type:"string" enum:"MediaPipelineSourceType"` + + // The status of the media pipeline. + Status *string `type:"string" enum:"MediaPipelineStatus"` + + // The time at which the pipeline was updated, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -6023,7 +7365,7 @@ type ListMediaInsightsPipelineConfigurationsOutput 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 ListMediaInsightsPipelineConfigurationsOutput) String() string { +func (s MediaCapturePipeline) String() string { return awsutil.Prettify(s) } @@ -6032,31 +7374,88 @@ func (s ListMediaInsightsPipelineConfigurationsOutput) 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 ListMediaInsightsPipelineConfigurationsOutput) GoString() string { +func (s MediaCapturePipeline) GoString() string { return s.String() } -// SetMediaInsightsPipelineConfigurations sets the MediaInsightsPipelineConfigurations field's value. -func (s *ListMediaInsightsPipelineConfigurationsOutput) SetMediaInsightsPipelineConfigurations(v []*MediaInsightsPipelineConfigurationSummary) *ListMediaInsightsPipelineConfigurationsOutput { - s.MediaInsightsPipelineConfigurations = v +// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. +func (s *MediaCapturePipeline) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConfiguration) *MediaCapturePipeline { + s.ChimeSdkMeetingConfiguration = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaInsightsPipelineConfigurationsOutput) SetNextToken(v string) *ListMediaInsightsPipelineConfigurationsOutput { - s.NextToken = &v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaCapturePipeline) SetCreatedTimestamp(v time.Time) *MediaCapturePipeline { + s.CreatedTimestamp = &v return s } -type ListMediaPipelinesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaCapturePipeline) SetMediaPipelineArn(v string) *MediaCapturePipeline { + s.MediaPipelineArn = &v + return s +} - // The maximum number of results to return in a single call. Valid Range: 1 - // - 99. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *MediaCapturePipeline) SetMediaPipelineId(v string) *MediaCapturePipeline { + s.MediaPipelineId = &v + return s +} - // The token used to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +// SetSinkArn sets the SinkArn field's value. +func (s *MediaCapturePipeline) SetSinkArn(v string) *MediaCapturePipeline { + s.SinkArn = &v + return s +} + +// SetSinkType sets the SinkType field's value. +func (s *MediaCapturePipeline) SetSinkType(v string) *MediaCapturePipeline { + s.SinkType = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *MediaCapturePipeline) SetSourceArn(v string) *MediaCapturePipeline { + s.SourceArn = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *MediaCapturePipeline) SetSourceType(v string) *MediaCapturePipeline { + s.SourceType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *MediaCapturePipeline) SetStatus(v string) *MediaCapturePipeline { + s.Status = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *MediaCapturePipeline) SetUpdatedTimestamp(v time.Time) *MediaCapturePipeline { + s.UpdatedTimestamp = &v + return s +} + +// The source configuration object of a media capture pipeline. +type MediaCapturePipelineSourceConfiguration struct { + _ struct{} `type:"structure"` + + // The meeting configuration settings in a media capture pipeline configuration + // object. + // + // ChimeSdkMeetingConfiguration is a required field + ChimeSdkMeetingConfiguration *ChimeSdkMeetingConcatenationConfiguration `type:"structure" required:"true"` + + // The media pipeline ARN in the configuration object of a media capture pipeline. + // + // MediaPipelineArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaCapturePipelineSourceConfiguration's + // String and GoString methods. + // + // MediaPipelineArn is a required field + MediaPipelineArn *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -6064,7 +7463,7 @@ type ListMediaPipelinesInput 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 ListMediaPipelinesInput) String() string { +func (s MediaCapturePipelineSourceConfiguration) String() string { return awsutil.Prettify(s) } @@ -6073,15 +7472,26 @@ func (s ListMediaPipelinesInput) 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 ListMediaPipelinesInput) GoString() string { +func (s MediaCapturePipelineSourceConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListMediaPipelinesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMediaPipelinesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *MediaCapturePipelineSourceConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MediaCapturePipelineSourceConfiguration"} + if s.ChimeSdkMeetingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ChimeSdkMeetingConfiguration")) + } + if s.MediaPipelineArn == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineArn")) + } + if s.MediaPipelineArn != nil && len(*s.MediaPipelineArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineArn", 1)) + } + if s.ChimeSdkMeetingConfiguration != nil { + if err := s.ChimeSdkMeetingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ChimeSdkMeetingConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -6090,26 +7500,27 @@ func (s *ListMediaPipelinesInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListMediaPipelinesInput) SetMaxResults(v int64) *ListMediaPipelinesInput { - s.MaxResults = &v +// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. +func (s *MediaCapturePipelineSourceConfiguration) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConcatenationConfiguration) *MediaCapturePipelineSourceConfiguration { + s.ChimeSdkMeetingConfiguration = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaPipelinesInput) SetNextToken(v string) *ListMediaPipelinesInput { - s.NextToken = &v +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaCapturePipelineSourceConfiguration) SetMediaPipelineArn(v string) *MediaCapturePipelineSourceConfiguration { + s.MediaPipelineArn = &v return s } -type ListMediaPipelinesOutput struct { +// The summary data of a media capture pipeline. +type MediaCapturePipelineSummary struct { _ struct{} `type:"structure"` - // The media pipeline objects in the list. - MediaPipelines []*MediaPipelineSummary `type:"list"` + // The ARN of the media pipeline in the summary. + MediaPipelineArn *string `min:"1" type:"string"` - // The token used to retrieve the next page of results. - NextToken *string `type:"string"` + // The ID of the media pipeline in the summary. + MediaPipelineId *string `min:"36" type:"string"` } // String returns the string representation. @@ -6117,7 +7528,7 @@ type ListMediaPipelinesOutput 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 ListMediaPipelinesOutput) String() string { +func (s MediaCapturePipelineSummary) String() string { return awsutil.Prettify(s) } @@ -6126,30 +7537,47 @@ func (s ListMediaPipelinesOutput) 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 ListMediaPipelinesOutput) GoString() string { +func (s MediaCapturePipelineSummary) GoString() string { return s.String() } -// SetMediaPipelines sets the MediaPipelines field's value. -func (s *ListMediaPipelinesOutput) SetMediaPipelines(v []*MediaPipelineSummary) *ListMediaPipelinesOutput { - s.MediaPipelines = v +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaCapturePipelineSummary) SetMediaPipelineArn(v string) *MediaCapturePipelineSummary { + s.MediaPipelineArn = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaPipelinesOutput) SetNextToken(v string) *ListMediaPipelinesOutput { - s.NextToken = &v +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *MediaCapturePipelineSummary) SetMediaPipelineId(v string) *MediaCapturePipelineSummary { + s.MediaPipelineId = &v return s } -type ListTagsForResourceInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// Concatenates audio and video data from one or more data streams. +type MediaConcatenationPipeline struct { + _ struct{} `type:"structure"` - // The ARN of the media pipeline associated with any tags. The ARN consists - // of the pipeline's region, resource ID, and pipeline ID. - // - // ResourceARN is a required field - ResourceARN *string `location:"querystring" locationName:"arn" min:"1" type:"string" required:"true"` + // The time at which the concatenation pipeline was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The ARN of the media pipeline that you specify in the SourceConfiguration + // object. + MediaPipelineArn *string `min:"1" type:"string"` + + // The ID of the media pipeline being concatenated. + MediaPipelineId *string `min:"36" type:"string"` + + // The data sinks of the concatenation pipeline. + Sinks []*ConcatenationSink `min:"1" type:"list"` + + // The data sources being concatenated. + Sources []*ConcatenationSource `min:"1" type:"list"` + + // The status of the concatenation pipeline. + Status *string `type:"string" enum:"MediaPipelineStatus"` + + // The time at which the concatenation pipeline was last updated. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -6157,7 +7585,7 @@ type ListTagsForResourceInput 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 ListTagsForResourceInput) String() string { +func (s MediaConcatenationPipeline) String() string { return awsutil.Prettify(s) } @@ -6166,81 +7594,101 @@ func (s ListTagsForResourceInput) 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 ListTagsForResourceInput) GoString() string { +func (s MediaConcatenationPipeline) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) - } - if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaConcatenationPipeline) SetCreatedTimestamp(v time.Time) *MediaConcatenationPipeline { + s.CreatedTimestamp = &v + return s } -// SetResourceARN sets the ResourceARN field's value. -func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { - s.ResourceARN = &v +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaConcatenationPipeline) SetMediaPipelineArn(v string) *MediaConcatenationPipeline { + s.MediaPipelineArn = &v return s } -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *MediaConcatenationPipeline) SetMediaPipelineId(v string) *MediaConcatenationPipeline { + s.MediaPipelineId = &v + return s +} - // The tags associated with the specified media pipeline. - Tags []*Tag `min:"1" type:"list"` +// SetSinks sets the Sinks field's value. +func (s *MediaConcatenationPipeline) SetSinks(v []*ConcatenationSink) *MediaConcatenationPipeline { + s.Sinks = v + return s } -// 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 ListTagsForResourceOutput) String() string { - return awsutil.Prettify(s) +// SetSources sets the Sources field's value. +func (s *MediaConcatenationPipeline) SetSources(v []*ConcatenationSource) *MediaConcatenationPipeline { + s.Sources = v + return 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 ListTagsForResourceOutput) GoString() string { - return s.String() +// SetStatus sets the Status field's value. +func (s *MediaConcatenationPipeline) SetStatus(v string) *MediaConcatenationPipeline { + s.Status = &v + return s } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *MediaConcatenationPipeline) SetUpdatedTimestamp(v time.Time) *MediaConcatenationPipeline { + s.UpdatedTimestamp = &v return s } -// The media pipeline's RTMP configuration object. -type LiveConnectorRTMPConfiguration struct { +// A media pipeline that streams call analytics data. +type MediaInsightsPipeline struct { _ struct{} `type:"structure"` - // The audio channels set for the RTMP configuration - AudioChannels *string `type:"string" enum:"AudioChannelsOption"` + // The time at which the media insights pipeline was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The audio sample rate set for the RTMP configuration. Default: 48000. - AudioSampleRate *string `type:"string"` + // The statuses that the elements in a media insights pipeline can have during + // data processing. + ElementStatuses []*MediaInsightsPipelineElementStatus `type:"list"` - // The URL of the RTMP configuration. + // The runtime configuration settings for a Kinesis recording video stream in + // a media insights pipeline. + KinesisVideoStreamRecordingSourceRuntimeConfiguration *KinesisVideoStreamRecordingSourceRuntimeConfiguration `type:"structure"` + + // The configuration settings for a Kinesis runtime video stream in a media + // insights pipeline. + KinesisVideoStreamSourceRuntimeConfiguration *KinesisVideoStreamSourceRuntimeConfiguration `type:"structure"` + + // The ARN of a media insight pipeline's configuration settings. // - // Url is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by LiveConnectorRTMPConfiguration's + // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipeline's // String and GoString methods. + MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` + + // The runtime metadata of a media insights pipeline. // - // Url is a required field - Url *string `min:"1" type:"string" required:"true" sensitive:"true"` + // MediaInsightsRuntimeMetadata is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipeline's + // String and GoString methods. + MediaInsightsRuntimeMetadata map[string]*string `type:"map" sensitive:"true"` + + // The ARN of a media insights pipeline. + // + // MediaPipelineArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipeline's + // String and GoString methods. + MediaPipelineArn *string `min:"1" type:"string" sensitive:"true"` + + // The ID of a media insights pipeline. + MediaPipelineId *string `min:"36" type:"string"` + + // The runtime configuration of the Amazon S3 bucket that stores recordings + // in a media insights pipeline. + S3RecordingSinkRuntimeConfiguration *S3RecordingSinkRuntimeConfiguration `type:"structure"` + + // The status of a media insights pipeline. + Status *string `type:"string" enum:"MediaPipelineStatus"` } // String returns the string representation. @@ -6248,7 +7696,7 @@ type LiveConnectorRTMPConfiguration 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 LiveConnectorRTMPConfiguration) String() string { +func (s MediaInsightsPipeline) String() string { return awsutil.Prettify(s) } @@ -6257,57 +7705,106 @@ func (s LiveConnectorRTMPConfiguration) 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 LiveConnectorRTMPConfiguration) GoString() string { +func (s MediaInsightsPipeline) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LiveConnectorRTMPConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LiveConnectorRTMPConfiguration"} - if s.Url == nil { - invalidParams.Add(request.NewErrParamRequired("Url")) - } - if s.Url != nil && len(*s.Url) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Url", 1)) - } +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaInsightsPipeline) SetCreatedTimestamp(v time.Time) *MediaInsightsPipeline { + s.CreatedTimestamp = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetElementStatuses sets the ElementStatuses field's value. +func (s *MediaInsightsPipeline) SetElementStatuses(v []*MediaInsightsPipelineElementStatus) *MediaInsightsPipeline { + s.ElementStatuses = v + return s } -// SetAudioChannels sets the AudioChannels field's value. -func (s *LiveConnectorRTMPConfiguration) SetAudioChannels(v string) *LiveConnectorRTMPConfiguration { - s.AudioChannels = &v +// SetKinesisVideoStreamRecordingSourceRuntimeConfiguration sets the KinesisVideoStreamRecordingSourceRuntimeConfiguration field's value. +func (s *MediaInsightsPipeline) SetKinesisVideoStreamRecordingSourceRuntimeConfiguration(v *KinesisVideoStreamRecordingSourceRuntimeConfiguration) *MediaInsightsPipeline { + s.KinesisVideoStreamRecordingSourceRuntimeConfiguration = v return s } -// SetAudioSampleRate sets the AudioSampleRate field's value. -func (s *LiveConnectorRTMPConfiguration) SetAudioSampleRate(v string) *LiveConnectorRTMPConfiguration { - s.AudioSampleRate = &v +// SetKinesisVideoStreamSourceRuntimeConfiguration sets the KinesisVideoStreamSourceRuntimeConfiguration field's value. +func (s *MediaInsightsPipeline) SetKinesisVideoStreamSourceRuntimeConfiguration(v *KinesisVideoStreamSourceRuntimeConfiguration) *MediaInsightsPipeline { + s.KinesisVideoStreamSourceRuntimeConfiguration = v + return s +} + +// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. +func (s *MediaInsightsPipeline) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipeline { + s.MediaInsightsPipelineConfigurationArn = &v + return s +} + +// SetMediaInsightsRuntimeMetadata sets the MediaInsightsRuntimeMetadata field's value. +func (s *MediaInsightsPipeline) SetMediaInsightsRuntimeMetadata(v map[string]*string) *MediaInsightsPipeline { + s.MediaInsightsRuntimeMetadata = v + return s +} + +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaInsightsPipeline) SetMediaPipelineArn(v string) *MediaInsightsPipeline { + s.MediaPipelineArn = &v + return s +} + +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *MediaInsightsPipeline) SetMediaPipelineId(v string) *MediaInsightsPipeline { + s.MediaPipelineId = &v + return s +} + +// SetS3RecordingSinkRuntimeConfiguration sets the S3RecordingSinkRuntimeConfiguration field's value. +func (s *MediaInsightsPipeline) SetS3RecordingSinkRuntimeConfiguration(v *S3RecordingSinkRuntimeConfiguration) *MediaInsightsPipeline { + s.S3RecordingSinkRuntimeConfiguration = v return s } -// SetUrl sets the Url field's value. -func (s *LiveConnectorRTMPConfiguration) SetUrl(v string) *LiveConnectorRTMPConfiguration { - s.Url = &v +// SetStatus sets the Status field's value. +func (s *MediaInsightsPipeline) SetStatus(v string) *MediaInsightsPipeline { + s.Status = &v return s } -// The media pipeline's sink configuration settings. -type LiveConnectorSinkConfiguration struct { +// A structure that contains the configuration settings for a media insights +// pipeline. +type MediaInsightsPipelineConfiguration struct { _ struct{} `type:"structure"` - // The sink configuration's RTMP configuration settings. + // The time at which the configuration was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The elements in the configuration. + Elements []*MediaInsightsPipelineConfigurationElement `type:"list"` + + // The ARN of the configuration. // - // RTMPConfiguration is a required field - RTMPConfiguration *LiveConnectorRTMPConfiguration `type:"structure" required:"true"` + // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipelineConfiguration's + // String and GoString methods. + MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` - // The sink configuration's sink type. + // The ID of the configuration. + MediaInsightsPipelineConfigurationId *string `min:"36" type:"string"` + + // The name of the configuration. + MediaInsightsPipelineConfigurationName *string `min:"2" type:"string"` + + // Lists the rules that trigger a real-time alert. + RealTimeAlertConfiguration *RealTimeAlertConfiguration `type:"structure"` + + // The ARN of the role used by the service to access Amazon Web Services resources. // - // SinkType is a required field - SinkType *string `type:"string" required:"true" enum:"LiveConnectorSinkType"` + // ResourceAccessRoleArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipelineConfiguration's + // String and GoString methods. + ResourceAccessRoleArn *string `min:"1" type:"string" sensitive:"true"` + + // The time at which the configuration was last updated. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -6315,7 +7812,7 @@ type LiveConnectorSinkConfiguration 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 LiveConnectorSinkConfiguration) String() string { +func (s MediaInsightsPipelineConfiguration) String() string { return awsutil.Prettify(s) } @@ -6324,152 +7821,102 @@ func (s LiveConnectorSinkConfiguration) 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 LiveConnectorSinkConfiguration) GoString() string { +func (s MediaInsightsPipelineConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LiveConnectorSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LiveConnectorSinkConfiguration"} - if s.RTMPConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("RTMPConfiguration")) - } - if s.SinkType == nil { - invalidParams.Add(request.NewErrParamRequired("SinkType")) - } - if s.RTMPConfiguration != nil { - if err := s.RTMPConfiguration.Validate(); err != nil { - invalidParams.AddNested("RTMPConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRTMPConfiguration sets the RTMPConfiguration field's value. -func (s *LiveConnectorSinkConfiguration) SetRTMPConfiguration(v *LiveConnectorRTMPConfiguration) *LiveConnectorSinkConfiguration { - s.RTMPConfiguration = v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaInsightsPipelineConfiguration) SetCreatedTimestamp(v time.Time) *MediaInsightsPipelineConfiguration { + s.CreatedTimestamp = &v return s } -// SetSinkType sets the SinkType field's value. -func (s *LiveConnectorSinkConfiguration) SetSinkType(v string) *LiveConnectorSinkConfiguration { - s.SinkType = &v +// SetElements sets the Elements field's value. +func (s *MediaInsightsPipelineConfiguration) SetElements(v []*MediaInsightsPipelineConfigurationElement) *MediaInsightsPipelineConfiguration { + s.Elements = v return s } -// The data source configuration object of a streaming media pipeline. -type LiveConnectorSourceConfiguration struct { - _ struct{} `type:"structure"` - - // The configuration settings of the connector pipeline. - // - // ChimeSdkMeetingLiveConnectorConfiguration is a required field - ChimeSdkMeetingLiveConnectorConfiguration *ChimeSdkMeetingLiveConnectorConfiguration `type:"structure" required:"true"` - - // The source configuration's media source type. - // - // SourceType is a required field - SourceType *string `type:"string" required:"true" enum:"LiveConnectorSourceType"` +// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. +func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipelineConfiguration { + s.MediaInsightsPipelineConfigurationArn = &v + return s } -// 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 LiveConnectorSourceConfiguration) String() string { - return awsutil.Prettify(s) +// SetMediaInsightsPipelineConfigurationId sets the MediaInsightsPipelineConfigurationId field's value. +func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationId(v string) *MediaInsightsPipelineConfiguration { + s.MediaInsightsPipelineConfigurationId = &v + return 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 LiveConnectorSourceConfiguration) GoString() string { - return s.String() +// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. +func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationName(v string) *MediaInsightsPipelineConfiguration { + s.MediaInsightsPipelineConfigurationName = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LiveConnectorSourceConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LiveConnectorSourceConfiguration"} - if s.ChimeSdkMeetingLiveConnectorConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("ChimeSdkMeetingLiveConnectorConfiguration")) - } - if s.SourceType == nil { - invalidParams.Add(request.NewErrParamRequired("SourceType")) - } - if s.ChimeSdkMeetingLiveConnectorConfiguration != nil { - if err := s.ChimeSdkMeetingLiveConnectorConfiguration.Validate(); err != nil { - invalidParams.AddNested("ChimeSdkMeetingLiveConnectorConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetRealTimeAlertConfiguration sets the RealTimeAlertConfiguration field's value. +func (s *MediaInsightsPipelineConfiguration) SetRealTimeAlertConfiguration(v *RealTimeAlertConfiguration) *MediaInsightsPipelineConfiguration { + s.RealTimeAlertConfiguration = v + return s } -// SetChimeSdkMeetingLiveConnectorConfiguration sets the ChimeSdkMeetingLiveConnectorConfiguration field's value. -func (s *LiveConnectorSourceConfiguration) SetChimeSdkMeetingLiveConnectorConfiguration(v *ChimeSdkMeetingLiveConnectorConfiguration) *LiveConnectorSourceConfiguration { - s.ChimeSdkMeetingLiveConnectorConfiguration = v +// SetResourceAccessRoleArn sets the ResourceAccessRoleArn field's value. +func (s *MediaInsightsPipelineConfiguration) SetResourceAccessRoleArn(v string) *MediaInsightsPipelineConfiguration { + s.ResourceAccessRoleArn = &v return s } -// SetSourceType sets the SourceType field's value. -func (s *LiveConnectorSourceConfiguration) SetSourceType(v string) *LiveConnectorSourceConfiguration { - s.SourceType = &v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *MediaInsightsPipelineConfiguration) SetUpdatedTimestamp(v time.Time) *MediaInsightsPipelineConfiguration { + s.UpdatedTimestamp = &v return s } -// A media pipeline object consisting of an ID, source type, source ARN, a sink -// type, a sink ARN, and a configuration object. -type MediaCapturePipeline struct { +// An element in a media insights pipeline configuration. +type MediaInsightsPipelineConfigurationElement struct { _ struct{} `type:"structure"` - // The configuration for a specified media pipeline. SourceType must be ChimeSdkMeeting. - ChimeSdkMeetingConfiguration *ChimeSdkMeetingConfiguration `type:"structure"` + // The analytics configuration settings for transcribing audio in a media insights + // pipeline configuration element. + AmazonTranscribeCallAnalyticsProcessorConfiguration *AmazonTranscribeCallAnalyticsProcessorConfiguration `type:"structure"` - // The time at which the pipeline was created, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The transcription processor configuration settings in a media insights pipeline + // configuration element. + AmazonTranscribeProcessorConfiguration *AmazonTranscribeProcessorConfiguration `type:"structure"` - // The ARN of the media capture pipeline - MediaPipelineArn *string `min:"1" type:"string"` + // The configuration settings for the Kinesis Data Stream Sink in a media insights + // pipeline configuration element. + KinesisDataStreamSinkConfiguration *KinesisDataStreamSinkConfiguration `type:"structure"` - // The ID of a media pipeline. - MediaPipelineId *string `min:"36" type:"string"` + // The configuration settings for the Amazon Web Services Lambda sink in a media + // insights pipeline configuration element. + LambdaFunctionSinkConfiguration *LambdaFunctionSinkConfiguration `type:"structure"` - // ARN of the destination to which the media artifacts are saved. - // - // SinkArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaCapturePipeline's - // String and GoString methods. - SinkArn *string `min:"1" type:"string" sensitive:"true"` + // The configuration settings for the Amazon S3 recording bucket in a media + // insights pipeline configuration element. + S3RecordingSinkConfiguration *S3RecordingSinkConfiguration `type:"structure"` - // Destination type to which the media artifacts are saved. You must use an - // S3 Bucket. - SinkType *string `type:"string" enum:"MediaPipelineSinkType"` + // The configuration settings for an SNS topic sink in a media insights pipeline + // configuration element. + SnsTopicSinkConfiguration *SnsTopicSinkConfiguration `type:"structure"` - // ARN of the source from which the media artifacts are saved. - // - // SourceArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaCapturePipeline's - // String and GoString methods. - SourceArn *string `min:"1" type:"string" sensitive:"true"` + // The configuration settings for an SQS queue sink in a media insights pipeline + // configuration element. + SqsQueueSinkConfiguration *SqsQueueSinkConfiguration `type:"structure"` - // Source type from which media artifacts are saved. You must use ChimeMeeting. - SourceType *string `type:"string" enum:"MediaPipelineSourceType"` + // The element type. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"MediaInsightsPipelineConfigurationElementType"` - // The status of the media pipeline. - Status *string `type:"string" enum:"MediaPipelineStatus"` + // The voice analytics configuration settings in a media insights pipeline configuration + // element. + VoiceAnalyticsProcessorConfiguration *VoiceAnalyticsProcessorConfiguration `type:"structure"` - // The time at which the pipeline was updated, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The configuration settings for voice enhancement sink in a media insights + // pipeline configuration element. + VoiceEnhancementSinkConfiguration *VoiceEnhancementSinkConfiguration `type:"structure"` } // String returns the string representation. @@ -6477,97 +7924,143 @@ type MediaCapturePipeline 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 MediaCapturePipeline) String() string { +func (s MediaInsightsPipelineConfigurationElement) 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 MediaCapturePipeline) GoString() string { - return s.String() +// 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 MediaInsightsPipelineConfigurationElement) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MediaInsightsPipelineConfigurationElement) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MediaInsightsPipelineConfigurationElement"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.AmazonTranscribeCallAnalyticsProcessorConfiguration != nil { + if err := s.AmazonTranscribeCallAnalyticsProcessorConfiguration.Validate(); err != nil { + invalidParams.AddNested("AmazonTranscribeCallAnalyticsProcessorConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.AmazonTranscribeProcessorConfiguration != nil { + if err := s.AmazonTranscribeProcessorConfiguration.Validate(); err != nil { + invalidParams.AddNested("AmazonTranscribeProcessorConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.KinesisDataStreamSinkConfiguration != nil { + if err := s.KinesisDataStreamSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("KinesisDataStreamSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.LambdaFunctionSinkConfiguration != nil { + if err := s.LambdaFunctionSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("LambdaFunctionSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3RecordingSinkConfiguration != nil { + if err := s.S3RecordingSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("S3RecordingSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SnsTopicSinkConfiguration != nil { + if err := s.SnsTopicSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("SnsTopicSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SqsQueueSinkConfiguration != nil { + if err := s.SqsQueueSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("SqsQueueSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. -func (s *MediaCapturePipeline) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConfiguration) *MediaCapturePipeline { - s.ChimeSdkMeetingConfiguration = v +// SetAmazonTranscribeCallAnalyticsProcessorConfiguration sets the AmazonTranscribeCallAnalyticsProcessorConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetAmazonTranscribeCallAnalyticsProcessorConfiguration(v *AmazonTranscribeCallAnalyticsProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { + s.AmazonTranscribeCallAnalyticsProcessorConfiguration = v return s } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *MediaCapturePipeline) SetCreatedTimestamp(v time.Time) *MediaCapturePipeline { - s.CreatedTimestamp = &v +// SetAmazonTranscribeProcessorConfiguration sets the AmazonTranscribeProcessorConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetAmazonTranscribeProcessorConfiguration(v *AmazonTranscribeProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { + s.AmazonTranscribeProcessorConfiguration = v return s } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaCapturePipeline) SetMediaPipelineArn(v string) *MediaCapturePipeline { - s.MediaPipelineArn = &v +// SetKinesisDataStreamSinkConfiguration sets the KinesisDataStreamSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetKinesisDataStreamSinkConfiguration(v *KinesisDataStreamSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.KinesisDataStreamSinkConfiguration = v return s } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaCapturePipeline) SetMediaPipelineId(v string) *MediaCapturePipeline { - s.MediaPipelineId = &v +// SetLambdaFunctionSinkConfiguration sets the LambdaFunctionSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetLambdaFunctionSinkConfiguration(v *LambdaFunctionSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.LambdaFunctionSinkConfiguration = v return s } -// SetSinkArn sets the SinkArn field's value. -func (s *MediaCapturePipeline) SetSinkArn(v string) *MediaCapturePipeline { - s.SinkArn = &v +// SetS3RecordingSinkConfiguration sets the S3RecordingSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetS3RecordingSinkConfiguration(v *S3RecordingSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.S3RecordingSinkConfiguration = v return s } -// SetSinkType sets the SinkType field's value. -func (s *MediaCapturePipeline) SetSinkType(v string) *MediaCapturePipeline { - s.SinkType = &v +// SetSnsTopicSinkConfiguration sets the SnsTopicSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetSnsTopicSinkConfiguration(v *SnsTopicSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.SnsTopicSinkConfiguration = v return s } -// SetSourceArn sets the SourceArn field's value. -func (s *MediaCapturePipeline) SetSourceArn(v string) *MediaCapturePipeline { - s.SourceArn = &v +// SetSqsQueueSinkConfiguration sets the SqsQueueSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetSqsQueueSinkConfiguration(v *SqsQueueSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.SqsQueueSinkConfiguration = v return s } -// SetSourceType sets the SourceType field's value. -func (s *MediaCapturePipeline) SetSourceType(v string) *MediaCapturePipeline { - s.SourceType = &v +// SetType sets the Type field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetType(v string) *MediaInsightsPipelineConfigurationElement { + s.Type = &v return s } -// SetStatus sets the Status field's value. -func (s *MediaCapturePipeline) SetStatus(v string) *MediaCapturePipeline { - s.Status = &v +// SetVoiceAnalyticsProcessorConfiguration sets the VoiceAnalyticsProcessorConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetVoiceAnalyticsProcessorConfiguration(v *VoiceAnalyticsProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { + s.VoiceAnalyticsProcessorConfiguration = v return s } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *MediaCapturePipeline) SetUpdatedTimestamp(v time.Time) *MediaCapturePipeline { - s.UpdatedTimestamp = &v +// SetVoiceEnhancementSinkConfiguration sets the VoiceEnhancementSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetVoiceEnhancementSinkConfiguration(v *VoiceEnhancementSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.VoiceEnhancementSinkConfiguration = v return s } -// The source configuration object of a media capture pipeline. -type MediaCapturePipelineSourceConfiguration struct { +// A summary of the media insights pipeline configuration. +type MediaInsightsPipelineConfigurationSummary struct { _ struct{} `type:"structure"` - // The meeting configuration settings in a media capture pipeline configuration - // object. - // - // ChimeSdkMeetingConfiguration is a required field - ChimeSdkMeetingConfiguration *ChimeSdkMeetingConcatenationConfiguration `type:"structure" required:"true"` - - // The media pipeline ARN in the configuration object of a media capture pipeline. + // The ARN of the media insights pipeline configuration. // - // MediaPipelineArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaCapturePipelineSourceConfiguration's + // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipelineConfigurationSummary's // String and GoString methods. - // - // MediaPipelineArn is a required field - MediaPipelineArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` + + // The ID of the media insights pipeline configuration. + MediaInsightsPipelineConfigurationId *string `min:"36" type:"string"` + + // The name of the media insights pipeline configuration. + MediaInsightsPipelineConfigurationName *string `min:"2" type:"string"` } // String returns the string representation. @@ -6575,7 +8068,7 @@ type MediaCapturePipelineSourceConfiguration 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 MediaCapturePipelineSourceConfiguration) String() string { +func (s MediaInsightsPipelineConfigurationSummary) String() string { return awsutil.Prettify(s) } @@ -6584,55 +8077,37 @@ func (s MediaCapturePipelineSourceConfiguration) 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 MediaCapturePipelineSourceConfiguration) GoString() string { +func (s MediaInsightsPipelineConfigurationSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MediaCapturePipelineSourceConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MediaCapturePipelineSourceConfiguration"} - if s.ChimeSdkMeetingConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("ChimeSdkMeetingConfiguration")) - } - if s.MediaPipelineArn == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineArn")) - } - if s.MediaPipelineArn != nil && len(*s.MediaPipelineArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineArn", 1)) - } - if s.ChimeSdkMeetingConfiguration != nil { - if err := s.ChimeSdkMeetingConfiguration.Validate(); err != nil { - invalidParams.AddNested("ChimeSdkMeetingConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. +func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipelineConfigurationSummary { + s.MediaInsightsPipelineConfigurationArn = &v + return s } -// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. -func (s *MediaCapturePipelineSourceConfiguration) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConcatenationConfiguration) *MediaCapturePipelineSourceConfiguration { - s.ChimeSdkMeetingConfiguration = v +// SetMediaInsightsPipelineConfigurationId sets the MediaInsightsPipelineConfigurationId field's value. +func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationId(v string) *MediaInsightsPipelineConfigurationSummary { + s.MediaInsightsPipelineConfigurationId = &v return s } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaCapturePipelineSourceConfiguration) SetMediaPipelineArn(v string) *MediaCapturePipelineSourceConfiguration { - s.MediaPipelineArn = &v +// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. +func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationName(v string) *MediaInsightsPipelineConfigurationSummary { + s.MediaInsightsPipelineConfigurationName = &v return s } -// The summary data of a media capture pipeline. -type MediaCapturePipelineSummary struct { +// The status of the pipeline element. +type MediaInsightsPipelineElementStatus struct { _ struct{} `type:"structure"` - // The ARN of the media pipeline in the summary. - MediaPipelineArn *string `min:"1" type:"string"` + // The element's status. + Status *string `type:"string" enum:"MediaPipelineElementStatus"` - // The ID of the media pipeline in the summary. - MediaPipelineId *string `min:"36" type:"string"` + // The type of status. + Type *string `type:"string" enum:"MediaInsightsPipelineConfigurationElementType"` } // String returns the string representation. @@ -6640,7 +8115,7 @@ type MediaCapturePipelineSummary 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 MediaCapturePipelineSummary) String() string { +func (s MediaInsightsPipelineElementStatus) String() string { return awsutil.Prettify(s) } @@ -6649,46 +8124,45 @@ func (s MediaCapturePipelineSummary) 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 MediaCapturePipelineSummary) GoString() string { +func (s MediaInsightsPipelineElementStatus) GoString() string { return s.String() } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaCapturePipelineSummary) SetMediaPipelineArn(v string) *MediaCapturePipelineSummary { - s.MediaPipelineArn = &v +// SetStatus sets the Status field's value. +func (s *MediaInsightsPipelineElementStatus) SetStatus(v string) *MediaInsightsPipelineElementStatus { + s.Status = &v return s } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaCapturePipelineSummary) SetMediaPipelineId(v string) *MediaCapturePipelineSummary { - s.MediaPipelineId = &v +// SetType sets the Type field's value. +func (s *MediaInsightsPipelineElementStatus) SetType(v string) *MediaInsightsPipelineElementStatus { + s.Type = &v return s } -// Concatenates audio and video data from one or more data streams. -type MediaConcatenationPipeline struct { +// The connector pipeline. +type MediaLiveConnectorPipeline struct { _ struct{} `type:"structure"` - // The time at which the concatenation pipeline was created. + // The time at which the connector pipeline was created. CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The ARN of the media pipeline that you specify in the SourceConfiguration - // object. + // The connector pipeline's ARN. MediaPipelineArn *string `min:"1" type:"string"` - // The ID of the media pipeline being concatenated. + // The connector pipeline's ID. MediaPipelineId *string `min:"36" type:"string"` - // The data sinks of the concatenation pipeline. - Sinks []*ConcatenationSink `min:"1" type:"list"` + // The connector pipeline's data sinks. + Sinks []*LiveConnectorSinkConfiguration `min:"1" type:"list"` - // The data sources being concatenated. - Sources []*ConcatenationSource `min:"1" type:"list"` + // The connector pipeline's data sources. + Sources []*LiveConnectorSourceConfiguration `min:"1" type:"list"` - // The status of the concatenation pipeline. + // The connector pipeline's status. Status *string `type:"string" enum:"MediaPipelineStatus"` - // The time at which the concatenation pipeline was last updated. + // The time at which the connector pipeline was last updated. UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } @@ -6697,7 +8171,7 @@ type MediaConcatenationPipeline 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 MediaConcatenationPipeline) String() string { +func (s MediaLiveConnectorPipeline) String() string { return awsutil.Prettify(s) } @@ -6706,101 +8180,68 @@ func (s MediaConcatenationPipeline) 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 MediaConcatenationPipeline) GoString() string { +func (s MediaLiveConnectorPipeline) GoString() string { return s.String() } // SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *MediaConcatenationPipeline) SetCreatedTimestamp(v time.Time) *MediaConcatenationPipeline { +func (s *MediaLiveConnectorPipeline) SetCreatedTimestamp(v time.Time) *MediaLiveConnectorPipeline { s.CreatedTimestamp = &v return s } // SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaConcatenationPipeline) SetMediaPipelineArn(v string) *MediaConcatenationPipeline { +func (s *MediaLiveConnectorPipeline) SetMediaPipelineArn(v string) *MediaLiveConnectorPipeline { s.MediaPipelineArn = &v return s } // SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaConcatenationPipeline) SetMediaPipelineId(v string) *MediaConcatenationPipeline { +func (s *MediaLiveConnectorPipeline) SetMediaPipelineId(v string) *MediaLiveConnectorPipeline { s.MediaPipelineId = &v return s } // SetSinks sets the Sinks field's value. -func (s *MediaConcatenationPipeline) SetSinks(v []*ConcatenationSink) *MediaConcatenationPipeline { +func (s *MediaLiveConnectorPipeline) SetSinks(v []*LiveConnectorSinkConfiguration) *MediaLiveConnectorPipeline { s.Sinks = v return s } // SetSources sets the Sources field's value. -func (s *MediaConcatenationPipeline) SetSources(v []*ConcatenationSource) *MediaConcatenationPipeline { +func (s *MediaLiveConnectorPipeline) SetSources(v []*LiveConnectorSourceConfiguration) *MediaLiveConnectorPipeline { s.Sources = v return s } -// SetStatus sets the Status field's value. -func (s *MediaConcatenationPipeline) SetStatus(v string) *MediaConcatenationPipeline { - s.Status = &v - return s -} - -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *MediaConcatenationPipeline) SetUpdatedTimestamp(v time.Time) *MediaConcatenationPipeline { - s.UpdatedTimestamp = &v - return s -} - -// A media pipeline that streams call analytics data. -type MediaInsightsPipeline struct { - _ struct{} `type:"structure"` - - // The time at which the media insights pipeline was created. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The statuses that the elements in a media insights pipeline can have during - // data processing. - ElementStatuses []*MediaInsightsPipelineElementStatus `type:"list"` - - // The runtime configuration settings for a Kinesis recording video stream in - // a media insights pipeline. - KinesisVideoStreamRecordingSourceRuntimeConfiguration *KinesisVideoStreamRecordingSourceRuntimeConfiguration `type:"structure"` - - // The configuration settings for a Kinesis runtime video stream in a media - // insights pipeline. - KinesisVideoStreamSourceRuntimeConfiguration *KinesisVideoStreamSourceRuntimeConfiguration `type:"structure"` +// SetStatus sets the Status field's value. +func (s *MediaLiveConnectorPipeline) SetStatus(v string) *MediaLiveConnectorPipeline { + s.Status = &v + return s +} - // The ARN of a media insight pipeline's configuration settings. - // - // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaInsightsPipeline's - // String and GoString methods. - MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *MediaLiveConnectorPipeline) SetUpdatedTimestamp(v time.Time) *MediaLiveConnectorPipeline { + s.UpdatedTimestamp = &v + return s +} - // The runtime metadata of a media insights pipeline. - // - // MediaInsightsRuntimeMetadata is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaInsightsPipeline's - // String and GoString methods. - MediaInsightsRuntimeMetadata map[string]*string `type:"map" sensitive:"true"` +// A pipeline consisting of a media capture, media concatenation, or live-streaming +// pipeline. +type MediaPipeline struct { + _ struct{} `type:"structure"` - // The ARN of a media insights pipeline. - // - // MediaPipelineArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaInsightsPipeline's - // String and GoString methods. - MediaPipelineArn *string `min:"1" type:"string" sensitive:"true"` + // A pipeline that enables users to capture audio and video. + MediaCapturePipeline *MediaCapturePipeline `type:"structure"` - // The ID of a media insights pipeline. - MediaPipelineId *string `min:"36" type:"string"` + // The media concatenation pipeline in a media pipeline. + MediaConcatenationPipeline *MediaConcatenationPipeline `type:"structure"` - // The runtime configuration of the Amazon S3 bucket that stores recordings - // in a media insights pipeline. - S3RecordingSinkRuntimeConfiguration *S3RecordingSinkRuntimeConfiguration `type:"structure"` + // The media insights pipeline of a media pipeline. + MediaInsightsPipeline *MediaInsightsPipeline `type:"structure"` - // The status of a media insights pipeline. - Status *string `type:"string" enum:"MediaPipelineStatus"` + // The connector pipeline of the media pipeline. + MediaLiveConnectorPipeline *MediaLiveConnectorPipeline `type:"structure"` } // String returns the string representation. @@ -6808,7 +8249,7 @@ type MediaInsightsPipeline 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 MediaInsightsPipeline) String() string { +func (s MediaPipeline) String() string { return awsutil.Prettify(s) } @@ -6817,106 +8258,83 @@ func (s MediaInsightsPipeline) 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 MediaInsightsPipeline) GoString() string { +func (s MediaPipeline) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *MediaInsightsPipeline) SetCreatedTimestamp(v time.Time) *MediaInsightsPipeline { - s.CreatedTimestamp = &v +// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. +func (s *MediaPipeline) SetMediaCapturePipeline(v *MediaCapturePipeline) *MediaPipeline { + s.MediaCapturePipeline = v return s } -// SetElementStatuses sets the ElementStatuses field's value. -func (s *MediaInsightsPipeline) SetElementStatuses(v []*MediaInsightsPipelineElementStatus) *MediaInsightsPipeline { - s.ElementStatuses = v +// SetMediaConcatenationPipeline sets the MediaConcatenationPipeline field's value. +func (s *MediaPipeline) SetMediaConcatenationPipeline(v *MediaConcatenationPipeline) *MediaPipeline { + s.MediaConcatenationPipeline = v return s } -// SetKinesisVideoStreamRecordingSourceRuntimeConfiguration sets the KinesisVideoStreamRecordingSourceRuntimeConfiguration field's value. -func (s *MediaInsightsPipeline) SetKinesisVideoStreamRecordingSourceRuntimeConfiguration(v *KinesisVideoStreamRecordingSourceRuntimeConfiguration) *MediaInsightsPipeline { - s.KinesisVideoStreamRecordingSourceRuntimeConfiguration = v +// SetMediaInsightsPipeline sets the MediaInsightsPipeline field's value. +func (s *MediaPipeline) SetMediaInsightsPipeline(v *MediaInsightsPipeline) *MediaPipeline { + s.MediaInsightsPipeline = v return s } -// SetKinesisVideoStreamSourceRuntimeConfiguration sets the KinesisVideoStreamSourceRuntimeConfiguration field's value. -func (s *MediaInsightsPipeline) SetKinesisVideoStreamSourceRuntimeConfiguration(v *KinesisVideoStreamSourceRuntimeConfiguration) *MediaInsightsPipeline { - s.KinesisVideoStreamSourceRuntimeConfiguration = v +// SetMediaLiveConnectorPipeline sets the MediaLiveConnectorPipeline field's value. +func (s *MediaPipeline) SetMediaLiveConnectorPipeline(v *MediaLiveConnectorPipeline) *MediaPipeline { + s.MediaLiveConnectorPipeline = v return s } -// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. -func (s *MediaInsightsPipeline) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipeline { - s.MediaInsightsPipelineConfigurationArn = &v - return s +// The summary of the media pipeline. +type MediaPipelineSummary struct { + _ struct{} `type:"structure"` + + // The ARN of the media pipeline in the summary. + MediaPipelineArn *string `min:"1" type:"string"` + + // The ID of the media pipeline in the summary. + MediaPipelineId *string `min:"36" type:"string"` } -// SetMediaInsightsRuntimeMetadata sets the MediaInsightsRuntimeMetadata field's value. -func (s *MediaInsightsPipeline) SetMediaInsightsRuntimeMetadata(v map[string]*string) *MediaInsightsPipeline { - s.MediaInsightsRuntimeMetadata = v - return s +// 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 MediaPipelineSummary) 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 MediaPipelineSummary) GoString() string { + return s.String() } // SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaInsightsPipeline) SetMediaPipelineArn(v string) *MediaInsightsPipeline { +func (s *MediaPipelineSummary) SetMediaPipelineArn(v string) *MediaPipelineSummary { s.MediaPipelineArn = &v return s } // SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaInsightsPipeline) SetMediaPipelineId(v string) *MediaInsightsPipeline { +func (s *MediaPipelineSummary) SetMediaPipelineId(v string) *MediaPipelineSummary { s.MediaPipelineId = &v return s } -// SetS3RecordingSinkRuntimeConfiguration sets the S3RecordingSinkRuntimeConfiguration field's value. -func (s *MediaInsightsPipeline) SetS3RecordingSinkRuntimeConfiguration(v *S3RecordingSinkRuntimeConfiguration) *MediaInsightsPipeline { - s.S3RecordingSinkRuntimeConfiguration = v - return s -} - -// SetStatus sets the Status field's value. -func (s *MediaInsightsPipeline) SetStatus(v string) *MediaInsightsPipeline { - s.Status = &v - return s -} - -// A structure that contains the configuration settings for a media insights -// pipeline. -type MediaInsightsPipelineConfiguration struct { +// The configuration object for an event concatenation pipeline. +type MeetingEventsConcatenationConfiguration struct { _ struct{} `type:"structure"` - // The time at which the configuration was created. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The elements in the configuration. - Elements []*MediaInsightsPipelineConfigurationElement `type:"list"` - - // The ARN of the configuration. - // - // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaInsightsPipelineConfiguration's - // String and GoString methods. - MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` - - // The ID of the configuration. - MediaInsightsPipelineConfigurationId *string `min:"36" type:"string"` - - // The name of the configuration. - MediaInsightsPipelineConfigurationName *string `min:"2" type:"string"` - - // Lists the rules that trigger a real-time alert. - RealTimeAlertConfiguration *RealTimeAlertConfiguration `type:"structure"` - - // The ARN of the role used by the service to access Amazon Web Services resources. + // Enables or disables the configuration object. // - // ResourceAccessRoleArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaInsightsPipelineConfiguration's - // String and GoString methods. - ResourceAccessRoleArn *string `min:"1" type:"string" sensitive:"true"` - - // The time at which the configuration was last updated. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` } // String returns the string representation. @@ -6924,7 +8342,7 @@ type MediaInsightsPipelineConfiguration 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 MediaInsightsPipelineConfiguration) String() string { +func (s MeetingEventsConcatenationConfiguration) String() string { return awsutil.Prettify(s) } @@ -6933,101 +8351,129 @@ func (s MediaInsightsPipelineConfiguration) 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 MediaInsightsPipelineConfiguration) GoString() string { +func (s MeetingEventsConcatenationConfiguration) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *MediaInsightsPipelineConfiguration) SetCreatedTimestamp(v time.Time) *MediaInsightsPipelineConfiguration { - s.CreatedTimestamp = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *MeetingEventsConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MeetingEventsConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } -// SetElements sets the Elements field's value. -func (s *MediaInsightsPipelineConfiguration) SetElements(v []*MediaInsightsPipelineConfigurationElement) *MediaInsightsPipelineConfiguration { - s.Elements = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. -func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipelineConfiguration { - s.MediaInsightsPipelineConfigurationArn = &v +// SetState sets the State field's value. +func (s *MeetingEventsConcatenationConfiguration) SetState(v string) *MeetingEventsConcatenationConfiguration { + s.State = &v return s } -// SetMediaInsightsPipelineConfigurationId sets the MediaInsightsPipelineConfigurationId field's value. -func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationId(v string) *MediaInsightsPipelineConfiguration { - s.MediaInsightsPipelineConfigurationId = &v - return s -} +// One or more of the resources in the request does not exist in the system. +type NotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` -// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. -func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationName(v string) *MediaInsightsPipelineConfiguration { - s.MediaInsightsPipelineConfigurationName = &v - return s + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` } -// SetRealTimeAlertConfiguration sets the RealTimeAlertConfiguration field's value. -func (s *MediaInsightsPipelineConfiguration) SetRealTimeAlertConfiguration(v *RealTimeAlertConfiguration) *MediaInsightsPipelineConfiguration { - s.RealTimeAlertConfiguration = v - return s +// 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 NotFoundException) String() string { + return awsutil.Prettify(s) } -// SetResourceAccessRoleArn sets the ResourceAccessRoleArn field's value. -func (s *MediaInsightsPipelineConfiguration) SetResourceAccessRoleArn(v string) *MediaInsightsPipelineConfiguration { - s.ResourceAccessRoleArn = &v - return 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 NotFoundException) GoString() string { + return s.String() } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *MediaInsightsPipelineConfiguration) SetUpdatedTimestamp(v time.Time) *MediaInsightsPipelineConfiguration { - s.UpdatedTimestamp = &v - return s +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + RespMetadata: v, + } } -// An element in a media insights pipeline configuration. -type MediaInsightsPipelineConfigurationElement struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s *NotFoundException) Code() string { + return "NotFoundException" +} - // The analytics configuration settings for transcribing audio in a media insights - // pipeline configuration element. - AmazonTranscribeCallAnalyticsProcessorConfiguration *AmazonTranscribeCallAnalyticsProcessorConfiguration `type:"structure"` +// Message returns the exception's message. +func (s *NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The transcription processor configuration settings in a media insights pipeline - // configuration element. - AmazonTranscribeProcessorConfiguration *AmazonTranscribeProcessorConfiguration `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *NotFoundException) OrigErr() error { + return nil +} - // The configuration settings for the Kinesis Data Stream Sink in a media insights - // pipeline configuration element. - KinesisDataStreamSinkConfiguration *KinesisDataStreamSinkConfiguration `type:"structure"` +func (s *NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} - // The configuration settings for the Amazon Web Services Lambda sink in a media - // insights pipeline configuration element. - LambdaFunctionSinkConfiguration *LambdaFunctionSinkConfiguration `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s *NotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The configuration settings for the Amazon S3 recording bucket in a media - // insights pipeline configuration element. - S3RecordingSinkConfiguration *S3RecordingSinkConfiguration `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s *NotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} - // The configuration settings for an SNS topic sink in a media insights pipeline - // configuration element. - SnsTopicSinkConfiguration *SnsTopicSinkConfiguration `type:"structure"` +// Allows you to specify additional settings for your Call Analytics post-call +// request, including output locations for your redacted transcript, which IAM +// role to use, and which encryption key to use. +// +// DataAccessRoleArn and OutputLocation are required fields. +// +// PostCallAnalyticsSettings provides the same insights as a Call Analytics +// post-call transcription. For more information, refer to Post-call analytics +// with real-time transcriptions (https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html) +// in the Amazon Transcribe Developer Guide. +type PostCallAnalyticsSettings struct { + _ struct{} `type:"structure"` - // The configuration settings for an SQS queue sink in a media insights pipeline - // configuration element. - SqsQueueSinkConfiguration *SqsQueueSinkConfiguration `type:"structure"` + // The content redaction output settings for a post-call analysis task. + ContentRedactionOutput *string `type:"string" enum:"ContentRedactionOutput_"` - // The element type. + // The ARN of the role used by Amazon Web Services Transcribe to upload your + // post call analysis. For more information, see Post-call analytics with real-time + // transcriptions (https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html) + // in the Amazon Transcribe Developer Guide. // - // Type is a required field - Type *string `type:"string" required:"true" enum:"MediaInsightsPipelineConfigurationElementType"` + // DataAccessRoleArn is a required field + DataAccessRoleArn *string `type:"string" required:"true"` - // The voice analytics configuration settings in a media insights pipeline configuration - // element. - VoiceAnalyticsProcessorConfiguration *VoiceAnalyticsProcessorConfiguration `type:"structure"` + // The ID of the KMS (Key Management Service) key used to encrypt the output. + OutputEncryptionKMSKeyId *string `type:"string"` - // The configuration settings for the VoiceEnhancementSinkConfiguration element. - VoiceEnhancementSinkConfiguration *VoiceEnhancementSinkConfiguration `type:"structure"` + // The URL of the Amazon S3 bucket that contains the post-call data. + // + // OutputLocation is a required field + OutputLocation *string `type:"string" required:"true"` } // String returns the string representation. @@ -7035,7 +8481,7 @@ type MediaInsightsPipelineConfigurationElement 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 MediaInsightsPipelineConfigurationElement) String() string { +func (s PostCallAnalyticsSettings) String() string { return awsutil.Prettify(s) } @@ -7044,50 +8490,18 @@ func (s MediaInsightsPipelineConfigurationElement) 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 MediaInsightsPipelineConfigurationElement) GoString() string { +func (s PostCallAnalyticsSettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MediaInsightsPipelineConfigurationElement) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MediaInsightsPipelineConfigurationElement"} - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.AmazonTranscribeCallAnalyticsProcessorConfiguration != nil { - if err := s.AmazonTranscribeCallAnalyticsProcessorConfiguration.Validate(); err != nil { - invalidParams.AddNested("AmazonTranscribeCallAnalyticsProcessorConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.AmazonTranscribeProcessorConfiguration != nil { - if err := s.AmazonTranscribeProcessorConfiguration.Validate(); err != nil { - invalidParams.AddNested("AmazonTranscribeProcessorConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.KinesisDataStreamSinkConfiguration != nil { - if err := s.KinesisDataStreamSinkConfiguration.Validate(); err != nil { - invalidParams.AddNested("KinesisDataStreamSinkConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.LambdaFunctionSinkConfiguration != nil { - if err := s.LambdaFunctionSinkConfiguration.Validate(); err != nil { - invalidParams.AddNested("LambdaFunctionSinkConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.S3RecordingSinkConfiguration != nil { - if err := s.S3RecordingSinkConfiguration.Validate(); err != nil { - invalidParams.AddNested("S3RecordingSinkConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.SnsTopicSinkConfiguration != nil { - if err := s.SnsTopicSinkConfiguration.Validate(); err != nil { - invalidParams.AddNested("SnsTopicSinkConfiguration", err.(request.ErrInvalidParams)) - } +func (s *PostCallAnalyticsSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PostCallAnalyticsSettings"} + if s.DataAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) } - if s.SqsQueueSinkConfiguration != nil { - if err := s.SqsQueueSinkConfiguration.Validate(); err != nil { - invalidParams.AddNested("SqsQueueSinkConfiguration", err.(request.ErrInvalidParams)) - } + if s.OutputLocation == nil { + invalidParams.Add(request.NewErrParamRequired("OutputLocation")) } if invalidParams.Len() > 0 { @@ -7096,82 +8510,72 @@ func (s *MediaInsightsPipelineConfigurationElement) Validate() error { return nil } -// SetAmazonTranscribeCallAnalyticsProcessorConfiguration sets the AmazonTranscribeCallAnalyticsProcessorConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetAmazonTranscribeCallAnalyticsProcessorConfiguration(v *AmazonTranscribeCallAnalyticsProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { - s.AmazonTranscribeCallAnalyticsProcessorConfiguration = v - return s -} - -// SetAmazonTranscribeProcessorConfiguration sets the AmazonTranscribeProcessorConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetAmazonTranscribeProcessorConfiguration(v *AmazonTranscribeProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { - s.AmazonTranscribeProcessorConfiguration = v +// SetContentRedactionOutput sets the ContentRedactionOutput field's value. +func (s *PostCallAnalyticsSettings) SetContentRedactionOutput(v string) *PostCallAnalyticsSettings { + s.ContentRedactionOutput = &v return s } -// SetKinesisDataStreamSinkConfiguration sets the KinesisDataStreamSinkConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetKinesisDataStreamSinkConfiguration(v *KinesisDataStreamSinkConfiguration) *MediaInsightsPipelineConfigurationElement { - s.KinesisDataStreamSinkConfiguration = v +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *PostCallAnalyticsSettings) SetDataAccessRoleArn(v string) *PostCallAnalyticsSettings { + s.DataAccessRoleArn = &v return s } -// SetLambdaFunctionSinkConfiguration sets the LambdaFunctionSinkConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetLambdaFunctionSinkConfiguration(v *LambdaFunctionSinkConfiguration) *MediaInsightsPipelineConfigurationElement { - s.LambdaFunctionSinkConfiguration = v +// SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value. +func (s *PostCallAnalyticsSettings) SetOutputEncryptionKMSKeyId(v string) *PostCallAnalyticsSettings { + s.OutputEncryptionKMSKeyId = &v return s } -// SetS3RecordingSinkConfiguration sets the S3RecordingSinkConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetS3RecordingSinkConfiguration(v *S3RecordingSinkConfiguration) *MediaInsightsPipelineConfigurationElement { - s.S3RecordingSinkConfiguration = v +// SetOutputLocation sets the OutputLocation field's value. +func (s *PostCallAnalyticsSettings) SetOutputLocation(v string) *PostCallAnalyticsSettings { + s.OutputLocation = &v return s } -// SetSnsTopicSinkConfiguration sets the SnsTopicSinkConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetSnsTopicSinkConfiguration(v *SnsTopicSinkConfiguration) *MediaInsightsPipelineConfigurationElement { - s.SnsTopicSinkConfiguration = v - return s -} +// Defines the configuration for a presenter-only video tile. +type PresenterOnlyConfiguration struct { + _ struct{} `type:"structure"` -// SetSqsQueueSinkConfiguration sets the SqsQueueSinkConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetSqsQueueSinkConfiguration(v *SqsQueueSinkConfiguration) *MediaInsightsPipelineConfigurationElement { - s.SqsQueueSinkConfiguration = v - return s + // Defines the position of the presenter video tile. Default: TopRight. + PresenterPosition *string `type:"string" enum:"PresenterPosition"` } -// SetType sets the Type field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetType(v string) *MediaInsightsPipelineConfigurationElement { - s.Type = &v - return s +// 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 PresenterOnlyConfiguration) String() string { + return awsutil.Prettify(s) } -// SetVoiceAnalyticsProcessorConfiguration sets the VoiceAnalyticsProcessorConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetVoiceAnalyticsProcessorConfiguration(v *VoiceAnalyticsProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { - s.VoiceAnalyticsProcessorConfiguration = v - return 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 PresenterOnlyConfiguration) GoString() string { + return s.String() } -// SetVoiceEnhancementSinkConfiguration sets the VoiceEnhancementSinkConfiguration field's value. -func (s *MediaInsightsPipelineConfigurationElement) SetVoiceEnhancementSinkConfiguration(v *VoiceEnhancementSinkConfiguration) *MediaInsightsPipelineConfigurationElement { - s.VoiceEnhancementSinkConfiguration = v +// SetPresenterPosition sets the PresenterPosition field's value. +func (s *PresenterOnlyConfiguration) SetPresenterPosition(v string) *PresenterOnlyConfiguration { + s.PresenterPosition = &v return s } -// A summary of the media insights pipeline configuration. -type MediaInsightsPipelineConfigurationSummary struct { +// A structure that contains the configuration settings for real-time alerts. +type RealTimeAlertConfiguration struct { _ struct{} `type:"structure"` - // The ARN of the media insights pipeline configuration. - // - // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaInsightsPipelineConfigurationSummary's - // String and GoString methods. - MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` - - // The ID of the media insights pipeline configuration. - MediaInsightsPipelineConfigurationId *string `min:"36" type:"string"` + // Turns off real-time alerts. + Disabled *bool `type:"boolean"` - // The name of the media insights pipeline configuration. - MediaInsightsPipelineConfigurationName *string `min:"2" type:"string"` + // The rules in the alert. Rules specify the words or phrases that you want + // to be notified about. + Rules []*RealTimeAlertRule `min:"1" type:"list"` } // String returns the string representation. @@ -7179,7 +8583,7 @@ type MediaInsightsPipelineConfigurationSummary 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 MediaInsightsPipelineConfigurationSummary) String() string { +func (s RealTimeAlertConfiguration) String() string { return awsutil.Prettify(s) } @@ -7188,37 +8592,62 @@ func (s MediaInsightsPipelineConfigurationSummary) 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 MediaInsightsPipelineConfigurationSummary) GoString() string { +func (s RealTimeAlertConfiguration) GoString() string { return s.String() } -// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. -func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipelineConfigurationSummary { - s.MediaInsightsPipelineConfigurationArn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *RealTimeAlertConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RealTimeAlertConfiguration"} + if s.Rules != nil && len(s.Rules) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Rules", 1)) + } + if s.Rules != nil { + for i, v := range s.Rules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetMediaInsightsPipelineConfigurationId sets the MediaInsightsPipelineConfigurationId field's value. -func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationId(v string) *MediaInsightsPipelineConfigurationSummary { - s.MediaInsightsPipelineConfigurationId = &v +// SetDisabled sets the Disabled field's value. +func (s *RealTimeAlertConfiguration) SetDisabled(v bool) *RealTimeAlertConfiguration { + s.Disabled = &v return s } -// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. -func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationName(v string) *MediaInsightsPipelineConfigurationSummary { - s.MediaInsightsPipelineConfigurationName = &v +// SetRules sets the Rules field's value. +func (s *RealTimeAlertConfiguration) SetRules(v []*RealTimeAlertRule) *RealTimeAlertConfiguration { + s.Rules = v return s } -// The status of the pipeline element. -type MediaInsightsPipelineElementStatus struct { +// Specifies the words or phrases that trigger an alert. +type RealTimeAlertRule struct { _ struct{} `type:"structure"` - // The element's status. - Status *string `type:"string" enum:"MediaPipelineElementStatus"` + // Specifies the issue detection settings for a real-time alert rule. + IssueDetectionConfiguration *IssueDetectionConfiguration `type:"structure"` + + // Specifies the settings for matching the keywords in a real-time alert rule. + KeywordMatchConfiguration *KeywordMatchConfiguration `type:"structure"` + + // Specifies the settings for predicting sentiment in a real-time alert rule. + SentimentConfiguration *SentimentConfiguration `type:"structure"` - // The type of status. - Type *string `type:"string" enum:"MediaInsightsPipelineConfigurationElementType"` + // The type of alert rule. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"RealTimeAlertRuleType"` } // String returns the string representation. @@ -7226,7 +8655,7 @@ type MediaInsightsPipelineElementStatus 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 MediaInsightsPipelineElementStatus) String() string { +func (s RealTimeAlertRule) String() string { return awsutil.Prettify(s) } @@ -7235,46 +8664,68 @@ func (s MediaInsightsPipelineElementStatus) 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 MediaInsightsPipelineElementStatus) GoString() string { +func (s RealTimeAlertRule) GoString() string { return s.String() } -// SetStatus sets the Status field's value. -func (s *MediaInsightsPipelineElementStatus) SetStatus(v string) *MediaInsightsPipelineElementStatus { - s.Status = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *RealTimeAlertRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RealTimeAlertRule"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.IssueDetectionConfiguration != nil { + if err := s.IssueDetectionConfiguration.Validate(); err != nil { + invalidParams.AddNested("IssueDetectionConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.KeywordMatchConfiguration != nil { + if err := s.KeywordMatchConfiguration.Validate(); err != nil { + invalidParams.AddNested("KeywordMatchConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SentimentConfiguration != nil { + if err := s.SentimentConfiguration.Validate(); err != nil { + invalidParams.AddNested("SentimentConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIssueDetectionConfiguration sets the IssueDetectionConfiguration field's value. +func (s *RealTimeAlertRule) SetIssueDetectionConfiguration(v *IssueDetectionConfiguration) *RealTimeAlertRule { + s.IssueDetectionConfiguration = v + return s +} + +// SetKeywordMatchConfiguration sets the KeywordMatchConfiguration field's value. +func (s *RealTimeAlertRule) SetKeywordMatchConfiguration(v *KeywordMatchConfiguration) *RealTimeAlertRule { + s.KeywordMatchConfiguration = v + return s +} + +// SetSentimentConfiguration sets the SentimentConfiguration field's value. +func (s *RealTimeAlertRule) SetSentimentConfiguration(v *SentimentConfiguration) *RealTimeAlertRule { + s.SentimentConfiguration = v return s } // SetType sets the Type field's value. -func (s *MediaInsightsPipelineElementStatus) SetType(v string) *MediaInsightsPipelineElementStatus { +func (s *RealTimeAlertRule) SetType(v string) *RealTimeAlertRule { s.Type = &v return s } -// The connector pipeline. -type MediaLiveConnectorPipeline struct { +// A structure that holds the settings for recording media. +type RecordingStreamConfiguration struct { _ struct{} `type:"structure"` - // The time at which the connector pipeline was created. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The connector pipeline's ARN. - MediaPipelineArn *string `min:"1" type:"string"` - - // The connector pipeline's ID. - MediaPipelineId *string `min:"36" type:"string"` - - // The connector pipeline's data sinks. - Sinks []*LiveConnectorSinkConfiguration `min:"1" type:"list"` - - // The connector pipeline's data sources. - Sources []*LiveConnectorSourceConfiguration `min:"1" type:"list"` - - // The connector pipeline's status. - Status *string `type:"string" enum:"MediaPipelineStatus"` - - // The time at which the connector pipeline was last updated. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The ARN of the recording stream. + StreamArn *string `min:"1" type:"string"` } // String returns the string representation. @@ -7282,7 +8733,7 @@ type MediaLiveConnectorPipeline 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 MediaLiveConnectorPipeline) String() string { +func (s RecordingStreamConfiguration) String() string { return awsutil.Prettify(s) } @@ -7291,68 +8742,40 @@ func (s MediaLiveConnectorPipeline) 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 MediaLiveConnectorPipeline) GoString() string { +func (s RecordingStreamConfiguration) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *MediaLiveConnectorPipeline) SetCreatedTimestamp(v time.Time) *MediaLiveConnectorPipeline { - s.CreatedTimestamp = &v - return s -} - -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaLiveConnectorPipeline) SetMediaPipelineArn(v string) *MediaLiveConnectorPipeline { - s.MediaPipelineArn = &v - return s -} - -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaLiveConnectorPipeline) SetMediaPipelineId(v string) *MediaLiveConnectorPipeline { - s.MediaPipelineId = &v - return s -} - -// SetSinks sets the Sinks field's value. -func (s *MediaLiveConnectorPipeline) SetSinks(v []*LiveConnectorSinkConfiguration) *MediaLiveConnectorPipeline { - s.Sinks = v - return s -} - -// SetSources sets the Sources field's value. -func (s *MediaLiveConnectorPipeline) SetSources(v []*LiveConnectorSourceConfiguration) *MediaLiveConnectorPipeline { - s.Sources = v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *RecordingStreamConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RecordingStreamConfiguration"} + if s.StreamArn != nil && len(*s.StreamArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamArn", 1)) + } -// SetStatus sets the Status field's value. -func (s *MediaLiveConnectorPipeline) SetStatus(v string) *MediaLiveConnectorPipeline { - s.Status = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *MediaLiveConnectorPipeline) SetUpdatedTimestamp(v time.Time) *MediaLiveConnectorPipeline { - s.UpdatedTimestamp = &v +// SetStreamArn sets the StreamArn field's value. +func (s *RecordingStreamConfiguration) SetStreamArn(v string) *RecordingStreamConfiguration { + s.StreamArn = &v return s } -// A pipeline consisting of a media capture, media concatenation, or live-streaming -// pipeline. -type MediaPipeline struct { - _ struct{} `type:"structure"` - - // A pipeline that enables users to capture audio and video. - MediaCapturePipeline *MediaCapturePipeline `type:"structure"` +// The request exceeds the resource limit. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The media concatenation pipeline in a media pipeline. - MediaConcatenationPipeline *MediaConcatenationPipeline `type:"structure"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // The media insights pipeline of a media pipeline. - MediaInsightsPipeline *MediaInsightsPipeline `type:"structure"` + Message_ *string `locationName:"Message" type:"string"` - // The connector pipeline of the media pipeline. - MediaLiveConnectorPipeline *MediaLiveConnectorPipeline `type:"structure"` + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` } // String returns the string representation. @@ -7360,7 +8783,7 @@ type MediaPipeline 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 MediaPipeline) String() string { +func (s ResourceLimitExceededException) String() string { return awsutil.Prettify(s) } @@ -7369,43 +8792,60 @@ func (s MediaPipeline) 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 MediaPipeline) GoString() string { +func (s ResourceLimitExceededException) GoString() string { return s.String() } -// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. -func (s *MediaPipeline) SetMediaCapturePipeline(v *MediaCapturePipeline) *MediaPipeline { - s.MediaCapturePipeline = v - return s +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + RespMetadata: v, + } } -// SetMediaConcatenationPipeline sets the MediaConcatenationPipeline field's value. -func (s *MediaPipeline) SetMediaConcatenationPipeline(v *MediaConcatenationPipeline) *MediaPipeline { - s.MediaConcatenationPipeline = v - return s +// Code returns the exception type name. +func (s *ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" } -// SetMediaInsightsPipeline sets the MediaInsightsPipeline field's value. -func (s *MediaPipeline) SetMediaInsightsPipeline(v *MediaInsightsPipeline) *MediaPipeline { - s.MediaInsightsPipeline = v - return s +// Message returns the exception's message. +func (s *ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetMediaLiveConnectorPipeline sets the MediaLiveConnectorPipeline field's value. -func (s *MediaPipeline) SetMediaLiveConnectorPipeline(v *MediaLiveConnectorPipeline) *MediaPipeline { - s.MediaLiveConnectorPipeline = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceLimitExceededException) OrigErr() error { + return nil } -// The summary of the media pipeline. -type MediaPipelineSummary struct { - _ struct{} `type:"structure"` +func (s *ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} - // The ARN of the media pipeline in the summary. - MediaPipelineArn *string `min:"1" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceLimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The ID of the media pipeline in the summary. - MediaPipelineId *string `min:"36" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s *ResourceLimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The configuration settings for the S3 bucket. +type S3BucketSinkConfiguration struct { + _ struct{} `type:"structure"` + + // The destination URL of the S3 bucket. + // + // Destination is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by S3BucketSinkConfiguration's + // String and GoString methods. + // + // Destination is a required field + Destination *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -7413,7 +8853,7 @@ type MediaPipelineSummary 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 MediaPipelineSummary) String() string { +func (s S3BucketSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -7422,30 +8862,47 @@ func (s MediaPipelineSummary) 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 MediaPipelineSummary) GoString() string { +func (s S3BucketSinkConfiguration) GoString() string { return s.String() } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaPipelineSummary) SetMediaPipelineArn(v string) *MediaPipelineSummary { - s.MediaPipelineArn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3BucketSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3BucketSinkConfiguration"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.Destination != nil && len(*s.Destination) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaPipelineSummary) SetMediaPipelineId(v string) *MediaPipelineSummary { - s.MediaPipelineId = &v +// SetDestination sets the Destination field's value. +func (s *S3BucketSinkConfiguration) SetDestination(v string) *S3BucketSinkConfiguration { + s.Destination = &v return s } -// The configuration object for an event concatenation pipeline. -type MeetingEventsConcatenationConfiguration struct { +// The structure that holds the settings for transmitting media to the Amazon +// S3 bucket. These values are used as defaults if S3RecordingSinkRuntimeConfiguration +// is not specified. +type S3RecordingSinkConfiguration struct { _ struct{} `type:"structure"` - // Enables or disables the configuration object. + // The default URI of the Amazon S3 bucket used as the recording sink. // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` + // Destination is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by S3RecordingSinkConfiguration's + // String and GoString methods. + Destination *string `min:"1" type:"string" sensitive:"true"` + + // The default file format for the media files sent to the Amazon S3 bucket. + RecordingFileFormat *string `type:"string" enum:"RecordingFileFormat"` } // String returns the string representation. @@ -7453,7 +8910,7 @@ type MeetingEventsConcatenationConfiguration 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 MeetingEventsConcatenationConfiguration) String() string { +func (s S3RecordingSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -7462,15 +8919,15 @@ func (s MeetingEventsConcatenationConfiguration) 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 MeetingEventsConcatenationConfiguration) GoString() string { +func (s S3RecordingSinkConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MeetingEventsConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MeetingEventsConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +func (s *S3RecordingSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3RecordingSinkConfiguration"} + if s.Destination != nil && len(*s.Destination) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) } if invalidParams.Len() > 0 { @@ -7479,23 +8936,37 @@ func (s *MeetingEventsConcatenationConfiguration) Validate() error { return nil } -// SetState sets the State field's value. -func (s *MeetingEventsConcatenationConfiguration) SetState(v string) *MeetingEventsConcatenationConfiguration { - s.State = &v +// SetDestination sets the Destination field's value. +func (s *S3RecordingSinkConfiguration) SetDestination(v string) *S3RecordingSinkConfiguration { + s.Destination = &v return s } -// One or more of the resources in the request does not exist in the system. -type NotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetRecordingFileFormat sets the RecordingFileFormat field's value. +func (s *S3RecordingSinkConfiguration) SetRecordingFileFormat(v string) *S3RecordingSinkConfiguration { + s.RecordingFileFormat = &v + return s +} - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +// A structure that holds the settings for transmitting media files to the Amazon +// S3 bucket. If specified, the settings in this structure override any settings +// in S3RecordingSinkConfiguration. +type S3RecordingSinkRuntimeConfiguration struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" type:"string"` + // The URI of the S3 bucket used as the sink. + // + // Destination is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by S3RecordingSinkRuntimeConfiguration's + // String and GoString methods. + // + // Destination is a required field + Destination *string `min:"1" type:"string" required:"true" sensitive:"true"` - // The request ID associated with the call responsible for the exception. - RequestId *string `type:"string"` + // The file format for the media files sent to the Amazon S3 bucket. + // + // RecordingFileFormat is a required field + RecordingFileFormat *string `type:"string" required:"true" enum:"RecordingFileFormat"` } // String returns the string representation. @@ -7503,7 +8974,7 @@ type NotFoundException 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 NotFoundException) String() string { +func (s S3RecordingSinkRuntimeConfiguration) String() string { return awsutil.Prettify(s) } @@ -7512,79 +8983,51 @@ func (s NotFoundException) 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 NotFoundException) GoString() string { +func (s S3RecordingSinkRuntimeConfiguration) GoString() string { return s.String() } -func newErrorNotFoundException(v protocol.ResponseMetadata) error { - return &NotFoundException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3RecordingSinkRuntimeConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3RecordingSinkRuntimeConfiguration"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) } -} - -// Code returns the exception type name. -func (s *NotFoundException) Code() string { - return "NotFoundException" -} - -// Message returns the exception's message. -func (s *NotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.Destination != nil && len(*s.Destination) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) + } + if s.RecordingFileFormat == nil { + invalidParams.Add(request.NewErrParamRequired("RecordingFileFormat")) } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *NotFoundException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *NotFoundException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *NotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetDestination sets the Destination field's value. +func (s *S3RecordingSinkRuntimeConfiguration) SetDestination(v string) *S3RecordingSinkRuntimeConfiguration { + s.Destination = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *NotFoundException) RequestID() string { - return s.RespMetadata.RequestID +// SetRecordingFileFormat sets the RecordingFileFormat field's value. +func (s *S3RecordingSinkRuntimeConfiguration) SetRecordingFileFormat(v string) *S3RecordingSinkRuntimeConfiguration { + s.RecordingFileFormat = &v + return s } -// Allows you to specify additional settings for your Call Analytics post-call -// request, including output locations for your redacted transcript, which IAM -// role to use, and which encryption key to use. -// -// DataAccessRoleArn and OutputLocation are required fields. -// -// PostCallAnalyticsSettings provides the same insights as a Call Analytics -// post-call transcription. For more information, refer to Post-call analytics -// with real-time transcriptions (https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html) -// in the Amazon Transcribe Developer Guide. -type PostCallAnalyticsSettings struct { +// The video streams for a specified media pipeline. The total number of video +// streams can't exceed 25. +type SelectedVideoStreams struct { _ struct{} `type:"structure"` - // The content redaction output settings for a post-call analysis task. - ContentRedactionOutput *string `type:"string" enum:"ContentRedactionOutput_"` - - // The ARN of the role used by Amazon Web Services Transcribe to upload your - // post call analysis. For more information, see Post-call analytics with real-time - // transcriptions (https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html) - // in the Amazon Transcribe Developer Guide. - // - // DataAccessRoleArn is a required field - DataAccessRoleArn *string `type:"string" required:"true"` - - // The ID of the KMS (Key Management Service) key used to encrypt the output. - OutputEncryptionKMSKeyId *string `type:"string"` + // The attendee IDs of the streams selected for a media pipeline. + AttendeeIds []*string `min:"1" type:"list"` - // The URL of the Amazon S3 bucket that contains the post-call data. - // - // OutputLocation is a required field - OutputLocation *string `type:"string" required:"true"` + // The external user IDs of the streams selected for a media pipeline. + ExternalUserIds []*string `min:"1" type:"list"` } // String returns the string representation. @@ -7592,7 +9035,7 @@ type PostCallAnalyticsSettings 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 PostCallAnalyticsSettings) String() string { +func (s SelectedVideoStreams) String() string { return awsutil.Prettify(s) } @@ -7601,18 +9044,18 @@ func (s PostCallAnalyticsSettings) 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 PostCallAnalyticsSettings) GoString() string { +func (s SelectedVideoStreams) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PostCallAnalyticsSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PostCallAnalyticsSettings"} - if s.DataAccessRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) +func (s *SelectedVideoStreams) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SelectedVideoStreams"} + if s.AttendeeIds != nil && len(s.AttendeeIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeIds", 1)) } - if s.OutputLocation == nil { - invalidParams.Add(request.NewErrParamRequired("OutputLocation")) + if s.ExternalUserIds != nil && len(s.ExternalUserIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExternalUserIds", 1)) } if invalidParams.Len() > 0 { @@ -7621,36 +9064,37 @@ func (s *PostCallAnalyticsSettings) Validate() error { return nil } -// SetContentRedactionOutput sets the ContentRedactionOutput field's value. -func (s *PostCallAnalyticsSettings) SetContentRedactionOutput(v string) *PostCallAnalyticsSettings { - s.ContentRedactionOutput = &v +// SetAttendeeIds sets the AttendeeIds field's value. +func (s *SelectedVideoStreams) SetAttendeeIds(v []*string) *SelectedVideoStreams { + s.AttendeeIds = v return s } -// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. -func (s *PostCallAnalyticsSettings) SetDataAccessRoleArn(v string) *PostCallAnalyticsSettings { - s.DataAccessRoleArn = &v +// SetExternalUserIds sets the ExternalUserIds field's value. +func (s *SelectedVideoStreams) SetExternalUserIds(v []*string) *SelectedVideoStreams { + s.ExternalUserIds = v return s } -// SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value. -func (s *PostCallAnalyticsSettings) SetOutputEncryptionKMSKeyId(v string) *PostCallAnalyticsSettings { - s.OutputEncryptionKMSKeyId = &v - return s -} +// A structure that contains the configuration settings for a sentiment analysis +// task. +type SentimentConfiguration struct { + _ struct{} `type:"structure"` -// SetOutputLocation sets the OutputLocation field's value. -func (s *PostCallAnalyticsSettings) SetOutputLocation(v string) *PostCallAnalyticsSettings { - s.OutputLocation = &v - return s -} + // The name of the rule in the sentiment configuration. + // + // RuleName is a required field + RuleName *string `min:"2" type:"string" required:"true"` -// Defines the configuration for a presenter-only video tile. -type PresenterOnlyConfiguration struct { - _ struct{} `type:"structure"` + // The type of sentiment, POSITIVE, NEGATIVE, or NEUTRAL. + // + // SentimentType is a required field + SentimentType *string `type:"string" required:"true" enum:"SentimentType"` - // Defines the position of the presenter video tile. Default: TopRight. - PresenterPosition *string `type:"string" enum:"PresenterPosition"` + // Specifies the analysis interval. + // + // TimePeriod is a required field + TimePeriod *int64 `min:"60" type:"integer" required:"true"` } // String returns the string representation. @@ -7658,7 +9102,7 @@ type PresenterOnlyConfiguration 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 PresenterOnlyConfiguration) String() string { +func (s SentimentConfiguration) String() string { return awsutil.Prettify(s) } @@ -7667,26 +9111,64 @@ func (s PresenterOnlyConfiguration) 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 PresenterOnlyConfiguration) GoString() string { +func (s SentimentConfiguration) GoString() string { return s.String() } -// SetPresenterPosition sets the PresenterPosition field's value. -func (s *PresenterOnlyConfiguration) SetPresenterPosition(v string) *PresenterOnlyConfiguration { - s.PresenterPosition = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *SentimentConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SentimentConfiguration"} + if s.RuleName == nil { + invalidParams.Add(request.NewErrParamRequired("RuleName")) + } + if s.RuleName != nil && len(*s.RuleName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) + } + if s.SentimentType == nil { + invalidParams.Add(request.NewErrParamRequired("SentimentType")) + } + if s.TimePeriod == nil { + invalidParams.Add(request.NewErrParamRequired("TimePeriod")) + } + if s.TimePeriod != nil && *s.TimePeriod < 60 { + invalidParams.Add(request.NewErrParamMinValue("TimePeriod", 60)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRuleName sets the RuleName field's value. +func (s *SentimentConfiguration) SetRuleName(v string) *SentimentConfiguration { + s.RuleName = &v + return s +} + +// SetSentimentType sets the SentimentType field's value. +func (s *SentimentConfiguration) SetSentimentType(v string) *SentimentConfiguration { + s.SentimentType = &v + return s +} + +// SetTimePeriod sets the TimePeriod field's value. +func (s *SentimentConfiguration) SetTimePeriod(v int64) *SentimentConfiguration { + s.TimePeriod = &v return s } -// A structure that contains the configuration settings for real-time alerts. -type RealTimeAlertConfiguration struct { - _ struct{} `type:"structure"` +// The service encountered an unexpected error. +type ServiceFailureException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // Turns off real-time alerts. - Disabled *bool `type:"boolean"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // The rules in the alert. Rules specify the words or phrases that you want - // to be notified about. - Rules []*RealTimeAlertRule `min:"1" type:"list"` + Message_ *string `locationName:"Message" type:"string"` + + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` } // String returns the string representation. @@ -7694,7 +9176,7 @@ type RealTimeAlertConfiguration 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 RealTimeAlertConfiguration) String() string { +func (s ServiceFailureException) String() string { return awsutil.Prettify(s) } @@ -7703,62 +9185,59 @@ func (s RealTimeAlertConfiguration) 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 RealTimeAlertConfiguration) GoString() string { +func (s ServiceFailureException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RealTimeAlertConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RealTimeAlertConfiguration"} - if s.Rules != nil && len(s.Rules) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Rules", 1)) - } - if s.Rules != nil { - for i, v := range s.Rules { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) - } - } +func newErrorServiceFailureException(v protocol.ResponseMetadata) error { + return &ServiceFailureException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *ServiceFailureException) Code() string { + return "ServiceFailureException" +} + +// Message returns the exception's message. +func (s *ServiceFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceFailureException) OrigErr() error { return nil } -// SetDisabled sets the Disabled field's value. -func (s *RealTimeAlertConfiguration) SetDisabled(v bool) *RealTimeAlertConfiguration { - s.Disabled = &v - return s +func (s *ServiceFailureException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetRules sets the Rules field's value. -func (s *RealTimeAlertConfiguration) SetRules(v []*RealTimeAlertRule) *RealTimeAlertConfiguration { - s.Rules = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceFailureException) StatusCode() int { + return s.RespMetadata.StatusCode } -// Specifies the words or phrases that trigger an alert. -type RealTimeAlertRule struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s *ServiceFailureException) RequestID() string { + return s.RespMetadata.RequestID +} - // Specifies the issue detection settings for a real-time alert rule. - IssueDetectionConfiguration *IssueDetectionConfiguration `type:"structure"` +// The service is currently unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // Specifies the settings for matching the keywords in a real-time alert rule. - KeywordMatchConfiguration *KeywordMatchConfiguration `type:"structure"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // Specifies the settings for predicting sentiment in a real-time alert rule. - SentimentConfiguration *SentimentConfiguration `type:"structure"` + Message_ *string `locationName:"Message" type:"string"` - // The type of alert rule. - // - // Type is a required field - Type *string `type:"string" required:"true" enum:"RealTimeAlertRuleType"` + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` } // String returns the string representation. @@ -7766,7 +9245,7 @@ type RealTimeAlertRule 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 RealTimeAlertRule) String() string { +func (s ServiceUnavailableException) String() string { return awsutil.Prettify(s) } @@ -7775,68 +9254,58 @@ func (s RealTimeAlertRule) 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 RealTimeAlertRule) GoString() string { +func (s ServiceUnavailableException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RealTimeAlertRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RealTimeAlertRule"} - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.IssueDetectionConfiguration != nil { - if err := s.IssueDetectionConfiguration.Validate(); err != nil { - invalidParams.AddNested("IssueDetectionConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.KeywordMatchConfiguration != nil { - if err := s.KeywordMatchConfiguration.Validate(); err != nil { - invalidParams.AddNested("KeywordMatchConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.SentimentConfiguration != nil { - if err := s.SentimentConfiguration.Validate(); err != nil { - invalidParams.AddNested("SentimentConfiguration", err.(request.ErrInvalidParams)) - } +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s *ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ } - return nil + return "" } -// SetIssueDetectionConfiguration sets the IssueDetectionConfiguration field's value. -func (s *RealTimeAlertRule) SetIssueDetectionConfiguration(v *IssueDetectionConfiguration) *RealTimeAlertRule { - s.IssueDetectionConfiguration = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceUnavailableException) OrigErr() error { + return nil } -// SetKeywordMatchConfiguration sets the KeywordMatchConfiguration field's value. -func (s *RealTimeAlertRule) SetKeywordMatchConfiguration(v *KeywordMatchConfiguration) *RealTimeAlertRule { - s.KeywordMatchConfiguration = v - return s +func (s *ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetSentimentConfiguration sets the SentimentConfiguration field's value. -func (s *RealTimeAlertRule) SetSentimentConfiguration(v *SentimentConfiguration) *RealTimeAlertRule { - s.SentimentConfiguration = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceUnavailableException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetType sets the Type field's value. -func (s *RealTimeAlertRule) SetType(v string) *RealTimeAlertRule { - s.Type = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *ServiceUnavailableException) RequestID() string { + return s.RespMetadata.RequestID } -// A structure that holds the settings for recording media. -type RecordingStreamConfiguration struct { +// The configuration settings for the SNS topic sink. +type SnsTopicSinkConfiguration struct { _ struct{} `type:"structure"` - // The ARN of the recording stream. - StreamArn *string `min:"1" type:"string"` + // The ARN of the SNS sink. + // + // InsightsTarget is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SnsTopicSinkConfiguration's + // String and GoString methods. + InsightsTarget *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -7844,7 +9313,7 @@ type RecordingStreamConfiguration 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 RecordingStreamConfiguration) String() string { +func (s SnsTopicSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -7853,15 +9322,15 @@ func (s RecordingStreamConfiguration) 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 RecordingStreamConfiguration) GoString() string { +func (s SnsTopicSinkConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *RecordingStreamConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RecordingStreamConfiguration"} - if s.StreamArn != nil && len(*s.StreamArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamArn", 1)) +func (s *SnsTopicSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SnsTopicSinkConfiguration"} + if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) } if invalidParams.Len() > 0 { @@ -7870,23 +9339,19 @@ func (s *RecordingStreamConfiguration) Validate() error { return nil } -// SetStreamArn sets the StreamArn field's value. -func (s *RecordingStreamConfiguration) SetStreamArn(v string) *RecordingStreamConfiguration { - s.StreamArn = &v +// SetInsightsTarget sets the InsightsTarget field's value. +func (s *SnsTopicSinkConfiguration) SetInsightsTarget(v string) *SnsTopicSinkConfiguration { + s.InsightsTarget = &v return s } -// The request exceeds the resource limit. -type ResourceLimitExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - - Message_ *string `locationName:"Message" type:"string"` +// Source configuration for a specified media pipeline. +type SourceConfiguration struct { + _ struct{} `type:"structure"` - // The request ID associated with the call responsible for the exception. - RequestId *string `type:"string"` + // The selected video streams for a specified media pipeline. The number of + // video streams can't exceed 25. + SelectedVideoStreams *SelectedVideoStreams `type:"structure"` } // String returns the string representation. @@ -7894,7 +9359,7 @@ type ResourceLimitExceededException 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 ResourceLimitExceededException) String() string { +func (s SourceConfiguration) String() string { return awsutil.Prettify(s) } @@ -7903,60 +9368,47 @@ func (s ResourceLimitExceededException) 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 ResourceLimitExceededException) GoString() string { +func (s SourceConfiguration) GoString() string { return s.String() } -func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { - return &ResourceLimitExceededException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ResourceLimitExceededException) Code() string { - return "ResourceLimitExceededException" -} - -// Message returns the exception's message. -func (s *ResourceLimitExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"} + if s.SelectedVideoStreams != nil { + if err := s.SelectedVideoStreams.Validate(); err != nil { + invalidParams.AddNested("SelectedVideoStreams", err.(request.ErrInvalidParams)) + } } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceLimitExceededException) OrigErr() error { - return nil -} - -func (s *ResourceLimitExceededException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceLimitExceededException) StatusCode() int { - return s.RespMetadata.StatusCode + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// RequestID returns the service's response RequestID for request. -func (s *ResourceLimitExceededException) RequestID() string { - return s.RespMetadata.RequestID +// SetSelectedVideoStreams sets the SelectedVideoStreams field's value. +func (s *SourceConfiguration) SetSelectedVideoStreams(v *SelectedVideoStreams) *SourceConfiguration { + s.SelectedVideoStreams = v + return s } -// The configuration settings for the S3 bucket. -type S3BucketSinkConfiguration struct { +// A representation of an asynchronous request to perform speaker search analysis +// on a media insights pipeline. +type SpeakerSearchTask struct { _ struct{} `type:"structure"` - // The destination URL of the S3 bucket. - // - // Destination is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by S3BucketSinkConfiguration's - // String and GoString methods. - // - // Destination is a required field - Destination *string `min:"1" type:"string" required:"true" sensitive:"true"` + // The time at which a speaker search task was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The speaker search task ID. + SpeakerSearchTaskId *string `min:"36" type:"string"` + + // The status of the speaker search task. + SpeakerSearchTaskStatus *string `type:"string" enum:"MediaPipelineTaskStatus"` + + // The time at which a speaker search task was updated. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -7964,7 +9416,7 @@ type S3BucketSinkConfiguration 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 S3BucketSinkConfiguration) String() string { +func (s SpeakerSearchTask) String() string { return awsutil.Prettify(s) } @@ -7973,47 +9425,44 @@ func (s S3BucketSinkConfiguration) 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 S3BucketSinkConfiguration) GoString() string { +func (s SpeakerSearchTask) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3BucketSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3BucketSinkConfiguration"} - if s.Destination == nil { - invalidParams.Add(request.NewErrParamRequired("Destination")) - } - if s.Destination != nil && len(*s.Destination) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) - } +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *SpeakerSearchTask) SetCreatedTimestamp(v time.Time) *SpeakerSearchTask { + s.CreatedTimestamp = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetSpeakerSearchTaskId sets the SpeakerSearchTaskId field's value. +func (s *SpeakerSearchTask) SetSpeakerSearchTaskId(v string) *SpeakerSearchTask { + s.SpeakerSearchTaskId = &v + return s } -// SetDestination sets the Destination field's value. -func (s *S3BucketSinkConfiguration) SetDestination(v string) *S3BucketSinkConfiguration { - s.Destination = &v +// SetSpeakerSearchTaskStatus sets the SpeakerSearchTaskStatus field's value. +func (s *SpeakerSearchTask) SetSpeakerSearchTaskStatus(v string) *SpeakerSearchTask { + s.SpeakerSearchTaskStatus = &v return s } -// The structure that holds the settings for transmitting media to the Amazon -// S3 bucket. These values are used as defaults if S3RecordingSinkRuntimeConfiguration -// is not specified. -type S3RecordingSinkConfiguration struct { +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *SpeakerSearchTask) SetUpdatedTimestamp(v time.Time) *SpeakerSearchTask { + s.UpdatedTimestamp = &v + return s +} + +// The configuration settings for the SQS sink. +type SqsQueueSinkConfiguration struct { _ struct{} `type:"structure"` - // The default URI of the Amazon S3 bucket used as the recording sink. + // The ARN of the SQS sink. // - // Destination is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by S3RecordingSinkConfiguration's + // InsightsTarget is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SqsQueueSinkConfiguration's // String and GoString methods. - Destination *string `min:"1" type:"string" sensitive:"true"` - - // The default file format for the media files sent to the Amazon S3 bucket. - RecordingFileFormat *string `type:"string" enum:"RecordingFileFormat"` + InsightsTarget *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -8021,7 +9470,7 @@ type S3RecordingSinkConfiguration 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 S3RecordingSinkConfiguration) String() string { +func (s SqsQueueSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -8030,15 +9479,15 @@ func (s S3RecordingSinkConfiguration) 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 S3RecordingSinkConfiguration) GoString() string { +func (s SqsQueueSinkConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *S3RecordingSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3RecordingSinkConfiguration"} - if s.Destination != nil && len(*s.Destination) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) +func (s *SqsQueueSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SqsQueueSinkConfiguration"} + if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) } if invalidParams.Len() > 0 { @@ -8047,37 +9496,41 @@ func (s *S3RecordingSinkConfiguration) Validate() error { return nil } -// SetDestination sets the Destination field's value. -func (s *S3RecordingSinkConfiguration) SetDestination(v string) *S3RecordingSinkConfiguration { - s.Destination = &v - return s -} - -// SetRecordingFileFormat sets the RecordingFileFormat field's value. -func (s *S3RecordingSinkConfiguration) SetRecordingFileFormat(v string) *S3RecordingSinkConfiguration { - s.RecordingFileFormat = &v +// SetInsightsTarget sets the InsightsTarget field's value. +func (s *SqsQueueSinkConfiguration) SetInsightsTarget(v string) *SqsQueueSinkConfiguration { + s.InsightsTarget = &v return s } -// A structure that holds the settings for transmitting media files to the Amazon -// S3 bucket. If specified, the settings in this structure override any settings -// in S3RecordingSinkConfiguration. -type S3RecordingSinkRuntimeConfiguration struct { +type StartSpeakerSearchTaskInput struct { _ struct{} `type:"structure"` - // The URI of the S3 bucket used as the sink. + // The unique identifier for the client request. Use a different token for different + // speaker search tasks. // - // Destination is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by S3RecordingSinkRuntimeConfiguration's + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by StartSpeakerSearchTaskInput's // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The unique identifier of the resource to be updated. Valid values include + // the ID and ARN of the media insights pipeline. // - // Destination is a required field - Destination *string `min:"1" type:"string" required:"true" sensitive:"true"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` - // The file format for the media files sent to the Amazon S3 bucket. + // The task configuration for the Kinesis video stream source of the media insights + // pipeline. + KinesisVideoStreamSourceTaskConfiguration *KinesisVideoStreamSourceTaskConfiguration `type:"structure"` + + // The ARN of the voice profile domain that will store the voice profile. // - // RecordingFileFormat is a required field - RecordingFileFormat *string `type:"string" required:"true" enum:"RecordingFileFormat"` + // VoiceProfileDomainArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by StartSpeakerSearchTaskInput's + // String and GoString methods. + // + // VoiceProfileDomainArn is a required field + VoiceProfileDomainArn *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -8085,7 +9538,7 @@ type S3RecordingSinkRuntimeConfiguration 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 S3RecordingSinkRuntimeConfiguration) String() string { +func (s StartSpeakerSearchTaskInput) String() string { return awsutil.Prettify(s) } @@ -8094,21 +9547,32 @@ func (s S3RecordingSinkRuntimeConfiguration) 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 S3RecordingSinkRuntimeConfiguration) GoString() string { +func (s StartSpeakerSearchTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *S3RecordingSinkRuntimeConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3RecordingSinkRuntimeConfiguration"} - if s.Destination == nil { - invalidParams.Add(request.NewErrParamRequired("Destination")) +func (s *StartSpeakerSearchTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartSpeakerSearchTaskInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) } - if s.Destination != nil && len(*s.Destination) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) } - if s.RecordingFileFormat == nil { - invalidParams.Add(request.NewErrParamRequired("RecordingFileFormat")) + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.VoiceProfileDomainArn == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileDomainArn")) + } + if s.VoiceProfileDomainArn != nil && len(*s.VoiceProfileDomainArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileDomainArn", 1)) + } + if s.KinesisVideoStreamSourceTaskConfiguration != nil { + if err := s.KinesisVideoStreamSourceTaskConfiguration.Validate(); err != nil { + invalidParams.AddNested("KinesisVideoStreamSourceTaskConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -8117,28 +9581,35 @@ func (s *S3RecordingSinkRuntimeConfiguration) Validate() error { return nil } -// SetDestination sets the Destination field's value. -func (s *S3RecordingSinkRuntimeConfiguration) SetDestination(v string) *S3RecordingSinkRuntimeConfiguration { - s.Destination = &v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *StartSpeakerSearchTaskInput) SetClientRequestToken(v string) *StartSpeakerSearchTaskInput { + s.ClientRequestToken = &v return s } -// SetRecordingFileFormat sets the RecordingFileFormat field's value. -func (s *S3RecordingSinkRuntimeConfiguration) SetRecordingFileFormat(v string) *S3RecordingSinkRuntimeConfiguration { - s.RecordingFileFormat = &v +// SetIdentifier sets the Identifier field's value. +func (s *StartSpeakerSearchTaskInput) SetIdentifier(v string) *StartSpeakerSearchTaskInput { + s.Identifier = &v return s } -// The video streams for a specified media pipeline. The total number of video -// streams can't exceed 25. -type SelectedVideoStreams struct { - _ struct{} `type:"structure"` +// SetKinesisVideoStreamSourceTaskConfiguration sets the KinesisVideoStreamSourceTaskConfiguration field's value. +func (s *StartSpeakerSearchTaskInput) SetKinesisVideoStreamSourceTaskConfiguration(v *KinesisVideoStreamSourceTaskConfiguration) *StartSpeakerSearchTaskInput { + s.KinesisVideoStreamSourceTaskConfiguration = v + return s +} - // The attendee IDs of the streams selected for a media pipeline. - AttendeeIds []*string `min:"1" type:"list"` +// SetVoiceProfileDomainArn sets the VoiceProfileDomainArn field's value. +func (s *StartSpeakerSearchTaskInput) SetVoiceProfileDomainArn(v string) *StartSpeakerSearchTaskInput { + s.VoiceProfileDomainArn = &v + return s +} - // The external user IDs of the streams selected for a media pipeline. - ExternalUserIds []*string `min:"1" type:"list"` +type StartSpeakerSearchTaskOutput struct { + _ struct{} `type:"structure"` + + // The details of the speaker search task. + SpeakerSearchTask *SpeakerSearchTask `type:"structure"` } // String returns the string representation. @@ -8146,7 +9617,7 @@ type SelectedVideoStreams 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 SelectedVideoStreams) String() string { +func (s StartSpeakerSearchTaskOutput) String() string { return awsutil.Prettify(s) } @@ -8155,57 +9626,41 @@ func (s SelectedVideoStreams) 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 SelectedVideoStreams) GoString() string { +func (s StartSpeakerSearchTaskOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SelectedVideoStreams) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SelectedVideoStreams"} - if s.AttendeeIds != nil && len(s.AttendeeIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttendeeIds", 1)) - } - if s.ExternalUserIds != nil && len(s.ExternalUserIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExternalUserIds", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAttendeeIds sets the AttendeeIds field's value. -func (s *SelectedVideoStreams) SetAttendeeIds(v []*string) *SelectedVideoStreams { - s.AttendeeIds = v - return s -} - -// SetExternalUserIds sets the ExternalUserIds field's value. -func (s *SelectedVideoStreams) SetExternalUserIds(v []*string) *SelectedVideoStreams { - s.ExternalUserIds = v +// SetSpeakerSearchTask sets the SpeakerSearchTask field's value. +func (s *StartSpeakerSearchTaskOutput) SetSpeakerSearchTask(v *SpeakerSearchTask) *StartSpeakerSearchTaskOutput { + s.SpeakerSearchTask = v return s } -// A structure that contains the configuration settings for a sentiment analysis -// task. -type SentimentConfiguration struct { +type StartVoiceToneAnalysisTaskInput struct { _ struct{} `type:"structure"` - // The name of the rule in the sentiment configuration. + // The unique identifier for the client request. Use a different token for different + // voice tone analysis tasks. // - // RuleName is a required field - RuleName *string `min:"2" type:"string" required:"true"` + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by StartVoiceToneAnalysisTaskInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - // The type of sentiment, POSITIVE, NEGATIVE, or NEUTRAL. + // The unique identifier of the resource to be updated. Valid values include + // the ID and ARN of the media insights pipeline. // - // SentimentType is a required field - SentimentType *string `type:"string" required:"true" enum:"SentimentType"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` - // Specifies the analysis interval. + // The task configuration for the Kinesis video stream source of the media insights + // pipeline. + KinesisVideoStreamSourceTaskConfiguration *KinesisVideoStreamSourceTaskConfiguration `type:"structure"` + + // The language code. // - // TimePeriod is a required field - TimePeriod *int64 `min:"60" type:"integer" required:"true"` + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"VoiceAnalyticsLanguageCode"` } // String returns the string representation. @@ -8213,7 +9668,7 @@ type SentimentConfiguration 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 SentimentConfiguration) String() string { +func (s StartVoiceToneAnalysisTaskInput) String() string { return awsutil.Prettify(s) } @@ -8222,27 +9677,29 @@ func (s SentimentConfiguration) 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 SentimentConfiguration) GoString() string { +func (s StartVoiceToneAnalysisTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SentimentConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SentimentConfiguration"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) +func (s *StartVoiceToneAnalysisTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartVoiceToneAnalysisTaskInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) } - if s.RuleName != nil && len(*s.RuleName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) } - if s.SentimentType == nil { - invalidParams.Add(request.NewErrParamRequired("SentimentType")) + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) } - if s.TimePeriod == nil { - invalidParams.Add(request.NewErrParamRequired("TimePeriod")) + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) } - if s.TimePeriod != nil && *s.TimePeriod < 60 { - invalidParams.Add(request.NewErrParamMinValue("TimePeriod", 60)) + if s.KinesisVideoStreamSourceTaskConfiguration != nil { + if err := s.KinesisVideoStreamSourceTaskConfiguration.Validate(); err != nil { + invalidParams.AddNested("KinesisVideoStreamSourceTaskConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -8251,35 +9708,35 @@ func (s *SentimentConfiguration) Validate() error { return nil } -// SetRuleName sets the RuleName field's value. -func (s *SentimentConfiguration) SetRuleName(v string) *SentimentConfiguration { - s.RuleName = &v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *StartVoiceToneAnalysisTaskInput) SetClientRequestToken(v string) *StartVoiceToneAnalysisTaskInput { + s.ClientRequestToken = &v return s } -// SetSentimentType sets the SentimentType field's value. -func (s *SentimentConfiguration) SetSentimentType(v string) *SentimentConfiguration { - s.SentimentType = &v +// SetIdentifier sets the Identifier field's value. +func (s *StartVoiceToneAnalysisTaskInput) SetIdentifier(v string) *StartVoiceToneAnalysisTaskInput { + s.Identifier = &v return s } -// SetTimePeriod sets the TimePeriod field's value. -func (s *SentimentConfiguration) SetTimePeriod(v int64) *SentimentConfiguration { - s.TimePeriod = &v +// SetKinesisVideoStreamSourceTaskConfiguration sets the KinesisVideoStreamSourceTaskConfiguration field's value. +func (s *StartVoiceToneAnalysisTaskInput) SetKinesisVideoStreamSourceTaskConfiguration(v *KinesisVideoStreamSourceTaskConfiguration) *StartVoiceToneAnalysisTaskInput { + s.KinesisVideoStreamSourceTaskConfiguration = v return s } -// The service encountered an unexpected error. -type ServiceFailureException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +// SetLanguageCode sets the LanguageCode field's value. +func (s *StartVoiceToneAnalysisTaskInput) SetLanguageCode(v string) *StartVoiceToneAnalysisTaskInput { + s.LanguageCode = &v + return s +} - Message_ *string `locationName:"Message" type:"string"` +type StartVoiceToneAnalysisTaskOutput struct { + _ struct{} `type:"structure"` - // The request ID associated with the call responsible for the exception. - RequestId *string `type:"string"` + // The details of the voice tone analysis task. + VoiceToneAnalysisTask *VoiceToneAnalysisTask `type:"structure"` } // String returns the string representation. @@ -8287,7 +9744,7 @@ type ServiceFailureException 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 ServiceFailureException) String() string { +func (s StartVoiceToneAnalysisTaskOutput) String() string { return awsutil.Prettify(s) } @@ -8296,59 +9753,29 @@ func (s ServiceFailureException) 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 ServiceFailureException) GoString() string { +func (s StartVoiceToneAnalysisTaskOutput) GoString() string { return s.String() } -func newErrorServiceFailureException(v protocol.ResponseMetadata) error { - return &ServiceFailureException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ServiceFailureException) Code() string { - return "ServiceFailureException" -} - -// Message returns the exception's message. -func (s *ServiceFailureException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceFailureException) OrigErr() error { - return nil -} - -func (s *ServiceFailureException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceFailureException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ServiceFailureException) RequestID() string { - return s.RespMetadata.RequestID +// SetVoiceToneAnalysisTask sets the VoiceToneAnalysisTask field's value. +func (s *StartVoiceToneAnalysisTaskOutput) SetVoiceToneAnalysisTask(v *VoiceToneAnalysisTask) *StartVoiceToneAnalysisTaskOutput { + s.VoiceToneAnalysisTask = v + return s } -// The service is currently unavailable. -type ServiceUnavailableException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +type StopSpeakerSearchTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` - Message_ *string `locationName:"Message" type:"string"` + // The unique identifier of the resource to be updated. Valid values include + // the ID and ARN of the media insights pipeline. + // + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` - // The request ID associated with the call responsible for the exception. - RequestId *string `type:"string"` + // The speaker search task ID. + // + // SpeakerSearchTaskId is a required field + SpeakerSearchTaskId *string `location:"uri" locationName:"speakerSearchTaskId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -8356,7 +9783,7 @@ type ServiceUnavailableException 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 ServiceUnavailableException) String() string { +func (s StopSpeakerSearchTaskInput) String() string { return awsutil.Prettify(s) } @@ -8365,58 +9792,46 @@ func (s ServiceUnavailableException) 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 ServiceUnavailableException) GoString() string { +func (s StopSpeakerSearchTaskInput) GoString() string { return s.String() } -func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { - return &ServiceUnavailableException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopSpeakerSearchTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopSpeakerSearchTaskInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) } -} - -// Code returns the exception type name. -func (s *ServiceUnavailableException) Code() string { - return "ServiceUnavailableException" -} - -// Message returns the exception's message. -func (s *ServiceUnavailableException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.SpeakerSearchTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("SpeakerSearchTaskId")) + } + if s.SpeakerSearchTaskId != nil && len(*s.SpeakerSearchTaskId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("SpeakerSearchTaskId", 36)) } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceUnavailableException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *ServiceUnavailableException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceUnavailableException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetIdentifier sets the Identifier field's value. +func (s *StopSpeakerSearchTaskInput) SetIdentifier(v string) *StopSpeakerSearchTaskInput { + s.Identifier = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ServiceUnavailableException) RequestID() string { - return s.RespMetadata.RequestID +// SetSpeakerSearchTaskId sets the SpeakerSearchTaskId field's value. +func (s *StopSpeakerSearchTaskInput) SetSpeakerSearchTaskId(v string) *StopSpeakerSearchTaskInput { + s.SpeakerSearchTaskId = &v + return s } -// The configuration settings for the SNS topic sink. -type SnsTopicSinkConfiguration struct { +type StopSpeakerSearchTaskOutput struct { _ struct{} `type:"structure"` - - // The ARN of the SNS sink. - // - // InsightsTarget is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by SnsTopicSinkConfiguration's - // String and GoString methods. - InsightsTarget *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -8424,7 +9839,7 @@ type SnsTopicSinkConfiguration 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 SnsTopicSinkConfiguration) String() string { +func (s StopSpeakerSearchTaskOutput) String() string { return awsutil.Prettify(s) } @@ -8433,36 +9848,23 @@ func (s SnsTopicSinkConfiguration) 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 SnsTopicSinkConfiguration) GoString() string { +func (s StopSpeakerSearchTaskOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SnsTopicSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SnsTopicSinkConfiguration"} - if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetInsightsTarget sets the InsightsTarget field's value. -func (s *SnsTopicSinkConfiguration) SetInsightsTarget(v string) *SnsTopicSinkConfiguration { - s.InsightsTarget = &v - return s -} +type StopVoiceToneAnalysisTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` -// Source configuration for a specified media pipeline. -type SourceConfiguration struct { - _ struct{} `type:"structure"` + // The unique identifier of the resource to be updated. Valid values include + // the ID and ARN of the media insights pipeline. + // + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` - // The selected video streams for a specified media pipeline. The number of - // video streams can't exceed 25. - SelectedVideoStreams *SelectedVideoStreams `type:"structure"` + // The ID of the voice tone analysis task. + // + // VoiceToneAnalysisTaskId is a required field + VoiceToneAnalysisTaskId *string `location:"uri" locationName:"voiceToneAnalysisTaskId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -8470,7 +9872,7 @@ type SourceConfiguration 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 SourceConfiguration) String() string { +func (s StopVoiceToneAnalysisTaskInput) String() string { return awsutil.Prettify(s) } @@ -8479,17 +9881,24 @@ func (s SourceConfiguration) 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 SourceConfiguration) GoString() string { +func (s StopVoiceToneAnalysisTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SourceConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"} - if s.SelectedVideoStreams != nil { - if err := s.SelectedVideoStreams.Validate(); err != nil { - invalidParams.AddNested("SelectedVideoStreams", err.(request.ErrInvalidParams)) - } +func (s *StopVoiceToneAnalysisTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopVoiceToneAnalysisTaskInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.VoiceToneAnalysisTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceToneAnalysisTaskId")) + } + if s.VoiceToneAnalysisTaskId != nil && len(*s.VoiceToneAnalysisTaskId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("VoiceToneAnalysisTaskId", 36)) } if invalidParams.Len() > 0 { @@ -8498,22 +9907,20 @@ func (s *SourceConfiguration) Validate() error { return nil } -// SetSelectedVideoStreams sets the SelectedVideoStreams field's value. -func (s *SourceConfiguration) SetSelectedVideoStreams(v *SelectedVideoStreams) *SourceConfiguration { - s.SelectedVideoStreams = v +// SetIdentifier sets the Identifier field's value. +func (s *StopVoiceToneAnalysisTaskInput) SetIdentifier(v string) *StopVoiceToneAnalysisTaskInput { + s.Identifier = &v return s } -// The configuration settings for the SQS sink. -type SqsQueueSinkConfiguration struct { - _ struct{} `type:"structure"` +// SetVoiceToneAnalysisTaskId sets the VoiceToneAnalysisTaskId field's value. +func (s *StopVoiceToneAnalysisTaskInput) SetVoiceToneAnalysisTaskId(v string) *StopVoiceToneAnalysisTaskInput { + s.VoiceToneAnalysisTaskId = &v + return s +} - // The ARN of the SQS sink. - // - // InsightsTarget is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by SqsQueueSinkConfiguration's - // String and GoString methods. - InsightsTarget *string `min:"1" type:"string" sensitive:"true"` +type StopVoiceToneAnalysisTaskOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -8521,7 +9928,7 @@ type SqsQueueSinkConfiguration 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 SqsQueueSinkConfiguration) String() string { +func (s StopVoiceToneAnalysisTaskOutput) String() string { return awsutil.Prettify(s) } @@ -8530,29 +9937,10 @@ func (s SqsQueueSinkConfiguration) 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 SqsQueueSinkConfiguration) GoString() string { +func (s StopVoiceToneAnalysisTaskOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SqsQueueSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SqsQueueSinkConfiguration"} - if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetInsightsTarget sets the InsightsTarget field's value. -func (s *SqsQueueSinkConfiguration) SetInsightsTarget(v string) *SqsQueueSinkConfiguration { - s.InsightsTarget = &v - return s -} - // Defines a streaming channel. type StreamChannelDefinition struct { _ struct{} `type:"structure"` @@ -9754,6 +11142,66 @@ func (s *VoiceEnhancementSinkConfiguration) SetDisabled(v bool) *VoiceEnhancemen return s } +// A representation of an asynchronous request to perform voice tone analysis +// on a media insights pipeline. +type VoiceToneAnalysisTask struct { + _ struct{} `type:"structure"` + + // The time at which a voice tone analysis task was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The time at which a voice tone analysis task was updated. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The ID of the voice tone analysis task. + VoiceToneAnalysisTaskId *string `min:"36" type:"string"` + + // The status of a voice tone analysis task. + VoiceToneAnalysisTaskStatus *string `type:"string" enum:"MediaPipelineTaskStatus"` +} + +// 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 VoiceToneAnalysisTask) 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 VoiceToneAnalysisTask) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceToneAnalysisTask) SetCreatedTimestamp(v time.Time) *VoiceToneAnalysisTask { + s.CreatedTimestamp = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceToneAnalysisTask) SetUpdatedTimestamp(v time.Time) *VoiceToneAnalysisTask { + s.UpdatedTimestamp = &v + return s +} + +// SetVoiceToneAnalysisTaskId sets the VoiceToneAnalysisTaskId field's value. +func (s *VoiceToneAnalysisTask) SetVoiceToneAnalysisTaskId(v string) *VoiceToneAnalysisTask { + s.VoiceToneAnalysisTaskId = &v + return s +} + +// SetVoiceToneAnalysisTaskStatus sets the VoiceToneAnalysisTaskStatus field's value. +func (s *VoiceToneAnalysisTask) SetVoiceToneAnalysisTaskStatus(v string) *VoiceToneAnalysisTask { + s.VoiceToneAnalysisTaskStatus = &v + return s +} + const ( // ActiveSpeakerPositionTopLeft is a ActiveSpeakerPosition enum value ActiveSpeakerPositionTopLeft = "TopLeft" @@ -10362,6 +11810,38 @@ func MediaPipelineStatusUpdate_Values() []string { } } +const ( + // MediaPipelineTaskStatusNotStarted is a MediaPipelineTaskStatus enum value + MediaPipelineTaskStatusNotStarted = "NotStarted" + + // MediaPipelineTaskStatusInitializing is a MediaPipelineTaskStatus enum value + MediaPipelineTaskStatusInitializing = "Initializing" + + // MediaPipelineTaskStatusInProgress is a MediaPipelineTaskStatus enum value + MediaPipelineTaskStatusInProgress = "InProgress" + + // MediaPipelineTaskStatusFailed is a MediaPipelineTaskStatus enum value + MediaPipelineTaskStatusFailed = "Failed" + + // MediaPipelineTaskStatusStopping is a MediaPipelineTaskStatus enum value + MediaPipelineTaskStatusStopping = "Stopping" + + // MediaPipelineTaskStatusStopped is a MediaPipelineTaskStatus enum value + MediaPipelineTaskStatusStopped = "Stopped" +) + +// MediaPipelineTaskStatus_Values returns all elements of the MediaPipelineTaskStatus enum +func MediaPipelineTaskStatus_Values() []string { + return []string{ + MediaPipelineTaskStatusNotStarted, + MediaPipelineTaskStatusInitializing, + MediaPipelineTaskStatusInProgress, + MediaPipelineTaskStatusFailed, + MediaPipelineTaskStatusStopping, + MediaPipelineTaskStatusStopped, + } +} + const ( // PartialResultsStabilityHigh is a PartialResultsStability enum value PartialResultsStabilityHigh = "high" @@ -10565,3 +12045,15 @@ func VoiceAnalyticsConfigurationStatus_Values() []string { VoiceAnalyticsConfigurationStatusDisabled, } } + +const ( + // VoiceAnalyticsLanguageCodeEnUs is a VoiceAnalyticsLanguageCode enum value + VoiceAnalyticsLanguageCodeEnUs = "en-US" +) + +// VoiceAnalyticsLanguageCode_Values returns all elements of the VoiceAnalyticsLanguageCode enum +func VoiceAnalyticsLanguageCode_Values() []string { + return []string{ + VoiceAnalyticsLanguageCodeEnUs, + } +} diff --git a/service/chimesdkmediapipelines/chimesdkmediapipelinesiface/interface.go b/service/chimesdkmediapipelines/chimesdkmediapipelinesiface/interface.go index ce4a46dc690..fd5bbddfa24 100644 --- a/service/chimesdkmediapipelines/chimesdkmediapipelinesiface/interface.go +++ b/service/chimesdkmediapipelines/chimesdkmediapipelinesiface/interface.go @@ -104,6 +104,14 @@ type ChimeSDKMediaPipelinesAPI interface { GetMediaPipelineWithContext(aws.Context, *chimesdkmediapipelines.GetMediaPipelineInput, ...request.Option) (*chimesdkmediapipelines.GetMediaPipelineOutput, error) GetMediaPipelineRequest(*chimesdkmediapipelines.GetMediaPipelineInput) (*request.Request, *chimesdkmediapipelines.GetMediaPipelineOutput) + GetSpeakerSearchTask(*chimesdkmediapipelines.GetSpeakerSearchTaskInput) (*chimesdkmediapipelines.GetSpeakerSearchTaskOutput, error) + GetSpeakerSearchTaskWithContext(aws.Context, *chimesdkmediapipelines.GetSpeakerSearchTaskInput, ...request.Option) (*chimesdkmediapipelines.GetSpeakerSearchTaskOutput, error) + GetSpeakerSearchTaskRequest(*chimesdkmediapipelines.GetSpeakerSearchTaskInput) (*request.Request, *chimesdkmediapipelines.GetSpeakerSearchTaskOutput) + + GetVoiceToneAnalysisTask(*chimesdkmediapipelines.GetVoiceToneAnalysisTaskInput) (*chimesdkmediapipelines.GetVoiceToneAnalysisTaskOutput, error) + GetVoiceToneAnalysisTaskWithContext(aws.Context, *chimesdkmediapipelines.GetVoiceToneAnalysisTaskInput, ...request.Option) (*chimesdkmediapipelines.GetVoiceToneAnalysisTaskOutput, error) + GetVoiceToneAnalysisTaskRequest(*chimesdkmediapipelines.GetVoiceToneAnalysisTaskInput) (*request.Request, *chimesdkmediapipelines.GetVoiceToneAnalysisTaskOutput) + ListMediaCapturePipelines(*chimesdkmediapipelines.ListMediaCapturePipelinesInput) (*chimesdkmediapipelines.ListMediaCapturePipelinesOutput, error) ListMediaCapturePipelinesWithContext(aws.Context, *chimesdkmediapipelines.ListMediaCapturePipelinesInput, ...request.Option) (*chimesdkmediapipelines.ListMediaCapturePipelinesOutput, error) ListMediaCapturePipelinesRequest(*chimesdkmediapipelines.ListMediaCapturePipelinesInput) (*request.Request, *chimesdkmediapipelines.ListMediaCapturePipelinesOutput) @@ -129,6 +137,22 @@ type ChimeSDKMediaPipelinesAPI interface { ListTagsForResourceWithContext(aws.Context, *chimesdkmediapipelines.ListTagsForResourceInput, ...request.Option) (*chimesdkmediapipelines.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*chimesdkmediapipelines.ListTagsForResourceInput) (*request.Request, *chimesdkmediapipelines.ListTagsForResourceOutput) + StartSpeakerSearchTask(*chimesdkmediapipelines.StartSpeakerSearchTaskInput) (*chimesdkmediapipelines.StartSpeakerSearchTaskOutput, error) + StartSpeakerSearchTaskWithContext(aws.Context, *chimesdkmediapipelines.StartSpeakerSearchTaskInput, ...request.Option) (*chimesdkmediapipelines.StartSpeakerSearchTaskOutput, error) + StartSpeakerSearchTaskRequest(*chimesdkmediapipelines.StartSpeakerSearchTaskInput) (*request.Request, *chimesdkmediapipelines.StartSpeakerSearchTaskOutput) + + StartVoiceToneAnalysisTask(*chimesdkmediapipelines.StartVoiceToneAnalysisTaskInput) (*chimesdkmediapipelines.StartVoiceToneAnalysisTaskOutput, error) + StartVoiceToneAnalysisTaskWithContext(aws.Context, *chimesdkmediapipelines.StartVoiceToneAnalysisTaskInput, ...request.Option) (*chimesdkmediapipelines.StartVoiceToneAnalysisTaskOutput, error) + StartVoiceToneAnalysisTaskRequest(*chimesdkmediapipelines.StartVoiceToneAnalysisTaskInput) (*request.Request, *chimesdkmediapipelines.StartVoiceToneAnalysisTaskOutput) + + StopSpeakerSearchTask(*chimesdkmediapipelines.StopSpeakerSearchTaskInput) (*chimesdkmediapipelines.StopSpeakerSearchTaskOutput, error) + StopSpeakerSearchTaskWithContext(aws.Context, *chimesdkmediapipelines.StopSpeakerSearchTaskInput, ...request.Option) (*chimesdkmediapipelines.StopSpeakerSearchTaskOutput, error) + StopSpeakerSearchTaskRequest(*chimesdkmediapipelines.StopSpeakerSearchTaskInput) (*request.Request, *chimesdkmediapipelines.StopSpeakerSearchTaskOutput) + + StopVoiceToneAnalysisTask(*chimesdkmediapipelines.StopVoiceToneAnalysisTaskInput) (*chimesdkmediapipelines.StopVoiceToneAnalysisTaskOutput, error) + StopVoiceToneAnalysisTaskWithContext(aws.Context, *chimesdkmediapipelines.StopVoiceToneAnalysisTaskInput, ...request.Option) (*chimesdkmediapipelines.StopVoiceToneAnalysisTaskOutput, error) + StopVoiceToneAnalysisTaskRequest(*chimesdkmediapipelines.StopVoiceToneAnalysisTaskInput) (*request.Request, *chimesdkmediapipelines.StopVoiceToneAnalysisTaskOutput) + TagResource(*chimesdkmediapipelines.TagResourceInput) (*chimesdkmediapipelines.TagResourceOutput, error) TagResourceWithContext(aws.Context, *chimesdkmediapipelines.TagResourceInput, ...request.Option) (*chimesdkmediapipelines.TagResourceOutput, error) TagResourceRequest(*chimesdkmediapipelines.TagResourceInput) (*request.Request, *chimesdkmediapipelines.TagResourceOutput) diff --git a/service/connect/api.go b/service/connect/api.go index 9369ea8cc05..f8aa0054f0e 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -2248,22 +2248,25 @@ func (c *Connect) CreateQueueRequest(input *CreateQueueInput) (req *request.Requ // // Creates a new queue for the specified Amazon Connect instance. // -// If the number being used in the input is claimed to a traffic distribution -// group, and you are calling this API using an instance in the Amazon Web Services -// Region where the traffic distribution group was created, you can use either -// a full phone number ARN or UUID value for the OutboundCallerIdNumberId value -// of the OutboundCallerConfig (https://docs.aws.amazon.com/connect/latest/APIReference/API_OutboundCallerConfig) -// request body parameter. However, if the number is claimed to a traffic distribution -// group and you are calling this API using an instance in the alternate Amazon -// Web Services Region associated with the traffic distribution group, you must -// provide a full phone number ARN. If a UUID is provided in this scenario, -// you will receive a ResourceNotFoundException. -// -// Only use the phone number ARN format that doesn't contain instance in the -// path, for example, arn:aws:connect:us-east-1:1234567890:phone-number/uuid. -// This is the same ARN format that is returned when you call the ListPhoneNumbersV2 -// (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html) -// API. +// - If the phone number is claimed to a traffic distribution group that +// was created in the same Region as the Amazon Connect instance where you +// are calling this API, then you can use a full phone number ARN or a UUID +// for OutboundCallerIdNumberId. However, if the phone number is claimed +// to a traffic distribution group that is in one Region, and you are calling +// this API from an instance in another Amazon Web Services Region that is +// associated with the traffic distribution group, you must provide a full +// phone number ARN. If a UUID is provided in this scenario, you will receive +// a ResourceNotFoundException. +// +// - Only use the phone number ARN format that doesn't contain instance in +// the path, for example, arn:aws:connect:us-east-1:1234567890:phone-number/uuid. +// This is the same ARN format that is returned when you call the ListPhoneNumbersV2 +// (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html) +// API. +// +// - If you plan to use IAM policies to allow/deny access to this API for +// phone number resources claimed to a traffic distribution group, see Allow +// or Deny queue API actions for phone numbers in a replica Region (https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_resource-level-policy-examples.html#allow-deny-queue-actions-replica-region). // // 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 @@ -2850,6 +2853,12 @@ func (c *Connect) CreateTrafficDistributionGroupRequest(input *CreateTrafficDist // Creates a traffic distribution group given an Amazon Connect instance that // has been replicated. // +// You can change the SignInConfig distribution only for a default TrafficDistributionGroup +// (see the IsDefault parameter in the TrafficDistributionGroup (https://docs.aws.amazon.com/connect/latest/APIReference/API_TrafficDistributionGroup.html) +// data type). If you call UpdateTrafficDistribution with a modified SignInConfig +// and a non-default TrafficDistributionGroup, an InvalidRequestException is +// returned. +// // For more information about creating traffic distribution groups, see Set // up traffic distribution groups (https://docs.aws.amazon.com/connect/latest/adminguide/setup-traffic-distribution-groups.html) // in the Amazon Connect Administrator Guide. @@ -3198,6 +3207,223 @@ func (c *Connect) CreateUserHierarchyGroupWithContext(ctx aws.Context, input *Cr return out, req.Send() } +const opCreateView = "CreateView" + +// CreateViewRequest generates a "aws/request.Request" representing the +// client's request for the CreateView 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 CreateView for more information on using the CreateView +// 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 CreateViewRequest method. +// req, resp := client.CreateViewRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateView +func (c *Connect) CreateViewRequest(input *CreateViewInput) (req *request.Request, output *CreateViewOutput) { + op := &request.Operation{ + Name: opCreateView, + HTTPMethod: "PUT", + HTTPPath: "/views/{InstanceId}", + } + + if input == nil { + input = &CreateViewInput{} + } + + output = &CreateViewOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateView API operation for Amazon Connect Service. +// +// Creates a new view with the possible status of SAVED or PUBLISHED. +// +// The views will have a unique name for each connect instance. +// +// It performs basic content validation if the status is SAVED or full content +// validation if the status is set to PUBLISHED. An error is returned if validation +// fails. It associates either the $SAVED qualifier or both of the $SAVED and +// $LATEST qualifiers with the provided view content based on the status. The +// view is idempotent if ClientToken is provided. +// +// 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 Service's +// API operation CreateView for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - DuplicateResourceException +// A resource with the specified name already exists. +// +// - ServiceQuotaExceededException +// The service quota has been exceeded. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// - ResourceInUseException +// That resource is already in use. Please try another. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateView +func (c *Connect) CreateView(input *CreateViewInput) (*CreateViewOutput, error) { + req, out := c.CreateViewRequest(input) + return out, req.Send() +} + +// CreateViewWithContext is the same as CreateView with the addition of +// the ability to pass a context and additional request options. +// +// See CreateView 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 *Connect) CreateViewWithContext(ctx aws.Context, input *CreateViewInput, opts ...request.Option) (*CreateViewOutput, error) { + req, out := c.CreateViewRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateViewVersion = "CreateViewVersion" + +// CreateViewVersionRequest generates a "aws/request.Request" representing the +// client's request for the CreateViewVersion 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 CreateViewVersion for more information on using the CreateViewVersion +// 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 CreateViewVersionRequest method. +// req, resp := client.CreateViewVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateViewVersion +func (c *Connect) CreateViewVersionRequest(input *CreateViewVersionInput) (req *request.Request, output *CreateViewVersionOutput) { + op := &request.Operation{ + Name: opCreateViewVersion, + HTTPMethod: "PUT", + HTTPPath: "/views/{InstanceId}/{ViewId}/versions", + } + + if input == nil { + input = &CreateViewVersionInput{} + } + + output = &CreateViewVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateViewVersion API operation for Amazon Connect Service. +// +// Publishes a new version of the view identifier. +// +// Versions are immutable and monotonically increasing. +// +// It returns the highest version if there is no change in content compared +// to that version. An error is displayed if the supplied ViewContentSha256 +// is different from the ViewContentSha256 of the $LATEST alias. +// +// 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 Service's +// API operation CreateViewVersion for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// - ServiceQuotaExceededException +// The service quota has been exceeded. +// +// - ResourceInUseException +// That resource is already in use. Please try another. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateViewVersion +func (c *Connect) CreateViewVersion(input *CreateViewVersionInput) (*CreateViewVersionOutput, error) { + req, out := c.CreateViewVersionRequest(input) + return out, req.Send() +} + +// CreateViewVersionWithContext is the same as CreateViewVersion with the addition of +// the ability to pass a context and additional request options. +// +// See CreateViewVersion 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 *Connect) CreateViewVersionWithContext(ctx aws.Context, input *CreateViewVersionInput, opts ...request.Option) (*CreateViewVersionOutput, error) { + req, out := c.CreateViewVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateVocabulary = "CreateVocabulary" // CreateVocabularyRequest generates a "aws/request.Request" representing the @@ -5084,6 +5310,203 @@ func (c *Connect) DeleteUserHierarchyGroupWithContext(ctx aws.Context, input *De return out, req.Send() } +const opDeleteView = "DeleteView" + +// DeleteViewRequest generates a "aws/request.Request" representing the +// client's request for the DeleteView 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 DeleteView for more information on using the DeleteView +// 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 DeleteViewRequest method. +// req, resp := client.DeleteViewRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteView +func (c *Connect) DeleteViewRequest(input *DeleteViewInput) (req *request.Request, output *DeleteViewOutput) { + op := &request.Operation{ + Name: opDeleteView, + HTTPMethod: "DELETE", + HTTPPath: "/views/{InstanceId}/{ViewId}", + } + + if input == nil { + input = &DeleteViewInput{} + } + + output = &DeleteViewOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteView API operation for Amazon Connect Service. +// +// Deletes the view entirely. It deletes the view and all associated qualifiers +// (versions and aliases). +// +// 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 Service's +// API operation DeleteView for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// - ResourceInUseException +// That resource is already in use. Please try another. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteView +func (c *Connect) DeleteView(input *DeleteViewInput) (*DeleteViewOutput, error) { + req, out := c.DeleteViewRequest(input) + return out, req.Send() +} + +// DeleteViewWithContext is the same as DeleteView with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteView 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 *Connect) DeleteViewWithContext(ctx aws.Context, input *DeleteViewInput, opts ...request.Option) (*DeleteViewOutput, error) { + req, out := c.DeleteViewRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteViewVersion = "DeleteViewVersion" + +// DeleteViewVersionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteViewVersion 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 DeleteViewVersion for more information on using the DeleteViewVersion +// 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 DeleteViewVersionRequest method. +// req, resp := client.DeleteViewVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteViewVersion +func (c *Connect) DeleteViewVersionRequest(input *DeleteViewVersionInput) (req *request.Request, output *DeleteViewVersionOutput) { + op := &request.Operation{ + Name: opDeleteViewVersion, + HTTPMethod: "DELETE", + HTTPPath: "/views/{InstanceId}/{ViewId}/versions/{ViewVersion}", + } + + if input == nil { + input = &DeleteViewVersionInput{} + } + + output = &DeleteViewVersionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteViewVersion API operation for Amazon Connect Service. +// +// Deletes the particular version specified in ViewVersion identifier. +// +// 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 Service's +// API operation DeleteViewVersion for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// - ResourceInUseException +// That resource is already in use. Please try another. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteViewVersion +func (c *Connect) DeleteViewVersion(input *DeleteViewVersionInput) (*DeleteViewVersionOutput, error) { + req, out := c.DeleteViewVersionRequest(input) + return out, req.Send() +} + +// DeleteViewVersionWithContext is the same as DeleteViewVersion with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteViewVersion 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 *Connect) DeleteViewVersionWithContext(ctx aws.Context, input *DeleteViewVersionInput, opts ...request.Option) (*DeleteViewVersionOutput, error) { + req, out := c.DeleteViewVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteVocabulary = "DeleteVocabulary" // DeleteVocabularyRequest generates a "aws/request.Request" representing the @@ -7127,6 +7550,110 @@ func (c *Connect) DescribeUserHierarchyStructureWithContext(ctx aws.Context, inp return out, req.Send() } +const opDescribeView = "DescribeView" + +// DescribeViewRequest generates a "aws/request.Request" representing the +// client's request for the DescribeView 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 DescribeView for more information on using the DescribeView +// 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 DescribeViewRequest method. +// req, resp := client.DescribeViewRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeView +func (c *Connect) DescribeViewRequest(input *DescribeViewInput) (req *request.Request, output *DescribeViewOutput) { + op := &request.Operation{ + Name: opDescribeView, + HTTPMethod: "GET", + HTTPPath: "/views/{InstanceId}/{ViewId}", + } + + if input == nil { + input = &DescribeViewInput{} + } + + output = &DescribeViewOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeView API operation for Amazon Connect Service. +// +// Retrieves the view for the specified Amazon Connect instance and view identifier. +// +// The view identifier can be supplied as a ViewId or ARN. +// +// $SAVED needs to be supplied if a view is unpublished. +// +// The view identifier can contain an optional qualifier, for example, :$SAVED, +// which is either an actual version number or an Amazon Connect managed qualifier +// $SAVED | $LATEST. If it is not supplied, then $LATEST is assumed for customer +// managed views and an error is returned if there is no published content available. +// Version 1 is assumed for Amazon Web Services managed views. +// +// 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 Service's +// API operation DescribeView for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeView +func (c *Connect) DescribeView(input *DescribeViewInput) (*DescribeViewOutput, error) { + req, out := c.DescribeViewRequest(input) + return out, req.Send() +} + +// DescribeViewWithContext is the same as DescribeView with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeView 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 *Connect) DescribeViewWithContext(ctx aws.Context, input *DescribeViewInput, opts ...request.Option) (*DescribeViewOutput, error) { + req, out := c.DescribeViewRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeVocabulary = "DescribeVocabulary" // DescribeVocabularyRequest generates a "aws/request.Request" representing the @@ -11923,12 +12450,17 @@ func (c *Connect) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *re // Contact Center (https://docs.aws.amazon.com/connect/latest/adminguide/contact-center-phone-number.html) // in the Amazon Connect Administrator Guide. // -// The phone number Arn value that is returned from each of the items in the -// PhoneNumberSummaryList (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbers.html#connect-ListPhoneNumbers-response-PhoneNumberSummaryList) -// cannot be used to tag phone number resources. It will fail with a ResourceNotFoundException. -// Instead, use the ListPhoneNumbersV2 (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html) -// API. It returns the new phone number ARN that can be used to tag phone number -// resources. +// - We recommend using ListPhoneNumbersV2 (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html) +// to return phone number types. ListPhoneNumbers doesn't support number +// types UIFN, SHARED, THIRD_PARTY_TF, and THIRD_PARTY_DID. While it returns +// numbers of those types, it incorrectly lists them as TOLL_FREE or DID. +// +// - The phone number Arn value that is returned from each of the items in +// the PhoneNumberSummaryList (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbers.html#connect-ListPhoneNumbers-response-PhoneNumberSummaryList) +// cannot be used to tag phone number resources. It will fail with a ResourceNotFoundException. +// Instead, use the ListPhoneNumbersV2 (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html) +// API. It returns the new phone number ARN that can be used to tag phone +// number 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 @@ -14675,6 +15207,313 @@ func (c *Connect) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInp return p.Err() } +const opListViewVersions = "ListViewVersions" + +// ListViewVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListViewVersions 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 ListViewVersions for more information on using the ListViewVersions +// 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 ListViewVersionsRequest method. +// req, resp := client.ListViewVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListViewVersions +func (c *Connect) ListViewVersionsRequest(input *ListViewVersionsInput) (req *request.Request, output *ListViewVersionsOutput) { + op := &request.Operation{ + Name: opListViewVersions, + HTTPMethod: "GET", + HTTPPath: "/views/{InstanceId}/{ViewId}/versions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListViewVersionsInput{} + } + + output = &ListViewVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListViewVersions API operation for Amazon Connect Service. +// +// Returns all the available versions for the specified Amazon Connect instance +// and view identifier. +// +// Results will be sorted from highest to lowest. +// +// 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 Service's +// API operation ListViewVersions for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListViewVersions +func (c *Connect) ListViewVersions(input *ListViewVersionsInput) (*ListViewVersionsOutput, error) { + req, out := c.ListViewVersionsRequest(input) + return out, req.Send() +} + +// ListViewVersionsWithContext is the same as ListViewVersions with the addition of +// the ability to pass a context and additional request options. +// +// See ListViewVersions 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 *Connect) ListViewVersionsWithContext(ctx aws.Context, input *ListViewVersionsInput, opts ...request.Option) (*ListViewVersionsOutput, error) { + req, out := c.ListViewVersionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListViewVersionsPages iterates over the pages of a ListViewVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListViewVersions 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 ListViewVersions operation. +// pageNum := 0 +// err := client.ListViewVersionsPages(params, +// func(page *connect.ListViewVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Connect) ListViewVersionsPages(input *ListViewVersionsInput, fn func(*ListViewVersionsOutput, bool) bool) error { + return c.ListViewVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListViewVersionsPagesWithContext same as ListViewVersionsPages 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 *Connect) ListViewVersionsPagesWithContext(ctx aws.Context, input *ListViewVersionsInput, fn func(*ListViewVersionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListViewVersionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListViewVersionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListViewVersionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListViews = "ListViews" + +// ListViewsRequest generates a "aws/request.Request" representing the +// client's request for the ListViews 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 ListViews for more information on using the ListViews +// 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 ListViewsRequest method. +// req, resp := client.ListViewsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListViews +func (c *Connect) ListViewsRequest(input *ListViewsInput) (req *request.Request, output *ListViewsOutput) { + op := &request.Operation{ + Name: opListViews, + HTTPMethod: "GET", + HTTPPath: "/views/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListViewsInput{} + } + + output = &ListViewsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListViews API operation for Amazon Connect Service. +// +// Returns views in the given instance. +// +// Results are sorted primarily by type, and secondarily by name. +// +// 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 Service's +// API operation ListViews for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListViews +func (c *Connect) ListViews(input *ListViewsInput) (*ListViewsOutput, error) { + req, out := c.ListViewsRequest(input) + return out, req.Send() +} + +// ListViewsWithContext is the same as ListViews with the addition of +// the ability to pass a context and additional request options. +// +// See ListViews 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 *Connect) ListViewsWithContext(ctx aws.Context, input *ListViewsInput, opts ...request.Option) (*ListViewsOutput, error) { + req, out := c.ListViewsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListViewsPages iterates over the pages of a ListViews operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListViews 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 ListViews operation. +// pageNum := 0 +// err := client.ListViewsPages(params, +// func(page *connect.ListViewsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Connect) ListViewsPages(input *ListViewsInput, fn func(*ListViewsOutput, bool) bool) error { + return c.ListViewsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListViewsPagesWithContext same as ListViewsPages 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 *Connect) ListViewsPagesWithContext(ctx aws.Context, input *ListViewsInput, fn func(*ListViewsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListViewsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListViewsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListViewsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opMonitorContact = "MonitorContact" // MonitorContactRequest generates a "aws/request.Request" representing the @@ -17348,8 +18187,8 @@ func (c *Connect) StopContactRequest(input *StopContactInput) (req *request.Requ // StopContact API operation for Amazon Connect Service. // -// Ends the specified contact. This call does not work for the following initiation -// methods: +// Ends the specified contact. This call does not work for voice contacts that +// use the following initiation methods: // // - DISCONNECT // @@ -17357,6 +18196,9 @@ func (c *Connect) StopContactRequest(input *StopContactInput) (req *request.Requ // // - QUEUE_TRANSFER // +// Chat and task contacts, however, can be terminated in any state, regardless +// of initiation method. +// // 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. @@ -17371,7 +18213,7 @@ func (c *Connect) StopContactRequest(input *StopContactInput) (req *request.Requ // // - ContactNotFoundException // The contact with the specified ID is not active or does not exist. Applies -// to Voice calls only, not to Chat, Task, or Voice Callback. +// to Voice calls only, not to Chat or Task contacts. // // - InvalidParameterException // One or more of the specified parameters are not valid. @@ -20092,22 +20934,25 @@ func (c *Connect) UpdateQueueOutboundCallerConfigRequest(input *UpdateQueueOutbo // Updates the outbound caller ID name, number, and outbound whisper flow for // a specified queue. // -// If the number being used in the input is claimed to a traffic distribution -// group, and you are calling this API using an instance in the Amazon Web Services -// Region where the traffic distribution group was created, you can use either -// a full phone number ARN or UUID value for the OutboundCallerIdNumberId value -// of the OutboundCallerConfig (https://docs.aws.amazon.com/connect/latest/APIReference/API_OutboundCallerConfig) -// request body parameter. However, if the number is claimed to a traffic distribution -// group and you are calling this API using an instance in the alternate Amazon -// Web Services Region associated with the traffic distribution group, you must -// provide a full phone number ARN. If a UUID is provided in this scenario, -// you will receive a ResourceNotFoundException. -// -// Only use the phone number ARN format that doesn't contain instance in the -// path, for example, arn:aws:connect:us-east-1:1234567890:phone-number/uuid. -// This is the same ARN format that is returned when you call the ListPhoneNumbersV2 -// (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html) -// API. +// - If the phone number is claimed to a traffic distribution group that +// was created in the same Region as the Amazon Connect instance where you +// are calling this API, then you can use a full phone number ARN or a UUID +// for OutboundCallerIdNumberId. However, if the phone number is claimed +// to a traffic distribution group that is in one Region, and you are calling +// this API from an instance in another Amazon Web Services Region that is +// associated with the traffic distribution group, you must provide a full +// phone number ARN. If a UUID is provided in this scenario, you will receive +// a ResourceNotFoundException. +// +// - Only use the phone number ARN format that doesn't contain instance in +// the path, for example, arn:aws:connect:us-east-1:1234567890:phone-number/uuid. +// This is the same ARN format that is returned when you call the ListPhoneNumbersV2 +// (https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html) +// API. +// +// - If you plan to use IAM policies to allow/deny access to this API for +// phone number resources claimed to a traffic distribution group, see Allow +// or Deny queue API actions for phone numbers in a replica Region (https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_resource-level-policy-examples.html#allow-deny-queue-actions-replica-region). // // 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 @@ -21234,9 +22079,11 @@ func (c *Connect) UpdateTrafficDistributionRequest(input *UpdateTrafficDistribut // // Updates the traffic distribution for a given traffic distribution group. // -// You can change the SignInConfig only for a default TrafficDistributionGroup. -// If you call UpdateTrafficDistribution with a modified SignInConfig and a -// non-default TrafficDistributionGroup, an InvalidRequestException is returned. +// You can change the SignInConfig distribution only for a default TrafficDistributionGroup +// (see the IsDefault parameter in the TrafficDistributionGroup (https://docs.aws.amazon.com/connect/latest/APIReference/API_TrafficDistributionGroup.html) +// data type). If you call UpdateTrafficDistribution with a modified SignInConfig +// and a non-default TrafficDistributionGroup, an InvalidRequestException is +// returned. // // For more information about updating a traffic distribution group, see Update // telephony traffic distribution across Amazon Web Services Regions (https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html) @@ -21950,6 +22797,210 @@ func (c *Connect) UpdateUserSecurityProfilesWithContext(ctx aws.Context, input * return out, req.Send() } +const opUpdateViewContent = "UpdateViewContent" + +// UpdateViewContentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateViewContent 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 UpdateViewContent for more information on using the UpdateViewContent +// 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 UpdateViewContentRequest method. +// req, resp := client.UpdateViewContentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateViewContent +func (c *Connect) UpdateViewContentRequest(input *UpdateViewContentInput) (req *request.Request, output *UpdateViewContentOutput) { + op := &request.Operation{ + Name: opUpdateViewContent, + HTTPMethod: "POST", + HTTPPath: "/views/{InstanceId}/{ViewId}", + } + + if input == nil { + input = &UpdateViewContentInput{} + } + + output = &UpdateViewContentOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateViewContent API operation for Amazon Connect Service. +// +// Updates the view content of the given view identifier in the specified Amazon +// Connect instance. +// +// It performs content validation if Status is set to SAVED and performs full +// content validation if Status is PUBLISHED. Note that the $SAVED alias' content +// will always be updated, but the $LATEST alias' content will only be updated +// if Status is PUBLISHED. +// +// 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 Service's +// API operation UpdateViewContent for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// - ResourceInUseException +// That resource is already in use. Please try another. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateViewContent +func (c *Connect) UpdateViewContent(input *UpdateViewContentInput) (*UpdateViewContentOutput, error) { + req, out := c.UpdateViewContentRequest(input) + return out, req.Send() +} + +// UpdateViewContentWithContext is the same as UpdateViewContent with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateViewContent 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 *Connect) UpdateViewContentWithContext(ctx aws.Context, input *UpdateViewContentInput, opts ...request.Option) (*UpdateViewContentOutput, error) { + req, out := c.UpdateViewContentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateViewMetadata = "UpdateViewMetadata" + +// UpdateViewMetadataRequest generates a "aws/request.Request" representing the +// client's request for the UpdateViewMetadata 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 UpdateViewMetadata for more information on using the UpdateViewMetadata +// 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 UpdateViewMetadataRequest method. +// req, resp := client.UpdateViewMetadataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateViewMetadata +func (c *Connect) UpdateViewMetadataRequest(input *UpdateViewMetadataInput) (req *request.Request, output *UpdateViewMetadataOutput) { + op := &request.Operation{ + Name: opUpdateViewMetadata, + HTTPMethod: "POST", + HTTPPath: "/views/{InstanceId}/{ViewId}/metadata", + } + + if input == nil { + input = &UpdateViewMetadataInput{} + } + + output = &UpdateViewMetadataOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateViewMetadata API operation for Amazon Connect Service. +// +// Updates the view metadata. Note that either Name or Description must be provided. +// +// 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 Service's +// API operation UpdateViewMetadata for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - TooManyRequestsException +// Displayed when rate-related API limits are exceeded. +// +// - DuplicateResourceException +// A resource with the specified name already exists. +// +// - ResourceInUseException +// That resource is already in use. Please try another. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateViewMetadata +func (c *Connect) UpdateViewMetadata(input *UpdateViewMetadataInput) (*UpdateViewMetadataOutput, error) { + req, out := c.UpdateViewMetadataRequest(input) + return out, req.Send() +} + +// UpdateViewMetadataWithContext is the same as UpdateViewMetadata with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateViewMetadata 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 *Connect) UpdateViewMetadataWithContext(ctx aws.Context, input *UpdateViewMetadataInput, opts ...request.Option) (*UpdateViewMetadataOutput, error) { + req, out := c.UpdateViewMetadataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // You do not have sufficient permissions to perform this action. type AccessDeniedException struct { _ struct{} `type:"structure"` @@ -24975,7 +26026,7 @@ func (s *ContactFlowSummary) SetName(v string) *ContactFlowSummary { } // The contact with the specified ID is not active or does not exist. Applies -// to Voice calls only, not to Chat, Task, or Voice Callback. +// to Voice calls only, not to Chat or Task contacts. type ContactNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -28291,6 +29342,299 @@ func (s *CreateUserOutput) SetUserId(v string) *CreateUserOutput { return s } +type CreateViewInput struct { + _ struct{} `type:"structure"` + + // A unique Id for each create view request to avoid duplicate view creation. + // For example, the view is idempotent ClientToken is provided. + ClientToken *string `type:"string"` + + // View content containing all content necessary to render a view except for + // runtime input data. + // + // The total uncompressed content has a maximum file size of 400kB. + // + // Content is a required field + Content *ViewInputContent `type:"structure" required:"true"` + + // The description of the view. + Description *string `min:"1" type:"string"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The name of the view. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateViewInput's + // String and GoString methods. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status + // will initiate validation on the content. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"ViewStatus"` + + // The tags associated with the view resource (not specific to view version).These + // tags can be used to organize, track, or control access for this resource. + // For example, { "tags": {"key1":"value1", "key2":"value2"} }. + Tags map[string]*string `min:"1" type:"map"` +} + +// 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 CreateViewInput) 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 CreateViewInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateViewInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateViewInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 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.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateViewInput) SetClientToken(v string) *CreateViewInput { + s.ClientToken = &v + return s +} + +// SetContent sets the Content field's value. +func (s *CreateViewInput) SetContent(v *ViewInputContent) *CreateViewInput { + s.Content = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateViewInput) SetDescription(v string) *CreateViewInput { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateViewInput) SetInstanceId(v string) *CreateViewInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateViewInput) SetName(v string) *CreateViewInput { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateViewInput) SetStatus(v string) *CreateViewInput { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateViewInput) SetTags(v map[string]*string) *CreateViewInput { + s.Tags = v + return s +} + +type CreateViewOutput struct { + _ struct{} `type:"structure"` + + // A view resource object. Contains metadata and content necessary to render + // the view. + View *View `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 CreateViewOutput) 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 CreateViewOutput) GoString() string { + return s.String() +} + +// SetView sets the View field's value. +func (s *CreateViewOutput) SetView(v *View) *CreateViewOutput { + s.View = v + return s +} + +type CreateViewVersionInput struct { + _ struct{} `type:"structure"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The description for the version being published. + VersionDescription *string `min:"1" type:"string"` + + // Indicates the checksum value of the latest published view content. + ViewContentSha256 *string `min:"1" type:"string"` + + // The identifier of the view. Both ViewArn and ViewId can be used. + // + // ViewId is a required field + ViewId *string `location:"uri" locationName:"ViewId" 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 CreateViewVersionInput) 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 CreateViewVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateViewVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateViewVersionInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.VersionDescription != nil && len(*s.VersionDescription) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VersionDescription", 1)) + } + if s.ViewContentSha256 != nil && len(*s.ViewContentSha256) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ViewContentSha256", 1)) + } + if s.ViewId == nil { + invalidParams.Add(request.NewErrParamRequired("ViewId")) + } + if s.ViewId != nil && len(*s.ViewId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ViewId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateViewVersionInput) SetInstanceId(v string) *CreateViewVersionInput { + s.InstanceId = &v + return s +} + +// SetVersionDescription sets the VersionDescription field's value. +func (s *CreateViewVersionInput) SetVersionDescription(v string) *CreateViewVersionInput { + s.VersionDescription = &v + return s +} + +// SetViewContentSha256 sets the ViewContentSha256 field's value. +func (s *CreateViewVersionInput) SetViewContentSha256(v string) *CreateViewVersionInput { + s.ViewContentSha256 = &v + return s +} + +// SetViewId sets the ViewId field's value. +func (s *CreateViewVersionInput) SetViewId(v string) *CreateViewVersionInput { + s.ViewId = &v + return s +} + +type CreateViewVersionOutput struct { + _ struct{} `type:"structure"` + + // All view data is contained within the View object. + View *View `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 CreateViewVersionOutput) 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 CreateViewVersionOutput) GoString() string { + return s.String() +} + +// SetView sets the View field's value. +func (s *CreateViewVersionOutput) SetView(v *View) *CreateViewVersionOutput { + s.View = v + return s +} + type CreateVocabularyInput struct { _ struct{} `type:"structure"` @@ -30631,6 +31975,198 @@ func (s DeleteUserOutput) GoString() string { return s.String() } +type DeleteViewInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The identifier of the view. Both ViewArn and ViewId can be used. + // + // ViewId is a required field + ViewId *string `location:"uri" locationName:"ViewId" 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 DeleteViewInput) 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 DeleteViewInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteViewInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteViewInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.ViewId == nil { + invalidParams.Add(request.NewErrParamRequired("ViewId")) + } + if s.ViewId != nil && len(*s.ViewId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ViewId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DeleteViewInput) SetInstanceId(v string) *DeleteViewInput { + s.InstanceId = &v + return s +} + +// SetViewId sets the ViewId field's value. +func (s *DeleteViewInput) SetViewId(v string) *DeleteViewInput { + s.ViewId = &v + return s +} + +type DeleteViewOutput 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 DeleteViewOutput) 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 DeleteViewOutput) GoString() string { + return s.String() +} + +type DeleteViewVersionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The identifier of the view. Both ViewArn and ViewId can be used. + // + // ViewId is a required field + ViewId *string `location:"uri" locationName:"ViewId" min:"1" type:"string" required:"true"` + + // The version number of the view. + // + // ViewVersion is a required field + ViewVersion *int64 `location:"uri" locationName:"ViewVersion" type:"integer" 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 DeleteViewVersionInput) 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 DeleteViewVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteViewVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteViewVersionInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.ViewId == nil { + invalidParams.Add(request.NewErrParamRequired("ViewId")) + } + if s.ViewId != nil && len(*s.ViewId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ViewId", 1)) + } + if s.ViewVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ViewVersion")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DeleteViewVersionInput) SetInstanceId(v string) *DeleteViewVersionInput { + s.InstanceId = &v + return s +} + +// SetViewId sets the ViewId field's value. +func (s *DeleteViewVersionInput) SetViewId(v string) *DeleteViewVersionInput { + s.ViewId = &v + return s +} + +// SetViewVersion sets the ViewVersion field's value. +func (s *DeleteViewVersionInput) SetViewVersion(v int64) *DeleteViewVersionInput { + s.ViewVersion = &v + return s +} + +type DeleteViewVersionOutput 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 DeleteViewVersionOutput) 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 DeleteViewVersionOutput) GoString() string { + return s.String() +} + type DeleteVocabularyInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -32807,6 +34343,105 @@ func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { return s } +type DescribeViewInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The ViewId of the view. This must be an ARN for Amazon Web Services managed + // views. + // + // ViewId is a required field + ViewId *string `location:"uri" locationName:"ViewId" 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 DescribeViewInput) 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 DescribeViewInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeViewInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeViewInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.ViewId == nil { + invalidParams.Add(request.NewErrParamRequired("ViewId")) + } + if s.ViewId != nil && len(*s.ViewId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ViewId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeViewInput) SetInstanceId(v string) *DescribeViewInput { + s.InstanceId = &v + return s +} + +// SetViewId sets the ViewId field's value. +func (s *DescribeViewInput) SetViewId(v string) *DescribeViewInput { + s.ViewId = &v + return s +} + +type DescribeViewOutput struct { + _ struct{} `type:"structure"` + + // All view data is contained within the View object. + View *View `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 DescribeViewOutput) 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 DescribeViewOutput) GoString() string { + return s.String() +} + +// SetView sets the View field's value. +func (s *DescribeViewOutput) SetView(v *View) *DescribeViewOutput { + s.View = v + return s +} + type DescribeVocabularyInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -45498,6 +47133,266 @@ func (s *ListUsersOutput) SetUserSummaryList(v []*UserSummary) *ListUsersOutput return s } +type ListViewVersionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The maximum number of results to return per page. The default MaxResult size + // is 100. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` + + // The identifier of the view. Both ViewArn and ViewId can be used. + // + // ViewId is a required field + ViewId *string `location:"uri" locationName:"ViewId" 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 ListViewVersionsInput) 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 ListViewVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListViewVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListViewVersionsInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.ViewId == nil { + invalidParams.Add(request.NewErrParamRequired("ViewId")) + } + if s.ViewId != nil && len(*s.ViewId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ViewId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListViewVersionsInput) SetInstanceId(v string) *ListViewVersionsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListViewVersionsInput) SetMaxResults(v int64) *ListViewVersionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListViewVersionsInput) SetNextToken(v string) *ListViewVersionsInput { + s.NextToken = &v + return s +} + +// SetViewId sets the ViewId field's value. +func (s *ListViewVersionsInput) SetViewId(v string) *ListViewVersionsInput { + s.ViewId = &v + return s +} + +type ListViewVersionsOutput struct { + _ struct{} `type:"structure"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // A list of view version summaries. + ViewVersionSummaryList []*ViewVersionSummary `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 ListViewVersionsOutput) 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 ListViewVersionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListViewVersionsOutput) SetNextToken(v string) *ListViewVersionsOutput { + s.NextToken = &v + return s +} + +// SetViewVersionSummaryList sets the ViewVersionSummaryList field's value. +func (s *ListViewVersionsOutput) SetViewVersionSummaryList(v []*ViewVersionSummary) *ListViewVersionsOutput { + s.ViewVersionSummaryList = v + return s +} + +type ListViewsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The maximum number of results to return per page. The default MaxResult size + // is 100. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` + + // The type of the view. + Type *string `location:"querystring" locationName:"type" type:"string" enum:"ViewType"` +} + +// 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 ListViewsInput) 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 ListViewsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListViewsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListViewsInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListViewsInput) SetInstanceId(v string) *ListViewsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListViewsInput) SetMaxResults(v int64) *ListViewsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListViewsInput) SetNextToken(v string) *ListViewsInput { + s.NextToken = &v + return s +} + +// SetType sets the Type field's value. +func (s *ListViewsInput) SetType(v string) *ListViewsInput { + s.Type = &v + return s +} + +type ListViewsOutput struct { + _ struct{} `type:"structure"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // A list of view summaries. + ViewsSummaryList []*ViewSummary `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 ListViewsOutput) 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 ListViewsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListViewsOutput) SetNextToken(v string) *ListViewsOutput { + s.NextToken = &v + return s +} + +// SetViewsSummaryList sets the ViewsSummaryList field's value. +func (s *ListViewsOutput) SetViewsSummaryList(v []*ViewSummary) *ListViewsOutput { + s.ViewsSummaryList = v + return s +} + // Maximum number (1000) of tags have been returned with current request. Consider // changing request parameters to get more tags. type MaximumResultReturnedException struct { @@ -54828,6 +56723,70 @@ func (s *ThrottlingException) RequestID() string { return s.RespMetadata.RequestID } +// Displayed when rate-related API limits are exceeded. +type TooManyRequestsException 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 TooManyRequestsException) 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 TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s *TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *TooManyRequestsException) OrigErr() error { + return nil +} + +func (s *TooManyRequestsException) 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 *TooManyRequestsException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *TooManyRequestsException) RequestID() string { + return s.RespMetadata.RequestID +} + // Information about a traffic distribution group. type TrafficDistributionGroup struct { _ struct{} `type:"structure"` @@ -54852,9 +56811,11 @@ type TrafficDistributionGroup struct { // the DeleteTrafficDistributionGroup API. The default traffic distribution // group is deleted as part of the process for deleting a replica. // - // You can change the SignInConfig only for a default TrafficDistributionGroup. - // If you call UpdateTrafficDistribution with a modified SignInConfig and a - // non-default TrafficDistributionGroup, an InvalidRequestException is returned. + // You can change the SignInConfig distribution only for a default TrafficDistributionGroup + // (see the IsDefault parameter in the TrafficDistributionGroup (https://docs.aws.amazon.com/connect/latest/APIReference/API_TrafficDistributionGroup.html) + // data type). If you call UpdateTrafficDistribution with a modified SignInConfig + // and a non-default TrafficDistributionGroup, an InvalidRequestException is + // returned. IsDefault *bool `type:"boolean"` // The name of the traffic distribution group. @@ -60259,6 +62220,255 @@ func (s UpdateUserSecurityProfilesOutput) GoString() string { return s.String() } +type UpdateViewContentInput struct { + _ struct{} `type:"structure"` + + // View content containing all content necessary to render a view except for + // runtime input data and the runtime input schema, which is auto-generated + // by this operation. + // + // The total uncompressed content has a maximum file size of 400kB. + // + // Content is a required field + Content *ViewInputContent `type:"structure" required:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status + // will initiate validation on the content. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"ViewStatus"` + + // The identifier of the view. Both ViewArn and ViewId can be used. + // + // ViewId is a required field + ViewId *string `location:"uri" locationName:"ViewId" 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 UpdateViewContentInput) 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 UpdateViewContentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateViewContentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateViewContentInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + if s.ViewId == nil { + invalidParams.Add(request.NewErrParamRequired("ViewId")) + } + if s.ViewId != nil && len(*s.ViewId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ViewId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContent sets the Content field's value. +func (s *UpdateViewContentInput) SetContent(v *ViewInputContent) *UpdateViewContentInput { + s.Content = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateViewContentInput) SetInstanceId(v string) *UpdateViewContentInput { + s.InstanceId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateViewContentInput) SetStatus(v string) *UpdateViewContentInput { + s.Status = &v + return s +} + +// SetViewId sets the ViewId field's value. +func (s *UpdateViewContentInput) SetViewId(v string) *UpdateViewContentInput { + s.ViewId = &v + return s +} + +type UpdateViewContentOutput struct { + _ struct{} `type:"structure"` + + // A view resource object. Contains metadata and content necessary to render + // the view. + View *View `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 UpdateViewContentOutput) 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 UpdateViewContentOutput) GoString() string { + return s.String() +} + +// SetView sets the View field's value. +func (s *UpdateViewContentOutput) SetView(v *View) *UpdateViewContentOutput { + s.View = v + return s +} + +type UpdateViewMetadataInput struct { + _ struct{} `type:"structure"` + + // The description of the view. + Description *string `min:"1" type:"string"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The name of the view. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateViewMetadataInput's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` + + // The identifier of the view. Both ViewArn and ViewId can be used. + // + // ViewId is a required field + ViewId *string `location:"uri" locationName:"ViewId" 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 UpdateViewMetadataInput) 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 UpdateViewMetadataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateViewMetadataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateViewMetadataInput"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ViewId == nil { + invalidParams.Add(request.NewErrParamRequired("ViewId")) + } + if s.ViewId != nil && len(*s.ViewId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ViewId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateViewMetadataInput) SetDescription(v string) *UpdateViewMetadataInput { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateViewMetadataInput) SetInstanceId(v string) *UpdateViewMetadataInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateViewMetadataInput) SetName(v string) *UpdateViewMetadataInput { + s.Name = &v + return s +} + +// SetViewId sets the ViewId field's value. +func (s *UpdateViewMetadataInput) SetViewId(v string) *UpdateViewMetadataInput { + s.ViewId = &v + return s +} + +type UpdateViewMetadataOutput 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 UpdateViewMetadataOutput) 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 UpdateViewMetadataOutput) GoString() string { + return s.String() +} + // The URL reference. type UrlReference struct { _ struct{} `type:"structure"` @@ -61310,6 +63520,424 @@ func (s *UserSummary) SetUsername(v string) *UserSummary { return s } +// A view resource object. Contains metadata and content necessary to render +// the view. +type View struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the view. + Arn *string `type:"string"` + + // View content containing all content necessary to render a view except for + // runtime input data. + Content *ViewContent `type:"structure"` + + // The timestamp of when the view was created. + CreatedTime *time.Time `type:"timestamp"` + + // The description of the view. + Description *string `min:"1" type:"string"` + + // The identifier of the view. + Id *string `min:"1" type:"string"` + + // Latest timestamp of the UpdateViewContent or CreateViewVersion operations. + LastModifiedTime *time.Time `type:"timestamp"` + + // The name of the view. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by View's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` + + // Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status + // will initiate validation on the content. + Status *string `type:"string" enum:"ViewStatus"` + + // The tags associated with the view resource (not specific to view version). + Tags map[string]*string `min:"1" type:"map"` + + // The type of the view - CUSTOMER_MANAGED. + Type *string `type:"string" enum:"ViewType"` + + // Current version of the view. + Version *int64 `type:"integer"` + + // The description of the version. + VersionDescription *string `min:"1" type:"string"` + + // Indicates the checksum value of the latest published view content. + ViewContentSha256 *string `min:"1" 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 View) 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 View) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *View) SetArn(v string) *View { + s.Arn = &v + return s +} + +// SetContent sets the Content field's value. +func (s *View) SetContent(v *ViewContent) *View { + s.Content = v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *View) SetCreatedTime(v time.Time) *View { + s.CreatedTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *View) SetDescription(v string) *View { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *View) SetId(v string) *View { + s.Id = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *View) SetLastModifiedTime(v time.Time) *View { + s.LastModifiedTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *View) SetName(v string) *View { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *View) SetStatus(v string) *View { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *View) SetTags(v map[string]*string) *View { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *View) SetType(v string) *View { + s.Type = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *View) SetVersion(v int64) *View { + s.Version = &v + return s +} + +// SetVersionDescription sets the VersionDescription field's value. +func (s *View) SetVersionDescription(v string) *View { + s.VersionDescription = &v + return s +} + +// SetViewContentSha256 sets the ViewContentSha256 field's value. +func (s *View) SetViewContentSha256(v string) *View { + s.ViewContentSha256 = &v + return s +} + +// View content containing all content necessary to render a view except for +// runtime input data. +type ViewContent struct { + _ struct{} `type:"structure"` + + // A list of possible actions from the view. + Actions []*string `type:"list"` + + // The data schema matching data that the view template must be provided to + // render. + // + // InputSchema is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ViewContent's + // String and GoString methods. + InputSchema *string `type:"string" sensitive:"true"` + + // The view template representing the structure of the view. + Template *string `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 ViewContent) 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 ViewContent) GoString() string { + return s.String() +} + +// SetActions sets the Actions field's value. +func (s *ViewContent) SetActions(v []*string) *ViewContent { + s.Actions = v + return s +} + +// SetInputSchema sets the InputSchema field's value. +func (s *ViewContent) SetInputSchema(v string) *ViewContent { + s.InputSchema = &v + return s +} + +// SetTemplate sets the Template field's value. +func (s *ViewContent) SetTemplate(v string) *ViewContent { + s.Template = &v + return s +} + +// View content containing all content necessary to render a view except for +// runtime input data and the runtime input schema, which is auto-generated +// by this operation. +type ViewInputContent struct { + _ struct{} `type:"structure"` + + // A list of possible actions from the view. + Actions []*string `type:"list"` + + // The view template representing the structure of the view. + Template *string `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 ViewInputContent) 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 ViewInputContent) GoString() string { + return s.String() +} + +// SetActions sets the Actions field's value. +func (s *ViewInputContent) SetActions(v []*string) *ViewInputContent { + s.Actions = v + return s +} + +// SetTemplate sets the Template field's value. +func (s *ViewInputContent) SetTemplate(v string) *ViewInputContent { + s.Template = &v + return s +} + +// A summary of a view's metadata. +type ViewSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the view. + Arn *string `type:"string"` + + // The description of the view. + Description *string `min:"1" type:"string"` + + // The identifier of the view. + Id *string `min:"1" type:"string"` + + // The name of the view. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ViewSummary's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` + + // Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status + // will initiate validation on the content. + Status *string `type:"string" enum:"ViewStatus"` + + // The type of the view. + Type *string `type:"string" enum:"ViewType"` +} + +// 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 ViewSummary) 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 ViewSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ViewSummary) SetArn(v string) *ViewSummary { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ViewSummary) SetDescription(v string) *ViewSummary { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *ViewSummary) SetId(v string) *ViewSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ViewSummary) SetName(v string) *ViewSummary { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ViewSummary) SetStatus(v string) *ViewSummary { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *ViewSummary) SetType(v string) *ViewSummary { + s.Type = &v + return s +} + +// A summary of a view version's metadata. +type ViewVersionSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the view version. + Arn *string `type:"string"` + + // The description of the view version. + Description *string `min:"1" type:"string"` + + // The identifier of the view version. + Id *string `min:"1" type:"string"` + + // The name of the view version. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ViewVersionSummary's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` + + // The type of the view version. + Type *string `type:"string" enum:"ViewType"` + + // The sequentially incremented version of the view version. + Version *int64 `type:"integer"` + + // The description of the view version. + VersionDescription *string `min:"1" 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 ViewVersionSummary) 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 ViewVersionSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ViewVersionSummary) SetArn(v string) *ViewVersionSummary { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ViewVersionSummary) SetDescription(v string) *ViewVersionSummary { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *ViewVersionSummary) SetId(v string) *ViewVersionSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ViewVersionSummary) SetName(v string) *ViewVersionSummary { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *ViewVersionSummary) SetType(v string) *ViewVersionSummary { + s.Type = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *ViewVersionSummary) SetVersion(v int64) *ViewVersionSummary { + s.Version = &v + return s +} + +// SetVersionDescription sets the VersionDescription field's value. +func (s *ViewVersionSummary) SetVersionDescription(v string) *ViewVersionSummary { + s.VersionDescription = &v + return s +} + // Contains information about a custom vocabulary. type Vocabulary struct { _ struct{} `type:"structure"` @@ -64125,6 +66753,38 @@ func UseCaseType_Values() []string { } } +const ( + // ViewStatusPublished is a ViewStatus enum value + ViewStatusPublished = "PUBLISHED" + + // ViewStatusSaved is a ViewStatus enum value + ViewStatusSaved = "SAVED" +) + +// ViewStatus_Values returns all elements of the ViewStatus enum +func ViewStatus_Values() []string { + return []string{ + ViewStatusPublished, + ViewStatusSaved, + } +} + +const ( + // ViewTypeCustomerManaged is a ViewType enum value + ViewTypeCustomerManaged = "CUSTOMER_MANAGED" + + // ViewTypeAwsManaged is a ViewType enum value + ViewTypeAwsManaged = "AWS_MANAGED" +) + +// ViewType_Values returns all elements of the ViewType enum +func ViewType_Values() []string { + return []string{ + ViewTypeCustomerManaged, + ViewTypeAwsManaged, + } +} + const ( // VocabularyLanguageCodeArAe is a VocabularyLanguageCode enum value VocabularyLanguageCodeArAe = "ar-AE" diff --git a/service/connect/connectiface/interface.go b/service/connect/connectiface/interface.go index 7c082f10ef1..fb60548ca99 100644 --- a/service/connect/connectiface/interface.go +++ b/service/connect/connectiface/interface.go @@ -188,6 +188,14 @@ type ConnectAPI interface { CreateUserHierarchyGroupWithContext(aws.Context, *connect.CreateUserHierarchyGroupInput, ...request.Option) (*connect.CreateUserHierarchyGroupOutput, error) CreateUserHierarchyGroupRequest(*connect.CreateUserHierarchyGroupInput) (*request.Request, *connect.CreateUserHierarchyGroupOutput) + CreateView(*connect.CreateViewInput) (*connect.CreateViewOutput, error) + CreateViewWithContext(aws.Context, *connect.CreateViewInput, ...request.Option) (*connect.CreateViewOutput, error) + CreateViewRequest(*connect.CreateViewInput) (*request.Request, *connect.CreateViewOutput) + + CreateViewVersion(*connect.CreateViewVersionInput) (*connect.CreateViewVersionOutput, error) + CreateViewVersionWithContext(aws.Context, *connect.CreateViewVersionInput, ...request.Option) (*connect.CreateViewVersionOutput, error) + CreateViewVersionRequest(*connect.CreateViewVersionInput) (*request.Request, *connect.CreateViewVersionOutput) + CreateVocabulary(*connect.CreateVocabularyInput) (*connect.CreateVocabularyOutput, error) CreateVocabularyWithContext(aws.Context, *connect.CreateVocabularyInput, ...request.Option) (*connect.CreateVocabularyOutput, error) CreateVocabularyRequest(*connect.CreateVocabularyInput) (*request.Request, *connect.CreateVocabularyOutput) @@ -268,6 +276,14 @@ type ConnectAPI interface { DeleteUserHierarchyGroupWithContext(aws.Context, *connect.DeleteUserHierarchyGroupInput, ...request.Option) (*connect.DeleteUserHierarchyGroupOutput, error) DeleteUserHierarchyGroupRequest(*connect.DeleteUserHierarchyGroupInput) (*request.Request, *connect.DeleteUserHierarchyGroupOutput) + DeleteView(*connect.DeleteViewInput) (*connect.DeleteViewOutput, error) + DeleteViewWithContext(aws.Context, *connect.DeleteViewInput, ...request.Option) (*connect.DeleteViewOutput, error) + DeleteViewRequest(*connect.DeleteViewInput) (*request.Request, *connect.DeleteViewOutput) + + DeleteViewVersion(*connect.DeleteViewVersionInput) (*connect.DeleteViewVersionOutput, error) + DeleteViewVersionWithContext(aws.Context, *connect.DeleteViewVersionInput, ...request.Option) (*connect.DeleteViewVersionOutput, error) + DeleteViewVersionRequest(*connect.DeleteViewVersionInput) (*request.Request, *connect.DeleteViewVersionOutput) + DeleteVocabulary(*connect.DeleteVocabularyInput) (*connect.DeleteVocabularyOutput, error) DeleteVocabularyWithContext(aws.Context, *connect.DeleteVocabularyInput, ...request.Option) (*connect.DeleteVocabularyOutput, error) DeleteVocabularyRequest(*connect.DeleteVocabularyInput) (*request.Request, *connect.DeleteVocabularyOutput) @@ -356,6 +372,10 @@ type ConnectAPI interface { DescribeUserHierarchyStructureWithContext(aws.Context, *connect.DescribeUserHierarchyStructureInput, ...request.Option) (*connect.DescribeUserHierarchyStructureOutput, error) DescribeUserHierarchyStructureRequest(*connect.DescribeUserHierarchyStructureInput) (*request.Request, *connect.DescribeUserHierarchyStructureOutput) + DescribeView(*connect.DescribeViewInput) (*connect.DescribeViewOutput, error) + DescribeViewWithContext(aws.Context, *connect.DescribeViewInput, ...request.Option) (*connect.DescribeViewOutput, error) + DescribeViewRequest(*connect.DescribeViewInput) (*request.Request, *connect.DescribeViewOutput) + DescribeVocabulary(*connect.DescribeVocabularyInput) (*connect.DescribeVocabularyOutput, error) DescribeVocabularyWithContext(aws.Context, *connect.DescribeVocabularyInput, ...request.Option) (*connect.DescribeVocabularyOutput, error) DescribeVocabularyRequest(*connect.DescribeVocabularyInput) (*request.Request, *connect.DescribeVocabularyOutput) @@ -701,6 +721,20 @@ type ConnectAPI interface { ListUsersPages(*connect.ListUsersInput, func(*connect.ListUsersOutput, bool) bool) error ListUsersPagesWithContext(aws.Context, *connect.ListUsersInput, func(*connect.ListUsersOutput, bool) bool, ...request.Option) error + ListViewVersions(*connect.ListViewVersionsInput) (*connect.ListViewVersionsOutput, error) + ListViewVersionsWithContext(aws.Context, *connect.ListViewVersionsInput, ...request.Option) (*connect.ListViewVersionsOutput, error) + ListViewVersionsRequest(*connect.ListViewVersionsInput) (*request.Request, *connect.ListViewVersionsOutput) + + ListViewVersionsPages(*connect.ListViewVersionsInput, func(*connect.ListViewVersionsOutput, bool) bool) error + ListViewVersionsPagesWithContext(aws.Context, *connect.ListViewVersionsInput, func(*connect.ListViewVersionsOutput, bool) bool, ...request.Option) error + + ListViews(*connect.ListViewsInput) (*connect.ListViewsOutput, error) + ListViewsWithContext(aws.Context, *connect.ListViewsInput, ...request.Option) (*connect.ListViewsOutput, error) + ListViewsRequest(*connect.ListViewsInput) (*request.Request, *connect.ListViewsOutput) + + ListViewsPages(*connect.ListViewsInput, func(*connect.ListViewsOutput, bool) bool) error + ListViewsPagesWithContext(aws.Context, *connect.ListViewsInput, func(*connect.ListViewsOutput, bool) bool, ...request.Option) error + MonitorContact(*connect.MonitorContactInput) (*connect.MonitorContactOutput, error) MonitorContactWithContext(aws.Context, *connect.MonitorContactInput, ...request.Option) (*connect.MonitorContactOutput, error) MonitorContactRequest(*connect.MonitorContactInput) (*request.Request, *connect.MonitorContactOutput) @@ -1006,6 +1040,14 @@ type ConnectAPI interface { UpdateUserSecurityProfiles(*connect.UpdateUserSecurityProfilesInput) (*connect.UpdateUserSecurityProfilesOutput, error) UpdateUserSecurityProfilesWithContext(aws.Context, *connect.UpdateUserSecurityProfilesInput, ...request.Option) (*connect.UpdateUserSecurityProfilesOutput, error) UpdateUserSecurityProfilesRequest(*connect.UpdateUserSecurityProfilesInput) (*request.Request, *connect.UpdateUserSecurityProfilesOutput) + + UpdateViewContent(*connect.UpdateViewContentInput) (*connect.UpdateViewContentOutput, error) + UpdateViewContentWithContext(aws.Context, *connect.UpdateViewContentInput, ...request.Option) (*connect.UpdateViewContentOutput, error) + UpdateViewContentRequest(*connect.UpdateViewContentInput) (*request.Request, *connect.UpdateViewContentOutput) + + UpdateViewMetadata(*connect.UpdateViewMetadataInput) (*connect.UpdateViewMetadataOutput, error) + UpdateViewMetadataWithContext(aws.Context, *connect.UpdateViewMetadataInput, ...request.Option) (*connect.UpdateViewMetadataOutput, error) + UpdateViewMetadataRequest(*connect.UpdateViewMetadataInput) (*request.Request, *connect.UpdateViewMetadataOutput) } var _ ConnectAPI = (*connect.Connect)(nil) diff --git a/service/connect/errors.go b/service/connect/errors.go index 02acb685b97..0cfcf42c424 100644 --- a/service/connect/errors.go +++ b/service/connect/errors.go @@ -24,7 +24,7 @@ const ( // "ContactNotFoundException". // // The contact with the specified ID is not active or does not exist. Applies - // to Voice calls only, not to Chat, Task, or Voice Callback. + // to Voice calls only, not to Chat or Task contacts. ErrCodeContactNotFoundException = "ContactNotFoundException" // ErrCodeDestinationNotAllowedException for service response error code @@ -136,6 +136,12 @@ const ( // The throttling limit has been exceeded. ErrCodeThrottlingException = "ThrottlingException" + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // Displayed when rate-related API limits are exceeded. + ErrCodeTooManyRequestsException = "TooManyRequestsException" + // ErrCodeUserNotFoundException for service response error code // "UserNotFoundException". // @@ -165,5 +171,6 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ResourceNotReadyException": newErrorResourceNotReadyException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ThrottlingException": newErrorThrottlingException, + "TooManyRequestsException": newErrorTooManyRequestsException, "UserNotFoundException": newErrorUserNotFoundException, } diff --git a/service/identitystore/api.go b/service/identitystore/api.go index 6caa1016d3b..ab3cc7cb463 100644 --- a/service/identitystore/api.go +++ b/service/identitystore/api.go @@ -685,6 +685,10 @@ func (c *IdentityStore) DescribeGroupRequest(input *DescribeGroupInput) (req *re // // Retrieves the group metadata and attributes from GroupId in an identity store. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -779,6 +783,10 @@ func (c *IdentityStore) DescribeGroupMembershipRequest(input *DescribeGroupMembe // Retrieves membership metadata and attributes from MembershipId in an identity // store. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -873,6 +881,10 @@ func (c *IdentityStore) DescribeUserRequest(input *DescribeUserInput) (req *requ // Retrieves the user metadata and attributes from the UserId in an identity // store. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -966,6 +978,10 @@ func (c *IdentityStore) GetGroupIdRequest(input *GetGroupIdInput) (req *request. // // Retrieves GroupId in an identity store. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -1059,6 +1075,10 @@ func (c *IdentityStore) GetGroupMembershipIdRequest(input *GetGroupMembershipIdI // // Retrieves the MembershipId in an identity store. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -1152,6 +1172,10 @@ func (c *IdentityStore) GetUserIdRequest(input *GetUserIdInput) (req *request.Re // // Retrieves the UserId in an identity store. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -1246,6 +1270,10 @@ func (c *IdentityStore) IsMemberInGroupsRequest(input *IsMemberInGroupsInput) (r // Checks the user's membership in all requested groups and returns if the member // exists in all queried groups. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -1346,6 +1374,10 @@ func (c *IdentityStore) ListGroupMembershipsRequest(input *ListGroupMembershipsI // For the specified group in the specified identity store, returns the list // of all GroupMembership objects and returns results in paginated form. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -1497,6 +1529,10 @@ func (c *IdentityStore) ListGroupMembershipsForMemberRequest(input *ListGroupMem // For the specified member in the specified identity store, returns the list // of all GroupMembership objects and returns results in paginated form. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -1649,6 +1685,10 @@ func (c *IdentityStore) ListGroupsRequest(input *ListGroupsInput) (req *request. // Group objects. Filtering for a Group by the DisplayName attribute is deprecated. // Instead, use the GetGroupId API action. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -1801,6 +1841,10 @@ func (c *IdentityStore) ListUsersRequest(input *ListUsersInput) (req *request.Re // User objects. Filtering for a User by the UserName attribute is deprecated. // Instead, use the GetUserId API action. // +// If you have administrator access to a member account, you can use this API +// from the member account. Read about member accounts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html) +// in the Organizations User 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. @@ -2540,8 +2584,8 @@ type CreateGroupInput struct { Description *string `min:"1" type:"string" sensitive:"true"` // A string containing the name of the group. This value is commonly displayed - // when the group is referenced. "Administrator" and "AWSAdministrators" are - // reserved names and can't be used for users or groups. + // when the group is referenced. Administrator and AWSAdministrators are reserved + // names and can't be used for users or groups. // // DisplayName is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by CreateGroupInput's @@ -2863,9 +2907,8 @@ type CreateUserInput struct { // A unique string used to identify the user. The length limit is 128 characters. // This value can consist of letters, accented characters, symbols, numbers, // and punctuation. This value is specified at the time the user is created - // and stored as an attribute of the user object in the identity store. "Administrator" - // and "AWSAdministrators" are reserved names and can't be used for users or - // groups. + // and stored as an attribute of the user object in the identity store. Administrator + // and AWSAdministrators are reserved names and can't be used for users or groups. // // UserName is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by CreateUserInput's diff --git a/service/identitystore/doc.go b/service/identitystore/doc.go index 5b4710740bd..eb58238b7f2 100644 --- a/service/identitystore/doc.go +++ b/service/identitystore/doc.go @@ -3,18 +3,15 @@ // Package identitystore provides the client and types for making API // requests to AWS SSO Identity Store. // -// The Identity Store service used by AWS IAM Identity Center (successor to -// AWS Single Sign-On) provides a single place to retrieve all of your identities -// (users and groups). For more information, see the IAM Identity Center User -// Guide (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). -// -//

Although AWS Single Sign-On was renamed, the sso -// and identitystore API namespaces will continue to retain -// their original name for backward compatibility purposes. For more information, -// see IAM -// Identity Center rename.

This reference guide describes -// the identity store operations that you can call programatically and includes -// detailed information about data types and errors.

+// The Identity Store service used by IAM Identity Center provides a single +// place to retrieve all of your identities (users and groups). For more information, +// see the IAM Identity Center User Guide (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). +// +// This reference guide describes the identity store operations that you can +// call programmatically and includes detailed information about data types +// and errors. +// +// IAM Identity Center uses the sso and identitystore API namespaces. // // See https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15 for more information on this service. // diff --git a/service/neptunedata/doc.go b/service/neptunedata/doc.go index ff3d71899ca..88f333c22e6 100644 --- a/service/neptunedata/doc.go +++ b/service/neptunedata/doc.go @@ -5,9 +5,9 @@ // // The Amazon Neptune data API provides SDK support for more than 40 of Neptune's // data operations, including data loading, query execution, data inquiry, and -// machine learning. It supports all three Neptune query languages (Gremlin, -// openCypher and SPARQL), and is available in all SDK languages. It automatically -// signs API requests and greatly simplifies integrating Neptune into your applications. +// machine learning. It supports the Gremlin and openCypher query languages, +// and is available in all SDK languages. It automatically signs API requests +// and greatly simplifies integrating Neptune into your applications. // // See https://docs.aws.amazon.com/goto/WebAPI/neptunedata-2023-08-01 for more information on this service. //