Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clients): update clients as of 09/17/2021 #2795

Merged
merged 3 commits into from
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/client-chime/Chime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6457,7 +6457,7 @@ export class Chime extends ChimeClient {
}

/**
* <p>Start transcription for the specified <code>meetingId</code>. </p>
* <p>Starts transcription for the specified <code>meetingId</code>. </p>
*/
public startMeetingTranscription(
args: StartMeetingTranscriptionCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface StartMeetingTranscriptionCommandInput extends StartMeetingTrans
export interface StartMeetingTranscriptionCommandOutput extends StartMeetingTranscriptionResponse, __MetadataBearer {}

/**
* <p>Start transcription for the specified <code>meetingId</code>. </p>
* <p>Starts transcription for the specified <code>meetingId</code>. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
6 changes: 6 additions & 0 deletions clients/client-chime/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3910,6 +3910,11 @@ export interface CreateSipMediaApplicationCallRequest {
* <p>The ID of the SIP media application.</p>
*/
SipMediaApplicationId: string | undefined;

/**
* <p>The SIP headers added to an outbound call leg.</p>
*/
SipHeaders?: { [key: string]: string };
}

export namespace CreateSipMediaApplicationCallRequest {
Expand All @@ -3920,6 +3925,7 @@ export namespace CreateSipMediaApplicationCallRequest {
...obj,
...(obj.FromPhoneNumber && { FromPhoneNumber: SENSITIVE_STRING }),
...(obj.ToPhoneNumber && { ToPhoneNumber: SENSITIVE_STRING }),
...(obj.SipHeaders && { SipHeaders: SENSITIVE_STRING }),
});
}

Expand Down
12 changes: 9 additions & 3 deletions clients/client-chime/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ export enum OriginationRouteProtocol {
* <p>Origination routes define call distribution properties for your SIP hosts to receive inbound
* calls using your Amazon Chime Voice Connector. Limit: Ten origination routes for each
* Amazon Chime Voice Connector.</p>
* <note>
* <p>The parameters listed below are not required, but you must use at least one. </p>
* </note>
*/
export interface OriginationRoute {
/**
Expand Down Expand Up @@ -297,17 +300,20 @@ export namespace OriginationRoute {
/**
* <p>Origination settings enable your SIP hosts to receive inbound calls using your Amazon Chime
* Voice Connector.</p>
* <note>
* <p>The parameters listed below are not required, but you must use at least one. </p>
* </note>
*/
export interface Origination {
/**
* <p>The call distribution properties defined for your SIP hosts. Valid range: Minimum value of 1.
* Maximum value of 20.</p>
* Maximum value of 20. This parameter is not required, but you must specify this parameter or <code>Disabled</code>.</p>
*/
Routes?: OriginationRoute[];

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

/**
* <p>The transcription configuration settings passed to Amazon Transcribe.</p>
* <p>The transcription configuration settings passed to Amazon Transcribe Medical.</p>
*/
EngineTranscribeMedicalSettings?: EngineTranscribeMedicalSettings;
}
Expand Down
22 changes: 22 additions & 0 deletions clients/client-chime/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,8 @@ export const serializeAws_restJson1CreateSipMediaApplicationCallCommand = async
body = JSON.stringify({
...(input.FromPhoneNumber !== undefined &&
input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber }),
...(input.SipHeaders !== undefined &&
input.SipHeaders !== null && { SipHeaders: serializeAws_restJson1SipHeadersMap(input.SipHeaders, context) }),
...(input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber }),
});
return new __HttpRequest({
Expand Down Expand Up @@ -11068,6 +11070,14 @@ const deserializeAws_restJson1CreateSipMediaApplicationCallCommandError = async
let errorCode: string = "UnknownError";
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "AccessDeniedException":
case "com.amazonaws.chime#AccessDeniedException":
response = {
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
name: errorCode,
$metadata: deserializeMetadata(output),
};
break;
case "BadRequestException":
case "com.amazonaws.chime#BadRequestException":
response = {
Expand Down Expand Up @@ -28028,6 +28038,18 @@ const serializeAws_restJson1SigninDelegateGroupList = (input: SigninDelegateGrou
});
};

const serializeAws_restJson1SipHeadersMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
if (value === null) {
return acc;
}
return {
...acc,
[key]: value,
};
}, {});
};

const serializeAws_restJson1SipMediaApplicationEndpoint = (
input: SipMediaApplicationEndpoint,
context: __SerdeContext
Expand Down
105 changes: 104 additions & 1 deletion clients/client-comprehend/models/models_0.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";

export enum AugmentedManifestsDocumentTypeFormat {
PLAIN_TEXT_DOCUMENT = "PLAIN_TEXT_DOCUMENT",
SEMI_STRUCTURED_DOCUMENT = "SEMI_STRUCTURED_DOCUMENT",
}

/**
* <p>An augmented manifest file that provides training data for your custom model. An augmented
* manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.</p>
Expand All @@ -22,6 +27,32 @@ export interface AugmentedManifestsListItem {
* an individual job.</p>
*/
AttributeNames: string[] | undefined;

/**
* <p>The S3 prefix to the annotation files that are referred in the augmented manifest file.</p>
*/
AnnotationDataS3Uri?: string;

/**
* <p>The S3 prefix to the source files (PDFs) that are referred to in the augmented manifest file.</p>
*/
SourceDocumentsS3Uri?: string;

/**
* <p>The type of augmented manifest. PlainTextDocument or SemiStructuredDocument. If you don't specify, the default is PlainTextDocument. </p>
* <ul>
* <li>
* <p>
* <code>PLAIN_TEXT_DOCUMENT</code> A document type that represents any unicode text that is encoded in UTF-8.</p>
* </li>
* <li>
* <p>
* <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.
* For inference, Amazon Comprehend support PDFs, DOCX and TXT.</p>
* </li>
* </ul>
*/
DocumentType?: AugmentedManifestsDocumentTypeFormat | string;
}

export namespace AugmentedManifestsListItem {
Expand Down Expand Up @@ -2036,13 +2067,78 @@ export namespace DescribeDocumentClassificationJobRequest {
});
}

export enum DocumentReadAction {
TEXTRACT_ANALYZE_DOCUMENT = "TEXTRACT_ANALYZE_DOCUMENT",
TEXTRACT_DETECT_DOCUMENT_TEXT = "TEXTRACT_DETECT_DOCUMENT_TEXT",
}

export enum DocumentReadMode {
FORCE_DOCUMENT_READ_ACTION = "FORCE_DOCUMENT_READ_ACTION",
SERVICE_DEFAULT = "SERVICE_DEFAULT",
}

export enum DocumentReadFeatureTypes {
FORMS = "FORMS",
TABLES = "TABLES",
}

/**
* <p>The input properties for a topic detection job.</p>
*/
export interface DocumentReaderConfig {
/**
* <p>This enum field will start with two values which will apply to PDFs:</p>
* <ul>
* <li>
* <p>
* <code>TEXTRACT_DETECT_DOCUMENT_TEXT</code> - The service calls DetectDocumentText for PDF documents per page.</p>
* </li>
* <li>
* <p>
* <code>TEXTRACT_ANALYZE_DOCUMENT</code> - The service calls AnalyzeDocument for PDF documents per page.</p>
* </li>
* </ul>
*/
DocumentReadAction: DocumentReadAction | string | undefined;

/**
* <p>This enum field provides two values:</p>
* <ul>
* <li>
* <p>
* <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>
* </li>
* <li>
* <p>
* <code>FORCE_DOCUMENT_READ_ACTION</code> - Always use specified action for DocumentReadAction, including Digital PDF.
* </p>
* </li>
* </ul>
*/
DocumentReadMode?: DocumentReadMode | string;

/**
* <p>Specifies how the text in an input file should be processed:</p>
*/
FeatureTypes?: (DocumentReadFeatureTypes | string)[];
}

export namespace DocumentReaderConfig {
/**
* @internal
*/
export const filterSensitiveLog = (obj: DocumentReaderConfig): any => ({
...obj,
});
}

export enum InputFormat {
ONE_DOC_PER_FILE = "ONE_DOC_PER_FILE",
ONE_DOC_PER_LINE = "ONE_DOC_PER_LINE",
}

/**
* <p>The input properties for a topic detection job.</p>
* <p>The input properties for an inference job.</p>
*/
export interface InputDataConfig {
/**
Expand Down Expand Up @@ -2073,6 +2169,13 @@ export interface InputDataConfig {
* </ul>
*/
InputFormat?: InputFormat | string;

/**
* <p>The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob. </p>
* <p>Use DocumentReaderConfig to provide specifications about how you want your inference documents read.
* Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.</p>
*/
DocumentReaderConfig?: DocumentReaderConfig;
}

export namespace InputDataConfig {
Expand Down
Loading