Skip to content

Commit 8fd2c31

Browse files
author
awstools
committed
feat(client-appsync): Fixes the URI for the evaluatecode endpoint to include the /v1 prefix (ie. "/v1/dataplane-evaluatecode").
1 parent a89edbc commit 8fd2c31

File tree

5 files changed

+208
-208
lines changed

5 files changed

+208
-208
lines changed

clients/client-appsync/src/endpoint/EndpointParameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
2424
};
2525

2626
export interface EndpointParameters extends __EndpointParameters {
27-
Region?: string;
27+
Region: string;
2828
UseDualStack?: boolean;
2929
UseFIPS?: boolean;
3030
Endpoint?: string;

clients/client-appsync/src/endpoint/ruleset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const ruleSet: RuleSetObject = {
66
parameters: {
77
Region: {
88
builtIn: "AWS::Region",
9-
required: false,
9+
required: true,
1010
documentation: "The AWS region used to dispatch the request.",
1111
type: "String",
1212
},

clients/client-appsync/src/models/models_0.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ export enum RuntimeName {
509509
}
510510

511511
/**
512-
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
512+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
513513
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
514514
*/
515515
export interface AppSyncRuntime {
@@ -1450,7 +1450,7 @@ export interface CreateFunctionRequest {
14501450
maxBatchSize?: number;
14511451

14521452
/**
1453-
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
1453+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
14541454
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
14551455
*/
14561456
runtime?: AppSyncRuntime;
@@ -1521,7 +1521,7 @@ export interface FunctionConfiguration {
15211521
maxBatchSize?: number;
15221522

15231523
/**
1524-
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
1524+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
15251525
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
15261526
*/
15271527
runtime?: AppSyncRuntime;
@@ -1868,7 +1868,7 @@ export interface CreateResolverRequest {
18681868
maxBatchSize?: number;
18691869

18701870
/**
1871-
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
1871+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
18721872
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
18731873
*/
18741874
runtime?: AppSyncRuntime;
@@ -1953,7 +1953,7 @@ export interface Resolver {
19531953
maxBatchSize?: number;
19541954

19551955
/**
1956-
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
1956+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
19571957
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
19581958
*/
19591959
runtime?: AppSyncRuntime;
@@ -3099,7 +3099,7 @@ export interface UpdateFunctionRequest {
30993099
maxBatchSize?: number;
31003100

31013101
/**
3102-
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
3102+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
31033103
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
31043104
*/
31053105
runtime?: AppSyncRuntime;
@@ -3246,7 +3246,7 @@ export interface UpdateResolverRequest {
32463246
maxBatchSize?: number;
32473247

32483248
/**
3249-
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
3249+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
32503250
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
32513251
*/
32523252
runtime?: AppSyncRuntime;

clients/client-appsync/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ export const serializeAws_restJson1EvaluateCodeCommand = async (
651651
"content-type": "application/json",
652652
};
653653
const resolvedPath =
654-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataplane-evaluatecode";
654+
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/dataplane-evaluatecode";
655655
let body: any;
656656
body = JSON.stringify({
657657
...(input.code != null && { code: input.code }),

0 commit comments

Comments
 (0)