Skip to content

Commit 14e8fbf

Browse files
authored
feat(clients): update clients as of 06/03/2021 (#2464)
* 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
1 parent 0a251aa commit 14e8fbf

File tree

606 files changed

+82081
-7786
lines changed

Some content is hidden

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

606 files changed

+82081
-7786
lines changed

clients/client-acm-pca/models/models_0.ts

+33-7
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,11 @@ export enum KeyStorageSecurityStandard {
433433
FIPS_140_2_LEVEL_3_OR_HIGHER = "FIPS_140_2_LEVEL_3_OR_HIGHER",
434434
}
435435

436+
export enum S3ObjectAcl {
437+
BUCKET_OWNER_FULL_CONTROL = "BUCKET_OWNER_FULL_CONTROL",
438+
PUBLIC_READ = "PUBLIC_READ",
439+
}
440+
436441
/**
437442
* <p>Contains configuration information for a certificate revocation list (CRL). Your
438443
* private certificate authority (CA) creates base CRLs. Delta CRLs are not supported. You
@@ -567,10 +572,30 @@ export interface CrlConfiguration {
567572
* <p>Name of the S3 bucket that contains the CRL. If you do not provide a value for the
568573
* <b>CustomCname</b> argument, the name of your S3 bucket
569574
* is placed into the <b>CRL Distribution Points</b> extension of
570-
* 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
575+
* 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
576+
* <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaCreateCa.html#s3-policies">bucket policy</a> that
571577
* allows ACM Private CA to write the CRL to your bucket.</p>
572578
*/
573579
S3BucketName?: string;
580+
581+
/**
582+
* <p>Determines whether the CRL will be publicly readable or privately held in the CRL
583+
* Amazon S3 bucket. If you choose PUBLIC_READ, the CRL will be accessible over the public
584+
* internet. If you choose BUCKET_OWNER_FULL_CONTROL, only the owner of the CRL S3 bucket
585+
* can access the CRL, and your PKI clients may need an alternative method of access. </p>
586+
* <p>If no value is specified, the default is <code>PUBLIC_READ</code>.</p>
587+
* <p>
588+
* <i>Note:</i> This default can cause CA creation to fail in some
589+
* circumstances. If you have have enabled the Block Public Access (BPA) feature in your S3
590+
* account, then you must specify the value of this parameter as
591+
* <code>BUCKET_OWNER_FULL_CONTROL</code>, and not doing so results in an error. If you
592+
* have disabled BPA in S3, then you can specify either
593+
* <code>BUCKET_OWNER_FULL_CONTROL</code> or <code>PUBLIC_READ</code> as the
594+
* value.</p>
595+
* <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
596+
* bucket</a>.</p>
597+
*/
598+
S3ObjectAcl?: S3ObjectAcl | string;
574599
}
575600

576601
export namespace CrlConfiguration {
@@ -663,13 +688,14 @@ export interface CreateCertificateAuthorityRequest {
663688
IdempotencyToken?: string;
664689

665690
/**
666-
* <p>Specifies a cryptographic key management compliance standard used for handling CA
667-
* keys.</p>
691+
* <p>Specifies a
692+
* cryptographic key management compliance standard used for handling CA keys.</p>
668693
* <p>Default: FIPS_140_2_LEVEL_3_OR_HIGHER</p>
669-
* <p>Note: AWS Region ap-northeast-3 supports only FIPS_140_2_LEVEL_2_OR_HIGHER. You must
670-
* explicitly specify this parameter and value when creating a CA in that Region.
671-
* Specifying a different value (or no value) results in an
672-
* <code>InvalidArgsException</code> with the message "A certificate authority cannot
694+
* <p>Note: <code>FIPS_140_2_LEVEL_3_OR_HIGHER</code> is not supported in Region
695+
* ap-northeast-3. When creating a CA in the ap-northeast-3, you must provide
696+
* <code>FIPS_140_2_LEVEL_2_OR_HIGHER</code> as the argument for
697+
* <code>KeyStorageSecurityStandard</code>. Failure to do this results in an
698+
* <code>InvalidArgsException</code> with the message, "A certificate authority cannot
673699
* be created in this region with the specified security standard."</p>
674700
*/
675701
KeyStorageSecurityStandard?: KeyStorageSecurityStandard | string;

clients/client-acm-pca/protocols/Aws_json1_1.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2795,6 +2795,7 @@ const serializeAws_json1_1CrlConfiguration = (input: CrlConfiguration, context:
27952795
...(input.ExpirationInDays !== undefined &&
27962796
input.ExpirationInDays !== null && { ExpirationInDays: input.ExpirationInDays }),
27972797
...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }),
2798+
...(input.S3ObjectAcl !== undefined && input.S3ObjectAcl !== null && { S3ObjectAcl: input.S3ObjectAcl }),
27982799
};
27992800
};
28002801

@@ -3393,6 +3394,7 @@ const deserializeAws_json1_1CrlConfiguration = (output: any, context: __SerdeCon
33933394
ExpirationInDays:
33943395
output.ExpirationInDays !== undefined && output.ExpirationInDays !== null ? output.ExpirationInDays : undefined,
33953396
S3BucketName: output.S3BucketName !== undefined && output.S3BucketName !== null ? output.S3BucketName : undefined,
3397+
S3ObjectAcl: output.S3ObjectAcl !== undefined && output.S3ObjectAcl !== null ? output.S3ObjectAcl : undefined,
33963398
} as any;
33973399
};
33983400

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/node_modules/
2+
/build/
3+
/coverage/
4+
/docs/
5+
/dist/
6+
*.tsbuildinfo
7+
*.tgz
8+
*.log
9+
package-lock.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/coverage/
2+
/docs/
3+
tsconfig.test.json
4+
*.tsbuildinfo
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
import { ApplicationCostProfilerClient } from "./ApplicationCostProfilerClient";
2+
import {
3+
DeleteReportDefinitionCommand,
4+
DeleteReportDefinitionCommandInput,
5+
DeleteReportDefinitionCommandOutput,
6+
} from "./commands/DeleteReportDefinitionCommand";
7+
import {
8+
GetReportDefinitionCommand,
9+
GetReportDefinitionCommandInput,
10+
GetReportDefinitionCommandOutput,
11+
} from "./commands/GetReportDefinitionCommand";
12+
import {
13+
ImportApplicationUsageCommand,
14+
ImportApplicationUsageCommandInput,
15+
ImportApplicationUsageCommandOutput,
16+
} from "./commands/ImportApplicationUsageCommand";
17+
import {
18+
ListReportDefinitionsCommand,
19+
ListReportDefinitionsCommandInput,
20+
ListReportDefinitionsCommandOutput,
21+
} from "./commands/ListReportDefinitionsCommand";
22+
import {
23+
PutReportDefinitionCommand,
24+
PutReportDefinitionCommandInput,
25+
PutReportDefinitionCommandOutput,
26+
} from "./commands/PutReportDefinitionCommand";
27+
import {
28+
UpdateReportDefinitionCommand,
29+
UpdateReportDefinitionCommandInput,
30+
UpdateReportDefinitionCommandOutput,
31+
} from "./commands/UpdateReportDefinitionCommand";
32+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
33+
34+
/**
35+
* <p>This reference provides descriptions of the AWS Application Cost Profiler API.</p>
36+
* <p>The AWS Application Cost Profiler API provides programmatic access to view, create, update, and delete
37+
* application cost report definitions, as well as to import your usage data into the Application Cost Profiler
38+
* service.</p>
39+
* <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
40+
* Profiler User Guide</a>.</p>
41+
*/
42+
export class ApplicationCostProfiler extends ApplicationCostProfilerClient {
43+
/**
44+
* <p>Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being
45+
* generated.</p>
46+
*/
47+
public deleteReportDefinition(
48+
args: DeleteReportDefinitionCommandInput,
49+
options?: __HttpHandlerOptions
50+
): Promise<DeleteReportDefinitionCommandOutput>;
51+
public deleteReportDefinition(
52+
args: DeleteReportDefinitionCommandInput,
53+
cb: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
54+
): void;
55+
public deleteReportDefinition(
56+
args: DeleteReportDefinitionCommandInput,
57+
options: __HttpHandlerOptions,
58+
cb: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
59+
): void;
60+
public deleteReportDefinition(
61+
args: DeleteReportDefinitionCommandInput,
62+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteReportDefinitionCommandOutput) => void),
63+
cb?: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
64+
): Promise<DeleteReportDefinitionCommandOutput> | void {
65+
const command = new DeleteReportDefinitionCommand(args);
66+
if (typeof optionsOrCb === "function") {
67+
this.send(command, optionsOrCb);
68+
} else if (typeof cb === "function") {
69+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70+
this.send(command, optionsOrCb || {}, cb);
71+
} else {
72+
return this.send(command, optionsOrCb);
73+
}
74+
}
75+
76+
/**
77+
* <p>Retrieves the definition of a report already configured in AWS Application Cost Profiler.</p>
78+
*/
79+
public getReportDefinition(
80+
args: GetReportDefinitionCommandInput,
81+
options?: __HttpHandlerOptions
82+
): Promise<GetReportDefinitionCommandOutput>;
83+
public getReportDefinition(
84+
args: GetReportDefinitionCommandInput,
85+
cb: (err: any, data?: GetReportDefinitionCommandOutput) => void
86+
): void;
87+
public getReportDefinition(
88+
args: GetReportDefinitionCommandInput,
89+
options: __HttpHandlerOptions,
90+
cb: (err: any, data?: GetReportDefinitionCommandOutput) => void
91+
): void;
92+
public getReportDefinition(
93+
args: GetReportDefinitionCommandInput,
94+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetReportDefinitionCommandOutput) => void),
95+
cb?: (err: any, data?: GetReportDefinitionCommandOutput) => void
96+
): Promise<GetReportDefinitionCommandOutput> | void {
97+
const command = new GetReportDefinitionCommand(args);
98+
if (typeof optionsOrCb === "function") {
99+
this.send(command, optionsOrCb);
100+
} else if (typeof cb === "function") {
101+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102+
this.send(command, optionsOrCb || {}, cb);
103+
} else {
104+
return this.send(command, optionsOrCb);
105+
}
106+
}
107+
108+
/**
109+
* <p>Ingests application usage data from Amazon Simple Storage Service (Amazon S3).</p>
110+
* <p>The data must already exist in the S3 location. As part of the action, AWS Application Cost Profiler
111+
* copies the object from your S3 bucket to an S3 bucket owned by Amazon for processing
112+
* asynchronously.</p>
113+
*/
114+
public importApplicationUsage(
115+
args: ImportApplicationUsageCommandInput,
116+
options?: __HttpHandlerOptions
117+
): Promise<ImportApplicationUsageCommandOutput>;
118+
public importApplicationUsage(
119+
args: ImportApplicationUsageCommandInput,
120+
cb: (err: any, data?: ImportApplicationUsageCommandOutput) => void
121+
): void;
122+
public importApplicationUsage(
123+
args: ImportApplicationUsageCommandInput,
124+
options: __HttpHandlerOptions,
125+
cb: (err: any, data?: ImportApplicationUsageCommandOutput) => void
126+
): void;
127+
public importApplicationUsage(
128+
args: ImportApplicationUsageCommandInput,
129+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportApplicationUsageCommandOutput) => void),
130+
cb?: (err: any, data?: ImportApplicationUsageCommandOutput) => void
131+
): Promise<ImportApplicationUsageCommandOutput> | void {
132+
const command = new ImportApplicationUsageCommand(args);
133+
if (typeof optionsOrCb === "function") {
134+
this.send(command, optionsOrCb);
135+
} else if (typeof cb === "function") {
136+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137+
this.send(command, optionsOrCb || {}, cb);
138+
} else {
139+
return this.send(command, optionsOrCb);
140+
}
141+
}
142+
143+
/**
144+
* <p>Retrieves a list of all reports and their configurations for your AWS account.</p>
145+
* <p>The maximum number of reports is one.</p>
146+
*/
147+
public listReportDefinitions(
148+
args: ListReportDefinitionsCommandInput,
149+
options?: __HttpHandlerOptions
150+
): Promise<ListReportDefinitionsCommandOutput>;
151+
public listReportDefinitions(
152+
args: ListReportDefinitionsCommandInput,
153+
cb: (err: any, data?: ListReportDefinitionsCommandOutput) => void
154+
): void;
155+
public listReportDefinitions(
156+
args: ListReportDefinitionsCommandInput,
157+
options: __HttpHandlerOptions,
158+
cb: (err: any, data?: ListReportDefinitionsCommandOutput) => void
159+
): void;
160+
public listReportDefinitions(
161+
args: ListReportDefinitionsCommandInput,
162+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListReportDefinitionsCommandOutput) => void),
163+
cb?: (err: any, data?: ListReportDefinitionsCommandOutput) => void
164+
): Promise<ListReportDefinitionsCommandOutput> | void {
165+
const command = new ListReportDefinitionsCommand(args);
166+
if (typeof optionsOrCb === "function") {
167+
this.send(command, optionsOrCb);
168+
} else if (typeof cb === "function") {
169+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170+
this.send(command, optionsOrCb || {}, cb);
171+
} else {
172+
return this.send(command, optionsOrCb);
173+
}
174+
}
175+
176+
/**
177+
* <p>Creates the report definition for a report in Application Cost Profiler.</p>
178+
*/
179+
public putReportDefinition(
180+
args: PutReportDefinitionCommandInput,
181+
options?: __HttpHandlerOptions
182+
): Promise<PutReportDefinitionCommandOutput>;
183+
public putReportDefinition(
184+
args: PutReportDefinitionCommandInput,
185+
cb: (err: any, data?: PutReportDefinitionCommandOutput) => void
186+
): void;
187+
public putReportDefinition(
188+
args: PutReportDefinitionCommandInput,
189+
options: __HttpHandlerOptions,
190+
cb: (err: any, data?: PutReportDefinitionCommandOutput) => void
191+
): void;
192+
public putReportDefinition(
193+
args: PutReportDefinitionCommandInput,
194+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutReportDefinitionCommandOutput) => void),
195+
cb?: (err: any, data?: PutReportDefinitionCommandOutput) => void
196+
): Promise<PutReportDefinitionCommandOutput> | void {
197+
const command = new PutReportDefinitionCommand(args);
198+
if (typeof optionsOrCb === "function") {
199+
this.send(command, optionsOrCb);
200+
} else if (typeof cb === "function") {
201+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202+
this.send(command, optionsOrCb || {}, cb);
203+
} else {
204+
return this.send(command, optionsOrCb);
205+
}
206+
}
207+
208+
/**
209+
* <p>Updates existing report in AWS Application Cost Profiler.</p>
210+
*/
211+
public updateReportDefinition(
212+
args: UpdateReportDefinitionCommandInput,
213+
options?: __HttpHandlerOptions
214+
): Promise<UpdateReportDefinitionCommandOutput>;
215+
public updateReportDefinition(
216+
args: UpdateReportDefinitionCommandInput,
217+
cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
218+
): void;
219+
public updateReportDefinition(
220+
args: UpdateReportDefinitionCommandInput,
221+
options: __HttpHandlerOptions,
222+
cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
223+
): void;
224+
public updateReportDefinition(
225+
args: UpdateReportDefinitionCommandInput,
226+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateReportDefinitionCommandOutput) => void),
227+
cb?: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
228+
): Promise<UpdateReportDefinitionCommandOutput> | void {
229+
const command = new UpdateReportDefinitionCommand(args);
230+
if (typeof optionsOrCb === "function") {
231+
this.send(command, optionsOrCb);
232+
} else if (typeof cb === "function") {
233+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234+
this.send(command, optionsOrCb || {}, cb);
235+
} else {
236+
return this.send(command, optionsOrCb);
237+
}
238+
}
239+
}

0 commit comments

Comments
 (0)