Skip to content

Commit 45aee9d

Browse files
authored
feat(clients): update clients as of 09/17/2021 (#2795)
1 parent 4986bab commit 45aee9d

File tree

168 files changed

+18208
-1631
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+18208
-1631
lines changed

Diff for: clients/client-chime/Chime.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6457,7 +6457,7 @@ export class Chime extends ChimeClient {
64576457
}
64586458

64596459
/**
6460-
* <p>Start transcription for the specified <code>meetingId</code>. </p>
6460+
* <p>Starts transcription for the specified <code>meetingId</code>. </p>
64616461
*/
64626462
public startMeetingTranscription(
64636463
args: StartMeetingTranscriptionCommandInput,

Diff for: clients/client-chime/commands/StartMeetingTranscriptionCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface StartMeetingTranscriptionCommandInput extends StartMeetingTrans
2121
export interface StartMeetingTranscriptionCommandOutput extends StartMeetingTranscriptionResponse, __MetadataBearer {}
2222

2323
/**
24-
* <p>Start transcription for the specified <code>meetingId</code>. </p>
24+
* <p>Starts transcription for the specified <code>meetingId</code>. </p>
2525
* @example
2626
* Use a bare-bones client and the command you need to make an API call.
2727
* ```javascript

Diff for: clients/client-chime/models/models_0.ts

+6
Original file line numberDiff line numberDiff line change
@@ -3910,6 +3910,11 @@ export interface CreateSipMediaApplicationCallRequest {
39103910
* <p>The ID of the SIP media application.</p>
39113911
*/
39123912
SipMediaApplicationId: string | undefined;
3913+
3914+
/**
3915+
* <p>The SIP headers added to an outbound call leg.</p>
3916+
*/
3917+
SipHeaders?: { [key: string]: string };
39133918
}
39143919

39153920
export namespace CreateSipMediaApplicationCallRequest {
@@ -3920,6 +3925,7 @@ export namespace CreateSipMediaApplicationCallRequest {
39203925
...obj,
39213926
...(obj.FromPhoneNumber && { FromPhoneNumber: SENSITIVE_STRING }),
39223927
...(obj.ToPhoneNumber && { ToPhoneNumber: SENSITIVE_STRING }),
3928+
...(obj.SipHeaders && { SipHeaders: SENSITIVE_STRING }),
39233929
});
39243930
}
39253931

Diff for: clients/client-chime/models/models_1.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ export enum OriginationRouteProtocol {
255255
* <p>Origination routes define call distribution properties for your SIP hosts to receive inbound
256256
* calls using your Amazon Chime Voice Connector. Limit: Ten origination routes for each
257257
* Amazon Chime Voice Connector.</p>
258+
* <note>
259+
* <p>The parameters listed below are not required, but you must use at least one. </p>
260+
* </note>
258261
*/
259262
export interface OriginationRoute {
260263
/**
@@ -297,17 +300,20 @@ export namespace OriginationRoute {
297300
/**
298301
* <p>Origination settings enable your SIP hosts to receive inbound calls using your Amazon Chime
299302
* Voice Connector.</p>
303+
* <note>
304+
* <p>The parameters listed below are not required, but you must use at least one. </p>
305+
* </note>
300306
*/
301307
export interface Origination {
302308
/**
303309
* <p>The call distribution properties defined for your SIP hosts. Valid range: Minimum value of 1.
304-
* Maximum value of 20.</p>
310+
* Maximum value of 20. This parameter is not required, but you must specify this parameter or <code>Disabled</code>.</p>
305311
*/
306312
Routes?: OriginationRoute[];
307313

308314
/**
309315
* <p>When origination settings are disabled, inbound calls are not enabled for your Amazon Chime
310-
* Voice Connector.</p>
316+
* Voice Connector. This parameter is not required, but you must specify this parameter or <code>Routes</code>.</p>
311317
*/
312318
Disabled?: boolean;
313319
}
@@ -3162,7 +3168,7 @@ export interface TranscriptionConfiguration {
31623168
EngineTranscribeSettings?: EngineTranscribeSettings;
31633169

31643170
/**
3165-
* <p>The transcription configuration settings passed to Amazon Transcribe.</p>
3171+
* <p>The transcription configuration settings passed to Amazon Transcribe Medical.</p>
31663172
*/
31673173
EngineTranscribeMedicalSettings?: EngineTranscribeMedicalSettings;
31683174
}

Diff for: clients/client-chime/protocols/Aws_restJson1.ts

+22
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,8 @@ export const serializeAws_restJson1CreateSipMediaApplicationCallCommand = async
19001900
body = JSON.stringify({
19011901
...(input.FromPhoneNumber !== undefined &&
19021902
input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber }),
1903+
...(input.SipHeaders !== undefined &&
1904+
input.SipHeaders !== null && { SipHeaders: serializeAws_restJson1SipHeadersMap(input.SipHeaders, context) }),
19031905
...(input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber }),
19041906
});
19051907
return new __HttpRequest({
@@ -11068,6 +11070,14 @@ const deserializeAws_restJson1CreateSipMediaApplicationCallCommandError = async
1106811070
let errorCode: string = "UnknownError";
1106911071
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1107011072
switch (errorCode) {
11073+
case "AccessDeniedException":
11074+
case "com.amazonaws.chime#AccessDeniedException":
11075+
response = {
11076+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
11077+
name: errorCode,
11078+
$metadata: deserializeMetadata(output),
11079+
};
11080+
break;
1107111081
case "BadRequestException":
1107211082
case "com.amazonaws.chime#BadRequestException":
1107311083
response = {
@@ -28028,6 +28038,18 @@ const serializeAws_restJson1SigninDelegateGroupList = (input: SigninDelegateGrou
2802828038
});
2802928039
};
2803028040

28041+
const serializeAws_restJson1SipHeadersMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
28042+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
28043+
if (value === null) {
28044+
return acc;
28045+
}
28046+
return {
28047+
...acc,
28048+
[key]: value,
28049+
};
28050+
}, {});
28051+
};
28052+
2803128053
const serializeAws_restJson1SipMediaApplicationEndpoint = (
2803228054
input: SipMediaApplicationEndpoint,
2803328055
context: __SerdeContext

Diff for: clients/client-comprehend/models/models_0.ts

+104-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
22
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
33

4+
export enum AugmentedManifestsDocumentTypeFormat {
5+
PLAIN_TEXT_DOCUMENT = "PLAIN_TEXT_DOCUMENT",
6+
SEMI_STRUCTURED_DOCUMENT = "SEMI_STRUCTURED_DOCUMENT",
7+
}
8+
49
/**
510
* <p>An augmented manifest file that provides training data for your custom model. An augmented
611
* manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.</p>
@@ -22,6 +27,32 @@ export interface AugmentedManifestsListItem {
2227
* an individual job.</p>
2328
*/
2429
AttributeNames: string[] | undefined;
30+
31+
/**
32+
* <p>The S3 prefix to the annotation files that are referred in the augmented manifest file.</p>
33+
*/
34+
AnnotationDataS3Uri?: string;
35+
36+
/**
37+
* <p>The S3 prefix to the source files (PDFs) that are referred to in the augmented manifest file.</p>
38+
*/
39+
SourceDocumentsS3Uri?: string;
40+
41+
/**
42+
* <p>The type of augmented manifest. PlainTextDocument or SemiStructuredDocument. If you don't specify, the default is PlainTextDocument. </p>
43+
* <ul>
44+
* <li>
45+
* <p>
46+
* <code>PLAIN_TEXT_DOCUMENT</code> A document type that represents any unicode text that is encoded in UTF-8.</p>
47+
* </li>
48+
* <li>
49+
* <p>
50+
* <code>SEMI_STRUCTURED_DOCUMENT</code> A document type with positional and structural context, like a PDF. For training with Amazon Comprehend, only PDFs are supported.
51+
* For inference, Amazon Comprehend support PDFs, DOCX and TXT.</p>
52+
* </li>
53+
* </ul>
54+
*/
55+
DocumentType?: AugmentedManifestsDocumentTypeFormat | string;
2556
}
2657

2758
export namespace AugmentedManifestsListItem {
@@ -2036,13 +2067,78 @@ export namespace DescribeDocumentClassificationJobRequest {
20362067
});
20372068
}
20382069

2070+
export enum DocumentReadAction {
2071+
TEXTRACT_ANALYZE_DOCUMENT = "TEXTRACT_ANALYZE_DOCUMENT",
2072+
TEXTRACT_DETECT_DOCUMENT_TEXT = "TEXTRACT_DETECT_DOCUMENT_TEXT",
2073+
}
2074+
2075+
export enum DocumentReadMode {
2076+
FORCE_DOCUMENT_READ_ACTION = "FORCE_DOCUMENT_READ_ACTION",
2077+
SERVICE_DEFAULT = "SERVICE_DEFAULT",
2078+
}
2079+
2080+
export enum DocumentReadFeatureTypes {
2081+
FORMS = "FORMS",
2082+
TABLES = "TABLES",
2083+
}
2084+
2085+
/**
2086+
* <p>The input properties for a topic detection job.</p>
2087+
*/
2088+
export interface DocumentReaderConfig {
2089+
/**
2090+
* <p>This enum field will start with two values which will apply to PDFs:</p>
2091+
* <ul>
2092+
* <li>
2093+
* <p>
2094+
* <code>TEXTRACT_DETECT_DOCUMENT_TEXT</code> - The service calls DetectDocumentText for PDF documents per page.</p>
2095+
* </li>
2096+
* <li>
2097+
* <p>
2098+
* <code>TEXTRACT_ANALYZE_DOCUMENT</code> - The service calls AnalyzeDocument for PDF documents per page.</p>
2099+
* </li>
2100+
* </ul>
2101+
*/
2102+
DocumentReadAction: DocumentReadAction | string | undefined;
2103+
2104+
/**
2105+
* <p>This enum field provides two values:</p>
2106+
* <ul>
2107+
* <li>
2108+
* <p>
2109+
* <code>SERVICE_DEFAULT</code> - use service defaults for Document reading. For Digital PDF it would mean using an internal parser instead of Textract APIs</p>
2110+
* </li>
2111+
* <li>
2112+
* <p>
2113+
* <code>FORCE_DOCUMENT_READ_ACTION</code> - Always use specified action for DocumentReadAction, including Digital PDF.
2114+
* </p>
2115+
* </li>
2116+
* </ul>
2117+
*/
2118+
DocumentReadMode?: DocumentReadMode | string;
2119+
2120+
/**
2121+
* <p>Specifies how the text in an input file should be processed:</p>
2122+
*/
2123+
FeatureTypes?: (DocumentReadFeatureTypes | string)[];
2124+
}
2125+
2126+
export namespace DocumentReaderConfig {
2127+
/**
2128+
* @internal
2129+
*/
2130+
export const filterSensitiveLog = (obj: DocumentReaderConfig): any => ({
2131+
...obj,
2132+
});
2133+
}
2134+
20392135
export enum InputFormat {
20402136
ONE_DOC_PER_FILE = "ONE_DOC_PER_FILE",
20412137
ONE_DOC_PER_LINE = "ONE_DOC_PER_LINE",
20422138
}
20432139

20442140
/**
2045-
* <p>The input properties for a topic detection job.</p>
2141+
* <p>The input properties for an inference job.</p>
20462142
*/
20472143
export interface InputDataConfig {
20482144
/**
@@ -2073,6 +2169,13 @@ export interface InputDataConfig {
20732169
* </ul>
20742170
*/
20752171
InputFormat?: InputFormat | string;
2172+
2173+
/**
2174+
* <p>The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob. </p>
2175+
* <p>Use DocumentReaderConfig to provide specifications about how you want your inference documents read.
2176+
* Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.</p>
2177+
*/
2178+
DocumentReaderConfig?: DocumentReaderConfig;
20762179
}
20772180

20782181
export namespace InputDataConfig {

0 commit comments

Comments
 (0)