Skip to content

feat(clients): update clients as of 2021/10/22 #2924

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

Merged
merged 4 commits into from
Oct 22, 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
29 changes: 29 additions & 0 deletions clients/client-appflow/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3392,6 +3392,30 @@ export namespace MarketoSourceProperties {
});
}

export enum S3InputFileType {
CSV = "CSV",
JSON = "JSON",
}

/**
* <p> When you use Amazon S3 as the source, the configuration format that you provide the flow input data. </p>
*/
export interface S3InputFormatConfig {
/**
* <p> The file type that Amazon AppFlow gets from your Amazon S3 bucket. </p>
*/
s3InputFileType?: S3InputFileType | string;
}

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

/**
* <p> The properties that are applied when Amazon S3 is being used as the flow source. </p>
*/
Expand All @@ -3405,6 +3429,11 @@ export interface S3SourceProperties {
* <p> The object key for the Amazon S3 bucket in which the source files are stored. </p>
*/
bucketPrefix?: string;

/**
* <p> When you use Amazon S3 as the source, the configuration format that you provide the flow input data. </p>
*/
s3InputFormatConfig?: S3InputFormatConfig;
}

export namespace S3SourceProperties {
Expand Down
22 changes: 22 additions & 0 deletions clients/client-appflow/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ import {
RedshiftMetadata,
ResourceNotFoundException,
S3DestinationProperties,
S3InputFormatConfig,
S3Metadata,
S3OutputFormatConfig,
S3SourceProperties,
Expand Down Expand Up @@ -3015,6 +3016,13 @@ const serializeAws_restJson1S3DestinationProperties = (
};
};

const serializeAws_restJson1S3InputFormatConfig = (input: S3InputFormatConfig, context: __SerdeContext): any => {
return {
...(input.s3InputFileType !== undefined &&
input.s3InputFileType !== null && { s3InputFileType: input.s3InputFileType }),
};
};

const serializeAws_restJson1S3OutputFormatConfig = (input: S3OutputFormatConfig, context: __SerdeContext): any => {
return {
...(input.aggregationConfig !== undefined &&
Expand All @@ -3031,6 +3039,10 @@ const serializeAws_restJson1S3SourceProperties = (input: S3SourceProperties, con
return {
...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
...(input.s3InputFormatConfig !== undefined &&
input.s3InputFormatConfig !== null && {
s3InputFormatConfig: serializeAws_restJson1S3InputFormatConfig(input.s3InputFormatConfig, context),
}),
};
};

Expand Down Expand Up @@ -4490,6 +4502,12 @@ const deserializeAws_restJson1S3DestinationProperties = (
} as any;
};

const deserializeAws_restJson1S3InputFormatConfig = (output: any, context: __SerdeContext): S3InputFormatConfig => {
return {
s3InputFileType: __expectString(output.s3InputFileType),
} as any;
};

const deserializeAws_restJson1S3Metadata = (output: any, context: __SerdeContext): S3Metadata => {
return {} as any;
};
Expand All @@ -4512,6 +4530,10 @@ const deserializeAws_restJson1S3SourceProperties = (output: any, context: __Serd
return {
bucketName: __expectString(output.bucketName),
bucketPrefix: __expectString(output.bucketPrefix),
s3InputFormatConfig:
output.s3InputFormatConfig !== undefined && output.s3InputFormatConfig !== null
? deserializeAws_restJson1S3InputFormatConfig(output.s3InputFormatConfig, context)
: undefined,
} as any;
};

Expand Down
11 changes: 10 additions & 1 deletion clients/client-application-insights/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";

const regionHash: RegionHash = {};
const regionHash: RegionHash = {
"us-gov-east-1": {
hostname: "applicationinsights.us-gov-east-1.amazonaws.com",
signingRegion: "us-gov-east-1",
},
"us-gov-west-1": {
hostname: "applicationinsights.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
};

const partitionHash: PartitionHash = {
aws: {
Expand Down
8 changes: 4 additions & 4 deletions clients/client-auditmanager/src/AuditManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ export class AuditManager extends AuditManagerClient {
}

/**
* <p>Removes the specified member account as a delegated administrator for Audit Manager. </p>
* <p>Removes the specified member Amazon Web Services account as a delegated administrator for Audit Manager. </p>
* <important>
* <p>When you remove a delegated administrator from your Audit Manager settings, or when you
* deregister a delegated administrator from Organizations, you continue to have access
Expand Down Expand Up @@ -1336,7 +1336,7 @@ export class AuditManager extends AuditManagerClient {

/**
* <p>
* Returns the settings for the specified account.
* Returns the settings for the specified Amazon Web Services account.
* </p>
*/
public getSettings(args: GetSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetSettingsCommandOutput>;
Expand Down Expand Up @@ -1599,7 +1599,7 @@ export class AuditManager extends AuditManagerClient {

/**
* <p>
* Enables Audit Manager for the specified account.
* Enables Audit Manager for the specified Amazon Web Services account.
* </p>
*/
public registerAccount(
Expand Down Expand Up @@ -1633,7 +1633,7 @@ export class AuditManager extends AuditManagerClient {

/**
* <p>
* Enables an account within the organization as the delegated administrator for Audit Manager.
* Enables an Amazon Web Services account within the organization as the delegated administrator for Audit Manager.
* </p>
*/
public registerOrganizationAdminAccount(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface DeregisterOrganizationAdminAccountCommandOutput
__MetadataBearer {}

/**
* <p>Removes the specified member account as a delegated administrator for Audit Manager. </p>
* <p>Removes the specified member Amazon Web Services account as a delegated administrator for Audit Manager. </p>
* <important>
* <p>When you remove a delegated administrator from your Audit Manager settings, or when you
* deregister a delegated administrator from Organizations, you continue to have access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface GetSettingsCommandOutput extends GetSettingsResponse, __Metadat

/**
* <p>
* Returns the settings for the specified account.
* Returns the settings for the specified Amazon Web Services account.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface RegisterAccountCommandOutput extends RegisterAccountResponse, _

/**
* <p>
* Enables Audit Manager for the specified account.
* Enables Audit Manager for the specified Amazon Web Services account.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface RegisterOrganizationAdminAccountCommandOutput

/**
* <p>
* Enables an account within the organization as the delegated administrator for Audit Manager.
* Enables an Amazon Web Services account within the organization as the delegated administrator for Audit Manager.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
28 changes: 14 additions & 14 deletions clients/client-auditmanager/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ export enum ActionEnum {

/**
* <p>
* The wrapper of account details, such as account ID, email address, and so on.
* The wrapper of Amazon Web Services account details, such as account ID, email address, and so on.
* </p>
*/
export interface AWSAccount {
/**
* <p>
* The identifier for the specified account.
* The identifier for the specified Amazon Web Services account.
* </p>
*/
id?: string;

/**
* <p>
* The email address associated with the specified account.
* The email address associated with the specified Amazon Web Services account.
* </p>
*/
emailAddress?: string;

/**
* <p>
* The name of the specified account.
* The name of the specified Amazon Web Services account.
* </p>
*/
name?: string;
Expand Down Expand Up @@ -568,13 +568,13 @@ export namespace AWSService {

/**
* <p>
* The wrapper that contains the accounts and services in scope for the assessment.
* The wrapper that contains the Amazon Web Services accounts and services in scope for the assessment.
* </p>
*/
export interface Scope {
/**
* <p>
* The accounts included in the scope of the assessment.
* The Amazon Web Services accounts included in the scope of the assessment.
* </p>
*/
awsAccounts?: AWSAccount[];
Expand Down Expand Up @@ -651,7 +651,7 @@ export interface AssessmentMetadata {

/**
* <p>
* The wrapper of accounts and services in scope for the assessment.
* The wrapper of Amazon Web Services accounts and services in scope for the assessment.
* </p>
*/
scope?: Scope;
Expand Down Expand Up @@ -709,7 +709,7 @@ export interface Assessment {

/**
* <p>
* The account associated with the assessment.
* The Amazon Web Services account associated with the assessment.
* </p>
*/
awsAccount?: AWSAccount;
Expand Down Expand Up @@ -1093,7 +1093,7 @@ export interface AssessmentReport {

/**
* <p>
* The identifier for the specified account.
* The identifier for the specified Amazon Web Services account.
* </p>
*/
awsAccountId?: string;
Expand Down Expand Up @@ -1882,7 +1882,7 @@ export interface CreateAssessmentRequest {

/**
* <p>
* The wrapper that contains the accounts and services in scope for the assessment.
* The wrapper that contains the Amazon Web Services accounts and services in scope for the assessment.
* </p>
*/
scope: Scope | undefined;
Expand Down Expand Up @@ -2881,7 +2881,7 @@ export namespace GetAccountStatusRequest {
export interface GetAccountStatusResponse {
/**
* <p>
* The status of the specified account.
* The status of the specified Amazon Web Services account.
* </p>
*/
status?: AccountStatus | string;
Expand Down Expand Up @@ -3415,7 +3415,7 @@ export interface Evidence {

/**
* <p>
* The identifier for the specified account.
* The identifier for the specified Amazon Web Services account.
* </p>
*/
evidenceAwsAccountId?: string;
Expand Down Expand Up @@ -3479,14 +3479,14 @@ export interface Evidence {

/**
* <p>
* The account from which the evidence is collected, and its organization path.
* The Amazon Web Services account from which the evidence is collected, and its organization path.
* </p>
*/
awsOrganization?: string;

/**
* <p>
* The identifier for the specified account.
* The identifier for the specified Amazon Web Services account.
* </p>
*/
awsAccountId?: string;
Expand Down
14 changes: 7 additions & 7 deletions clients/client-chime-sdk-messaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ using your favorite package manager:

The AWS SDK is modulized by clients and commands.
To send a request, you only need to import the `ChimeSDKMessagingClient` and
the commands you need, for example `BatchCreateChannelMembershipCommand`:
the commands you need, for example `AssociateChannelFlowCommand`:

```js
// ES5 example
const { ChimeSDKMessagingClient, BatchCreateChannelMembershipCommand } = require("@aws-sdk/client-chime-sdk-messaging");
const { ChimeSDKMessagingClient, AssociateChannelFlowCommand } = require("@aws-sdk/client-chime-sdk-messaging");
```

```ts
// ES6+ example
import { ChimeSDKMessagingClient, BatchCreateChannelMembershipCommand } from "@aws-sdk/client-chime-sdk-messaging";
import { ChimeSDKMessagingClient, AssociateChannelFlowCommand } from "@aws-sdk/client-chime-sdk-messaging";
```

### Usage
Expand All @@ -56,7 +56,7 @@ const client = new ChimeSDKMessagingClient({ region: "REGION" });
const params = {
/** input parameters */
};
const command = new BatchCreateChannelMembershipCommand(params);
const command = new AssociateChannelFlowCommand(params);
```

#### Async/await
Expand Down Expand Up @@ -135,15 +135,15 @@ const client = new AWS.ChimeSDKMessaging({ region: "REGION" });

// async/await.
try {
const data = await client.batchCreateChannelMembership(params);
const data = await client.associateChannelFlow(params);
// process data.
} catch (error) {
// error handling.
}

// Promises.
client
.batchCreateChannelMembership(params)
.associateChannelFlow(params)
.then((data) => {
// process data.
})
Expand All @@ -152,7 +152,7 @@ client
});

// callbacks.
client.batchCreateChannelMembership(params, (err, data) => {
client.associateChannelFlow(params, (err, data) => {
// proccess err and data.
});
```
Expand Down
Loading