Skip to content

Commit

Permalink
chore: update clients based on smithy-models from 10/16
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Oct 21, 2020
1 parent 76f83f1 commit 6fa2daa
Show file tree
Hide file tree
Showing 1,434 changed files with 334,167 additions and 185,558 deletions.
580 changes: 474 additions & 106 deletions clients/client-acm-pca/ACMPCA.ts

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions clients/client-acm-pca/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
DeleteCertificateAuthorityCommandOutput,
} from "./commands/DeleteCertificateAuthorityCommand";
import { DeletePermissionCommandInput, DeletePermissionCommandOutput } from "./commands/DeletePermissionCommand";
import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
import {
DescribeCertificateAuthorityAuditReportCommandInput,
DescribeCertificateAuthorityAuditReportCommandOutput,
Expand All @@ -29,6 +30,7 @@ import {
GetCertificateAuthorityCsrCommandOutput,
} from "./commands/GetCertificateAuthorityCsrCommand";
import { GetCertificateCommandInput, GetCertificateCommandOutput } from "./commands/GetCertificateCommand";
import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
import {
ImportCertificateAuthorityCertificateCommandInput,
ImportCertificateAuthorityCertificateCommandOutput,
Expand All @@ -40,6 +42,7 @@ import {
} from "./commands/ListCertificateAuthoritiesCommand";
import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "./commands/ListPermissionsCommand";
import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
import { PutPolicyCommandInput, PutPolicyCommandOutput } from "./commands/PutPolicyCommand";
import {
RestoreCertificateAuthorityCommandInput,
RestoreCertificateAuthorityCommandOutput,
Expand Down Expand Up @@ -112,16 +115,19 @@ export type ServiceInputTypes =
| CreatePermissionCommandInput
| DeleteCertificateAuthorityCommandInput
| DeletePermissionCommandInput
| DeletePolicyCommandInput
| DescribeCertificateAuthorityAuditReportCommandInput
| DescribeCertificateAuthorityCommandInput
| GetCertificateAuthorityCertificateCommandInput
| GetCertificateAuthorityCsrCommandInput
| GetCertificateCommandInput
| GetPolicyCommandInput
| ImportCertificateAuthorityCertificateCommandInput
| IssueCertificateCommandInput
| ListCertificateAuthoritiesCommandInput
| ListPermissionsCommandInput
| ListTagsCommandInput
| PutPolicyCommandInput
| RestoreCertificateAuthorityCommandInput
| RevokeCertificateCommandInput
| TagCertificateAuthorityCommandInput
Expand All @@ -134,16 +140,19 @@ export type ServiceOutputTypes =
| CreatePermissionCommandOutput
| DeleteCertificateAuthorityCommandOutput
| DeletePermissionCommandOutput
| DeletePolicyCommandOutput
| DescribeCertificateAuthorityAuditReportCommandOutput
| DescribeCertificateAuthorityCommandOutput
| GetCertificateAuthorityCertificateCommandOutput
| GetCertificateAuthorityCsrCommandOutput
| GetCertificateCommandOutput
| GetPolicyCommandOutput
| ImportCertificateAuthorityCertificateCommandOutput
| IssueCertificateCommandOutput
| ListCertificateAuthoritiesCommandOutput
| ListPermissionsCommandOutput
| ListTagsCommandOutput
| PutPolicyCommandOutput
| RestoreCertificateAuthorityCommandOutput
| RevokeCertificateCommandOutput
| TagCertificateAuthorityCommandOutput
Expand Down Expand Up @@ -263,7 +272,10 @@ export type ACMPCAClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHan
HostHeaderResolvedConfig;

/**
* <p>This is the <i>ACM Private CA API Reference</i>. It provides descriptions,
* <note>
* <p></p>
* </note>
* <p>This is the <i>ACM Private CA API Reference</i>. It provides descriptions,
* syntax, and usage examples for each of the actions and data types involved in creating
* and managing private certificate authorities (CA) for your organization.</p>
* <p>The documentation for each action shows the Query API request parameters and the XML
Expand All @@ -272,8 +284,8 @@ export type ACMPCAClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHan
* information, see <a href="https://aws.amazon.com/tools/#SDKs">AWS
* SDKs</a>.</p>
* <note>
* <p>Each ACM Private CA API action has a throttling limit which determines the number of times
* the action can be called per second. For more information, see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaLimits.html#PcaLimits-api">API Rate Limits in ACM Private CA</a>
* <p>Each ACM Private CA API action has a quota that determines the number of times the action
* can be called per second. For more information, see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaLimits.html#PcaLimits-api">API Rate Quotas in ACM Private CA</a>
* in the ACM Private CA user guide.</p>
* </note>
*/
Expand Down
70 changes: 70 additions & 0 deletions clients/client-acm-pca/commands/DeletePolicyCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
import { DeletePolicyRequest } from "../models/models_0";
import {
deserializeAws_json1_1DeletePolicyCommand,
serializeAws_json1_1DeletePolicyCommand,
} from "../protocols/Aws_json1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

export type DeletePolicyCommandInput = DeletePolicyRequest;
export type DeletePolicyCommandOutput = __MetadataBearer;

export class DeletePolicyCommand extends $Command<
DeletePolicyCommandInput,
DeletePolicyCommandOutput,
ACMPCAClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

constructor(readonly input: DeletePolicyCommandInput) {
// Start section: command_constructor
super();
// End section: command_constructor
}

resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<DeletePolicyCommandInput, DeletePolicyCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

const stack = clientStack.concat(this.middlewareStack);

const { logger } = configuration;
const handlerExecutionContext: HandlerExecutionContext = {
logger,
inputFilterSensitiveLog: DeletePolicyRequest.filterSensitiveLog,
outputFilterSensitiveLog: (output: any) => output,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
}

private serialize(input: DeletePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_json1_1DeletePolicyCommand(input, context);
}

private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeletePolicyCommandOutput> {
return deserializeAws_json1_1DeletePolicyCommand(output, context);
}

// Start section: command_body_extra
// End section: command_body_extra
}
67 changes: 67 additions & 0 deletions clients/client-acm-pca/commands/GetPolicyCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
import { GetPolicyRequest, GetPolicyResponse } from "../models/models_0";
import { deserializeAws_json1_1GetPolicyCommand, serializeAws_json1_1GetPolicyCommand } from "../protocols/Aws_json1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

export type GetPolicyCommandInput = GetPolicyRequest;
export type GetPolicyCommandOutput = GetPolicyResponse & __MetadataBearer;

export class GetPolicyCommand extends $Command<
GetPolicyCommandInput,
GetPolicyCommandOutput,
ACMPCAClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

constructor(readonly input: GetPolicyCommandInput) {
// Start section: command_constructor
super();
// End section: command_constructor
}

resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<GetPolicyCommandInput, GetPolicyCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

const stack = clientStack.concat(this.middlewareStack);

const { logger } = configuration;
const handlerExecutionContext: HandlerExecutionContext = {
logger,
inputFilterSensitiveLog: GetPolicyRequest.filterSensitiveLog,
outputFilterSensitiveLog: GetPolicyResponse.filterSensitiveLog,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
}

private serialize(input: GetPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_json1_1GetPolicyCommand(input, context);
}

private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPolicyCommandOutput> {
return deserializeAws_json1_1GetPolicyCommand(output, context);
}

// Start section: command_body_extra
// End section: command_body_extra
}
67 changes: 67 additions & 0 deletions clients/client-acm-pca/commands/PutPolicyCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
import { PutPolicyRequest } from "../models/models_0";
import { deserializeAws_json1_1PutPolicyCommand, serializeAws_json1_1PutPolicyCommand } from "../protocols/Aws_json1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

export type PutPolicyCommandInput = PutPolicyRequest;
export type PutPolicyCommandOutput = __MetadataBearer;

export class PutPolicyCommand extends $Command<
PutPolicyCommandInput,
PutPolicyCommandOutput,
ACMPCAClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

constructor(readonly input: PutPolicyCommandInput) {
// Start section: command_constructor
super();
// End section: command_constructor
}

resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<PutPolicyCommandInput, PutPolicyCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

const stack = clientStack.concat(this.middlewareStack);

const { logger } = configuration;
const handlerExecutionContext: HandlerExecutionContext = {
logger,
inputFilterSensitiveLog: PutPolicyRequest.filterSensitiveLog,
outputFilterSensitiveLog: (output: any) => output,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
}

private serialize(input: PutPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_json1_1PutPolicyCommand(input, context);
}

private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutPolicyCommandOutput> {
return deserializeAws_json1_1PutPolicyCommand(output, context);
}

// Start section: command_body_extra
// End section: command_body_extra
}
3 changes: 3 additions & 0 deletions clients/client-acm-pca/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ export * from "./commands/CreateCertificateAuthorityAuditReportCommand";
export * from "./commands/CreatePermissionCommand";
export * from "./commands/DeleteCertificateAuthorityCommand";
export * from "./commands/DeletePermissionCommand";
export * from "./commands/DeletePolicyCommand";
export * from "./commands/DescribeCertificateAuthorityCommand";
export * from "./commands/DescribeCertificateAuthorityAuditReportCommand";
export * from "./commands/GetCertificateCommand";
export * from "./commands/GetCertificateAuthorityCertificateCommand";
export * from "./commands/GetCertificateAuthorityCsrCommand";
export * from "./commands/GetPolicyCommand";
export * from "./commands/ImportCertificateAuthorityCertificateCommand";
export * from "./commands/IssueCertificateCommand";
export * from "./commands/ListCertificateAuthoritiesCommand";
Expand All @@ -18,6 +20,7 @@ export * from "./commands/ListPermissionsCommand";
export * from "./pagination/ListPermissionsPaginator";
export * from "./commands/ListTagsCommand";
export * from "./pagination/ListTagsPaginator";
export * from "./commands/PutPolicyCommand";
export * from "./commands/RestoreCertificateAuthorityCommand";
export * from "./commands/RevokeCertificateCommand";
export * from "./commands/TagCertificateAuthorityCommand";
Expand Down
Loading

0 comments on commit 6fa2daa

Please sign in to comment.