Skip to content

Commit

Permalink
feat: update clients as of 11/12
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Nov 12, 2020
1 parent f08ee82 commit b62673c
Show file tree
Hide file tree
Showing 81 changed files with 20,036 additions and 8,466 deletions.
49 changes: 45 additions & 4 deletions clients/client-iot/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,19 @@ export interface FirehoseAction {
* (comma).</p>
*/
separator?: string;

/**
* <p>Whether to deliver the Kinesis Data Firehose stream as a batch by using <a href="https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html">
* <code>PutRecordBatch</code>
* </a>. The default value is
* <code>false</code>.</p>
* <p>When <code>batchMode</code> is <code>true</code> and the rule's SQL statement
* evaluates to an Array, each Array element forms one record in the <a href="https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html">
* <code>PutRecordBatch</code>
* </a> request. The resulting array can't have more
* than 500 records.</p>
*/
batchMode?: boolean;
}

export namespace FirehoseAction {
Expand All @@ -501,7 +514,7 @@ export namespace FirehoseAction {
}

/**
* <p>Use Sig V4 authorization.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a>.</p>
*/
export interface SigV4Authorization {
/**
Expand Down Expand Up @@ -617,6 +630,17 @@ export interface IotAnalyticsAction {
*/
channelName?: string;

/**
* <p>Whether to process the action as a batch. The default value is
* <code>false</code>.</p>
* <p>When <code>batchMode</code> is <code>true</code> and the rule SQL statement evaluates
* to an Array, each Array element is delivered as a separate message when passed by <a href="https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_BatchPutMessage.html">
* <code>BatchPutMessage</code>
* </a> to the AWS IoT Analytics channel. The resulting array can't have more
* than 100 messages.</p>
*/
batchMode?: boolean;

/**
* <p>The ARN of the role which has a policy that grants IoT Analytics permission to send
* message data via IoT Analytics (iotanalytics:BatchPutMessage).</p>
Expand All @@ -640,11 +664,28 @@ export interface IotEventsAction {
inputName: string | undefined;

/**
* <p>[Optional] Use this to ensure that only one input (message) with a given messageId will
* be processed by an AWS IoT Events detector.</p>
* <p>The ID of the message. The default <code>messageId</code> is a new UUID value.</p>
* <p>When <code>batchMode</code> is <code>true</code>, you can't specify a
* <code>messageId</code>--a new UUID value will be assigned.</p>
* <p>Assign a value to this property to ensure that only one input (message) with a given
* <code>messageId</code> will be processed by an AWS IoT Events detector.</p>
*/
messageId?: string;

/**
* <p>Whether to process the event actions as a batch. The default value is
* <code>false</code>.</p>
* <p>When <code>batchMode</code> is <code>true</code>, you can't specify a
* <code>messageId</code>. </p>
* <p>When <code>batchMode</code> is <code>true</code> and the rule SQL statement evaluates
* to an Array, each Array element is treated as a separate message when it's sent to AWS IoT
* Events by calling <a href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchPutMessage.html">
* <code>BatchPutMessage</code>
* </a>. The resulting array can't have more
* than 10 messages.</p>
*/
batchMode?: boolean;

/**
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS IoT
* Events detector. ("Action":"iotevents:BatchPutMessage").</p>
Expand Down Expand Up @@ -906,7 +947,7 @@ export interface S3Action {
bucketName: string | undefined;

/**
* <p>The object key.</p>
* <p>The object key. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html">Actions, resources, and condition keys for Amazon S3</a>.</p>
*/
key: string | undefined;

Expand Down
6 changes: 6 additions & 0 deletions clients/client-iot/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28230,6 +28230,7 @@ const serializeAws_restJson1FindingIds = (input: string[], context: __SerdeConte

const serializeAws_restJson1FirehoseAction = (input: FirehoseAction, context: __SerdeContext): any => {
return {
...(input.batchMode !== undefined && { batchMode: input.batchMode }),
...(input.deliveryStreamName !== undefined && { deliveryStreamName: input.deliveryStreamName }),
...(input.roleArn !== undefined && { roleArn: input.roleArn }),
...(input.separator !== undefined && { separator: input.separator }),
Expand Down Expand Up @@ -28290,6 +28291,7 @@ const serializeAws_restJson1HttpUrlDestinationConfiguration = (

const serializeAws_restJson1IotAnalyticsAction = (input: IotAnalyticsAction, context: __SerdeContext): any => {
return {
...(input.batchMode !== undefined && { batchMode: input.batchMode }),
...(input.channelArn !== undefined && { channelArn: input.channelArn }),
...(input.channelName !== undefined && { channelName: input.channelName }),
...(input.roleArn !== undefined && { roleArn: input.roleArn }),
Expand All @@ -28298,6 +28300,7 @@ const serializeAws_restJson1IotAnalyticsAction = (input: IotAnalyticsAction, con

const serializeAws_restJson1IotEventsAction = (input: IotEventsAction, context: __SerdeContext): any => {
return {
...(input.batchMode !== undefined && { batchMode: input.batchMode }),
...(input.inputName !== undefined && { inputName: input.inputName }),
...(input.messageId !== undefined && { messageId: input.messageId }),
...(input.roleArn !== undefined && { roleArn: input.roleArn }),
Expand Down Expand Up @@ -30088,6 +30091,7 @@ const deserializeAws_restJson1FindingIds = (output: any, context: __SerdeContext

const deserializeAws_restJson1FirehoseAction = (output: any, context: __SerdeContext): FirehoseAction => {
return {
batchMode: output.batchMode !== undefined && output.batchMode !== null ? output.batchMode : undefined,
deliveryStreamName:
output.deliveryStreamName !== undefined && output.deliveryStreamName !== null
? output.deliveryStreamName
Expand Down Expand Up @@ -30175,6 +30179,7 @@ const deserializeAws_restJson1IndexNamesList = (output: any, context: __SerdeCon

const deserializeAws_restJson1IotAnalyticsAction = (output: any, context: __SerdeContext): IotAnalyticsAction => {
return {
batchMode: output.batchMode !== undefined && output.batchMode !== null ? output.batchMode : undefined,
channelArn: output.channelArn !== undefined && output.channelArn !== null ? output.channelArn : undefined,
channelName: output.channelName !== undefined && output.channelName !== null ? output.channelName : undefined,
roleArn: output.roleArn !== undefined && output.roleArn !== null ? output.roleArn : undefined,
Expand All @@ -30183,6 +30188,7 @@ const deserializeAws_restJson1IotAnalyticsAction = (output: any, context: __Serd

const deserializeAws_restJson1IotEventsAction = (output: any, context: __SerdeContext): IotEventsAction => {
return {
batchMode: output.batchMode !== undefined && output.batchMode !== null ? output.batchMode : undefined,
inputName: output.inputName !== undefined && output.inputName !== null ? output.inputName : undefined,
messageId: output.messageId !== undefined && output.messageId !== null ? output.messageId : undefined,
roleArn: output.roleArn !== undefined && output.roleArn !== null ? output.roleArn : undefined,
Expand Down
Loading

0 comments on commit b62673c

Please sign in to comment.