Skip to content

Commit

Permalink
feat(clients): update clients as of 06/03/2021 (#2464)
Browse files Browse the repository at this point in the history
* chore: add smithy-aws-cloudformation-traits dependency

* chore: update endpoints model as of 06/03/2021

* feat(clients): update clients as of 06/03/2021
  • Loading branch information
AllanZhengYP committed Jun 3, 2021
1 parent 0a251aa commit 14e8fbf
Show file tree
Hide file tree
Showing 606 changed files with 82,081 additions and 7,786 deletions.
40 changes: 33 additions & 7 deletions clients/client-acm-pca/models/models_0.ts
Expand Up @@ -433,6 +433,11 @@ export enum KeyStorageSecurityStandard {
FIPS_140_2_LEVEL_3_OR_HIGHER = "FIPS_140_2_LEVEL_3_OR_HIGHER",
}

export enum S3ObjectAcl {
BUCKET_OWNER_FULL_CONTROL = "BUCKET_OWNER_FULL_CONTROL",
PUBLIC_READ = "PUBLIC_READ",
}

/**
* <p>Contains configuration information for a certificate revocation list (CRL). Your
* private certificate authority (CA) creates base CRLs. Delta CRLs are not supported. You
Expand Down Expand Up @@ -567,10 +572,30 @@ export interface CrlConfiguration {
* <p>Name of the S3 bucket that contains the CRL. If you do not provide a value for the
* <b>CustomCname</b> argument, the name of your S3 bucket
* is placed into the <b>CRL Distribution Points</b> extension of
* the issued certificate. You can change the name of your bucket by calling the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> action. You must specify a bucket policy that
* the issued certificate. You can change the name of your bucket by calling the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> action. You must specify a
* <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaCreateCa.html#s3-policies">bucket policy</a> that
* allows ACM Private CA to write the CRL to your bucket.</p>
*/
S3BucketName?: string;

/**
* <p>Determines whether the CRL will be publicly readable or privately held in the CRL
* Amazon S3 bucket. If you choose PUBLIC_READ, the CRL will be accessible over the public
* internet. If you choose BUCKET_OWNER_FULL_CONTROL, only the owner of the CRL S3 bucket
* can access the CRL, and your PKI clients may need an alternative method of access. </p>
* <p>If no value is specified, the default is <code>PUBLIC_READ</code>.</p>
* <p>
* <i>Note:</i> This default can cause CA creation to fail in some
* circumstances. If you have have enabled the Block Public Access (BPA) feature in your S3
* account, then you must specify the value of this parameter as
* <code>BUCKET_OWNER_FULL_CONTROL</code>, and not doing so results in an error. If you
* have disabled BPA in S3, then you can specify either
* <code>BUCKET_OWNER_FULL_CONTROL</code> or <code>PUBLIC_READ</code> as the
* value.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaCreateCa.html#s3-bpa">Blocking public access to the S3
* bucket</a>.</p>
*/
S3ObjectAcl?: S3ObjectAcl | string;
}

export namespace CrlConfiguration {
Expand Down Expand Up @@ -663,13 +688,14 @@ export interface CreateCertificateAuthorityRequest {
IdempotencyToken?: string;

/**
* <p>Specifies a cryptographic key management compliance standard used for handling CA
* keys.</p>
* <p>Specifies a
* cryptographic key management compliance standard used for handling CA keys.</p>
* <p>Default: FIPS_140_2_LEVEL_3_OR_HIGHER</p>
* <p>Note: AWS Region ap-northeast-3 supports only FIPS_140_2_LEVEL_2_OR_HIGHER. You must
* explicitly specify this parameter and value when creating a CA in that Region.
* Specifying a different value (or no value) results in an
* <code>InvalidArgsException</code> with the message "A certificate authority cannot
* <p>Note: <code>FIPS_140_2_LEVEL_3_OR_HIGHER</code> is not supported in Region
* ap-northeast-3. When creating a CA in the ap-northeast-3, you must provide
* <code>FIPS_140_2_LEVEL_2_OR_HIGHER</code> as the argument for
* <code>KeyStorageSecurityStandard</code>. Failure to do this results in an
* <code>InvalidArgsException</code> with the message, "A certificate authority cannot
* be created in this region with the specified security standard."</p>
*/
KeyStorageSecurityStandard?: KeyStorageSecurityStandard | string;
Expand Down
2 changes: 2 additions & 0 deletions clients/client-acm-pca/protocols/Aws_json1_1.ts
Expand Up @@ -2795,6 +2795,7 @@ const serializeAws_json1_1CrlConfiguration = (input: CrlConfiguration, context:
...(input.ExpirationInDays !== undefined &&
input.ExpirationInDays !== null && { ExpirationInDays: input.ExpirationInDays }),
...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }),
...(input.S3ObjectAcl !== undefined && input.S3ObjectAcl !== null && { S3ObjectAcl: input.S3ObjectAcl }),
};
};

Expand Down Expand Up @@ -3393,6 +3394,7 @@ const deserializeAws_json1_1CrlConfiguration = (output: any, context: __SerdeCon
ExpirationInDays:
output.ExpirationInDays !== undefined && output.ExpirationInDays !== null ? output.ExpirationInDays : undefined,
S3BucketName: output.S3BucketName !== undefined && output.S3BucketName !== null ? output.S3BucketName : undefined,
S3ObjectAcl: output.S3ObjectAcl !== undefined && output.S3ObjectAcl !== null ? output.S3ObjectAcl : undefined,
} as any;
};

Expand Down
9 changes: 9 additions & 0 deletions clients/client-applicationcostprofiler/.gitignore
@@ -0,0 +1,9 @@
/node_modules/
/build/
/coverage/
/docs/
/dist/
*.tsbuildinfo
*.tgz
*.log
package-lock.json
4 changes: 4 additions & 0 deletions clients/client-applicationcostprofiler/.npmignore
@@ -0,0 +1,4 @@
/coverage/
/docs/
tsconfig.test.json
*.tsbuildinfo
239 changes: 239 additions & 0 deletions clients/client-applicationcostprofiler/ApplicationCostProfiler.ts
@@ -0,0 +1,239 @@
import { ApplicationCostProfilerClient } from "./ApplicationCostProfilerClient";
import {
DeleteReportDefinitionCommand,
DeleteReportDefinitionCommandInput,
DeleteReportDefinitionCommandOutput,
} from "./commands/DeleteReportDefinitionCommand";
import {
GetReportDefinitionCommand,
GetReportDefinitionCommandInput,
GetReportDefinitionCommandOutput,
} from "./commands/GetReportDefinitionCommand";
import {
ImportApplicationUsageCommand,
ImportApplicationUsageCommandInput,
ImportApplicationUsageCommandOutput,
} from "./commands/ImportApplicationUsageCommand";
import {
ListReportDefinitionsCommand,
ListReportDefinitionsCommandInput,
ListReportDefinitionsCommandOutput,
} from "./commands/ListReportDefinitionsCommand";
import {
PutReportDefinitionCommand,
PutReportDefinitionCommandInput,
PutReportDefinitionCommandOutput,
} from "./commands/PutReportDefinitionCommand";
import {
UpdateReportDefinitionCommand,
UpdateReportDefinitionCommandInput,
UpdateReportDefinitionCommandOutput,
} from "./commands/UpdateReportDefinitionCommand";
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";

/**
* <p>This reference provides descriptions of the AWS Application Cost Profiler API.</p>
* <p>The AWS Application Cost Profiler API provides programmatic access to view, create, update, and delete
* application cost report definitions, as well as to import your usage data into the Application Cost Profiler
* service.</p>
* <p>For more information about using this service, see the <a href="https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html">AWS Application Cost
* Profiler User Guide</a>.</p>
*/
export class ApplicationCostProfiler extends ApplicationCostProfilerClient {
/**
* <p>Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being
* generated.</p>
*/
public deleteReportDefinition(
args: DeleteReportDefinitionCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteReportDefinitionCommandOutput>;
public deleteReportDefinition(
args: DeleteReportDefinitionCommandInput,
cb: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
): void;
public deleteReportDefinition(
args: DeleteReportDefinitionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
): void;
public deleteReportDefinition(
args: DeleteReportDefinitionCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteReportDefinitionCommandOutput) => void),
cb?: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
): Promise<DeleteReportDefinitionCommandOutput> | void {
const command = new DeleteReportDefinitionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Retrieves the definition of a report already configured in AWS Application Cost Profiler.</p>
*/
public getReportDefinition(
args: GetReportDefinitionCommandInput,
options?: __HttpHandlerOptions
): Promise<GetReportDefinitionCommandOutput>;
public getReportDefinition(
args: GetReportDefinitionCommandInput,
cb: (err: any, data?: GetReportDefinitionCommandOutput) => void
): void;
public getReportDefinition(
args: GetReportDefinitionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetReportDefinitionCommandOutput) => void
): void;
public getReportDefinition(
args: GetReportDefinitionCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetReportDefinitionCommandOutput) => void),
cb?: (err: any, data?: GetReportDefinitionCommandOutput) => void
): Promise<GetReportDefinitionCommandOutput> | void {
const command = new GetReportDefinitionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Ingests application usage data from Amazon Simple Storage Service (Amazon S3).</p>
* <p>The data must already exist in the S3 location. As part of the action, AWS Application Cost Profiler
* copies the object from your S3 bucket to an S3 bucket owned by Amazon for processing
* asynchronously.</p>
*/
public importApplicationUsage(
args: ImportApplicationUsageCommandInput,
options?: __HttpHandlerOptions
): Promise<ImportApplicationUsageCommandOutput>;
public importApplicationUsage(
args: ImportApplicationUsageCommandInput,
cb: (err: any, data?: ImportApplicationUsageCommandOutput) => void
): void;
public importApplicationUsage(
args: ImportApplicationUsageCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ImportApplicationUsageCommandOutput) => void
): void;
public importApplicationUsage(
args: ImportApplicationUsageCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportApplicationUsageCommandOutput) => void),
cb?: (err: any, data?: ImportApplicationUsageCommandOutput) => void
): Promise<ImportApplicationUsageCommandOutput> | void {
const command = new ImportApplicationUsageCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Retrieves a list of all reports and their configurations for your AWS account.</p>
* <p>The maximum number of reports is one.</p>
*/
public listReportDefinitions(
args: ListReportDefinitionsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListReportDefinitionsCommandOutput>;
public listReportDefinitions(
args: ListReportDefinitionsCommandInput,
cb: (err: any, data?: ListReportDefinitionsCommandOutput) => void
): void;
public listReportDefinitions(
args: ListReportDefinitionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListReportDefinitionsCommandOutput) => void
): void;
public listReportDefinitions(
args: ListReportDefinitionsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListReportDefinitionsCommandOutput) => void),
cb?: (err: any, data?: ListReportDefinitionsCommandOutput) => void
): Promise<ListReportDefinitionsCommandOutput> | void {
const command = new ListReportDefinitionsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Creates the report definition for a report in Application Cost Profiler.</p>
*/
public putReportDefinition(
args: PutReportDefinitionCommandInput,
options?: __HttpHandlerOptions
): Promise<PutReportDefinitionCommandOutput>;
public putReportDefinition(
args: PutReportDefinitionCommandInput,
cb: (err: any, data?: PutReportDefinitionCommandOutput) => void
): void;
public putReportDefinition(
args: PutReportDefinitionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutReportDefinitionCommandOutput) => void
): void;
public putReportDefinition(
args: PutReportDefinitionCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutReportDefinitionCommandOutput) => void),
cb?: (err: any, data?: PutReportDefinitionCommandOutput) => void
): Promise<PutReportDefinitionCommandOutput> | void {
const command = new PutReportDefinitionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Updates existing report in AWS Application Cost Profiler.</p>
*/
public updateReportDefinition(
args: UpdateReportDefinitionCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateReportDefinitionCommandOutput>;
public updateReportDefinition(
args: UpdateReportDefinitionCommandInput,
cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
): void;
public updateReportDefinition(
args: UpdateReportDefinitionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
): void;
public updateReportDefinition(
args: UpdateReportDefinitionCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateReportDefinitionCommandOutput) => void),
cb?: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
): Promise<UpdateReportDefinitionCommandOutput> | void {
const command = new UpdateReportDefinitionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}
}

0 comments on commit 14e8fbf

Please sign in to comment.