Skip to content

Commit a892750

Browse files
authored
fix: date appended in cloudfront operation names (#806)
1 parent cd889ca commit a892750

File tree

61 files changed

+3610
-5467
lines changed

Some content is hidden

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

61 files changed

+3610
-5467
lines changed

clients/client-cloudfront/CloudFront.ts

+901-1,192
Large diffs are not rendered by default.

clients/client-cloudfront/CloudFrontClient.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,9 @@ export type CloudFrontClientResolvedConfig = __SmithyResolvedConfiguration<
330330
HostHeaderResolvedConfig;
331331

332332
/**
333-
*
334-
* <fullname>Amazon CloudFront</fullname>
333+
* <fullname>Amazon CloudFront</fullname>
335334
* <p>This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers who need detailed information about
336335
* CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the <i>Amazon CloudFront Developer Guide</i>.</p>
337-
*
338336
*/
339337
export class CloudFrontClient extends __Client<
340338
__HttpHandlerOptions,
+14-14
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
CreateCloudFrontOriginAccessIdentityResult
99
} from "../models/index";
1010
import {
11-
deserializeAws_restXmlCreateCloudFrontOriginAccessIdentity2019_03_26Command,
12-
serializeAws_restXmlCreateCloudFrontOriginAccessIdentity2019_03_26Command
11+
deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand,
12+
serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand
1313
} from "../protocols/Aws_restXml";
1414
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
1515
import {
@@ -26,19 +26,19 @@ import {
2626
HttpHandlerOptions as __HttpHandlerOptions
2727
} from "@aws-sdk/types";
2828

29-
export type CreateCloudFrontOriginAccessIdentity2019_03_26CommandInput = CreateCloudFrontOriginAccessIdentityRequest;
30-
export type CreateCloudFrontOriginAccessIdentity2019_03_26CommandOutput = CreateCloudFrontOriginAccessIdentityResult;
29+
export type CreateCloudFrontOriginAccessIdentityCommandInput = CreateCloudFrontOriginAccessIdentityRequest;
30+
export type CreateCloudFrontOriginAccessIdentityCommandOutput = CreateCloudFrontOriginAccessIdentityResult;
3131

32-
export class CreateCloudFrontOriginAccessIdentity2019_03_26Command extends $Command<
33-
CreateCloudFrontOriginAccessIdentity2019_03_26CommandInput,
34-
CreateCloudFrontOriginAccessIdentity2019_03_26CommandOutput,
32+
export class CreateCloudFrontOriginAccessIdentityCommand extends $Command<
33+
CreateCloudFrontOriginAccessIdentityCommandInput,
34+
CreateCloudFrontOriginAccessIdentityCommandOutput,
3535
CloudFrontClientResolvedConfig
3636
> {
3737
// Start section: command_properties
3838
// End section: command_properties
3939

4040
constructor(
41-
readonly input: CreateCloudFrontOriginAccessIdentity2019_03_26CommandInput
41+
readonly input: CreateCloudFrontOriginAccessIdentityCommandInput
4242
) {
4343
// Start section: command_constructor
4444
super();
@@ -50,8 +50,8 @@ export class CreateCloudFrontOriginAccessIdentity2019_03_26Command extends $Comm
5050
configuration: CloudFrontClientResolvedConfig,
5151
options?: __HttpHandlerOptions
5252
): Handler<
53-
CreateCloudFrontOriginAccessIdentity2019_03_26CommandInput,
54-
CreateCloudFrontOriginAccessIdentity2019_03_26CommandOutput
53+
CreateCloudFrontOriginAccessIdentityCommandInput,
54+
CreateCloudFrontOriginAccessIdentityCommandOutput
5555
> {
5656
this.middlewareStack.use(
5757
getSerdePlugin(configuration, this.serialize, this.deserialize)
@@ -71,10 +71,10 @@ export class CreateCloudFrontOriginAccessIdentity2019_03_26Command extends $Comm
7171
}
7272

7373
private serialize(
74-
input: CreateCloudFrontOriginAccessIdentity2019_03_26CommandInput,
74+
input: CreateCloudFrontOriginAccessIdentityCommandInput,
7575
context: SerdeContext
7676
): Promise<__HttpRequest> {
77-
return serializeAws_restXmlCreateCloudFrontOriginAccessIdentity2019_03_26Command(
77+
return serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand(
7878
input,
7979
context
8080
);
@@ -83,8 +83,8 @@ export class CreateCloudFrontOriginAccessIdentity2019_03_26Command extends $Comm
8383
private deserialize(
8484
output: __HttpResponse,
8585
context: SerdeContext
86-
): Promise<CreateCloudFrontOriginAccessIdentity2019_03_26CommandOutput> {
87-
return deserializeAws_restXmlCreateCloudFrontOriginAccessIdentity2019_03_26Command(
86+
): Promise<CreateCloudFrontOriginAccessIdentityCommandOutput> {
87+
return deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand(
8888
output,
8989
context
9090
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
import {
2+
CloudFrontClientResolvedConfig,
3+
ServiceInputTypes,
4+
ServiceOutputTypes
5+
} from "../CloudFrontClient";
6+
import {
7+
CreateDistributionRequest,
8+
CreateDistributionResult
9+
} from "../models/index";
10+
import {
11+
deserializeAws_restXmlCreateDistributionCommand,
12+
serializeAws_restXmlCreateDistributionCommand
13+
} from "../protocols/Aws_restXml";
14+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
15+
import {
16+
HttpRequest as __HttpRequest,
17+
HttpResponse as __HttpResponse
18+
} from "@aws-sdk/protocol-http";
19+
import { Command as $Command } from "@aws-sdk/smithy-client";
20+
import {
21+
FinalizeHandlerArguments,
22+
Handler,
23+
HandlerExecutionContext,
24+
MiddlewareStack,
25+
SerdeContext,
26+
HttpHandlerOptions as __HttpHandlerOptions
27+
} from "@aws-sdk/types";
28+
29+
export type CreateDistributionCommandInput = CreateDistributionRequest;
30+
export type CreateDistributionCommandOutput = CreateDistributionResult;
31+
32+
export class CreateDistributionCommand extends $Command<
33+
CreateDistributionCommandInput,
34+
CreateDistributionCommandOutput,
35+
CloudFrontClientResolvedConfig
36+
> {
37+
// Start section: command_properties
38+
// End section: command_properties
39+
40+
constructor(readonly input: CreateDistributionCommandInput) {
41+
// Start section: command_constructor
42+
super();
43+
// End section: command_constructor
44+
}
45+
46+
resolveMiddleware(
47+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
48+
configuration: CloudFrontClientResolvedConfig,
49+
options?: __HttpHandlerOptions
50+
): Handler<CreateDistributionCommandInput, CreateDistributionCommandOutput> {
51+
this.middlewareStack.use(
52+
getSerdePlugin(configuration, this.serialize, this.deserialize)
53+
);
54+
55+
const stack = clientStack.concat(this.middlewareStack);
56+
57+
const handlerExecutionContext: HandlerExecutionContext = {
58+
logger: {} as any
59+
};
60+
const { requestHandler } = configuration;
61+
return stack.resolve(
62+
(request: FinalizeHandlerArguments<any>) =>
63+
requestHandler.handle(request.request as __HttpRequest, options || {}),
64+
handlerExecutionContext
65+
);
66+
}
67+
68+
private serialize(
69+
input: CreateDistributionCommandInput,
70+
context: SerdeContext
71+
): Promise<__HttpRequest> {
72+
return serializeAws_restXmlCreateDistributionCommand(input, context);
73+
}
74+
75+
private deserialize(
76+
output: __HttpResponse,
77+
context: SerdeContext
78+
): Promise<CreateDistributionCommandOutput> {
79+
return deserializeAws_restXmlCreateDistributionCommand(output, context);
80+
}
81+
82+
// Start section: command_body_extra
83+
// End section: command_body_extra
84+
}

clients/client-cloudfront/commands/CreateDistributionWithTags2019_03_26Command.ts

-95
This file was deleted.

clients/client-cloudfront/commands/CreateInvalidation2019_03_26Command.ts renamed to clients/client-cloudfront/commands/CreateDistributionWithTagsCommand.ts

+16-16
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import {
44
ServiceOutputTypes
55
} from "../CloudFrontClient";
66
import {
7-
CreateInvalidationRequest,
8-
CreateInvalidationResult
7+
CreateDistributionWithTagsRequest,
8+
CreateDistributionWithTagsResult
99
} from "../models/index";
1010
import {
11-
deserializeAws_restXmlCreateInvalidation2019_03_26Command,
12-
serializeAws_restXmlCreateInvalidation2019_03_26Command
11+
deserializeAws_restXmlCreateDistributionWithTagsCommand,
12+
serializeAws_restXmlCreateDistributionWithTagsCommand
1313
} from "../protocols/Aws_restXml";
1414
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
1515
import {
@@ -26,18 +26,18 @@ import {
2626
HttpHandlerOptions as __HttpHandlerOptions
2727
} from "@aws-sdk/types";
2828

29-
export type CreateInvalidation2019_03_26CommandInput = CreateInvalidationRequest;
30-
export type CreateInvalidation2019_03_26CommandOutput = CreateInvalidationResult;
29+
export type CreateDistributionWithTagsCommandInput = CreateDistributionWithTagsRequest;
30+
export type CreateDistributionWithTagsCommandOutput = CreateDistributionWithTagsResult;
3131

32-
export class CreateInvalidation2019_03_26Command extends $Command<
33-
CreateInvalidation2019_03_26CommandInput,
34-
CreateInvalidation2019_03_26CommandOutput,
32+
export class CreateDistributionWithTagsCommand extends $Command<
33+
CreateDistributionWithTagsCommandInput,
34+
CreateDistributionWithTagsCommandOutput,
3535
CloudFrontClientResolvedConfig
3636
> {
3737
// Start section: command_properties
3838
// End section: command_properties
3939

40-
constructor(readonly input: CreateInvalidation2019_03_26CommandInput) {
40+
constructor(readonly input: CreateDistributionWithTagsCommandInput) {
4141
// Start section: command_constructor
4242
super();
4343
// End section: command_constructor
@@ -48,8 +48,8 @@ export class CreateInvalidation2019_03_26Command extends $Command<
4848
configuration: CloudFrontClientResolvedConfig,
4949
options?: __HttpHandlerOptions
5050
): Handler<
51-
CreateInvalidation2019_03_26CommandInput,
52-
CreateInvalidation2019_03_26CommandOutput
51+
CreateDistributionWithTagsCommandInput,
52+
CreateDistributionWithTagsCommandOutput
5353
> {
5454
this.middlewareStack.use(
5555
getSerdePlugin(configuration, this.serialize, this.deserialize)
@@ -69,10 +69,10 @@ export class CreateInvalidation2019_03_26Command extends $Command<
6969
}
7070

7171
private serialize(
72-
input: CreateInvalidation2019_03_26CommandInput,
72+
input: CreateDistributionWithTagsCommandInput,
7373
context: SerdeContext
7474
): Promise<__HttpRequest> {
75-
return serializeAws_restXmlCreateInvalidation2019_03_26Command(
75+
return serializeAws_restXmlCreateDistributionWithTagsCommand(
7676
input,
7777
context
7878
);
@@ -81,8 +81,8 @@ export class CreateInvalidation2019_03_26Command extends $Command<
8181
private deserialize(
8282
output: __HttpResponse,
8383
context: SerdeContext
84-
): Promise<CreateInvalidation2019_03_26CommandOutput> {
85-
return deserializeAws_restXmlCreateInvalidation2019_03_26Command(
84+
): Promise<CreateDistributionWithTagsCommandOutput> {
85+
return deserializeAws_restXmlCreateDistributionWithTagsCommand(
8686
output,
8787
context
8888
);

0 commit comments

Comments
 (0)